Darwin, libgcc : Adjust min version supported for the OS.
[official-gcc.git] / libgomp / configure
blob68ab844a1dfd2e6fe2b35eb9fc47d87498a8a829
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for GNU Offloading and Multi Processing Runtime Library 1.0.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
280 exit 1
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
298 { eval $1=; unset $1;}
300 as_unset=as_fn_unset
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
307 return $1
308 } # as_fn_set_status
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
351 /^X\(\/\/\)$/{
352 s//\1/
355 /^X\(\/\).*/{
356 s//\1/
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366 } # as_fn_mkdir_p
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
384 eval $1+=\$2
386 else
387 as_fn_append ()
389 eval $1=\$$1\$2
391 fi # as_fn_append
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
401 as_val=$(( $* ))
403 else
404 as_fn_arith ()
406 as_val=`expr "$@" || test $? -eq 1`
408 fi # as_fn_arith
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
455 /^X\/\(\/\/\)$/{
456 s//\1/
459 /^X\/\(\/\).*/{
460 s//\1/
463 s/.*/./; q'`
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
486 :lineno
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
518 ECHO_N='-n';;
519 esac
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
542 else
543 as_ln_s='cp -pR'
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
576 # Initializations.
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
587 # Identity of this package.
588 PACKAGE_NAME='GNU Offloading and Multi Processing Runtime Library'
589 PACKAGE_TARNAME='libgomp'
590 PACKAGE_VERSION='1.0'
591 PACKAGE_STRING='GNU Offloading and Multi Processing Runtime Library 1.0'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL='http://www.gnu.org/software/libgomp/'
595 # Factoring default headers for most tests.
596 ac_includes_default="\
597 #include <stdio.h>
598 #ifdef HAVE_SYS_TYPES_H
599 # include <sys/types.h>
600 #endif
601 #ifdef HAVE_SYS_STAT_H
602 # include <sys/stat.h>
603 #endif
604 #ifdef STDC_HEADERS
605 # include <stdlib.h>
606 # include <stddef.h>
607 #else
608 # ifdef HAVE_STDLIB_H
609 # include <stdlib.h>
610 # endif
611 #endif
612 #ifdef HAVE_STRING_H
613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
614 # include <memory.h>
615 # endif
616 # include <string.h>
617 #endif
618 #ifdef HAVE_STRINGS_H
619 # include <strings.h>
620 #endif
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
623 #endif
624 #ifdef HAVE_STDINT_H
625 # include <stdint.h>
626 #endif
627 #ifdef HAVE_UNISTD_H
628 # include <unistd.h>
629 #endif"
631 ac_header_list=
632 ac_func_list=
633 ac_subst_vars='am__EXEEXT_FALSE
634 am__EXEEXT_TRUE
635 LTLIBOBJS
636 LIBOBJS
637 get_gcc_base_ver
638 OMP_DEPEND_KIND
639 OMP_NEST_LOCK_25_KIND
640 OMP_LOCK_25_KIND
641 OMP_NEST_LOCK_25_ALIGN
642 OMP_NEST_LOCK_25_SIZE
643 OMP_LOCK_25_ALIGN
644 OMP_LOCK_25_SIZE
645 OMP_NEST_LOCK_KIND
646 OMP_LOCK_KIND
647 OMP_NEST_LOCK_ALIGN
648 OMP_NEST_LOCK_SIZE
649 OMP_LOCK_ALIGN
650 OMP_LOCK_SIZE
651 INTPTR_T_KIND
652 USE_FORTRAN_FALSE
653 USE_FORTRAN_TRUE
654 link_gomp
655 tmake_file
656 XLDFLAGS
657 XCFLAGS
658 config_path
659 FLOCK
660 CPU_COUNT
661 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE
662 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE
663 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE
664 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE
665 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
666 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
667 OPT_LDFLAGS
668 SECTION_LDFLAGS
669 PLUGIN_GCN_FALSE
670 PLUGIN_GCN_TRUE
671 PLUGIN_NVPTX_FALSE
672 PLUGIN_NVPTX_TRUE
673 offload_additional_lib_paths
674 offload_additional_options
675 offload_targets
676 offload_plugins
677 DL_LIBS
678 libtool_VERSION
679 ac_ct_FC
680 FCFLAGS
683 MAINT
684 MAINTAINER_MODE_FALSE
685 MAINTAINER_MODE_TRUE
686 enable_static
687 enable_shared
688 lt_host_flags
690 OTOOL64
691 OTOOL
692 LIPO
693 NMEDIT
694 DSYMUTIL
695 OBJDUMP
696 LN_S
698 ac_ct_DUMPBIN
699 DUMPBIN
701 FGREP
702 EGREP
703 GREP
705 LIBTOOL
706 BUILD_INFO_FALSE
707 BUILD_INFO_TRUE
708 PERL
709 RANLIB
711 am__fastdepCC_FALSE
712 am__fastdepCC_TRUE
713 CCDEPMODE
714 am__nodep
715 AMDEPBACKSLASH
716 AMDEP_FALSE
717 AMDEP_TRUE
718 am__quote
719 am__include
720 DEPDIR
721 OBJEXT
722 EXEEXT
723 ac_ct_CC
724 CPPFLAGS
725 LDFLAGS
726 CFLAGS
728 toolexeclibdir
729 toolexecdir
730 multi_basedir
731 AM_BACKSLASH
732 AM_DEFAULT_VERBOSITY
733 AM_DEFAULT_V
734 AM_V
735 am__untar
736 am__tar
737 AMTAR
738 am__leading_dot
739 SET_MAKE
741 mkdir_p
742 MKDIR_P
743 INSTALL_STRIP_PROGRAM
744 STRIP
745 install_sh
746 MAKEINFO
747 AUTOHEADER
748 AUTOMAKE
749 AUTOCONF
750 ACLOCAL
751 VERSION
752 PACKAGE
753 CYGPATH_W
754 am__isrc
755 INSTALL_DATA
756 INSTALL_SCRIPT
757 INSTALL_PROGRAM
758 target_os
759 target_vendor
760 target_cpu
761 target
762 host_os
763 host_vendor
764 host_cpu
765 host
766 build_os
767 build_vendor
768 build_cpu
769 build
770 GENINSRC_FALSE
771 GENINSRC_TRUE
772 target_alias
773 host_alias
774 build_alias
775 LIBS
776 ECHO_T
777 ECHO_N
778 ECHO_C
779 DEFS
780 mandir
781 localedir
782 libdir
783 psdir
784 pdfdir
785 dvidir
786 htmldir
787 infodir
788 docdir
789 oldincludedir
790 includedir
791 localstatedir
792 sharedstatedir
793 sysconfdir
794 datadir
795 datarootdir
796 libexecdir
797 sbindir
798 bindir
799 program_transform_name
800 prefix
801 exec_prefix
802 PACKAGE_URL
803 PACKAGE_BUGREPORT
804 PACKAGE_STRING
805 PACKAGE_VERSION
806 PACKAGE_TARNAME
807 PACKAGE_NAME
808 PATH_SEPARATOR
809 SHELL'
810 ac_subst_files=''
811 ac_user_opts='
812 enable_option_checking
813 enable_version_specific_runtime_libs
814 enable_generated_files_in_srcdir
815 enable_silent_rules
816 enable_multilib
817 with_toolexeclibdir
818 enable_dependency_tracking
819 enable_werror
820 enable_shared
821 enable_static
822 with_pic
823 enable_fast_install
824 with_gnu_ld
825 enable_libtool_lock
826 enable_maintainer_mode
827 enable_linux_futex
828 enable_tls
829 enable_symvers
830 enable_cet
831 with_gcc_major_version_only
833 ac_precious_vars='build_alias
834 host_alias
835 target_alias
837 CPPFLAGS
839 FCFLAGS
840 LDFLAGS
841 LIBS'
844 # Initialize some variables set by options.
845 ac_init_help=
846 ac_init_version=false
847 ac_unrecognized_opts=
848 ac_unrecognized_sep=
849 # The variables have the same names as the options, with
850 # dashes changed to underlines.
851 cache_file=/dev/null
852 exec_prefix=NONE
853 no_create=
854 no_recursion=
855 prefix=NONE
856 program_prefix=NONE
857 program_suffix=NONE
858 program_transform_name=s,x,x,
859 silent=
860 site=
861 srcdir=
862 verbose=
863 x_includes=NONE
864 x_libraries=NONE
866 # Installation directory options.
867 # These are left unexpanded so users can "make install exec_prefix=/foo"
868 # and all the variables that are supposed to be based on exec_prefix
869 # by default will actually change.
870 # Use braces instead of parens because sh, perl, etc. also accept them.
871 # (The list follows the same order as the GNU Coding Standards.)
872 bindir='${exec_prefix}/bin'
873 sbindir='${exec_prefix}/sbin'
874 libexecdir='${exec_prefix}/libexec'
875 datarootdir='${prefix}/share'
876 datadir='${datarootdir}'
877 sysconfdir='${prefix}/etc'
878 sharedstatedir='${prefix}/com'
879 localstatedir='${prefix}/var'
880 includedir='${prefix}/include'
881 oldincludedir='/usr/include'
882 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
883 infodir='${datarootdir}/info'
884 htmldir='${docdir}'
885 dvidir='${docdir}'
886 pdfdir='${docdir}'
887 psdir='${docdir}'
888 libdir='${exec_prefix}/lib'
889 localedir='${datarootdir}/locale'
890 mandir='${datarootdir}/man'
892 ac_prev=
893 ac_dashdash=
894 for ac_option
896 # If the previous option needs an argument, assign it.
897 if test -n "$ac_prev"; then
898 eval $ac_prev=\$ac_option
899 ac_prev=
900 continue
903 case $ac_option in
904 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
905 *=) ac_optarg= ;;
906 *) ac_optarg=yes ;;
907 esac
909 # Accept the important Cygnus configure options, so we can diagnose typos.
911 case $ac_dashdash$ac_option in
913 ac_dashdash=yes ;;
915 -bindir | --bindir | --bindi | --bind | --bin | --bi)
916 ac_prev=bindir ;;
917 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
918 bindir=$ac_optarg ;;
920 -build | --build | --buil | --bui | --bu)
921 ac_prev=build_alias ;;
922 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
923 build_alias=$ac_optarg ;;
925 -cache-file | --cache-file | --cache-fil | --cache-fi \
926 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
927 ac_prev=cache_file ;;
928 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
929 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
930 cache_file=$ac_optarg ;;
932 --config-cache | -C)
933 cache_file=config.cache ;;
935 -datadir | --datadir | --datadi | --datad)
936 ac_prev=datadir ;;
937 -datadir=* | --datadir=* | --datadi=* | --datad=*)
938 datadir=$ac_optarg ;;
940 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
941 | --dataroo | --dataro | --datar)
942 ac_prev=datarootdir ;;
943 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
944 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
945 datarootdir=$ac_optarg ;;
947 -disable-* | --disable-*)
948 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
949 # Reject names that are not valid shell variable names.
950 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
951 as_fn_error $? "invalid feature name: $ac_useropt"
952 ac_useropt_orig=$ac_useropt
953 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
954 case $ac_user_opts in
956 "enable_$ac_useropt"
957 "*) ;;
958 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
959 ac_unrecognized_sep=', ';;
960 esac
961 eval enable_$ac_useropt=no ;;
963 -docdir | --docdir | --docdi | --doc | --do)
964 ac_prev=docdir ;;
965 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
966 docdir=$ac_optarg ;;
968 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
969 ac_prev=dvidir ;;
970 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
971 dvidir=$ac_optarg ;;
973 -enable-* | --enable-*)
974 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
975 # Reject names that are not valid shell variable names.
976 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
977 as_fn_error $? "invalid feature name: $ac_useropt"
978 ac_useropt_orig=$ac_useropt
979 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
980 case $ac_user_opts in
982 "enable_$ac_useropt"
983 "*) ;;
984 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
985 ac_unrecognized_sep=', ';;
986 esac
987 eval enable_$ac_useropt=\$ac_optarg ;;
989 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
990 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
991 | --exec | --exe | --ex)
992 ac_prev=exec_prefix ;;
993 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
994 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
995 | --exec=* | --exe=* | --ex=*)
996 exec_prefix=$ac_optarg ;;
998 -gas | --gas | --ga | --g)
999 # Obsolete; use --with-gas.
1000 with_gas=yes ;;
1002 -help | --help | --hel | --he | -h)
1003 ac_init_help=long ;;
1004 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1005 ac_init_help=recursive ;;
1006 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1007 ac_init_help=short ;;
1009 -host | --host | --hos | --ho)
1010 ac_prev=host_alias ;;
1011 -host=* | --host=* | --hos=* | --ho=*)
1012 host_alias=$ac_optarg ;;
1014 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1015 ac_prev=htmldir ;;
1016 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1017 | --ht=*)
1018 htmldir=$ac_optarg ;;
1020 -includedir | --includedir | --includedi | --included | --include \
1021 | --includ | --inclu | --incl | --inc)
1022 ac_prev=includedir ;;
1023 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1024 | --includ=* | --inclu=* | --incl=* | --inc=*)
1025 includedir=$ac_optarg ;;
1027 -infodir | --infodir | --infodi | --infod | --info | --inf)
1028 ac_prev=infodir ;;
1029 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1030 infodir=$ac_optarg ;;
1032 -libdir | --libdir | --libdi | --libd)
1033 ac_prev=libdir ;;
1034 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1035 libdir=$ac_optarg ;;
1037 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1038 | --libexe | --libex | --libe)
1039 ac_prev=libexecdir ;;
1040 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1041 | --libexe=* | --libex=* | --libe=*)
1042 libexecdir=$ac_optarg ;;
1044 -localedir | --localedir | --localedi | --localed | --locale)
1045 ac_prev=localedir ;;
1046 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1047 localedir=$ac_optarg ;;
1049 -localstatedir | --localstatedir | --localstatedi | --localstated \
1050 | --localstate | --localstat | --localsta | --localst | --locals)
1051 ac_prev=localstatedir ;;
1052 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1053 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1054 localstatedir=$ac_optarg ;;
1056 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1057 ac_prev=mandir ;;
1058 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1059 mandir=$ac_optarg ;;
1061 -nfp | --nfp | --nf)
1062 # Obsolete; use --without-fp.
1063 with_fp=no ;;
1065 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1066 | --no-cr | --no-c | -n)
1067 no_create=yes ;;
1069 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1070 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1071 no_recursion=yes ;;
1073 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1074 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1075 | --oldin | --oldi | --old | --ol | --o)
1076 ac_prev=oldincludedir ;;
1077 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1078 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1079 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1080 oldincludedir=$ac_optarg ;;
1082 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1083 ac_prev=prefix ;;
1084 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1085 prefix=$ac_optarg ;;
1087 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1088 | --program-pre | --program-pr | --program-p)
1089 ac_prev=program_prefix ;;
1090 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1091 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1092 program_prefix=$ac_optarg ;;
1094 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1095 | --program-suf | --program-su | --program-s)
1096 ac_prev=program_suffix ;;
1097 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1098 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1099 program_suffix=$ac_optarg ;;
1101 -program-transform-name | --program-transform-name \
1102 | --program-transform-nam | --program-transform-na \
1103 | --program-transform-n | --program-transform- \
1104 | --program-transform | --program-transfor \
1105 | --program-transfo | --program-transf \
1106 | --program-trans | --program-tran \
1107 | --progr-tra | --program-tr | --program-t)
1108 ac_prev=program_transform_name ;;
1109 -program-transform-name=* | --program-transform-name=* \
1110 | --program-transform-nam=* | --program-transform-na=* \
1111 | --program-transform-n=* | --program-transform-=* \
1112 | --program-transform=* | --program-transfor=* \
1113 | --program-transfo=* | --program-transf=* \
1114 | --program-trans=* | --program-tran=* \
1115 | --progr-tra=* | --program-tr=* | --program-t=*)
1116 program_transform_name=$ac_optarg ;;
1118 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1119 ac_prev=pdfdir ;;
1120 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1121 pdfdir=$ac_optarg ;;
1123 -psdir | --psdir | --psdi | --psd | --ps)
1124 ac_prev=psdir ;;
1125 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1126 psdir=$ac_optarg ;;
1128 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1129 | -silent | --silent | --silen | --sile | --sil)
1130 silent=yes ;;
1132 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1133 ac_prev=sbindir ;;
1134 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1135 | --sbi=* | --sb=*)
1136 sbindir=$ac_optarg ;;
1138 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1139 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1140 | --sharedst | --shareds | --shared | --share | --shar \
1141 | --sha | --sh)
1142 ac_prev=sharedstatedir ;;
1143 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1144 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1145 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1146 | --sha=* | --sh=*)
1147 sharedstatedir=$ac_optarg ;;
1149 -site | --site | --sit)
1150 ac_prev=site ;;
1151 -site=* | --site=* | --sit=*)
1152 site=$ac_optarg ;;
1154 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1155 ac_prev=srcdir ;;
1156 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1157 srcdir=$ac_optarg ;;
1159 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1160 | --syscon | --sysco | --sysc | --sys | --sy)
1161 ac_prev=sysconfdir ;;
1162 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1163 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1164 sysconfdir=$ac_optarg ;;
1166 -target | --target | --targe | --targ | --tar | --ta | --t)
1167 ac_prev=target_alias ;;
1168 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1169 target_alias=$ac_optarg ;;
1171 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1172 verbose=yes ;;
1174 -version | --version | --versio | --versi | --vers | -V)
1175 ac_init_version=: ;;
1177 -with-* | --with-*)
1178 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1179 # Reject names that are not valid shell variable names.
1180 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1181 as_fn_error $? "invalid package name: $ac_useropt"
1182 ac_useropt_orig=$ac_useropt
1183 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1184 case $ac_user_opts in
1186 "with_$ac_useropt"
1187 "*) ;;
1188 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1189 ac_unrecognized_sep=', ';;
1190 esac
1191 eval with_$ac_useropt=\$ac_optarg ;;
1193 -without-* | --without-*)
1194 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1195 # Reject names that are not valid shell variable names.
1196 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1197 as_fn_error $? "invalid package name: $ac_useropt"
1198 ac_useropt_orig=$ac_useropt
1199 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1200 case $ac_user_opts in
1202 "with_$ac_useropt"
1203 "*) ;;
1204 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1205 ac_unrecognized_sep=', ';;
1206 esac
1207 eval with_$ac_useropt=no ;;
1209 --x)
1210 # Obsolete; use --with-x.
1211 with_x=yes ;;
1213 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1214 | --x-incl | --x-inc | --x-in | --x-i)
1215 ac_prev=x_includes ;;
1216 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1217 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1218 x_includes=$ac_optarg ;;
1220 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1221 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1222 ac_prev=x_libraries ;;
1223 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1224 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1225 x_libraries=$ac_optarg ;;
1227 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1228 Try \`$0 --help' for more information"
1231 *=*)
1232 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1233 # Reject names that are not valid shell variable names.
1234 case $ac_envvar in #(
1235 '' | [0-9]* | *[!_$as_cr_alnum]* )
1236 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1237 esac
1238 eval $ac_envvar=\$ac_optarg
1239 export $ac_envvar ;;
1242 # FIXME: should be removed in autoconf 3.0.
1243 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1244 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1245 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1246 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1249 esac
1250 done
1252 if test -n "$ac_prev"; then
1253 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1254 as_fn_error $? "missing argument to $ac_option"
1257 if test -n "$ac_unrecognized_opts"; then
1258 case $enable_option_checking in
1259 no) ;;
1260 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1261 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1262 esac
1265 # Check all directory arguments for consistency.
1266 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1267 datadir sysconfdir sharedstatedir localstatedir includedir \
1268 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1269 libdir localedir mandir
1271 eval ac_val=\$$ac_var
1272 # Remove trailing slashes.
1273 case $ac_val in
1274 */ )
1275 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1276 eval $ac_var=\$ac_val;;
1277 esac
1278 # Be sure to have absolute directory names.
1279 case $ac_val in
1280 [\\/$]* | ?:[\\/]* ) continue;;
1281 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1282 esac
1283 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1284 done
1286 # There might be people who depend on the old broken behavior: `$host'
1287 # used to hold the argument of --host etc.
1288 # FIXME: To remove some day.
1289 build=$build_alias
1290 host=$host_alias
1291 target=$target_alias
1293 # FIXME: To remove some day.
1294 if test "x$host_alias" != x; then
1295 if test "x$build_alias" = x; then
1296 cross_compiling=maybe
1297 elif test "x$build_alias" != "x$host_alias"; then
1298 cross_compiling=yes
1302 ac_tool_prefix=
1303 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1305 test "$silent" = yes && exec 6>/dev/null
1308 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1309 ac_ls_di=`ls -di .` &&
1310 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1311 as_fn_error $? "working directory cannot be determined"
1312 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1313 as_fn_error $? "pwd does not report name of working directory"
1316 # Find the source files, if location was not specified.
1317 if test -z "$srcdir"; then
1318 ac_srcdir_defaulted=yes
1319 # Try the directory containing this script, then the parent directory.
1320 ac_confdir=`$as_dirname -- "$as_myself" ||
1321 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1322 X"$as_myself" : 'X\(//\)[^/]' \| \
1323 X"$as_myself" : 'X\(//\)$' \| \
1324 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1325 $as_echo X"$as_myself" |
1326 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1327 s//\1/
1330 /^X\(\/\/\)[^/].*/{
1331 s//\1/
1334 /^X\(\/\/\)$/{
1335 s//\1/
1338 /^X\(\/\).*/{
1339 s//\1/
1342 s/.*/./; q'`
1343 srcdir=$ac_confdir
1344 if test ! -r "$srcdir/$ac_unique_file"; then
1345 srcdir=..
1347 else
1348 ac_srcdir_defaulted=no
1350 if test ! -r "$srcdir/$ac_unique_file"; then
1351 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1352 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1354 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1355 ac_abs_confdir=`(
1356 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1357 pwd)`
1358 # When building in place, set srcdir=.
1359 if test "$ac_abs_confdir" = "$ac_pwd"; then
1360 srcdir=.
1362 # Remove unnecessary trailing slashes from srcdir.
1363 # Double slashes in file names in object file debugging info
1364 # mess up M-x gdb in Emacs.
1365 case $srcdir in
1366 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1367 esac
1368 for ac_var in $ac_precious_vars; do
1369 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1370 eval ac_env_${ac_var}_value=\$${ac_var}
1371 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1372 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1373 done
1376 # Report the --help message.
1378 if test "$ac_init_help" = "long"; then
1379 # Omit some internal or obsolete options to make the list less imposing.
1380 # This message is too long to be a string in the A/UX 3.1 sh.
1381 cat <<_ACEOF
1382 \`configure' configures GNU Offloading and Multi Processing Runtime Library 1.0 to adapt to many kinds of systems.
1384 Usage: $0 [OPTION]... [VAR=VALUE]...
1386 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1387 VAR=VALUE. See below for descriptions of some of the useful variables.
1389 Defaults for the options are specified in brackets.
1391 Configuration:
1392 -h, --help display this help and exit
1393 --help=short display options specific to this package
1394 --help=recursive display the short help of all the included packages
1395 -V, --version display version information and exit
1396 -q, --quiet, --silent do not print \`checking ...' messages
1397 --cache-file=FILE cache test results in FILE [disabled]
1398 -C, --config-cache alias for \`--cache-file=config.cache'
1399 -n, --no-create do not create output files
1400 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1402 Installation directories:
1403 --prefix=PREFIX install architecture-independent files in PREFIX
1404 [$ac_default_prefix]
1405 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1406 [PREFIX]
1408 By default, \`make install' will install all the files in
1409 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1410 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1411 for instance \`--prefix=\$HOME'.
1413 For better control, use the options below.
1415 Fine tuning of the installation directories:
1416 --bindir=DIR user executables [EPREFIX/bin]
1417 --sbindir=DIR system admin executables [EPREFIX/sbin]
1418 --libexecdir=DIR program executables [EPREFIX/libexec]
1419 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1420 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1421 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1422 --libdir=DIR object code libraries [EPREFIX/lib]
1423 --includedir=DIR C header files [PREFIX/include]
1424 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1425 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1426 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1427 --infodir=DIR info documentation [DATAROOTDIR/info]
1428 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1429 --mandir=DIR man documentation [DATAROOTDIR/man]
1430 --docdir=DIR documentation root [DATAROOTDIR/doc/libgomp]
1431 --htmldir=DIR html documentation [DOCDIR]
1432 --dvidir=DIR dvi documentation [DOCDIR]
1433 --pdfdir=DIR pdf documentation [DOCDIR]
1434 --psdir=DIR ps documentation [DOCDIR]
1435 _ACEOF
1437 cat <<\_ACEOF
1439 Program names:
1440 --program-prefix=PREFIX prepend PREFIX to installed program names
1441 --program-suffix=SUFFIX append SUFFIX to installed program names
1442 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1444 System types:
1445 --build=BUILD configure for building on BUILD [guessed]
1446 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1447 --target=TARGET configure for building compilers for TARGET [HOST]
1448 _ACEOF
1451 if test -n "$ac_init_help"; then
1452 case $ac_init_help in
1453 short | recursive ) echo "Configuration of GNU Offloading and Multi Processing Runtime Library 1.0:";;
1454 esac
1455 cat <<\_ACEOF
1457 Optional Features:
1458 --disable-option-checking ignore unrecognized --enable/--with options
1459 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1460 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1461 --enable-version-specific-runtime-libs
1462 Specify that runtime libraries should be installed
1463 in a compiler-specific directory [default=no]
1464 --enable-generated-files-in-srcdir
1465 put copies of generated files in source dir intended
1466 for creating source tarballs for users without
1467 texinfo bison or flex. [default=no]
1468 --enable-silent-rules less verbose build output (undo: "make V=1")
1469 --disable-silent-rules verbose build output (undo: "make V=0")
1470 --enable-multilib build many library versions (default)
1471 --enable-dependency-tracking
1472 do not reject slow dependency extractors
1473 --disable-dependency-tracking
1474 speeds up one-time build
1475 --disable-werror disable building with -Werror
1476 --enable-shared[=PKGS] build shared libraries [default=yes]
1477 --enable-static[=PKGS] build static libraries [default=yes]
1478 --enable-fast-install[=PKGS]
1479 optimize for fast installation [default=yes]
1480 --disable-libtool-lock avoid locking (might break parallel builds)
1481 --enable-maintainer-mode
1482 enable make rules and dependencies not useful (and
1483 sometimes confusing) to the casual installer
1484 --enable-linux-futex use the Linux futex system call [default=default]
1485 --enable-tls Use thread-local storage [default=yes]
1486 --enable-symvers=STYLE enables symbol versioning of the shared library
1487 [default=yes]
1488 --enable-cet enable Intel CET in target libraries [default=auto]
1490 Optional Packages:
1491 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1492 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1493 --with-toolexeclibdir=DIR
1494 install libraries built with a cross compiler within
1496 --with-pic try to use only PIC/non-PIC objects [default=use
1497 both]
1498 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1499 --with-gcc-major-version-only
1500 use only GCC major number in filesystem paths
1502 Some influential environment variables:
1503 CC C compiler command
1504 CFLAGS C compiler flags
1505 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1506 nonstandard directory <lib dir>
1507 LIBS libraries to pass to the linker, e.g. -l<library>
1508 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1509 you have headers in a nonstandard directory <include dir>
1510 CPP C preprocessor
1511 FC Fortran compiler command
1512 FCFLAGS Fortran compiler flags
1514 Use these variables to override the choices made by `configure' or to help
1515 it to find libraries and programs with nonstandard names/locations.
1517 Report bugs to the package provider.
1518 GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
1519 General help using GNU software: <http://www.gnu.org/gethelp/>.
1520 _ACEOF
1521 ac_status=$?
1524 if test "$ac_init_help" = "recursive"; then
1525 # If there are subdirs, report their specific --help.
1526 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1527 test -d "$ac_dir" ||
1528 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1529 continue
1530 ac_builddir=.
1532 case "$ac_dir" in
1533 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1535 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1536 # A ".." for each directory in $ac_dir_suffix.
1537 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1538 case $ac_top_builddir_sub in
1539 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1540 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1541 esac ;;
1542 esac
1543 ac_abs_top_builddir=$ac_pwd
1544 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1545 # for backward compatibility:
1546 ac_top_builddir=$ac_top_build_prefix
1548 case $srcdir in
1549 .) # We are building in place.
1550 ac_srcdir=.
1551 ac_top_srcdir=$ac_top_builddir_sub
1552 ac_abs_top_srcdir=$ac_pwd ;;
1553 [\\/]* | ?:[\\/]* ) # Absolute name.
1554 ac_srcdir=$srcdir$ac_dir_suffix;
1555 ac_top_srcdir=$srcdir
1556 ac_abs_top_srcdir=$srcdir ;;
1557 *) # Relative name.
1558 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1559 ac_top_srcdir=$ac_top_build_prefix$srcdir
1560 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1561 esac
1562 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1564 cd "$ac_dir" || { ac_status=$?; continue; }
1565 # Check for guested configure.
1566 if test -f "$ac_srcdir/configure.gnu"; then
1567 echo &&
1568 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1569 elif test -f "$ac_srcdir/configure"; then
1570 echo &&
1571 $SHELL "$ac_srcdir/configure" --help=recursive
1572 else
1573 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1574 fi || ac_status=$?
1575 cd "$ac_pwd" || { ac_status=$?; break; }
1576 done
1579 test -n "$ac_init_help" && exit $ac_status
1580 if $ac_init_version; then
1581 cat <<\_ACEOF
1582 GNU Offloading and Multi Processing Runtime Library configure 1.0
1583 generated by GNU Autoconf 2.69
1585 Copyright (C) 2012 Free Software Foundation, Inc.
1586 This configure script is free software; the Free Software Foundation
1587 gives unlimited permission to copy, distribute and modify it.
1588 _ACEOF
1589 exit
1592 ## ------------------------ ##
1593 ## Autoconf initialization. ##
1594 ## ------------------------ ##
1596 # ac_fn_c_try_compile LINENO
1597 # --------------------------
1598 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1599 ac_fn_c_try_compile ()
1601 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1602 rm -f conftest.$ac_objext
1603 if { { ac_try="$ac_compile"
1604 case "(($ac_try" in
1605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1606 *) ac_try_echo=$ac_try;;
1607 esac
1608 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1609 $as_echo "$ac_try_echo"; } >&5
1610 (eval "$ac_compile") 2>conftest.err
1611 ac_status=$?
1612 if test -s conftest.err; then
1613 grep -v '^ *+' conftest.err >conftest.er1
1614 cat conftest.er1 >&5
1615 mv -f conftest.er1 conftest.err
1617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1618 test $ac_status = 0; } && {
1619 test -z "$ac_c_werror_flag" ||
1620 test ! -s conftest.err
1621 } && test -s conftest.$ac_objext; then :
1622 ac_retval=0
1623 else
1624 $as_echo "$as_me: failed program was:" >&5
1625 sed 's/^/| /' conftest.$ac_ext >&5
1627 ac_retval=1
1629 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1630 as_fn_set_status $ac_retval
1632 } # ac_fn_c_try_compile
1634 # ac_fn_c_try_link LINENO
1635 # -----------------------
1636 # Try to link conftest.$ac_ext, and return whether this succeeded.
1637 ac_fn_c_try_link ()
1639 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1640 rm -f conftest.$ac_objext conftest$ac_exeext
1641 if { { ac_try="$ac_link"
1642 case "(($ac_try" in
1643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1644 *) ac_try_echo=$ac_try;;
1645 esac
1646 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1647 $as_echo "$ac_try_echo"; } >&5
1648 (eval "$ac_link") 2>conftest.err
1649 ac_status=$?
1650 if test -s conftest.err; then
1651 grep -v '^ *+' conftest.err >conftest.er1
1652 cat conftest.er1 >&5
1653 mv -f conftest.er1 conftest.err
1655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1656 test $ac_status = 0; } && {
1657 test -z "$ac_c_werror_flag" ||
1658 test ! -s conftest.err
1659 } && test -s conftest$ac_exeext && {
1660 test "$cross_compiling" = yes ||
1661 test -x conftest$ac_exeext
1662 }; then :
1663 ac_retval=0
1664 else
1665 $as_echo "$as_me: failed program was:" >&5
1666 sed 's/^/| /' conftest.$ac_ext >&5
1668 ac_retval=1
1670 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1671 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1672 # interfere with the next link command; also delete a directory that is
1673 # left behind by Apple's compiler. We do this before executing the actions.
1674 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1675 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1676 as_fn_set_status $ac_retval
1678 } # ac_fn_c_try_link
1680 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1681 # -------------------------------------------------------
1682 # Tests whether HEADER exists and can be compiled using the include files in
1683 # INCLUDES, setting the cache variable VAR accordingly.
1684 ac_fn_c_check_header_compile ()
1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1688 $as_echo_n "checking for $2... " >&6; }
1689 if eval \${$3+:} false; then :
1690 $as_echo_n "(cached) " >&6
1691 else
1692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1693 /* end confdefs.h. */
1695 #include <$2>
1696 _ACEOF
1697 if ac_fn_c_try_compile "$LINENO"; then :
1698 eval "$3=yes"
1699 else
1700 eval "$3=no"
1702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1704 eval ac_res=\$$3
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1706 $as_echo "$ac_res" >&6; }
1707 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1709 } # ac_fn_c_check_header_compile
1711 # ac_fn_c_try_cpp LINENO
1712 # ----------------------
1713 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1714 ac_fn_c_try_cpp ()
1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717 if { { ac_try="$ac_cpp conftest.$ac_ext"
1718 case "(($ac_try" in
1719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1720 *) ac_try_echo=$ac_try;;
1721 esac
1722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1723 $as_echo "$ac_try_echo"; } >&5
1724 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1725 ac_status=$?
1726 if test -s conftest.err; then
1727 grep -v '^ *+' conftest.err >conftest.er1
1728 cat conftest.er1 >&5
1729 mv -f conftest.er1 conftest.err
1731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732 test $ac_status = 0; } > conftest.i && {
1733 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1734 test ! -s conftest.err
1735 }; then :
1736 ac_retval=0
1737 else
1738 $as_echo "$as_me: failed program was:" >&5
1739 sed 's/^/| /' conftest.$ac_ext >&5
1741 ac_retval=1
1743 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1744 as_fn_set_status $ac_retval
1746 } # ac_fn_c_try_cpp
1748 # ac_fn_c_try_run LINENO
1749 # ----------------------
1750 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1751 # that executables *can* be run.
1752 ac_fn_c_try_run ()
1754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755 if { { ac_try="$ac_link"
1756 case "(($ac_try" in
1757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1758 *) ac_try_echo=$ac_try;;
1759 esac
1760 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1761 $as_echo "$ac_try_echo"; } >&5
1762 (eval "$ac_link") 2>&5
1763 ac_status=$?
1764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1765 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1766 { { case "(($ac_try" in
1767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1768 *) ac_try_echo=$ac_try;;
1769 esac
1770 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1771 $as_echo "$ac_try_echo"; } >&5
1772 (eval "$ac_try") 2>&5
1773 ac_status=$?
1774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1775 test $ac_status = 0; }; }; then :
1776 ac_retval=0
1777 else
1778 $as_echo "$as_me: program exited with status $ac_status" >&5
1779 $as_echo "$as_me: failed program was:" >&5
1780 sed 's/^/| /' conftest.$ac_ext >&5
1782 ac_retval=$ac_status
1784 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1785 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1786 as_fn_set_status $ac_retval
1788 } # ac_fn_c_try_run
1790 # ac_fn_c_check_func LINENO FUNC VAR
1791 # ----------------------------------
1792 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1793 ac_fn_c_check_func ()
1795 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1797 $as_echo_n "checking for $2... " >&6; }
1798 if eval \${$3+:} false; then :
1799 $as_echo_n "(cached) " >&6
1800 else
1801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1802 /* end confdefs.h. */
1803 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1804 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1805 #define $2 innocuous_$2
1807 /* System header to define __stub macros and hopefully few prototypes,
1808 which can conflict with char $2 (); below.
1809 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1810 <limits.h> exists even on freestanding compilers. */
1812 #ifdef __STDC__
1813 # include <limits.h>
1814 #else
1815 # include <assert.h>
1816 #endif
1818 #undef $2
1820 /* Override any GCC internal prototype to avoid an error.
1821 Use char because int might match the return type of a GCC
1822 builtin and then its argument prototype would still apply. */
1823 #ifdef __cplusplus
1824 extern "C"
1825 #endif
1826 char $2 ();
1827 /* The GNU C library defines this for functions which it implements
1828 to always fail with ENOSYS. Some functions are actually named
1829 something starting with __ and the normal name is an alias. */
1830 #if defined __stub_$2 || defined __stub___$2
1831 choke me
1832 #endif
1835 main ()
1837 return $2 ();
1839 return 0;
1841 _ACEOF
1842 if ac_fn_c_try_link "$LINENO"; then :
1843 eval "$3=yes"
1844 else
1845 eval "$3=no"
1847 rm -f core conftest.err conftest.$ac_objext \
1848 conftest$ac_exeext conftest.$ac_ext
1850 eval ac_res=\$$3
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1852 $as_echo "$ac_res" >&6; }
1853 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1855 } # ac_fn_c_check_func
1857 # ac_fn_fc_try_compile LINENO
1858 # ---------------------------
1859 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1860 ac_fn_fc_try_compile ()
1862 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1863 rm -f conftest.$ac_objext
1864 if { { ac_try="$ac_compile"
1865 case "(($ac_try" in
1866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1867 *) ac_try_echo=$ac_try;;
1868 esac
1869 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1870 $as_echo "$ac_try_echo"; } >&5
1871 (eval "$ac_compile") 2>conftest.err
1872 ac_status=$?
1873 if test -s conftest.err; then
1874 grep -v '^ *+' conftest.err >conftest.er1
1875 cat conftest.er1 >&5
1876 mv -f conftest.er1 conftest.err
1878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1879 test $ac_status = 0; } && {
1880 test -z "$ac_fc_werror_flag" ||
1881 test ! -s conftest.err
1882 } && test -s conftest.$ac_objext; then :
1883 ac_retval=0
1884 else
1885 $as_echo "$as_me: failed program was:" >&5
1886 sed 's/^/| /' conftest.$ac_ext >&5
1888 ac_retval=1
1890 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1891 as_fn_set_status $ac_retval
1893 } # ac_fn_fc_try_compile
1895 # ac_fn_fc_try_link LINENO
1896 # ------------------------
1897 # Try to link conftest.$ac_ext, and return whether this succeeded.
1898 ac_fn_fc_try_link ()
1900 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1901 rm -f conftest.$ac_objext conftest$ac_exeext
1902 if { { ac_try="$ac_link"
1903 case "(($ac_try" in
1904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1905 *) ac_try_echo=$ac_try;;
1906 esac
1907 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1908 $as_echo "$ac_try_echo"; } >&5
1909 (eval "$ac_link") 2>conftest.err
1910 ac_status=$?
1911 if test -s conftest.err; then
1912 grep -v '^ *+' conftest.err >conftest.er1
1913 cat conftest.er1 >&5
1914 mv -f conftest.er1 conftest.err
1916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1917 test $ac_status = 0; } && {
1918 test -z "$ac_fc_werror_flag" ||
1919 test ! -s conftest.err
1920 } && test -s conftest$ac_exeext && {
1921 test "$cross_compiling" = yes ||
1922 test -x conftest$ac_exeext
1923 }; then :
1924 ac_retval=0
1925 else
1926 $as_echo "$as_me: failed program was:" >&5
1927 sed 's/^/| /' conftest.$ac_ext >&5
1929 ac_retval=1
1931 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1932 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1933 # interfere with the next link command; also delete a directory that is
1934 # left behind by Apple's compiler. We do this before executing the actions.
1935 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1936 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1937 as_fn_set_status $ac_retval
1939 } # ac_fn_fc_try_link
1941 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1942 # -------------------------------------------------------
1943 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1944 # the include files in INCLUDES and setting the cache variable VAR
1945 # accordingly.
1946 ac_fn_c_check_header_mongrel ()
1948 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1949 if eval \${$3+:} false; then :
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1951 $as_echo_n "checking for $2... " >&6; }
1952 if eval \${$3+:} false; then :
1953 $as_echo_n "(cached) " >&6
1955 eval ac_res=\$$3
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1957 $as_echo "$ac_res" >&6; }
1958 else
1959 # Is the header compilable?
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1961 $as_echo_n "checking $2 usability... " >&6; }
1962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1963 /* end confdefs.h. */
1965 #include <$2>
1966 _ACEOF
1967 if ac_fn_c_try_compile "$LINENO"; then :
1968 ac_header_compiler=yes
1969 else
1970 ac_header_compiler=no
1972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1974 $as_echo "$ac_header_compiler" >&6; }
1976 # Is the header present?
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1978 $as_echo_n "checking $2 presence... " >&6; }
1979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1980 /* end confdefs.h. */
1981 #include <$2>
1982 _ACEOF
1983 if ac_fn_c_try_cpp "$LINENO"; then :
1984 ac_header_preproc=yes
1985 else
1986 ac_header_preproc=no
1988 rm -f conftest.err conftest.i conftest.$ac_ext
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1990 $as_echo "$ac_header_preproc" >&6; }
1992 # So? What about this header?
1993 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1994 yes:no: )
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1996 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1998 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2000 no:yes:* )
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2002 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2004 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2006 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2008 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2010 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2012 esac
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2014 $as_echo_n "checking for $2... " >&6; }
2015 if eval \${$3+:} false; then :
2016 $as_echo_n "(cached) " >&6
2017 else
2018 eval "$3=\$ac_header_compiler"
2020 eval ac_res=\$$3
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2022 $as_echo "$ac_res" >&6; }
2024 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2026 } # ac_fn_c_check_header_mongrel
2028 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2029 # --------------------------------------------
2030 # Tries to find the compile-time value of EXPR in a program that includes
2031 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2032 # computed
2033 ac_fn_c_compute_int ()
2035 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2036 if test "$cross_compiling" = yes; then
2037 # Depending upon the size, compute the lo and hi bounds.
2038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2039 /* end confdefs.h. */
2042 main ()
2044 static int test_array [1 - 2 * !(($2) >= 0)];
2045 test_array [0] = 0;
2046 return test_array [0];
2049 return 0;
2051 _ACEOF
2052 if ac_fn_c_try_compile "$LINENO"; then :
2053 ac_lo=0 ac_mid=0
2054 while :; do
2055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2056 /* end confdefs.h. */
2059 main ()
2061 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2062 test_array [0] = 0;
2063 return test_array [0];
2066 return 0;
2068 _ACEOF
2069 if ac_fn_c_try_compile "$LINENO"; then :
2070 ac_hi=$ac_mid; break
2071 else
2072 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2073 if test $ac_lo -le $ac_mid; then
2074 ac_lo= ac_hi=
2075 break
2077 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2080 done
2081 else
2082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2083 /* end confdefs.h. */
2086 main ()
2088 static int test_array [1 - 2 * !(($2) < 0)];
2089 test_array [0] = 0;
2090 return test_array [0];
2093 return 0;
2095 _ACEOF
2096 if ac_fn_c_try_compile "$LINENO"; then :
2097 ac_hi=-1 ac_mid=-1
2098 while :; do
2099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2100 /* end confdefs.h. */
2103 main ()
2105 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2106 test_array [0] = 0;
2107 return test_array [0];
2110 return 0;
2112 _ACEOF
2113 if ac_fn_c_try_compile "$LINENO"; then :
2114 ac_lo=$ac_mid; break
2115 else
2116 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2117 if test $ac_mid -le $ac_hi; then
2118 ac_lo= ac_hi=
2119 break
2121 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2124 done
2125 else
2126 ac_lo= ac_hi=
2128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2131 # Binary search between lo and hi bounds.
2132 while test "x$ac_lo" != "x$ac_hi"; do
2133 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2135 /* end confdefs.h. */
2138 main ()
2140 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2141 test_array [0] = 0;
2142 return test_array [0];
2145 return 0;
2147 _ACEOF
2148 if ac_fn_c_try_compile "$LINENO"; then :
2149 ac_hi=$ac_mid
2150 else
2151 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2154 done
2155 case $ac_lo in #((
2156 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2157 '') ac_retval=1 ;;
2158 esac
2159 else
2160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2161 /* end confdefs.h. */
2163 static long int longval () { return $2; }
2164 static unsigned long int ulongval () { return $2; }
2165 #include <stdio.h>
2166 #include <stdlib.h>
2168 main ()
2171 FILE *f = fopen ("conftest.val", "w");
2172 if (! f)
2173 return 1;
2174 if (($2) < 0)
2176 long int i = longval ();
2177 if (i != ($2))
2178 return 1;
2179 fprintf (f, "%ld", i);
2181 else
2183 unsigned long int i = ulongval ();
2184 if (i != ($2))
2185 return 1;
2186 fprintf (f, "%lu", i);
2188 /* Do not output a trailing newline, as this causes \r\n confusion
2189 on some platforms. */
2190 return ferror (f) || fclose (f) != 0;
2193 return 0;
2195 _ACEOF
2196 if ac_fn_c_try_run "$LINENO"; then :
2197 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2198 else
2199 ac_retval=1
2201 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2202 conftest.$ac_objext conftest.beam conftest.$ac_ext
2203 rm -f conftest.val
2206 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2207 as_fn_set_status $ac_retval
2209 } # ac_fn_c_compute_int
2211 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2212 # -------------------------------------------
2213 # Tests whether TYPE exists after having included INCLUDES, setting cache
2214 # variable VAR accordingly.
2215 ac_fn_c_check_type ()
2217 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2219 $as_echo_n "checking for $2... " >&6; }
2220 if eval \${$3+:} false; then :
2221 $as_echo_n "(cached) " >&6
2222 else
2223 eval "$3=no"
2224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2225 /* end confdefs.h. */
2228 main ()
2230 if (sizeof ($2))
2231 return 0;
2233 return 0;
2235 _ACEOF
2236 if ac_fn_c_try_compile "$LINENO"; then :
2237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2238 /* end confdefs.h. */
2241 main ()
2243 if (sizeof (($2)))
2244 return 0;
2246 return 0;
2248 _ACEOF
2249 if ac_fn_c_try_compile "$LINENO"; then :
2251 else
2252 eval "$3=yes"
2254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2258 eval ac_res=\$$3
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2260 $as_echo "$ac_res" >&6; }
2261 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2263 } # ac_fn_c_check_type
2264 cat >config.log <<_ACEOF
2265 This file contains any messages produced by compilers while
2266 running configure, to aid debugging if configure makes a mistake.
2268 It was created by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was
2269 generated by GNU Autoconf 2.69. Invocation command line was
2271 $ $0 $@
2273 _ACEOF
2274 exec 5>>config.log
2276 cat <<_ASUNAME
2277 ## --------- ##
2278 ## Platform. ##
2279 ## --------- ##
2281 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2282 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2283 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2284 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2285 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2287 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2288 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2290 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2291 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2292 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2293 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2294 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2295 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2296 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2298 _ASUNAME
2300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2301 for as_dir in $PATH
2303 IFS=$as_save_IFS
2304 test -z "$as_dir" && as_dir=.
2305 $as_echo "PATH: $as_dir"
2306 done
2307 IFS=$as_save_IFS
2309 } >&5
2311 cat >&5 <<_ACEOF
2314 ## ----------- ##
2315 ## Core tests. ##
2316 ## ----------- ##
2318 _ACEOF
2321 # Keep a trace of the command line.
2322 # Strip out --no-create and --no-recursion so they do not pile up.
2323 # Strip out --silent because we don't want to record it for future runs.
2324 # Also quote any args containing shell meta-characters.
2325 # Make two passes to allow for proper duplicate-argument suppression.
2326 ac_configure_args=
2327 ac_configure_args0=
2328 ac_configure_args1=
2329 ac_must_keep_next=false
2330 for ac_pass in 1 2
2332 for ac_arg
2334 case $ac_arg in
2335 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2336 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2337 | -silent | --silent | --silen | --sile | --sil)
2338 continue ;;
2339 *\'*)
2340 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2341 esac
2342 case $ac_pass in
2343 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2345 as_fn_append ac_configure_args1 " '$ac_arg'"
2346 if test $ac_must_keep_next = true; then
2347 ac_must_keep_next=false # Got value, back to normal.
2348 else
2349 case $ac_arg in
2350 *=* | --config-cache | -C | -disable-* | --disable-* \
2351 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2352 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2353 | -with-* | --with-* | -without-* | --without-* | --x)
2354 case "$ac_configure_args0 " in
2355 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2356 esac
2358 -* ) ac_must_keep_next=true ;;
2359 esac
2361 as_fn_append ac_configure_args " '$ac_arg'"
2363 esac
2364 done
2365 done
2366 { ac_configure_args0=; unset ac_configure_args0;}
2367 { ac_configure_args1=; unset ac_configure_args1;}
2369 # When interrupted or exit'd, cleanup temporary files, and complete
2370 # config.log. We remove comments because anyway the quotes in there
2371 # would cause problems or look ugly.
2372 # WARNING: Use '\'' to represent an apostrophe within the trap.
2373 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2374 trap 'exit_status=$?
2375 # Save into config.log some information that might help in debugging.
2377 echo
2379 $as_echo "## ---------------- ##
2380 ## Cache variables. ##
2381 ## ---------------- ##"
2382 echo
2383 # The following way of writing the cache mishandles newlines in values,
2385 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2386 eval ac_val=\$$ac_var
2387 case $ac_val in #(
2388 *${as_nl}*)
2389 case $ac_var in #(
2390 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2391 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2392 esac
2393 case $ac_var in #(
2394 _ | IFS | as_nl) ;; #(
2395 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2396 *) { eval $ac_var=; unset $ac_var;} ;;
2397 esac ;;
2398 esac
2399 done
2400 (set) 2>&1 |
2401 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2402 *${as_nl}ac_space=\ *)
2403 sed -n \
2404 "s/'\''/'\''\\\\'\'''\''/g;
2405 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2406 ;; #(
2408 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2410 esac |
2411 sort
2413 echo
2415 $as_echo "## ----------------- ##
2416 ## Output variables. ##
2417 ## ----------------- ##"
2418 echo
2419 for ac_var in $ac_subst_vars
2421 eval ac_val=\$$ac_var
2422 case $ac_val in
2423 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2424 esac
2425 $as_echo "$ac_var='\''$ac_val'\''"
2426 done | sort
2427 echo
2429 if test -n "$ac_subst_files"; then
2430 $as_echo "## ------------------- ##
2431 ## File substitutions. ##
2432 ## ------------------- ##"
2433 echo
2434 for ac_var in $ac_subst_files
2436 eval ac_val=\$$ac_var
2437 case $ac_val in
2438 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2439 esac
2440 $as_echo "$ac_var='\''$ac_val'\''"
2441 done | sort
2442 echo
2445 if test -s confdefs.h; then
2446 $as_echo "## ----------- ##
2447 ## confdefs.h. ##
2448 ## ----------- ##"
2449 echo
2450 cat confdefs.h
2451 echo
2453 test "$ac_signal" != 0 &&
2454 $as_echo "$as_me: caught signal $ac_signal"
2455 $as_echo "$as_me: exit $exit_status"
2456 } >&5
2457 rm -f core *.core core.conftest.* &&
2458 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2459 exit $exit_status
2461 for ac_signal in 1 2 13 15; do
2462 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2463 done
2464 ac_signal=0
2466 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2467 rm -f -r conftest* confdefs.h
2469 $as_echo "/* confdefs.h */" > confdefs.h
2471 # Predefined preprocessor variables.
2473 cat >>confdefs.h <<_ACEOF
2474 #define PACKAGE_NAME "$PACKAGE_NAME"
2475 _ACEOF
2477 cat >>confdefs.h <<_ACEOF
2478 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2479 _ACEOF
2481 cat >>confdefs.h <<_ACEOF
2482 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2483 _ACEOF
2485 cat >>confdefs.h <<_ACEOF
2486 #define PACKAGE_STRING "$PACKAGE_STRING"
2487 _ACEOF
2489 cat >>confdefs.h <<_ACEOF
2490 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2491 _ACEOF
2493 cat >>confdefs.h <<_ACEOF
2494 #define PACKAGE_URL "$PACKAGE_URL"
2495 _ACEOF
2498 # Let the site file select an alternate cache file if it wants to.
2499 # Prefer an explicitly selected file to automatically selected ones.
2500 ac_site_file1=NONE
2501 ac_site_file2=NONE
2502 if test -n "$CONFIG_SITE"; then
2503 # We do not want a PATH search for config.site.
2504 case $CONFIG_SITE in #((
2505 -*) ac_site_file1=./$CONFIG_SITE;;
2506 */*) ac_site_file1=$CONFIG_SITE;;
2507 *) ac_site_file1=./$CONFIG_SITE;;
2508 esac
2509 elif test "x$prefix" != xNONE; then
2510 ac_site_file1=$prefix/share/config.site
2511 ac_site_file2=$prefix/etc/config.site
2512 else
2513 ac_site_file1=$ac_default_prefix/share/config.site
2514 ac_site_file2=$ac_default_prefix/etc/config.site
2516 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2518 test "x$ac_site_file" = xNONE && continue
2519 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2521 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2522 sed 's/^/| /' "$ac_site_file" >&5
2523 . "$ac_site_file" \
2524 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2525 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2526 as_fn_error $? "failed to load site script $ac_site_file
2527 See \`config.log' for more details" "$LINENO" 5; }
2529 done
2531 if test -r "$cache_file"; then
2532 # Some versions of bash will fail to source /dev/null (special files
2533 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2534 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2536 $as_echo "$as_me: loading cache $cache_file" >&6;}
2537 case $cache_file in
2538 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2539 *) . "./$cache_file";;
2540 esac
2542 else
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2544 $as_echo "$as_me: creating cache $cache_file" >&6;}
2545 >$cache_file
2548 as_fn_append ac_header_list " unistd.h"
2549 as_fn_append ac_func_list " secure_getenv"
2550 as_fn_append ac_func_list " __secure_getenv"
2551 as_fn_append ac_func_list " getuid"
2552 as_fn_append ac_func_list " geteuid"
2553 as_fn_append ac_func_list " getgid"
2554 as_fn_append ac_func_list " getegid"
2555 # Check that the precious variables saved in the cache have kept the same
2556 # value.
2557 ac_cache_corrupted=false
2558 for ac_var in $ac_precious_vars; do
2559 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2560 eval ac_new_set=\$ac_env_${ac_var}_set
2561 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2562 eval ac_new_val=\$ac_env_${ac_var}_value
2563 case $ac_old_set,$ac_new_set in
2564 set,)
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2566 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2567 ac_cache_corrupted=: ;;
2568 ,set)
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2570 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2571 ac_cache_corrupted=: ;;
2572 ,);;
2574 if test "x$ac_old_val" != "x$ac_new_val"; then
2575 # differences in whitespace do not lead to failure.
2576 ac_old_val_w=`echo x $ac_old_val`
2577 ac_new_val_w=`echo x $ac_new_val`
2578 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2580 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2581 ac_cache_corrupted=:
2582 else
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2584 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2585 eval $ac_var=\$ac_old_val
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2588 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2590 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2591 fi;;
2592 esac
2593 # Pass precious variables to config.status.
2594 if test "$ac_new_set" = set; then
2595 case $ac_new_val in
2596 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2597 *) ac_arg=$ac_var=$ac_new_val ;;
2598 esac
2599 case " $ac_configure_args " in
2600 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2601 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2602 esac
2604 done
2605 if $ac_cache_corrupted; then
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2607 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2609 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2610 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2612 ## -------------------- ##
2613 ## Main body of script. ##
2614 ## -------------------- ##
2616 ac_ext=c
2617 ac_cpp='$CPP $CPPFLAGS'
2618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2626 ac_config_headers="$ac_config_headers config.h"
2629 # -------
2630 # Options
2631 # -------
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2634 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2635 # Check whether --enable-version-specific-runtime-libs was given.
2636 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2637 enableval=$enable_version_specific_runtime_libs;
2638 case "$enableval" in
2639 yes|no) ;;
2640 *) as_fn_error $? "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
2641 esac
2643 else
2644 enable_version_specific_runtime_libs=no
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2649 $as_echo "$enable_version_specific_runtime_libs" >&6; }
2651 # We would like our source tree to be readonly. However when releases or
2652 # pre-releases are generated, the flex/bison generated files as well as the
2653 # various formats of manuals need to be included along with the rest of the
2654 # sources. Therefore we have --enable-generated-files-in-srcdir to do
2655 # just that.
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2657 $as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2658 # Check whether --enable-generated-files-in-srcdir was given.
2659 if test "${enable_generated_files_in_srcdir+set}" = set; then :
2660 enableval=$enable_generated_files_in_srcdir;
2661 case "$enableval" in
2662 yes|no) ;;
2663 *) as_fn_error $? "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
2664 esac
2666 else
2667 enable_generated_files_in_srcdir=no
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2672 $as_echo "$enable_generated_files_in_srcdir" >&6; }
2673 if test "$enable_generated_files_in_srcdir" = yes; then
2674 GENINSRC_TRUE=
2675 GENINSRC_FALSE='#'
2676 else
2677 GENINSRC_TRUE='#'
2678 GENINSRC_FALSE=
2683 # -------
2684 # -------
2686 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2688 # You will slowly go insane if you do not grok the following fact: when
2689 # building this library, the top-level /target/ becomes the library's /host/.
2691 # configure then causes --target to default to --host, exactly like any
2692 # other package using autoconf. Therefore, 'target' and 'host' will
2693 # always be the same. This makes sense both for native and cross compilers
2694 # just think about it for a little while. :-)
2696 # Also, if this library is being configured as part of a cross compiler, the
2697 # top-level configure script will pass the "real" host as $with_cross_host.
2699 # Do not delete or change the following two lines. For why, see
2700 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2701 ac_aux_dir=
2702 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2703 if test -f "$ac_dir/install-sh"; then
2704 ac_aux_dir=$ac_dir
2705 ac_install_sh="$ac_aux_dir/install-sh -c"
2706 break
2707 elif test -f "$ac_dir/install.sh"; then
2708 ac_aux_dir=$ac_dir
2709 ac_install_sh="$ac_aux_dir/install.sh -c"
2710 break
2711 elif test -f "$ac_dir/shtool"; then
2712 ac_aux_dir=$ac_dir
2713 ac_install_sh="$ac_aux_dir/shtool install -c"
2714 break
2716 done
2717 if test -z "$ac_aux_dir"; then
2718 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2721 # These three variables are undocumented and unsupported,
2722 # and are intended to be withdrawn in a future Autoconf release.
2723 # They can cause serious problems if a builder's source tree is in a directory
2724 # whose full name contains unusual characters.
2725 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2726 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2727 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2730 # Make sure we can run config.sub.
2731 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2732 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2735 $as_echo_n "checking build system type... " >&6; }
2736 if ${ac_cv_build+:} false; then :
2737 $as_echo_n "(cached) " >&6
2738 else
2739 ac_build_alias=$build_alias
2740 test "x$ac_build_alias" = x &&
2741 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2742 test "x$ac_build_alias" = x &&
2743 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2744 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2745 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2749 $as_echo "$ac_cv_build" >&6; }
2750 case $ac_cv_build in
2751 *-*-*) ;;
2752 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2753 esac
2754 build=$ac_cv_build
2755 ac_save_IFS=$IFS; IFS='-'
2756 set x $ac_cv_build
2757 shift
2758 build_cpu=$1
2759 build_vendor=$2
2760 shift; shift
2761 # Remember, the first character of IFS is used to create $*,
2762 # except with old shells:
2763 build_os=$*
2764 IFS=$ac_save_IFS
2765 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2769 $as_echo_n "checking host system type... " >&6; }
2770 if ${ac_cv_host+:} false; then :
2771 $as_echo_n "(cached) " >&6
2772 else
2773 if test "x$host_alias" = x; then
2774 ac_cv_host=$ac_cv_build
2775 else
2776 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2777 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2782 $as_echo "$ac_cv_host" >&6; }
2783 case $ac_cv_host in
2784 *-*-*) ;;
2785 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2786 esac
2787 host=$ac_cv_host
2788 ac_save_IFS=$IFS; IFS='-'
2789 set x $ac_cv_host
2790 shift
2791 host_cpu=$1
2792 host_vendor=$2
2793 shift; shift
2794 # Remember, the first character of IFS is used to create $*,
2795 # except with old shells:
2796 host_os=$*
2797 IFS=$ac_save_IFS
2798 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2802 $as_echo_n "checking target system type... " >&6; }
2803 if ${ac_cv_target+:} false; then :
2804 $as_echo_n "(cached) " >&6
2805 else
2806 if test "x$target_alias" = x; then
2807 ac_cv_target=$ac_cv_host
2808 else
2809 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2810 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2815 $as_echo "$ac_cv_target" >&6; }
2816 case $ac_cv_target in
2817 *-*-*) ;;
2818 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2819 esac
2820 target=$ac_cv_target
2821 ac_save_IFS=$IFS; IFS='-'
2822 set x $ac_cv_target
2823 shift
2824 target_cpu=$1
2825 target_vendor=$2
2826 shift; shift
2827 # Remember, the first character of IFS is used to create $*,
2828 # except with old shells:
2829 target_os=$*
2830 IFS=$ac_save_IFS
2831 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2834 # The aliases save the names the user supplied, while $host etc.
2835 # will get canonicalized.
2836 test -n "$target_alias" &&
2837 test "$program_prefix$program_suffix$program_transform_name" = \
2838 NONENONEs,x,x, &&
2839 program_prefix=${target_alias}-
2841 target_alias=${target_alias-$host_alias}
2843 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2844 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2845 # 1.9.0: minimum required version
2846 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2847 # of other PACKAGE_* variables will, however, and there's nothing
2848 # we can do about that; they come from AC_INIT).
2849 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2850 # file in the top srcdir, etc, etc), so stop complaining.
2851 # no-dist: we don't want 'dist' and related rules.
2852 # -Wall: turns on all automake warnings...
2853 # -Wno-portability: ...except this one, since GNU make is required.
2854 # -Wno-override: ... and this one, since we do want this in testsuite.
2855 am__api_version='1.15'
2857 # Find a good install program. We prefer a C program (faster),
2858 # so one script is as good as another. But avoid the broken or
2859 # incompatible versions:
2860 # SysV /etc/install, /usr/sbin/install
2861 # SunOS /usr/etc/install
2862 # IRIX /sbin/install
2863 # AIX /bin/install
2864 # AmigaOS /C/install, which installs bootblocks on floppy discs
2865 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2866 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2867 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2868 # OS/2's system install, which has a completely different semantic
2869 # ./install, which can be erroneously created by make from ./install.sh.
2870 # Reject install programs that cannot install multiple files.
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2872 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2873 if test -z "$INSTALL"; then
2874 if ${ac_cv_path_install+:} false; then :
2875 $as_echo_n "(cached) " >&6
2876 else
2877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2878 for as_dir in $PATH
2880 IFS=$as_save_IFS
2881 test -z "$as_dir" && as_dir=.
2882 # Account for people who put trailing slashes in PATH elements.
2883 case $as_dir/ in #((
2884 ./ | .// | /[cC]/* | \
2885 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2886 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2887 /usr/ucb/* ) ;;
2889 # OSF1 and SCO ODT 3.0 have their own names for install.
2890 # Don't use installbsd from OSF since it installs stuff as root
2891 # by default.
2892 for ac_prog in ginstall scoinst install; do
2893 for ac_exec_ext in '' $ac_executable_extensions; do
2894 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2895 if test $ac_prog = install &&
2896 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2897 # AIX install. It has an incompatible calling convention.
2899 elif test $ac_prog = install &&
2900 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2901 # program-specific install script used by HP pwplus--don't use.
2903 else
2904 rm -rf conftest.one conftest.two conftest.dir
2905 echo one > conftest.one
2906 echo two > conftest.two
2907 mkdir conftest.dir
2908 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2909 test -s conftest.one && test -s conftest.two &&
2910 test -s conftest.dir/conftest.one &&
2911 test -s conftest.dir/conftest.two
2912 then
2913 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2914 break 3
2918 done
2919 done
2921 esac
2923 done
2924 IFS=$as_save_IFS
2926 rm -rf conftest.one conftest.two conftest.dir
2929 if test "${ac_cv_path_install+set}" = set; then
2930 INSTALL=$ac_cv_path_install
2931 else
2932 # As a last resort, use the slow shell script. Don't cache a
2933 # value for INSTALL within a source directory, because that will
2934 # break other packages using the cache if that directory is
2935 # removed, or if the value is a relative name.
2936 INSTALL=$ac_install_sh
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2940 $as_echo "$INSTALL" >&6; }
2942 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2943 # It thinks the first close brace ends the variable substitution.
2944 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2946 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2948 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2951 $as_echo_n "checking whether build environment is sane... " >&6; }
2952 # Reject unsafe characters in $srcdir or the absolute working directory
2953 # name. Accept space and tab only in the latter.
2954 am_lf='
2956 case `pwd` in
2957 *[\\\"\#\$\&\'\`$am_lf]*)
2958 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2959 esac
2960 case $srcdir in
2961 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2962 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2963 esac
2965 # Do 'set' in a subshell so we don't clobber the current shell's
2966 # arguments. Must try -L first in case configure is actually a
2967 # symlink; some systems play weird games with the mod time of symlinks
2968 # (eg FreeBSD returns the mod time of the symlink's containing
2969 # directory).
2970 if (
2971 am_has_slept=no
2972 for am_try in 1 2; do
2973 echo "timestamp, slept: $am_has_slept" > conftest.file
2974 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2975 if test "$*" = "X"; then
2976 # -L didn't work.
2977 set X `ls -t "$srcdir/configure" conftest.file`
2979 if test "$*" != "X $srcdir/configure conftest.file" \
2980 && test "$*" != "X conftest.file $srcdir/configure"; then
2982 # If neither matched, then we have a broken ls. This can happen
2983 # if, for instance, CONFIG_SHELL is bash and it inherits a
2984 # broken ls alias from the environment. This has actually
2985 # happened. Such a system could not be considered "sane".
2986 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2987 alias in your environment" "$LINENO" 5
2989 if test "$2" = conftest.file || test $am_try -eq 2; then
2990 break
2992 # Just in case.
2993 sleep 1
2994 am_has_slept=yes
2995 done
2996 test "$2" = conftest.file
2998 then
2999 # Ok.
3001 else
3002 as_fn_error $? "newly created file is older than distributed files!
3003 Check your system clock" "$LINENO" 5
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3006 $as_echo "yes" >&6; }
3007 # If we didn't sleep, we still need to ensure time stamps of config.status and
3008 # generated files are strictly newer.
3009 am_sleep_pid=
3010 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3011 ( sleep 1 ) &
3012 am_sleep_pid=$!
3015 rm -f conftest.file
3017 test "$program_prefix" != NONE &&
3018 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3019 # Use a double $ so make ignores it.
3020 test "$program_suffix" != NONE &&
3021 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3022 # Double any \ or $.
3023 # By default was `s,x,x', remove it if useless.
3024 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3025 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3027 # Expand $ac_aux_dir to an absolute path.
3028 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3030 if test x"${MISSING+set}" != xset; then
3031 case $am_aux_dir in
3032 *\ * | *\ *)
3033 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3035 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3036 esac
3038 # Use eval to expand $SHELL
3039 if eval "$MISSING --is-lightweight"; then
3040 am_missing_run="$MISSING "
3041 else
3042 am_missing_run=
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3044 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3047 if test x"${install_sh+set}" != xset; then
3048 case $am_aux_dir in
3049 *\ * | *\ *)
3050 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3052 install_sh="\${SHELL} $am_aux_dir/install-sh"
3053 esac
3056 # Installed binaries are usually stripped using 'strip' when the user
3057 # run "make install-strip". However 'strip' might not be the right
3058 # tool to use in cross-compilation environments, therefore Automake
3059 # will honor the 'STRIP' environment variable to overrule this program.
3060 if test "$cross_compiling" != no; then
3061 if test -n "$ac_tool_prefix"; then
3062 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3063 set dummy ${ac_tool_prefix}strip; ac_word=$2
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3065 $as_echo_n "checking for $ac_word... " >&6; }
3066 if ${ac_cv_prog_STRIP+:} false; then :
3067 $as_echo_n "(cached) " >&6
3068 else
3069 if test -n "$STRIP"; then
3070 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3071 else
3072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3073 for as_dir in $PATH
3075 IFS=$as_save_IFS
3076 test -z "$as_dir" && as_dir=.
3077 for ac_exec_ext in '' $ac_executable_extensions; do
3078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3079 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3081 break 2
3083 done
3084 done
3085 IFS=$as_save_IFS
3089 STRIP=$ac_cv_prog_STRIP
3090 if test -n "$STRIP"; then
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3092 $as_echo "$STRIP" >&6; }
3093 else
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3095 $as_echo "no" >&6; }
3100 if test -z "$ac_cv_prog_STRIP"; then
3101 ac_ct_STRIP=$STRIP
3102 # Extract the first word of "strip", so it can be a program name with args.
3103 set dummy strip; ac_word=$2
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3105 $as_echo_n "checking for $ac_word... " >&6; }
3106 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3107 $as_echo_n "(cached) " >&6
3108 else
3109 if test -n "$ac_ct_STRIP"; then
3110 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3111 else
3112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3113 for as_dir in $PATH
3115 IFS=$as_save_IFS
3116 test -z "$as_dir" && as_dir=.
3117 for ac_exec_ext in '' $ac_executable_extensions; do
3118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3119 ac_cv_prog_ac_ct_STRIP="strip"
3120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3121 break 2
3123 done
3124 done
3125 IFS=$as_save_IFS
3129 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3130 if test -n "$ac_ct_STRIP"; then
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3132 $as_echo "$ac_ct_STRIP" >&6; }
3133 else
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3135 $as_echo "no" >&6; }
3138 if test "x$ac_ct_STRIP" = x; then
3139 STRIP=":"
3140 else
3141 case $cross_compiling:$ac_tool_warned in
3142 yes:)
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3144 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3145 ac_tool_warned=yes ;;
3146 esac
3147 STRIP=$ac_ct_STRIP
3149 else
3150 STRIP="$ac_cv_prog_STRIP"
3154 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3157 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3158 if test -z "$MKDIR_P"; then
3159 if ${ac_cv_path_mkdir+:} false; then :
3160 $as_echo_n "(cached) " >&6
3161 else
3162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3163 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3165 IFS=$as_save_IFS
3166 test -z "$as_dir" && as_dir=.
3167 for ac_prog in mkdir gmkdir; do
3168 for ac_exec_ext in '' $ac_executable_extensions; do
3169 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3170 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3171 'mkdir (GNU coreutils) '* | \
3172 'mkdir (coreutils) '* | \
3173 'mkdir (fileutils) '4.1*)
3174 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3175 break 3;;
3176 esac
3177 done
3178 done
3179 done
3180 IFS=$as_save_IFS
3184 test -d ./--version && rmdir ./--version
3185 if test "${ac_cv_path_mkdir+set}" = set; then
3186 MKDIR_P="$ac_cv_path_mkdir -p"
3187 else
3188 # As a last resort, use the slow shell script. Don't cache a
3189 # value for MKDIR_P within a source directory, because that will
3190 # break other packages using the cache if that directory is
3191 # removed, or if the value is a relative name.
3192 MKDIR_P="$ac_install_sh -d"
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3196 $as_echo "$MKDIR_P" >&6; }
3198 for ac_prog in gawk mawk nawk awk
3200 # Extract the first word of "$ac_prog", so it can be a program name with args.
3201 set dummy $ac_prog; ac_word=$2
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3203 $as_echo_n "checking for $ac_word... " >&6; }
3204 if ${ac_cv_prog_AWK+:} false; then :
3205 $as_echo_n "(cached) " >&6
3206 else
3207 if test -n "$AWK"; then
3208 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3209 else
3210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3211 for as_dir in $PATH
3213 IFS=$as_save_IFS
3214 test -z "$as_dir" && as_dir=.
3215 for ac_exec_ext in '' $ac_executable_extensions; do
3216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3217 ac_cv_prog_AWK="$ac_prog"
3218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3219 break 2
3221 done
3222 done
3223 IFS=$as_save_IFS
3227 AWK=$ac_cv_prog_AWK
3228 if test -n "$AWK"; then
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3230 $as_echo "$AWK" >&6; }
3231 else
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3233 $as_echo "no" >&6; }
3237 test -n "$AWK" && break
3238 done
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3241 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3242 set x ${MAKE-make}
3243 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3244 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3245 $as_echo_n "(cached) " >&6
3246 else
3247 cat >conftest.make <<\_ACEOF
3248 SHELL = /bin/sh
3249 all:
3250 @echo '@@@%%%=$(MAKE)=@@@%%%'
3251 _ACEOF
3252 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3253 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3254 *@@@%%%=?*=@@@%%%*)
3255 eval ac_cv_prog_make_${ac_make}_set=yes;;
3257 eval ac_cv_prog_make_${ac_make}_set=no;;
3258 esac
3259 rm -f conftest.make
3261 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3263 $as_echo "yes" >&6; }
3264 SET_MAKE=
3265 else
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3267 $as_echo "no" >&6; }
3268 SET_MAKE="MAKE=${MAKE-make}"
3271 rm -rf .tst 2>/dev/null
3272 mkdir .tst 2>/dev/null
3273 if test -d .tst; then
3274 am__leading_dot=.
3275 else
3276 am__leading_dot=_
3278 rmdir .tst 2>/dev/null
3280 # Check whether --enable-silent-rules was given.
3281 if test "${enable_silent_rules+set}" = set; then :
3282 enableval=$enable_silent_rules;
3285 case $enable_silent_rules in # (((
3286 yes) AM_DEFAULT_VERBOSITY=0;;
3287 no) AM_DEFAULT_VERBOSITY=1;;
3288 *) AM_DEFAULT_VERBOSITY=1;;
3289 esac
3290 am_make=${MAKE-make}
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3292 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3293 if ${am_cv_make_support_nested_variables+:} false; then :
3294 $as_echo_n "(cached) " >&6
3295 else
3296 if $as_echo 'TRUE=$(BAR$(V))
3297 BAR0=false
3298 BAR1=true
3300 am__doit:
3301 @$(TRUE)
3302 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3303 am_cv_make_support_nested_variables=yes
3304 else
3305 am_cv_make_support_nested_variables=no
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3309 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3310 if test $am_cv_make_support_nested_variables = yes; then
3311 AM_V='$(V)'
3312 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3313 else
3314 AM_V=$AM_DEFAULT_VERBOSITY
3315 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3317 AM_BACKSLASH='\'
3319 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3320 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3321 # is not polluted with repeated "-I."
3322 am__isrc=' -I$(srcdir)'
3323 # test to see if srcdir already configured
3324 if test -f $srcdir/config.status; then
3325 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3329 # test whether we have cygpath
3330 if test -z "$CYGPATH_W"; then
3331 if (cygpath --version) >/dev/null 2>/dev/null; then
3332 CYGPATH_W='cygpath -w'
3333 else
3334 CYGPATH_W=echo
3339 # Define the identity of the package.
3340 PACKAGE='libgomp'
3341 VERSION='1.0'
3344 cat >>confdefs.h <<_ACEOF
3345 #define PACKAGE "$PACKAGE"
3346 _ACEOF
3349 cat >>confdefs.h <<_ACEOF
3350 #define VERSION "$VERSION"
3351 _ACEOF
3353 # Some tools Automake needs.
3355 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3358 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3361 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3364 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3367 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3369 # For better backward compatibility. To be removed once Automake 1.9.x
3370 # dies out for good. For more background, see:
3371 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3372 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3373 mkdir_p='$(MKDIR_P)'
3375 # We need awk for the "check" target (and possibly the TAP driver). The
3376 # system "awk" is bad on some platforms.
3377 # Always define AMTAR for backward compatibility. Yes, it's still used
3378 # in the wild :-( We should find a proper way to deprecate it ...
3379 AMTAR='$${TAR-tar}'
3382 # We'll loop over all known methods to create a tar archive until one works.
3383 _am_tools='gnutar pax cpio none'
3385 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3392 # POSIX will say in a future version that running "rm -f" with no argument
3393 # is OK; and we want to be able to make that assumption in our Makefile
3394 # recipes. So use an aggressive probe to check that the usage we want is
3395 # actually supported "in the wild" to an acceptable degree.
3396 # See automake bug#10828.
3397 # To make any issue more visible, cause the running configure to be aborted
3398 # by default if the 'rm' program in use doesn't match our expectations; the
3399 # user can still override this though.
3400 if rm -f && rm -fr && rm -rf; then : OK; else
3401 cat >&2 <<'END'
3402 Oops!
3404 Your 'rm' program seems unable to run without file operands specified
3405 on the command line, even when the '-f' option is present. This is contrary
3406 to the behaviour of most rm programs out there, and not conforming with
3407 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3409 Please tell bug-automake@gnu.org about your system, including the value
3410 of your $PATH and any error possibly output before this message. This
3411 can help us improve future automake versions.
3414 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3415 echo 'Configuration will proceed anyway, since you have set the' >&2
3416 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3417 echo >&2
3418 else
3419 cat >&2 <<'END'
3420 Aborting the configuration process, to ensure you take notice of the issue.
3422 You can download and install GNU coreutils to get an 'rm' implementation
3423 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3425 If you want to complete the configuration process using your problematic
3426 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3427 to "yes", and re-run configure.
3430 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3434 # Default to --enable-multilib
3435 # Check whether --enable-multilib was given.
3436 if test "${enable_multilib+set}" = set; then :
3437 enableval=$enable_multilib; case "$enableval" in
3438 yes) multilib=yes ;;
3439 no) multilib=no ;;
3440 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
3441 esac
3442 else
3443 multilib=yes
3447 # We may get other options which we leave undocumented:
3448 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3449 # See config-ml.in if you want the gory details.
3451 if test "$srcdir" = "."; then
3452 if test "$with_target_subdir" != "."; then
3453 multi_basedir="$srcdir/$with_multisrctop../.."
3454 else
3455 multi_basedir="$srcdir/$with_multisrctop.."
3457 else
3458 multi_basedir="$srcdir/.."
3462 # Even if the default multilib is not a cross compilation,
3463 # it may be that some of the other multilibs are.
3464 if test $cross_compiling = no && test $multilib = yes \
3465 && test "x${with_multisubdir}" != x ; then
3466 cross_compiling=maybe
3469 ac_config_commands="$ac_config_commands default-1"
3473 # Check whether --with-toolexeclibdir was given.
3474 if test "${with_toolexeclibdir+set}" = set; then :
3475 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
3479 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
3481 esac
3482 else
3483 with_toolexeclibdir=no
3488 # Calculate toolexeclibdir
3489 # Also toolexecdir, though it's only used in toolexeclibdir
3490 case ${enable_version_specific_runtime_libs} in
3491 yes)
3492 # Need the gcc compiler version to know where to install libraries
3493 # and header files if --enable-version-specific-runtime-libs option
3494 # is selected.
3495 toolexecdir='$(libdir)/gcc/$(target_alias)'
3496 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3499 if test -n "$with_cross_host" &&
3500 test x"$with_cross_host" != x"no"; then
3501 # Install a library built with a cross compiler in tooldir, not libdir.
3502 toolexecdir='$(exec_prefix)/$(target_alias)'
3503 case ${with_toolexeclibdir} in
3505 toolexeclibdir='$(toolexecdir)/lib'
3508 toolexeclibdir=${with_toolexeclibdir}
3510 esac
3511 else
3512 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3513 toolexeclibdir='$(libdir)'
3515 multi_os_directory=`$CC -print-multi-os-directory`
3516 case $multi_os_directory in
3517 .) ;; # Avoid trailing /.
3518 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3519 esac
3521 esac
3525 # Check the compiler.
3526 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3527 # We must force CC to /not/ be precious variables; otherwise
3528 # the wrong, non-multilib-adjusted value will be used in multilibs.
3529 # As a side effect, we have to subst CFLAGS ourselves.
3533 ac_ext=c
3534 ac_cpp='$CPP $CPPFLAGS'
3535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3538 if test -n "$ac_tool_prefix"; then
3539 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3540 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3542 $as_echo_n "checking for $ac_word... " >&6; }
3543 if ${ac_cv_prog_CC+:} false; then :
3544 $as_echo_n "(cached) " >&6
3545 else
3546 if test -n "$CC"; then
3547 ac_cv_prog_CC="$CC" # Let the user override the test.
3548 else
3549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3550 for as_dir in $PATH
3552 IFS=$as_save_IFS
3553 test -z "$as_dir" && as_dir=.
3554 for ac_exec_ext in '' $ac_executable_extensions; do
3555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3556 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3558 break 2
3560 done
3561 done
3562 IFS=$as_save_IFS
3566 CC=$ac_cv_prog_CC
3567 if test -n "$CC"; then
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3569 $as_echo "$CC" >&6; }
3570 else
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3572 $as_echo "no" >&6; }
3577 if test -z "$ac_cv_prog_CC"; then
3578 ac_ct_CC=$CC
3579 # Extract the first word of "gcc", so it can be a program name with args.
3580 set dummy gcc; ac_word=$2
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3582 $as_echo_n "checking for $ac_word... " >&6; }
3583 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3584 $as_echo_n "(cached) " >&6
3585 else
3586 if test -n "$ac_ct_CC"; then
3587 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3588 else
3589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3590 for as_dir in $PATH
3592 IFS=$as_save_IFS
3593 test -z "$as_dir" && as_dir=.
3594 for ac_exec_ext in '' $ac_executable_extensions; do
3595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3596 ac_cv_prog_ac_ct_CC="gcc"
3597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3598 break 2
3600 done
3601 done
3602 IFS=$as_save_IFS
3606 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3607 if test -n "$ac_ct_CC"; then
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3609 $as_echo "$ac_ct_CC" >&6; }
3610 else
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3612 $as_echo "no" >&6; }
3615 if test "x$ac_ct_CC" = x; then
3616 CC=""
3617 else
3618 case $cross_compiling:$ac_tool_warned in
3619 yes:)
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3621 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3622 ac_tool_warned=yes ;;
3623 esac
3624 CC=$ac_ct_CC
3626 else
3627 CC="$ac_cv_prog_CC"
3630 if test -z "$CC"; then
3631 if test -n "$ac_tool_prefix"; then
3632 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3633 set dummy ${ac_tool_prefix}cc; ac_word=$2
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3635 $as_echo_n "checking for $ac_word... " >&6; }
3636 if ${ac_cv_prog_CC+:} false; then :
3637 $as_echo_n "(cached) " >&6
3638 else
3639 if test -n "$CC"; then
3640 ac_cv_prog_CC="$CC" # Let the user override the test.
3641 else
3642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3643 for as_dir in $PATH
3645 IFS=$as_save_IFS
3646 test -z "$as_dir" && as_dir=.
3647 for ac_exec_ext in '' $ac_executable_extensions; do
3648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3649 ac_cv_prog_CC="${ac_tool_prefix}cc"
3650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3651 break 2
3653 done
3654 done
3655 IFS=$as_save_IFS
3659 CC=$ac_cv_prog_CC
3660 if test -n "$CC"; then
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3662 $as_echo "$CC" >&6; }
3663 else
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3665 $as_echo "no" >&6; }
3671 if test -z "$CC"; then
3672 # Extract the first word of "cc", so it can be a program name with args.
3673 set dummy cc; ac_word=$2
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3675 $as_echo_n "checking for $ac_word... " >&6; }
3676 if ${ac_cv_prog_CC+:} false; then :
3677 $as_echo_n "(cached) " >&6
3678 else
3679 if test -n "$CC"; then
3680 ac_cv_prog_CC="$CC" # Let the user override the test.
3681 else
3682 ac_prog_rejected=no
3683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3684 for as_dir in $PATH
3686 IFS=$as_save_IFS
3687 test -z "$as_dir" && as_dir=.
3688 for ac_exec_ext in '' $ac_executable_extensions; do
3689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3690 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3691 ac_prog_rejected=yes
3692 continue
3694 ac_cv_prog_CC="cc"
3695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3696 break 2
3698 done
3699 done
3700 IFS=$as_save_IFS
3702 if test $ac_prog_rejected = yes; then
3703 # We found a bogon in the path, so make sure we never use it.
3704 set dummy $ac_cv_prog_CC
3705 shift
3706 if test $# != 0; then
3707 # We chose a different compiler from the bogus one.
3708 # However, it has the same basename, so the bogon will be chosen
3709 # first if we set CC to just the basename; use the full file name.
3710 shift
3711 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3716 CC=$ac_cv_prog_CC
3717 if test -n "$CC"; then
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3719 $as_echo "$CC" >&6; }
3720 else
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3722 $as_echo "no" >&6; }
3727 if test -z "$CC"; then
3728 if test -n "$ac_tool_prefix"; then
3729 for ac_prog in cl.exe
3731 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3732 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3734 $as_echo_n "checking for $ac_word... " >&6; }
3735 if ${ac_cv_prog_CC+:} false; then :
3736 $as_echo_n "(cached) " >&6
3737 else
3738 if test -n "$CC"; then
3739 ac_cv_prog_CC="$CC" # Let the user override the test.
3740 else
3741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3742 for as_dir in $PATH
3744 IFS=$as_save_IFS
3745 test -z "$as_dir" && as_dir=.
3746 for ac_exec_ext in '' $ac_executable_extensions; do
3747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3748 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3750 break 2
3752 done
3753 done
3754 IFS=$as_save_IFS
3758 CC=$ac_cv_prog_CC
3759 if test -n "$CC"; then
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3761 $as_echo "$CC" >&6; }
3762 else
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3764 $as_echo "no" >&6; }
3768 test -n "$CC" && break
3769 done
3771 if test -z "$CC"; then
3772 ac_ct_CC=$CC
3773 for ac_prog in cl.exe
3775 # Extract the first word of "$ac_prog", so it can be a program name with args.
3776 set dummy $ac_prog; ac_word=$2
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3778 $as_echo_n "checking for $ac_word... " >&6; }
3779 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3780 $as_echo_n "(cached) " >&6
3781 else
3782 if test -n "$ac_ct_CC"; then
3783 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3784 else
3785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3786 for as_dir in $PATH
3788 IFS=$as_save_IFS
3789 test -z "$as_dir" && as_dir=.
3790 for ac_exec_ext in '' $ac_executable_extensions; do
3791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3792 ac_cv_prog_ac_ct_CC="$ac_prog"
3793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3794 break 2
3796 done
3797 done
3798 IFS=$as_save_IFS
3802 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3803 if test -n "$ac_ct_CC"; then
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3805 $as_echo "$ac_ct_CC" >&6; }
3806 else
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3808 $as_echo "no" >&6; }
3812 test -n "$ac_ct_CC" && break
3813 done
3815 if test "x$ac_ct_CC" = x; then
3816 CC=""
3817 else
3818 case $cross_compiling:$ac_tool_warned in
3819 yes:)
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3821 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3822 ac_tool_warned=yes ;;
3823 esac
3824 CC=$ac_ct_CC
3831 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3832 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3833 as_fn_error $? "no acceptable C compiler found in \$PATH
3834 See \`config.log' for more details" "$LINENO" 5; }
3836 # Provide some information about the compiler.
3837 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3838 set X $ac_compile
3839 ac_compiler=$2
3840 for ac_option in --version -v -V -qversion; do
3841 { { ac_try="$ac_compiler $ac_option >&5"
3842 case "(($ac_try" in
3843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3844 *) ac_try_echo=$ac_try;;
3845 esac
3846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3847 $as_echo "$ac_try_echo"; } >&5
3848 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3849 ac_status=$?
3850 if test -s conftest.err; then
3851 sed '10a\
3852 ... rest of stderr output deleted ...
3853 10q' conftest.err >conftest.er1
3854 cat conftest.er1 >&5
3856 rm -f conftest.er1 conftest.err
3857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3858 test $ac_status = 0; }
3859 done
3861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3862 /* end confdefs.h. */
3865 main ()
3869 return 0;
3871 _ACEOF
3872 ac_clean_files_save=$ac_clean_files
3873 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3874 # Try to create an executable without -o first, disregard a.out.
3875 # It will help us diagnose broken compilers, and finding out an intuition
3876 # of exeext.
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3878 $as_echo_n "checking whether the C compiler works... " >&6; }
3879 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3881 # The possible output files:
3882 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3884 ac_rmfiles=
3885 for ac_file in $ac_files
3887 case $ac_file in
3888 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3889 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3890 esac
3891 done
3892 rm -f $ac_rmfiles
3894 if { { ac_try="$ac_link_default"
3895 case "(($ac_try" in
3896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3897 *) ac_try_echo=$ac_try;;
3898 esac
3899 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3900 $as_echo "$ac_try_echo"; } >&5
3901 (eval "$ac_link_default") 2>&5
3902 ac_status=$?
3903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3904 test $ac_status = 0; }; then :
3905 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3906 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3907 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3908 # so that the user can short-circuit this test for compilers unknown to
3909 # Autoconf.
3910 for ac_file in $ac_files ''
3912 test -f "$ac_file" || continue
3913 case $ac_file in
3914 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3916 [ab].out )
3917 # We found the default executable, but exeext='' is most
3918 # certainly right.
3919 break;;
3920 *.* )
3921 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3922 then :; else
3923 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3925 # We set ac_cv_exeext here because the later test for it is not
3926 # safe: cross compilers may not add the suffix if given an `-o'
3927 # argument, so we may need to know it at that point already.
3928 # Even if this section looks crufty: it has the advantage of
3929 # actually working.
3930 break;;
3932 break;;
3933 esac
3934 done
3935 test "$ac_cv_exeext" = no && ac_cv_exeext=
3937 else
3938 ac_file=''
3940 if test -z "$ac_file"; then :
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3942 $as_echo "no" >&6; }
3943 $as_echo "$as_me: failed program was:" >&5
3944 sed 's/^/| /' conftest.$ac_ext >&5
3946 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3947 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3948 as_fn_error 77 "C compiler cannot create executables
3949 See \`config.log' for more details" "$LINENO" 5; }
3950 else
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3952 $as_echo "yes" >&6; }
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3955 $as_echo_n "checking for C compiler default output file name... " >&6; }
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3957 $as_echo "$ac_file" >&6; }
3958 ac_exeext=$ac_cv_exeext
3960 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3961 ac_clean_files=$ac_clean_files_save
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3963 $as_echo_n "checking for suffix of executables... " >&6; }
3964 if { { ac_try="$ac_link"
3965 case "(($ac_try" in
3966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3967 *) ac_try_echo=$ac_try;;
3968 esac
3969 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3970 $as_echo "$ac_try_echo"; } >&5
3971 (eval "$ac_link") 2>&5
3972 ac_status=$?
3973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3974 test $ac_status = 0; }; then :
3975 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3976 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3977 # work properly (i.e., refer to `conftest.exe'), while it won't with
3978 # `rm'.
3979 for ac_file in conftest.exe conftest conftest.*; do
3980 test -f "$ac_file" || continue
3981 case $ac_file in
3982 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3983 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3984 break;;
3985 * ) break;;
3986 esac
3987 done
3988 else
3989 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3990 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3991 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3992 See \`config.log' for more details" "$LINENO" 5; }
3994 rm -f conftest conftest$ac_cv_exeext
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3996 $as_echo "$ac_cv_exeext" >&6; }
3998 rm -f conftest.$ac_ext
3999 EXEEXT=$ac_cv_exeext
4000 ac_exeext=$EXEEXT
4001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4002 /* end confdefs.h. */
4003 #include <stdio.h>
4005 main ()
4007 FILE *f = fopen ("conftest.out", "w");
4008 return ferror (f) || fclose (f) != 0;
4011 return 0;
4013 _ACEOF
4014 ac_clean_files="$ac_clean_files conftest.out"
4015 # Check that the compiler produces executables we can run. If not, either
4016 # the compiler is broken, or we cross compile.
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4018 $as_echo_n "checking whether we are cross compiling... " >&6; }
4019 if test "$cross_compiling" != yes; then
4020 { { ac_try="$ac_link"
4021 case "(($ac_try" in
4022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4023 *) ac_try_echo=$ac_try;;
4024 esac
4025 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4026 $as_echo "$ac_try_echo"; } >&5
4027 (eval "$ac_link") 2>&5
4028 ac_status=$?
4029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4030 test $ac_status = 0; }
4031 if { ac_try='./conftest$ac_cv_exeext'
4032 { { case "(($ac_try" in
4033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4034 *) ac_try_echo=$ac_try;;
4035 esac
4036 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4037 $as_echo "$ac_try_echo"; } >&5
4038 (eval "$ac_try") 2>&5
4039 ac_status=$?
4040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4041 test $ac_status = 0; }; }; then
4042 cross_compiling=no
4043 else
4044 if test "$cross_compiling" = maybe; then
4045 cross_compiling=yes
4046 else
4047 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4048 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4049 as_fn_error $? "cannot run C compiled programs.
4050 If you meant to cross compile, use \`--host'.
4051 See \`config.log' for more details" "$LINENO" 5; }
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4056 $as_echo "$cross_compiling" >&6; }
4058 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4059 ac_clean_files=$ac_clean_files_save
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4061 $as_echo_n "checking for suffix of object files... " >&6; }
4062 if ${ac_cv_objext+:} false; then :
4063 $as_echo_n "(cached) " >&6
4064 else
4065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4066 /* end confdefs.h. */
4069 main ()
4073 return 0;
4075 _ACEOF
4076 rm -f conftest.o conftest.obj
4077 if { { ac_try="$ac_compile"
4078 case "(($ac_try" in
4079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4080 *) ac_try_echo=$ac_try;;
4081 esac
4082 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4083 $as_echo "$ac_try_echo"; } >&5
4084 (eval "$ac_compile") 2>&5
4085 ac_status=$?
4086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4087 test $ac_status = 0; }; then :
4088 for ac_file in conftest.o conftest.obj conftest.*; do
4089 test -f "$ac_file" || continue;
4090 case $ac_file in
4091 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4092 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4093 break;;
4094 esac
4095 done
4096 else
4097 $as_echo "$as_me: failed program was:" >&5
4098 sed 's/^/| /' conftest.$ac_ext >&5
4100 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4101 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4102 as_fn_error $? "cannot compute suffix of object files: cannot compile
4103 See \`config.log' for more details" "$LINENO" 5; }
4105 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4108 $as_echo "$ac_cv_objext" >&6; }
4109 OBJEXT=$ac_cv_objext
4110 ac_objext=$OBJEXT
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4112 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4113 if ${ac_cv_c_compiler_gnu+:} false; then :
4114 $as_echo_n "(cached) " >&6
4115 else
4116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4117 /* end confdefs.h. */
4120 main ()
4122 #ifndef __GNUC__
4123 choke me
4124 #endif
4127 return 0;
4129 _ACEOF
4130 if ac_fn_c_try_compile "$LINENO"; then :
4131 ac_compiler_gnu=yes
4132 else
4133 ac_compiler_gnu=no
4135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4136 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4140 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4141 if test $ac_compiler_gnu = yes; then
4142 GCC=yes
4143 else
4144 GCC=
4146 ac_test_CFLAGS=${CFLAGS+set}
4147 ac_save_CFLAGS=$CFLAGS
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4149 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4150 if ${ac_cv_prog_cc_g+:} false; then :
4151 $as_echo_n "(cached) " >&6
4152 else
4153 ac_save_c_werror_flag=$ac_c_werror_flag
4154 ac_c_werror_flag=yes
4155 ac_cv_prog_cc_g=no
4156 CFLAGS="-g"
4157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4158 /* end confdefs.h. */
4161 main ()
4165 return 0;
4167 _ACEOF
4168 if ac_fn_c_try_compile "$LINENO"; then :
4169 ac_cv_prog_cc_g=yes
4170 else
4171 CFLAGS=""
4172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4173 /* end confdefs.h. */
4176 main ()
4180 return 0;
4182 _ACEOF
4183 if ac_fn_c_try_compile "$LINENO"; then :
4185 else
4186 ac_c_werror_flag=$ac_save_c_werror_flag
4187 CFLAGS="-g"
4188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4189 /* end confdefs.h. */
4192 main ()
4196 return 0;
4198 _ACEOF
4199 if ac_fn_c_try_compile "$LINENO"; then :
4200 ac_cv_prog_cc_g=yes
4202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4207 ac_c_werror_flag=$ac_save_c_werror_flag
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4210 $as_echo "$ac_cv_prog_cc_g" >&6; }
4211 if test "$ac_test_CFLAGS" = set; then
4212 CFLAGS=$ac_save_CFLAGS
4213 elif test $ac_cv_prog_cc_g = yes; then
4214 if test "$GCC" = yes; then
4215 CFLAGS="-g -O2"
4216 else
4217 CFLAGS="-g"
4219 else
4220 if test "$GCC" = yes; then
4221 CFLAGS="-O2"
4222 else
4223 CFLAGS=
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4227 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4228 if ${ac_cv_prog_cc_c89+:} false; then :
4229 $as_echo_n "(cached) " >&6
4230 else
4231 ac_cv_prog_cc_c89=no
4232 ac_save_CC=$CC
4233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4234 /* end confdefs.h. */
4235 #include <stdarg.h>
4236 #include <stdio.h>
4237 struct stat;
4238 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4239 struct buf { int x; };
4240 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4241 static char *e (p, i)
4242 char **p;
4243 int i;
4245 return p[i];
4247 static char *f (char * (*g) (char **, int), char **p, ...)
4249 char *s;
4250 va_list v;
4251 va_start (v,p);
4252 s = g (p, va_arg (v,int));
4253 va_end (v);
4254 return s;
4257 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4258 function prototypes and stuff, but not '\xHH' hex character constants.
4259 These don't provoke an error unfortunately, instead are silently treated
4260 as 'x'. The following induces an error, until -std is added to get
4261 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4262 array size at least. It's necessary to write '\x00'==0 to get something
4263 that's true only with -std. */
4264 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4266 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4267 inside strings and character constants. */
4268 #define FOO(x) 'x'
4269 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4271 int test (int i, double x);
4272 struct s1 {int (*f) (int a);};
4273 struct s2 {int (*f) (double a);};
4274 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4275 int argc;
4276 char **argv;
4278 main ()
4280 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4282 return 0;
4284 _ACEOF
4285 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4286 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4288 CC="$ac_save_CC $ac_arg"
4289 if ac_fn_c_try_compile "$LINENO"; then :
4290 ac_cv_prog_cc_c89=$ac_arg
4292 rm -f core conftest.err conftest.$ac_objext
4293 test "x$ac_cv_prog_cc_c89" != "xno" && break
4294 done
4295 rm -f conftest.$ac_ext
4296 CC=$ac_save_CC
4299 # AC_CACHE_VAL
4300 case "x$ac_cv_prog_cc_c89" in
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4303 $as_echo "none needed" >&6; } ;;
4304 xno)
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4306 $as_echo "unsupported" >&6; } ;;
4308 CC="$CC $ac_cv_prog_cc_c89"
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4310 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4311 esac
4312 if test "x$ac_cv_prog_cc_c89" != xno; then :
4316 ac_ext=c
4317 ac_cpp='$CPP $CPPFLAGS'
4318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4322 ac_ext=c
4323 ac_cpp='$CPP $CPPFLAGS'
4324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4328 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4329 if ${am_cv_prog_cc_c_o+:} false; then :
4330 $as_echo_n "(cached) " >&6
4331 else
4332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4333 /* end confdefs.h. */
4336 main ()
4340 return 0;
4342 _ACEOF
4343 # Make sure it works both with $CC and with simple cc.
4344 # Following AC_PROG_CC_C_O, we do the test twice because some
4345 # compilers refuse to overwrite an existing .o file with -o,
4346 # though they will create one.
4347 am_cv_prog_cc_c_o=yes
4348 for am_i in 1 2; do
4349 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4350 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4351 ac_status=$?
4352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353 (exit $ac_status); } \
4354 && test -f conftest2.$ac_objext; then
4355 : OK
4356 else
4357 am_cv_prog_cc_c_o=no
4358 break
4360 done
4361 rm -f core conftest*
4362 unset am_i
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4365 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4366 if test "$am_cv_prog_cc_c_o" != yes; then
4367 # Losing compiler, so override with the script.
4368 # FIXME: It is wrong to rewrite CC.
4369 # But if we don't then we get into trouble of one sort or another.
4370 # A longer-term fix would be to have automake use am__CC in this case,
4371 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4372 CC="$am_aux_dir/compile $CC"
4374 ac_ext=c
4375 ac_cpp='$CPP $CPPFLAGS'
4376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4380 DEPDIR="${am__leading_dot}deps"
4382 ac_config_commands="$ac_config_commands depfiles"
4385 am_make=${MAKE-make}
4386 cat > confinc << 'END'
4387 am__doit:
4388 @echo this is the am__doit target
4389 .PHONY: am__doit
4391 # If we don't find an include directive, just comment out the code.
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4393 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4394 am__include="#"
4395 am__quote=
4396 _am_result=none
4397 # First try GNU make style include.
4398 echo "include confinc" > confmf
4399 # Ignore all kinds of additional output from 'make'.
4400 case `$am_make -s -f confmf 2> /dev/null` in #(
4401 *the\ am__doit\ target*)
4402 am__include=include
4403 am__quote=
4404 _am_result=GNU
4406 esac
4407 # Now try BSD make style include.
4408 if test "$am__include" = "#"; then
4409 echo '.include "confinc"' > confmf
4410 case `$am_make -s -f confmf 2> /dev/null` in #(
4411 *the\ am__doit\ target*)
4412 am__include=.include
4413 am__quote="\""
4414 _am_result=BSD
4416 esac
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4421 $as_echo "$_am_result" >&6; }
4422 rm -f confinc confmf
4424 # Check whether --enable-dependency-tracking was given.
4425 if test "${enable_dependency_tracking+set}" = set; then :
4426 enableval=$enable_dependency_tracking;
4429 if test "x$enable_dependency_tracking" != xno; then
4430 am_depcomp="$ac_aux_dir/depcomp"
4431 AMDEPBACKSLASH='\'
4432 am__nodep='_no'
4434 if test "x$enable_dependency_tracking" != xno; then
4435 AMDEP_TRUE=
4436 AMDEP_FALSE='#'
4437 else
4438 AMDEP_TRUE='#'
4439 AMDEP_FALSE=
4444 depcc="$CC" am_compiler_list=
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4447 $as_echo_n "checking dependency style of $depcc... " >&6; }
4448 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4449 $as_echo_n "(cached) " >&6
4450 else
4451 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4452 # We make a subdir and do the tests there. Otherwise we can end up
4453 # making bogus files that we don't know about and never remove. For
4454 # instance it was reported that on HP-UX the gcc test will end up
4455 # making a dummy file named 'D' -- because '-MD' means "put the output
4456 # in D".
4457 rm -rf conftest.dir
4458 mkdir conftest.dir
4459 # Copy depcomp to subdir because otherwise we won't find it if we're
4460 # using a relative directory.
4461 cp "$am_depcomp" conftest.dir
4462 cd conftest.dir
4463 # We will build objects and dependencies in a subdirectory because
4464 # it helps to detect inapplicable dependency modes. For instance
4465 # both Tru64's cc and ICC support -MD to output dependencies as a
4466 # side effect of compilation, but ICC will put the dependencies in
4467 # the current directory while Tru64 will put them in the object
4468 # directory.
4469 mkdir sub
4471 am_cv_CC_dependencies_compiler_type=none
4472 if test "$am_compiler_list" = ""; then
4473 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4475 am__universal=false
4476 case " $depcc " in #(
4477 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4478 esac
4480 for depmode in $am_compiler_list; do
4481 # Setup a source with many dependencies, because some compilers
4482 # like to wrap large dependency lists on column 80 (with \), and
4483 # we should not choose a depcomp mode which is confused by this.
4485 # We need to recreate these files for each test, as the compiler may
4486 # overwrite some of them when testing with obscure command lines.
4487 # This happens at least with the AIX C compiler.
4488 : > sub/conftest.c
4489 for i in 1 2 3 4 5 6; do
4490 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4491 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4492 # Solaris 10 /bin/sh.
4493 echo '/* dummy */' > sub/conftst$i.h
4494 done
4495 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4497 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4498 # mode. It turns out that the SunPro C++ compiler does not properly
4499 # handle '-M -o', and we need to detect this. Also, some Intel
4500 # versions had trouble with output in subdirs.
4501 am__obj=sub/conftest.${OBJEXT-o}
4502 am__minus_obj="-o $am__obj"
4503 case $depmode in
4504 gcc)
4505 # This depmode causes a compiler race in universal mode.
4506 test "$am__universal" = false || continue
4508 nosideeffect)
4509 # After this tag, mechanisms are not by side-effect, so they'll
4510 # only be used when explicitly requested.
4511 if test "x$enable_dependency_tracking" = xyes; then
4512 continue
4513 else
4514 break
4517 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4518 # This compiler won't grok '-c -o', but also, the minuso test has
4519 # not run yet. These depmodes are late enough in the game, and
4520 # so weak that their functioning should not be impacted.
4521 am__obj=conftest.${OBJEXT-o}
4522 am__minus_obj=
4524 none) break ;;
4525 esac
4526 if depmode=$depmode \
4527 source=sub/conftest.c object=$am__obj \
4528 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4529 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4530 >/dev/null 2>conftest.err &&
4531 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4532 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4533 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4534 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4535 # icc doesn't choke on unknown options, it will just issue warnings
4536 # or remarks (even with -Werror). So we grep stderr for any message
4537 # that says an option was ignored or not supported.
4538 # When given -MP, icc 7.0 and 7.1 complain thusly:
4539 # icc: Command line warning: ignoring option '-M'; no argument required
4540 # The diagnosis changed in icc 8.0:
4541 # icc: Command line remark: option '-MP' not supported
4542 if (grep 'ignoring option' conftest.err ||
4543 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4544 am_cv_CC_dependencies_compiler_type=$depmode
4545 break
4548 done
4550 cd ..
4551 rm -rf conftest.dir
4552 else
4553 am_cv_CC_dependencies_compiler_type=none
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4558 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4559 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4562 test "x$enable_dependency_tracking" != xno \
4563 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4564 am__fastdepCC_TRUE=
4565 am__fastdepCC_FALSE='#'
4566 else
4567 am__fastdepCC_TRUE='#'
4568 am__fastdepCC_FALSE=
4576 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
4577 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
4578 # in both places for now and restore CFLAGS at the end of config.
4579 save_CFLAGS="$CFLAGS"
4581 # Check whether --enable-werror was given.
4582 if test "${enable_werror+set}" = set; then :
4583 enableval=$enable_werror;
4586 # Add -Wall -Werror if we are using GCC.
4587 if test "x$GCC" = "xyes"; then :
4588 XCFLAGS="$XCFLAGS -Wall"
4590 if test "x$enable_werror" != "xno" && test "x$GCC" = "xyes"; then :
4591 XCFLAGS="$XCFLAGS -Werror"
4594 # Find other programs we need.
4595 if test -n "$ac_tool_prefix"; then
4596 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4597 set dummy ${ac_tool_prefix}ar; ac_word=$2
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4599 $as_echo_n "checking for $ac_word... " >&6; }
4600 if ${ac_cv_prog_AR+:} false; then :
4601 $as_echo_n "(cached) " >&6
4602 else
4603 if test -n "$AR"; then
4604 ac_cv_prog_AR="$AR" # Let the user override the test.
4605 else
4606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4607 for as_dir in $PATH
4609 IFS=$as_save_IFS
4610 test -z "$as_dir" && as_dir=.
4611 for ac_exec_ext in '' $ac_executable_extensions; do
4612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4613 ac_cv_prog_AR="${ac_tool_prefix}ar"
4614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4615 break 2
4617 done
4618 done
4619 IFS=$as_save_IFS
4623 AR=$ac_cv_prog_AR
4624 if test -n "$AR"; then
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4626 $as_echo "$AR" >&6; }
4627 else
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4629 $as_echo "no" >&6; }
4634 if test -z "$ac_cv_prog_AR"; then
4635 ac_ct_AR=$AR
4636 # Extract the first word of "ar", so it can be a program name with args.
4637 set dummy ar; ac_word=$2
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4639 $as_echo_n "checking for $ac_word... " >&6; }
4640 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4641 $as_echo_n "(cached) " >&6
4642 else
4643 if test -n "$ac_ct_AR"; then
4644 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4645 else
4646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4647 for as_dir in $PATH
4649 IFS=$as_save_IFS
4650 test -z "$as_dir" && as_dir=.
4651 for ac_exec_ext in '' $ac_executable_extensions; do
4652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4653 ac_cv_prog_ac_ct_AR="ar"
4654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4655 break 2
4657 done
4658 done
4659 IFS=$as_save_IFS
4663 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4664 if test -n "$ac_ct_AR"; then
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4666 $as_echo "$ac_ct_AR" >&6; }
4667 else
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4669 $as_echo "no" >&6; }
4672 if test "x$ac_ct_AR" = x; then
4673 AR=""
4674 else
4675 case $cross_compiling:$ac_tool_warned in
4676 yes:)
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4678 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4679 ac_tool_warned=yes ;;
4680 esac
4681 AR=$ac_ct_AR
4683 else
4684 AR="$ac_cv_prog_AR"
4687 if test -n "$ac_tool_prefix"; then
4688 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4689 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4691 $as_echo_n "checking for $ac_word... " >&6; }
4692 if ${ac_cv_prog_RANLIB+:} false; then :
4693 $as_echo_n "(cached) " >&6
4694 else
4695 if test -n "$RANLIB"; then
4696 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4697 else
4698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4699 for as_dir in $PATH
4701 IFS=$as_save_IFS
4702 test -z "$as_dir" && as_dir=.
4703 for ac_exec_ext in '' $ac_executable_extensions; do
4704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4705 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4707 break 2
4709 done
4710 done
4711 IFS=$as_save_IFS
4715 RANLIB=$ac_cv_prog_RANLIB
4716 if test -n "$RANLIB"; then
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4718 $as_echo "$RANLIB" >&6; }
4719 else
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4721 $as_echo "no" >&6; }
4726 if test -z "$ac_cv_prog_RANLIB"; then
4727 ac_ct_RANLIB=$RANLIB
4728 # Extract the first word of "ranlib", so it can be a program name with args.
4729 set dummy ranlib; ac_word=$2
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4731 $as_echo_n "checking for $ac_word... " >&6; }
4732 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4733 $as_echo_n "(cached) " >&6
4734 else
4735 if test -n "$ac_ct_RANLIB"; then
4736 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4737 else
4738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4739 for as_dir in $PATH
4741 IFS=$as_save_IFS
4742 test -z "$as_dir" && as_dir=.
4743 for ac_exec_ext in '' $ac_executable_extensions; do
4744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4745 ac_cv_prog_ac_ct_RANLIB="ranlib"
4746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4747 break 2
4749 done
4750 done
4751 IFS=$as_save_IFS
4755 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4756 if test -n "$ac_ct_RANLIB"; then
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4758 $as_echo "$ac_ct_RANLIB" >&6; }
4759 else
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4761 $as_echo "no" >&6; }
4764 if test "x$ac_ct_RANLIB" = x; then
4765 RANLIB="ranlib-not-found-in-path-error"
4766 else
4767 case $cross_compiling:$ac_tool_warned in
4768 yes:)
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4770 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4771 ac_tool_warned=yes ;;
4772 esac
4773 RANLIB=$ac_ct_RANLIB
4775 else
4776 RANLIB="$ac_cv_prog_RANLIB"
4779 # Extract the first word of "perl", so it can be a program name with args.
4780 set dummy perl; ac_word=$2
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4782 $as_echo_n "checking for $ac_word... " >&6; }
4783 if ${ac_cv_path_PERL+:} false; then :
4784 $as_echo_n "(cached) " >&6
4785 else
4786 case $PERL in
4787 [\\/]* | ?:[\\/]*)
4788 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4792 for as_dir in $PATH
4794 IFS=$as_save_IFS
4795 test -z "$as_dir" && as_dir=.
4796 for ac_exec_ext in '' $ac_executable_extensions; do
4797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4798 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4800 break 2
4802 done
4803 done
4804 IFS=$as_save_IFS
4806 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
4808 esac
4810 PERL=$ac_cv_path_PERL
4811 if test -n "$PERL"; then
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4813 $as_echo "$PERL" >&6; }
4814 else
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4816 $as_echo "no" >&6; }
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4821 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4822 set x ${MAKE-make}
4823 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4824 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4825 $as_echo_n "(cached) " >&6
4826 else
4827 cat >conftest.make <<\_ACEOF
4828 SHELL = /bin/sh
4829 all:
4830 @echo '@@@%%%=$(MAKE)=@@@%%%'
4831 _ACEOF
4832 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4833 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4834 *@@@%%%=?*=@@@%%%*)
4835 eval ac_cv_prog_make_${ac_make}_set=yes;;
4837 eval ac_cv_prog_make_${ac_make}_set=no;;
4838 esac
4839 rm -f conftest.make
4841 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4843 $as_echo "yes" >&6; }
4844 SET_MAKE=
4845 else
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4847 $as_echo "no" >&6; }
4848 SET_MAKE="MAKE=${MAKE-make}"
4853 # See if makeinfo has been installed and is modern enough
4854 # that we can use it.
4856 # Extract the first word of "makeinfo", so it can be a program name with args.
4857 set dummy makeinfo; ac_word=$2
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4859 $as_echo_n "checking for $ac_word... " >&6; }
4860 if ${ac_cv_prog_MAKEINFO+:} false; then :
4861 $as_echo_n "(cached) " >&6
4862 else
4863 if test -n "$MAKEINFO"; then
4864 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4865 else
4866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4867 for as_dir in $PATH
4869 IFS=$as_save_IFS
4870 test -z "$as_dir" && as_dir=.
4871 for ac_exec_ext in '' $ac_executable_extensions; do
4872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4873 ac_cv_prog_MAKEINFO="makeinfo"
4874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4875 break 2
4877 done
4878 done
4879 IFS=$as_save_IFS
4883 MAKEINFO=$ac_cv_prog_MAKEINFO
4884 if test -n "$MAKEINFO"; then
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4886 $as_echo "$MAKEINFO" >&6; }
4887 else
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4889 $as_echo "no" >&6; }
4893 if test -n "$MAKEINFO"; then
4894 # Found it, now check the version.
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
4896 $as_echo_n "checking for modern makeinfo... " >&6; }
4897 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
4898 $as_echo_n "(cached) " >&6
4899 else
4900 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
4901 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4903 case $ac_prog_version in
4904 '') gcc_cv_prog_makeinfo_modern=no;;
4905 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
4906 *) gcc_cv_prog_makeinfo_modern=no;;
4907 esac
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
4911 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
4912 else
4913 gcc_cv_prog_makeinfo_modern=no
4915 if test $gcc_cv_prog_makeinfo_modern = no; then
4916 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
4919 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
4920 BUILD_INFO_TRUE=
4921 BUILD_INFO_FALSE='#'
4922 else
4923 BUILD_INFO_TRUE='#'
4924 BUILD_INFO_FALSE=
4929 # Configure libtool
4930 case `pwd` in
4931 *\ * | *\ *)
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4933 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4934 esac
4938 macro_version='2.2.7a'
4939 macro_revision='1.3134'
4953 ltmain="$ac_aux_dir/ltmain.sh"
4955 # Backslashify metacharacters that are still active within
4956 # double-quoted strings.
4957 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4959 # Same as above, but do not quote variable references.
4960 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4962 # Sed substitution to delay expansion of an escaped shell variable in a
4963 # double_quote_subst'ed string.
4964 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4966 # Sed substitution to delay expansion of an escaped single quote.
4967 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4969 # Sed substitution to avoid accidental globbing in evaled expressions
4970 no_glob_subst='s/\*/\\\*/g'
4972 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4973 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4974 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4977 $as_echo_n "checking how to print strings... " >&6; }
4978 # Test print first, because it will be a builtin if present.
4979 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4980 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4981 ECHO='print -r --'
4982 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4983 ECHO='printf %s\n'
4984 else
4985 # Use this function as a fallback that always works.
4986 func_fallback_echo ()
4988 eval 'cat <<_LTECHO_EOF
4990 _LTECHO_EOF'
4992 ECHO='func_fallback_echo'
4995 # func_echo_all arg...
4996 # Invoke $ECHO with all args, space-separated.
4997 func_echo_all ()
4999 $ECHO ""
5002 case "$ECHO" in
5003 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5004 $as_echo "printf" >&6; } ;;
5005 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5006 $as_echo "print -r" >&6; } ;;
5007 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5008 $as_echo "cat" >&6; } ;;
5009 esac
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5025 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5026 if ${ac_cv_path_SED+:} false; then :
5027 $as_echo_n "(cached) " >&6
5028 else
5029 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5030 for ac_i in 1 2 3 4 5 6 7; do
5031 ac_script="$ac_script$as_nl$ac_script"
5032 done
5033 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5034 { ac_script=; unset ac_script;}
5035 if test -z "$SED"; then
5036 ac_path_SED_found=false
5037 # Loop through the user's path and test for each of PROGNAME-LIST
5038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5039 for as_dir in $PATH
5041 IFS=$as_save_IFS
5042 test -z "$as_dir" && as_dir=.
5043 for ac_prog in sed gsed; do
5044 for ac_exec_ext in '' $ac_executable_extensions; do
5045 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5046 as_fn_executable_p "$ac_path_SED" || continue
5047 # Check for GNU ac_path_SED and select it if it is found.
5048 # Check for GNU $ac_path_SED
5049 case `"$ac_path_SED" --version 2>&1` in
5050 *GNU*)
5051 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5053 ac_count=0
5054 $as_echo_n 0123456789 >"conftest.in"
5055 while :
5057 cat "conftest.in" "conftest.in" >"conftest.tmp"
5058 mv "conftest.tmp" "conftest.in"
5059 cp "conftest.in" "conftest.nl"
5060 $as_echo '' >> "conftest.nl"
5061 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5062 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5063 as_fn_arith $ac_count + 1 && ac_count=$as_val
5064 if test $ac_count -gt ${ac_path_SED_max-0}; then
5065 # Best one so far, save it but keep looking for a better one
5066 ac_cv_path_SED="$ac_path_SED"
5067 ac_path_SED_max=$ac_count
5069 # 10*(2^10) chars as input seems more than enough
5070 test $ac_count -gt 10 && break
5071 done
5072 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5073 esac
5075 $ac_path_SED_found && break 3
5076 done
5077 done
5078 done
5079 IFS=$as_save_IFS
5080 if test -z "$ac_cv_path_SED"; then
5081 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5083 else
5084 ac_cv_path_SED=$SED
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5089 $as_echo "$ac_cv_path_SED" >&6; }
5090 SED="$ac_cv_path_SED"
5091 rm -f conftest.sed
5093 test -z "$SED" && SED=sed
5094 Xsed="$SED -e 1s/^X//"
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5107 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5108 if ${ac_cv_path_GREP+:} false; then :
5109 $as_echo_n "(cached) " >&6
5110 else
5111 if test -z "$GREP"; then
5112 ac_path_GREP_found=false
5113 # Loop through the user's path and test for each of PROGNAME-LIST
5114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5115 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5117 IFS=$as_save_IFS
5118 test -z "$as_dir" && as_dir=.
5119 for ac_prog in grep ggrep; do
5120 for ac_exec_ext in '' $ac_executable_extensions; do
5121 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5122 as_fn_executable_p "$ac_path_GREP" || continue
5123 # Check for GNU ac_path_GREP and select it if it is found.
5124 # Check for GNU $ac_path_GREP
5125 case `"$ac_path_GREP" --version 2>&1` in
5126 *GNU*)
5127 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5129 ac_count=0
5130 $as_echo_n 0123456789 >"conftest.in"
5131 while :
5133 cat "conftest.in" "conftest.in" >"conftest.tmp"
5134 mv "conftest.tmp" "conftest.in"
5135 cp "conftest.in" "conftest.nl"
5136 $as_echo 'GREP' >> "conftest.nl"
5137 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5138 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5139 as_fn_arith $ac_count + 1 && ac_count=$as_val
5140 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5141 # Best one so far, save it but keep looking for a better one
5142 ac_cv_path_GREP="$ac_path_GREP"
5143 ac_path_GREP_max=$ac_count
5145 # 10*(2^10) chars as input seems more than enough
5146 test $ac_count -gt 10 && break
5147 done
5148 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5149 esac
5151 $ac_path_GREP_found && break 3
5152 done
5153 done
5154 done
5155 IFS=$as_save_IFS
5156 if test -z "$ac_cv_path_GREP"; then
5157 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5159 else
5160 ac_cv_path_GREP=$GREP
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5165 $as_echo "$ac_cv_path_GREP" >&6; }
5166 GREP="$ac_cv_path_GREP"
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5170 $as_echo_n "checking for egrep... " >&6; }
5171 if ${ac_cv_path_EGREP+:} false; then :
5172 $as_echo_n "(cached) " >&6
5173 else
5174 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5175 then ac_cv_path_EGREP="$GREP -E"
5176 else
5177 if test -z "$EGREP"; then
5178 ac_path_EGREP_found=false
5179 # Loop through the user's path and test for each of PROGNAME-LIST
5180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5181 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5183 IFS=$as_save_IFS
5184 test -z "$as_dir" && as_dir=.
5185 for ac_prog in egrep; do
5186 for ac_exec_ext in '' $ac_executable_extensions; do
5187 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5188 as_fn_executable_p "$ac_path_EGREP" || continue
5189 # Check for GNU ac_path_EGREP and select it if it is found.
5190 # Check for GNU $ac_path_EGREP
5191 case `"$ac_path_EGREP" --version 2>&1` in
5192 *GNU*)
5193 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5195 ac_count=0
5196 $as_echo_n 0123456789 >"conftest.in"
5197 while :
5199 cat "conftest.in" "conftest.in" >"conftest.tmp"
5200 mv "conftest.tmp" "conftest.in"
5201 cp "conftest.in" "conftest.nl"
5202 $as_echo 'EGREP' >> "conftest.nl"
5203 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5204 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5205 as_fn_arith $ac_count + 1 && ac_count=$as_val
5206 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5207 # Best one so far, save it but keep looking for a better one
5208 ac_cv_path_EGREP="$ac_path_EGREP"
5209 ac_path_EGREP_max=$ac_count
5211 # 10*(2^10) chars as input seems more than enough
5212 test $ac_count -gt 10 && break
5213 done
5214 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5215 esac
5217 $ac_path_EGREP_found && break 3
5218 done
5219 done
5220 done
5221 IFS=$as_save_IFS
5222 if test -z "$ac_cv_path_EGREP"; then
5223 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5225 else
5226 ac_cv_path_EGREP=$EGREP
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5232 $as_echo "$ac_cv_path_EGREP" >&6; }
5233 EGREP="$ac_cv_path_EGREP"
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5237 $as_echo_n "checking for fgrep... " >&6; }
5238 if ${ac_cv_path_FGREP+:} false; then :
5239 $as_echo_n "(cached) " >&6
5240 else
5241 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5242 then ac_cv_path_FGREP="$GREP -F"
5243 else
5244 if test -z "$FGREP"; then
5245 ac_path_FGREP_found=false
5246 # Loop through the user's path and test for each of PROGNAME-LIST
5247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5248 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5250 IFS=$as_save_IFS
5251 test -z "$as_dir" && as_dir=.
5252 for ac_prog in fgrep; do
5253 for ac_exec_ext in '' $ac_executable_extensions; do
5254 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5255 as_fn_executable_p "$ac_path_FGREP" || continue
5256 # Check for GNU ac_path_FGREP and select it if it is found.
5257 # Check for GNU $ac_path_FGREP
5258 case `"$ac_path_FGREP" --version 2>&1` in
5259 *GNU*)
5260 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5262 ac_count=0
5263 $as_echo_n 0123456789 >"conftest.in"
5264 while :
5266 cat "conftest.in" "conftest.in" >"conftest.tmp"
5267 mv "conftest.tmp" "conftest.in"
5268 cp "conftest.in" "conftest.nl"
5269 $as_echo 'FGREP' >> "conftest.nl"
5270 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5271 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5272 as_fn_arith $ac_count + 1 && ac_count=$as_val
5273 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5274 # Best one so far, save it but keep looking for a better one
5275 ac_cv_path_FGREP="$ac_path_FGREP"
5276 ac_path_FGREP_max=$ac_count
5278 # 10*(2^10) chars as input seems more than enough
5279 test $ac_count -gt 10 && break
5280 done
5281 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5282 esac
5284 $ac_path_FGREP_found && break 3
5285 done
5286 done
5287 done
5288 IFS=$as_save_IFS
5289 if test -z "$ac_cv_path_FGREP"; then
5290 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5292 else
5293 ac_cv_path_FGREP=$FGREP
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5299 $as_echo "$ac_cv_path_FGREP" >&6; }
5300 FGREP="$ac_cv_path_FGREP"
5303 test -z "$GREP" && GREP=grep
5323 # Check whether --with-gnu-ld was given.
5324 if test "${with_gnu_ld+set}" = set; then :
5325 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5326 else
5327 with_gnu_ld=no
5330 ac_prog=ld
5331 if test "$GCC" = yes; then
5332 # Check if gcc -print-prog-name=ld gives a path.
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5334 $as_echo_n "checking for ld used by $CC... " >&6; }
5335 case $host in
5336 *-*-mingw*)
5337 # gcc leaves a trailing carriage return which upsets mingw
5338 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5340 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5341 esac
5342 case $ac_prog in
5343 # Accept absolute paths.
5344 [\\/]* | ?:[\\/]*)
5345 re_direlt='/[^/][^/]*/\.\./'
5346 # Canonicalize the pathname of ld
5347 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5348 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5349 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5350 done
5351 test -z "$LD" && LD="$ac_prog"
5354 # If it fails, then pretend we aren't using GCC.
5355 ac_prog=ld
5358 # If it is relative, then search for the first ld in PATH.
5359 with_gnu_ld=unknown
5361 esac
5362 elif test "$with_gnu_ld" = yes; then
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5364 $as_echo_n "checking for GNU ld... " >&6; }
5365 else
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5367 $as_echo_n "checking for non-GNU ld... " >&6; }
5369 if ${lt_cv_path_LD+:} false; then :
5370 $as_echo_n "(cached) " >&6
5371 else
5372 if test -z "$LD"; then
5373 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5374 for ac_dir in $PATH; do
5375 IFS="$lt_save_ifs"
5376 test -z "$ac_dir" && ac_dir=.
5377 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5378 lt_cv_path_LD="$ac_dir/$ac_prog"
5379 # Check to see if the program is GNU ld. I'd rather use --version,
5380 # but apparently some variants of GNU ld only accept -v.
5381 # Break only if it was the GNU/non-GNU ld that we prefer.
5382 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5383 *GNU* | *'with BFD'*)
5384 test "$with_gnu_ld" != no && break
5387 test "$with_gnu_ld" != yes && break
5389 esac
5391 done
5392 IFS="$lt_save_ifs"
5393 else
5394 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5398 LD="$lt_cv_path_LD"
5399 if test -n "$LD"; then
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5401 $as_echo "$LD" >&6; }
5402 else
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5404 $as_echo "no" >&6; }
5406 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5408 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5409 if ${lt_cv_prog_gnu_ld+:} false; then :
5410 $as_echo_n "(cached) " >&6
5411 else
5412 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5413 case `$LD -v 2>&1 </dev/null` in
5414 *GNU* | *'with BFD'*)
5415 lt_cv_prog_gnu_ld=yes
5418 lt_cv_prog_gnu_ld=no
5420 esac
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5423 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5424 with_gnu_ld=$lt_cv_prog_gnu_ld
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5435 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5436 if ${lt_cv_path_NM+:} false; then :
5437 $as_echo_n "(cached) " >&6
5438 else
5439 if test -n "$NM"; then
5440 # Let the user override the test.
5441 lt_cv_path_NM="$NM"
5442 else
5443 lt_nm_to_check="${ac_tool_prefix}nm"
5444 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5445 lt_nm_to_check="$lt_nm_to_check nm"
5447 for lt_tmp_nm in $lt_nm_to_check; do
5448 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5449 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5450 IFS="$lt_save_ifs"
5451 test -z "$ac_dir" && ac_dir=.
5452 tmp_nm="$ac_dir/$lt_tmp_nm"
5453 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5454 # Check to see if the nm accepts a BSD-compat flag.
5455 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5456 # nm: unknown option "B" ignored
5457 # Tru64's nm complains that /dev/null is an invalid object file
5458 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5459 */dev/null* | *'Invalid file or object type'*)
5460 lt_cv_path_NM="$tmp_nm -B"
5461 break
5464 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5465 */dev/null*)
5466 lt_cv_path_NM="$tmp_nm -p"
5467 break
5470 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5471 continue # so that we can try to find one that supports BSD flags
5473 esac
5475 esac
5477 done
5478 IFS="$lt_save_ifs"
5479 done
5480 : ${lt_cv_path_NM=no}
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5484 $as_echo "$lt_cv_path_NM" >&6; }
5485 if test "$lt_cv_path_NM" != "no"; then
5486 NM="$lt_cv_path_NM"
5487 else
5488 # Didn't find any BSD compatible name lister, look for dumpbin.
5489 if test -n "$DUMPBIN"; then :
5490 # Let the user override the test.
5491 else
5492 if test -n "$ac_tool_prefix"; then
5493 for ac_prog in dumpbin "link -dump"
5495 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5496 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5498 $as_echo_n "checking for $ac_word... " >&6; }
5499 if ${ac_cv_prog_DUMPBIN+:} false; then :
5500 $as_echo_n "(cached) " >&6
5501 else
5502 if test -n "$DUMPBIN"; then
5503 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5504 else
5505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5506 for as_dir in $PATH
5508 IFS=$as_save_IFS
5509 test -z "$as_dir" && as_dir=.
5510 for ac_exec_ext in '' $ac_executable_extensions; do
5511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5512 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5514 break 2
5516 done
5517 done
5518 IFS=$as_save_IFS
5522 DUMPBIN=$ac_cv_prog_DUMPBIN
5523 if test -n "$DUMPBIN"; then
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5525 $as_echo "$DUMPBIN" >&6; }
5526 else
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5528 $as_echo "no" >&6; }
5532 test -n "$DUMPBIN" && break
5533 done
5535 if test -z "$DUMPBIN"; then
5536 ac_ct_DUMPBIN=$DUMPBIN
5537 for ac_prog in dumpbin "link -dump"
5539 # Extract the first word of "$ac_prog", so it can be a program name with args.
5540 set dummy $ac_prog; ac_word=$2
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5542 $as_echo_n "checking for $ac_word... " >&6; }
5543 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5544 $as_echo_n "(cached) " >&6
5545 else
5546 if test -n "$ac_ct_DUMPBIN"; then
5547 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5548 else
5549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5550 for as_dir in $PATH
5552 IFS=$as_save_IFS
5553 test -z "$as_dir" && as_dir=.
5554 for ac_exec_ext in '' $ac_executable_extensions; do
5555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5556 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5558 break 2
5560 done
5561 done
5562 IFS=$as_save_IFS
5566 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5567 if test -n "$ac_ct_DUMPBIN"; then
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5569 $as_echo "$ac_ct_DUMPBIN" >&6; }
5570 else
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5572 $as_echo "no" >&6; }
5576 test -n "$ac_ct_DUMPBIN" && break
5577 done
5579 if test "x$ac_ct_DUMPBIN" = x; then
5580 DUMPBIN=":"
5581 else
5582 case $cross_compiling:$ac_tool_warned in
5583 yes:)
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5585 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5586 ac_tool_warned=yes ;;
5587 esac
5588 DUMPBIN=$ac_ct_DUMPBIN
5592 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5593 *COFF*)
5594 DUMPBIN="$DUMPBIN -symbols"
5597 DUMPBIN=:
5599 esac
5602 if test "$DUMPBIN" != ":"; then
5603 NM="$DUMPBIN"
5606 test -z "$NM" && NM=nm
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5614 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5615 if ${lt_cv_nm_interface+:} false; then :
5616 $as_echo_n "(cached) " >&6
5617 else
5618 lt_cv_nm_interface="BSD nm"
5619 echo "int some_variable = 0;" > conftest.$ac_ext
5620 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5621 (eval "$ac_compile" 2>conftest.err)
5622 cat conftest.err >&5
5623 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5624 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5625 cat conftest.err >&5
5626 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5627 cat conftest.out >&5
5628 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5629 lt_cv_nm_interface="MS dumpbin"
5631 rm -f conftest*
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5634 $as_echo "$lt_cv_nm_interface" >&6; }
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5637 $as_echo_n "checking whether ln -s works... " >&6; }
5638 LN_S=$as_ln_s
5639 if test "$LN_S" = "ln -s"; then
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5641 $as_echo "yes" >&6; }
5642 else
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5644 $as_echo "no, using $LN_S" >&6; }
5647 # find the maximum length of command line arguments
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5649 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5650 if ${lt_cv_sys_max_cmd_len+:} false; then :
5651 $as_echo_n "(cached) " >&6
5652 else
5654 teststring="ABCD"
5656 case $build_os in
5657 msdosdjgpp*)
5658 # On DJGPP, this test can blow up pretty badly due to problems in libc
5659 # (any single argument exceeding 2000 bytes causes a buffer overrun
5660 # during glob expansion). Even if it were fixed, the result of this
5661 # check would be larger than it should be.
5662 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5665 gnu*)
5666 # Under GNU Hurd, this test is not required because there is
5667 # no limit to the length of command line arguments.
5668 # Libtool will interpret -1 as no limit whatsoever
5669 lt_cv_sys_max_cmd_len=-1;
5672 cygwin* | mingw* | cegcc*)
5673 # On Win9x/ME, this test blows up -- it succeeds, but takes
5674 # about 5 minutes as the teststring grows exponentially.
5675 # Worse, since 9x/ME are not pre-emptively multitasking,
5676 # you end up with a "frozen" computer, even though with patience
5677 # the test eventually succeeds (with a max line length of 256k).
5678 # Instead, let's just punt: use the minimum linelength reported by
5679 # all of the supported platforms: 8192 (on NT/2K/XP).
5680 lt_cv_sys_max_cmd_len=8192;
5683 mint*)
5684 # On MiNT this can take a long time and run out of memory.
5685 lt_cv_sys_max_cmd_len=8192;
5688 amigaos*)
5689 # On AmigaOS with pdksh, this test takes hours, literally.
5690 # So we just punt and use a minimum line length of 8192.
5691 lt_cv_sys_max_cmd_len=8192;
5694 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5695 # This has been around since 386BSD, at least. Likely further.
5696 if test -x /sbin/sysctl; then
5697 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5698 elif test -x /usr/sbin/sysctl; then
5699 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5700 else
5701 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5703 # And add a safety zone
5704 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5705 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5708 interix*)
5709 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5710 lt_cv_sys_max_cmd_len=196608
5713 osf*)
5714 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5715 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5716 # nice to cause kernel panics so lets avoid the loop below.
5717 # First set a reasonable default.
5718 lt_cv_sys_max_cmd_len=16384
5720 if test -x /sbin/sysconfig; then
5721 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5722 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5723 esac
5726 sco3.2v5*)
5727 lt_cv_sys_max_cmd_len=102400
5729 sysv5* | sco5v6* | sysv4.2uw2*)
5730 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5731 if test -n "$kargmax"; then
5732 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5733 else
5734 lt_cv_sys_max_cmd_len=32768
5738 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5739 if test -n "$lt_cv_sys_max_cmd_len"; then
5740 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5741 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5742 else
5743 # Make teststring a little bigger before we do anything with it.
5744 # a 1K string should be a reasonable start.
5745 for i in 1 2 3 4 5 6 7 8 ; do
5746 teststring=$teststring$teststring
5747 done
5748 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5749 # If test is not a shell built-in, we'll probably end up computing a
5750 # maximum length that is only half of the actual maximum length, but
5751 # we can't tell.
5752 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5753 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5754 test $i != 17 # 1/2 MB should be enough
5756 i=`expr $i + 1`
5757 teststring=$teststring$teststring
5758 done
5759 # Only check the string length outside the loop.
5760 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5761 teststring=
5762 # Add a significant safety factor because C++ compilers can tack on
5763 # massive amounts of additional arguments before passing them to the
5764 # linker. It appears as though 1/2 is a usable value.
5765 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5768 esac
5772 if test -n $lt_cv_sys_max_cmd_len ; then
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5774 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5775 else
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5777 $as_echo "none" >&6; }
5779 max_cmd_len=$lt_cv_sys_max_cmd_len
5786 : ${CP="cp -f"}
5787 : ${MV="mv -f"}
5788 : ${RM="rm -f"}
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5791 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5792 # Try some XSI features
5793 xsi_shell=no
5794 ( _lt_dummy="a/b/c"
5795 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5796 = c,a/b,, \
5797 && eval 'test $(( 1 + 1 )) -eq 2 \
5798 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5799 && xsi_shell=yes
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5801 $as_echo "$xsi_shell" >&6; }
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5805 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5806 lt_shell_append=no
5807 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5808 >/dev/null 2>&1 \
5809 && lt_shell_append=yes
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5811 $as_echo "$lt_shell_append" >&6; }
5814 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5815 lt_unset=unset
5816 else
5817 lt_unset=false
5824 # test EBCDIC or ASCII
5825 case `echo X|tr X '\101'` in
5826 A) # ASCII based system
5827 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5828 lt_SP2NL='tr \040 \012'
5829 lt_NL2SP='tr \015\012 \040\040'
5831 *) # EBCDIC based system
5832 lt_SP2NL='tr \100 \n'
5833 lt_NL2SP='tr \r\n \100\100'
5835 esac
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5846 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5847 if ${lt_cv_ld_reload_flag+:} false; then :
5848 $as_echo_n "(cached) " >&6
5849 else
5850 lt_cv_ld_reload_flag='-r'
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5853 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5854 reload_flag=$lt_cv_ld_reload_flag
5855 case $reload_flag in
5856 "" | " "*) ;;
5857 *) reload_flag=" $reload_flag" ;;
5858 esac
5859 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5860 case $host_os in
5861 darwin*)
5862 if test "$GCC" = yes; then
5863 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5864 else
5865 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5868 esac
5878 if test -n "$ac_tool_prefix"; then
5879 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5880 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5882 $as_echo_n "checking for $ac_word... " >&6; }
5883 if ${ac_cv_prog_OBJDUMP+:} false; then :
5884 $as_echo_n "(cached) " >&6
5885 else
5886 if test -n "$OBJDUMP"; then
5887 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5888 else
5889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5890 for as_dir in $PATH
5892 IFS=$as_save_IFS
5893 test -z "$as_dir" && as_dir=.
5894 for ac_exec_ext in '' $ac_executable_extensions; do
5895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5896 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5898 break 2
5900 done
5901 done
5902 IFS=$as_save_IFS
5906 OBJDUMP=$ac_cv_prog_OBJDUMP
5907 if test -n "$OBJDUMP"; then
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5909 $as_echo "$OBJDUMP" >&6; }
5910 else
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5912 $as_echo "no" >&6; }
5917 if test -z "$ac_cv_prog_OBJDUMP"; then
5918 ac_ct_OBJDUMP=$OBJDUMP
5919 # Extract the first word of "objdump", so it can be a program name with args.
5920 set dummy objdump; ac_word=$2
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5922 $as_echo_n "checking for $ac_word... " >&6; }
5923 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5924 $as_echo_n "(cached) " >&6
5925 else
5926 if test -n "$ac_ct_OBJDUMP"; then
5927 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5928 else
5929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5930 for as_dir in $PATH
5932 IFS=$as_save_IFS
5933 test -z "$as_dir" && as_dir=.
5934 for ac_exec_ext in '' $ac_executable_extensions; do
5935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5936 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5938 break 2
5940 done
5941 done
5942 IFS=$as_save_IFS
5946 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5947 if test -n "$ac_ct_OBJDUMP"; then
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5949 $as_echo "$ac_ct_OBJDUMP" >&6; }
5950 else
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5952 $as_echo "no" >&6; }
5955 if test "x$ac_ct_OBJDUMP" = x; then
5956 OBJDUMP="false"
5957 else
5958 case $cross_compiling:$ac_tool_warned in
5959 yes:)
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5961 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5962 ac_tool_warned=yes ;;
5963 esac
5964 OBJDUMP=$ac_ct_OBJDUMP
5966 else
5967 OBJDUMP="$ac_cv_prog_OBJDUMP"
5970 test -z "$OBJDUMP" && OBJDUMP=objdump
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5981 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5982 if ${lt_cv_deplibs_check_method+:} false; then :
5983 $as_echo_n "(cached) " >&6
5984 else
5985 lt_cv_file_magic_cmd='$MAGIC_CMD'
5986 lt_cv_file_magic_test_file=
5987 lt_cv_deplibs_check_method='unknown'
5988 # Need to set the preceding variable on all platforms that support
5989 # interlibrary dependencies.
5990 # 'none' -- dependencies not supported.
5991 # `unknown' -- same as none, but documents that we really don't know.
5992 # 'pass_all' -- all dependencies passed with no checks.
5993 # 'test_compile' -- check by making test program.
5994 # 'file_magic [[regex]]' -- check by looking for files in library path
5995 # which responds to the $file_magic_cmd with a given extended regex.
5996 # If you have `file' or equivalent on your system and you're not sure
5997 # whether `pass_all' will *always* work, you probably want this one.
5999 case $host_os in
6000 aix[4-9]*)
6001 lt_cv_deplibs_check_method=pass_all
6004 beos*)
6005 lt_cv_deplibs_check_method=pass_all
6008 bsdi[45]*)
6009 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6010 lt_cv_file_magic_cmd='/usr/bin/file -L'
6011 lt_cv_file_magic_test_file=/shlib/libc.so
6014 cygwin*)
6015 # func_win32_libid is a shell function defined in ltmain.sh
6016 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6017 lt_cv_file_magic_cmd='func_win32_libid'
6020 mingw* | pw32*)
6021 # Base MSYS/MinGW do not provide the 'file' command needed by
6022 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6023 # unless we find 'file', for example because we are cross-compiling.
6024 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6025 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6026 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6027 lt_cv_file_magic_cmd='func_win32_libid'
6028 else
6029 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6030 lt_cv_file_magic_cmd='$OBJDUMP -f'
6034 cegcc*)
6035 # use the weaker test based on 'objdump'. See mingw*.
6036 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6037 lt_cv_file_magic_cmd='$OBJDUMP -f'
6040 darwin* | rhapsody*)
6041 lt_cv_deplibs_check_method=pass_all
6044 freebsd* | dragonfly*)
6045 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6046 case $host_cpu in
6047 i*86 )
6048 # Not sure whether the presence of OpenBSD here was a mistake.
6049 # Let's accept both of them until this is cleared up.
6050 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6051 lt_cv_file_magic_cmd=/usr/bin/file
6052 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6054 esac
6055 else
6056 lt_cv_deplibs_check_method=pass_all
6060 gnu*)
6061 lt_cv_deplibs_check_method=pass_all
6064 haiku*)
6065 lt_cv_deplibs_check_method=pass_all
6068 hpux10.20* | hpux11*)
6069 lt_cv_file_magic_cmd=/usr/bin/file
6070 case $host_cpu in
6071 ia64*)
6072 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6073 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6075 hppa*64*)
6076 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]'
6077 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6080 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6081 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6083 esac
6086 interix[3-9]*)
6087 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6088 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6091 irix5* | irix6* | nonstopux*)
6092 case $LD in
6093 *-32|*"-32 ") libmagic=32-bit;;
6094 *-n32|*"-n32 ") libmagic=N32;;
6095 *-64|*"-64 ") libmagic=64-bit;;
6096 *) libmagic=never-match;;
6097 esac
6098 lt_cv_deplibs_check_method=pass_all
6101 # This must be Linux ELF.
6102 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6103 lt_cv_deplibs_check_method=pass_all
6106 netbsd*)
6107 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6108 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6109 else
6110 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6114 newos6*)
6115 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6116 lt_cv_file_magic_cmd=/usr/bin/file
6117 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6120 *nto* | *qnx*)
6121 lt_cv_deplibs_check_method=pass_all
6124 openbsd*)
6125 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6126 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6127 else
6128 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6132 osf3* | osf4* | osf5*)
6133 lt_cv_deplibs_check_method=pass_all
6136 rdos*)
6137 lt_cv_deplibs_check_method=pass_all
6140 solaris*)
6141 lt_cv_deplibs_check_method=pass_all
6144 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6145 lt_cv_deplibs_check_method=pass_all
6148 sysv4 | sysv4.3*)
6149 case $host_vendor in
6150 motorola)
6151 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]'
6152 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6154 ncr)
6155 lt_cv_deplibs_check_method=pass_all
6157 sequent)
6158 lt_cv_file_magic_cmd='/bin/file'
6159 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6161 sni)
6162 lt_cv_file_magic_cmd='/bin/file'
6163 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6164 lt_cv_file_magic_test_file=/lib/libc.so
6166 siemens)
6167 lt_cv_deplibs_check_method=pass_all
6170 lt_cv_deplibs_check_method=pass_all
6172 esac
6175 tpf*)
6176 lt_cv_deplibs_check_method=pass_all
6178 vxworks*)
6179 # Assume VxWorks cross toolchains are built on Linux, possibly
6180 # as canadian for Windows hosts.
6181 lt_cv_deplibs_check_method=pass_all
6183 esac
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6187 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6188 file_magic_cmd=$lt_cv_file_magic_cmd
6189 deplibs_check_method=$lt_cv_deplibs_check_method
6190 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6203 if test -n "$ac_tool_prefix"; then
6204 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6205 set dummy ${ac_tool_prefix}ar; ac_word=$2
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6207 $as_echo_n "checking for $ac_word... " >&6; }
6208 if ${ac_cv_prog_AR+:} false; then :
6209 $as_echo_n "(cached) " >&6
6210 else
6211 if test -n "$AR"; then
6212 ac_cv_prog_AR="$AR" # Let the user override the test.
6213 else
6214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6215 for as_dir in $PATH
6217 IFS=$as_save_IFS
6218 test -z "$as_dir" && as_dir=.
6219 for ac_exec_ext in '' $ac_executable_extensions; do
6220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6221 ac_cv_prog_AR="${ac_tool_prefix}ar"
6222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6223 break 2
6225 done
6226 done
6227 IFS=$as_save_IFS
6231 AR=$ac_cv_prog_AR
6232 if test -n "$AR"; then
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6234 $as_echo "$AR" >&6; }
6235 else
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6237 $as_echo "no" >&6; }
6242 if test -z "$ac_cv_prog_AR"; then
6243 ac_ct_AR=$AR
6244 # Extract the first word of "ar", so it can be a program name with args.
6245 set dummy ar; ac_word=$2
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6247 $as_echo_n "checking for $ac_word... " >&6; }
6248 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6249 $as_echo_n "(cached) " >&6
6250 else
6251 if test -n "$ac_ct_AR"; then
6252 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6253 else
6254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6255 for as_dir in $PATH
6257 IFS=$as_save_IFS
6258 test -z "$as_dir" && as_dir=.
6259 for ac_exec_ext in '' $ac_executable_extensions; do
6260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6261 ac_cv_prog_ac_ct_AR="ar"
6262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6263 break 2
6265 done
6266 done
6267 IFS=$as_save_IFS
6271 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6272 if test -n "$ac_ct_AR"; then
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6274 $as_echo "$ac_ct_AR" >&6; }
6275 else
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6277 $as_echo "no" >&6; }
6280 if test "x$ac_ct_AR" = x; then
6281 AR="false"
6282 else
6283 case $cross_compiling:$ac_tool_warned in
6284 yes:)
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6286 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6287 ac_tool_warned=yes ;;
6288 esac
6289 AR=$ac_ct_AR
6291 else
6292 AR="$ac_cv_prog_AR"
6295 test -z "$AR" && AR=ar
6296 test -z "$AR_FLAGS" && AR_FLAGS=cru
6308 if test -n "$ac_tool_prefix"; then
6309 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6310 set dummy ${ac_tool_prefix}strip; ac_word=$2
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6312 $as_echo_n "checking for $ac_word... " >&6; }
6313 if ${ac_cv_prog_STRIP+:} false; then :
6314 $as_echo_n "(cached) " >&6
6315 else
6316 if test -n "$STRIP"; then
6317 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6318 else
6319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6320 for as_dir in $PATH
6322 IFS=$as_save_IFS
6323 test -z "$as_dir" && as_dir=.
6324 for ac_exec_ext in '' $ac_executable_extensions; do
6325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6326 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6328 break 2
6330 done
6331 done
6332 IFS=$as_save_IFS
6336 STRIP=$ac_cv_prog_STRIP
6337 if test -n "$STRIP"; then
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6339 $as_echo "$STRIP" >&6; }
6340 else
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6342 $as_echo "no" >&6; }
6347 if test -z "$ac_cv_prog_STRIP"; then
6348 ac_ct_STRIP=$STRIP
6349 # Extract the first word of "strip", so it can be a program name with args.
6350 set dummy strip; ac_word=$2
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6352 $as_echo_n "checking for $ac_word... " >&6; }
6353 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6354 $as_echo_n "(cached) " >&6
6355 else
6356 if test -n "$ac_ct_STRIP"; then
6357 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6358 else
6359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6360 for as_dir in $PATH
6362 IFS=$as_save_IFS
6363 test -z "$as_dir" && as_dir=.
6364 for ac_exec_ext in '' $ac_executable_extensions; do
6365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6366 ac_cv_prog_ac_ct_STRIP="strip"
6367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6368 break 2
6370 done
6371 done
6372 IFS=$as_save_IFS
6376 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6377 if test -n "$ac_ct_STRIP"; then
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6379 $as_echo "$ac_ct_STRIP" >&6; }
6380 else
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6382 $as_echo "no" >&6; }
6385 if test "x$ac_ct_STRIP" = x; then
6386 STRIP=":"
6387 else
6388 case $cross_compiling:$ac_tool_warned in
6389 yes:)
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6391 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6392 ac_tool_warned=yes ;;
6393 esac
6394 STRIP=$ac_ct_STRIP
6396 else
6397 STRIP="$ac_cv_prog_STRIP"
6400 test -z "$STRIP" && STRIP=:
6407 if test -n "$ac_tool_prefix"; then
6408 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6409 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6411 $as_echo_n "checking for $ac_word... " >&6; }
6412 if ${ac_cv_prog_RANLIB+:} false; then :
6413 $as_echo_n "(cached) " >&6
6414 else
6415 if test -n "$RANLIB"; then
6416 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6417 else
6418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6419 for as_dir in $PATH
6421 IFS=$as_save_IFS
6422 test -z "$as_dir" && as_dir=.
6423 for ac_exec_ext in '' $ac_executable_extensions; do
6424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6425 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6427 break 2
6429 done
6430 done
6431 IFS=$as_save_IFS
6435 RANLIB=$ac_cv_prog_RANLIB
6436 if test -n "$RANLIB"; then
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6438 $as_echo "$RANLIB" >&6; }
6439 else
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6441 $as_echo "no" >&6; }
6446 if test -z "$ac_cv_prog_RANLIB"; then
6447 ac_ct_RANLIB=$RANLIB
6448 # Extract the first word of "ranlib", so it can be a program name with args.
6449 set dummy ranlib; ac_word=$2
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6451 $as_echo_n "checking for $ac_word... " >&6; }
6452 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6453 $as_echo_n "(cached) " >&6
6454 else
6455 if test -n "$ac_ct_RANLIB"; then
6456 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6457 else
6458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6459 for as_dir in $PATH
6461 IFS=$as_save_IFS
6462 test -z "$as_dir" && as_dir=.
6463 for ac_exec_ext in '' $ac_executable_extensions; do
6464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6465 ac_cv_prog_ac_ct_RANLIB="ranlib"
6466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6467 break 2
6469 done
6470 done
6471 IFS=$as_save_IFS
6475 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6476 if test -n "$ac_ct_RANLIB"; then
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6478 $as_echo "$ac_ct_RANLIB" >&6; }
6479 else
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6481 $as_echo "no" >&6; }
6484 if test "x$ac_ct_RANLIB" = x; then
6485 RANLIB=":"
6486 else
6487 case $cross_compiling:$ac_tool_warned in
6488 yes:)
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6490 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6491 ac_tool_warned=yes ;;
6492 esac
6493 RANLIB=$ac_ct_RANLIB
6495 else
6496 RANLIB="$ac_cv_prog_RANLIB"
6499 test -z "$RANLIB" && RANLIB=:
6506 # Determine commands to create old-style static archives.
6507 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6508 old_postinstall_cmds='chmod 644 $oldlib'
6509 old_postuninstall_cmds=
6511 if test -n "$RANLIB"; then
6512 case $host_os in
6513 openbsd*)
6514 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6517 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6519 esac
6520 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6523 case $host_os in
6524 darwin*)
6525 lock_old_archive_extraction=yes ;;
6527 lock_old_archive_extraction=no ;;
6528 esac
6568 # If no C compiler was specified, use CC.
6569 LTCC=${LTCC-"$CC"}
6571 # If no C compiler flags were specified, use CFLAGS.
6572 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6574 # Allow CC to be a program name with arguments.
6575 compiler=$CC
6578 # Check for command to grab the raw symbol name followed by C symbol from nm.
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6580 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6581 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6582 $as_echo_n "(cached) " >&6
6583 else
6585 # These are sane defaults that work on at least a few old systems.
6586 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6588 # Character class describing NM global symbol codes.
6589 symcode='[BCDEGRST]'
6591 # Regexp to match symbols that can be accessed directly from C.
6592 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6594 # Define system-specific variables.
6595 case $host_os in
6596 aix*)
6597 symcode='[BCDT]'
6599 cygwin* | mingw* | pw32* | cegcc*)
6600 symcode='[ABCDGISTW]'
6602 hpux*)
6603 if test "$host_cpu" = ia64; then
6604 symcode='[ABCDEGRST]'
6607 irix* | nonstopux*)
6608 symcode='[BCDEGRST]'
6610 osf*)
6611 symcode='[BCDEGQRST]'
6613 solaris*)
6614 symcode='[BDRT]'
6616 sco3.2v5*)
6617 symcode='[DT]'
6619 sysv4.2uw2*)
6620 symcode='[DT]'
6622 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6623 symcode='[ABDT]'
6625 sysv4)
6626 symcode='[DFNSTU]'
6628 esac
6630 # If we're using GNU nm, then use its standard symbol codes.
6631 case `$NM -V 2>&1` in
6632 *GNU* | *'with BFD'*)
6633 symcode='[ABCDGIRSTW]' ;;
6634 esac
6636 # Transform an extracted symbol line into a proper C declaration.
6637 # Some systems (esp. on ia64) link data and code symbols differently,
6638 # so use this general approach.
6639 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6641 # Transform an extracted symbol line into symbol name and symbol address
6642 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6643 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'"
6645 # Handle CRLF in mingw tool chain
6646 opt_cr=
6647 case $build_os in
6648 mingw*)
6649 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6651 esac
6653 # Try without a prefix underscore, then with it.
6654 for ac_symprfx in "" "_"; do
6656 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6657 symxfrm="\\1 $ac_symprfx\\2 \\2"
6659 # Write the raw and C identifiers.
6660 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6661 # Fake it for dumpbin and say T for any non-static function
6662 # and D for any global variable.
6663 # Also find C++ and __fastcall symbols from MSVC++,
6664 # which start with @ or ?.
6665 lt_cv_sys_global_symbol_pipe="$AWK '"\
6666 " {last_section=section; section=\$ 3};"\
6667 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6668 " \$ 0!~/External *\|/{next};"\
6669 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6670 " {if(hide[section]) next};"\
6671 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6672 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6673 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6674 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6675 " ' prfx=^$ac_symprfx"
6676 else
6677 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6680 # Check to see that the pipe works correctly.
6681 pipe_works=no
6683 rm -f conftest*
6684 cat > conftest.$ac_ext <<_LT_EOF
6685 #ifdef __cplusplus
6686 extern "C" {
6687 #endif
6688 char nm_test_var;
6689 void nm_test_func(void);
6690 void nm_test_func(void){}
6691 #ifdef __cplusplus
6693 #endif
6694 int main(){nm_test_var='a';nm_test_func();return(0);}
6695 _LT_EOF
6697 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6698 (eval $ac_compile) 2>&5
6699 ac_status=$?
6700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6701 test $ac_status = 0; }; then
6702 # Now try to grab the symbols.
6703 nlist=conftest.nm
6704 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6705 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6706 ac_status=$?
6707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6708 test $ac_status = 0; } && test -s "$nlist"; then
6709 # Try sorting and uniquifying the output.
6710 if sort "$nlist" | uniq > "$nlist"T; then
6711 mv -f "$nlist"T "$nlist"
6712 else
6713 rm -f "$nlist"T
6716 # Make sure that we snagged all the symbols we need.
6717 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6718 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6719 cat <<_LT_EOF > conftest.$ac_ext
6720 #ifdef __cplusplus
6721 extern "C" {
6722 #endif
6724 _LT_EOF
6725 # Now generate the symbol file.
6726 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6728 cat <<_LT_EOF >> conftest.$ac_ext
6730 /* The mapping between symbol names and symbols. */
6731 const struct {
6732 const char *name;
6733 void *address;
6735 lt__PROGRAM__LTX_preloaded_symbols[] =
6737 { "@PROGRAM@", (void *) 0 },
6738 _LT_EOF
6739 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6740 cat <<\_LT_EOF >> conftest.$ac_ext
6741 {0, (void *) 0}
6744 /* This works around a problem in FreeBSD linker */
6745 #ifdef FREEBSD_WORKAROUND
6746 static const void *lt_preloaded_setup() {
6747 return lt__PROGRAM__LTX_preloaded_symbols;
6749 #endif
6751 #ifdef __cplusplus
6753 #endif
6754 _LT_EOF
6755 # Now try linking the two files.
6756 mv conftest.$ac_objext conftstm.$ac_objext
6757 lt_save_LIBS="$LIBS"
6758 lt_save_CFLAGS="$CFLAGS"
6759 LIBS="conftstm.$ac_objext"
6760 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6761 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6762 (eval $ac_link) 2>&5
6763 ac_status=$?
6764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6765 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6766 pipe_works=yes
6768 LIBS="$lt_save_LIBS"
6769 CFLAGS="$lt_save_CFLAGS"
6770 else
6771 echo "cannot find nm_test_func in $nlist" >&5
6773 else
6774 echo "cannot find nm_test_var in $nlist" >&5
6776 else
6777 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6779 else
6780 echo "$progname: failed program was:" >&5
6781 cat conftest.$ac_ext >&5
6783 rm -rf conftest* conftst*
6785 # Do not use the global_symbol_pipe unless it works.
6786 if test "$pipe_works" = yes; then
6787 break
6788 else
6789 lt_cv_sys_global_symbol_pipe=
6791 done
6795 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6796 lt_cv_sys_global_symbol_to_cdecl=
6798 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6800 $as_echo "failed" >&6; }
6801 else
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6803 $as_echo "ok" >&6; }
6828 # Check whether --enable-libtool-lock was given.
6829 if test "${enable_libtool_lock+set}" = set; then :
6830 enableval=$enable_libtool_lock;
6833 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6835 # Some flags need to be propagated to the compiler or linker for good
6836 # libtool support.
6837 case $host in
6838 ia64-*-hpux*)
6839 # Find out which ABI we are using.
6840 echo 'int i;' > conftest.$ac_ext
6841 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6842 (eval $ac_compile) 2>&5
6843 ac_status=$?
6844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6845 test $ac_status = 0; }; then
6846 case `/usr/bin/file conftest.$ac_objext` in
6847 *ELF-32*)
6848 HPUX_IA64_MODE="32"
6850 *ELF-64*)
6851 HPUX_IA64_MODE="64"
6853 esac
6855 rm -rf conftest*
6857 *-*-irix6*)
6858 # Find out which ABI we are using.
6859 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6860 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6861 (eval $ac_compile) 2>&5
6862 ac_status=$?
6863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6864 test $ac_status = 0; }; then
6865 if test "$lt_cv_prog_gnu_ld" = yes; then
6866 case `/usr/bin/file conftest.$ac_objext` in
6867 *32-bit*)
6868 LD="${LD-ld} -melf32bsmip"
6870 *N32*)
6871 LD="${LD-ld} -melf32bmipn32"
6873 *64-bit*)
6874 LD="${LD-ld} -melf64bmip"
6876 esac
6877 else
6878 case `/usr/bin/file conftest.$ac_objext` in
6879 *32-bit*)
6880 LD="${LD-ld} -32"
6882 *N32*)
6883 LD="${LD-ld} -n32"
6885 *64-bit*)
6886 LD="${LD-ld} -64"
6888 esac
6891 rm -rf conftest*
6894 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6895 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6896 # Find out which ABI we are using.
6897 echo 'int i;' > conftest.$ac_ext
6898 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6899 (eval $ac_compile) 2>&5
6900 ac_status=$?
6901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6902 test $ac_status = 0; }; then
6903 case `/usr/bin/file conftest.o` in
6904 *32-bit*)
6905 case $host in
6906 x86_64-*kfreebsd*-gnu)
6907 LD="${LD-ld} -m elf_i386_fbsd"
6909 x86_64-*linux*)
6910 case `/usr/bin/file conftest.o` in
6911 *x86-64*)
6912 LD="${LD-ld} -m elf32_x86_64"
6915 LD="${LD-ld} -m elf_i386"
6917 esac
6919 powerpc64le-*linux*)
6920 LD="${LD-ld} -m elf32lppclinux"
6922 powerpc64-*linux*)
6923 LD="${LD-ld} -m elf32ppclinux"
6925 s390x-*linux*)
6926 LD="${LD-ld} -m elf_s390"
6928 sparc64-*linux*)
6929 LD="${LD-ld} -m elf32_sparc"
6931 esac
6933 *64-bit*)
6934 case $host in
6935 x86_64-*kfreebsd*-gnu)
6936 LD="${LD-ld} -m elf_x86_64_fbsd"
6938 x86_64-*linux*)
6939 LD="${LD-ld} -m elf_x86_64"
6941 powerpcle-*linux*)
6942 LD="${LD-ld} -m elf64lppc"
6944 powerpc-*linux*)
6945 LD="${LD-ld} -m elf64ppc"
6947 s390*-*linux*|s390*-*tpf*)
6948 LD="${LD-ld} -m elf64_s390"
6950 sparc*-*linux*)
6951 LD="${LD-ld} -m elf64_sparc"
6953 esac
6955 esac
6957 rm -rf conftest*
6960 *-*-sco3.2v5*)
6961 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6962 SAVE_CFLAGS="$CFLAGS"
6963 CFLAGS="$CFLAGS -belf"
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6965 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6966 if ${lt_cv_cc_needs_belf+:} false; then :
6967 $as_echo_n "(cached) " >&6
6968 else
6969 ac_ext=c
6970 ac_cpp='$CPP $CPPFLAGS'
6971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6976 /* end confdefs.h. */
6979 main ()
6983 return 0;
6985 _ACEOF
6986 if ac_fn_c_try_link "$LINENO"; then :
6987 lt_cv_cc_needs_belf=yes
6988 else
6989 lt_cv_cc_needs_belf=no
6991 rm -f core conftest.err conftest.$ac_objext \
6992 conftest$ac_exeext conftest.$ac_ext
6993 ac_ext=c
6994 ac_cpp='$CPP $CPPFLAGS'
6995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7001 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7002 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7003 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7004 CFLAGS="$SAVE_CFLAGS"
7007 sparc*-*solaris*)
7008 # Find out which ABI we are using.
7009 echo 'int i;' > conftest.$ac_ext
7010 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7011 (eval $ac_compile) 2>&5
7012 ac_status=$?
7013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7014 test $ac_status = 0; }; then
7015 case `/usr/bin/file conftest.o` in
7016 *64-bit*)
7017 case $lt_cv_prog_gnu_ld in
7018 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7020 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7021 LD="${LD-ld} -64"
7024 esac
7026 esac
7028 rm -rf conftest*
7030 esac
7032 need_locks="$enable_libtool_lock"
7035 case $host_os in
7036 rhapsody* | darwin*)
7037 if test -n "$ac_tool_prefix"; then
7038 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7039 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7041 $as_echo_n "checking for $ac_word... " >&6; }
7042 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7043 $as_echo_n "(cached) " >&6
7044 else
7045 if test -n "$DSYMUTIL"; then
7046 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7047 else
7048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7049 for as_dir in $PATH
7051 IFS=$as_save_IFS
7052 test -z "$as_dir" && as_dir=.
7053 for ac_exec_ext in '' $ac_executable_extensions; do
7054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7055 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7057 break 2
7059 done
7060 done
7061 IFS=$as_save_IFS
7065 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7066 if test -n "$DSYMUTIL"; then
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7068 $as_echo "$DSYMUTIL" >&6; }
7069 else
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7071 $as_echo "no" >&6; }
7076 if test -z "$ac_cv_prog_DSYMUTIL"; then
7077 ac_ct_DSYMUTIL=$DSYMUTIL
7078 # Extract the first word of "dsymutil", so it can be a program name with args.
7079 set dummy dsymutil; ac_word=$2
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7081 $as_echo_n "checking for $ac_word... " >&6; }
7082 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7083 $as_echo_n "(cached) " >&6
7084 else
7085 if test -n "$ac_ct_DSYMUTIL"; then
7086 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7087 else
7088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7089 for as_dir in $PATH
7091 IFS=$as_save_IFS
7092 test -z "$as_dir" && as_dir=.
7093 for ac_exec_ext in '' $ac_executable_extensions; do
7094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7095 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7097 break 2
7099 done
7100 done
7101 IFS=$as_save_IFS
7105 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7106 if test -n "$ac_ct_DSYMUTIL"; then
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7108 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7109 else
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7111 $as_echo "no" >&6; }
7114 if test "x$ac_ct_DSYMUTIL" = x; then
7115 DSYMUTIL=":"
7116 else
7117 case $cross_compiling:$ac_tool_warned in
7118 yes:)
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7120 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7121 ac_tool_warned=yes ;;
7122 esac
7123 DSYMUTIL=$ac_ct_DSYMUTIL
7125 else
7126 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7129 if test -n "$ac_tool_prefix"; then
7130 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7131 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7133 $as_echo_n "checking for $ac_word... " >&6; }
7134 if ${ac_cv_prog_NMEDIT+:} false; then :
7135 $as_echo_n "(cached) " >&6
7136 else
7137 if test -n "$NMEDIT"; then
7138 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7139 else
7140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7141 for as_dir in $PATH
7143 IFS=$as_save_IFS
7144 test -z "$as_dir" && as_dir=.
7145 for ac_exec_ext in '' $ac_executable_extensions; do
7146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7147 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7149 break 2
7151 done
7152 done
7153 IFS=$as_save_IFS
7157 NMEDIT=$ac_cv_prog_NMEDIT
7158 if test -n "$NMEDIT"; then
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7160 $as_echo "$NMEDIT" >&6; }
7161 else
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7163 $as_echo "no" >&6; }
7168 if test -z "$ac_cv_prog_NMEDIT"; then
7169 ac_ct_NMEDIT=$NMEDIT
7170 # Extract the first word of "nmedit", so it can be a program name with args.
7171 set dummy nmedit; ac_word=$2
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7173 $as_echo_n "checking for $ac_word... " >&6; }
7174 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7175 $as_echo_n "(cached) " >&6
7176 else
7177 if test -n "$ac_ct_NMEDIT"; then
7178 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7179 else
7180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7181 for as_dir in $PATH
7183 IFS=$as_save_IFS
7184 test -z "$as_dir" && as_dir=.
7185 for ac_exec_ext in '' $ac_executable_extensions; do
7186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7187 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7189 break 2
7191 done
7192 done
7193 IFS=$as_save_IFS
7197 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7198 if test -n "$ac_ct_NMEDIT"; then
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7200 $as_echo "$ac_ct_NMEDIT" >&6; }
7201 else
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7203 $as_echo "no" >&6; }
7206 if test "x$ac_ct_NMEDIT" = x; then
7207 NMEDIT=":"
7208 else
7209 case $cross_compiling:$ac_tool_warned in
7210 yes:)
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7212 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7213 ac_tool_warned=yes ;;
7214 esac
7215 NMEDIT=$ac_ct_NMEDIT
7217 else
7218 NMEDIT="$ac_cv_prog_NMEDIT"
7221 if test -n "$ac_tool_prefix"; then
7222 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7223 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7225 $as_echo_n "checking for $ac_word... " >&6; }
7226 if ${ac_cv_prog_LIPO+:} false; then :
7227 $as_echo_n "(cached) " >&6
7228 else
7229 if test -n "$LIPO"; then
7230 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7231 else
7232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7233 for as_dir in $PATH
7235 IFS=$as_save_IFS
7236 test -z "$as_dir" && as_dir=.
7237 for ac_exec_ext in '' $ac_executable_extensions; do
7238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7239 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7241 break 2
7243 done
7244 done
7245 IFS=$as_save_IFS
7249 LIPO=$ac_cv_prog_LIPO
7250 if test -n "$LIPO"; then
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7252 $as_echo "$LIPO" >&6; }
7253 else
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7255 $as_echo "no" >&6; }
7260 if test -z "$ac_cv_prog_LIPO"; then
7261 ac_ct_LIPO=$LIPO
7262 # Extract the first word of "lipo", so it can be a program name with args.
7263 set dummy lipo; ac_word=$2
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7265 $as_echo_n "checking for $ac_word... " >&6; }
7266 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7267 $as_echo_n "(cached) " >&6
7268 else
7269 if test -n "$ac_ct_LIPO"; then
7270 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7271 else
7272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7273 for as_dir in $PATH
7275 IFS=$as_save_IFS
7276 test -z "$as_dir" && as_dir=.
7277 for ac_exec_ext in '' $ac_executable_extensions; do
7278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7279 ac_cv_prog_ac_ct_LIPO="lipo"
7280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7281 break 2
7283 done
7284 done
7285 IFS=$as_save_IFS
7289 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7290 if test -n "$ac_ct_LIPO"; then
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7292 $as_echo "$ac_ct_LIPO" >&6; }
7293 else
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7295 $as_echo "no" >&6; }
7298 if test "x$ac_ct_LIPO" = x; then
7299 LIPO=":"
7300 else
7301 case $cross_compiling:$ac_tool_warned in
7302 yes:)
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7304 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7305 ac_tool_warned=yes ;;
7306 esac
7307 LIPO=$ac_ct_LIPO
7309 else
7310 LIPO="$ac_cv_prog_LIPO"
7313 if test -n "$ac_tool_prefix"; then
7314 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7315 set dummy ${ac_tool_prefix}otool; ac_word=$2
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7317 $as_echo_n "checking for $ac_word... " >&6; }
7318 if ${ac_cv_prog_OTOOL+:} false; then :
7319 $as_echo_n "(cached) " >&6
7320 else
7321 if test -n "$OTOOL"; then
7322 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7323 else
7324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7325 for as_dir in $PATH
7327 IFS=$as_save_IFS
7328 test -z "$as_dir" && as_dir=.
7329 for ac_exec_ext in '' $ac_executable_extensions; do
7330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7331 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7333 break 2
7335 done
7336 done
7337 IFS=$as_save_IFS
7341 OTOOL=$ac_cv_prog_OTOOL
7342 if test -n "$OTOOL"; then
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7344 $as_echo "$OTOOL" >&6; }
7345 else
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7347 $as_echo "no" >&6; }
7352 if test -z "$ac_cv_prog_OTOOL"; then
7353 ac_ct_OTOOL=$OTOOL
7354 # Extract the first word of "otool", so it can be a program name with args.
7355 set dummy otool; ac_word=$2
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7357 $as_echo_n "checking for $ac_word... " >&6; }
7358 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7359 $as_echo_n "(cached) " >&6
7360 else
7361 if test -n "$ac_ct_OTOOL"; then
7362 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7363 else
7364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7365 for as_dir in $PATH
7367 IFS=$as_save_IFS
7368 test -z "$as_dir" && as_dir=.
7369 for ac_exec_ext in '' $ac_executable_extensions; do
7370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7371 ac_cv_prog_ac_ct_OTOOL="otool"
7372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7373 break 2
7375 done
7376 done
7377 IFS=$as_save_IFS
7381 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7382 if test -n "$ac_ct_OTOOL"; then
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7384 $as_echo "$ac_ct_OTOOL" >&6; }
7385 else
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7387 $as_echo "no" >&6; }
7390 if test "x$ac_ct_OTOOL" = x; then
7391 OTOOL=":"
7392 else
7393 case $cross_compiling:$ac_tool_warned in
7394 yes:)
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7396 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7397 ac_tool_warned=yes ;;
7398 esac
7399 OTOOL=$ac_ct_OTOOL
7401 else
7402 OTOOL="$ac_cv_prog_OTOOL"
7405 if test -n "$ac_tool_prefix"; then
7406 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7407 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7409 $as_echo_n "checking for $ac_word... " >&6; }
7410 if ${ac_cv_prog_OTOOL64+:} false; then :
7411 $as_echo_n "(cached) " >&6
7412 else
7413 if test -n "$OTOOL64"; then
7414 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7415 else
7416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7417 for as_dir in $PATH
7419 IFS=$as_save_IFS
7420 test -z "$as_dir" && as_dir=.
7421 for ac_exec_ext in '' $ac_executable_extensions; do
7422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7423 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7425 break 2
7427 done
7428 done
7429 IFS=$as_save_IFS
7433 OTOOL64=$ac_cv_prog_OTOOL64
7434 if test -n "$OTOOL64"; then
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7436 $as_echo "$OTOOL64" >&6; }
7437 else
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7439 $as_echo "no" >&6; }
7444 if test -z "$ac_cv_prog_OTOOL64"; then
7445 ac_ct_OTOOL64=$OTOOL64
7446 # Extract the first word of "otool64", so it can be a program name with args.
7447 set dummy otool64; ac_word=$2
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7449 $as_echo_n "checking for $ac_word... " >&6; }
7450 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7451 $as_echo_n "(cached) " >&6
7452 else
7453 if test -n "$ac_ct_OTOOL64"; then
7454 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7455 else
7456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7457 for as_dir in $PATH
7459 IFS=$as_save_IFS
7460 test -z "$as_dir" && as_dir=.
7461 for ac_exec_ext in '' $ac_executable_extensions; do
7462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7463 ac_cv_prog_ac_ct_OTOOL64="otool64"
7464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7465 break 2
7467 done
7468 done
7469 IFS=$as_save_IFS
7473 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7474 if test -n "$ac_ct_OTOOL64"; then
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7476 $as_echo "$ac_ct_OTOOL64" >&6; }
7477 else
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7479 $as_echo "no" >&6; }
7482 if test "x$ac_ct_OTOOL64" = x; then
7483 OTOOL64=":"
7484 else
7485 case $cross_compiling:$ac_tool_warned in
7486 yes:)
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7489 ac_tool_warned=yes ;;
7490 esac
7491 OTOOL64=$ac_ct_OTOOL64
7493 else
7494 OTOOL64="$ac_cv_prog_OTOOL64"
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7524 $as_echo_n "checking for -single_module linker flag... " >&6; }
7525 if ${lt_cv_apple_cc_single_mod+:} false; then :
7526 $as_echo_n "(cached) " >&6
7527 else
7528 lt_cv_apple_cc_single_mod=no
7529 if test -z "${LT_MULTI_MODULE}"; then
7530 # By default we will add the -single_module flag. You can override
7531 # by either setting the environment variable LT_MULTI_MODULE
7532 # non-empty at configure time, or by adding -multi_module to the
7533 # link flags.
7534 rm -rf libconftest.dylib*
7535 echo "int foo(void){return 1;}" > conftest.c
7536 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7537 -dynamiclib -Wl,-single_module conftest.c" >&5
7538 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7539 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7540 _lt_result=$?
7541 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7542 lt_cv_apple_cc_single_mod=yes
7543 else
7544 cat conftest.err >&5
7546 rm -rf libconftest.dylib*
7547 rm -f conftest.*
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7551 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7553 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7554 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7555 $as_echo_n "(cached) " >&6
7556 else
7557 lt_cv_ld_exported_symbols_list=no
7558 save_LDFLAGS=$LDFLAGS
7559 echo "_main" > conftest.sym
7560 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7562 /* end confdefs.h. */
7565 main ()
7569 return 0;
7571 _ACEOF
7572 if ac_fn_c_try_link "$LINENO"; then :
7573 lt_cv_ld_exported_symbols_list=yes
7574 else
7575 lt_cv_ld_exported_symbols_list=no
7577 rm -f core conftest.err conftest.$ac_objext \
7578 conftest$ac_exeext conftest.$ac_ext
7579 LDFLAGS="$save_LDFLAGS"
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7583 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7585 $as_echo_n "checking for -force_load linker flag... " >&6; }
7586 if ${lt_cv_ld_force_load+:} false; then :
7587 $as_echo_n "(cached) " >&6
7588 else
7589 lt_cv_ld_force_load=no
7590 cat > conftest.c << _LT_EOF
7591 int forced_loaded() { return 2;}
7592 _LT_EOF
7593 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7594 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7595 echo "$AR cru libconftest.a conftest.o" >&5
7596 $AR cru libconftest.a conftest.o 2>&5
7597 cat > conftest.c << _LT_EOF
7598 int main() { return 0;}
7599 _LT_EOF
7600 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7601 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7602 _lt_result=$?
7603 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7604 lt_cv_ld_force_load=yes
7605 else
7606 cat conftest.err >&5
7608 rm -f conftest.err libconftest.a conftest conftest.c
7609 rm -rf conftest.dSYM
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7613 $as_echo "$lt_cv_ld_force_load" >&6; }
7614 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
7615 # build without first building modern cctools / linker.
7616 case $host_cpu-$host_os in
7617 *-rhapsody* | *-darwin1.[012])
7618 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7619 *-darwin1.*)
7620 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7621 *-darwin*)
7622 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
7623 # deployment target is forced to an earlier version.
7624 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
7625 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
7627 10.[012][,.]*)
7628 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7632 esac
7634 esac
7635 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7636 _lt_dar_single_mod='$single_module'
7638 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7639 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7640 else
7641 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7643 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7644 _lt_dsymutil='~$DSYMUTIL $lib || :'
7645 else
7646 _lt_dsymutil=
7649 esac
7651 ac_ext=c
7652 ac_cpp='$CPP $CPPFLAGS'
7653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7657 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7658 # On Suns, sometimes $CPP names a directory.
7659 if test -n "$CPP" && test -d "$CPP"; then
7660 CPP=
7662 if test -z "$CPP"; then
7663 if ${ac_cv_prog_CPP+:} false; then :
7664 $as_echo_n "(cached) " >&6
7665 else
7666 # Double quotes because CPP needs to be expanded
7667 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7669 ac_preproc_ok=false
7670 for ac_c_preproc_warn_flag in '' yes
7672 # Use a header file that comes with gcc, so configuring glibc
7673 # with a fresh cross-compiler works.
7674 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7675 # <limits.h> exists even on freestanding compilers.
7676 # On the NeXT, cc -E runs the code through the compiler's parser,
7677 # not just through cpp. "Syntax error" is here to catch this case.
7678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7679 /* end confdefs.h. */
7680 #ifdef __STDC__
7681 # include <limits.h>
7682 #else
7683 # include <assert.h>
7684 #endif
7685 Syntax error
7686 _ACEOF
7687 if ac_fn_c_try_cpp "$LINENO"; then :
7689 else
7690 # Broken: fails on valid input.
7691 continue
7693 rm -f conftest.err conftest.i conftest.$ac_ext
7695 # OK, works on sane cases. Now check whether nonexistent headers
7696 # can be detected and how.
7697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7698 /* end confdefs.h. */
7699 #include <ac_nonexistent.h>
7700 _ACEOF
7701 if ac_fn_c_try_cpp "$LINENO"; then :
7702 # Broken: success on invalid input.
7703 continue
7704 else
7705 # Passes both tests.
7706 ac_preproc_ok=:
7707 break
7709 rm -f conftest.err conftest.i conftest.$ac_ext
7711 done
7712 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7713 rm -f conftest.i conftest.err conftest.$ac_ext
7714 if $ac_preproc_ok; then :
7715 break
7718 done
7719 ac_cv_prog_CPP=$CPP
7722 CPP=$ac_cv_prog_CPP
7723 else
7724 ac_cv_prog_CPP=$CPP
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7727 $as_echo "$CPP" >&6; }
7728 ac_preproc_ok=false
7729 for ac_c_preproc_warn_flag in '' yes
7731 # Use a header file that comes with gcc, so configuring glibc
7732 # with a fresh cross-compiler works.
7733 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7734 # <limits.h> exists even on freestanding compilers.
7735 # On the NeXT, cc -E runs the code through the compiler's parser,
7736 # not just through cpp. "Syntax error" is here to catch this case.
7737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7738 /* end confdefs.h. */
7739 #ifdef __STDC__
7740 # include <limits.h>
7741 #else
7742 # include <assert.h>
7743 #endif
7744 Syntax error
7745 _ACEOF
7746 if ac_fn_c_try_cpp "$LINENO"; then :
7748 else
7749 # Broken: fails on valid input.
7750 continue
7752 rm -f conftest.err conftest.i conftest.$ac_ext
7754 # OK, works on sane cases. Now check whether nonexistent headers
7755 # can be detected and how.
7756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7757 /* end confdefs.h. */
7758 #include <ac_nonexistent.h>
7759 _ACEOF
7760 if ac_fn_c_try_cpp "$LINENO"; then :
7761 # Broken: success on invalid input.
7762 continue
7763 else
7764 # Passes both tests.
7765 ac_preproc_ok=:
7766 break
7768 rm -f conftest.err conftest.i conftest.$ac_ext
7770 done
7771 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7772 rm -f conftest.i conftest.err conftest.$ac_ext
7773 if $ac_preproc_ok; then :
7775 else
7776 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7777 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7778 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7779 See \`config.log' for more details" "$LINENO" 5; }
7782 ac_ext=c
7783 ac_cpp='$CPP $CPPFLAGS'
7784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7790 $as_echo_n "checking for ANSI C header files... " >&6; }
7791 if ${ac_cv_header_stdc+:} false; then :
7792 $as_echo_n "(cached) " >&6
7793 else
7794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7795 /* end confdefs.h. */
7796 #include <stdlib.h>
7797 #include <stdarg.h>
7798 #include <string.h>
7799 #include <float.h>
7802 main ()
7806 return 0;
7808 _ACEOF
7809 if ac_fn_c_try_compile "$LINENO"; then :
7810 ac_cv_header_stdc=yes
7811 else
7812 ac_cv_header_stdc=no
7814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7816 if test $ac_cv_header_stdc = yes; then
7817 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7819 /* end confdefs.h. */
7820 #include <string.h>
7822 _ACEOF
7823 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7824 $EGREP "memchr" >/dev/null 2>&1; then :
7826 else
7827 ac_cv_header_stdc=no
7829 rm -f conftest*
7833 if test $ac_cv_header_stdc = yes; then
7834 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7836 /* end confdefs.h. */
7837 #include <stdlib.h>
7839 _ACEOF
7840 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7841 $EGREP "free" >/dev/null 2>&1; then :
7843 else
7844 ac_cv_header_stdc=no
7846 rm -f conftest*
7850 if test $ac_cv_header_stdc = yes; then
7851 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7852 if test "$cross_compiling" = yes; then :
7854 else
7855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7856 /* end confdefs.h. */
7857 #include <ctype.h>
7858 #include <stdlib.h>
7859 #if ((' ' & 0x0FF) == 0x020)
7860 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7861 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7862 #else
7863 # define ISLOWER(c) \
7864 (('a' <= (c) && (c) <= 'i') \
7865 || ('j' <= (c) && (c) <= 'r') \
7866 || ('s' <= (c) && (c) <= 'z'))
7867 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7868 #endif
7870 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7872 main ()
7874 int i;
7875 for (i = 0; i < 256; i++)
7876 if (XOR (islower (i), ISLOWER (i))
7877 || toupper (i) != TOUPPER (i))
7878 return 2;
7879 return 0;
7881 _ACEOF
7882 if ac_fn_c_try_run "$LINENO"; then :
7884 else
7885 ac_cv_header_stdc=no
7887 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7888 conftest.$ac_objext conftest.beam conftest.$ac_ext
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7894 $as_echo "$ac_cv_header_stdc" >&6; }
7895 if test $ac_cv_header_stdc = yes; then
7897 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7901 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7902 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7903 inttypes.h stdint.h unistd.h
7904 do :
7905 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7906 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7908 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7909 cat >>confdefs.h <<_ACEOF
7910 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7911 _ACEOF
7915 done
7918 for ac_header in dlfcn.h
7919 do :
7920 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7922 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7923 cat >>confdefs.h <<_ACEOF
7924 #define HAVE_DLFCN_H 1
7925 _ACEOF
7929 done
7935 # Set options
7939 enable_dlopen=no
7942 enable_win32_dll=no
7945 # Check whether --enable-shared was given.
7946 if test "${enable_shared+set}" = set; then :
7947 enableval=$enable_shared; p=${PACKAGE-default}
7948 case $enableval in
7949 yes) enable_shared=yes ;;
7950 no) enable_shared=no ;;
7952 enable_shared=no
7953 # Look at the argument we got. We use all the common list separators.
7954 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7955 for pkg in $enableval; do
7956 IFS="$lt_save_ifs"
7957 if test "X$pkg" = "X$p"; then
7958 enable_shared=yes
7960 done
7961 IFS="$lt_save_ifs"
7963 esac
7964 else
7965 enable_shared=yes
7976 # Check whether --enable-static was given.
7977 if test "${enable_static+set}" = set; then :
7978 enableval=$enable_static; p=${PACKAGE-default}
7979 case $enableval in
7980 yes) enable_static=yes ;;
7981 no) enable_static=no ;;
7983 enable_static=no
7984 # Look at the argument we got. We use all the common list separators.
7985 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7986 for pkg in $enableval; do
7987 IFS="$lt_save_ifs"
7988 if test "X$pkg" = "X$p"; then
7989 enable_static=yes
7991 done
7992 IFS="$lt_save_ifs"
7994 esac
7995 else
7996 enable_static=yes
8008 # Check whether --with-pic was given.
8009 if test "${with_pic+set}" = set; then :
8010 withval=$with_pic; pic_mode="$withval"
8011 else
8012 pic_mode=default
8016 test -z "$pic_mode" && pic_mode=default
8024 # Check whether --enable-fast-install was given.
8025 if test "${enable_fast_install+set}" = set; then :
8026 enableval=$enable_fast_install; p=${PACKAGE-default}
8027 case $enableval in
8028 yes) enable_fast_install=yes ;;
8029 no) enable_fast_install=no ;;
8031 enable_fast_install=no
8032 # Look at the argument we got. We use all the common list separators.
8033 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8034 for pkg in $enableval; do
8035 IFS="$lt_save_ifs"
8036 if test "X$pkg" = "X$p"; then
8037 enable_fast_install=yes
8039 done
8040 IFS="$lt_save_ifs"
8042 esac
8043 else
8044 enable_fast_install=yes
8057 # This can be used to rebuild libtool when needed
8058 LIBTOOL_DEPS="$ltmain"
8060 # Always use our own libtool.
8061 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8088 test -z "$LN_S" && LN_S="ln -s"
8103 if test -n "${ZSH_VERSION+set}" ; then
8104 setopt NO_GLOB_SUBST
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8108 $as_echo_n "checking for objdir... " >&6; }
8109 if ${lt_cv_objdir+:} false; then :
8110 $as_echo_n "(cached) " >&6
8111 else
8112 rm -f .libs 2>/dev/null
8113 mkdir .libs 2>/dev/null
8114 if test -d .libs; then
8115 lt_cv_objdir=.libs
8116 else
8117 # MS-DOS does not allow filenames that begin with a dot.
8118 lt_cv_objdir=_libs
8120 rmdir .libs 2>/dev/null
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8123 $as_echo "$lt_cv_objdir" >&6; }
8124 objdir=$lt_cv_objdir
8130 cat >>confdefs.h <<_ACEOF
8131 #define LT_OBJDIR "$lt_cv_objdir/"
8132 _ACEOF
8137 case $host_os in
8138 aix3*)
8139 # AIX sometimes has problems with the GCC collect2 program. For some
8140 # reason, if we set the COLLECT_NAMES environment variable, the problems
8141 # vanish in a puff of smoke.
8142 if test "X${COLLECT_NAMES+set}" != Xset; then
8143 COLLECT_NAMES=
8144 export COLLECT_NAMES
8147 esac
8149 # Global variables:
8150 ofile=libtool
8151 can_build_shared=yes
8153 # All known linkers require a `.a' archive for static linking (except MSVC,
8154 # which needs '.lib').
8155 libext=a
8157 with_gnu_ld="$lt_cv_prog_gnu_ld"
8159 old_CC="$CC"
8160 old_CFLAGS="$CFLAGS"
8162 # Set sane defaults for various variables
8163 test -z "$CC" && CC=cc
8164 test -z "$LTCC" && LTCC=$CC
8165 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8166 test -z "$LD" && LD=ld
8167 test -z "$ac_objext" && ac_objext=o
8169 for cc_temp in $compiler""; do
8170 case $cc_temp in
8171 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8172 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8173 \-*) ;;
8174 *) break;;
8175 esac
8176 done
8177 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8180 # Only perform the check for file, if the check method requires it
8181 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8182 case $deplibs_check_method in
8183 file_magic*)
8184 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8186 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8187 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8188 $as_echo_n "(cached) " >&6
8189 else
8190 case $MAGIC_CMD in
8191 [\\/*] | ?:[\\/]*)
8192 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8195 lt_save_MAGIC_CMD="$MAGIC_CMD"
8196 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8197 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8198 for ac_dir in $ac_dummy; do
8199 IFS="$lt_save_ifs"
8200 test -z "$ac_dir" && ac_dir=.
8201 if test -f $ac_dir/${ac_tool_prefix}file; then
8202 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8203 if test -n "$file_magic_test_file"; then
8204 case $deplibs_check_method in
8205 "file_magic "*)
8206 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8207 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8208 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8209 $EGREP "$file_magic_regex" > /dev/null; then
8211 else
8212 cat <<_LT_EOF 1>&2
8214 *** Warning: the command libtool uses to detect shared libraries,
8215 *** $file_magic_cmd, produces output that libtool cannot recognize.
8216 *** The result is that libtool may fail to recognize shared libraries
8217 *** as such. This will affect the creation of libtool libraries that
8218 *** depend on shared libraries, but programs linked with such libtool
8219 *** libraries will work regardless of this problem. Nevertheless, you
8220 *** may want to report the problem to your system manager and/or to
8221 *** bug-libtool@gnu.org
8223 _LT_EOF
8224 fi ;;
8225 esac
8227 break
8229 done
8230 IFS="$lt_save_ifs"
8231 MAGIC_CMD="$lt_save_MAGIC_CMD"
8233 esac
8236 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8237 if test -n "$MAGIC_CMD"; then
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8239 $as_echo "$MAGIC_CMD" >&6; }
8240 else
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8242 $as_echo "no" >&6; }
8249 if test -z "$lt_cv_path_MAGIC_CMD"; then
8250 if test -n "$ac_tool_prefix"; then
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8252 $as_echo_n "checking for file... " >&6; }
8253 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8254 $as_echo_n "(cached) " >&6
8255 else
8256 case $MAGIC_CMD in
8257 [\\/*] | ?:[\\/]*)
8258 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8261 lt_save_MAGIC_CMD="$MAGIC_CMD"
8262 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8263 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8264 for ac_dir in $ac_dummy; do
8265 IFS="$lt_save_ifs"
8266 test -z "$ac_dir" && ac_dir=.
8267 if test -f $ac_dir/file; then
8268 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8269 if test -n "$file_magic_test_file"; then
8270 case $deplibs_check_method in
8271 "file_magic "*)
8272 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8273 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8274 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8275 $EGREP "$file_magic_regex" > /dev/null; then
8277 else
8278 cat <<_LT_EOF 1>&2
8280 *** Warning: the command libtool uses to detect shared libraries,
8281 *** $file_magic_cmd, produces output that libtool cannot recognize.
8282 *** The result is that libtool may fail to recognize shared libraries
8283 *** as such. This will affect the creation of libtool libraries that
8284 *** depend on shared libraries, but programs linked with such libtool
8285 *** libraries will work regardless of this problem. Nevertheless, you
8286 *** may want to report the problem to your system manager and/or to
8287 *** bug-libtool@gnu.org
8289 _LT_EOF
8290 fi ;;
8291 esac
8293 break
8295 done
8296 IFS="$lt_save_ifs"
8297 MAGIC_CMD="$lt_save_MAGIC_CMD"
8299 esac
8302 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8303 if test -n "$MAGIC_CMD"; then
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8305 $as_echo "$MAGIC_CMD" >&6; }
8306 else
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8308 $as_echo "no" >&6; }
8312 else
8313 MAGIC_CMD=:
8319 esac
8321 # Use C for the default configuration in the libtool script
8323 lt_save_CC="$CC"
8324 ac_ext=c
8325 ac_cpp='$CPP $CPPFLAGS'
8326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8331 # Source file extension for C test sources.
8332 ac_ext=c
8334 # Object file extension for compiled C test sources.
8335 objext=o
8336 objext=$objext
8338 # Code to be used in simple compile tests
8339 lt_simple_compile_test_code="int some_variable = 0;"
8341 # Code to be used in simple link tests
8342 lt_simple_link_test_code='int main(){return(0);}'
8350 # If no C compiler was specified, use CC.
8351 LTCC=${LTCC-"$CC"}
8353 # If no C compiler flags were specified, use CFLAGS.
8354 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8356 # Allow CC to be a program name with arguments.
8357 compiler=$CC
8359 # Save the default compiler, since it gets overwritten when the other
8360 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8361 compiler_DEFAULT=$CC
8363 # save warnings/boilerplate of simple test code
8364 ac_outfile=conftest.$ac_objext
8365 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8366 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8367 _lt_compiler_boilerplate=`cat conftest.err`
8368 $RM conftest*
8370 ac_outfile=conftest.$ac_objext
8371 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8372 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8373 _lt_linker_boilerplate=`cat conftest.err`
8374 $RM -r conftest*
8377 ## CAVEAT EMPTOR:
8378 ## There is no encapsulation within the following macros, do not change
8379 ## the running order or otherwise move them around unless you know exactly
8380 ## what you are doing...
8381 if test -n "$compiler"; then
8383 lt_prog_compiler_no_builtin_flag=
8385 if test "$GCC" = yes; then
8386 case $cc_basename in
8387 nvcc*)
8388 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8390 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8391 esac
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8394 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8395 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8396 $as_echo_n "(cached) " >&6
8397 else
8398 lt_cv_prog_compiler_rtti_exceptions=no
8399 ac_outfile=conftest.$ac_objext
8400 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8401 lt_compiler_flag="-fno-rtti -fno-exceptions"
8402 # Insert the option either (1) after the last *FLAGS variable, or
8403 # (2) before a word containing "conftest.", or (3) at the end.
8404 # Note that $ac_compile itself does not contain backslashes and begins
8405 # with a dollar sign (not a hyphen), so the echo should work correctly.
8406 # The option is referenced via a variable to avoid confusing sed.
8407 lt_compile=`echo "$ac_compile" | $SED \
8408 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8409 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8410 -e 's:$: $lt_compiler_flag:'`
8411 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8412 (eval "$lt_compile" 2>conftest.err)
8413 ac_status=$?
8414 cat conftest.err >&5
8415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416 if (exit $ac_status) && test -s "$ac_outfile"; then
8417 # The compiler can only warn and ignore the option if not recognized
8418 # So say no if there are warnings other than the usual output.
8419 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8420 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8421 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8422 lt_cv_prog_compiler_rtti_exceptions=yes
8425 $RM conftest*
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8429 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8431 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8432 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8433 else
8444 lt_prog_compiler_wl=
8445 lt_prog_compiler_pic=
8446 lt_prog_compiler_static=
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8449 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8451 if test "$GCC" = yes; then
8452 lt_prog_compiler_wl='-Wl,'
8453 lt_prog_compiler_static='-static'
8455 case $host_os in
8456 aix*)
8457 # All AIX code is PIC.
8458 if test "$host_cpu" = ia64; then
8459 # AIX 5 now supports IA64 processor
8460 lt_prog_compiler_static='-Bstatic'
8462 lt_prog_compiler_pic='-fPIC'
8465 amigaos*)
8466 case $host_cpu in
8467 powerpc)
8468 # see comment about AmigaOS4 .so support
8469 lt_prog_compiler_pic='-fPIC'
8471 m68k)
8472 # FIXME: we need at least 68020 code to build shared libraries, but
8473 # adding the `-m68020' flag to GCC prevents building anything better,
8474 # like `-m68040'.
8475 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8477 esac
8480 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8481 # PIC is the default for these OSes.
8484 mingw* | cygwin* | pw32* | os2* | cegcc*)
8485 # This hack is so that the source file can tell whether it is being
8486 # built for inclusion in a dll (and should export symbols for example).
8487 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8488 # (--disable-auto-import) libraries
8489 lt_prog_compiler_pic='-DDLL_EXPORT'
8492 darwin* | rhapsody*)
8493 # PIC is the default on this platform
8494 # Common symbols not allowed in MH_DYLIB files
8495 lt_prog_compiler_pic='-fno-common'
8498 haiku*)
8499 # PIC is the default for Haiku.
8500 # The "-static" flag exists, but is broken.
8501 lt_prog_compiler_static=
8504 hpux*)
8505 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8506 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8507 # sets the default TLS model and affects inlining.
8508 case $host_cpu in
8509 hppa*64*)
8510 # +Z the default
8513 lt_prog_compiler_pic='-fPIC'
8515 esac
8518 interix[3-9]*)
8519 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8520 # Instead, we relocate shared libraries at runtime.
8523 msdosdjgpp*)
8524 # Just because we use GCC doesn't mean we suddenly get shared libraries
8525 # on systems that don't support them.
8526 lt_prog_compiler_can_build_shared=no
8527 enable_shared=no
8530 *nto* | *qnx*)
8531 # QNX uses GNU C++, but need to define -shared option too, otherwise
8532 # it will coredump.
8533 lt_prog_compiler_pic='-fPIC -shared'
8536 sysv4*MP*)
8537 if test -d /usr/nec; then
8538 lt_prog_compiler_pic=-Kconform_pic
8543 lt_prog_compiler_pic='-fPIC'
8545 esac
8547 case $cc_basename in
8548 nvcc*) # Cuda Compiler Driver 2.2
8549 lt_prog_compiler_wl='-Xlinker '
8550 lt_prog_compiler_pic='-Xcompiler -fPIC'
8552 esac
8553 else
8554 # PORTME Check for flag to pass linker flags through the system compiler.
8555 case $host_os in
8556 aix*)
8557 lt_prog_compiler_wl='-Wl,'
8558 if test "$host_cpu" = ia64; then
8559 # AIX 5 now supports IA64 processor
8560 lt_prog_compiler_static='-Bstatic'
8561 else
8562 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8566 mingw* | cygwin* | pw32* | os2* | cegcc*)
8567 # This hack is so that the source file can tell whether it is being
8568 # built for inclusion in a dll (and should export symbols for example).
8569 lt_prog_compiler_pic='-DDLL_EXPORT'
8572 hpux9* | hpux10* | hpux11*)
8573 lt_prog_compiler_wl='-Wl,'
8574 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8575 # not for PA HP-UX.
8576 case $host_cpu in
8577 hppa*64*|ia64*)
8578 # +Z the default
8581 lt_prog_compiler_pic='+Z'
8583 esac
8584 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8585 lt_prog_compiler_static='${wl}-a ${wl}archive'
8588 irix5* | irix6* | nonstopux*)
8589 lt_prog_compiler_wl='-Wl,'
8590 # PIC (with -KPIC) is the default.
8591 lt_prog_compiler_static='-non_shared'
8594 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8595 case $cc_basename in
8596 # old Intel for x86_64 which still supported -KPIC.
8597 ecc*)
8598 lt_prog_compiler_wl='-Wl,'
8599 lt_prog_compiler_pic='-KPIC'
8600 lt_prog_compiler_static='-static'
8602 # icc used to be incompatible with GCC.
8603 # ICC 10 doesn't accept -KPIC any more.
8604 icc* | ifort*)
8605 lt_prog_compiler_wl='-Wl,'
8606 lt_prog_compiler_pic='-fPIC'
8607 lt_prog_compiler_static='-static'
8609 # Lahey Fortran 8.1.
8610 lf95*)
8611 lt_prog_compiler_wl='-Wl,'
8612 lt_prog_compiler_pic='--shared'
8613 lt_prog_compiler_static='--static'
8615 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8616 # Portland Group compilers (*not* the Pentium gcc compiler,
8617 # which looks to be a dead project)
8618 lt_prog_compiler_wl='-Wl,'
8619 lt_prog_compiler_pic='-fpic'
8620 lt_prog_compiler_static='-Bstatic'
8622 ccc*)
8623 lt_prog_compiler_wl='-Wl,'
8624 # All Alpha code is PIC.
8625 lt_prog_compiler_static='-non_shared'
8627 xl* | bgxl* | bgf* | mpixl*)
8628 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8629 lt_prog_compiler_wl='-Wl,'
8630 lt_prog_compiler_pic='-qpic'
8631 lt_prog_compiler_static='-qstaticlink'
8634 case `$CC -V 2>&1 | sed 5q` in
8635 *Sun\ F* | *Sun*Fortran*)
8636 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8637 lt_prog_compiler_pic='-KPIC'
8638 lt_prog_compiler_static='-Bstatic'
8639 lt_prog_compiler_wl=''
8641 *Sun\ C*)
8642 # Sun C 5.9
8643 lt_prog_compiler_pic='-KPIC'
8644 lt_prog_compiler_static='-Bstatic'
8645 lt_prog_compiler_wl='-Wl,'
8647 esac
8649 esac
8652 newsos6)
8653 lt_prog_compiler_pic='-KPIC'
8654 lt_prog_compiler_static='-Bstatic'
8657 *nto* | *qnx*)
8658 # QNX uses GNU C++, but need to define -shared option too, otherwise
8659 # it will coredump.
8660 lt_prog_compiler_pic='-fPIC -shared'
8663 osf3* | osf4* | osf5*)
8664 lt_prog_compiler_wl='-Wl,'
8665 # All OSF/1 code is PIC.
8666 lt_prog_compiler_static='-non_shared'
8669 rdos*)
8670 lt_prog_compiler_static='-non_shared'
8673 solaris*)
8674 lt_prog_compiler_pic='-KPIC'
8675 lt_prog_compiler_static='-Bstatic'
8676 case $cc_basename in
8677 f77* | f90* | f95*)
8678 lt_prog_compiler_wl='-Qoption ld ';;
8680 lt_prog_compiler_wl='-Wl,';;
8681 esac
8684 sunos4*)
8685 lt_prog_compiler_wl='-Qoption ld '
8686 lt_prog_compiler_pic='-PIC'
8687 lt_prog_compiler_static='-Bstatic'
8690 sysv4 | sysv4.2uw2* | sysv4.3*)
8691 lt_prog_compiler_wl='-Wl,'
8692 lt_prog_compiler_pic='-KPIC'
8693 lt_prog_compiler_static='-Bstatic'
8696 sysv4*MP*)
8697 if test -d /usr/nec ;then
8698 lt_prog_compiler_pic='-Kconform_pic'
8699 lt_prog_compiler_static='-Bstatic'
8703 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8704 lt_prog_compiler_wl='-Wl,'
8705 lt_prog_compiler_pic='-KPIC'
8706 lt_prog_compiler_static='-Bstatic'
8709 unicos*)
8710 lt_prog_compiler_wl='-Wl,'
8711 lt_prog_compiler_can_build_shared=no
8714 uts4*)
8715 lt_prog_compiler_pic='-pic'
8716 lt_prog_compiler_static='-Bstatic'
8720 lt_prog_compiler_can_build_shared=no
8722 esac
8725 case $host_os in
8726 # For platforms which do not support PIC, -DPIC is meaningless:
8727 *djgpp*)
8728 lt_prog_compiler_pic=
8731 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8733 esac
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8735 $as_echo "$lt_prog_compiler_pic" >&6; }
8743 # Check to make sure the PIC flag actually works.
8745 if test -n "$lt_prog_compiler_pic"; then
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8747 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8748 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8749 $as_echo_n "(cached) " >&6
8750 else
8751 lt_cv_prog_compiler_pic_works=no
8752 ac_outfile=conftest.$ac_objext
8753 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8754 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8755 # Insert the option either (1) after the last *FLAGS variable, or
8756 # (2) before a word containing "conftest.", or (3) at the end.
8757 # Note that $ac_compile itself does not contain backslashes and begins
8758 # with a dollar sign (not a hyphen), so the echo should work correctly.
8759 # The option is referenced via a variable to avoid confusing sed.
8760 lt_compile=`echo "$ac_compile" | $SED \
8761 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8762 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8763 -e 's:$: $lt_compiler_flag:'`
8764 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8765 (eval "$lt_compile" 2>conftest.err)
8766 ac_status=$?
8767 cat conftest.err >&5
8768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769 if (exit $ac_status) && test -s "$ac_outfile"; then
8770 # The compiler can only warn and ignore the option if not recognized
8771 # So say no if there are warnings other than the usual output.
8772 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8773 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8774 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8775 lt_cv_prog_compiler_pic_works=yes
8778 $RM conftest*
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8782 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8784 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8785 case $lt_prog_compiler_pic in
8786 "" | " "*) ;;
8787 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8788 esac
8789 else
8790 lt_prog_compiler_pic=
8791 lt_prog_compiler_can_build_shared=no
8802 # Check to make sure the static flag actually works.
8804 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8806 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8807 if ${lt_cv_prog_compiler_static_works+:} false; then :
8808 $as_echo_n "(cached) " >&6
8809 else
8810 lt_cv_prog_compiler_static_works=no
8811 save_LDFLAGS="$LDFLAGS"
8812 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8813 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8814 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8815 # The linker can only warn and ignore the option if not recognized
8816 # So say no if there are warnings
8817 if test -s conftest.err; then
8818 # Append any errors to the config.log.
8819 cat conftest.err 1>&5
8820 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8821 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8822 if diff conftest.exp conftest.er2 >/dev/null; then
8823 lt_cv_prog_compiler_static_works=yes
8825 else
8826 lt_cv_prog_compiler_static_works=yes
8829 $RM -r conftest*
8830 LDFLAGS="$save_LDFLAGS"
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8834 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8836 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8838 else
8839 lt_prog_compiler_static=
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8849 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8850 if ${lt_cv_prog_compiler_c_o+:} false; then :
8851 $as_echo_n "(cached) " >&6
8852 else
8853 lt_cv_prog_compiler_c_o=no
8854 $RM -r conftest 2>/dev/null
8855 mkdir conftest
8856 cd conftest
8857 mkdir out
8858 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8860 lt_compiler_flag="-o out/conftest2.$ac_objext"
8861 # Insert the option either (1) after the last *FLAGS variable, or
8862 # (2) before a word containing "conftest.", or (3) at the end.
8863 # Note that $ac_compile itself does not contain backslashes and begins
8864 # with a dollar sign (not a hyphen), so the echo should work correctly.
8865 lt_compile=`echo "$ac_compile" | $SED \
8866 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8867 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8868 -e 's:$: $lt_compiler_flag:'`
8869 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8870 (eval "$lt_compile" 2>out/conftest.err)
8871 ac_status=$?
8872 cat out/conftest.err >&5
8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8875 then
8876 # The compiler can only warn and ignore the option if not recognized
8877 # So say no if there are warnings
8878 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8879 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8880 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8881 lt_cv_prog_compiler_c_o=yes
8884 chmod u+w . 2>&5
8885 $RM conftest*
8886 # SGI C++ compiler will create directory out/ii_files/ for
8887 # template instantiation
8888 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8889 $RM out/* && rmdir out
8890 cd ..
8891 $RM -r conftest
8892 $RM conftest*
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8896 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8904 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8905 if ${lt_cv_prog_compiler_c_o+:} false; then :
8906 $as_echo_n "(cached) " >&6
8907 else
8908 lt_cv_prog_compiler_c_o=no
8909 $RM -r conftest 2>/dev/null
8910 mkdir conftest
8911 cd conftest
8912 mkdir out
8913 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8915 lt_compiler_flag="-o out/conftest2.$ac_objext"
8916 # Insert the option either (1) after the last *FLAGS variable, or
8917 # (2) before a word containing "conftest.", or (3) at the end.
8918 # Note that $ac_compile itself does not contain backslashes and begins
8919 # with a dollar sign (not a hyphen), so the echo should work correctly.
8920 lt_compile=`echo "$ac_compile" | $SED \
8921 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8922 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8923 -e 's:$: $lt_compiler_flag:'`
8924 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8925 (eval "$lt_compile" 2>out/conftest.err)
8926 ac_status=$?
8927 cat out/conftest.err >&5
8928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8930 then
8931 # The compiler can only warn and ignore the option if not recognized
8932 # So say no if there are warnings
8933 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8934 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8935 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8936 lt_cv_prog_compiler_c_o=yes
8939 chmod u+w . 2>&5
8940 $RM conftest*
8941 # SGI C++ compiler will create directory out/ii_files/ for
8942 # template instantiation
8943 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8944 $RM out/* && rmdir out
8945 cd ..
8946 $RM -r conftest
8947 $RM conftest*
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8951 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8956 hard_links="nottested"
8957 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8958 # do not overwrite the value of need_locks provided by the user
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8960 $as_echo_n "checking if we can lock with hard links... " >&6; }
8961 hard_links=yes
8962 $RM conftest*
8963 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8964 touch conftest.a
8965 ln conftest.a conftest.b 2>&5 || hard_links=no
8966 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8968 $as_echo "$hard_links" >&6; }
8969 if test "$hard_links" = no; then
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8971 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8972 need_locks=warn
8974 else
8975 need_locks=no
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8984 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8986 runpath_var=
8987 allow_undefined_flag=
8988 always_export_symbols=no
8989 archive_cmds=
8990 archive_expsym_cmds=
8991 compiler_needs_object=no
8992 enable_shared_with_static_runtimes=no
8993 export_dynamic_flag_spec=
8994 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8995 hardcode_automatic=no
8996 hardcode_direct=no
8997 hardcode_direct_absolute=no
8998 hardcode_libdir_flag_spec=
8999 hardcode_libdir_flag_spec_ld=
9000 hardcode_libdir_separator=
9001 hardcode_minus_L=no
9002 hardcode_shlibpath_var=unsupported
9003 inherit_rpath=no
9004 link_all_deplibs=unknown
9005 module_cmds=
9006 module_expsym_cmds=
9007 old_archive_from_new_cmds=
9008 old_archive_from_expsyms_cmds=
9009 thread_safe_flag_spec=
9010 whole_archive_flag_spec=
9011 # include_expsyms should be a list of space-separated symbols to be *always*
9012 # included in the symbol list
9013 include_expsyms=
9014 # exclude_expsyms can be an extended regexp of symbols to exclude
9015 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9016 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9017 # as well as any symbol that contains `d'.
9018 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9019 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9020 # platforms (ab)use it in PIC code, but their linkers get confused if
9021 # the symbol is explicitly referenced. Since portable code cannot
9022 # rely on this symbol name, it's probably fine to never include it in
9023 # preloaded symbol tables.
9024 # Exclude shared library initialization/finalization symbols.
9025 extract_expsyms_cmds=
9027 case $host_os in
9028 cygwin* | mingw* | pw32* | cegcc*)
9029 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9030 # When not using gcc, we currently assume that we are using
9031 # Microsoft Visual C++.
9032 if test "$GCC" != yes; then
9033 with_gnu_ld=no
9036 interix*)
9037 # we just hope/assume this is gcc and not c89 (= MSVC++)
9038 with_gnu_ld=yes
9040 openbsd*)
9041 with_gnu_ld=no
9043 esac
9045 ld_shlibs=yes
9047 # On some targets, GNU ld is compatible enough with the native linker
9048 # that we're better off using the native interface for both.
9049 lt_use_gnu_ld_interface=no
9050 if test "$with_gnu_ld" = yes; then
9051 case $host_os in
9052 aix*)
9053 # The AIX port of GNU ld has always aspired to compatibility
9054 # with the native linker. However, as the warning in the GNU ld
9055 # block says, versions before 2.19.5* couldn't really create working
9056 # shared libraries, regardless of the interface used.
9057 case `$LD -v 2>&1` in
9058 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9059 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9060 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9062 lt_use_gnu_ld_interface=yes
9064 esac
9067 lt_use_gnu_ld_interface=yes
9069 esac
9072 if test "$lt_use_gnu_ld_interface" = yes; then
9073 # If archive_cmds runs LD, not CC, wlarc should be empty
9074 wlarc='${wl}'
9076 # Set some defaults for GNU ld with shared library support. These
9077 # are reset later if shared libraries are not supported. Putting them
9078 # here allows them to be overridden if necessary.
9079 runpath_var=LD_RUN_PATH
9080 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9081 export_dynamic_flag_spec='${wl}--export-dynamic'
9082 # ancient GNU ld didn't support --whole-archive et. al.
9083 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9084 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9085 else
9086 whole_archive_flag_spec=
9088 supports_anon_versioning=no
9089 case `$LD -v 2>&1` in
9090 *GNU\ gold*) supports_anon_versioning=yes ;;
9091 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9092 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9093 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9094 *\ 2.11.*) ;; # other 2.11 versions
9095 *) supports_anon_versioning=yes ;;
9096 esac
9098 # See if GNU ld supports shared libraries.
9099 case $host_os in
9100 aix[3-9]*)
9101 # On AIX/PPC, the GNU linker is very broken
9102 if test "$host_cpu" != ia64; then
9103 ld_shlibs=no
9104 cat <<_LT_EOF 1>&2
9106 *** Warning: the GNU linker, at least up to release 2.19, is reported
9107 *** to be unable to reliably create shared libraries on AIX.
9108 *** Therefore, libtool is disabling shared libraries support. If you
9109 *** really care for shared libraries, you may want to install binutils
9110 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9111 *** You will then need to restart the configuration process.
9113 _LT_EOF
9117 amigaos*)
9118 case $host_cpu in
9119 powerpc)
9120 # see comment about AmigaOS4 .so support
9121 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9122 archive_expsym_cmds=''
9124 m68k)
9125 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)'
9126 hardcode_libdir_flag_spec='-L$libdir'
9127 hardcode_minus_L=yes
9129 esac
9132 beos*)
9133 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9134 allow_undefined_flag=unsupported
9135 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9136 # support --undefined. This deserves some investigation. FIXME
9137 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9138 else
9139 ld_shlibs=no
9143 cygwin* | mingw* | pw32* | cegcc*)
9144 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9145 # as there is no search path for DLLs.
9146 hardcode_libdir_flag_spec='-L$libdir'
9147 export_dynamic_flag_spec='${wl}--export-all-symbols'
9148 allow_undefined_flag=unsupported
9149 always_export_symbols=no
9150 enable_shared_with_static_runtimes=yes
9151 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9153 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9154 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9155 # If the export-symbols file already is a .def file (1st line
9156 # is EXPORTS), use it as is; otherwise, prepend...
9157 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9158 cp $export_symbols $output_objdir/$soname.def;
9159 else
9160 echo EXPORTS > $output_objdir/$soname.def;
9161 cat $export_symbols >> $output_objdir/$soname.def;
9163 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9164 else
9165 ld_shlibs=no
9169 haiku*)
9170 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9171 link_all_deplibs=yes
9174 interix[3-9]*)
9175 hardcode_direct=no
9176 hardcode_shlibpath_var=no
9177 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9178 export_dynamic_flag_spec='${wl}-E'
9179 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9180 # Instead, shared libraries are loaded at an image base (0x10000000 by
9181 # default) and relocated if they conflict, which is a slow very memory
9182 # consuming and fragmenting process. To avoid this, we pick a random,
9183 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9184 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9185 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9186 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'
9189 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9190 tmp_diet=no
9191 if test "$host_os" = linux-dietlibc; then
9192 case $cc_basename in
9193 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9194 esac
9196 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9197 && test "$tmp_diet" = no
9198 then
9199 tmp_addflag=' $pic_flag'
9200 tmp_sharedflag='-shared'
9201 case $cc_basename,$host_cpu in
9202 pgcc*) # Portland Group C compiler
9203 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'
9204 tmp_addflag=' $pic_flag'
9206 pgf77* | pgf90* | pgf95* | pgfortran*)
9207 # Portland Group f77 and f90 compilers
9208 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'
9209 tmp_addflag=' $pic_flag -Mnomain' ;;
9210 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9211 tmp_addflag=' -i_dynamic' ;;
9212 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9213 tmp_addflag=' -i_dynamic -nofor_main' ;;
9214 ifc* | ifort*) # Intel Fortran compiler
9215 tmp_addflag=' -nofor_main' ;;
9216 lf95*) # Lahey Fortran 8.1
9217 whole_archive_flag_spec=
9218 tmp_sharedflag='--shared' ;;
9219 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9220 tmp_sharedflag='-qmkshrobj'
9221 tmp_addflag= ;;
9222 nvcc*) # Cuda Compiler Driver 2.2
9223 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'
9224 compiler_needs_object=yes
9226 esac
9227 case `$CC -V 2>&1 | sed 5q` in
9228 *Sun\ C*) # Sun C 5.9
9229 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'
9230 compiler_needs_object=yes
9231 tmp_sharedflag='-G' ;;
9232 *Sun\ F*) # Sun Fortran 8.3
9233 tmp_sharedflag='-G' ;;
9234 esac
9235 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9237 if test "x$supports_anon_versioning" = xyes; then
9238 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9239 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9240 echo "local: *; };" >> $output_objdir/$libname.ver~
9241 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9244 case $cc_basename in
9245 xlf* | bgf* | bgxlf* | mpixlf*)
9246 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9247 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9248 hardcode_libdir_flag_spec=
9249 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9250 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9251 if test "x$supports_anon_versioning" = xyes; then
9252 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9253 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9254 echo "local: *; };" >> $output_objdir/$libname.ver~
9255 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9258 esac
9259 else
9260 ld_shlibs=no
9264 netbsd*)
9265 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9266 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9267 wlarc=
9268 else
9269 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9270 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9274 solaris*)
9275 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9276 ld_shlibs=no
9277 cat <<_LT_EOF 1>&2
9279 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9280 *** create shared libraries on Solaris systems. Therefore, libtool
9281 *** is disabling shared libraries support. We urge you to upgrade GNU
9282 *** binutils to release 2.9.1 or newer. Another option is to modify
9283 *** your PATH or compiler configuration so that the native linker is
9284 *** used, and then restart.
9286 _LT_EOF
9287 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9288 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9289 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9290 else
9291 ld_shlibs=no
9295 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9296 case `$LD -v 2>&1` in
9297 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9298 ld_shlibs=no
9299 cat <<_LT_EOF 1>&2
9301 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9302 *** reliably create shared libraries on SCO systems. Therefore, libtool
9303 *** is disabling shared libraries support. We urge you to upgrade GNU
9304 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9305 *** your PATH or compiler configuration so that the native linker is
9306 *** used, and then restart.
9308 _LT_EOF
9311 # For security reasons, it is highly recommended that you always
9312 # use absolute paths for naming shared libraries, and exclude the
9313 # DT_RUNPATH tag from executables and libraries. But doing so
9314 # requires that you compile everything twice, which is a pain.
9315 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9316 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9317 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9318 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9319 else
9320 ld_shlibs=no
9323 esac
9326 sunos4*)
9327 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9328 wlarc=
9329 hardcode_direct=yes
9330 hardcode_shlibpath_var=no
9334 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9335 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9336 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9337 else
9338 ld_shlibs=no
9341 esac
9343 if test "$ld_shlibs" = no; then
9344 runpath_var=
9345 hardcode_libdir_flag_spec=
9346 export_dynamic_flag_spec=
9347 whole_archive_flag_spec=
9349 else
9350 # PORTME fill in a description of your system's linker (not GNU ld)
9351 case $host_os in
9352 aix3*)
9353 allow_undefined_flag=unsupported
9354 always_export_symbols=yes
9355 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'
9356 # Note: this linker hardcodes the directories in LIBPATH if there
9357 # are no directories specified by -L.
9358 hardcode_minus_L=yes
9359 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9360 # Neither direct hardcoding nor static linking is supported with a
9361 # broken collect2.
9362 hardcode_direct=unsupported
9366 aix[4-9]*)
9367 if test "$host_cpu" = ia64; then
9368 # On IA64, the linker does run time linking by default, so we don't
9369 # have to do anything special.
9370 aix_use_runtimelinking=no
9371 exp_sym_flag='-Bexport'
9372 no_entry_flag=""
9373 else
9374 # If we're using GNU nm, then we don't want the "-C" option.
9375 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9376 # Also, AIX nm treats weak defined symbols like other global
9377 # defined symbols, whereas GNU nm marks them as "W".
9378 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9379 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'
9380 else
9381 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9383 aix_use_runtimelinking=no
9385 # Test if we are trying to use run time linking or normal
9386 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9387 # need to do runtime linking.
9388 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9389 for ld_flag in $LDFLAGS; do
9390 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9391 aix_use_runtimelinking=yes
9392 break
9394 done
9396 esac
9398 exp_sym_flag='-bexport'
9399 no_entry_flag='-bnoentry'
9402 # When large executables or shared objects are built, AIX ld can
9403 # have problems creating the table of contents. If linking a library
9404 # or program results in "error TOC overflow" add -mminimal-toc to
9405 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9406 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9408 archive_cmds=''
9409 hardcode_direct=yes
9410 hardcode_direct_absolute=yes
9411 hardcode_libdir_separator=':'
9412 link_all_deplibs=yes
9413 file_list_spec='${wl}-f,'
9415 if test "$GCC" = yes; then
9416 case $host_os in aix4.[012]|aix4.[012].*)
9417 # We only want to do this on AIX 4.2 and lower, the check
9418 # below for broken collect2 doesn't work under 4.3+
9419 collect2name=`${CC} -print-prog-name=collect2`
9420 if test -f "$collect2name" &&
9421 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9422 then
9423 # We have reworked collect2
9425 else
9426 # We have old collect2
9427 hardcode_direct=unsupported
9428 # It fails to find uninstalled libraries when the uninstalled
9429 # path is not listed in the libpath. Setting hardcode_minus_L
9430 # to unsupported forces relinking
9431 hardcode_minus_L=yes
9432 hardcode_libdir_flag_spec='-L$libdir'
9433 hardcode_libdir_separator=
9436 esac
9437 shared_flag='-shared'
9438 if test "$aix_use_runtimelinking" = yes; then
9439 shared_flag="$shared_flag "'${wl}-G'
9441 else
9442 # not using gcc
9443 if test "$host_cpu" = ia64; then
9444 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9445 # chokes on -Wl,-G. The following line is correct:
9446 shared_flag='-G'
9447 else
9448 if test "$aix_use_runtimelinking" = yes; then
9449 shared_flag='${wl}-G'
9450 else
9451 shared_flag='${wl}-bM:SRE'
9456 export_dynamic_flag_spec='${wl}-bexpall'
9457 # It seems that -bexpall does not export symbols beginning with
9458 # underscore (_), so it is better to generate a list of symbols to export.
9459 always_export_symbols=yes
9460 if test "$aix_use_runtimelinking" = yes; then
9461 # Warning - without using the other runtime loading flags (-brtl),
9462 # -berok will link without error, but may produce a broken library.
9463 allow_undefined_flag='-berok'
9464 # Determine the default libpath from the value encoded in an
9465 # empty executable.
9466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9467 /* end confdefs.h. */
9470 main ()
9474 return 0;
9476 _ACEOF
9477 if ac_fn_c_try_link "$LINENO"; then :
9479 lt_aix_libpath_sed='
9480 /Import File Strings/,/^$/ {
9481 /^0/ {
9482 s/^0 *\(.*\)$/\1/
9486 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9487 # Check for a 64-bit object if we didn't find anything.
9488 if test -z "$aix_libpath"; then
9489 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9492 rm -f core conftest.err conftest.$ac_objext \
9493 conftest$ac_exeext conftest.$ac_ext
9494 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9496 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9497 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"
9498 else
9499 if test "$host_cpu" = ia64; then
9500 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9501 allow_undefined_flag="-z nodefs"
9502 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"
9503 else
9504 # Determine the default libpath from the value encoded in an
9505 # empty executable.
9506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9507 /* end confdefs.h. */
9510 main ()
9514 return 0;
9516 _ACEOF
9517 if ac_fn_c_try_link "$LINENO"; then :
9519 lt_aix_libpath_sed='
9520 /Import File Strings/,/^$/ {
9521 /^0/ {
9522 s/^0 *\(.*\)$/\1/
9526 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9527 # Check for a 64-bit object if we didn't find anything.
9528 if test -z "$aix_libpath"; then
9529 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9532 rm -f core conftest.err conftest.$ac_objext \
9533 conftest$ac_exeext conftest.$ac_ext
9534 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9536 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9537 # Warning - without using the other run time loading flags,
9538 # -berok will link without error, but may produce a broken library.
9539 no_undefined_flag=' ${wl}-bernotok'
9540 allow_undefined_flag=' ${wl}-berok'
9541 if test "$with_gnu_ld" = yes; then
9542 # We only use this code for GNU lds that support --whole-archive.
9543 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9544 else
9545 # Exported symbols can be pulled into shared objects from archives
9546 whole_archive_flag_spec='$convenience'
9548 archive_cmds_need_lc=yes
9549 # This is similar to how AIX traditionally builds its shared libraries.
9550 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'
9555 amigaos*)
9556 case $host_cpu in
9557 powerpc)
9558 # see comment about AmigaOS4 .so support
9559 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9560 archive_expsym_cmds=''
9562 m68k)
9563 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)'
9564 hardcode_libdir_flag_spec='-L$libdir'
9565 hardcode_minus_L=yes
9567 esac
9570 bsdi[45]*)
9571 export_dynamic_flag_spec=-rdynamic
9574 cygwin* | mingw* | pw32* | cegcc*)
9575 # When not using gcc, we currently assume that we are using
9576 # Microsoft Visual C++.
9577 # hardcode_libdir_flag_spec is actually meaningless, as there is
9578 # no search path for DLLs.
9579 hardcode_libdir_flag_spec=' '
9580 allow_undefined_flag=unsupported
9581 # Tell ltmain to make .lib files, not .a files.
9582 libext=lib
9583 # Tell ltmain to make .dll files, not .so files.
9584 shrext_cmds=".dll"
9585 # FIXME: Setting linknames here is a bad hack.
9586 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9587 # The linker will automatically build a .lib file if we build a DLL.
9588 old_archive_from_new_cmds='true'
9589 # FIXME: Should let the user specify the lib program.
9590 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9591 fix_srcfile_path='`cygpath -w "$srcfile"`'
9592 enable_shared_with_static_runtimes=yes
9595 darwin* | rhapsody*)
9598 archive_cmds_need_lc=no
9599 hardcode_direct=no
9600 hardcode_automatic=yes
9601 hardcode_shlibpath_var=unsupported
9602 if test "$lt_cv_ld_force_load" = "yes"; then
9603 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\"`'
9604 else
9605 whole_archive_flag_spec=''
9607 link_all_deplibs=yes
9608 allow_undefined_flag="$_lt_dar_allow_undefined"
9609 case $cc_basename in
9610 ifort*) _lt_dar_can_shared=yes ;;
9611 *) _lt_dar_can_shared=$GCC ;;
9612 esac
9613 if test "$_lt_dar_can_shared" = "yes"; then
9614 output_verbose_link_cmd=func_echo_all
9615 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9616 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9617 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}"
9618 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}"
9620 else
9621 ld_shlibs=no
9626 dgux*)
9627 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9628 hardcode_libdir_flag_spec='-L$libdir'
9629 hardcode_shlibpath_var=no
9632 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9633 # support. Future versions do this automatically, but an explicit c++rt0.o
9634 # does not break anything, and helps significantly (at the cost of a little
9635 # extra space).
9636 freebsd2.2*)
9637 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9638 hardcode_libdir_flag_spec='-R$libdir'
9639 hardcode_direct=yes
9640 hardcode_shlibpath_var=no
9643 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9644 freebsd2.*)
9645 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9646 hardcode_direct=yes
9647 hardcode_minus_L=yes
9648 hardcode_shlibpath_var=no
9651 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9652 freebsd* | dragonfly*)
9653 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9654 hardcode_libdir_flag_spec='-R$libdir'
9655 hardcode_direct=yes
9656 hardcode_shlibpath_var=no
9659 hpux9*)
9660 if test "$GCC" = yes; then
9661 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'
9662 else
9663 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'
9665 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9666 hardcode_libdir_separator=:
9667 hardcode_direct=yes
9669 # hardcode_minus_L: Not really in the search PATH,
9670 # but as the default location of the library.
9671 hardcode_minus_L=yes
9672 export_dynamic_flag_spec='${wl}-E'
9675 hpux10*)
9676 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9677 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9678 else
9679 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9681 if test "$with_gnu_ld" = no; then
9682 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9683 hardcode_libdir_flag_spec_ld='+b $libdir'
9684 hardcode_libdir_separator=:
9685 hardcode_direct=yes
9686 hardcode_direct_absolute=yes
9687 export_dynamic_flag_spec='${wl}-E'
9688 # hardcode_minus_L: Not really in the search PATH,
9689 # but as the default location of the library.
9690 hardcode_minus_L=yes
9694 hpux11*)
9695 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9696 case $host_cpu in
9697 hppa*64*)
9698 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9700 ia64*)
9701 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9704 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9706 esac
9707 else
9708 case $host_cpu in
9709 hppa*64*)
9710 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9712 ia64*)
9713 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9717 # Older versions of the 11.00 compiler do not understand -b yet
9718 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9720 $as_echo_n "checking if $CC understands -b... " >&6; }
9721 if ${lt_cv_prog_compiler__b+:} false; then :
9722 $as_echo_n "(cached) " >&6
9723 else
9724 lt_cv_prog_compiler__b=no
9725 save_LDFLAGS="$LDFLAGS"
9726 LDFLAGS="$LDFLAGS -b"
9727 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9728 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9729 # The linker can only warn and ignore the option if not recognized
9730 # So say no if there are warnings
9731 if test -s conftest.err; then
9732 # Append any errors to the config.log.
9733 cat conftest.err 1>&5
9734 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9735 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9736 if diff conftest.exp conftest.er2 >/dev/null; then
9737 lt_cv_prog_compiler__b=yes
9739 else
9740 lt_cv_prog_compiler__b=yes
9743 $RM -r conftest*
9744 LDFLAGS="$save_LDFLAGS"
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9748 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9750 if test x"$lt_cv_prog_compiler__b" = xyes; then
9751 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9752 else
9753 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9757 esac
9759 if test "$with_gnu_ld" = no; then
9760 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9761 hardcode_libdir_separator=:
9763 case $host_cpu in
9764 hppa*64*|ia64*)
9765 hardcode_direct=no
9766 hardcode_shlibpath_var=no
9769 hardcode_direct=yes
9770 hardcode_direct_absolute=yes
9771 export_dynamic_flag_spec='${wl}-E'
9773 # hardcode_minus_L: Not really in the search PATH,
9774 # but as the default location of the library.
9775 hardcode_minus_L=yes
9777 esac
9781 irix5* | irix6* | nonstopux*)
9782 if test "$GCC" = yes; then
9783 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'
9784 # Try to use the -exported_symbol ld option, if it does not
9785 # work, assume that -exports_file does not work either and
9786 # implicitly export all symbols.
9787 save_LDFLAGS="$LDFLAGS"
9788 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9790 /* end confdefs.h. */
9791 int foo(void) {}
9792 _ACEOF
9793 if ac_fn_c_try_link "$LINENO"; then :
9794 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'
9797 rm -f core conftest.err conftest.$ac_objext \
9798 conftest$ac_exeext conftest.$ac_ext
9799 LDFLAGS="$save_LDFLAGS"
9800 else
9801 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'
9802 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'
9804 archive_cmds_need_lc='no'
9805 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9806 hardcode_libdir_separator=:
9807 inherit_rpath=yes
9808 link_all_deplibs=yes
9811 netbsd*)
9812 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9813 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9814 else
9815 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9817 hardcode_libdir_flag_spec='-R$libdir'
9818 hardcode_direct=yes
9819 hardcode_shlibpath_var=no
9822 newsos6)
9823 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9824 hardcode_direct=yes
9825 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9826 hardcode_libdir_separator=:
9827 hardcode_shlibpath_var=no
9830 *nto* | *qnx*)
9833 openbsd*)
9834 if test -f /usr/libexec/ld.so; then
9835 hardcode_direct=yes
9836 hardcode_shlibpath_var=no
9837 hardcode_direct_absolute=yes
9838 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9839 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9840 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9841 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9842 export_dynamic_flag_spec='${wl}-E'
9843 else
9844 case $host_os in
9845 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9846 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9847 hardcode_libdir_flag_spec='-R$libdir'
9850 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9851 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9853 esac
9855 else
9856 ld_shlibs=no
9860 os2*)
9861 hardcode_libdir_flag_spec='-L$libdir'
9862 hardcode_minus_L=yes
9863 allow_undefined_flag=unsupported
9864 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'
9865 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9868 osf3*)
9869 if test "$GCC" = yes; then
9870 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9871 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'
9872 else
9873 allow_undefined_flag=' -expect_unresolved \*'
9874 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'
9876 archive_cmds_need_lc='no'
9877 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9878 hardcode_libdir_separator=:
9881 osf4* | osf5*) # as osf3* with the addition of -msym flag
9882 if test "$GCC" = yes; then
9883 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9884 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'
9885 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9886 else
9887 allow_undefined_flag=' -expect_unresolved \*'
9888 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'
9889 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~
9890 $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'
9892 # Both c and cxx compiler support -rpath directly
9893 hardcode_libdir_flag_spec='-rpath $libdir'
9895 archive_cmds_need_lc='no'
9896 hardcode_libdir_separator=:
9899 solaris*)
9900 no_undefined_flag=' -z defs'
9901 if test "$GCC" = yes; then
9902 wlarc='${wl}'
9903 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9904 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9905 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9906 else
9907 case `$CC -V 2>&1` in
9908 *"Compilers 5.0"*)
9909 wlarc=''
9910 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9911 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9912 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9915 wlarc='${wl}'
9916 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9917 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9918 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9920 esac
9922 hardcode_libdir_flag_spec='-R$libdir'
9923 hardcode_shlibpath_var=no
9924 case $host_os in
9925 solaris2.[0-5] | solaris2.[0-5].*) ;;
9927 # The compiler driver will combine and reorder linker options,
9928 # but understands `-z linker_flag'. GCC discards it without `$wl',
9929 # but is careful enough not to reorder.
9930 # Supported since Solaris 2.6 (maybe 2.5.1?)
9931 if test "$GCC" = yes; then
9932 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9933 else
9934 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9937 esac
9938 link_all_deplibs=yes
9941 sunos4*)
9942 if test "x$host_vendor" = xsequent; then
9943 # Use $CC to link under sequent, because it throws in some extra .o
9944 # files that make .init and .fini sections work.
9945 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9946 else
9947 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9949 hardcode_libdir_flag_spec='-L$libdir'
9950 hardcode_direct=yes
9951 hardcode_minus_L=yes
9952 hardcode_shlibpath_var=no
9955 sysv4)
9956 case $host_vendor in
9957 sni)
9958 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9959 hardcode_direct=yes # is this really true???
9961 siemens)
9962 ## LD is ld it makes a PLAMLIB
9963 ## CC just makes a GrossModule.
9964 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9965 reload_cmds='$CC -r -o $output$reload_objs'
9966 hardcode_direct=no
9968 motorola)
9969 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9970 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9972 esac
9973 runpath_var='LD_RUN_PATH'
9974 hardcode_shlibpath_var=no
9977 sysv4.3*)
9978 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9979 hardcode_shlibpath_var=no
9980 export_dynamic_flag_spec='-Bexport'
9983 sysv4*MP*)
9984 if test -d /usr/nec; then
9985 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9986 hardcode_shlibpath_var=no
9987 runpath_var=LD_RUN_PATH
9988 hardcode_runpath_var=yes
9989 ld_shlibs=yes
9993 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9994 no_undefined_flag='${wl}-z,text'
9995 archive_cmds_need_lc=no
9996 hardcode_shlibpath_var=no
9997 runpath_var='LD_RUN_PATH'
9999 if test "$GCC" = yes; then
10000 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10001 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10002 else
10003 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10004 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10008 sysv5* | sco3.2v5* | sco5v6*)
10009 # Note: We can NOT use -z defs as we might desire, because we do not
10010 # link with -lc, and that would cause any symbols used from libc to
10011 # always be unresolved, which means just about no library would
10012 # ever link correctly. If we're not using GNU ld we use -z text
10013 # though, which does catch some bad symbols but isn't as heavy-handed
10014 # as -z defs.
10015 no_undefined_flag='${wl}-z,text'
10016 allow_undefined_flag='${wl}-z,nodefs'
10017 archive_cmds_need_lc=no
10018 hardcode_shlibpath_var=no
10019 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10020 hardcode_libdir_separator=':'
10021 link_all_deplibs=yes
10022 export_dynamic_flag_spec='${wl}-Bexport'
10023 runpath_var='LD_RUN_PATH'
10025 if test "$GCC" = yes; then
10026 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10027 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10028 else
10029 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10030 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10034 uts4*)
10035 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10036 hardcode_libdir_flag_spec='-L$libdir'
10037 hardcode_shlibpath_var=no
10041 ld_shlibs=no
10043 esac
10045 if test x$host_vendor = xsni; then
10046 case $host in
10047 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10048 export_dynamic_flag_spec='${wl}-Blargedynsym'
10050 esac
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10055 $as_echo "$ld_shlibs" >&6; }
10056 test "$ld_shlibs" = no && can_build_shared=no
10058 with_gnu_ld=$with_gnu_ld
10075 # Do we need to explicitly link libc?
10077 case "x$archive_cmds_need_lc" in
10078 x|xyes)
10079 # Assume -lc should be added
10080 archive_cmds_need_lc=yes
10082 if test "$enable_shared" = yes && test "$GCC" = yes; then
10083 case $archive_cmds in
10084 *'~'*)
10085 # FIXME: we may have to deal with multi-command sequences.
10087 '$CC '*)
10088 # Test whether the compiler implicitly links with -lc since on some
10089 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10090 # to ld, don't add -lc before -lgcc.
10091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10092 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10093 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10094 $as_echo_n "(cached) " >&6
10095 else
10096 $RM conftest*
10097 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10099 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10100 (eval $ac_compile) 2>&5
10101 ac_status=$?
10102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10103 test $ac_status = 0; } 2>conftest.err; then
10104 soname=conftest
10105 lib=conftest
10106 libobjs=conftest.$ac_objext
10107 deplibs=
10108 wl=$lt_prog_compiler_wl
10109 pic_flag=$lt_prog_compiler_pic
10110 compiler_flags=-v
10111 linker_flags=-v
10112 verstring=
10113 output_objdir=.
10114 libname=conftest
10115 lt_save_allow_undefined_flag=$allow_undefined_flag
10116 allow_undefined_flag=
10117 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10118 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10119 ac_status=$?
10120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10121 test $ac_status = 0; }
10122 then
10123 lt_cv_archive_cmds_need_lc=no
10124 else
10125 lt_cv_archive_cmds_need_lc=yes
10127 allow_undefined_flag=$lt_save_allow_undefined_flag
10128 else
10129 cat conftest.err 1>&5
10131 $RM conftest*
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10135 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10136 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10138 esac
10141 esac
10299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10300 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10302 if test "$GCC" = yes; then
10303 case $host_os in
10304 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10305 *) lt_awk_arg="/^libraries:/" ;;
10306 esac
10307 case $host_os in
10308 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10309 *) lt_sed_strip_eq="s,=/,/,g" ;;
10310 esac
10311 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10312 case $lt_search_path_spec in
10313 *\;*)
10314 # if the path contains ";" then we assume it to be the separator
10315 # otherwise default to the standard path separator (i.e. ":") - it is
10316 # assumed that no part of a normal pathname contains ";" but that should
10317 # okay in the real world where ";" in dirpaths is itself problematic.
10318 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10321 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10323 esac
10324 # Ok, now we have the path, separated by spaces, we can step through it
10325 # and add multilib dir if necessary.
10326 lt_tmp_lt_search_path_spec=
10327 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10328 for lt_sys_path in $lt_search_path_spec; do
10329 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10330 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10331 else
10332 test -d "$lt_sys_path" && \
10333 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10335 done
10336 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10337 BEGIN {RS=" "; FS="/|\n";} {
10338 lt_foo="";
10339 lt_count=0;
10340 for (lt_i = NF; lt_i > 0; lt_i--) {
10341 if ($lt_i != "" && $lt_i != ".") {
10342 if ($lt_i == "..") {
10343 lt_count++;
10344 } else {
10345 if (lt_count == 0) {
10346 lt_foo="/" $lt_i lt_foo;
10347 } else {
10348 lt_count--;
10353 if (lt_foo != "") { lt_freq[lt_foo]++; }
10354 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10356 # AWK program above erroneously prepends '/' to C:/dos/paths
10357 # for these hosts.
10358 case $host_os in
10359 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10360 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10361 esac
10362 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10363 else
10364 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10366 library_names_spec=
10367 libname_spec='lib$name'
10368 soname_spec=
10369 shrext_cmds=".so"
10370 postinstall_cmds=
10371 postuninstall_cmds=
10372 finish_cmds=
10373 finish_eval=
10374 shlibpath_var=
10375 shlibpath_overrides_runpath=unknown
10376 version_type=none
10377 dynamic_linker="$host_os ld.so"
10378 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10379 need_lib_prefix=unknown
10380 hardcode_into_libs=no
10382 # when you set need_version to no, make sure it does not cause -set_version
10383 # flags to be left without arguments
10384 need_version=unknown
10386 case $host_os in
10387 aix3*)
10388 version_type=linux
10389 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10390 shlibpath_var=LIBPATH
10392 # AIX 3 has no versioning support, so we append a major version to the name.
10393 soname_spec='${libname}${release}${shared_ext}$major'
10396 aix[4-9]*)
10397 version_type=linux
10398 need_lib_prefix=no
10399 need_version=no
10400 hardcode_into_libs=yes
10401 if test "$host_cpu" = ia64; then
10402 # AIX 5 supports IA64
10403 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10404 shlibpath_var=LD_LIBRARY_PATH
10405 else
10406 # With GCC up to 2.95.x, collect2 would create an import file
10407 # for dependence libraries. The import file would start with
10408 # the line `#! .'. This would cause the generated library to
10409 # depend on `.', always an invalid library. This was fixed in
10410 # development snapshots of GCC prior to 3.0.
10411 case $host_os in
10412 aix4 | aix4.[01] | aix4.[01].*)
10413 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10414 echo ' yes '
10415 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10417 else
10418 can_build_shared=no
10421 esac
10422 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10423 # soname into executable. Probably we can add versioning support to
10424 # collect2, so additional links can be useful in future.
10425 if test "$aix_use_runtimelinking" = yes; then
10426 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10427 # instead of lib<name>.a to let people know that these are not
10428 # typical AIX shared libraries.
10429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10430 else
10431 # We preserve .a as extension for shared libraries through AIX4.2
10432 # and later when we are not doing run time linking.
10433 library_names_spec='${libname}${release}.a $libname.a'
10434 soname_spec='${libname}${release}${shared_ext}$major'
10436 shlibpath_var=LIBPATH
10440 amigaos*)
10441 case $host_cpu in
10442 powerpc)
10443 # Since July 2007 AmigaOS4 officially supports .so libraries.
10444 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10447 m68k)
10448 library_names_spec='$libname.ixlibrary $libname.a'
10449 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10450 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'
10452 esac
10455 beos*)
10456 library_names_spec='${libname}${shared_ext}'
10457 dynamic_linker="$host_os ld.so"
10458 shlibpath_var=LIBRARY_PATH
10461 bsdi[45]*)
10462 version_type=linux
10463 need_version=no
10464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10465 soname_spec='${libname}${release}${shared_ext}$major'
10466 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10467 shlibpath_var=LD_LIBRARY_PATH
10468 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10469 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10470 # the default ld.so.conf also contains /usr/contrib/lib and
10471 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10472 # libtool to hard-code these into programs
10475 cygwin* | mingw* | pw32* | cegcc*)
10476 version_type=windows
10477 shrext_cmds=".dll"
10478 need_version=no
10479 need_lib_prefix=no
10481 case $GCC,$host_os in
10482 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10483 library_names_spec='$libname.dll.a'
10484 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10485 postinstall_cmds='base_file=`basename \${file}`~
10486 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10487 dldir=$destdir/`dirname \$dlpath`~
10488 test -d \$dldir || mkdir -p \$dldir~
10489 $install_prog $dir/$dlname \$dldir/$dlname~
10490 chmod a+x \$dldir/$dlname~
10491 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10492 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10494 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10495 dlpath=$dir/\$dldll~
10496 $RM \$dlpath'
10497 shlibpath_overrides_runpath=yes
10499 case $host_os in
10500 cygwin*)
10501 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10502 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10504 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10506 mingw* | cegcc*)
10507 # MinGW DLLs use traditional 'lib' prefix
10508 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10510 pw32*)
10511 # pw32 DLLs use 'pw' prefix rather than 'lib'
10512 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10514 esac
10518 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10520 esac
10521 dynamic_linker='Win32 ld.exe'
10522 # FIXME: first we should search . and the directory the executable is in
10523 shlibpath_var=PATH
10526 darwin* | rhapsody*)
10527 dynamic_linker="$host_os dyld"
10528 version_type=darwin
10529 need_lib_prefix=no
10530 need_version=no
10531 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10532 soname_spec='${libname}${release}${major}$shared_ext'
10533 shlibpath_overrides_runpath=yes
10534 shlibpath_var=DYLD_LIBRARY_PATH
10535 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10537 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10538 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10541 dgux*)
10542 version_type=linux
10543 need_lib_prefix=no
10544 need_version=no
10545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10546 soname_spec='${libname}${release}${shared_ext}$major'
10547 shlibpath_var=LD_LIBRARY_PATH
10550 freebsd* | dragonfly*)
10551 # DragonFly does not have aout. When/if they implement a new
10552 # versioning mechanism, adjust this.
10553 if test -x /usr/bin/objformat; then
10554 objformat=`/usr/bin/objformat`
10555 else
10556 case $host_os in
10557 freebsd[23].*) objformat=aout ;;
10558 *) objformat=elf ;;
10559 esac
10561 version_type=freebsd-$objformat
10562 case $version_type in
10563 freebsd-elf*)
10564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10565 need_version=no
10566 need_lib_prefix=no
10568 freebsd-*)
10569 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10570 need_version=yes
10572 esac
10573 shlibpath_var=LD_LIBRARY_PATH
10574 case $host_os in
10575 freebsd2.*)
10576 shlibpath_overrides_runpath=yes
10578 freebsd3.[01]* | freebsdelf3.[01]*)
10579 shlibpath_overrides_runpath=yes
10580 hardcode_into_libs=yes
10582 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10583 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10584 shlibpath_overrides_runpath=no
10585 hardcode_into_libs=yes
10587 *) # from 4.6 on, and DragonFly
10588 shlibpath_overrides_runpath=yes
10589 hardcode_into_libs=yes
10591 esac
10594 haiku*)
10595 version_type=linux
10596 need_lib_prefix=no
10597 need_version=no
10598 dynamic_linker="$host_os runtime_loader"
10599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10600 soname_spec='${libname}${release}${shared_ext}$major'
10601 shlibpath_var=LIBRARY_PATH
10602 shlibpath_overrides_runpath=yes
10603 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10604 hardcode_into_libs=yes
10607 hpux9* | hpux10* | hpux11*)
10608 # Give a soname corresponding to the major version so that dld.sl refuses to
10609 # link against other versions.
10610 version_type=sunos
10611 need_lib_prefix=no
10612 need_version=no
10613 case $host_cpu in
10614 ia64*)
10615 shrext_cmds='.so'
10616 hardcode_into_libs=yes
10617 dynamic_linker="$host_os dld.so"
10618 shlibpath_var=LD_LIBRARY_PATH
10619 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10621 soname_spec='${libname}${release}${shared_ext}$major'
10622 if test "X$HPUX_IA64_MODE" = X32; then
10623 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10624 else
10625 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10627 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10629 hppa*64*)
10630 shrext_cmds='.sl'
10631 hardcode_into_libs=yes
10632 dynamic_linker="$host_os dld.sl"
10633 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10634 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10636 soname_spec='${libname}${release}${shared_ext}$major'
10637 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10638 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10641 shrext_cmds='.sl'
10642 dynamic_linker="$host_os dld.sl"
10643 shlibpath_var=SHLIB_PATH
10644 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10646 soname_spec='${libname}${release}${shared_ext}$major'
10648 esac
10649 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10650 postinstall_cmds='chmod 555 $lib'
10651 # or fails outright, so override atomically:
10652 install_override_mode=555
10655 interix[3-9]*)
10656 version_type=linux
10657 need_lib_prefix=no
10658 need_version=no
10659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10660 soname_spec='${libname}${release}${shared_ext}$major'
10661 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10662 shlibpath_var=LD_LIBRARY_PATH
10663 shlibpath_overrides_runpath=no
10664 hardcode_into_libs=yes
10667 irix5* | irix6* | nonstopux*)
10668 case $host_os in
10669 nonstopux*) version_type=nonstopux ;;
10671 if test "$lt_cv_prog_gnu_ld" = yes; then
10672 version_type=linux
10673 else
10674 version_type=irix
10675 fi ;;
10676 esac
10677 need_lib_prefix=no
10678 need_version=no
10679 soname_spec='${libname}${release}${shared_ext}$major'
10680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10681 case $host_os in
10682 irix5* | nonstopux*)
10683 libsuff= shlibsuff=
10686 case $LD in # libtool.m4 will add one of these switches to LD
10687 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10688 libsuff= shlibsuff= libmagic=32-bit;;
10689 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10690 libsuff=32 shlibsuff=N32 libmagic=N32;;
10691 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10692 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10693 *) libsuff= shlibsuff= libmagic=never-match;;
10694 esac
10696 esac
10697 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10698 shlibpath_overrides_runpath=no
10699 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10700 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10701 hardcode_into_libs=yes
10704 # No shared lib support for Linux oldld, aout, or coff.
10705 linux*oldld* | linux*aout* | linux*coff*)
10706 dynamic_linker=no
10709 # This must be Linux ELF.
10711 # uclinux* changes (here and below) have been submitted to the libtool
10712 # project, but have not yet been accepted: they are GCC-local changes
10713 # for the time being. (See
10714 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10715 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
10716 version_type=linux
10717 need_lib_prefix=no
10718 need_version=no
10719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10720 soname_spec='${libname}${release}${shared_ext}$major'
10721 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10722 shlibpath_var=LD_LIBRARY_PATH
10723 shlibpath_overrides_runpath=no
10725 # Some binutils ld are patched to set DT_RUNPATH
10726 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10727 $as_echo_n "(cached) " >&6
10728 else
10729 lt_cv_shlibpath_overrides_runpath=no
10730 save_LDFLAGS=$LDFLAGS
10731 save_libdir=$libdir
10732 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10733 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10735 /* end confdefs.h. */
10738 main ()
10742 return 0;
10744 _ACEOF
10745 if ac_fn_c_try_link "$LINENO"; then :
10746 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10747 lt_cv_shlibpath_overrides_runpath=yes
10750 rm -f core conftest.err conftest.$ac_objext \
10751 conftest$ac_exeext conftest.$ac_ext
10752 LDFLAGS=$save_LDFLAGS
10753 libdir=$save_libdir
10757 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10759 # This implies no fast_install, which is unacceptable.
10760 # Some rework will be needed to allow for fast_install
10761 # before this can be enabled.
10762 hardcode_into_libs=yes
10764 # Append ld.so.conf contents to the search path
10765 if test -f /etc/ld.so.conf; then
10766 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' ' '`
10767 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10770 # We used to test for /lib/ld.so.1 and disable shared libraries on
10771 # powerpc, because MkLinux only supported shared libraries with the
10772 # GNU dynamic linker. Since this was broken with cross compilers,
10773 # most powerpc-linux boxes support dynamic linking these days and
10774 # people can always --disable-shared, the test was removed, and we
10775 # assume the GNU/Linux dynamic linker is in use.
10776 dynamic_linker='GNU/Linux ld.so'
10779 netbsd*)
10780 version_type=sunos
10781 need_lib_prefix=no
10782 need_version=no
10783 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10785 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10786 dynamic_linker='NetBSD (a.out) ld.so'
10787 else
10788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10789 soname_spec='${libname}${release}${shared_ext}$major'
10790 dynamic_linker='NetBSD ld.elf_so'
10792 shlibpath_var=LD_LIBRARY_PATH
10793 shlibpath_overrides_runpath=yes
10794 hardcode_into_libs=yes
10797 newsos6)
10798 version_type=linux
10799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10800 shlibpath_var=LD_LIBRARY_PATH
10801 shlibpath_overrides_runpath=yes
10804 *nto* | *qnx*)
10805 version_type=qnx
10806 need_lib_prefix=no
10807 need_version=no
10808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10809 soname_spec='${libname}${release}${shared_ext}$major'
10810 shlibpath_var=LD_LIBRARY_PATH
10811 shlibpath_overrides_runpath=no
10812 hardcode_into_libs=yes
10813 dynamic_linker='ldqnx.so'
10816 openbsd*)
10817 version_type=sunos
10818 sys_lib_dlsearch_path_spec="/usr/lib"
10819 need_lib_prefix=no
10820 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10821 case $host_os in
10822 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10823 *) need_version=no ;;
10824 esac
10825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10826 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10827 shlibpath_var=LD_LIBRARY_PATH
10828 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10829 case $host_os in
10830 openbsd2.[89] | openbsd2.[89].*)
10831 shlibpath_overrides_runpath=no
10834 shlibpath_overrides_runpath=yes
10836 esac
10837 else
10838 shlibpath_overrides_runpath=yes
10842 os2*)
10843 libname_spec='$name'
10844 shrext_cmds=".dll"
10845 need_lib_prefix=no
10846 library_names_spec='$libname${shared_ext} $libname.a'
10847 dynamic_linker='OS/2 ld.exe'
10848 shlibpath_var=LIBPATH
10851 osf3* | osf4* | osf5*)
10852 version_type=osf
10853 need_lib_prefix=no
10854 need_version=no
10855 soname_spec='${libname}${release}${shared_ext}$major'
10856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10857 shlibpath_var=LD_LIBRARY_PATH
10858 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10859 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10862 rdos*)
10863 dynamic_linker=no
10866 solaris*)
10867 version_type=linux
10868 need_lib_prefix=no
10869 need_version=no
10870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10871 soname_spec='${libname}${release}${shared_ext}$major'
10872 shlibpath_var=LD_LIBRARY_PATH
10873 shlibpath_overrides_runpath=yes
10874 hardcode_into_libs=yes
10875 # ldd complains unless libraries are executable
10876 postinstall_cmds='chmod +x $lib'
10879 sunos4*)
10880 version_type=sunos
10881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10882 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10883 shlibpath_var=LD_LIBRARY_PATH
10884 shlibpath_overrides_runpath=yes
10885 if test "$with_gnu_ld" = yes; then
10886 need_lib_prefix=no
10888 need_version=yes
10891 sysv4 | sysv4.3*)
10892 version_type=linux
10893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10894 soname_spec='${libname}${release}${shared_ext}$major'
10895 shlibpath_var=LD_LIBRARY_PATH
10896 case $host_vendor in
10897 sni)
10898 shlibpath_overrides_runpath=no
10899 need_lib_prefix=no
10900 runpath_var=LD_RUN_PATH
10902 siemens)
10903 need_lib_prefix=no
10905 motorola)
10906 need_lib_prefix=no
10907 need_version=no
10908 shlibpath_overrides_runpath=no
10909 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10911 esac
10914 sysv4*MP*)
10915 if test -d /usr/nec ;then
10916 version_type=linux
10917 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10918 soname_spec='$libname${shared_ext}.$major'
10919 shlibpath_var=LD_LIBRARY_PATH
10923 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10924 version_type=freebsd-elf
10925 need_lib_prefix=no
10926 need_version=no
10927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10928 soname_spec='${libname}${release}${shared_ext}$major'
10929 shlibpath_var=LD_LIBRARY_PATH
10930 shlibpath_overrides_runpath=yes
10931 hardcode_into_libs=yes
10932 if test "$with_gnu_ld" = yes; then
10933 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10934 else
10935 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10936 case $host_os in
10937 sco3.2v5*)
10938 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10940 esac
10942 sys_lib_dlsearch_path_spec='/usr/lib'
10945 tpf*)
10946 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10947 version_type=linux
10948 need_lib_prefix=no
10949 need_version=no
10950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10951 shlibpath_var=LD_LIBRARY_PATH
10952 shlibpath_overrides_runpath=no
10953 hardcode_into_libs=yes
10956 uts4*)
10957 version_type=linux
10958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10959 soname_spec='${libname}${release}${shared_ext}$major'
10960 shlibpath_var=LD_LIBRARY_PATH
10963 # Shared libraries for VwWorks, >= 7 only at this stage
10964 # and (fpic) still incompatible with "large" code models
10965 # in a few configurations. Only for RTP mode in any case,
10966 # and upon explicit request at configure time.
10967 vxworks7*)
10968 dynamic_linker=no
10969 case ${with_multisubdir}-${enable_shared} in
10970 *large*)
10972 *mrtp*-yes)
10973 version_type=linux
10974 need_lib_prefix=no
10975 need_version=no
10976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10977 soname_spec='${libname}${release}${shared_ext}$major'
10978 dynamic_linker="$host_os module_loader"
10980 esac
10983 dynamic_linker=no
10985 esac
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10987 $as_echo "$dynamic_linker" >&6; }
10988 test "$dynamic_linker" = no && can_build_shared=no
10990 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10991 if test "$GCC" = yes; then
10992 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10995 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10996 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10998 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10999 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11094 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11095 hardcode_action=
11096 if test -n "$hardcode_libdir_flag_spec" ||
11097 test -n "$runpath_var" ||
11098 test "X$hardcode_automatic" = "Xyes" ; then
11100 # We can hardcode non-existent directories.
11101 if test "$hardcode_direct" != no &&
11102 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11103 # have to relink, otherwise we might link with an installed library
11104 # when we should be linking with a yet-to-be-installed one
11105 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11106 test "$hardcode_minus_L" != no; then
11107 # Linking always hardcodes the temporary library directory.
11108 hardcode_action=relink
11109 else
11110 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11111 hardcode_action=immediate
11113 else
11114 # We cannot hardcode anything, or else we can only hardcode existing
11115 # directories.
11116 hardcode_action=unsupported
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11119 $as_echo "$hardcode_action" >&6; }
11121 if test "$hardcode_action" = relink ||
11122 test "$inherit_rpath" = yes; then
11123 # Fast installation is not supported
11124 enable_fast_install=no
11125 elif test "$shlibpath_overrides_runpath" = yes ||
11126 test "$enable_shared" = no; then
11127 # Fast installation is not necessary
11128 enable_fast_install=needless
11136 if test "x$enable_dlopen" != xyes; then
11137 enable_dlopen=unknown
11138 enable_dlopen_self=unknown
11139 enable_dlopen_self_static=unknown
11140 else
11141 lt_cv_dlopen=no
11142 lt_cv_dlopen_libs=
11144 case $host_os in
11145 beos*)
11146 lt_cv_dlopen="load_add_on"
11147 lt_cv_dlopen_libs=
11148 lt_cv_dlopen_self=yes
11151 mingw* | pw32* | cegcc*)
11152 lt_cv_dlopen="LoadLibrary"
11153 lt_cv_dlopen_libs=
11156 cygwin*)
11157 lt_cv_dlopen="dlopen"
11158 lt_cv_dlopen_libs=
11161 darwin*)
11162 # if libdl is installed we need to link against it
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11164 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11165 if ${ac_cv_lib_dl_dlopen+:} false; then :
11166 $as_echo_n "(cached) " >&6
11167 else
11168 ac_check_lib_save_LIBS=$LIBS
11169 LIBS="-ldl $LIBS"
11170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11171 /* end confdefs.h. */
11173 /* Override any GCC internal prototype to avoid an error.
11174 Use char because int might match the return type of a GCC
11175 builtin and then its argument prototype would still apply. */
11176 #ifdef __cplusplus
11177 extern "C"
11178 #endif
11179 char dlopen ();
11181 main ()
11183 return dlopen ();
11185 return 0;
11187 _ACEOF
11188 if ac_fn_c_try_link "$LINENO"; then :
11189 ac_cv_lib_dl_dlopen=yes
11190 else
11191 ac_cv_lib_dl_dlopen=no
11193 rm -f core conftest.err conftest.$ac_objext \
11194 conftest$ac_exeext conftest.$ac_ext
11195 LIBS=$ac_check_lib_save_LIBS
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11198 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11199 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11200 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11201 else
11203 lt_cv_dlopen="dyld"
11204 lt_cv_dlopen_libs=
11205 lt_cv_dlopen_self=yes
11212 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11213 if test "x$ac_cv_func_shl_load" = xyes; then :
11214 lt_cv_dlopen="shl_load"
11215 else
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11217 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11218 if ${ac_cv_lib_dld_shl_load+:} false; then :
11219 $as_echo_n "(cached) " >&6
11220 else
11221 ac_check_lib_save_LIBS=$LIBS
11222 LIBS="-ldld $LIBS"
11223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11224 /* end confdefs.h. */
11226 /* Override any GCC internal prototype to avoid an error.
11227 Use char because int might match the return type of a GCC
11228 builtin and then its argument prototype would still apply. */
11229 #ifdef __cplusplus
11230 extern "C"
11231 #endif
11232 char shl_load ();
11234 main ()
11236 return shl_load ();
11238 return 0;
11240 _ACEOF
11241 if ac_fn_c_try_link "$LINENO"; then :
11242 ac_cv_lib_dld_shl_load=yes
11243 else
11244 ac_cv_lib_dld_shl_load=no
11246 rm -f core conftest.err conftest.$ac_objext \
11247 conftest$ac_exeext conftest.$ac_ext
11248 LIBS=$ac_check_lib_save_LIBS
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11251 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11252 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11253 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11254 else
11255 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11256 if test "x$ac_cv_func_dlopen" = xyes; then :
11257 lt_cv_dlopen="dlopen"
11258 else
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11260 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11261 if ${ac_cv_lib_dl_dlopen+:} false; then :
11262 $as_echo_n "(cached) " >&6
11263 else
11264 ac_check_lib_save_LIBS=$LIBS
11265 LIBS="-ldl $LIBS"
11266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11267 /* end confdefs.h. */
11269 /* Override any GCC internal prototype to avoid an error.
11270 Use char because int might match the return type of a GCC
11271 builtin and then its argument prototype would still apply. */
11272 #ifdef __cplusplus
11273 extern "C"
11274 #endif
11275 char dlopen ();
11277 main ()
11279 return dlopen ();
11281 return 0;
11283 _ACEOF
11284 if ac_fn_c_try_link "$LINENO"; then :
11285 ac_cv_lib_dl_dlopen=yes
11286 else
11287 ac_cv_lib_dl_dlopen=no
11289 rm -f core conftest.err conftest.$ac_objext \
11290 conftest$ac_exeext conftest.$ac_ext
11291 LIBS=$ac_check_lib_save_LIBS
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11294 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11295 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11296 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11297 else
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11299 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11300 if ${ac_cv_lib_svld_dlopen+:} false; then :
11301 $as_echo_n "(cached) " >&6
11302 else
11303 ac_check_lib_save_LIBS=$LIBS
11304 LIBS="-lsvld $LIBS"
11305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11306 /* end confdefs.h. */
11308 /* Override any GCC internal prototype to avoid an error.
11309 Use char because int might match the return type of a GCC
11310 builtin and then its argument prototype would still apply. */
11311 #ifdef __cplusplus
11312 extern "C"
11313 #endif
11314 char dlopen ();
11316 main ()
11318 return dlopen ();
11320 return 0;
11322 _ACEOF
11323 if ac_fn_c_try_link "$LINENO"; then :
11324 ac_cv_lib_svld_dlopen=yes
11325 else
11326 ac_cv_lib_svld_dlopen=no
11328 rm -f core conftest.err conftest.$ac_objext \
11329 conftest$ac_exeext conftest.$ac_ext
11330 LIBS=$ac_check_lib_save_LIBS
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11333 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11334 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11335 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11336 else
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11338 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11339 if ${ac_cv_lib_dld_dld_link+:} false; then :
11340 $as_echo_n "(cached) " >&6
11341 else
11342 ac_check_lib_save_LIBS=$LIBS
11343 LIBS="-ldld $LIBS"
11344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11345 /* end confdefs.h. */
11347 /* Override any GCC internal prototype to avoid an error.
11348 Use char because int might match the return type of a GCC
11349 builtin and then its argument prototype would still apply. */
11350 #ifdef __cplusplus
11351 extern "C"
11352 #endif
11353 char dld_link ();
11355 main ()
11357 return dld_link ();
11359 return 0;
11361 _ACEOF
11362 if ac_fn_c_try_link "$LINENO"; then :
11363 ac_cv_lib_dld_dld_link=yes
11364 else
11365 ac_cv_lib_dld_dld_link=no
11367 rm -f core conftest.err conftest.$ac_objext \
11368 conftest$ac_exeext conftest.$ac_ext
11369 LIBS=$ac_check_lib_save_LIBS
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11372 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11373 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11374 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11393 esac
11395 if test "x$lt_cv_dlopen" != xno; then
11396 enable_dlopen=yes
11397 else
11398 enable_dlopen=no
11401 case $lt_cv_dlopen in
11402 dlopen)
11403 save_CPPFLAGS="$CPPFLAGS"
11404 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11406 save_LDFLAGS="$LDFLAGS"
11407 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11409 save_LIBS="$LIBS"
11410 LIBS="$lt_cv_dlopen_libs $LIBS"
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11413 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11414 if ${lt_cv_dlopen_self+:} false; then :
11415 $as_echo_n "(cached) " >&6
11416 else
11417 if test "$cross_compiling" = yes; then :
11418 lt_cv_dlopen_self=cross
11419 else
11420 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11421 lt_status=$lt_dlunknown
11422 cat > conftest.$ac_ext <<_LT_EOF
11423 #line 11423 "configure"
11424 #include "confdefs.h"
11426 #if HAVE_DLFCN_H
11427 #include <dlfcn.h>
11428 #endif
11430 #include <stdio.h>
11432 #ifdef RTLD_GLOBAL
11433 # define LT_DLGLOBAL RTLD_GLOBAL
11434 #else
11435 # ifdef DL_GLOBAL
11436 # define LT_DLGLOBAL DL_GLOBAL
11437 # else
11438 # define LT_DLGLOBAL 0
11439 # endif
11440 #endif
11442 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11443 find out it does not work in some platform. */
11444 #ifndef LT_DLLAZY_OR_NOW
11445 # ifdef RTLD_LAZY
11446 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11447 # else
11448 # ifdef DL_LAZY
11449 # define LT_DLLAZY_OR_NOW DL_LAZY
11450 # else
11451 # ifdef RTLD_NOW
11452 # define LT_DLLAZY_OR_NOW RTLD_NOW
11453 # else
11454 # ifdef DL_NOW
11455 # define LT_DLLAZY_OR_NOW DL_NOW
11456 # else
11457 # define LT_DLLAZY_OR_NOW 0
11458 # endif
11459 # endif
11460 # endif
11461 # endif
11462 #endif
11464 /* When -fvisbility=hidden is used, assume the code has been annotated
11465 correspondingly for the symbols needed. */
11466 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11467 void fnord () __attribute__((visibility("default")));
11468 #endif
11470 void fnord () { int i=42; }
11471 int main ()
11473 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11474 int status = $lt_dlunknown;
11476 if (self)
11478 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11479 else
11481 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11482 else puts (dlerror ());
11484 /* dlclose (self); */
11486 else
11487 puts (dlerror ());
11489 return status;
11491 _LT_EOF
11492 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11493 (eval $ac_link) 2>&5
11494 ac_status=$?
11495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11496 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11497 (./conftest; exit; ) >&5 2>/dev/null
11498 lt_status=$?
11499 case x$lt_status in
11500 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11501 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11502 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11503 esac
11504 else :
11505 # compilation failed
11506 lt_cv_dlopen_self=no
11509 rm -fr conftest*
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11514 $as_echo "$lt_cv_dlopen_self" >&6; }
11516 if test "x$lt_cv_dlopen_self" = xyes; then
11517 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11519 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11520 if ${lt_cv_dlopen_self_static+:} false; then :
11521 $as_echo_n "(cached) " >&6
11522 else
11523 if test "$cross_compiling" = yes; then :
11524 lt_cv_dlopen_self_static=cross
11525 else
11526 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11527 lt_status=$lt_dlunknown
11528 cat > conftest.$ac_ext <<_LT_EOF
11529 #line 11529 "configure"
11530 #include "confdefs.h"
11532 #if HAVE_DLFCN_H
11533 #include <dlfcn.h>
11534 #endif
11536 #include <stdio.h>
11538 #ifdef RTLD_GLOBAL
11539 # define LT_DLGLOBAL RTLD_GLOBAL
11540 #else
11541 # ifdef DL_GLOBAL
11542 # define LT_DLGLOBAL DL_GLOBAL
11543 # else
11544 # define LT_DLGLOBAL 0
11545 # endif
11546 #endif
11548 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11549 find out it does not work in some platform. */
11550 #ifndef LT_DLLAZY_OR_NOW
11551 # ifdef RTLD_LAZY
11552 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11553 # else
11554 # ifdef DL_LAZY
11555 # define LT_DLLAZY_OR_NOW DL_LAZY
11556 # else
11557 # ifdef RTLD_NOW
11558 # define LT_DLLAZY_OR_NOW RTLD_NOW
11559 # else
11560 # ifdef DL_NOW
11561 # define LT_DLLAZY_OR_NOW DL_NOW
11562 # else
11563 # define LT_DLLAZY_OR_NOW 0
11564 # endif
11565 # endif
11566 # endif
11567 # endif
11568 #endif
11570 /* When -fvisbility=hidden is used, assume the code has been annotated
11571 correspondingly for the symbols needed. */
11572 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11573 void fnord () __attribute__((visibility("default")));
11574 #endif
11576 void fnord () { int i=42; }
11577 int main ()
11579 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11580 int status = $lt_dlunknown;
11582 if (self)
11584 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11585 else
11587 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11588 else puts (dlerror ());
11590 /* dlclose (self); */
11592 else
11593 puts (dlerror ());
11595 return status;
11597 _LT_EOF
11598 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11599 (eval $ac_link) 2>&5
11600 ac_status=$?
11601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11602 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11603 (./conftest; exit; ) >&5 2>/dev/null
11604 lt_status=$?
11605 case x$lt_status in
11606 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11607 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11608 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11609 esac
11610 else :
11611 # compilation failed
11612 lt_cv_dlopen_self_static=no
11615 rm -fr conftest*
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11620 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11623 CPPFLAGS="$save_CPPFLAGS"
11624 LDFLAGS="$save_LDFLAGS"
11625 LIBS="$save_LIBS"
11627 esac
11629 case $lt_cv_dlopen_self in
11630 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11631 *) enable_dlopen_self=unknown ;;
11632 esac
11634 case $lt_cv_dlopen_self_static in
11635 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11636 *) enable_dlopen_self_static=unknown ;;
11637 esac
11656 striplib=
11657 old_striplib=
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11659 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11660 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11661 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11662 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11664 $as_echo "yes" >&6; }
11665 else
11666 # FIXME - insert some real tests, host_os isn't really good enough
11667 case $host_os in
11668 darwin*)
11669 if test -n "$STRIP" ; then
11670 striplib="$STRIP -x"
11671 old_striplib="$STRIP -S"
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11673 $as_echo "yes" >&6; }
11674 else
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11676 $as_echo "no" >&6; }
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11681 $as_echo "no" >&6; }
11683 esac
11697 # Report which library types will actually be built
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11699 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11701 $as_echo "$can_build_shared" >&6; }
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11704 $as_echo_n "checking whether to build shared libraries... " >&6; }
11705 test "$can_build_shared" = "no" && enable_shared=no
11707 # On AIX, shared libraries and static libraries use the same namespace, and
11708 # are all built from PIC.
11709 case $host_os in
11710 aix3*)
11711 test "$enable_shared" = yes && enable_static=no
11712 if test -n "$RANLIB"; then
11713 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11714 postinstall_cmds='$RANLIB $lib'
11718 aix[4-9]*)
11719 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11720 test "$enable_shared" = yes && enable_static=no
11723 esac
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11725 $as_echo "$enable_shared" >&6; }
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11728 $as_echo_n "checking whether to build static libraries... " >&6; }
11729 # Make sure either enable_shared or enable_static is yes.
11730 test "$enable_shared" = yes || enable_static=yes
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11732 $as_echo "$enable_static" >&6; }
11738 ac_ext=c
11739 ac_cpp='$CPP $CPPFLAGS'
11740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11744 CC="$lt_save_CC"
11758 ac_config_commands="$ac_config_commands libtool"
11763 # Only expand once:
11769 case $host in
11770 *-cygwin* | *-mingw*)
11771 # 'host' will be top-level target in the case of a target lib,
11772 # we must compare to with_cross_host to decide if this is a native
11773 # or cross-compiler and select where to install dlls appropriately.
11774 if test -n "$with_cross_host" &&
11775 test x"$with_cross_host" != x"no"; then
11776 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
11777 else
11778 lt_host_flags='-no-undefined -bindir "$(bindir)"';
11782 lt_host_flags=
11784 esac
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11793 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11794 # Check whether --enable-maintainer-mode was given.
11795 if test "${enable_maintainer_mode+set}" = set; then :
11796 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11797 else
11798 USE_MAINTAINER_MODE=no
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11802 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11803 if test $USE_MAINTAINER_MODE = yes; then
11804 MAINTAINER_MODE_TRUE=
11805 MAINTAINER_MODE_FALSE='#'
11806 else
11807 MAINTAINER_MODE_TRUE='#'
11808 MAINTAINER_MODE_FALSE=
11811 MAINT=$MAINTAINER_MODE_TRUE
11815 # We optionally test libgomp C++ support, and for that want to use the proper
11816 # C++ driver, 'g++' (or 'xg++' for build-tree testing). Given that build of
11817 # target libstdc++-v3 depends on target libgomp (see '../Makefile.def'), we
11818 # cannot make build of target libgomp depend on target libstdc++-v3: circular
11819 # dependency. We thus cannot instantiate 'AC_PROG_CXX' here: we'd get
11820 # '-funconfigured-libstdc++-v3' (see '../configure.ac'). Therefore, just
11821 # capture 'CXX', and we'll fix this up at 'make check' time (see
11822 # 'testsuite/lib/libgomp.exp:libgomp_init').
11825 # Create a spec file, so that compile/link tests don't fail
11826 test -f libgfortran.spec || touch libgfortran.spec
11827 FCFLAGS="$FCFLAGS -L."
11829 # We need 'gfortran' to compile parts of the library, and test libgomp Fortran
11830 # support.
11831 # We can't use AC_PROG_FC because it expects a fully working gfortran.
11832 #AC_PROG_FC(gfortran)
11833 case `echo $GFORTRAN` in
11834 -* | no* )
11835 FC=no ;;
11837 set dummy $GFORTRAN; ac_word=$2
11838 if test -x "$ac_word"; then
11839 FC="$GFORTRAN"
11840 else
11841 FC=no
11842 fi ;;
11843 esac
11844 ac_ext=${ac_fc_srcext-f}
11845 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11846 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
11847 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11848 if test -n "$ac_tool_prefix"; then
11849 for ac_prog in gfortran
11851 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11852 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11854 $as_echo_n "checking for $ac_word... " >&6; }
11855 if ${ac_cv_prog_FC+:} false; then :
11856 $as_echo_n "(cached) " >&6
11857 else
11858 if test -n "$FC"; then
11859 ac_cv_prog_FC="$FC" # Let the user override the test.
11860 else
11861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11862 for as_dir in $PATH
11864 IFS=$as_save_IFS
11865 test -z "$as_dir" && as_dir=.
11866 for ac_exec_ext in '' $ac_executable_extensions; do
11867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11868 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
11869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11870 break 2
11872 done
11873 done
11874 IFS=$as_save_IFS
11878 FC=$ac_cv_prog_FC
11879 if test -n "$FC"; then
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
11881 $as_echo "$FC" >&6; }
11882 else
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11884 $as_echo "no" >&6; }
11888 test -n "$FC" && break
11889 done
11891 if test -z "$FC"; then
11892 ac_ct_FC=$FC
11893 for ac_prog in gfortran
11895 # Extract the first word of "$ac_prog", so it can be a program name with args.
11896 set dummy $ac_prog; ac_word=$2
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11898 $as_echo_n "checking for $ac_word... " >&6; }
11899 if ${ac_cv_prog_ac_ct_FC+:} false; then :
11900 $as_echo_n "(cached) " >&6
11901 else
11902 if test -n "$ac_ct_FC"; then
11903 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
11904 else
11905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11906 for as_dir in $PATH
11908 IFS=$as_save_IFS
11909 test -z "$as_dir" && as_dir=.
11910 for ac_exec_ext in '' $ac_executable_extensions; do
11911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11912 ac_cv_prog_ac_ct_FC="$ac_prog"
11913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11914 break 2
11916 done
11917 done
11918 IFS=$as_save_IFS
11922 ac_ct_FC=$ac_cv_prog_ac_ct_FC
11923 if test -n "$ac_ct_FC"; then
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
11925 $as_echo "$ac_ct_FC" >&6; }
11926 else
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11928 $as_echo "no" >&6; }
11932 test -n "$ac_ct_FC" && break
11933 done
11935 if test "x$ac_ct_FC" = x; then
11936 FC=""
11937 else
11938 case $cross_compiling:$ac_tool_warned in
11939 yes:)
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11941 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11942 ac_tool_warned=yes ;;
11943 esac
11944 FC=$ac_ct_FC
11949 # Provide some information about the compiler.
11950 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
11951 set X $ac_compile
11952 ac_compiler=$2
11953 for ac_option in --version -v -V -qversion; do
11954 { { ac_try="$ac_compiler $ac_option >&5"
11955 case "(($ac_try" in
11956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11957 *) ac_try_echo=$ac_try;;
11958 esac
11959 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11960 $as_echo "$ac_try_echo"; } >&5
11961 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11962 ac_status=$?
11963 if test -s conftest.err; then
11964 sed '10a\
11965 ... rest of stderr output deleted ...
11966 10q' conftest.err >conftest.er1
11967 cat conftest.er1 >&5
11969 rm -f conftest.er1 conftest.err
11970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11971 test $ac_status = 0; }
11972 done
11973 rm -f a.out
11975 # If we don't use `.F' as extension, the preprocessor is not run on the
11976 # input file. (Note that this only needs to work for GNU compilers.)
11977 ac_save_ext=$ac_ext
11978 ac_ext=F
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
11980 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
11981 if ${ac_cv_fc_compiler_gnu+:} false; then :
11982 $as_echo_n "(cached) " >&6
11983 else
11984 cat > conftest.$ac_ext <<_ACEOF
11985 program main
11986 #ifndef __GNUC__
11987 choke me
11988 #endif
11991 _ACEOF
11992 if ac_fn_fc_try_compile "$LINENO"; then :
11993 ac_compiler_gnu=yes
11994 else
11995 ac_compiler_gnu=no
11997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11998 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
12002 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
12003 ac_ext=$ac_save_ext
12004 ac_test_FCFLAGS=${FCFLAGS+set}
12005 ac_save_FCFLAGS=$FCFLAGS
12006 FCFLAGS=
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
12008 $as_echo_n "checking whether $FC accepts -g... " >&6; }
12009 if ${ac_cv_prog_fc_g+:} false; then :
12010 $as_echo_n "(cached) " >&6
12011 else
12012 FCFLAGS=-g
12013 cat > conftest.$ac_ext <<_ACEOF
12014 program main
12017 _ACEOF
12018 if ac_fn_fc_try_compile "$LINENO"; then :
12019 ac_cv_prog_fc_g=yes
12020 else
12021 ac_cv_prog_fc_g=no
12023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
12027 $as_echo "$ac_cv_prog_fc_g" >&6; }
12028 if test "$ac_test_FCFLAGS" = set; then
12029 FCFLAGS=$ac_save_FCFLAGS
12030 elif test $ac_cv_prog_fc_g = yes; then
12031 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12032 FCFLAGS="-g -O2"
12033 else
12034 FCFLAGS="-g"
12036 else
12037 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12038 FCFLAGS="-O2"
12039 else
12040 FCFLAGS=
12044 if test $ac_compiler_gnu = yes; then
12045 GFC=yes
12046 else
12047 GFC=
12049 ac_ext=c
12050 ac_cpp='$CPP $CPPFLAGS'
12051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12055 ac_ext=${ac_fc_srcext-f}
12056 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
12057 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
12058 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
12061 if test -z "$FC" || test "X$FC" = "Xno"; then
12062 _lt_disable_FC=yes
12065 archive_cmds_need_lc_FC=no
12066 allow_undefined_flag_FC=
12067 always_export_symbols_FC=no
12068 archive_expsym_cmds_FC=
12069 export_dynamic_flag_spec_FC=
12070 hardcode_direct_FC=no
12071 hardcode_direct_absolute_FC=no
12072 hardcode_libdir_flag_spec_FC=
12073 hardcode_libdir_flag_spec_ld_FC=
12074 hardcode_libdir_separator_FC=
12075 hardcode_minus_L_FC=no
12076 hardcode_automatic_FC=no
12077 inherit_rpath_FC=no
12078 module_cmds_FC=
12079 module_expsym_cmds_FC=
12080 link_all_deplibs_FC=unknown
12081 old_archive_cmds_FC=$old_archive_cmds
12082 reload_flag_FC=$reload_flag
12083 reload_cmds_FC=$reload_cmds
12084 no_undefined_flag_FC=
12085 whole_archive_flag_spec_FC=
12086 enable_shared_with_static_runtimes_FC=no
12088 # Source file extension for fc test sources.
12089 ac_ext=${ac_fc_srcext-f}
12091 # Object file extension for compiled fc test sources.
12092 objext=o
12093 objext_FC=$objext
12095 # No sense in running all these tests if we already determined that
12096 # the FC compiler isn't working. Some variables (like enable_shared)
12097 # are currently assumed to apply to all compilers on this platform,
12098 # and will be corrupted by setting them based on a non-working compiler.
12099 if test "$_lt_disable_FC" != yes; then
12100 # Code to be used in simple compile tests
12101 lt_simple_compile_test_code="\
12102 subroutine t
12103 return
12107 # Code to be used in simple link tests
12108 lt_simple_link_test_code="\
12109 program t
12113 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12120 # If no C compiler was specified, use CC.
12121 LTCC=${LTCC-"$CC"}
12123 # If no C compiler flags were specified, use CFLAGS.
12124 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12126 # Allow CC to be a program name with arguments.
12127 compiler=$CC
12130 # save warnings/boilerplate of simple test code
12131 ac_outfile=conftest.$ac_objext
12132 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12133 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12134 _lt_compiler_boilerplate=`cat conftest.err`
12135 $RM conftest*
12137 ac_outfile=conftest.$ac_objext
12138 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12139 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12140 _lt_linker_boilerplate=`cat conftest.err`
12141 $RM -r conftest*
12144 # Allow CC to be a program name with arguments.
12145 lt_save_CC="$CC"
12146 lt_save_GCC=$GCC
12147 CC=${FC-"f95"}
12148 compiler=$CC
12149 GCC=$ac_cv_fc_compiler_gnu
12151 compiler_FC=$CC
12152 for cc_temp in $compiler""; do
12153 case $cc_temp in
12154 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12155 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12156 \-*) ;;
12157 *) break;;
12158 esac
12159 done
12160 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12163 if test -n "$compiler"; then
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12165 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12167 $as_echo "$can_build_shared" >&6; }
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12170 $as_echo_n "checking whether to build shared libraries... " >&6; }
12171 test "$can_build_shared" = "no" && enable_shared=no
12173 # On AIX, shared libraries and static libraries use the same namespace, and
12174 # are all built from PIC.
12175 case $host_os in
12176 aix3*)
12177 test "$enable_shared" = yes && enable_static=no
12178 if test -n "$RANLIB"; then
12179 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12180 postinstall_cmds='$RANLIB $lib'
12183 aix[4-9]*)
12184 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12185 test "$enable_shared" = yes && enable_static=no
12188 esac
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12190 $as_echo "$enable_shared" >&6; }
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12193 $as_echo_n "checking whether to build static libraries... " >&6; }
12194 # Make sure either enable_shared or enable_static is yes.
12195 test "$enable_shared" = yes || enable_static=yes
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12197 $as_echo "$enable_static" >&6; }
12199 GCC_FC="$ac_cv_fc_compiler_gnu"
12200 LD_FC="$LD"
12202 ## CAVEAT EMPTOR:
12203 ## There is no encapsulation within the following macros, do not change
12204 ## the running order or otherwise move them around unless you know exactly
12205 ## what you are doing...
12206 # Dependencies to place before and after the object being linked:
12207 predep_objects_FC=
12208 postdep_objects_FC=
12209 predeps_FC=
12210 postdeps_FC=
12211 compiler_lib_search_path_FC=
12213 cat > conftest.$ac_ext <<_LT_EOF
12214 subroutine foo
12215 implicit none
12216 integer a
12218 return
12220 _LT_EOF
12222 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12223 (eval $ac_compile) 2>&5
12224 ac_status=$?
12225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12226 test $ac_status = 0; }; then
12227 # Parse the compiler output and extract the necessary
12228 # objects, libraries and library flags.
12230 # Sentinel used to keep track of whether or not we are before
12231 # the conftest object file.
12232 pre_test_object_deps_done=no
12234 for p in `eval "$output_verbose_link_cmd"`; do
12235 case $p in
12237 -L* | -R* | -l*)
12238 # Some compilers place space between "-{L,R}" and the path.
12239 # Remove the space.
12240 if test $p = "-L" ||
12241 test $p = "-R"; then
12242 prev=$p
12243 continue
12244 else
12245 prev=
12248 if test "$pre_test_object_deps_done" = no; then
12249 case $p in
12250 -L* | -R*)
12251 # Internal compiler library paths should come after those
12252 # provided the user. The postdeps already come after the
12253 # user supplied libs so there is no need to process them.
12254 if test -z "$compiler_lib_search_path_FC"; then
12255 compiler_lib_search_path_FC="${prev}${p}"
12256 else
12257 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
12260 # The "-l" case would never come before the object being
12261 # linked, so don't bother handling this case.
12262 esac
12263 else
12264 if test -z "$postdeps_FC"; then
12265 postdeps_FC="${prev}${p}"
12266 else
12267 postdeps_FC="${postdeps_FC} ${prev}${p}"
12272 *.$objext)
12273 # This assumes that the test object file only shows up
12274 # once in the compiler output.
12275 if test "$p" = "conftest.$objext"; then
12276 pre_test_object_deps_done=yes
12277 continue
12280 if test "$pre_test_object_deps_done" = no; then
12281 if test -z "$predep_objects_FC"; then
12282 predep_objects_FC="$p"
12283 else
12284 predep_objects_FC="$predep_objects_FC $p"
12286 else
12287 if test -z "$postdep_objects_FC"; then
12288 postdep_objects_FC="$p"
12289 else
12290 postdep_objects_FC="$postdep_objects_FC $p"
12295 *) ;; # Ignore the rest.
12297 esac
12298 done
12300 # Clean up.
12301 rm -f a.out a.exe
12302 else
12303 echo "libtool.m4: error: problem compiling FC test program"
12306 $RM -f confest.$objext
12308 # PORTME: override above test on systems where it is broken
12311 case " $postdeps_FC " in
12312 *" -lc "*) archive_cmds_need_lc_FC=no ;;
12313 esac
12314 compiler_lib_search_dirs_FC=
12315 if test -n "${compiler_lib_search_path_FC}"; then
12316 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12349 lt_prog_compiler_wl_FC=
12350 lt_prog_compiler_pic_FC=
12351 lt_prog_compiler_static_FC=
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12354 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12356 if test "$GCC" = yes; then
12357 lt_prog_compiler_wl_FC='-Wl,'
12358 lt_prog_compiler_static_FC='-static'
12360 case $host_os in
12361 aix*)
12362 # All AIX code is PIC.
12363 if test "$host_cpu" = ia64; then
12364 # AIX 5 now supports IA64 processor
12365 lt_prog_compiler_static_FC='-Bstatic'
12367 lt_prog_compiler_pic_FC='-fPIC'
12370 amigaos*)
12371 case $host_cpu in
12372 powerpc)
12373 # see comment about AmigaOS4 .so support
12374 lt_prog_compiler_pic_FC='-fPIC'
12376 m68k)
12377 # FIXME: we need at least 68020 code to build shared libraries, but
12378 # adding the `-m68020' flag to GCC prevents building anything better,
12379 # like `-m68040'.
12380 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
12382 esac
12385 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12386 # PIC is the default for these OSes.
12389 mingw* | cygwin* | pw32* | os2* | cegcc*)
12390 # This hack is so that the source file can tell whether it is being
12391 # built for inclusion in a dll (and should export symbols for example).
12392 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12393 # (--disable-auto-import) libraries
12394 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12397 darwin* | rhapsody*)
12398 # PIC is the default on this platform
12399 # Common symbols not allowed in MH_DYLIB files
12400 lt_prog_compiler_pic_FC='-fno-common'
12403 haiku*)
12404 # PIC is the default for Haiku.
12405 # The "-static" flag exists, but is broken.
12406 lt_prog_compiler_static_FC=
12409 hpux*)
12410 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12411 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12412 # sets the default TLS model and affects inlining.
12413 case $host_cpu in
12414 hppa*64*)
12415 # +Z the default
12418 lt_prog_compiler_pic_FC='-fPIC'
12420 esac
12423 interix[3-9]*)
12424 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12425 # Instead, we relocate shared libraries at runtime.
12428 msdosdjgpp*)
12429 # Just because we use GCC doesn't mean we suddenly get shared libraries
12430 # on systems that don't support them.
12431 lt_prog_compiler_can_build_shared_FC=no
12432 enable_shared=no
12435 *nto* | *qnx*)
12436 # QNX uses GNU C++, but need to define -shared option too, otherwise
12437 # it will coredump.
12438 lt_prog_compiler_pic_FC='-fPIC -shared'
12441 sysv4*MP*)
12442 if test -d /usr/nec; then
12443 lt_prog_compiler_pic_FC=-Kconform_pic
12448 lt_prog_compiler_pic_FC='-fPIC'
12450 esac
12452 case $cc_basename in
12453 nvcc*) # Cuda Compiler Driver 2.2
12454 lt_prog_compiler_wl_FC='-Xlinker '
12455 lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
12457 esac
12458 else
12459 # PORTME Check for flag to pass linker flags through the system compiler.
12460 case $host_os in
12461 aix*)
12462 lt_prog_compiler_wl_FC='-Wl,'
12463 if test "$host_cpu" = ia64; then
12464 # AIX 5 now supports IA64 processor
12465 lt_prog_compiler_static_FC='-Bstatic'
12466 else
12467 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
12471 mingw* | cygwin* | pw32* | os2* | cegcc*)
12472 # This hack is so that the source file can tell whether it is being
12473 # built for inclusion in a dll (and should export symbols for example).
12474 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12477 hpux9* | hpux10* | hpux11*)
12478 lt_prog_compiler_wl_FC='-Wl,'
12479 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12480 # not for PA HP-UX.
12481 case $host_cpu in
12482 hppa*64*|ia64*)
12483 # +Z the default
12486 lt_prog_compiler_pic_FC='+Z'
12488 esac
12489 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12490 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
12493 irix5* | irix6* | nonstopux*)
12494 lt_prog_compiler_wl_FC='-Wl,'
12495 # PIC (with -KPIC) is the default.
12496 lt_prog_compiler_static_FC='-non_shared'
12499 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12500 case $cc_basename in
12501 # old Intel for x86_64 which still supported -KPIC.
12502 ecc*)
12503 lt_prog_compiler_wl_FC='-Wl,'
12504 lt_prog_compiler_pic_FC='-KPIC'
12505 lt_prog_compiler_static_FC='-static'
12507 # icc used to be incompatible with GCC.
12508 # ICC 10 doesn't accept -KPIC any more.
12509 icc* | ifort*)
12510 lt_prog_compiler_wl_FC='-Wl,'
12511 lt_prog_compiler_pic_FC='-fPIC'
12512 lt_prog_compiler_static_FC='-static'
12514 # Lahey Fortran 8.1.
12515 lf95*)
12516 lt_prog_compiler_wl_FC='-Wl,'
12517 lt_prog_compiler_pic_FC='--shared'
12518 lt_prog_compiler_static_FC='--static'
12520 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12521 # Portland Group compilers (*not* the Pentium gcc compiler,
12522 # which looks to be a dead project)
12523 lt_prog_compiler_wl_FC='-Wl,'
12524 lt_prog_compiler_pic_FC='-fpic'
12525 lt_prog_compiler_static_FC='-Bstatic'
12527 ccc*)
12528 lt_prog_compiler_wl_FC='-Wl,'
12529 # All Alpha code is PIC.
12530 lt_prog_compiler_static_FC='-non_shared'
12532 xl* | bgxl* | bgf* | mpixl*)
12533 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12534 lt_prog_compiler_wl_FC='-Wl,'
12535 lt_prog_compiler_pic_FC='-qpic'
12536 lt_prog_compiler_static_FC='-qstaticlink'
12539 case `$CC -V 2>&1 | sed 5q` in
12540 *Sun\ F* | *Sun*Fortran*)
12541 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12542 lt_prog_compiler_pic_FC='-KPIC'
12543 lt_prog_compiler_static_FC='-Bstatic'
12544 lt_prog_compiler_wl_FC=''
12546 *Sun\ C*)
12547 # Sun C 5.9
12548 lt_prog_compiler_pic_FC='-KPIC'
12549 lt_prog_compiler_static_FC='-Bstatic'
12550 lt_prog_compiler_wl_FC='-Wl,'
12552 esac
12554 esac
12557 newsos6)
12558 lt_prog_compiler_pic_FC='-KPIC'
12559 lt_prog_compiler_static_FC='-Bstatic'
12562 *nto* | *qnx*)
12563 # QNX uses GNU C++, but need to define -shared option too, otherwise
12564 # it will coredump.
12565 lt_prog_compiler_pic_FC='-fPIC -shared'
12568 osf3* | osf4* | osf5*)
12569 lt_prog_compiler_wl_FC='-Wl,'
12570 # All OSF/1 code is PIC.
12571 lt_prog_compiler_static_FC='-non_shared'
12574 rdos*)
12575 lt_prog_compiler_static_FC='-non_shared'
12578 solaris*)
12579 lt_prog_compiler_pic_FC='-KPIC'
12580 lt_prog_compiler_static_FC='-Bstatic'
12581 case $cc_basename in
12582 f77* | f90* | f95*)
12583 lt_prog_compiler_wl_FC='-Qoption ld ';;
12585 lt_prog_compiler_wl_FC='-Wl,';;
12586 esac
12589 sunos4*)
12590 lt_prog_compiler_wl_FC='-Qoption ld '
12591 lt_prog_compiler_pic_FC='-PIC'
12592 lt_prog_compiler_static_FC='-Bstatic'
12595 sysv4 | sysv4.2uw2* | sysv4.3*)
12596 lt_prog_compiler_wl_FC='-Wl,'
12597 lt_prog_compiler_pic_FC='-KPIC'
12598 lt_prog_compiler_static_FC='-Bstatic'
12601 sysv4*MP*)
12602 if test -d /usr/nec ;then
12603 lt_prog_compiler_pic_FC='-Kconform_pic'
12604 lt_prog_compiler_static_FC='-Bstatic'
12608 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12609 lt_prog_compiler_wl_FC='-Wl,'
12610 lt_prog_compiler_pic_FC='-KPIC'
12611 lt_prog_compiler_static_FC='-Bstatic'
12614 unicos*)
12615 lt_prog_compiler_wl_FC='-Wl,'
12616 lt_prog_compiler_can_build_shared_FC=no
12619 uts4*)
12620 lt_prog_compiler_pic_FC='-pic'
12621 lt_prog_compiler_static_FC='-Bstatic'
12625 lt_prog_compiler_can_build_shared_FC=no
12627 esac
12630 case $host_os in
12631 # For platforms which do not support PIC, -DPIC is meaningless:
12632 *djgpp*)
12633 lt_prog_compiler_pic_FC=
12636 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
12638 esac
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
12640 $as_echo "$lt_prog_compiler_pic_FC" >&6; }
12645 # Check to make sure the PIC flag actually works.
12647 if test -n "$lt_prog_compiler_pic_FC"; then
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
12649 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
12650 if ${lt_cv_prog_compiler_pic_works_FC+:} false; then :
12651 $as_echo_n "(cached) " >&6
12652 else
12653 lt_cv_prog_compiler_pic_works_FC=no
12654 ac_outfile=conftest.$ac_objext
12655 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12656 lt_compiler_flag="$lt_prog_compiler_pic_FC"
12657 # Insert the option either (1) after the last *FLAGS variable, or
12658 # (2) before a word containing "conftest.", or (3) at the end.
12659 # Note that $ac_compile itself does not contain backslashes and begins
12660 # with a dollar sign (not a hyphen), so the echo should work correctly.
12661 # The option is referenced via a variable to avoid confusing sed.
12662 lt_compile=`echo "$ac_compile" | $SED \
12663 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12664 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12665 -e 's:$: $lt_compiler_flag:'`
12666 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12667 (eval "$lt_compile" 2>conftest.err)
12668 ac_status=$?
12669 cat conftest.err >&5
12670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671 if (exit $ac_status) && test -s "$ac_outfile"; then
12672 # The compiler can only warn and ignore the option if not recognized
12673 # So say no if there are warnings other than the usual output.
12674 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12675 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12676 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12677 lt_cv_prog_compiler_pic_works_FC=yes
12680 $RM conftest*
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
12684 $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
12686 if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
12687 case $lt_prog_compiler_pic_FC in
12688 "" | " "*) ;;
12689 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
12690 esac
12691 else
12692 lt_prog_compiler_pic_FC=
12693 lt_prog_compiler_can_build_shared_FC=no
12701 # Check to make sure the static flag actually works.
12703 wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12705 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12706 if ${lt_cv_prog_compiler_static_works_FC+:} false; then :
12707 $as_echo_n "(cached) " >&6
12708 else
12709 lt_cv_prog_compiler_static_works_FC=no
12710 save_LDFLAGS="$LDFLAGS"
12711 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12712 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12713 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12714 # The linker can only warn and ignore the option if not recognized
12715 # So say no if there are warnings
12716 if test -s conftest.err; then
12717 # Append any errors to the config.log.
12718 cat conftest.err 1>&5
12719 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12720 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12721 if diff conftest.exp conftest.er2 >/dev/null; then
12722 lt_cv_prog_compiler_static_works_FC=yes
12724 else
12725 lt_cv_prog_compiler_static_works_FC=yes
12728 $RM -r conftest*
12729 LDFLAGS="$save_LDFLAGS"
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
12733 $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
12735 if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
12737 else
12738 lt_prog_compiler_static_FC=
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12745 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12746 if ${lt_cv_prog_compiler_c_o_FC+:} false; then :
12747 $as_echo_n "(cached) " >&6
12748 else
12749 lt_cv_prog_compiler_c_o_FC=no
12750 $RM -r conftest 2>/dev/null
12751 mkdir conftest
12752 cd conftest
12753 mkdir out
12754 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12756 lt_compiler_flag="-o out/conftest2.$ac_objext"
12757 # Insert the option either (1) after the last *FLAGS variable, or
12758 # (2) before a word containing "conftest.", or (3) at the end.
12759 # Note that $ac_compile itself does not contain backslashes and begins
12760 # with a dollar sign (not a hyphen), so the echo should work correctly.
12761 lt_compile=`echo "$ac_compile" | $SED \
12762 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12763 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12764 -e 's:$: $lt_compiler_flag:'`
12765 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12766 (eval "$lt_compile" 2>out/conftest.err)
12767 ac_status=$?
12768 cat out/conftest.err >&5
12769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12770 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12771 then
12772 # The compiler can only warn and ignore the option if not recognized
12773 # So say no if there are warnings
12774 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12775 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12776 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12777 lt_cv_prog_compiler_c_o_FC=yes
12780 chmod u+w . 2>&5
12781 $RM conftest*
12782 # SGI C++ compiler will create directory out/ii_files/ for
12783 # template instantiation
12784 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12785 $RM out/* && rmdir out
12786 cd ..
12787 $RM -r conftest
12788 $RM conftest*
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12792 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12797 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12798 if ${lt_cv_prog_compiler_c_o_FC+:} false; then :
12799 $as_echo_n "(cached) " >&6
12800 else
12801 lt_cv_prog_compiler_c_o_FC=no
12802 $RM -r conftest 2>/dev/null
12803 mkdir conftest
12804 cd conftest
12805 mkdir out
12806 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12808 lt_compiler_flag="-o out/conftest2.$ac_objext"
12809 # Insert the option either (1) after the last *FLAGS variable, or
12810 # (2) before a word containing "conftest.", or (3) at the end.
12811 # Note that $ac_compile itself does not contain backslashes and begins
12812 # with a dollar sign (not a hyphen), so the echo should work correctly.
12813 lt_compile=`echo "$ac_compile" | $SED \
12814 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12815 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12816 -e 's:$: $lt_compiler_flag:'`
12817 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12818 (eval "$lt_compile" 2>out/conftest.err)
12819 ac_status=$?
12820 cat out/conftest.err >&5
12821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12823 then
12824 # The compiler can only warn and ignore the option if not recognized
12825 # So say no if there are warnings
12826 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12827 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12828 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12829 lt_cv_prog_compiler_c_o_FC=yes
12832 chmod u+w . 2>&5
12833 $RM conftest*
12834 # SGI C++ compiler will create directory out/ii_files/ for
12835 # template instantiation
12836 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12837 $RM out/* && rmdir out
12838 cd ..
12839 $RM -r conftest
12840 $RM conftest*
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12844 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12849 hard_links="nottested"
12850 if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
12851 # do not overwrite the value of need_locks provided by the user
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12853 $as_echo_n "checking if we can lock with hard links... " >&6; }
12854 hard_links=yes
12855 $RM conftest*
12856 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12857 touch conftest.a
12858 ln conftest.a conftest.b 2>&5 || hard_links=no
12859 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12861 $as_echo "$hard_links" >&6; }
12862 if test "$hard_links" = no; then
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12864 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12865 need_locks=warn
12867 else
12868 need_locks=no
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12874 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12876 runpath_var=
12877 allow_undefined_flag_FC=
12878 always_export_symbols_FC=no
12879 archive_cmds_FC=
12880 archive_expsym_cmds_FC=
12881 compiler_needs_object_FC=no
12882 enable_shared_with_static_runtimes_FC=no
12883 export_dynamic_flag_spec_FC=
12884 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12885 hardcode_automatic_FC=no
12886 hardcode_direct_FC=no
12887 hardcode_direct_absolute_FC=no
12888 hardcode_libdir_flag_spec_FC=
12889 hardcode_libdir_flag_spec_ld_FC=
12890 hardcode_libdir_separator_FC=
12891 hardcode_minus_L_FC=no
12892 hardcode_shlibpath_var_FC=unsupported
12893 inherit_rpath_FC=no
12894 link_all_deplibs_FC=unknown
12895 module_cmds_FC=
12896 module_expsym_cmds_FC=
12897 old_archive_from_new_cmds_FC=
12898 old_archive_from_expsyms_cmds_FC=
12899 thread_safe_flag_spec_FC=
12900 whole_archive_flag_spec_FC=
12901 # include_expsyms should be a list of space-separated symbols to be *always*
12902 # included in the symbol list
12903 include_expsyms_FC=
12904 # exclude_expsyms can be an extended regexp of symbols to exclude
12905 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12906 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12907 # as well as any symbol that contains `d'.
12908 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12909 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12910 # platforms (ab)use it in PIC code, but their linkers get confused if
12911 # the symbol is explicitly referenced. Since portable code cannot
12912 # rely on this symbol name, it's probably fine to never include it in
12913 # preloaded symbol tables.
12914 # Exclude shared library initialization/finalization symbols.
12915 extract_expsyms_cmds=
12917 case $host_os in
12918 cygwin* | mingw* | pw32* | cegcc*)
12919 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12920 # When not using gcc, we currently assume that we are using
12921 # Microsoft Visual C++.
12922 if test "$GCC" != yes; then
12923 with_gnu_ld=no
12926 interix*)
12927 # we just hope/assume this is gcc and not c89 (= MSVC++)
12928 with_gnu_ld=yes
12930 openbsd*)
12931 with_gnu_ld=no
12933 esac
12935 ld_shlibs_FC=yes
12937 # On some targets, GNU ld is compatible enough with the native linker
12938 # that we're better off using the native interface for both.
12939 lt_use_gnu_ld_interface=no
12940 if test "$with_gnu_ld" = yes; then
12941 case $host_os in
12942 aix*)
12943 # The AIX port of GNU ld has always aspired to compatibility
12944 # with the native linker. However, as the warning in the GNU ld
12945 # block says, versions before 2.19.5* couldn't really create working
12946 # shared libraries, regardless of the interface used.
12947 case `$LD -v 2>&1` in
12948 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12949 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12950 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12952 lt_use_gnu_ld_interface=yes
12954 esac
12957 lt_use_gnu_ld_interface=yes
12959 esac
12962 if test "$lt_use_gnu_ld_interface" = yes; then
12963 # If archive_cmds runs LD, not CC, wlarc should be empty
12964 wlarc='${wl}'
12966 # Set some defaults for GNU ld with shared library support. These
12967 # are reset later if shared libraries are not supported. Putting them
12968 # here allows them to be overridden if necessary.
12969 runpath_var=LD_RUN_PATH
12970 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12971 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
12972 # ancient GNU ld didn't support --whole-archive et. al.
12973 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12974 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12975 else
12976 whole_archive_flag_spec_FC=
12978 supports_anon_versioning=no
12979 case `$LD -v 2>&1` in
12980 *GNU\ gold*) supports_anon_versioning=yes ;;
12981 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12982 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12983 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12984 *\ 2.11.*) ;; # other 2.11 versions
12985 *) supports_anon_versioning=yes ;;
12986 esac
12988 # See if GNU ld supports shared libraries.
12989 case $host_os in
12990 aix[3-9]*)
12991 # On AIX/PPC, the GNU linker is very broken
12992 if test "$host_cpu" != ia64; then
12993 ld_shlibs_FC=no
12994 cat <<_LT_EOF 1>&2
12996 *** Warning: the GNU linker, at least up to release 2.19, is reported
12997 *** to be unable to reliably create shared libraries on AIX.
12998 *** Therefore, libtool is disabling shared libraries support. If you
12999 *** really care for shared libraries, you may want to install binutils
13000 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13001 *** You will then need to restart the configuration process.
13003 _LT_EOF
13007 amigaos*)
13008 case $host_cpu in
13009 powerpc)
13010 # see comment about AmigaOS4 .so support
13011 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13012 archive_expsym_cmds_FC=''
13014 m68k)
13015 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)'
13016 hardcode_libdir_flag_spec_FC='-L$libdir'
13017 hardcode_minus_L_FC=yes
13019 esac
13022 beos*)
13023 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13024 allow_undefined_flag_FC=unsupported
13025 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13026 # support --undefined. This deserves some investigation. FIXME
13027 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13028 else
13029 ld_shlibs_FC=no
13033 cygwin* | mingw* | pw32* | cegcc*)
13034 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
13035 # as there is no search path for DLLs.
13036 hardcode_libdir_flag_spec_FC='-L$libdir'
13037 export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
13038 allow_undefined_flag_FC=unsupported
13039 always_export_symbols_FC=no
13040 enable_shared_with_static_runtimes_FC=yes
13041 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13043 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13044 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13045 # If the export-symbols file already is a .def file (1st line
13046 # is EXPORTS), use it as is; otherwise, prepend...
13047 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13048 cp $export_symbols $output_objdir/$soname.def;
13049 else
13050 echo EXPORTS > $output_objdir/$soname.def;
13051 cat $export_symbols >> $output_objdir/$soname.def;
13053 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13054 else
13055 ld_shlibs_FC=no
13059 haiku*)
13060 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13061 link_all_deplibs_FC=yes
13064 interix[3-9]*)
13065 hardcode_direct_FC=no
13066 hardcode_shlibpath_var_FC=no
13067 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13068 export_dynamic_flag_spec_FC='${wl}-E'
13069 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13070 # Instead, shared libraries are loaded at an image base (0x10000000 by
13071 # default) and relocated if they conflict, which is a slow very memory
13072 # consuming and fragmenting process. To avoid this, we pick a random,
13073 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13074 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13075 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'
13076 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'
13079 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
13080 tmp_diet=no
13081 if test "$host_os" = linux-dietlibc; then
13082 case $cc_basename in
13083 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13084 esac
13086 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13087 && test "$tmp_diet" = no
13088 then
13089 tmp_addflag=' $pic_flag'
13090 tmp_sharedflag='-shared'
13091 case $cc_basename,$host_cpu in
13092 pgcc*) # Portland Group C compiler
13093 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'
13094 tmp_addflag=' $pic_flag'
13096 pgf77* | pgf90* | pgf95* | pgfortran*)
13097 # Portland Group f77 and f90 compilers
13098 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'
13099 tmp_addflag=' $pic_flag -Mnomain' ;;
13100 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13101 tmp_addflag=' -i_dynamic' ;;
13102 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13103 tmp_addflag=' -i_dynamic -nofor_main' ;;
13104 ifc* | ifort*) # Intel Fortran compiler
13105 tmp_addflag=' -nofor_main' ;;
13106 lf95*) # Lahey Fortran 8.1
13107 whole_archive_flag_spec_FC=
13108 tmp_sharedflag='--shared' ;;
13109 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13110 tmp_sharedflag='-qmkshrobj'
13111 tmp_addflag= ;;
13112 nvcc*) # Cuda Compiler Driver 2.2
13113 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'
13114 compiler_needs_object_FC=yes
13116 esac
13117 case `$CC -V 2>&1 | sed 5q` in
13118 *Sun\ C*) # Sun C 5.9
13119 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'
13120 compiler_needs_object_FC=yes
13121 tmp_sharedflag='-G' ;;
13122 *Sun\ F*) # Sun Fortran 8.3
13123 tmp_sharedflag='-G' ;;
13124 esac
13125 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13127 if test "x$supports_anon_versioning" = xyes; then
13128 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
13129 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13130 echo "local: *; };" >> $output_objdir/$libname.ver~
13131 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13134 case $cc_basename in
13135 xlf* | bgf* | bgxlf* | mpixlf*)
13136 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13137 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
13138 hardcode_libdir_flag_spec_FC=
13139 hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
13140 archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
13141 if test "x$supports_anon_versioning" = xyes; then
13142 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
13143 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13144 echo "local: *; };" >> $output_objdir/$libname.ver~
13145 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13148 esac
13149 else
13150 ld_shlibs_FC=no
13154 netbsd*)
13155 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13156 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13157 wlarc=
13158 else
13159 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13160 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13164 solaris*)
13165 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13166 ld_shlibs_FC=no
13167 cat <<_LT_EOF 1>&2
13169 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13170 *** create shared libraries on Solaris systems. Therefore, libtool
13171 *** is disabling shared libraries support. We urge you to upgrade GNU
13172 *** binutils to release 2.9.1 or newer. Another option is to modify
13173 *** your PATH or compiler configuration so that the native linker is
13174 *** used, and then restart.
13176 _LT_EOF
13177 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13178 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13179 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13180 else
13181 ld_shlibs_FC=no
13185 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13186 case `$LD -v 2>&1` in
13187 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13188 ld_shlibs_FC=no
13189 cat <<_LT_EOF 1>&2
13191 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13192 *** reliably create shared libraries on SCO systems. Therefore, libtool
13193 *** is disabling shared libraries support. We urge you to upgrade GNU
13194 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13195 *** your PATH or compiler configuration so that the native linker is
13196 *** used, and then restart.
13198 _LT_EOF
13201 # For security reasons, it is highly recommended that you always
13202 # use absolute paths for naming shared libraries, and exclude the
13203 # DT_RUNPATH tag from executables and libraries. But doing so
13204 # requires that you compile everything twice, which is a pain.
13205 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13206 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13207 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13208 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13209 else
13210 ld_shlibs_FC=no
13213 esac
13216 sunos4*)
13217 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13218 wlarc=
13219 hardcode_direct_FC=yes
13220 hardcode_shlibpath_var_FC=no
13224 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13225 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13226 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13227 else
13228 ld_shlibs_FC=no
13231 esac
13233 if test "$ld_shlibs_FC" = no; then
13234 runpath_var=
13235 hardcode_libdir_flag_spec_FC=
13236 export_dynamic_flag_spec_FC=
13237 whole_archive_flag_spec_FC=
13239 else
13240 # PORTME fill in a description of your system's linker (not GNU ld)
13241 case $host_os in
13242 aix3*)
13243 allow_undefined_flag_FC=unsupported
13244 always_export_symbols_FC=yes
13245 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'
13246 # Note: this linker hardcodes the directories in LIBPATH if there
13247 # are no directories specified by -L.
13248 hardcode_minus_L_FC=yes
13249 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13250 # Neither direct hardcoding nor static linking is supported with a
13251 # broken collect2.
13252 hardcode_direct_FC=unsupported
13256 aix[4-9]*)
13257 if test "$host_cpu" = ia64; then
13258 # On IA64, the linker does run time linking by default, so we don't
13259 # have to do anything special.
13260 aix_use_runtimelinking=no
13261 exp_sym_flag='-Bexport'
13262 no_entry_flag=""
13263 else
13264 # If we're using GNU nm, then we don't want the "-C" option.
13265 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13266 # Also, AIX nm treats weak defined symbols like other global
13267 # defined symbols, whereas GNU nm marks them as "W".
13268 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13269 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'
13270 else
13271 export_symbols_cmds_FC='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13273 aix_use_runtimelinking=no
13275 # Test if we are trying to use run time linking or normal
13276 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13277 # need to do runtime linking.
13278 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13279 for ld_flag in $LDFLAGS; do
13280 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13281 aix_use_runtimelinking=yes
13282 break
13284 done
13286 esac
13288 exp_sym_flag='-bexport'
13289 no_entry_flag='-bnoentry'
13292 # When large executables or shared objects are built, AIX ld can
13293 # have problems creating the table of contents. If linking a library
13294 # or program results in "error TOC overflow" add -mminimal-toc to
13295 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13296 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13298 archive_cmds_FC=''
13299 hardcode_direct_FC=yes
13300 hardcode_direct_absolute_FC=yes
13301 hardcode_libdir_separator_FC=':'
13302 link_all_deplibs_FC=yes
13303 file_list_spec_FC='${wl}-f,'
13305 if test "$GCC" = yes; then
13306 case $host_os in aix4.[012]|aix4.[012].*)
13307 # We only want to do this on AIX 4.2 and lower, the check
13308 # below for broken collect2 doesn't work under 4.3+
13309 collect2name=`${CC} -print-prog-name=collect2`
13310 if test -f "$collect2name" &&
13311 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13312 then
13313 # We have reworked collect2
13315 else
13316 # We have old collect2
13317 hardcode_direct_FC=unsupported
13318 # It fails to find uninstalled libraries when the uninstalled
13319 # path is not listed in the libpath. Setting hardcode_minus_L
13320 # to unsupported forces relinking
13321 hardcode_minus_L_FC=yes
13322 hardcode_libdir_flag_spec_FC='-L$libdir'
13323 hardcode_libdir_separator_FC=
13326 esac
13327 shared_flag='-shared'
13328 if test "$aix_use_runtimelinking" = yes; then
13329 shared_flag="$shared_flag "'${wl}-G'
13331 else
13332 # not using gcc
13333 if test "$host_cpu" = ia64; then
13334 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13335 # chokes on -Wl,-G. The following line is correct:
13336 shared_flag='-G'
13337 else
13338 if test "$aix_use_runtimelinking" = yes; then
13339 shared_flag='${wl}-G'
13340 else
13341 shared_flag='${wl}-bM:SRE'
13346 export_dynamic_flag_spec_FC='${wl}-bexpall'
13347 # It seems that -bexpall does not export symbols beginning with
13348 # underscore (_), so it is better to generate a list of symbols to export.
13349 always_export_symbols_FC=yes
13350 if test "$aix_use_runtimelinking" = yes; then
13351 # Warning - without using the other runtime loading flags (-brtl),
13352 # -berok will link without error, but may produce a broken library.
13353 allow_undefined_flag_FC='-berok'
13354 # Determine the default libpath from the value encoded in an
13355 # empty executable.
13356 cat > conftest.$ac_ext <<_ACEOF
13357 program main
13360 _ACEOF
13361 if ac_fn_fc_try_link "$LINENO"; then :
13363 lt_aix_libpath_sed='
13364 /Import File Strings/,/^$/ {
13365 /^0/ {
13366 s/^0 *\(.*\)$/\1/
13370 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13371 # Check for a 64-bit object if we didn't find anything.
13372 if test -z "$aix_libpath"; then
13373 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13376 rm -f core conftest.err conftest.$ac_objext \
13377 conftest$ac_exeext conftest.$ac_ext
13378 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13380 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
13381 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"
13382 else
13383 if test "$host_cpu" = ia64; then
13384 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
13385 allow_undefined_flag_FC="-z nodefs"
13386 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"
13387 else
13388 # Determine the default libpath from the value encoded in an
13389 # empty executable.
13390 cat > conftest.$ac_ext <<_ACEOF
13391 program main
13394 _ACEOF
13395 if ac_fn_fc_try_link "$LINENO"; then :
13397 lt_aix_libpath_sed='
13398 /Import File Strings/,/^$/ {
13399 /^0/ {
13400 s/^0 *\(.*\)$/\1/
13404 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13405 # Check for a 64-bit object if we didn't find anything.
13406 if test -z "$aix_libpath"; then
13407 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13410 rm -f core conftest.err conftest.$ac_objext \
13411 conftest$ac_exeext conftest.$ac_ext
13412 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13414 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
13415 # Warning - without using the other run time loading flags,
13416 # -berok will link without error, but may produce a broken library.
13417 no_undefined_flag_FC=' ${wl}-bernotok'
13418 allow_undefined_flag_FC=' ${wl}-berok'
13419 if test "$with_gnu_ld" = yes; then
13420 # We only use this code for GNU lds that support --whole-archive.
13421 whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13422 else
13423 # Exported symbols can be pulled into shared objects from archives
13424 whole_archive_flag_spec_FC='$convenience'
13426 archive_cmds_need_lc_FC=yes
13427 # This is similar to how AIX traditionally builds its shared libraries.
13428 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'
13433 amigaos*)
13434 case $host_cpu in
13435 powerpc)
13436 # see comment about AmigaOS4 .so support
13437 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13438 archive_expsym_cmds_FC=''
13440 m68k)
13441 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)'
13442 hardcode_libdir_flag_spec_FC='-L$libdir'
13443 hardcode_minus_L_FC=yes
13445 esac
13448 bsdi[45]*)
13449 export_dynamic_flag_spec_FC=-rdynamic
13452 cygwin* | mingw* | pw32* | cegcc*)
13453 # When not using gcc, we currently assume that we are using
13454 # Microsoft Visual C++.
13455 # hardcode_libdir_flag_spec is actually meaningless, as there is
13456 # no search path for DLLs.
13457 hardcode_libdir_flag_spec_FC=' '
13458 allow_undefined_flag_FC=unsupported
13459 # Tell ltmain to make .lib files, not .a files.
13460 libext=lib
13461 # Tell ltmain to make .dll files, not .so files.
13462 shrext_cmds=".dll"
13463 # FIXME: Setting linknames here is a bad hack.
13464 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13465 # The linker will automatically build a .lib file if we build a DLL.
13466 old_archive_from_new_cmds_FC='true'
13467 # FIXME: Should let the user specify the lib program.
13468 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
13469 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
13470 enable_shared_with_static_runtimes_FC=yes
13473 darwin* | rhapsody*)
13476 archive_cmds_need_lc_FC=no
13477 hardcode_direct_FC=no
13478 hardcode_automatic_FC=yes
13479 hardcode_shlibpath_var_FC=unsupported
13480 if test "$lt_cv_ld_force_load" = "yes"; then
13481 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\"`'
13482 else
13483 whole_archive_flag_spec_FC=''
13485 link_all_deplibs_FC=yes
13486 allow_undefined_flag_FC="$_lt_dar_allow_undefined"
13487 case $cc_basename in
13488 ifort*) _lt_dar_can_shared=yes ;;
13489 *) _lt_dar_can_shared=$GCC ;;
13490 esac
13491 if test "$_lt_dar_can_shared" = "yes"; then
13492 output_verbose_link_cmd=func_echo_all
13493 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}"
13494 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13495 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}"
13496 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}"
13498 else
13499 ld_shlibs_FC=no
13504 dgux*)
13505 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13506 hardcode_libdir_flag_spec_FC='-L$libdir'
13507 hardcode_shlibpath_var_FC=no
13510 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13511 # support. Future versions do this automatically, but an explicit c++rt0.o
13512 # does not break anything, and helps significantly (at the cost of a little
13513 # extra space).
13514 freebsd2.2*)
13515 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13516 hardcode_libdir_flag_spec_FC='-R$libdir'
13517 hardcode_direct_FC=yes
13518 hardcode_shlibpath_var_FC=no
13521 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13522 freebsd2.*)
13523 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13524 hardcode_direct_FC=yes
13525 hardcode_minus_L_FC=yes
13526 hardcode_shlibpath_var_FC=no
13529 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13530 freebsd* | dragonfly*)
13531 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13532 hardcode_libdir_flag_spec_FC='-R$libdir'
13533 hardcode_direct_FC=yes
13534 hardcode_shlibpath_var_FC=no
13537 hpux9*)
13538 if test "$GCC" = yes; then
13539 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'
13540 else
13541 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'
13543 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13544 hardcode_libdir_separator_FC=:
13545 hardcode_direct_FC=yes
13547 # hardcode_minus_L: Not really in the search PATH,
13548 # but as the default location of the library.
13549 hardcode_minus_L_FC=yes
13550 export_dynamic_flag_spec_FC='${wl}-E'
13553 hpux10*)
13554 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13555 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13556 else
13557 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13559 if test "$with_gnu_ld" = no; then
13560 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13561 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
13562 hardcode_libdir_separator_FC=:
13563 hardcode_direct_FC=yes
13564 hardcode_direct_absolute_FC=yes
13565 export_dynamic_flag_spec_FC='${wl}-E'
13566 # hardcode_minus_L: Not really in the search PATH,
13567 # but as the default location of the library.
13568 hardcode_minus_L_FC=yes
13572 hpux11*)
13573 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13574 case $host_cpu in
13575 hppa*64*)
13576 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13578 ia64*)
13579 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13582 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13584 esac
13585 else
13586 case $host_cpu in
13587 hppa*64*)
13588 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13590 ia64*)
13591 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13594 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13596 esac
13598 if test "$with_gnu_ld" = no; then
13599 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13600 hardcode_libdir_separator_FC=:
13602 case $host_cpu in
13603 hppa*64*|ia64*)
13604 hardcode_direct_FC=no
13605 hardcode_shlibpath_var_FC=no
13608 hardcode_direct_FC=yes
13609 hardcode_direct_absolute_FC=yes
13610 export_dynamic_flag_spec_FC='${wl}-E'
13612 # hardcode_minus_L: Not really in the search PATH,
13613 # but as the default location of the library.
13614 hardcode_minus_L_FC=yes
13616 esac
13620 irix5* | irix6* | nonstopux*)
13621 if test "$GCC" = yes; then
13622 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'
13623 # Try to use the -exported_symbol ld option, if it does not
13624 # work, assume that -exports_file does not work either and
13625 # implicitly export all symbols.
13626 save_LDFLAGS="$LDFLAGS"
13627 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13628 cat > conftest.$ac_ext <<_ACEOF
13629 int foo(void) {}
13630 _ACEOF
13631 if ac_fn_fc_try_link "$LINENO"; then :
13632 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'
13635 rm -f core conftest.err conftest.$ac_objext \
13636 conftest$ac_exeext conftest.$ac_ext
13637 LDFLAGS="$save_LDFLAGS"
13638 else
13639 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'
13640 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'
13642 archive_cmds_need_lc_FC='no'
13643 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13644 hardcode_libdir_separator_FC=:
13645 inherit_rpath_FC=yes
13646 link_all_deplibs_FC=yes
13649 netbsd*)
13650 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13651 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13652 else
13653 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13655 hardcode_libdir_flag_spec_FC='-R$libdir'
13656 hardcode_direct_FC=yes
13657 hardcode_shlibpath_var_FC=no
13660 newsos6)
13661 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13662 hardcode_direct_FC=yes
13663 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13664 hardcode_libdir_separator_FC=:
13665 hardcode_shlibpath_var_FC=no
13668 *nto* | *qnx*)
13671 openbsd*)
13672 if test -f /usr/libexec/ld.so; then
13673 hardcode_direct_FC=yes
13674 hardcode_shlibpath_var_FC=no
13675 hardcode_direct_absolute_FC=yes
13676 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13677 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13678 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13679 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13680 export_dynamic_flag_spec_FC='${wl}-E'
13681 else
13682 case $host_os in
13683 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13684 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13685 hardcode_libdir_flag_spec_FC='-R$libdir'
13688 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13689 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13691 esac
13693 else
13694 ld_shlibs_FC=no
13698 os2*)
13699 hardcode_libdir_flag_spec_FC='-L$libdir'
13700 hardcode_minus_L_FC=yes
13701 allow_undefined_flag_FC=unsupported
13702 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'
13703 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13706 osf3*)
13707 if test "$GCC" = yes; then
13708 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
13709 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'
13710 else
13711 allow_undefined_flag_FC=' -expect_unresolved \*'
13712 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'
13714 archive_cmds_need_lc_FC='no'
13715 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13716 hardcode_libdir_separator_FC=:
13719 osf4* | osf5*) # as osf3* with the addition of -msym flag
13720 if test "$GCC" = yes; then
13721 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
13722 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'
13723 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13724 else
13725 allow_undefined_flag_FC=' -expect_unresolved \*'
13726 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'
13727 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~
13728 $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'
13730 # Both c and cxx compiler support -rpath directly
13731 hardcode_libdir_flag_spec_FC='-rpath $libdir'
13733 archive_cmds_need_lc_FC='no'
13734 hardcode_libdir_separator_FC=:
13737 solaris*)
13738 no_undefined_flag_FC=' -z defs'
13739 if test "$GCC" = yes; then
13740 wlarc='${wl}'
13741 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13742 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13743 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13744 else
13745 case `$CC -V 2>&1` in
13746 *"Compilers 5.0"*)
13747 wlarc=''
13748 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13749 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13750 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13753 wlarc='${wl}'
13754 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13755 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13756 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13758 esac
13760 hardcode_libdir_flag_spec_FC='-R$libdir'
13761 hardcode_shlibpath_var_FC=no
13762 case $host_os in
13763 solaris2.[0-5] | solaris2.[0-5].*) ;;
13765 # The compiler driver will combine and reorder linker options,
13766 # but understands `-z linker_flag'. GCC discards it without `$wl',
13767 # but is careful enough not to reorder.
13768 # Supported since Solaris 2.6 (maybe 2.5.1?)
13769 if test "$GCC" = yes; then
13770 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13771 else
13772 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
13775 esac
13776 link_all_deplibs_FC=yes
13779 sunos4*)
13780 if test "x$host_vendor" = xsequent; then
13781 # Use $CC to link under sequent, because it throws in some extra .o
13782 # files that make .init and .fini sections work.
13783 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13784 else
13785 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13787 hardcode_libdir_flag_spec_FC='-L$libdir'
13788 hardcode_direct_FC=yes
13789 hardcode_minus_L_FC=yes
13790 hardcode_shlibpath_var_FC=no
13793 sysv4)
13794 case $host_vendor in
13795 sni)
13796 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13797 hardcode_direct_FC=yes # is this really true???
13799 siemens)
13800 ## LD is ld it makes a PLAMLIB
13801 ## CC just makes a GrossModule.
13802 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13803 reload_cmds_FC='$CC -r -o $output$reload_objs'
13804 hardcode_direct_FC=no
13806 motorola)
13807 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13808 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
13810 esac
13811 runpath_var='LD_RUN_PATH'
13812 hardcode_shlibpath_var_FC=no
13815 sysv4.3*)
13816 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13817 hardcode_shlibpath_var_FC=no
13818 export_dynamic_flag_spec_FC='-Bexport'
13821 sysv4*MP*)
13822 if test -d /usr/nec; then
13823 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13824 hardcode_shlibpath_var_FC=no
13825 runpath_var=LD_RUN_PATH
13826 hardcode_runpath_var=yes
13827 ld_shlibs_FC=yes
13831 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13832 no_undefined_flag_FC='${wl}-z,text'
13833 archive_cmds_need_lc_FC=no
13834 hardcode_shlibpath_var_FC=no
13835 runpath_var='LD_RUN_PATH'
13837 if test "$GCC" = yes; then
13838 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13839 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13840 else
13841 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13842 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13846 sysv5* | sco3.2v5* | sco5v6*)
13847 # Note: We can NOT use -z defs as we might desire, because we do not
13848 # link with -lc, and that would cause any symbols used from libc to
13849 # always be unresolved, which means just about no library would
13850 # ever link correctly. If we're not using GNU ld we use -z text
13851 # though, which does catch some bad symbols but isn't as heavy-handed
13852 # as -z defs.
13853 no_undefined_flag_FC='${wl}-z,text'
13854 allow_undefined_flag_FC='${wl}-z,nodefs'
13855 archive_cmds_need_lc_FC=no
13856 hardcode_shlibpath_var_FC=no
13857 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
13858 hardcode_libdir_separator_FC=':'
13859 link_all_deplibs_FC=yes
13860 export_dynamic_flag_spec_FC='${wl}-Bexport'
13861 runpath_var='LD_RUN_PATH'
13863 if test "$GCC" = yes; then
13864 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13865 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13866 else
13867 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13868 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13872 uts4*)
13873 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13874 hardcode_libdir_flag_spec_FC='-L$libdir'
13875 hardcode_shlibpath_var_FC=no
13879 ld_shlibs_FC=no
13881 esac
13883 if test x$host_vendor = xsni; then
13884 case $host in
13885 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13886 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
13888 esac
13892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
13893 $as_echo "$ld_shlibs_FC" >&6; }
13894 test "$ld_shlibs_FC" = no && can_build_shared=no
13896 with_gnu_ld_FC=$with_gnu_ld
13904 # Do we need to explicitly link libc?
13906 case "x$archive_cmds_need_lc_FC" in
13907 x|xyes)
13908 # Assume -lc should be added
13909 archive_cmds_need_lc_FC=yes
13911 if test "$enable_shared" = yes && test "$GCC" = yes; then
13912 case $archive_cmds_FC in
13913 *'~'*)
13914 # FIXME: we may have to deal with multi-command sequences.
13916 '$CC '*)
13917 # Test whether the compiler implicitly links with -lc since on some
13918 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13919 # to ld, don't add -lc before -lgcc.
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13921 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13922 if ${lt_cv_archive_cmds_need_lc_FC+:} false; then :
13923 $as_echo_n "(cached) " >&6
13924 else
13925 $RM conftest*
13926 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13928 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13929 (eval $ac_compile) 2>&5
13930 ac_status=$?
13931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13932 test $ac_status = 0; } 2>conftest.err; then
13933 soname=conftest
13934 lib=conftest
13935 libobjs=conftest.$ac_objext
13936 deplibs=
13937 wl=$lt_prog_compiler_wl_FC
13938 pic_flag=$lt_prog_compiler_pic_FC
13939 compiler_flags=-v
13940 linker_flags=-v
13941 verstring=
13942 output_objdir=.
13943 libname=conftest
13944 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
13945 allow_undefined_flag_FC=
13946 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13947 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13948 ac_status=$?
13949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13950 test $ac_status = 0; }
13951 then
13952 lt_cv_archive_cmds_need_lc_FC=no
13953 else
13954 lt_cv_archive_cmds_need_lc_FC=yes
13956 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
13957 else
13958 cat conftest.err 1>&5
13960 $RM conftest*
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
13964 $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
13965 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
13967 esac
13970 esac
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14036 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14038 library_names_spec=
14039 libname_spec='lib$name'
14040 soname_spec=
14041 shrext_cmds=".so"
14042 postinstall_cmds=
14043 postuninstall_cmds=
14044 finish_cmds=
14045 finish_eval=
14046 shlibpath_var=
14047 shlibpath_overrides_runpath=unknown
14048 version_type=none
14049 dynamic_linker="$host_os ld.so"
14050 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14051 need_lib_prefix=unknown
14052 hardcode_into_libs=no
14054 # when you set need_version to no, make sure it does not cause -set_version
14055 # flags to be left without arguments
14056 need_version=unknown
14058 case $host_os in
14059 aix3*)
14060 version_type=linux
14061 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14062 shlibpath_var=LIBPATH
14064 # AIX 3 has no versioning support, so we append a major version to the name.
14065 soname_spec='${libname}${release}${shared_ext}$major'
14068 aix[4-9]*)
14069 version_type=linux
14070 need_lib_prefix=no
14071 need_version=no
14072 hardcode_into_libs=yes
14073 if test "$host_cpu" = ia64; then
14074 # AIX 5 supports IA64
14075 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14076 shlibpath_var=LD_LIBRARY_PATH
14077 else
14078 # With GCC up to 2.95.x, collect2 would create an import file
14079 # for dependence libraries. The import file would start with
14080 # the line `#! .'. This would cause the generated library to
14081 # depend on `.', always an invalid library. This was fixed in
14082 # development snapshots of GCC prior to 3.0.
14083 case $host_os in
14084 aix4 | aix4.[01] | aix4.[01].*)
14085 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14086 echo ' yes '
14087 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14089 else
14090 can_build_shared=no
14093 esac
14094 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14095 # soname into executable. Probably we can add versioning support to
14096 # collect2, so additional links can be useful in future.
14097 if test "$aix_use_runtimelinking" = yes; then
14098 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14099 # instead of lib<name>.a to let people know that these are not
14100 # typical AIX shared libraries.
14101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14102 else
14103 # We preserve .a as extension for shared libraries through AIX4.2
14104 # and later when we are not doing run time linking.
14105 library_names_spec='${libname}${release}.a $libname.a'
14106 soname_spec='${libname}${release}${shared_ext}$major'
14108 shlibpath_var=LIBPATH
14112 amigaos*)
14113 case $host_cpu in
14114 powerpc)
14115 # Since July 2007 AmigaOS4 officially supports .so libraries.
14116 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14119 m68k)
14120 library_names_spec='$libname.ixlibrary $libname.a'
14121 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14122 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'
14124 esac
14127 beos*)
14128 library_names_spec='${libname}${shared_ext}'
14129 dynamic_linker="$host_os ld.so"
14130 shlibpath_var=LIBRARY_PATH
14133 bsdi[45]*)
14134 version_type=linux
14135 need_version=no
14136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14137 soname_spec='${libname}${release}${shared_ext}$major'
14138 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14139 shlibpath_var=LD_LIBRARY_PATH
14140 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14141 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14142 # the default ld.so.conf also contains /usr/contrib/lib and
14143 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14144 # libtool to hard-code these into programs
14147 cygwin* | mingw* | pw32* | cegcc*)
14148 version_type=windows
14149 shrext_cmds=".dll"
14150 need_version=no
14151 need_lib_prefix=no
14153 case $GCC,$host_os in
14154 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14155 library_names_spec='$libname.dll.a'
14156 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14157 postinstall_cmds='base_file=`basename \${file}`~
14158 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14159 dldir=$destdir/`dirname \$dlpath`~
14160 test -d \$dldir || mkdir -p \$dldir~
14161 $install_prog $dir/$dlname \$dldir/$dlname~
14162 chmod a+x \$dldir/$dlname~
14163 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14164 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14166 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14167 dlpath=$dir/\$dldll~
14168 $RM \$dlpath'
14169 shlibpath_overrides_runpath=yes
14171 case $host_os in
14172 cygwin*)
14173 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14174 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14177 mingw* | cegcc*)
14178 # MinGW DLLs use traditional 'lib' prefix
14179 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14181 pw32*)
14182 # pw32 DLLs use 'pw' prefix rather than 'lib'
14183 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14185 esac
14189 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14191 esac
14192 dynamic_linker='Win32 ld.exe'
14193 # FIXME: first we should search . and the directory the executable is in
14194 shlibpath_var=PATH
14197 darwin* | rhapsody*)
14198 dynamic_linker="$host_os dyld"
14199 version_type=darwin
14200 need_lib_prefix=no
14201 need_version=no
14202 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14203 soname_spec='${libname}${release}${major}$shared_ext'
14204 shlibpath_overrides_runpath=yes
14205 shlibpath_var=DYLD_LIBRARY_PATH
14206 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14208 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14211 dgux*)
14212 version_type=linux
14213 need_lib_prefix=no
14214 need_version=no
14215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14216 soname_spec='${libname}${release}${shared_ext}$major'
14217 shlibpath_var=LD_LIBRARY_PATH
14220 freebsd* | dragonfly*)
14221 # DragonFly does not have aout. When/if they implement a new
14222 # versioning mechanism, adjust this.
14223 if test -x /usr/bin/objformat; then
14224 objformat=`/usr/bin/objformat`
14225 else
14226 case $host_os in
14227 freebsd[23].*) objformat=aout ;;
14228 *) objformat=elf ;;
14229 esac
14231 version_type=freebsd-$objformat
14232 case $version_type in
14233 freebsd-elf*)
14234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14235 need_version=no
14236 need_lib_prefix=no
14238 freebsd-*)
14239 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14240 need_version=yes
14242 esac
14243 shlibpath_var=LD_LIBRARY_PATH
14244 case $host_os in
14245 freebsd2.*)
14246 shlibpath_overrides_runpath=yes
14248 freebsd3.[01]* | freebsdelf3.[01]*)
14249 shlibpath_overrides_runpath=yes
14250 hardcode_into_libs=yes
14252 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14253 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14254 shlibpath_overrides_runpath=no
14255 hardcode_into_libs=yes
14257 *) # from 4.6 on, and DragonFly
14258 shlibpath_overrides_runpath=yes
14259 hardcode_into_libs=yes
14261 esac
14264 haiku*)
14265 version_type=linux
14266 need_lib_prefix=no
14267 need_version=no
14268 dynamic_linker="$host_os runtime_loader"
14269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14270 soname_spec='${libname}${release}${shared_ext}$major'
14271 shlibpath_var=LIBRARY_PATH
14272 shlibpath_overrides_runpath=yes
14273 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14274 hardcode_into_libs=yes
14277 hpux9* | hpux10* | hpux11*)
14278 # Give a soname corresponding to the major version so that dld.sl refuses to
14279 # link against other versions.
14280 version_type=sunos
14281 need_lib_prefix=no
14282 need_version=no
14283 case $host_cpu in
14284 ia64*)
14285 shrext_cmds='.so'
14286 hardcode_into_libs=yes
14287 dynamic_linker="$host_os dld.so"
14288 shlibpath_var=LD_LIBRARY_PATH
14289 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14291 soname_spec='${libname}${release}${shared_ext}$major'
14292 if test "X$HPUX_IA64_MODE" = X32; then
14293 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14294 else
14295 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14297 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14299 hppa*64*)
14300 shrext_cmds='.sl'
14301 hardcode_into_libs=yes
14302 dynamic_linker="$host_os dld.sl"
14303 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14304 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14306 soname_spec='${libname}${release}${shared_ext}$major'
14307 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14308 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14311 shrext_cmds='.sl'
14312 dynamic_linker="$host_os dld.sl"
14313 shlibpath_var=SHLIB_PATH
14314 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14316 soname_spec='${libname}${release}${shared_ext}$major'
14318 esac
14319 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14320 postinstall_cmds='chmod 555 $lib'
14321 # or fails outright, so override atomically:
14322 install_override_mode=555
14325 interix[3-9]*)
14326 version_type=linux
14327 need_lib_prefix=no
14328 need_version=no
14329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14330 soname_spec='${libname}${release}${shared_ext}$major'
14331 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14332 shlibpath_var=LD_LIBRARY_PATH
14333 shlibpath_overrides_runpath=no
14334 hardcode_into_libs=yes
14337 irix5* | irix6* | nonstopux*)
14338 case $host_os in
14339 nonstopux*) version_type=nonstopux ;;
14341 if test "$lt_cv_prog_gnu_ld" = yes; then
14342 version_type=linux
14343 else
14344 version_type=irix
14345 fi ;;
14346 esac
14347 need_lib_prefix=no
14348 need_version=no
14349 soname_spec='${libname}${release}${shared_ext}$major'
14350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14351 case $host_os in
14352 irix5* | nonstopux*)
14353 libsuff= shlibsuff=
14356 case $LD in # libtool.m4 will add one of these switches to LD
14357 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14358 libsuff= shlibsuff= libmagic=32-bit;;
14359 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14360 libsuff=32 shlibsuff=N32 libmagic=N32;;
14361 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14362 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14363 *) libsuff= shlibsuff= libmagic=never-match;;
14364 esac
14366 esac
14367 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14368 shlibpath_overrides_runpath=no
14369 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14370 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14371 hardcode_into_libs=yes
14374 # No shared lib support for Linux oldld, aout, or coff.
14375 linux*oldld* | linux*aout* | linux*coff*)
14376 dynamic_linker=no
14379 # This must be Linux ELF.
14381 # uclinux* changes (here and below) have been submitted to the libtool
14382 # project, but have not yet been accepted: they are GCC-local changes
14383 # for the time being. (See
14384 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
14385 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
14386 version_type=linux
14387 need_lib_prefix=no
14388 need_version=no
14389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14390 soname_spec='${libname}${release}${shared_ext}$major'
14391 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14392 shlibpath_var=LD_LIBRARY_PATH
14393 shlibpath_overrides_runpath=no
14395 # Some binutils ld are patched to set DT_RUNPATH
14396 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14397 $as_echo_n "(cached) " >&6
14398 else
14399 lt_cv_shlibpath_overrides_runpath=no
14400 save_LDFLAGS=$LDFLAGS
14401 save_libdir=$libdir
14402 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
14403 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
14404 cat > conftest.$ac_ext <<_ACEOF
14405 program main
14408 _ACEOF
14409 if ac_fn_fc_try_link "$LINENO"; then :
14410 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14411 lt_cv_shlibpath_overrides_runpath=yes
14414 rm -f core conftest.err conftest.$ac_objext \
14415 conftest$ac_exeext conftest.$ac_ext
14416 LDFLAGS=$save_LDFLAGS
14417 libdir=$save_libdir
14421 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14423 # This implies no fast_install, which is unacceptable.
14424 # Some rework will be needed to allow for fast_install
14425 # before this can be enabled.
14426 hardcode_into_libs=yes
14428 # Append ld.so.conf contents to the search path
14429 if test -f /etc/ld.so.conf; then
14430 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' ' '`
14431 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14434 # We used to test for /lib/ld.so.1 and disable shared libraries on
14435 # powerpc, because MkLinux only supported shared libraries with the
14436 # GNU dynamic linker. Since this was broken with cross compilers,
14437 # most powerpc-linux boxes support dynamic linking these days and
14438 # people can always --disable-shared, the test was removed, and we
14439 # assume the GNU/Linux dynamic linker is in use.
14440 dynamic_linker='GNU/Linux ld.so'
14443 netbsd*)
14444 version_type=sunos
14445 need_lib_prefix=no
14446 need_version=no
14447 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14449 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14450 dynamic_linker='NetBSD (a.out) ld.so'
14451 else
14452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14453 soname_spec='${libname}${release}${shared_ext}$major'
14454 dynamic_linker='NetBSD ld.elf_so'
14456 shlibpath_var=LD_LIBRARY_PATH
14457 shlibpath_overrides_runpath=yes
14458 hardcode_into_libs=yes
14461 newsos6)
14462 version_type=linux
14463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14464 shlibpath_var=LD_LIBRARY_PATH
14465 shlibpath_overrides_runpath=yes
14468 *nto* | *qnx*)
14469 version_type=qnx
14470 need_lib_prefix=no
14471 need_version=no
14472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14473 soname_spec='${libname}${release}${shared_ext}$major'
14474 shlibpath_var=LD_LIBRARY_PATH
14475 shlibpath_overrides_runpath=no
14476 hardcode_into_libs=yes
14477 dynamic_linker='ldqnx.so'
14480 openbsd*)
14481 version_type=sunos
14482 sys_lib_dlsearch_path_spec="/usr/lib"
14483 need_lib_prefix=no
14484 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14485 case $host_os in
14486 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14487 *) need_version=no ;;
14488 esac
14489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14490 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14491 shlibpath_var=LD_LIBRARY_PATH
14492 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14493 case $host_os in
14494 openbsd2.[89] | openbsd2.[89].*)
14495 shlibpath_overrides_runpath=no
14498 shlibpath_overrides_runpath=yes
14500 esac
14501 else
14502 shlibpath_overrides_runpath=yes
14506 os2*)
14507 libname_spec='$name'
14508 shrext_cmds=".dll"
14509 need_lib_prefix=no
14510 library_names_spec='$libname${shared_ext} $libname.a'
14511 dynamic_linker='OS/2 ld.exe'
14512 shlibpath_var=LIBPATH
14515 osf3* | osf4* | osf5*)
14516 version_type=osf
14517 need_lib_prefix=no
14518 need_version=no
14519 soname_spec='${libname}${release}${shared_ext}$major'
14520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14521 shlibpath_var=LD_LIBRARY_PATH
14522 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14523 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14526 rdos*)
14527 dynamic_linker=no
14530 solaris*)
14531 version_type=linux
14532 need_lib_prefix=no
14533 need_version=no
14534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14535 soname_spec='${libname}${release}${shared_ext}$major'
14536 shlibpath_var=LD_LIBRARY_PATH
14537 shlibpath_overrides_runpath=yes
14538 hardcode_into_libs=yes
14539 # ldd complains unless libraries are executable
14540 postinstall_cmds='chmod +x $lib'
14543 sunos4*)
14544 version_type=sunos
14545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14546 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14547 shlibpath_var=LD_LIBRARY_PATH
14548 shlibpath_overrides_runpath=yes
14549 if test "$with_gnu_ld" = yes; then
14550 need_lib_prefix=no
14552 need_version=yes
14555 sysv4 | sysv4.3*)
14556 version_type=linux
14557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14558 soname_spec='${libname}${release}${shared_ext}$major'
14559 shlibpath_var=LD_LIBRARY_PATH
14560 case $host_vendor in
14561 sni)
14562 shlibpath_overrides_runpath=no
14563 need_lib_prefix=no
14564 runpath_var=LD_RUN_PATH
14566 siemens)
14567 need_lib_prefix=no
14569 motorola)
14570 need_lib_prefix=no
14571 need_version=no
14572 shlibpath_overrides_runpath=no
14573 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14575 esac
14578 sysv4*MP*)
14579 if test -d /usr/nec ;then
14580 version_type=linux
14581 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14582 soname_spec='$libname${shared_ext}.$major'
14583 shlibpath_var=LD_LIBRARY_PATH
14587 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14588 version_type=freebsd-elf
14589 need_lib_prefix=no
14590 need_version=no
14591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14592 soname_spec='${libname}${release}${shared_ext}$major'
14593 shlibpath_var=LD_LIBRARY_PATH
14594 shlibpath_overrides_runpath=yes
14595 hardcode_into_libs=yes
14596 if test "$with_gnu_ld" = yes; then
14597 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14598 else
14599 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14600 case $host_os in
14601 sco3.2v5*)
14602 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14604 esac
14606 sys_lib_dlsearch_path_spec='/usr/lib'
14609 tpf*)
14610 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14611 version_type=linux
14612 need_lib_prefix=no
14613 need_version=no
14614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14615 shlibpath_var=LD_LIBRARY_PATH
14616 shlibpath_overrides_runpath=no
14617 hardcode_into_libs=yes
14620 uts4*)
14621 version_type=linux
14622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14623 soname_spec='${libname}${release}${shared_ext}$major'
14624 shlibpath_var=LD_LIBRARY_PATH
14627 # Shared libraries for VwWorks, >= 7 only at this stage
14628 # and (fpic) still incompatible with "large" code models
14629 # in a few configurations. Only for RTP mode in any case,
14630 # and upon explicit request at configure time.
14631 vxworks7*)
14632 dynamic_linker=no
14633 case ${with_multisubdir}-${enable_shared} in
14634 *large*)
14636 *mrtp*-yes)
14637 version_type=linux
14638 need_lib_prefix=no
14639 need_version=no
14640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14641 soname_spec='${libname}${release}${shared_ext}$major'
14642 dynamic_linker="$host_os module_loader"
14644 esac
14647 dynamic_linker=no
14649 esac
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14651 $as_echo "$dynamic_linker" >&6; }
14652 test "$dynamic_linker" = no && can_build_shared=no
14654 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14655 if test "$GCC" = yes; then
14656 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14659 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14660 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14662 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14663 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14704 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14705 hardcode_action_FC=
14706 if test -n "$hardcode_libdir_flag_spec_FC" ||
14707 test -n "$runpath_var_FC" ||
14708 test "X$hardcode_automatic_FC" = "Xyes" ; then
14710 # We can hardcode non-existent directories.
14711 if test "$hardcode_direct_FC" != no &&
14712 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14713 # have to relink, otherwise we might link with an installed library
14714 # when we should be linking with a yet-to-be-installed one
14715 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
14716 test "$hardcode_minus_L_FC" != no; then
14717 # Linking always hardcodes the temporary library directory.
14718 hardcode_action_FC=relink
14719 else
14720 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14721 hardcode_action_FC=immediate
14723 else
14724 # We cannot hardcode anything, or else we can only hardcode existing
14725 # directories.
14726 hardcode_action_FC=unsupported
14728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
14729 $as_echo "$hardcode_action_FC" >&6; }
14731 if test "$hardcode_action_FC" = relink ||
14732 test "$inherit_rpath_FC" = yes; then
14733 # Fast installation is not supported
14734 enable_fast_install=no
14735 elif test "$shlibpath_overrides_runpath" = yes ||
14736 test "$enable_shared" = no; then
14737 # Fast installation is not necessary
14738 enable_fast_install=needless
14747 fi # test -n "$compiler"
14749 GCC=$lt_save_GCC
14750 CC="$lt_save_CC"
14751 fi # test "$_lt_disable_FC" != yes
14753 ac_ext=c
14754 ac_cpp='$CPP $CPPFLAGS'
14755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14760 FCFLAGS="$FCFLAGS -Wall -L../libgfortran"
14762 # For libtool versioning info, format is CURRENT:REVISION:AGE
14763 libtool_VERSION=1:0:0
14766 # Check header files.
14767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14768 $as_echo_n "checking for ANSI C header files... " >&6; }
14769 if ${ac_cv_header_stdc+:} false; then :
14770 $as_echo_n "(cached) " >&6
14771 else
14772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14773 /* end confdefs.h. */
14774 #include <stdlib.h>
14775 #include <stdarg.h>
14776 #include <string.h>
14777 #include <float.h>
14780 main ()
14784 return 0;
14786 _ACEOF
14787 if ac_fn_c_try_compile "$LINENO"; then :
14788 ac_cv_header_stdc=yes
14789 else
14790 ac_cv_header_stdc=no
14792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14794 if test $ac_cv_header_stdc = yes; then
14795 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14797 /* end confdefs.h. */
14798 #include <string.h>
14800 _ACEOF
14801 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14802 $EGREP "memchr" >/dev/null 2>&1; then :
14804 else
14805 ac_cv_header_stdc=no
14807 rm -f conftest*
14811 if test $ac_cv_header_stdc = yes; then
14812 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14814 /* end confdefs.h. */
14815 #include <stdlib.h>
14817 _ACEOF
14818 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14819 $EGREP "free" >/dev/null 2>&1; then :
14821 else
14822 ac_cv_header_stdc=no
14824 rm -f conftest*
14828 if test $ac_cv_header_stdc = yes; then
14829 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14830 if test "$cross_compiling" = yes; then :
14832 else
14833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14834 /* end confdefs.h. */
14835 #include <ctype.h>
14836 #include <stdlib.h>
14837 #if ((' ' & 0x0FF) == 0x020)
14838 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14839 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14840 #else
14841 # define ISLOWER(c) \
14842 (('a' <= (c) && (c) <= 'i') \
14843 || ('j' <= (c) && (c) <= 'r') \
14844 || ('s' <= (c) && (c) <= 'z'))
14845 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14846 #endif
14848 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14850 main ()
14852 int i;
14853 for (i = 0; i < 256; i++)
14854 if (XOR (islower (i), ISLOWER (i))
14855 || toupper (i) != TOUPPER (i))
14856 return 2;
14857 return 0;
14859 _ACEOF
14860 if ac_fn_c_try_run "$LINENO"; then :
14862 else
14863 ac_cv_header_stdc=no
14865 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14866 conftest.$ac_objext conftest.beam conftest.$ac_ext
14871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14872 $as_echo "$ac_cv_header_stdc" >&6; }
14873 if test $ac_cv_header_stdc = yes; then
14875 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14880 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14881 if ${ac_cv_header_time+:} false; then :
14882 $as_echo_n "(cached) " >&6
14883 else
14884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14885 /* end confdefs.h. */
14886 #include <sys/types.h>
14887 #include <sys/time.h>
14888 #include <time.h>
14891 main ()
14893 if ((struct tm *) 0)
14894 return 0;
14896 return 0;
14898 _ACEOF
14899 if ac_fn_c_try_compile "$LINENO"; then :
14900 ac_cv_header_time=yes
14901 else
14902 ac_cv_header_time=no
14904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14907 $as_echo "$ac_cv_header_time" >&6; }
14908 if test $ac_cv_header_time = yes; then
14910 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
14915 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
14916 if ${gcc_cv_header_string+:} false; then :
14917 $as_echo_n "(cached) " >&6
14918 else
14919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14920 /* end confdefs.h. */
14921 #include <string.h>
14922 #include <strings.h>
14924 main ()
14928 return 0;
14930 _ACEOF
14931 if ac_fn_c_try_compile "$LINENO"; then :
14932 gcc_cv_header_string=yes
14933 else
14934 gcc_cv_header_string=no
14936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
14939 $as_echo "$gcc_cv_header_string" >&6; }
14940 if test $gcc_cv_header_string = yes; then
14942 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
14946 for ac_header in pthread.h unistd.h semaphore.h sys/loadavg.h sys/sysctl.h sys/time.h
14947 do :
14948 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14949 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14950 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14951 cat >>confdefs.h <<_ACEOF
14952 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14953 _ACEOF
14957 done
14960 XPCFLAGS=""
14961 case "$host" in
14962 *-*-rtems*)
14963 # RTEMS supports Pthreads, but the library is not available at GCC build time.
14965 nvptx*-*-* | amdgcn*-*-*)
14966 # NVPTX does not support Pthreads, has its own code replacement.
14967 libgomp_use_pthreads=no
14968 # NVPTX is an accelerator-only target
14969 libgomp_offloaded_only=yes
14972 # Check to see if -pthread or -lpthread is needed. Prefer the former.
14973 # In case the pthread.h system header is not found, this test will fail.
14974 CFLAGS="$CFLAGS -pthread"
14975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14976 /* end confdefs.h. */
14977 #include <pthread.h>
14978 void *g(void *d) { return NULL; }
14980 main ()
14982 pthread_t t; pthread_create(&t,NULL,g,NULL);
14984 return 0;
14986 _ACEOF
14987 if ac_fn_c_try_link "$LINENO"; then :
14988 XPCFLAGS=" -Wc,-pthread"
14989 else
14990 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
14991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14992 /* end confdefs.h. */
14993 #include <pthread.h>
14994 void *g(void *d) { return NULL; }
14996 main ()
14998 pthread_t t; pthread_create(&t,NULL,g,NULL);
15000 return 0;
15002 _ACEOF
15003 if ac_fn_c_try_link "$LINENO"; then :
15005 else
15006 as_fn_error $? "Pthreads are required to build libgomp" "$LINENO" 5
15008 rm -f core conftest.err conftest.$ac_objext \
15009 conftest$ac_exeext conftest.$ac_ext
15011 rm -f core conftest.err conftest.$ac_objext \
15012 conftest$ac_exeext conftest.$ac_ext
15013 esac
15015 if test x$libgomp_use_pthreads != xno; then
15017 $as_echo "#define LIBGOMP_USE_PTHREADS 1" >>confdefs.h
15021 if test x$libgomp_offloaded_only = xyes; then
15023 $as_echo "#define LIBGOMP_OFFLOADED_ONLY 1" >>confdefs.h
15027 if test "x$enable_offload_defaulted" = xyes; then
15029 $as_echo "#define OFFLOAD_DEFAULTED 1" >>confdefs.h
15033 # The cast to long int works around a bug in the HP C Compiler
15034 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15035 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15036 # This bug is HP SR number 8606223364.
15037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15038 $as_echo_n "checking size of void *... " >&6; }
15039 if ${ac_cv_sizeof_void_p+:} false; then :
15040 $as_echo_n "(cached) " >&6
15041 else
15042 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15044 else
15045 if test "$ac_cv_type_void_p" = yes; then
15046 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15047 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15048 as_fn_error 77 "cannot compute sizeof (void *)
15049 See \`config.log' for more details" "$LINENO" 5; }
15050 else
15051 ac_cv_sizeof_void_p=0
15056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15057 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15061 cat >>confdefs.h <<_ACEOF
15062 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15063 _ACEOF
15067 # Plugins for offload execution, configure.ac fragment. -*- mode: autoconf -*-
15069 # Copyright (C) 2014-2023 Free Software Foundation, Inc.
15071 # Contributed by Mentor Embedded.
15073 # This file is part of the GNU Offloading and Multi Processing Library
15074 # (libgomp).
15076 # Libgomp is free software; you can redistribute it and/or modify it
15077 # under the terms of the GNU General Public License as published by
15078 # the Free Software Foundation; either version 3, or (at your option)
15079 # any later version.
15081 # Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY
15082 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15083 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15084 # more details.
15086 # Under Section 7 of GPL version 3, you are granted additional
15087 # permissions described in the GCC Runtime Library Exception, version
15088 # 3.1, as published by the Free Software Foundation.
15090 # You should have received a copy of the GNU General Public License and
15091 # a copy of the GCC Runtime Library Exception along with this program;
15092 # see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
15093 # <http://www.gnu.org/licenses/>.
15095 plugin_support=yes
15096 DL_LIBS=
15098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
15099 $as_echo_n "checking for dlsym in -ldl... " >&6; }
15100 if ${ac_cv_lib_dl_dlsym+:} false; then :
15101 $as_echo_n "(cached) " >&6
15102 else
15103 ac_check_lib_save_LIBS=$LIBS
15104 LIBS="-ldl $LIBS"
15105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15106 /* end confdefs.h. */
15108 /* Override any GCC internal prototype to avoid an error.
15109 Use char because int might match the return type of a GCC
15110 builtin and then its argument prototype would still apply. */
15111 #ifdef __cplusplus
15112 extern "C"
15113 #endif
15114 char dlsym ();
15116 main ()
15118 return dlsym ();
15120 return 0;
15122 _ACEOF
15123 if ac_fn_c_try_link "$LINENO"; then :
15124 ac_cv_lib_dl_dlsym=yes
15125 else
15126 ac_cv_lib_dl_dlsym=no
15128 rm -f core conftest.err conftest.$ac_objext \
15129 conftest$ac_exeext conftest.$ac_ext
15130 LIBS=$ac_check_lib_save_LIBS
15132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
15133 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
15134 if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
15135 DL_LIBS=-ldl
15136 else
15137 plugin_support=no
15140 if test x"$plugin_support" = xyes; then
15142 $as_echo "#define PLUGIN_SUPPORT 1" >>confdefs.h
15144 elif test "x${enable_offload_targets-no}" != xno; then
15145 as_fn_error $? "Can't support offloading without support for plugins" "$LINENO" 5
15150 for ac_header in $ac_header_list
15151 do :
15152 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15153 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15155 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15156 cat >>confdefs.h <<_ACEOF
15157 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15158 _ACEOF
15162 done
15170 for ac_func in $ac_func_list
15171 do :
15172 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15173 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15174 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15175 cat >>confdefs.h <<_ACEOF
15176 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15177 _ACEOF
15180 done
15197 PLUGIN_NVPTX=0
15198 PLUGIN_GCN=0
15199 # Parse '--enable-offload-targets', figure out the corresponding libgomp
15200 # plugins, and configure to find the corresponding offload compilers.
15201 # 'offload_plugins' and 'offload_targets' will be populated in the same order.
15202 offload_plugins=
15203 offload_targets=
15206 offload_additional_options=
15207 offload_additional_lib_paths=
15210 if test x"$enable_offload_targets" != x; then
15211 for tgt in `echo $enable_offload_targets | sed -e 's#,# #g'`; do
15212 tgt_dir=`echo $tgt | grep '=' | sed 's/.*=//'`
15213 tgt=`echo $tgt | sed 's/=.*//'`
15214 tgt_plugin=
15215 case $tgt in
15216 nvptx*)
15217 case "${target}" in
15218 aarch64*-*-* | powerpc64le-*-* | x86_64-*-*)
15219 case "$ac_cv_sizeof_void_p" in
15221 # PR libgomp/65099: Currently, we only support offloading in
15222 # 64-bit configurations.
15223 PLUGIN_NVPTX=0
15226 tgt_plugin=nvptx
15227 PLUGIN_NVPTX=1
15229 esac
15231 *-*-*)
15232 # Target architecture not supported.
15233 PLUGIN_NVPTX=0
15235 esac
15237 amdgcn*)
15238 case "${target}" in
15239 x86_64-*-*)
15240 case "$ac_cv_sizeof_void_p" in
15242 PLUGIN_GCN=0
15245 tgt_plugin=gcn
15246 PLUGIN_GCN=1
15248 esac
15250 *-*-*)
15251 PLUGIN_GCN=0
15253 esac
15256 as_fn_error $? "unknown offload target specified" "$LINENO" 5
15258 esac
15259 if test x"$tgt_plugin" = x; then
15260 # Not configuring libgomp for this offload target if we're not building
15261 # the corresponding offload plugin.
15262 continue
15263 elif test x"$offload_plugins" = x; then
15264 offload_plugins=$tgt_plugin
15265 offload_targets=$tgt
15266 else
15267 offload_plugins=$offload_plugins,$tgt_plugin
15268 offload_targets=$offload_targets,$tgt
15270 # Configure additional search paths.
15271 if test x"$tgt_dir" != x; then
15272 offload_additional_options="$offload_additional_options -B$tgt_dir/\$(libexecdir:\$(exec_prefix)/%=%)/gcc/\$(target_alias)/\$(gcc_version) -B$tgt_dir/bin"
15273 offload_additional_lib_paths="$offload_additional_lib_paths:$tgt_dir/lib64:$tgt_dir/lib:$tgt_dir/lib32"
15274 else
15275 offload_additional_options="$offload_additional_options -B\$(libexecdir)/gcc/\$(target_alias)/\$(gcc_version) -B\$(bindir)"
15276 offload_additional_lib_paths="$offload_additional_lib_paths:$toolexeclibdir"
15278 done
15281 cat >>confdefs.h <<_ACEOF
15282 #define OFFLOAD_PLUGINS "$offload_plugins"
15283 _ACEOF
15285 if test $PLUGIN_NVPTX = 1; then
15286 PLUGIN_NVPTX_TRUE=
15287 PLUGIN_NVPTX_FALSE='#'
15288 else
15289 PLUGIN_NVPTX_TRUE='#'
15290 PLUGIN_NVPTX_FALSE=
15293 if test $PLUGIN_GCN = 1; then
15294 PLUGIN_GCN_TRUE=
15295 PLUGIN_GCN_FALSE='#'
15296 else
15297 PLUGIN_GCN_TRUE='#'
15298 PLUGIN_GCN_FALSE=
15303 # Check for functions needed.
15304 for ac_func in getloadavg clock_gettime strtoull
15305 do :
15306 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15307 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15308 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15309 cat >>confdefs.h <<_ACEOF
15310 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15311 _ACEOF
15314 done
15316 for ac_func in aligned_alloc posix_memalign memalign _aligned_malloc
15317 do :
15318 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15319 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15320 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15321 cat >>confdefs.h <<_ACEOF
15322 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15323 _ACEOF
15326 done
15329 # Check for broken semaphore implementation on darwin.
15330 # sem_init returns: sem_init error: Function not implemented.
15331 case "$host" in
15332 *-darwin*)
15334 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
15337 esac
15339 # RTEMS specific checks
15340 case "$host" in
15341 *-*-rtems*)
15342 ac_fn_c_check_type "$LINENO" "struct _Mutex_Control" "ac_cv_type_struct__Mutex_Control" "#include <sys/lock.h>
15344 if test "x$ac_cv_type_struct__Mutex_Control" = xyes; then :
15346 cat >>confdefs.h <<_ACEOF
15347 #define HAVE_STRUCT__MUTEX_CONTROL 1
15348 _ACEOF
15354 esac
15356 # Check whether --enable-linux-futex was given.
15357 if test "${enable_linux_futex+set}" = set; then :
15358 enableval=$enable_linux_futex;
15359 case "$enableval" in
15360 yes|no|default) ;;
15361 *) as_fn_error $? "Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
15362 esac
15364 else
15365 enable_linux_futex=default
15369 case "$target" in
15370 *-linux* | *-uclinux*)
15371 case "$enable_linux_futex" in
15372 default)
15373 # If headers don't have gettid/futex syscalls definition, then
15374 # default to no, otherwise there will be compile time failures.
15375 # Otherwise, default to yes. If we don't detect we are
15376 # compiled/linked against NPTL and not cross-compiling, check
15377 # if programs are run by default against NPTL and if not, issue
15378 # a warning.
15379 enable_linux_futex=no
15380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15381 /* end confdefs.h. */
15382 #include <sys/syscall.h>
15383 #include <unistd.h>
15384 int lk;
15386 main ()
15388 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15390 return 0;
15392 _ACEOF
15393 if ac_fn_c_try_link "$LINENO"; then :
15394 save_LIBS="$LIBS"
15395 LIBS="-lpthread $LIBS"
15396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15397 /* end confdefs.h. */
15398 #ifndef _GNU_SOURCE
15399 #define _GNU_SOURCE 1
15400 #endif
15401 #include <pthread.h>
15402 pthread_t th; void *status;
15404 main ()
15406 pthread_tryjoin_np (th, &status);
15408 return 0;
15410 _ACEOF
15411 if ac_fn_c_try_link "$LINENO"; then :
15412 enable_linux_futex=yes
15413 else
15414 if test x$cross_compiling = xno; then
15415 if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
15416 | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
15417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
15418 If so, please configure with --disable-linux-futex" >&5
15419 $as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
15420 If so, please configure with --disable-linux-futex" >&2;}
15423 enable_linux_futex=yes
15425 rm -f core conftest.err conftest.$ac_objext \
15426 conftest$ac_exeext conftest.$ac_ext
15427 LIBS="$save_LIBS"
15429 rm -f core conftest.err conftest.$ac_objext \
15430 conftest$ac_exeext conftest.$ac_ext
15432 yes)
15433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15434 /* end confdefs.h. */
15435 #include <sys/syscall.h>
15436 #include <unistd.h>
15437 int lk;
15439 main ()
15441 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15443 return 0;
15445 _ACEOF
15446 if ac_fn_c_try_link "$LINENO"; then :
15448 else
15449 as_fn_error $? "SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
15451 rm -f core conftest.err conftest.$ac_objext \
15452 conftest$ac_exeext conftest.$ac_ext
15454 esac
15457 enable_linux_futex=no
15459 esac
15460 if test x$enable_linux_futex = xyes; then
15465 # Check for pthread_{,attr_}[sg]etaffinity_np.
15466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15467 /* end confdefs.h. */
15468 #define _GNU_SOURCE
15469 #include <pthread.h>
15471 main ()
15473 cpu_set_t cpuset;
15474 pthread_attr_t attr;
15475 pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15476 if (CPU_ISSET (0, &cpuset))
15477 CPU_SET (1, &cpuset);
15478 else
15479 CPU_ZERO (&cpuset);
15480 pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15481 pthread_attr_init (&attr);
15482 pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15483 pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15485 return 0;
15487 _ACEOF
15488 if ac_fn_c_try_link "$LINENO"; then :
15490 $as_echo "#define HAVE_PTHREAD_AFFINITY_NP 1" >>confdefs.h
15493 rm -f core conftest.err conftest.$ac_objext \
15494 conftest$ac_exeext conftest.$ac_ext
15496 # At least for glibc, clock_gettime is in librt. But don't pull that
15497 # in if it still doesn't give us the function we want.
15498 if test $ac_cv_func_clock_gettime = no; then
15499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
15500 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
15501 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
15502 $as_echo_n "(cached) " >&6
15503 else
15504 ac_check_lib_save_LIBS=$LIBS
15505 LIBS="-lrt $LIBS"
15506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15507 /* end confdefs.h. */
15509 /* Override any GCC internal prototype to avoid an error.
15510 Use char because int might match the return type of a GCC
15511 builtin and then its argument prototype would still apply. */
15512 #ifdef __cplusplus
15513 extern "C"
15514 #endif
15515 char clock_gettime ();
15517 main ()
15519 return clock_gettime ();
15521 return 0;
15523 _ACEOF
15524 if ac_fn_c_try_link "$LINENO"; then :
15525 ac_cv_lib_rt_clock_gettime=yes
15526 else
15527 ac_cv_lib_rt_clock_gettime=no
15529 rm -f core conftest.err conftest.$ac_objext \
15530 conftest$ac_exeext conftest.$ac_ext
15531 LIBS=$ac_check_lib_save_LIBS
15533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
15534 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
15535 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
15536 LIBS="-lrt $LIBS"
15538 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
15544 # Check for uname.
15545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15546 /* end confdefs.h. */
15547 #include <string.h>
15548 #include <stdlib.h>
15549 #include <sys/utsname.h>
15551 main ()
15553 struct utsname buf;
15554 volatile size_t len = 0;
15555 if (!uname (buf))
15556 len = strlen (buf.nodename);
15558 return 0;
15560 _ACEOF
15561 if ac_fn_c_try_compile "$LINENO"; then :
15563 $as_echo "#define HAVE_UNAME 1" >>confdefs.h
15566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15568 # Check for gethostname.
15569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15570 /* end confdefs.h. */
15571 #include <unistd.h>
15573 main ()
15576 char buf[256];
15577 if (gethostname (buf, sizeof (buf) - 1) == 0)
15578 buf[255] = '\0';
15581 return 0;
15583 _ACEOF
15584 if ac_fn_c_try_compile "$LINENO"; then :
15586 $as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h
15589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15591 # Check for getpid.
15592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15593 /* end confdefs.h. */
15594 #include <unistd.h>
15596 main ()
15598 int pid = getpid ();
15600 return 0;
15602 _ACEOF
15603 if ac_fn_c_try_compile "$LINENO"; then :
15605 $as_echo "#define HAVE_GETPID 1" >>confdefs.h
15608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15610 # See if we support thread-local storage.
15613 # Check whether --enable-tls was given.
15614 if test "${enable_tls+set}" = set; then :
15615 enableval=$enable_tls;
15616 case "$enableval" in
15617 yes|no) ;;
15618 *) as_fn_error $? "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
15619 esac
15621 else
15622 enable_tls=yes
15626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
15627 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
15628 if ${gcc_cv_have_tls+:} false; then :
15629 $as_echo_n "(cached) " >&6
15630 else
15632 if test "$cross_compiling" = yes; then :
15633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15634 /* end confdefs.h. */
15635 __thread int a; int b; int main() { return a = b; }
15636 _ACEOF
15637 if ac_fn_c_try_link "$LINENO"; then :
15638 chktls_save_LDFLAGS="$LDFLAGS"
15639 case $host in
15640 *-*-linux* | -*-uclinuxfdpic*)
15641 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
15643 esac
15644 chktls_save_CFLAGS="$CFLAGS"
15645 CFLAGS="-fPIC $CFLAGS"
15646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15647 /* end confdefs.h. */
15648 int f() { return 0; }
15649 _ACEOF
15650 if ac_fn_c_try_link "$LINENO"; then :
15651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15652 /* end confdefs.h. */
15653 __thread int a; int b; int f() { return a = b; }
15654 _ACEOF
15655 if ac_fn_c_try_link "$LINENO"; then :
15656 gcc_cv_have_tls=yes
15657 else
15658 gcc_cv_have_tls=no
15660 rm -f core conftest.err conftest.$ac_objext \
15661 conftest$ac_exeext conftest.$ac_ext
15662 else
15663 gcc_cv_have_tls=yes
15665 rm -f core conftest.err conftest.$ac_objext \
15666 conftest$ac_exeext conftest.$ac_ext
15667 CFLAGS="$chktls_save_CFLAGS"
15668 LDFLAGS="$chktls_save_LDFLAGS"
15669 else
15670 gcc_cv_have_tls=no
15672 rm -f core conftest.err conftest.$ac_objext \
15673 conftest$ac_exeext conftest.$ac_ext
15676 else
15677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15678 /* end confdefs.h. */
15679 __thread int a; int b; int main() { return a = b; }
15680 _ACEOF
15681 if ac_fn_c_try_run "$LINENO"; then :
15682 chktls_save_LDFLAGS="$LDFLAGS"
15683 LDFLAGS="-static $LDFLAGS"
15684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15685 /* end confdefs.h. */
15686 int main() { return 0; }
15687 _ACEOF
15688 if ac_fn_c_try_link "$LINENO"; then :
15689 if test "$cross_compiling" = yes; then :
15690 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15691 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15692 as_fn_error $? "cannot run test program while cross compiling
15693 See \`config.log' for more details" "$LINENO" 5; }
15694 else
15695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15696 /* end confdefs.h. */
15697 __thread int a; int b; int main() { return a = b; }
15698 _ACEOF
15699 if ac_fn_c_try_run "$LINENO"; then :
15700 gcc_cv_have_tls=yes
15701 else
15702 gcc_cv_have_tls=no
15704 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15705 conftest.$ac_objext conftest.beam conftest.$ac_ext
15708 else
15709 gcc_cv_have_tls=yes
15711 rm -f core conftest.err conftest.$ac_objext \
15712 conftest$ac_exeext conftest.$ac_ext
15713 LDFLAGS="$chktls_save_LDFLAGS"
15714 if test $gcc_cv_have_tls = yes; then
15715 chktls_save_CFLAGS="$CFLAGS"
15716 thread_CFLAGS=failed
15717 for flag in '' '-pthread' '-lpthread'; do
15718 CFLAGS="$flag $chktls_save_CFLAGS"
15719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15720 /* end confdefs.h. */
15721 #include <pthread.h>
15722 void *g(void *d) { return NULL; }
15724 main ()
15726 pthread_t t; pthread_create(&t,NULL,g,NULL);
15728 return 0;
15730 _ACEOF
15731 if ac_fn_c_try_link "$LINENO"; then :
15732 thread_CFLAGS="$flag"
15734 rm -f core conftest.err conftest.$ac_objext \
15735 conftest$ac_exeext conftest.$ac_ext
15736 if test "X$thread_CFLAGS" != Xfailed; then
15737 break
15739 done
15740 CFLAGS="$chktls_save_CFLAGS"
15741 if test "X$thread_CFLAGS" != Xfailed; then
15742 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
15743 if test "$cross_compiling" = yes; then :
15744 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15745 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15746 as_fn_error $? "cannot run test program while cross compiling
15747 See \`config.log' for more details" "$LINENO" 5; }
15748 else
15749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15750 /* end confdefs.h. */
15751 #include <pthread.h>
15752 __thread int a;
15753 static int *volatile a_in_other_thread;
15754 static void *
15755 thread_func (void *arg)
15757 a_in_other_thread = &a;
15758 return (void *)0;
15761 main ()
15763 pthread_t thread;
15764 void *thread_retval;
15765 int *volatile a_in_main_thread;
15766 a_in_main_thread = &a;
15767 if (pthread_create (&thread, (pthread_attr_t *)0,
15768 thread_func, (void *)0))
15769 return 0;
15770 if (pthread_join (thread, &thread_retval))
15771 return 0;
15772 return (a_in_other_thread == a_in_main_thread);
15774 return 0;
15776 _ACEOF
15777 if ac_fn_c_try_run "$LINENO"; then :
15778 gcc_cv_have_tls=yes
15779 else
15780 gcc_cv_have_tls=no
15782 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15783 conftest.$ac_objext conftest.beam conftest.$ac_ext
15786 CFLAGS="$chktls_save_CFLAGS"
15789 else
15790 gcc_cv_have_tls=no
15792 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15793 conftest.$ac_objext conftest.beam conftest.$ac_ext
15797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
15798 $as_echo "$gcc_cv_have_tls" >&6; }
15799 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
15801 $as_echo "#define HAVE_TLS 1" >>confdefs.h
15805 # See if we have emulated thread-local storage.
15807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the thread-local storage support is from emutls" >&5
15808 $as_echo_n "checking whether the thread-local storage support is from emutls... " >&6; }
15809 if ${gcc_cv_use_emutls+:} false; then :
15810 $as_echo_n "(cached) " >&6
15811 else
15813 gcc_cv_use_emutls=no
15814 echo '__thread int a; int b; int main() { return a = b; }' > conftest.c
15815 if { ac_try='${CC-cc} -Werror -S -o conftest.s conftest.c 1>&5'
15816 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15817 (eval $ac_try) 2>&5
15818 ac_status=$?
15819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15820 test $ac_status = 0; }; }; then
15821 if grep __emutls_get_address conftest.s > /dev/null; then
15822 gcc_cv_use_emutls=yes
15825 rm -f conftest.*
15828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_use_emutls" >&5
15829 $as_echo "$gcc_cv_use_emutls" >&6; }
15830 if test "$gcc_cv_use_emutls" = "yes" ; then
15832 $as_echo "#define USE_EMUTLS 1" >>confdefs.h
15836 # See what sort of export controls are available.
15838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
15839 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
15840 if ${libgomp_cv_have_attribute_visibility+:} false; then :
15841 $as_echo_n "(cached) " >&6
15842 else
15844 save_CFLAGS="$CFLAGS"
15845 CFLAGS="$CFLAGS -Werror"
15846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15847 /* end confdefs.h. */
15848 void __attribute__((visibility("hidden"))) foo(void) { }
15850 main ()
15854 return 0;
15856 _ACEOF
15857 if ac_fn_c_try_compile "$LINENO"; then :
15858 libgomp_cv_have_attribute_visibility=yes
15859 else
15860 libgomp_cv_have_attribute_visibility=no
15862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15863 CFLAGS="$save_CFLAGS"
15865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_visibility" >&5
15866 $as_echo "$libgomp_cv_have_attribute_visibility" >&6; }
15867 if test $libgomp_cv_have_attribute_visibility = yes; then
15869 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
15873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
15874 $as_echo_n "checking whether the target supports dllexport... " >&6; }
15875 if ${libgomp_cv_have_attribute_dllexport+:} false; then :
15876 $as_echo_n "(cached) " >&6
15877 else
15879 save_CFLAGS="$CFLAGS"
15880 CFLAGS="$CFLAGS -Werror"
15881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15882 /* end confdefs.h. */
15883 void __attribute__((dllexport)) foo(void) { }
15885 main ()
15889 return 0;
15891 _ACEOF
15892 if ac_fn_c_try_compile "$LINENO"; then :
15893 libgomp_cv_have_attribute_dllexport=yes
15894 else
15895 libgomp_cv_have_attribute_dllexport=no
15897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15898 CFLAGS="$save_CFLAGS"
15900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_dllexport" >&5
15901 $as_echo "$libgomp_cv_have_attribute_dllexport" >&6; }
15902 if test $libgomp_cv_have_attribute_dllexport = yes; then
15904 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
15908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
15909 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
15910 if ${libgomp_cv_have_attribute_alias+:} false; then :
15911 $as_echo_n "(cached) " >&6
15912 else
15914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15915 /* end confdefs.h. */
15917 void foo(void) { }
15918 extern void bar(void) __attribute__((alias("foo")));
15920 main ()
15922 bar();
15924 return 0;
15926 _ACEOF
15927 if ac_fn_c_try_link "$LINENO"; then :
15928 libgomp_cv_have_attribute_alias=yes
15929 else
15930 libgomp_cv_have_attribute_alias=no
15932 rm -f core conftest.err conftest.$ac_objext \
15933 conftest$ac_exeext conftest.$ac_ext
15935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_alias" >&5
15936 $as_echo "$libgomp_cv_have_attribute_alias" >&6; }
15937 if test $libgomp_cv_have_attribute_alias = yes; then
15939 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
15944 # Check whether --with-gnu-ld was given.
15945 if test "${with_gnu_ld+set}" = set; then :
15946 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15947 else
15948 with_gnu_ld=no
15951 ac_prog=ld
15952 if test "$GCC" = yes; then
15953 # Check if gcc -print-prog-name=ld gives a path.
15954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15955 $as_echo_n "checking for ld used by $CC... " >&6; }
15956 case $host in
15957 *-*-mingw*)
15958 # gcc leaves a trailing carriage return which upsets mingw
15959 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15961 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15962 esac
15963 case $ac_prog in
15964 # Accept absolute paths.
15965 [\\/]* | ?:[\\/]*)
15966 re_direlt='/[^/][^/]*/\.\./'
15967 # Canonicalize the pathname of ld
15968 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15969 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15970 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15971 done
15972 test -z "$LD" && LD="$ac_prog"
15975 # If it fails, then pretend we aren't using GCC.
15976 ac_prog=ld
15979 # If it is relative, then search for the first ld in PATH.
15980 with_gnu_ld=unknown
15982 esac
15983 elif test "$with_gnu_ld" = yes; then
15984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15985 $as_echo_n "checking for GNU ld... " >&6; }
15986 else
15987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15988 $as_echo_n "checking for non-GNU ld... " >&6; }
15990 if ${lt_cv_path_LD+:} false; then :
15991 $as_echo_n "(cached) " >&6
15992 else
15993 if test -z "$LD"; then
15994 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15995 for ac_dir in $PATH; do
15996 IFS="$lt_save_ifs"
15997 test -z "$ac_dir" && ac_dir=.
15998 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15999 lt_cv_path_LD="$ac_dir/$ac_prog"
16000 # Check to see if the program is GNU ld. I'd rather use --version,
16001 # but apparently some variants of GNU ld only accept -v.
16002 # Break only if it was the GNU/non-GNU ld that we prefer.
16003 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16004 *GNU* | *'with BFD'*)
16005 test "$with_gnu_ld" != no && break
16008 test "$with_gnu_ld" != yes && break
16010 esac
16012 done
16013 IFS="$lt_save_ifs"
16014 else
16015 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16019 LD="$lt_cv_path_LD"
16020 if test -n "$LD"; then
16021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16022 $as_echo "$LD" >&6; }
16023 else
16024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16025 $as_echo "no" >&6; }
16027 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16029 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16030 if ${lt_cv_prog_gnu_ld+:} false; then :
16031 $as_echo_n "(cached) " >&6
16032 else
16033 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16034 case `$LD -v 2>&1 </dev/null` in
16035 *GNU* | *'with BFD'*)
16036 lt_cv_prog_gnu_ld=yes
16039 lt_cv_prog_gnu_ld=no
16041 esac
16043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16044 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16045 with_gnu_ld=$lt_cv_prog_gnu_ld
16053 # If we're not using GNU ld, then there's no point in even trying these
16054 # tests. Check for that first. We should have already tested for gld
16055 # by now (in libtool), but require it now just to be safe...
16056 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
16057 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
16061 # The name set by libtool depends on the version of libtool. Shame on us
16062 # for depending on an impl detail, but c'est la vie. Older versions used
16063 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
16064 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
16065 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
16066 # set (hence we're using an older libtool), then set it.
16067 if test x${with_gnu_ld+set} != xset; then
16068 if test x${ac_cv_prog_gnu_ld+set} != xset; then
16069 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
16070 with_gnu_ld=no
16071 else
16072 with_gnu_ld=$ac_cv_prog_gnu_ld
16076 # Start by getting the version number. I think the libtool test already
16077 # does some of this, but throws away the result.
16078 libgomp_ld_is_gold=no
16079 libgomp_ld_is_mold=no
16080 if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
16081 libgomp_ld_is_gold=yes
16082 elif $LD --version 2>/dev/null | grep 'mold'> /dev/null 2>&1; then
16083 libgomp_ld_is_mold=yes
16086 ldver=`$LD --version 2>/dev/null |
16087 sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
16089 libgomp_gnu_ld_version=`echo $ldver | \
16090 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
16092 # Set --gc-sections.
16093 if test "$with_gnu_ld" = "notbroken"; then
16094 # GNU ld it is! Joy and bunny rabbits!
16096 # All these tests are for C++; save the language and the compiler flags.
16097 # Need to do this so that g++ won't try to link in libstdc++
16098 ac_test_CFLAGS="${CFLAGS+set}"
16099 ac_save_CFLAGS="$CFLAGS"
16100 CFLAGS='-x c++ -Wl,--gc-sections'
16102 # Check for -Wl,--gc-sections
16103 # XXX This test is broken at the moment, as symbols required for linking
16104 # are now in libsupc++ (not built yet). In addition, this test has
16105 # cored on solaris in the past. In addition, --gc-sections doesn't
16106 # really work at the moment (keeps on discarding used sections, first
16107 # .eh_frame and now some of the glibc sections for iconv).
16108 # Bzzzzt. Thanks for playing, maybe next time.
16109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
16110 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
16111 if test "$cross_compiling" = yes; then :
16112 ac_sectionLDflags=yes
16113 else
16114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16115 /* end confdefs.h. */
16117 int main(void)
16119 try { throw 1; }
16120 catch (...) { };
16121 return 0;
16124 _ACEOF
16125 if ac_fn_c_try_run "$LINENO"; then :
16126 ac_sectionLDflags=yes
16127 else
16128 ac_sectionLDflags=no
16130 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16131 conftest.$ac_objext conftest.beam conftest.$ac_ext
16134 if test "$ac_test_CFLAGS" = set; then
16135 CFLAGS="$ac_save_CFLAGS"
16136 else
16137 # this is the suspicious part
16138 CFLAGS=''
16140 if test "$ac_sectionLDflags" = "yes"; then
16141 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
16143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
16144 $as_echo "$ac_sectionLDflags" >&6; }
16147 # Set linker optimization flags.
16148 if test x"$with_gnu_ld" = x"yes"; then
16149 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
16157 # Check whether --enable-symvers was given.
16158 if test "${enable_symvers+set}" = set; then :
16159 enableval=$enable_symvers;
16160 case "$enableval" in
16161 yes|no|gnu*|sun) ;;
16162 *) as_fn_error $? "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
16163 esac
16165 else
16166 enable_symvers=yes
16171 # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
16172 # don't know enough about $LD to do tricks...
16175 # Turn a 'yes' into a suitable default.
16176 if test x$enable_symvers = xyes ; then
16177 # FIXME The following test is too strict, in theory.
16178 if test $enable_shared = no || test "x$LD" = x; then
16179 enable_symvers=no
16180 else
16181 if test $with_gnu_ld = yes ; then
16182 enable_symvers=gnu
16183 else
16184 case ${target_os} in
16185 # Sun symbol versioning exists since Solaris 2.5.
16186 solaris2.[5-9]* | solaris2.1[0-9]*)
16187 enable_symvers=sun ;;
16189 enable_symvers=no ;;
16190 esac
16195 # Check if 'sun' was requested on non-Solaris 2 platforms.
16196 if test x$enable_symvers = xsun ; then
16197 case ${target_os} in
16198 solaris2*)
16199 # All fine.
16202 # Unlikely to work.
16203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
16204 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
16205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
16206 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
16207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16208 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16209 enable_symvers=no
16211 esac
16214 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
16215 if test $enable_symvers != no; then
16216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
16217 $as_echo_n "checking for shared libgcc... " >&6; }
16218 ac_save_CFLAGS="$CFLAGS"
16219 CFLAGS=' -lgcc_s'
16220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16221 /* end confdefs.h. */
16224 main ()
16226 return 0;
16228 return 0;
16230 _ACEOF
16231 if ac_fn_c_try_link "$LINENO"; then :
16232 libgomp_shared_libgcc=yes
16233 else
16234 libgomp_shared_libgcc=no
16236 rm -f core conftest.err conftest.$ac_objext \
16237 conftest$ac_exeext conftest.$ac_ext
16238 CFLAGS="$ac_save_CFLAGS"
16239 if test $libgomp_shared_libgcc = no; then
16240 cat > conftest.c <<EOF
16241 int main (void) { return 0; }
16243 libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
16244 -shared -shared-libgcc -o conftest.so \
16245 conftest.c -v 2>&1 >/dev/null \
16246 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
16247 rm -f conftest.c conftest.so
16248 if test x${libgomp_libgcc_s_suffix+set} = xset; then
16249 CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix"
16250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16251 /* end confdefs.h. */
16254 main ()
16256 return 0;
16258 return 0;
16260 _ACEOF
16261 if ac_fn_c_try_link "$LINENO"; then :
16262 libgomp_shared_libgcc=yes
16264 rm -f core conftest.err conftest.$ac_objext \
16265 conftest$ac_exeext conftest.$ac_ext
16266 CFLAGS="$ac_save_CFLAGS"
16269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_shared_libgcc" >&5
16270 $as_echo "$libgomp_shared_libgcc" >&6; }
16273 # For GNU ld, we need at least this version. The format is described in
16274 # LIBGOMP_CHECK_LINKER_FEATURES above.
16275 libgomp_min_gnu_ld_version=21400
16276 # XXXXXXXXXXX libgomp_gnu_ld_version=21390
16278 # Check to see if unspecified "yes" value can win, given results above.
16279 # Change "yes" into either "no" or a style name.
16280 if test $enable_symvers != no && test $libgomp_shared_libgcc = yes; then
16281 if test $with_gnu_ld = yes; then
16282 if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
16283 enable_symvers=gnu
16284 elif test $libgomp_ld_is_gold = yes ; then
16285 enable_symvers=gnu
16286 elif test $libgomp_ld_is_mold = yes ; then
16287 enable_symvers=gnu
16288 else
16289 # The right tools, the right setup, but too old. Fallbacks?
16290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
16291 $as_echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
16292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
16293 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
16294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
16295 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
16296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
16297 $as_echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
16298 if test $libgomp_gnu_ld_version -ge 21200 ; then
16299 # Globbing fix is present, proper block support is not.
16300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16301 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16302 enable_symvers=no
16303 else
16304 # 2.11 or older.
16305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16306 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16307 enable_symvers=no
16310 elif test $enable_symvers = sun; then
16311 : All interesting versions of Sun ld support sun style symbol versioning.
16312 else
16313 # just fail for now
16314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
16315 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
16316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
16317 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
16318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
16319 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
16320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16321 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16322 enable_symvers=no
16326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports .symver directive" >&5
16327 $as_echo_n "checking whether the target supports .symver directive... " >&6; }
16328 if ${libgomp_cv_have_as_symver_directive+:} false; then :
16329 $as_echo_n "(cached) " >&6
16330 else
16332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16333 /* end confdefs.h. */
16334 void foo (void); __asm (".symver foo, bar@SYMVER");
16336 main ()
16340 return 0;
16342 _ACEOF
16343 if ac_fn_c_try_compile "$LINENO"; then :
16344 libgomp_cv_have_as_symver_directive=yes
16345 else
16346 libgomp_cv_have_as_symver_directive=no
16348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_as_symver_directive" >&5
16351 $as_echo "$libgomp_cv_have_as_symver_directive" >&6; }
16352 if test $libgomp_cv_have_as_symver_directive = yes; then
16354 $as_echo "#define HAVE_AS_SYMVER_DIRECTIVE 1" >>confdefs.h
16358 if test $enable_symvers != no; then
16359 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=
16360 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#'
16361 else
16362 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#'
16363 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=
16366 if test $enable_symvers = gnu; then
16367 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE=
16368 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
16369 else
16370 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
16371 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE=
16374 if test $enable_symvers = sun; then
16375 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE=
16376 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
16377 else
16378 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
16379 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE=
16382 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
16383 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
16385 if test $enable_symvers != no ; then
16386 case ${target_os} in
16387 # The Solaris 2 runtime linker doesn't support the GNU extension of
16388 # binding the same symbol to different versions
16389 solaris2*)
16391 # Other platforms with GNU symbol versioning (GNU/Linux, more?) do.
16394 $as_echo "#define HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT 1" >>confdefs.h
16397 esac
16401 if test $enable_symvers = gnu; then
16403 $as_echo "#define LIBGOMP_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
16407 # Determine cpu count to limit testsuite parallelism.
16408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the number of available CPUs" >&5
16409 $as_echo_n "checking the number of available CPUs... " >&6; }
16410 CPU_COUNT="0"
16412 # Try generic methods
16414 # 'getconf' is POSIX utility, but '_NPROCESSORS_ONLN' and
16415 # 'NPROCESSORS_ONLN' are platform-specific
16416 command -v getconf >/dev/null 2>&1 && \
16417 CPU_COUNT=`getconf _NPROCESSORS_ONLN 2>/dev/null || getconf NPROCESSORS_ONLN 2>/dev/null` || CPU_COUNT="0"
16418 if test "$CPU_COUNT" -gt "0" 2>/dev/null || ! command -v nproc >/dev/null 2>&1; then :
16419 : # empty
16420 else
16421 # 'nproc' is part of GNU Coreutils and is widely available
16422 CPU_COUNT=`OMP_NUM_THREADS='' nproc 2>/dev/null` || CPU_COUNT=`nproc 2>/dev/null` || CPU_COUNT="0"
16425 if test "$CPU_COUNT" -gt "0" 2>/dev/null; then :
16426 : # empty
16427 else
16428 # Try platform-specific preferred methods
16429 case $host_os in #(
16430 *linux*) :
16431 CPU_COUNT=`lscpu -p 2>/dev/null | $EGREP -e '^[0-9]+,' -c` || CPU_COUNT="0" ;; #(
16432 *darwin*) :
16433 CPU_COUNT=`sysctl -n hw.logicalcpu 2>/dev/null` || CPU_COUNT="0" ;; #(
16434 freebsd*) :
16435 command -v sysctl >/dev/null 2>&1 && CPU_COUNT=`sysctl -n kern.smp.cpus 2>/dev/null` || CPU_COUNT="0" ;; #(
16436 netbsd*) :
16437 command -v sysctl >/dev/null 2>&1 && CPU_COUNT=`sysctl -n hw.ncpuonline 2>/dev/null` || CPU_COUNT="0" ;; #(
16438 solaris*) :
16439 command -v psrinfo >/dev/null 2>&1 && CPU_COUNT=`psrinfo 2>/dev/null | $EGREP -e '^[0-9].*on-line' -c 2>/dev/null` || CPU_COUNT="0" ;; #(
16440 mingw*) :
16441 CPU_COUNT=`ls -qpU1 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/ 2>/dev/null | $EGREP -e '^[0-9]+/' -c` || CPU_COUNT="0" ;; #(
16442 msys*) :
16443 CPU_COUNT=`ls -qpU1 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/ 2>/dev/null | $EGREP -e '^[0-9]+/' -c` || CPU_COUNT="0" ;; #(
16444 cygwin*) :
16445 CPU_COUNT=`ls -qpU1 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/ 2>/dev/null | $EGREP -e '^[0-9]+/' -c` || CPU_COUNT="0" ;; #(
16446 *) :
16448 esac
16450 if test "$CPU_COUNT" -gt "0" 2>/dev/null || ! command -v sysctl >/dev/null 2>&1; then :
16451 : # empty
16452 else
16453 # Try less preferred generic method
16454 # 'hw.ncpu' exist on many platforms, but not on GNU/Linux
16455 CPU_COUNT=`sysctl -n hw.ncpu 2>/dev/null` || CPU_COUNT="0"
16458 if test "$CPU_COUNT" -gt "0" 2>/dev/null; then :
16459 : # empty
16460 else
16461 # Try platform-specific fallback methods
16462 # They can be less accurate and slower then preferred methods
16463 case $host_os in #(
16464 *linux*) :
16465 CPU_COUNT=`$EGREP -e '^processor' -c /proc/cpuinfo 2>/dev/null` || CPU_COUNT="0" ;; #(
16466 *darwin*) :
16467 CPU_COUNT=`system_profiler SPHardwareDataType 2>/dev/null | $EGREP -i -e 'number of cores:'|cut -d : -f 2 -s|tr -d ' '` || CPU_COUNT="0" ;; #(
16468 freebsd*) :
16469 CPU_COUNT=`dmesg 2>/dev/null| $EGREP -e '^cpu[0-9]+: '|sort -u|$EGREP -e '^' -c` || CPU_COUNT="0" ;; #(
16470 netbsd*) :
16471 CPU_COUNT=`command -v cpuctl >/dev/null 2>&1 && cpuctl list 2>/dev/null| $EGREP -e '^[0-9]+ .* online ' -c` || \
16472 CPU_COUNT=`dmesg 2>/dev/null| $EGREP -e '^cpu[0-9]+ at'|sort -u|$EGREP -e '^' -c` || CPU_COUNT="0" ;; #(
16473 solaris*) :
16474 command -v kstat >/dev/null 2>&1 && CPU_COUNT=`kstat -m cpu_info -s state -p 2>/dev/null | $EGREP -c -e 'on-line'` || \
16475 CPU_COUNT=`kstat -m cpu_info 2>/dev/null | $EGREP -c -e 'module: cpu_info'` || CPU_COUNT="0" ;; #(
16476 mingw*) :
16477 if CPU_COUNT=`reg query 'HKLM\\Hardware\\Description\\System\\CentralProcessor' 2>/dev/null | $EGREP -e '\\\\[0-9]+$' -c`; then :
16478 : # empty
16479 else
16480 test "$NUMBER_OF_PROCESSORS" -gt "0" 2>/dev/null && CPU_COUNT="$NUMBER_OF_PROCESSORS"
16481 fi ;; #(
16482 msys*) :
16483 test "$NUMBER_OF_PROCESSORS" -gt "0" 2>/dev/null && CPU_COUNT="$NUMBER_OF_PROCESSORS" ;; #(
16484 cygwin*) :
16485 test "$NUMBER_OF_PROCESSORS" -gt "0" 2>/dev/null && CPU_COUNT="$NUMBER_OF_PROCESSORS" ;; #(
16486 *) :
16488 esac
16490 if test "x$CPU_COUNT" != "x0" && test "$CPU_COUNT" -gt 0 2>/dev/null; then :
16491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPU_COUNT" >&5
16492 $as_echo "$CPU_COUNT" >&6; }
16494 else
16495 CPU_COUNT="1"
16496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to detect (assuming 1)" >&5
16497 $as_echo "unable to detect (assuming 1)" >&6; }
16502 for ac_prog in flock
16504 # Extract the first word of "$ac_prog", so it can be a program name with args.
16505 set dummy $ac_prog; ac_word=$2
16506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16507 $as_echo_n "checking for $ac_word... " >&6; }
16508 if ${ac_cv_prog_FLOCK+:} false; then :
16509 $as_echo_n "(cached) " >&6
16510 else
16511 if test -n "$FLOCK"; then
16512 ac_cv_prog_FLOCK="$FLOCK" # Let the user override the test.
16513 else
16514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16515 for as_dir in $PATH
16517 IFS=$as_save_IFS
16518 test -z "$as_dir" && as_dir=.
16519 for ac_exec_ext in '' $ac_executable_extensions; do
16520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16521 ac_cv_prog_FLOCK="$ac_prog"
16522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16523 break 2
16525 done
16526 done
16527 IFS=$as_save_IFS
16531 FLOCK=$ac_cv_prog_FLOCK
16532 if test -n "$FLOCK"; then
16533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLOCK" >&5
16534 $as_echo "$FLOCK" >&6; }
16535 else
16536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16537 $as_echo "no" >&6; }
16541 test -n "$FLOCK" && break
16542 done
16545 # Get target configury.
16546 . ${srcdir}/configure.tgt
16547 CFLAGS="$save_CFLAGS $XCFLAGS"
16549 # Check for __sync_val_compare_and_swap, but only after the target has
16550 # had a chance to set XCFLAGS.
16552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
16553 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
16554 if ${libgomp_cv_have_sync_builtins+:} false; then :
16555 $as_echo_n "(cached) " >&6
16556 else
16558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16559 /* end confdefs.h. */
16562 main ()
16564 int foo; __sync_val_compare_and_swap(&foo, 0, 1);
16566 return 0;
16568 _ACEOF
16569 if ac_fn_c_try_link "$LINENO"; then :
16570 libgomp_cv_have_sync_builtins=yes
16571 else
16572 libgomp_cv_have_sync_builtins=no
16574 rm -f core conftest.err conftest.$ac_objext \
16575 conftest$ac_exeext conftest.$ac_ext
16577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_sync_builtins" >&5
16578 $as_echo "$libgomp_cv_have_sync_builtins" >&6; }
16579 if test $libgomp_cv_have_sync_builtins = yes; then
16581 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
16585 XCFLAGS="$XCFLAGS$XPCFLAGS"
16587 # Add CET specific flags if CET is enabled
16588 # Check whether --enable-cet was given.
16589 if test "${enable_cet+set}" = set; then :
16590 enableval=$enable_cet;
16591 case "$enableval" in
16592 yes|no|auto) ;;
16593 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
16594 esac
16596 else
16597 enable_cet=auto
16601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
16602 $as_echo_n "checking for CET support... " >&6; }
16604 # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
16605 case "$host" in
16606 i[34567]86-*-linux* | x86_64-*-linux*)
16607 case "$enable_cet" in
16608 auto)
16609 # Check if target supports multi-byte NOPs
16610 # and if compiler and assembler support CET insn.
16611 cet_save_CFLAGS="$CFLAGS"
16612 CFLAGS="$CFLAGS -fcf-protection"
16613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16614 /* end confdefs.h. */
16617 main ()
16620 #if !defined(__SSE2__)
16621 #error target does not support multi-byte NOPs
16622 #else
16623 asm ("setssbsy");
16624 #endif
16627 return 0;
16629 _ACEOF
16630 if ac_fn_c_try_compile "$LINENO"; then :
16631 enable_cet=yes
16632 else
16633 enable_cet=no
16635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16636 CFLAGS="$cet_save_CFLAGS"
16638 yes)
16639 # Check if assembler supports CET.
16640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16641 /* end confdefs.h. */
16644 main ()
16646 asm ("setssbsy");
16648 return 0;
16650 _ACEOF
16651 if ac_fn_c_try_compile "$LINENO"; then :
16653 else
16654 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
16656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16658 esac
16661 enable_cet=no
16663 esac
16664 if test x$enable_cet = xyes; then
16665 CET_FLAGS="-fcf-protection -mshstk"
16666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16667 $as_echo "yes" >&6; }
16668 else
16669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16670 $as_echo "no" >&6; }
16673 XCFLAGS="$XCFLAGS $CET_FLAGS"
16674 FCFLAGS="$FCFLAGS $CET_FLAGS"
16680 # Conditionalize the makefile for this target machine.
16681 tmake_file_=
16682 for f in ${tmake_file}
16684 if test -f ${srcdir}/config/$f
16685 then
16686 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
16688 done
16689 tmake_file="${tmake_file_}"
16692 # Cleanup and exit.
16693 CFLAGS="$save_CFLAGS"
16694 cat >confcache <<\_ACEOF
16695 # This file is a shell script that caches the results of configure
16696 # tests run on this system so they can be shared between configure
16697 # scripts and configure runs, see configure's option --config-cache.
16698 # It is not useful on other systems. If it contains results you don't
16699 # want to keep, you may remove or edit it.
16701 # config.status only pays attention to the cache file if you give it
16702 # the --recheck option to rerun configure.
16704 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16705 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16706 # following values.
16708 _ACEOF
16710 # The following way of writing the cache mishandles newlines in values,
16711 # but we know of no workaround that is simple, portable, and efficient.
16712 # So, we kill variables containing newlines.
16713 # Ultrix sh set writes to stderr and can't be redirected directly,
16714 # and sets the high bit in the cache file unless we assign to the vars.
16716 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16717 eval ac_val=\$$ac_var
16718 case $ac_val in #(
16719 *${as_nl}*)
16720 case $ac_var in #(
16721 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16722 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16723 esac
16724 case $ac_var in #(
16725 _ | IFS | as_nl) ;; #(
16726 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16727 *) { eval $ac_var=; unset $ac_var;} ;;
16728 esac ;;
16729 esac
16730 done
16732 (set) 2>&1 |
16733 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16734 *${as_nl}ac_space=\ *)
16735 # `set' does not quote correctly, so add quotes: double-quote
16736 # substitution turns \\\\ into \\, and sed turns \\ into \.
16737 sed -n \
16738 "s/'/'\\\\''/g;
16739 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16740 ;; #(
16742 # `set' quotes correctly as required by POSIX, so do not add quotes.
16743 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16745 esac |
16746 sort
16748 sed '
16749 /^ac_cv_env_/b end
16750 t clear
16751 :clear
16752 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16753 t end
16754 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16755 :end' >>confcache
16756 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16757 if test -w "$cache_file"; then
16758 if test "x$cache_file" != "x/dev/null"; then
16759 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16760 $as_echo "$as_me: updating cache $cache_file" >&6;}
16761 if test ! -f "$cache_file" || test -h "$cache_file"; then
16762 cat confcache >"$cache_file"
16763 else
16764 case $cache_file in #(
16765 */* | ?:*)
16766 mv -f confcache "$cache_file"$$ &&
16767 mv -f "$cache_file"$$ "$cache_file" ;; #(
16769 mv -f confcache "$cache_file" ;;
16770 esac
16773 else
16774 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16775 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16778 rm -f confcache
16780 if test ${multilib} = yes; then
16781 multilib_arg="--enable-multilib"
16782 else
16783 multilib_arg=
16786 # Set up the set of libraries that we need to link against for libgomp.
16787 # Note that the GOMP_SELF_SPEC in gcc.c may force -pthread,
16788 # which will force linkage against -lpthread (or equivalent for the system).
16789 # That's not 100% ideal, but about the best we can do easily.
16790 if test $enable_shared = yes; then
16791 link_gomp="-lgomp %{static: $LIBS}"
16792 else
16793 link_gomp="-lgomp $LIBS"
16797 if test "$ac_cv_fc_compiler_gnu" = yes; then
16798 USE_FORTRAN_TRUE=
16799 USE_FORTRAN_FALSE='#'
16800 else
16801 USE_FORTRAN_TRUE='#'
16802 USE_FORTRAN_FALSE=
16806 # ??? 2006-01-24: Paulo committed to asking autoconf folk to document
16807 # and export AC_COMPUTE_INT. If that happens, then we'll need to remove
16808 # the underscore here and update the PREREQ. If it doesn't, then we'll
16809 # need to copy this macro to our acinclude.m4.
16810 save_CFLAGS="$CFLAGS"
16811 for i in $config_path; do
16812 if test -f $srcdir/config/$i/omp-lock.h; then
16813 CFLAGS="$CFLAGS -include confdefs.h -include $srcdir/config/$i/omp-lock.h"
16814 break
16816 done
16818 if ac_fn_c_compute_int "$LINENO" "sizeof (__INTPTR_TYPE__)" "INTPTR_T_KIND" ""; then :
16823 if ac_fn_c_compute_int "$LINENO" "sizeof (__int128)" "OMP_INT128_SIZE" ""; then :
16825 else
16826 OMP_INT128_SIZE=0
16830 if ac_fn_c_compute_int "$LINENO" "2*sizeof (__INTPTR_TYPE__)" "OMP_DEPEND_KIND" ""; then :
16832 else
16833 OMP_DEPEND_KIND=0
16837 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_t)" "OMP_LOCK_SIZE" ""; then :
16839 else
16840 as_fn_error $? "unsupported system, cannot find sizeof (omp_lock_t)" "$LINENO" 5
16844 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_t)" "OMP_LOCK_ALIGN" ""; then :
16849 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_t)" "OMP_NEST_LOCK_SIZE" ""; then :
16854 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_t)" "OMP_NEST_LOCK_ALIGN" ""; then :
16859 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_25_t)" "OMP_LOCK_25_SIZE" ""; then :
16861 else
16862 as_fn_error $? "unsupported system, cannot find sizeof (omp_lock_25_t)" "$LINENO" 5
16866 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_25_t)" "OMP_LOCK_25_ALIGN" ""; then :
16871 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_SIZE" ""; then :
16876 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_ALIGN" ""; then :
16882 # If the lock fits in an integer, then arrange for Fortran to use that
16883 # integer. If it doesn't, then arrange for Fortran to use a pointer.
16884 # Except that we don't have a way at present to multi-lib the installed
16885 # Fortran modules, so we assume 8 bytes for pointers, regardless of the
16886 # actual target.
16887 OMP_LOCK_KIND=$OMP_LOCK_SIZE
16888 OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE
16889 if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
16890 OMP_LOCK_KIND=8
16892 if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
16893 OMP_NEST_LOCK_KIND=8
16895 OMP_LOCK_25_KIND=$OMP_LOCK_25_SIZE
16896 OMP_NEST_LOCK_25_KIND=$OMP_NEST_LOCK_25_SIZE
16897 if test $OMP_LOCK_25_SIZE -gt 8 || test $OMP_LOCK_25_ALIGN -gt $OMP_LOCK_25_SIZE; then
16898 OMP_LOCK_25_KIND=8
16900 if test $OMP_NEST_LOCK_25_SIZE -gt 8 || test $OMP_NEST_LOCK_25_ALIGN -gt $OMP_NEST_LOCK_25_SIZE; then
16901 OMP_NEST_LOCK_25_KIND=8
16903 if test "$ac_cv_fc_compiler_gnu" = yes; then
16904 if test $OMP_DEPEND_KIND -eq 16; then
16905 if test $OMP_INT128_SIZE -ne 16; then
16906 as_fn_error $? "unsupported system, cannot find Fortran int kind=16, needed for omp_depend_kind" "$LINENO" 5
16908 else
16909 if test $OMP_DEPEND_KIND -ne 8; then
16910 as_fn_error $? "unsupported system, cannot find Fortran integer kind for omp_depend_kind" "$LINENO" 5
16929 CFLAGS="$save_CFLAGS"
16931 # Determine what GCC version number to use in filesystem paths.
16933 get_gcc_base_ver="cat"
16935 # Check whether --with-gcc-major-version-only was given.
16936 if test "${with_gcc_major_version_only+set}" = set; then :
16937 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
16938 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
16946 ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
16948 ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
16950 ac_config_files="$ac_config_files testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in"
16952 ac_config_files="$ac_config_files testsuite/libgomp-site-extra.exp"
16954 cat >confcache <<\_ACEOF
16955 # This file is a shell script that caches the results of configure
16956 # tests run on this system so they can be shared between configure
16957 # scripts and configure runs, see configure's option --config-cache.
16958 # It is not useful on other systems. If it contains results you don't
16959 # want to keep, you may remove or edit it.
16961 # config.status only pays attention to the cache file if you give it
16962 # the --recheck option to rerun configure.
16964 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16965 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16966 # following values.
16968 _ACEOF
16970 # The following way of writing the cache mishandles newlines in values,
16971 # but we know of no workaround that is simple, portable, and efficient.
16972 # So, we kill variables containing newlines.
16973 # Ultrix sh set writes to stderr and can't be redirected directly,
16974 # and sets the high bit in the cache file unless we assign to the vars.
16976 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16977 eval ac_val=\$$ac_var
16978 case $ac_val in #(
16979 *${as_nl}*)
16980 case $ac_var in #(
16981 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16982 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16983 esac
16984 case $ac_var in #(
16985 _ | IFS | as_nl) ;; #(
16986 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16987 *) { eval $ac_var=; unset $ac_var;} ;;
16988 esac ;;
16989 esac
16990 done
16992 (set) 2>&1 |
16993 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16994 *${as_nl}ac_space=\ *)
16995 # `set' does not quote correctly, so add quotes: double-quote
16996 # substitution turns \\\\ into \\, and sed turns \\ into \.
16997 sed -n \
16998 "s/'/'\\\\''/g;
16999 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17000 ;; #(
17002 # `set' quotes correctly as required by POSIX, so do not add quotes.
17003 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17005 esac |
17006 sort
17008 sed '
17009 /^ac_cv_env_/b end
17010 t clear
17011 :clear
17012 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17013 t end
17014 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17015 :end' >>confcache
17016 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17017 if test -w "$cache_file"; then
17018 if test "x$cache_file" != "x/dev/null"; then
17019 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17020 $as_echo "$as_me: updating cache $cache_file" >&6;}
17021 if test ! -f "$cache_file" || test -h "$cache_file"; then
17022 cat confcache >"$cache_file"
17023 else
17024 case $cache_file in #(
17025 */* | ?:*)
17026 mv -f confcache "$cache_file"$$ &&
17027 mv -f "$cache_file"$$ "$cache_file" ;; #(
17029 mv -f confcache "$cache_file" ;;
17030 esac
17033 else
17034 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17035 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17038 rm -f confcache
17040 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17041 # Let make expand exec_prefix.
17042 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17044 DEFS=-DHAVE_CONFIG_H
17046 ac_libobjs=
17047 ac_ltlibobjs=
17049 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17050 # 1. Remove the extension, and $U if already installed.
17051 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17052 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17053 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17054 # will be set to the directory where LIBOBJS objects are built.
17055 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17056 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17057 done
17058 LIBOBJS=$ac_libobjs
17060 LTLIBOBJS=$ac_ltlibobjs
17063 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
17064 as_fn_error $? "conditional \"GENINSRC\" was never defined.
17065 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17068 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17069 if test -n "$am_sleep_pid"; then
17070 # Hide warnings about reused PIDs.
17071 wait $am_sleep_pid 2>/dev/null
17073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17074 $as_echo "done" >&6; }
17075 if test -n "$EXEEXT"; then
17076 am__EXEEXT_TRUE=
17077 am__EXEEXT_FALSE='#'
17078 else
17079 am__EXEEXT_TRUE='#'
17080 am__EXEEXT_FALSE=
17083 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17084 as_fn_error $? "conditional \"AMDEP\" was never defined.
17085 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17087 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17088 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17089 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17091 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
17092 as_fn_error $? "conditional \"BUILD_INFO\" was never defined.
17093 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17095 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17096 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17097 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17099 if test -z "${PLUGIN_NVPTX_TRUE}" && test -z "${PLUGIN_NVPTX_FALSE}"; then
17100 as_fn_error $? "conditional \"PLUGIN_NVPTX\" was never defined.
17101 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17103 if test -z "${PLUGIN_GCN_TRUE}" && test -z "${PLUGIN_GCN_FALSE}"; then
17104 as_fn_error $? "conditional \"PLUGIN_GCN\" was never defined.
17105 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17107 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
17108 as_fn_error $? "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
17109 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17111 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
17112 as_fn_error $? "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
17113 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17115 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
17116 as_fn_error $? "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
17117 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17119 if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
17120 as_fn_error $? "conditional \"USE_FORTRAN\" was never defined.
17121 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17124 : "${CONFIG_STATUS=./config.status}"
17125 ac_write_fail=0
17126 ac_clean_files_save=$ac_clean_files
17127 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17128 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17129 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17130 as_write_fail=0
17131 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17132 #! $SHELL
17133 # Generated by $as_me.
17134 # Run this file to recreate the current configuration.
17135 # Compiler output produced by configure, useful for debugging
17136 # configure, is in config.log if it exists.
17138 debug=false
17139 ac_cs_recheck=false
17140 ac_cs_silent=false
17142 SHELL=\${CONFIG_SHELL-$SHELL}
17143 export SHELL
17144 _ASEOF
17145 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17146 ## -------------------- ##
17147 ## M4sh Initialization. ##
17148 ## -------------------- ##
17150 # Be more Bourne compatible
17151 DUALCASE=1; export DUALCASE # for MKS sh
17152 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17153 emulate sh
17154 NULLCMD=:
17155 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17156 # is contrary to our usage. Disable this feature.
17157 alias -g '${1+"$@"}'='"$@"'
17158 setopt NO_GLOB_SUBST
17159 else
17160 case `(set -o) 2>/dev/null` in #(
17161 *posix*) :
17162 set -o posix ;; #(
17163 *) :
17165 esac
17169 as_nl='
17171 export as_nl
17172 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17173 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17174 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17175 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17176 # Prefer a ksh shell builtin over an external printf program on Solaris,
17177 # but without wasting forks for bash or zsh.
17178 if test -z "$BASH_VERSION$ZSH_VERSION" \
17179 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17180 as_echo='print -r --'
17181 as_echo_n='print -rn --'
17182 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17183 as_echo='printf %s\n'
17184 as_echo_n='printf %s'
17185 else
17186 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17187 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17188 as_echo_n='/usr/ucb/echo -n'
17189 else
17190 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17191 as_echo_n_body='eval
17192 arg=$1;
17193 case $arg in #(
17194 *"$as_nl"*)
17195 expr "X$arg" : "X\\(.*\\)$as_nl";
17196 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17197 esac;
17198 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17200 export as_echo_n_body
17201 as_echo_n='sh -c $as_echo_n_body as_echo'
17203 export as_echo_body
17204 as_echo='sh -c $as_echo_body as_echo'
17207 # The user is always right.
17208 if test "${PATH_SEPARATOR+set}" != set; then
17209 PATH_SEPARATOR=:
17210 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17211 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17212 PATH_SEPARATOR=';'
17217 # IFS
17218 # We need space, tab and new line, in precisely that order. Quoting is
17219 # there to prevent editors from complaining about space-tab.
17220 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17221 # splitting by setting IFS to empty value.)
17222 IFS=" "" $as_nl"
17224 # Find who we are. Look in the path if we contain no directory separator.
17225 as_myself=
17226 case $0 in #((
17227 *[\\/]* ) as_myself=$0 ;;
17228 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17229 for as_dir in $PATH
17231 IFS=$as_save_IFS
17232 test -z "$as_dir" && as_dir=.
17233 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17234 done
17235 IFS=$as_save_IFS
17238 esac
17239 # We did not find ourselves, most probably we were run as `sh COMMAND'
17240 # in which case we are not to be found in the path.
17241 if test "x$as_myself" = x; then
17242 as_myself=$0
17244 if test ! -f "$as_myself"; then
17245 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17246 exit 1
17249 # Unset variables that we do not need and which cause bugs (e.g. in
17250 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17251 # suppresses any "Segmentation fault" message there. '((' could
17252 # trigger a bug in pdksh 5.2.14.
17253 for as_var in BASH_ENV ENV MAIL MAILPATH
17254 do eval test x\${$as_var+set} = xset \
17255 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17256 done
17257 PS1='$ '
17258 PS2='> '
17259 PS4='+ '
17261 # NLS nuisances.
17262 LC_ALL=C
17263 export LC_ALL
17264 LANGUAGE=C
17265 export LANGUAGE
17267 # CDPATH.
17268 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17271 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17272 # ----------------------------------------
17273 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17274 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17275 # script with STATUS, using 1 if that was 0.
17276 as_fn_error ()
17278 as_status=$1; test $as_status -eq 0 && as_status=1
17279 if test "$4"; then
17280 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17281 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17283 $as_echo "$as_me: error: $2" >&2
17284 as_fn_exit $as_status
17285 } # as_fn_error
17288 # as_fn_set_status STATUS
17289 # -----------------------
17290 # Set $? to STATUS, without forking.
17291 as_fn_set_status ()
17293 return $1
17294 } # as_fn_set_status
17296 # as_fn_exit STATUS
17297 # -----------------
17298 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17299 as_fn_exit ()
17301 set +e
17302 as_fn_set_status $1
17303 exit $1
17304 } # as_fn_exit
17306 # as_fn_unset VAR
17307 # ---------------
17308 # Portably unset VAR.
17309 as_fn_unset ()
17311 { eval $1=; unset $1;}
17313 as_unset=as_fn_unset
17314 # as_fn_append VAR VALUE
17315 # ----------------------
17316 # Append the text in VALUE to the end of the definition contained in VAR. Take
17317 # advantage of any shell optimizations that allow amortized linear growth over
17318 # repeated appends, instead of the typical quadratic growth present in naive
17319 # implementations.
17320 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17321 eval 'as_fn_append ()
17323 eval $1+=\$2
17325 else
17326 as_fn_append ()
17328 eval $1=\$$1\$2
17330 fi # as_fn_append
17332 # as_fn_arith ARG...
17333 # ------------------
17334 # Perform arithmetic evaluation on the ARGs, and store the result in the
17335 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17336 # must be portable across $(()) and expr.
17337 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17338 eval 'as_fn_arith ()
17340 as_val=$(( $* ))
17342 else
17343 as_fn_arith ()
17345 as_val=`expr "$@" || test $? -eq 1`
17347 fi # as_fn_arith
17350 if expr a : '\(a\)' >/dev/null 2>&1 &&
17351 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17352 as_expr=expr
17353 else
17354 as_expr=false
17357 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17358 as_basename=basename
17359 else
17360 as_basename=false
17363 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17364 as_dirname=dirname
17365 else
17366 as_dirname=false
17369 as_me=`$as_basename -- "$0" ||
17370 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17371 X"$0" : 'X\(//\)$' \| \
17372 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17373 $as_echo X/"$0" |
17374 sed '/^.*\/\([^/][^/]*\)\/*$/{
17375 s//\1/
17378 /^X\/\(\/\/\)$/{
17379 s//\1/
17382 /^X\/\(\/\).*/{
17383 s//\1/
17386 s/.*/./; q'`
17388 # Avoid depending upon Character Ranges.
17389 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17390 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17391 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17392 as_cr_digits='0123456789'
17393 as_cr_alnum=$as_cr_Letters$as_cr_digits
17395 ECHO_C= ECHO_N= ECHO_T=
17396 case `echo -n x` in #(((((
17397 -n*)
17398 case `echo 'xy\c'` in
17399 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17400 xy) ECHO_C='\c';;
17401 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17402 ECHO_T=' ';;
17403 esac;;
17405 ECHO_N='-n';;
17406 esac
17408 rm -f conf$$ conf$$.exe conf$$.file
17409 if test -d conf$$.dir; then
17410 rm -f conf$$.dir/conf$$.file
17411 else
17412 rm -f conf$$.dir
17413 mkdir conf$$.dir 2>/dev/null
17415 if (echo >conf$$.file) 2>/dev/null; then
17416 if ln -s conf$$.file conf$$ 2>/dev/null; then
17417 as_ln_s='ln -s'
17418 # ... but there are two gotchas:
17419 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17420 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17421 # In both cases, we have to default to `cp -pR'.
17422 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17423 as_ln_s='cp -pR'
17424 elif ln conf$$.file conf$$ 2>/dev/null; then
17425 as_ln_s=ln
17426 else
17427 as_ln_s='cp -pR'
17429 else
17430 as_ln_s='cp -pR'
17432 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17433 rmdir conf$$.dir 2>/dev/null
17436 # as_fn_mkdir_p
17437 # -------------
17438 # Create "$as_dir" as a directory, including parents if necessary.
17439 as_fn_mkdir_p ()
17442 case $as_dir in #(
17443 -*) as_dir=./$as_dir;;
17444 esac
17445 test -d "$as_dir" || eval $as_mkdir_p || {
17446 as_dirs=
17447 while :; do
17448 case $as_dir in #(
17449 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17450 *) as_qdir=$as_dir;;
17451 esac
17452 as_dirs="'$as_qdir' $as_dirs"
17453 as_dir=`$as_dirname -- "$as_dir" ||
17454 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17455 X"$as_dir" : 'X\(//\)[^/]' \| \
17456 X"$as_dir" : 'X\(//\)$' \| \
17457 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17458 $as_echo X"$as_dir" |
17459 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17460 s//\1/
17463 /^X\(\/\/\)[^/].*/{
17464 s//\1/
17467 /^X\(\/\/\)$/{
17468 s//\1/
17471 /^X\(\/\).*/{
17472 s//\1/
17475 s/.*/./; q'`
17476 test -d "$as_dir" && break
17477 done
17478 test -z "$as_dirs" || eval "mkdir $as_dirs"
17479 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17482 } # as_fn_mkdir_p
17483 if mkdir -p . 2>/dev/null; then
17484 as_mkdir_p='mkdir -p "$as_dir"'
17485 else
17486 test -d ./-p && rmdir ./-p
17487 as_mkdir_p=false
17491 # as_fn_executable_p FILE
17492 # -----------------------
17493 # Test if FILE is an executable regular file.
17494 as_fn_executable_p ()
17496 test -f "$1" && test -x "$1"
17497 } # as_fn_executable_p
17498 as_test_x='test -x'
17499 as_executable_p=as_fn_executable_p
17501 # Sed expression to map a string onto a valid CPP name.
17502 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17504 # Sed expression to map a string onto a valid variable name.
17505 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17508 exec 6>&1
17509 ## ----------------------------------- ##
17510 ## Main body of $CONFIG_STATUS script. ##
17511 ## ----------------------------------- ##
17512 _ASEOF
17513 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17515 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17516 # Save the log message, to keep $0 and so on meaningful, and to
17517 # report actual input values of CONFIG_FILES etc. instead of their
17518 # values after options handling.
17519 ac_log="
17520 This file was extended by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was
17521 generated by GNU Autoconf 2.69. Invocation command line was
17523 CONFIG_FILES = $CONFIG_FILES
17524 CONFIG_HEADERS = $CONFIG_HEADERS
17525 CONFIG_LINKS = $CONFIG_LINKS
17526 CONFIG_COMMANDS = $CONFIG_COMMANDS
17527 $ $0 $@
17529 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17532 _ACEOF
17534 case $ac_config_files in *"
17535 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17536 esac
17538 case $ac_config_headers in *"
17539 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17540 esac
17543 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17544 # Files that config.status was made for.
17545 config_files="$ac_config_files"
17546 config_headers="$ac_config_headers"
17547 config_commands="$ac_config_commands"
17549 _ACEOF
17551 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17552 ac_cs_usage="\
17553 \`$as_me' instantiates files and other configuration actions
17554 from templates according to the current configuration. Unless the files
17555 and actions are specified as TAGs, all are instantiated by default.
17557 Usage: $0 [OPTION]... [TAG]...
17559 -h, --help print this help, then exit
17560 -V, --version print version number and configuration settings, then exit
17561 --config print configuration, then exit
17562 -q, --quiet, --silent
17563 do not print progress messages
17564 -d, --debug don't remove temporary files
17565 --recheck update $as_me by reconfiguring in the same conditions
17566 --file=FILE[:TEMPLATE]
17567 instantiate the configuration file FILE
17568 --header=FILE[:TEMPLATE]
17569 instantiate the configuration header FILE
17571 Configuration files:
17572 $config_files
17574 Configuration headers:
17575 $config_headers
17577 Configuration commands:
17578 $config_commands
17580 Report bugs to the package provider.
17581 GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
17582 General help using GNU software: <http://www.gnu.org/gethelp/>."
17584 _ACEOF
17585 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17586 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17587 ac_cs_version="\\
17588 GNU Offloading and Multi Processing Runtime Library config.status 1.0
17589 configured by $0, generated by GNU Autoconf 2.69,
17590 with options \\"\$ac_cs_config\\"
17592 Copyright (C) 2012 Free Software Foundation, Inc.
17593 This config.status script is free software; the Free Software Foundation
17594 gives unlimited permission to copy, distribute and modify it."
17596 ac_pwd='$ac_pwd'
17597 srcdir='$srcdir'
17598 INSTALL='$INSTALL'
17599 MKDIR_P='$MKDIR_P'
17600 AWK='$AWK'
17601 test -n "\$AWK" || AWK=awk
17602 _ACEOF
17604 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17605 # The default lists apply if the user does not specify any file.
17606 ac_need_defaults=:
17607 while test $# != 0
17609 case $1 in
17610 --*=?*)
17611 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17612 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17613 ac_shift=:
17615 --*=)
17616 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17617 ac_optarg=
17618 ac_shift=:
17621 ac_option=$1
17622 ac_optarg=$2
17623 ac_shift=shift
17625 esac
17627 case $ac_option in
17628 # Handling of the options.
17629 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17630 ac_cs_recheck=: ;;
17631 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17632 $as_echo "$ac_cs_version"; exit ;;
17633 --config | --confi | --conf | --con | --co | --c )
17634 $as_echo "$ac_cs_config"; exit ;;
17635 --debug | --debu | --deb | --de | --d | -d )
17636 debug=: ;;
17637 --file | --fil | --fi | --f )
17638 $ac_shift
17639 case $ac_optarg in
17640 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17641 '') as_fn_error $? "missing file argument" ;;
17642 esac
17643 as_fn_append CONFIG_FILES " '$ac_optarg'"
17644 ac_need_defaults=false;;
17645 --header | --heade | --head | --hea )
17646 $ac_shift
17647 case $ac_optarg in
17648 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17649 esac
17650 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17651 ac_need_defaults=false;;
17652 --he | --h)
17653 # Conflict between --help and --header
17654 as_fn_error $? "ambiguous option: \`$1'
17655 Try \`$0 --help' for more information.";;
17656 --help | --hel | -h )
17657 $as_echo "$ac_cs_usage"; exit ;;
17658 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17659 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17660 ac_cs_silent=: ;;
17662 # This is an error.
17663 -*) as_fn_error $? "unrecognized option: \`$1'
17664 Try \`$0 --help' for more information." ;;
17666 *) as_fn_append ac_config_targets " $1"
17667 ac_need_defaults=false ;;
17669 esac
17670 shift
17671 done
17673 ac_configure_extra_args=
17675 if $ac_cs_silent; then
17676 exec 6>/dev/null
17677 ac_configure_extra_args="$ac_configure_extra_args --silent"
17680 _ACEOF
17681 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17682 if \$ac_cs_recheck; then
17683 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17684 shift
17685 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17686 CONFIG_SHELL='$SHELL'
17687 export CONFIG_SHELL
17688 exec "\$@"
17691 _ACEOF
17692 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17693 exec 5>>config.log
17695 echo
17696 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17697 ## Running $as_me. ##
17698 _ASBOX
17699 $as_echo "$ac_log"
17700 } >&5
17702 _ACEOF
17703 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17705 # INIT-COMMANDS
17708 srcdir="$srcdir"
17709 host="$host"
17710 target="$target"
17711 with_multisubdir="$with_multisubdir"
17712 with_multisrctop="$with_multisrctop"
17713 with_target_subdir="$with_target_subdir"
17714 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17715 multi_basedir="$multi_basedir"
17716 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17717 CC="$CC"
17718 CXX="$CXX"
17719 GFORTRAN="$GFORTRAN"
17720 GDC="$GDC"
17721 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17724 # The HP-UX ksh and POSIX shell print the target directory to stdout
17725 # if CDPATH is set.
17726 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17728 sed_quote_subst='$sed_quote_subst'
17729 double_quote_subst='$double_quote_subst'
17730 delay_variable_subst='$delay_variable_subst'
17731 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17732 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17733 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17734 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17735 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17736 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17737 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17738 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17739 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17740 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17741 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17742 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17743 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17744 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17745 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17746 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17747 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17748 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17749 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17750 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17751 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17752 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17753 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17754 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17755 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17756 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17757 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17758 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17759 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17760 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17761 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17762 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17763 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17764 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17765 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17766 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17767 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17768 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17769 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17770 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17771 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17772 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17773 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17774 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17775 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17776 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17777 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17778 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17779 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"`'
17780 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17781 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17782 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17783 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17784 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17785 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17786 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17787 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17788 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17789 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17790 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17791 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17792 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17793 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17794 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17795 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17796 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17797 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17798 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17799 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17800 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17801 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17802 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17803 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17804 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17805 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17806 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17807 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17808 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17809 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17810 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17811 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17812 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17813 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17814 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17815 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17816 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17817 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17818 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17819 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17820 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17821 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17822 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17823 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17824 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17825 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17826 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17827 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17828 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17829 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17830 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17831 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17832 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17833 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17834 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17835 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17836 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17837 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17838 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17839 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17840 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17841 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17842 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17843 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17844 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17845 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17846 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17847 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17848 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17849 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17850 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17851 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17852 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17853 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17854 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17855 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17856 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17857 LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
17858 reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
17859 reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
17860 old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17861 compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
17862 GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
17863 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
17864 lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
17865 lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
17866 lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
17867 lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
17868 archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
17869 enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
17870 export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17871 whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17872 compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
17873 old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
17874 old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
17875 archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17876 archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17877 module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
17878 module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17879 with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
17880 allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17881 no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17882 hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17883 hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
17884 hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
17885 hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
17886 hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
17887 hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
17888 hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
17889 hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
17890 inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
17891 link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
17892 fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
17893 always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
17894 export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
17895 exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17896 include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17897 prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
17898 file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
17899 hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
17900 compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
17901 predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
17902 postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
17903 predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
17904 postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
17905 compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
17907 LTCC='$LTCC'
17908 LTCFLAGS='$LTCFLAGS'
17909 compiler='$compiler_DEFAULT'
17911 # A function that is used when there is no print builtin or printf.
17912 func_fallback_echo ()
17914 eval 'cat <<_LTECHO_EOF
17916 _LTECHO_EOF'
17919 # Quote evaled strings.
17920 for var in SHELL \
17921 ECHO \
17922 SED \
17923 GREP \
17924 EGREP \
17925 FGREP \
17926 LD \
17927 NM \
17928 LN_S \
17929 lt_SP2NL \
17930 lt_NL2SP \
17931 reload_flag \
17932 OBJDUMP \
17933 deplibs_check_method \
17934 file_magic_cmd \
17935 AR \
17936 AR_FLAGS \
17937 STRIP \
17938 RANLIB \
17939 CC \
17940 CFLAGS \
17941 compiler \
17942 lt_cv_sys_global_symbol_pipe \
17943 lt_cv_sys_global_symbol_to_cdecl \
17944 lt_cv_sys_global_symbol_to_c_name_address \
17945 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17946 lt_prog_compiler_no_builtin_flag \
17947 lt_prog_compiler_wl \
17948 lt_prog_compiler_pic \
17949 lt_prog_compiler_static \
17950 lt_cv_prog_compiler_c_o \
17951 need_locks \
17952 DSYMUTIL \
17953 NMEDIT \
17954 LIPO \
17955 OTOOL \
17956 OTOOL64 \
17957 shrext_cmds \
17958 export_dynamic_flag_spec \
17959 whole_archive_flag_spec \
17960 compiler_needs_object \
17961 with_gnu_ld \
17962 allow_undefined_flag \
17963 no_undefined_flag \
17964 hardcode_libdir_flag_spec \
17965 hardcode_libdir_flag_spec_ld \
17966 hardcode_libdir_separator \
17967 fix_srcfile_path \
17968 exclude_expsyms \
17969 include_expsyms \
17970 file_list_spec \
17971 variables_saved_for_relink \
17972 libname_spec \
17973 library_names_spec \
17974 soname_spec \
17975 install_override_mode \
17976 finish_eval \
17977 old_striplib \
17978 striplib \
17979 compiler_lib_search_dirs \
17980 predep_objects \
17981 postdep_objects \
17982 predeps \
17983 postdeps \
17984 compiler_lib_search_path \
17985 LD_FC \
17986 reload_flag_FC \
17987 compiler_FC \
17988 lt_prog_compiler_no_builtin_flag_FC \
17989 lt_prog_compiler_wl_FC \
17990 lt_prog_compiler_pic_FC \
17991 lt_prog_compiler_static_FC \
17992 lt_cv_prog_compiler_c_o_FC \
17993 export_dynamic_flag_spec_FC \
17994 whole_archive_flag_spec_FC \
17995 compiler_needs_object_FC \
17996 with_gnu_ld_FC \
17997 allow_undefined_flag_FC \
17998 no_undefined_flag_FC \
17999 hardcode_libdir_flag_spec_FC \
18000 hardcode_libdir_flag_spec_ld_FC \
18001 hardcode_libdir_separator_FC \
18002 fix_srcfile_path_FC \
18003 exclude_expsyms_FC \
18004 include_expsyms_FC \
18005 file_list_spec_FC \
18006 compiler_lib_search_dirs_FC \
18007 predep_objects_FC \
18008 postdep_objects_FC \
18009 predeps_FC \
18010 postdeps_FC \
18011 compiler_lib_search_path_FC; do
18012 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18013 *[\\\\\\\`\\"\\\$]*)
18014 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18017 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18019 esac
18020 done
18022 # Double-quote double-evaled strings.
18023 for var in reload_cmds \
18024 old_postinstall_cmds \
18025 old_postuninstall_cmds \
18026 old_archive_cmds \
18027 extract_expsyms_cmds \
18028 old_archive_from_new_cmds \
18029 old_archive_from_expsyms_cmds \
18030 archive_cmds \
18031 archive_expsym_cmds \
18032 module_cmds \
18033 module_expsym_cmds \
18034 export_symbols_cmds \
18035 prelink_cmds \
18036 postinstall_cmds \
18037 postuninstall_cmds \
18038 finish_cmds \
18039 sys_lib_search_path_spec \
18040 sys_lib_dlsearch_path_spec \
18041 reload_cmds_FC \
18042 old_archive_cmds_FC \
18043 old_archive_from_new_cmds_FC \
18044 old_archive_from_expsyms_cmds_FC \
18045 archive_cmds_FC \
18046 archive_expsym_cmds_FC \
18047 module_cmds_FC \
18048 module_expsym_cmds_FC \
18049 export_symbols_cmds_FC \
18050 prelink_cmds_FC; do
18051 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18052 *[\\\\\\\`\\"\\\$]*)
18053 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18056 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18058 esac
18059 done
18061 ac_aux_dir='$ac_aux_dir'
18062 xsi_shell='$xsi_shell'
18063 lt_shell_append='$lt_shell_append'
18065 # See if we are running on zsh, and set the options which allow our
18066 # commands through without removal of \ escapes INIT.
18067 if test -n "\${ZSH_VERSION+set}" ; then
18068 setopt NO_GLOB_SUBST
18072 PACKAGE='$PACKAGE'
18073 VERSION='$VERSION'
18074 TIMESTAMP='$TIMESTAMP'
18075 RM='$RM'
18076 ofile='$ofile'
18083 _ACEOF
18085 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18087 # Handling of arguments.
18088 for ac_config_target in $ac_config_targets
18090 case $ac_config_target in
18091 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18092 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18093 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18094 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18095 "omp.h") CONFIG_FILES="$CONFIG_FILES omp.h" ;;
18096 "omp_lib.h") CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;;
18097 "omp_lib.f90") CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;;
18098 "libgomp_f.h") CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;;
18099 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18100 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
18101 "libgomp.spec") CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;;
18102 "testsuite/libgomp-test-support.pt.exp") CONFIG_FILES="$CONFIG_FILES testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in" ;;
18103 "testsuite/libgomp-site-extra.exp") CONFIG_FILES="$CONFIG_FILES testsuite/libgomp-site-extra.exp" ;;
18105 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18106 esac
18107 done
18110 # If the user did not use the arguments to specify the items to instantiate,
18111 # then the envvar interface is used. Set only those that are not.
18112 # We use the long form for the default assignment because of an extremely
18113 # bizarre bug on SunOS 4.1.3.
18114 if $ac_need_defaults; then
18115 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18116 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18117 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18120 # Have a temporary directory for convenience. Make it in the build tree
18121 # simply because there is no reason against having it here, and in addition,
18122 # creating and moving files from /tmp can sometimes cause problems.
18123 # Hook for its removal unless debugging.
18124 # Note that there is a small window in which the directory will not be cleaned:
18125 # after its creation but before its name has been assigned to `$tmp'.
18126 $debug ||
18128 tmp= ac_tmp=
18129 trap 'exit_status=$?
18130 : "${ac_tmp:=$tmp}"
18131 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18133 trap 'as_fn_exit 1' 1 2 13 15
18135 # Create a (secure) tmp directory for tmp files.
18138 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18139 test -d "$tmp"
18140 } ||
18142 tmp=./conf$$-$RANDOM
18143 (umask 077 && mkdir "$tmp")
18144 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18145 ac_tmp=$tmp
18147 # Set up the scripts for CONFIG_FILES section.
18148 # No need to generate them if there are no CONFIG_FILES.
18149 # This happens for instance with `./config.status config.h'.
18150 if test -n "$CONFIG_FILES"; then
18153 ac_cr=`echo X | tr X '\015'`
18154 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18155 # But we know of no other shell where ac_cr would be empty at this
18156 # point, so we can use a bashism as a fallback.
18157 if test "x$ac_cr" = x; then
18158 eval ac_cr=\$\'\\r\'
18160 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18161 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18162 ac_cs_awk_cr='\\r'
18163 else
18164 ac_cs_awk_cr=$ac_cr
18167 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18168 _ACEOF
18172 echo "cat >conf$$subs.awk <<_ACEOF" &&
18173 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18174 echo "_ACEOF"
18175 } >conf$$subs.sh ||
18176 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18177 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18178 ac_delim='%!_!# '
18179 for ac_last_try in false false false false false :; do
18180 . ./conf$$subs.sh ||
18181 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18183 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18184 if test $ac_delim_n = $ac_delim_num; then
18185 break
18186 elif $ac_last_try; then
18187 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18188 else
18189 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18191 done
18192 rm -f conf$$subs.sh
18194 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18195 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18196 _ACEOF
18197 sed -n '
18199 s/^/S["/; s/!.*/"]=/
18202 s/^[^!]*!//
18203 :repl
18204 t repl
18205 s/'"$ac_delim"'$//
18206 t delim
18209 s/\(.\{148\}\)..*/\1/
18210 t more1
18211 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18214 b repl
18215 :more1
18216 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18219 s/.\{148\}//
18220 t nl
18221 :delim
18223 s/\(.\{148\}\)..*/\1/
18224 t more2
18225 s/["\\]/\\&/g; s/^/"/; s/$/"/
18228 :more2
18229 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18232 s/.\{148\}//
18233 t delim
18234 ' <conf$$subs.awk | sed '
18235 /^[^""]/{
18237 s/\n//
18239 ' >>$CONFIG_STATUS || ac_write_fail=1
18240 rm -f conf$$subs.awk
18241 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18242 _ACAWK
18243 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18244 for (key in S) S_is_set[key] = 1
18245 FS = "\a"
18249 line = $ 0
18250 nfields = split(line, field, "@")
18251 substed = 0
18252 len = length(field[1])
18253 for (i = 2; i < nfields; i++) {
18254 key = field[i]
18255 keylen = length(key)
18256 if (S_is_set[key]) {
18257 value = S[key]
18258 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18259 len += length(value) + length(field[++i])
18260 substed = 1
18261 } else
18262 len += 1 + keylen
18265 print line
18268 _ACAWK
18269 _ACEOF
18270 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18271 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18272 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18273 else
18275 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18276 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18277 _ACEOF
18279 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18280 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18281 # trailing colons and then remove the whole line if VPATH becomes empty
18282 # (actually we leave an empty line to preserve line numbers).
18283 if test "x$srcdir" = x.; then
18284 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18286 s///
18287 s/^/:/
18288 s/[ ]*$/:/
18289 s/:\$(srcdir):/:/g
18290 s/:\${srcdir}:/:/g
18291 s/:@srcdir@:/:/g
18292 s/^:*//
18293 s/:*$//
18295 s/\(=[ ]*\).*/\1/
18297 s/\n//
18298 s/^[^=]*=[ ]*$//
18302 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18303 fi # test -n "$CONFIG_FILES"
18305 # Set up the scripts for CONFIG_HEADERS section.
18306 # No need to generate them if there are no CONFIG_HEADERS.
18307 # This happens for instance with `./config.status Makefile'.
18308 if test -n "$CONFIG_HEADERS"; then
18309 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18310 BEGIN {
18311 _ACEOF
18313 # Transform confdefs.h into an awk script `defines.awk', embedded as
18314 # here-document in config.status, that substitutes the proper values into
18315 # config.h.in to produce config.h.
18317 # Create a delimiter string that does not exist in confdefs.h, to ease
18318 # handling of long lines.
18319 ac_delim='%!_!# '
18320 for ac_last_try in false false :; do
18321 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18322 if test -z "$ac_tt"; then
18323 break
18324 elif $ac_last_try; then
18325 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18326 else
18327 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18329 done
18331 # For the awk script, D is an array of macro values keyed by name,
18332 # likewise P contains macro parameters if any. Preserve backslash
18333 # newline sequences.
18335 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18336 sed -n '
18337 s/.\{148\}/&'"$ac_delim"'/g
18338 t rset
18339 :rset
18340 s/^[ ]*#[ ]*define[ ][ ]*/ /
18341 t def
18343 :def
18344 s/\\$//
18345 t bsnl
18346 s/["\\]/\\&/g
18347 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18348 D["\1"]=" \3"/p
18349 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18351 :bsnl
18352 s/["\\]/\\&/g
18353 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18354 D["\1"]=" \3\\\\\\n"\\/p
18355 t cont
18356 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18357 t cont
18359 :cont
18361 s/.\{148\}/&'"$ac_delim"'/g
18362 t clear
18363 :clear
18364 s/\\$//
18365 t bsnlc
18366 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18368 :bsnlc
18369 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18370 b cont
18371 ' <confdefs.h | sed '
18372 s/'"$ac_delim"'/"\\\
18373 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18375 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18376 for (key in D) D_is_set[key] = 1
18377 FS = "\a"
18379 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18380 line = \$ 0
18381 split(line, arg, " ")
18382 if (arg[1] == "#") {
18383 defundef = arg[2]
18384 mac1 = arg[3]
18385 } else {
18386 defundef = substr(arg[1], 2)
18387 mac1 = arg[2]
18389 split(mac1, mac2, "(") #)
18390 macro = mac2[1]
18391 prefix = substr(line, 1, index(line, defundef) - 1)
18392 if (D_is_set[macro]) {
18393 # Preserve the white space surrounding the "#".
18394 print prefix "define", macro P[macro] D[macro]
18395 next
18396 } else {
18397 # Replace #undef with comments. This is necessary, for example,
18398 # in the case of _POSIX_SOURCE, which is predefined and required
18399 # on some systems where configure will not decide to define it.
18400 if (defundef == "undef") {
18401 print "/*", prefix defundef, macro, "*/"
18402 next
18406 { print }
18407 _ACAWK
18408 _ACEOF
18409 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18410 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18411 fi # test -n "$CONFIG_HEADERS"
18414 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18415 shift
18416 for ac_tag
18418 case $ac_tag in
18419 :[FHLC]) ac_mode=$ac_tag; continue;;
18420 esac
18421 case $ac_mode$ac_tag in
18422 :[FHL]*:*);;
18423 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18424 :[FH]-) ac_tag=-:-;;
18425 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18426 esac
18427 ac_save_IFS=$IFS
18428 IFS=:
18429 set x $ac_tag
18430 IFS=$ac_save_IFS
18431 shift
18432 ac_file=$1
18433 shift
18435 case $ac_mode in
18436 :L) ac_source=$1;;
18437 :[FH])
18438 ac_file_inputs=
18439 for ac_f
18441 case $ac_f in
18442 -) ac_f="$ac_tmp/stdin";;
18443 *) # Look for the file first in the build tree, then in the source tree
18444 # (if the path is not absolute). The absolute path cannot be DOS-style,
18445 # because $ac_f cannot contain `:'.
18446 test -f "$ac_f" ||
18447 case $ac_f in
18448 [\\/$]*) false;;
18449 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18450 esac ||
18451 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18452 esac
18453 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18454 as_fn_append ac_file_inputs " '$ac_f'"
18455 done
18457 # Let's still pretend it is `configure' which instantiates (i.e., don't
18458 # use $as_me), people would be surprised to read:
18459 # /* config.h. Generated by config.status. */
18460 configure_input='Generated from '`
18461 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18462 `' by configure.'
18463 if test x"$ac_file" != x-; then
18464 configure_input="$ac_file. $configure_input"
18465 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18466 $as_echo "$as_me: creating $ac_file" >&6;}
18468 # Neutralize special characters interpreted by sed in replacement strings.
18469 case $configure_input in #(
18470 *\&* | *\|* | *\\* )
18471 ac_sed_conf_input=`$as_echo "$configure_input" |
18472 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18473 *) ac_sed_conf_input=$configure_input;;
18474 esac
18476 case $ac_tag in
18477 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18478 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18479 esac
18481 esac
18483 ac_dir=`$as_dirname -- "$ac_file" ||
18484 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18485 X"$ac_file" : 'X\(//\)[^/]' \| \
18486 X"$ac_file" : 'X\(//\)$' \| \
18487 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18488 $as_echo X"$ac_file" |
18489 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18490 s//\1/
18493 /^X\(\/\/\)[^/].*/{
18494 s//\1/
18497 /^X\(\/\/\)$/{
18498 s//\1/
18501 /^X\(\/\).*/{
18502 s//\1/
18505 s/.*/./; q'`
18506 as_dir="$ac_dir"; as_fn_mkdir_p
18507 ac_builddir=.
18509 case "$ac_dir" in
18510 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18512 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18513 # A ".." for each directory in $ac_dir_suffix.
18514 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18515 case $ac_top_builddir_sub in
18516 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18517 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18518 esac ;;
18519 esac
18520 ac_abs_top_builddir=$ac_pwd
18521 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18522 # for backward compatibility:
18523 ac_top_builddir=$ac_top_build_prefix
18525 case $srcdir in
18526 .) # We are building in place.
18527 ac_srcdir=.
18528 ac_top_srcdir=$ac_top_builddir_sub
18529 ac_abs_top_srcdir=$ac_pwd ;;
18530 [\\/]* | ?:[\\/]* ) # Absolute name.
18531 ac_srcdir=$srcdir$ac_dir_suffix;
18532 ac_top_srcdir=$srcdir
18533 ac_abs_top_srcdir=$srcdir ;;
18534 *) # Relative name.
18535 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18536 ac_top_srcdir=$ac_top_build_prefix$srcdir
18537 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18538 esac
18539 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18542 case $ac_mode in
18545 # CONFIG_FILE
18548 case $INSTALL in
18549 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18550 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18551 esac
18552 ac_MKDIR_P=$MKDIR_P
18553 case $MKDIR_P in
18554 [\\/$]* | ?:[\\/]* ) ;;
18555 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18556 esac
18557 _ACEOF
18559 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18560 # If the template does not know about datarootdir, expand it.
18561 # FIXME: This hack should be removed a few years after 2.60.
18562 ac_datarootdir_hack=; ac_datarootdir_seen=
18563 ac_sed_dataroot='
18564 /datarootdir/ {
18568 /@datadir@/p
18569 /@docdir@/p
18570 /@infodir@/p
18571 /@localedir@/p
18572 /@mandir@/p'
18573 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18574 *datarootdir*) ac_datarootdir_seen=yes;;
18575 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18577 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18578 _ACEOF
18579 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18580 ac_datarootdir_hack='
18581 s&@datadir@&$datadir&g
18582 s&@docdir@&$docdir&g
18583 s&@infodir@&$infodir&g
18584 s&@localedir@&$localedir&g
18585 s&@mandir@&$mandir&g
18586 s&\\\${datarootdir}&$datarootdir&g' ;;
18587 esac
18588 _ACEOF
18590 # Neutralize VPATH when `$srcdir' = `.'.
18591 # Shell code in configure.ac might set extrasub.
18592 # FIXME: do we really want to maintain this feature?
18593 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18594 ac_sed_extra="$ac_vpsub
18595 $extrasub
18596 _ACEOF
18597 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18599 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18600 s|@configure_input@|$ac_sed_conf_input|;t t
18601 s&@top_builddir@&$ac_top_builddir_sub&;t t
18602 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18603 s&@srcdir@&$ac_srcdir&;t t
18604 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18605 s&@top_srcdir@&$ac_top_srcdir&;t t
18606 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18607 s&@builddir@&$ac_builddir&;t t
18608 s&@abs_builddir@&$ac_abs_builddir&;t t
18609 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18610 s&@INSTALL@&$ac_INSTALL&;t t
18611 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18612 $ac_datarootdir_hack
18614 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18615 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18617 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18618 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18619 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18620 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18622 which seems to be undefined. Please make sure it is defined" >&5
18623 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18624 which seems to be undefined. Please make sure it is defined" >&2;}
18626 rm -f "$ac_tmp/stdin"
18627 case $ac_file in
18628 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18629 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18630 esac \
18631 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18635 # CONFIG_HEADER
18637 if test x"$ac_file" != x-; then
18639 $as_echo "/* $configure_input */" \
18640 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18641 } >"$ac_tmp/config.h" \
18642 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18643 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18644 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18645 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18646 else
18647 rm -f "$ac_file"
18648 mv "$ac_tmp/config.h" "$ac_file" \
18649 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18651 else
18652 $as_echo "/* $configure_input */" \
18653 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18654 || as_fn_error $? "could not create -" "$LINENO" 5
18656 # Compute "$ac_file"'s index in $config_headers.
18657 _am_arg="$ac_file"
18658 _am_stamp_count=1
18659 for _am_header in $config_headers :; do
18660 case $_am_header in
18661 $_am_arg | $_am_arg:* )
18662 break ;;
18664 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18665 esac
18666 done
18667 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18668 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18669 X"$_am_arg" : 'X\(//\)[^/]' \| \
18670 X"$_am_arg" : 'X\(//\)$' \| \
18671 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18672 $as_echo X"$_am_arg" |
18673 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18674 s//\1/
18677 /^X\(\/\/\)[^/].*/{
18678 s//\1/
18681 /^X\(\/\/\)$/{
18682 s//\1/
18685 /^X\(\/\).*/{
18686 s//\1/
18689 s/.*/./; q'`/stamp-h$_am_stamp_count
18692 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18693 $as_echo "$as_me: executing $ac_file commands" >&6;}
18695 esac
18698 case $ac_file$ac_mode in
18699 "default-1":C)
18700 # Only add multilib support code if we just rebuilt the top-level
18701 # Makefile.
18702 case " $CONFIG_FILES " in
18703 *" Makefile "*)
18704 ac_file=Makefile . ${multi_basedir}/config-ml.in
18706 esac ;;
18707 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18708 # Older Autoconf quotes --file arguments for eval, but not when files
18709 # are listed without --file. Let's play safe and only enable the eval
18710 # if we detect the quoting.
18711 case $CONFIG_FILES in
18712 *\'*) eval set x "$CONFIG_FILES" ;;
18713 *) set x $CONFIG_FILES ;;
18714 esac
18715 shift
18716 for mf
18718 # Strip MF so we end up with the name of the file.
18719 mf=`echo "$mf" | sed -e 's/:.*$//'`
18720 # Check whether this is an Automake generated Makefile or not.
18721 # We used to match only the files named 'Makefile.in', but
18722 # some people rename them; so instead we look at the file content.
18723 # Grep'ing the first line is not enough: some people post-process
18724 # each Makefile.in and add a new line on top of each file to say so.
18725 # Grep'ing the whole file is not good either: AIX grep has a line
18726 # limit of 2048, but all sed's we know have understand at least 4000.
18727 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18728 dirpart=`$as_dirname -- "$mf" ||
18729 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18730 X"$mf" : 'X\(//\)[^/]' \| \
18731 X"$mf" : 'X\(//\)$' \| \
18732 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18733 $as_echo X"$mf" |
18734 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18735 s//\1/
18738 /^X\(\/\/\)[^/].*/{
18739 s//\1/
18742 /^X\(\/\/\)$/{
18743 s//\1/
18746 /^X\(\/\).*/{
18747 s//\1/
18750 s/.*/./; q'`
18751 else
18752 continue
18754 # Extract the definition of DEPDIR, am__include, and am__quote
18755 # from the Makefile without running 'make'.
18756 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18757 test -z "$DEPDIR" && continue
18758 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18759 test -z "$am__include" && continue
18760 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18761 # Find all dependency output files, they are included files with
18762 # $(DEPDIR) in their names. We invoke sed twice because it is the
18763 # simplest approach to changing $(DEPDIR) to its actual value in the
18764 # expansion.
18765 for file in `sed -n "
18766 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18767 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18768 # Make sure the directory exists.
18769 test -f "$dirpart/$file" && continue
18770 fdir=`$as_dirname -- "$file" ||
18771 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18772 X"$file" : 'X\(//\)[^/]' \| \
18773 X"$file" : 'X\(//\)$' \| \
18774 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18775 $as_echo X"$file" |
18776 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18777 s//\1/
18780 /^X\(\/\/\)[^/].*/{
18781 s//\1/
18784 /^X\(\/\/\)$/{
18785 s//\1/
18788 /^X\(\/\).*/{
18789 s//\1/
18792 s/.*/./; q'`
18793 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18794 # echo "creating $dirpart/$file"
18795 echo '# dummy' > "$dirpart/$file"
18796 done
18797 done
18800 "libtool":C)
18802 # See if we are running on zsh, and set the options which allow our
18803 # commands through without removal of \ escapes.
18804 if test -n "${ZSH_VERSION+set}" ; then
18805 setopt NO_GLOB_SUBST
18808 cfgfile="${ofile}T"
18809 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18810 $RM "$cfgfile"
18812 cat <<_LT_EOF >> "$cfgfile"
18813 #! $SHELL
18815 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18816 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18817 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18818 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18820 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18821 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18822 # Written by Gordon Matzigkeit, 1996
18824 # This file is part of GNU Libtool.
18826 # GNU Libtool is free software; you can redistribute it and/or
18827 # modify it under the terms of the GNU General Public License as
18828 # published by the Free Software Foundation; either version 2 of
18829 # the License, or (at your option) any later version.
18831 # As a special exception to the GNU General Public License,
18832 # if you distribute this file as part of a program or library that
18833 # is built using GNU Libtool, you may include this file under the
18834 # same distribution terms that you use for the rest of that program.
18836 # GNU Libtool is distributed in the hope that it will be useful,
18837 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18838 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18839 # GNU General Public License for more details.
18841 # You should have received a copy of the GNU General Public License
18842 # along with GNU Libtool; see the file COPYING. If not, a copy
18843 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18844 # obtained by writing to the Free Software Foundation, Inc.,
18845 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18848 # The names of the tagged configurations supported by this script.
18849 available_tags="FC "
18851 # ### BEGIN LIBTOOL CONFIG
18853 # Which release of libtool.m4 was used?
18854 macro_version=$macro_version
18855 macro_revision=$macro_revision
18857 # Whether or not to build shared libraries.
18858 build_libtool_libs=$enable_shared
18860 # Whether or not to build static libraries.
18861 build_old_libs=$enable_static
18863 # What type of objects to build.
18864 pic_mode=$pic_mode
18866 # Whether or not to optimize for fast installation.
18867 fast_install=$enable_fast_install
18869 # Shell to use when invoking shell scripts.
18870 SHELL=$lt_SHELL
18872 # An echo program that protects backslashes.
18873 ECHO=$lt_ECHO
18875 # The host system.
18876 host_alias=$host_alias
18877 host=$host
18878 host_os=$host_os
18880 # The build system.
18881 build_alias=$build_alias
18882 build=$build
18883 build_os=$build_os
18885 # A sed program that does not truncate output.
18886 SED=$lt_SED
18888 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18889 Xsed="\$SED -e 1s/^X//"
18891 # A grep program that handles long lines.
18892 GREP=$lt_GREP
18894 # An ERE matcher.
18895 EGREP=$lt_EGREP
18897 # A literal string matcher.
18898 FGREP=$lt_FGREP
18900 # A BSD- or MS-compatible name lister.
18901 NM=$lt_NM
18903 # Whether we need soft or hard links.
18904 LN_S=$lt_LN_S
18906 # What is the maximum length of a command?
18907 max_cmd_len=$max_cmd_len
18909 # Object file suffix (normally "o").
18910 objext=$ac_objext
18912 # Executable file suffix (normally "").
18913 exeext=$exeext
18915 # whether the shell understands "unset".
18916 lt_unset=$lt_unset
18918 # turn spaces into newlines.
18919 SP2NL=$lt_lt_SP2NL
18921 # turn newlines into spaces.
18922 NL2SP=$lt_lt_NL2SP
18924 # An object symbol dumper.
18925 OBJDUMP=$lt_OBJDUMP
18927 # Method to check whether dependent libraries are shared objects.
18928 deplibs_check_method=$lt_deplibs_check_method
18930 # Command to use when deplibs_check_method == "file_magic".
18931 file_magic_cmd=$lt_file_magic_cmd
18933 # The archiver.
18934 AR=$lt_AR
18935 AR_FLAGS=$lt_AR_FLAGS
18937 # A symbol stripping program.
18938 STRIP=$lt_STRIP
18940 # Commands used to install an old-style archive.
18941 RANLIB=$lt_RANLIB
18942 old_postinstall_cmds=$lt_old_postinstall_cmds
18943 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18945 # Whether to use a lock for old archive extraction.
18946 lock_old_archive_extraction=$lock_old_archive_extraction
18948 # A C compiler.
18949 LTCC=$lt_CC
18951 # LTCC compiler flags.
18952 LTCFLAGS=$lt_CFLAGS
18954 # Take the output of nm and produce a listing of raw symbols and C names.
18955 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18957 # Transform the output of nm in a proper C declaration.
18958 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18960 # Transform the output of nm in a C name address pair.
18961 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18963 # Transform the output of nm in a C name address pair when lib prefix is needed.
18964 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18966 # The name of the directory that contains temporary libtool files.
18967 objdir=$objdir
18969 # Used to examine libraries when file_magic_cmd begins with "file".
18970 MAGIC_CMD=$MAGIC_CMD
18972 # Must we lock files when doing compilation?
18973 need_locks=$lt_need_locks
18975 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18976 DSYMUTIL=$lt_DSYMUTIL
18978 # Tool to change global to local symbols on Mac OS X.
18979 NMEDIT=$lt_NMEDIT
18981 # Tool to manipulate fat objects and archives on Mac OS X.
18982 LIPO=$lt_LIPO
18984 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18985 OTOOL=$lt_OTOOL
18987 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18988 OTOOL64=$lt_OTOOL64
18990 # Old archive suffix (normally "a").
18991 libext=$libext
18993 # Shared library suffix (normally ".so").
18994 shrext_cmds=$lt_shrext_cmds
18996 # The commands to extract the exported symbol list from a shared archive.
18997 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18999 # Variables whose values should be saved in libtool wrapper scripts and
19000 # restored at link time.
19001 variables_saved_for_relink=$lt_variables_saved_for_relink
19003 # Do we need the "lib" prefix for modules?
19004 need_lib_prefix=$need_lib_prefix
19006 # Do we need a version for libraries?
19007 need_version=$need_version
19009 # Library versioning type.
19010 version_type=$version_type
19012 # Shared library runtime path variable.
19013 runpath_var=$runpath_var
19015 # Shared library path variable.
19016 shlibpath_var=$shlibpath_var
19018 # Is shlibpath searched before the hard-coded library search path?
19019 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19021 # Format of library name prefix.
19022 libname_spec=$lt_libname_spec
19024 # List of archive names. First name is the real one, the rest are links.
19025 # The last name is the one that the linker finds with -lNAME
19026 library_names_spec=$lt_library_names_spec
19028 # The coded name of the library, if different from the real name.
19029 soname_spec=$lt_soname_spec
19031 # Permission mode override for installation of shared libraries.
19032 install_override_mode=$lt_install_override_mode
19034 # Command to use after installation of a shared archive.
19035 postinstall_cmds=$lt_postinstall_cmds
19037 # Command to use after uninstallation of a shared archive.
19038 postuninstall_cmds=$lt_postuninstall_cmds
19040 # Commands used to finish a libtool library installation in a directory.
19041 finish_cmds=$lt_finish_cmds
19043 # As "finish_cmds", except a single script fragment to be evaled but
19044 # not shown.
19045 finish_eval=$lt_finish_eval
19047 # Whether we should hardcode library paths into libraries.
19048 hardcode_into_libs=$hardcode_into_libs
19050 # Compile-time system search path for libraries.
19051 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19053 # Run-time system search path for libraries.
19054 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19056 # Whether dlopen is supported.
19057 dlopen_support=$enable_dlopen
19059 # Whether dlopen of programs is supported.
19060 dlopen_self=$enable_dlopen_self
19062 # Whether dlopen of statically linked programs is supported.
19063 dlopen_self_static=$enable_dlopen_self_static
19065 # Commands to strip libraries.
19066 old_striplib=$lt_old_striplib
19067 striplib=$lt_striplib
19070 # The linker used to build libraries.
19071 LD=$lt_LD
19073 # How to create reloadable object files.
19074 reload_flag=$lt_reload_flag
19075 reload_cmds=$lt_reload_cmds
19077 # Commands used to build an old-style archive.
19078 old_archive_cmds=$lt_old_archive_cmds
19080 # A language specific compiler.
19081 CC=$lt_compiler
19083 # Is the compiler the GNU compiler?
19084 with_gcc=$GCC
19086 # Compiler flag to turn off builtin functions.
19087 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19089 # How to pass a linker flag through the compiler.
19090 wl=$lt_lt_prog_compiler_wl
19092 # Additional compiler flags for building library objects.
19093 pic_flag=$lt_lt_prog_compiler_pic
19095 # Compiler flag to prevent dynamic linking.
19096 link_static_flag=$lt_lt_prog_compiler_static
19098 # Does compiler simultaneously support -c and -o options?
19099 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19101 # Whether or not to add -lc for building shared libraries.
19102 build_libtool_need_lc=$archive_cmds_need_lc
19104 # Whether or not to disallow shared libs when runtime libs are static.
19105 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19107 # Compiler flag to allow reflexive dlopens.
19108 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19110 # Compiler flag to generate shared objects directly from archives.
19111 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19113 # Whether the compiler copes with passing no objects directly.
19114 compiler_needs_object=$lt_compiler_needs_object
19116 # Create an old-style archive from a shared archive.
19117 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19119 # Create a temporary old-style archive to link instead of a shared archive.
19120 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19122 # Commands used to build a shared archive.
19123 archive_cmds=$lt_archive_cmds
19124 archive_expsym_cmds=$lt_archive_expsym_cmds
19126 # Commands used to build a loadable module if different from building
19127 # a shared archive.
19128 module_cmds=$lt_module_cmds
19129 module_expsym_cmds=$lt_module_expsym_cmds
19131 # Whether we are building with GNU ld or not.
19132 with_gnu_ld=$lt_with_gnu_ld
19134 # Flag that allows shared libraries with undefined symbols to be built.
19135 allow_undefined_flag=$lt_allow_undefined_flag
19137 # Flag that enforces no undefined symbols.
19138 no_undefined_flag=$lt_no_undefined_flag
19140 # Flag to hardcode \$libdir into a binary during linking.
19141 # This must work even if \$libdir does not exist
19142 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19144 # If ld is used when linking, flag to hardcode \$libdir into a binary
19145 # during linking. This must work even if \$libdir does not exist.
19146 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19148 # Whether we need a single "-rpath" flag with a separated argument.
19149 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19151 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19152 # DIR into the resulting binary.
19153 hardcode_direct=$hardcode_direct
19155 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19156 # DIR into the resulting binary and the resulting library dependency is
19157 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19158 # library is relocated.
19159 hardcode_direct_absolute=$hardcode_direct_absolute
19161 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19162 # into the resulting binary.
19163 hardcode_minus_L=$hardcode_minus_L
19165 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19166 # into the resulting binary.
19167 hardcode_shlibpath_var=$hardcode_shlibpath_var
19169 # Set to "yes" if building a shared library automatically hardcodes DIR
19170 # into the library and all subsequent libraries and executables linked
19171 # against it.
19172 hardcode_automatic=$hardcode_automatic
19174 # Set to yes if linker adds runtime paths of dependent libraries
19175 # to runtime path list.
19176 inherit_rpath=$inherit_rpath
19178 # Whether libtool must link a program against all its dependency libraries.
19179 link_all_deplibs=$link_all_deplibs
19181 # Fix the shell variable \$srcfile for the compiler.
19182 fix_srcfile_path=$lt_fix_srcfile_path
19184 # Set to "yes" if exported symbols are required.
19185 always_export_symbols=$always_export_symbols
19187 # The commands to list exported symbols.
19188 export_symbols_cmds=$lt_export_symbols_cmds
19190 # Symbols that should not be listed in the preloaded symbols.
19191 exclude_expsyms=$lt_exclude_expsyms
19193 # Symbols that must always be exported.
19194 include_expsyms=$lt_include_expsyms
19196 # Commands necessary for linking programs (against libraries) with templates.
19197 prelink_cmds=$lt_prelink_cmds
19199 # Specify filename containing input files.
19200 file_list_spec=$lt_file_list_spec
19202 # How to hardcode a shared library path into an executable.
19203 hardcode_action=$hardcode_action
19205 # The directories searched by this compiler when creating a shared library.
19206 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19208 # Dependencies to place before and after the objects being linked to
19209 # create a shared library.
19210 predep_objects=$lt_predep_objects
19211 postdep_objects=$lt_postdep_objects
19212 predeps=$lt_predeps
19213 postdeps=$lt_postdeps
19215 # The library search path used internally by the compiler when linking
19216 # a shared library.
19217 compiler_lib_search_path=$lt_compiler_lib_search_path
19219 # ### END LIBTOOL CONFIG
19221 _LT_EOF
19223 case $host_os in
19224 aix3*)
19225 cat <<\_LT_EOF >> "$cfgfile"
19226 # AIX sometimes has problems with the GCC collect2 program. For some
19227 # reason, if we set the COLLECT_NAMES environment variable, the problems
19228 # vanish in a puff of smoke.
19229 if test "X${COLLECT_NAMES+set}" != Xset; then
19230 COLLECT_NAMES=
19231 export COLLECT_NAMES
19233 _LT_EOF
19235 esac
19238 ltmain="$ac_aux_dir/ltmain.sh"
19241 # We use sed instead of cat because bash on DJGPP gets confused if
19242 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19243 # text mode, it properly converts lines to CR/LF. This bash problem
19244 # is reportedly fixed, but why not run on old versions too?
19245 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19246 || (rm -f "$cfgfile"; exit 1)
19248 case $xsi_shell in
19249 yes)
19250 cat << \_LT_EOF >> "$cfgfile"
19252 # func_dirname file append nondir_replacement
19253 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19254 # otherwise set result to NONDIR_REPLACEMENT.
19255 func_dirname ()
19257 case ${1} in
19258 */*) func_dirname_result="${1%/*}${2}" ;;
19259 * ) func_dirname_result="${3}" ;;
19260 esac
19263 # func_basename file
19264 func_basename ()
19266 func_basename_result="${1##*/}"
19269 # func_dirname_and_basename file append nondir_replacement
19270 # perform func_basename and func_dirname in a single function
19271 # call:
19272 # dirname: Compute the dirname of FILE. If nonempty,
19273 # add APPEND to the result, otherwise set result
19274 # to NONDIR_REPLACEMENT.
19275 # value returned in "$func_dirname_result"
19276 # basename: Compute filename of FILE.
19277 # value retuned in "$func_basename_result"
19278 # Implementation must be kept synchronized with func_dirname
19279 # and func_basename. For efficiency, we do not delegate to
19280 # those functions but instead duplicate the functionality here.
19281 func_dirname_and_basename ()
19283 case ${1} in
19284 */*) func_dirname_result="${1%/*}${2}" ;;
19285 * ) func_dirname_result="${3}" ;;
19286 esac
19287 func_basename_result="${1##*/}"
19290 # func_stripname prefix suffix name
19291 # strip PREFIX and SUFFIX off of NAME.
19292 # PREFIX and SUFFIX must not contain globbing or regex special
19293 # characters, hashes, percent signs, but SUFFIX may contain a leading
19294 # dot (in which case that matches only a dot).
19295 func_stripname ()
19297 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19298 # positional parameters, so assign one to ordinary parameter first.
19299 func_stripname_result=${3}
19300 func_stripname_result=${func_stripname_result#"${1}"}
19301 func_stripname_result=${func_stripname_result%"${2}"}
19304 # func_opt_split
19305 func_opt_split ()
19307 func_opt_split_opt=${1%%=*}
19308 func_opt_split_arg=${1#*=}
19311 # func_lo2o object
19312 func_lo2o ()
19314 case ${1} in
19315 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19316 *) func_lo2o_result=${1} ;;
19317 esac
19320 # func_xform libobj-or-source
19321 func_xform ()
19323 func_xform_result=${1%.*}.lo
19326 # func_arith arithmetic-term...
19327 func_arith ()
19329 func_arith_result=$(( $* ))
19332 # func_len string
19333 # STRING may not start with a hyphen.
19334 func_len ()
19336 func_len_result=${#1}
19339 _LT_EOF
19341 *) # Bourne compatible functions.
19342 cat << \_LT_EOF >> "$cfgfile"
19344 # func_dirname file append nondir_replacement
19345 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19346 # otherwise set result to NONDIR_REPLACEMENT.
19347 func_dirname ()
19349 # Extract subdirectory from the argument.
19350 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19351 if test "X$func_dirname_result" = "X${1}"; then
19352 func_dirname_result="${3}"
19353 else
19354 func_dirname_result="$func_dirname_result${2}"
19358 # func_basename file
19359 func_basename ()
19361 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19365 # func_stripname prefix suffix name
19366 # strip PREFIX and SUFFIX off of NAME.
19367 # PREFIX and SUFFIX must not contain globbing or regex special
19368 # characters, hashes, percent signs, but SUFFIX may contain a leading
19369 # dot (in which case that matches only a dot).
19370 # func_strip_suffix prefix name
19371 func_stripname ()
19373 case ${2} in
19374 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19375 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19376 esac
19379 # sed scripts:
19380 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19381 my_sed_long_arg='1s/^-[^=]*=//'
19383 # func_opt_split
19384 func_opt_split ()
19386 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19387 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19390 # func_lo2o object
19391 func_lo2o ()
19393 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19396 # func_xform libobj-or-source
19397 func_xform ()
19399 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19402 # func_arith arithmetic-term...
19403 func_arith ()
19405 func_arith_result=`expr "$@"`
19408 # func_len string
19409 # STRING may not start with a hyphen.
19410 func_len ()
19412 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19415 _LT_EOF
19416 esac
19418 case $lt_shell_append in
19419 yes)
19420 cat << \_LT_EOF >> "$cfgfile"
19422 # func_append var value
19423 # Append VALUE to the end of shell variable VAR.
19424 func_append ()
19426 eval "$1+=\$2"
19428 _LT_EOF
19431 cat << \_LT_EOF >> "$cfgfile"
19433 # func_append var value
19434 # Append VALUE to the end of shell variable VAR.
19435 func_append ()
19437 eval "$1=\$$1\$2"
19440 _LT_EOF
19442 esac
19445 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19446 || (rm -f "$cfgfile"; exit 1)
19448 mv -f "$cfgfile" "$ofile" ||
19449 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19450 chmod +x "$ofile"
19453 cat <<_LT_EOF >> "$ofile"
19455 # ### BEGIN LIBTOOL TAG CONFIG: FC
19457 # The linker used to build libraries.
19458 LD=$lt_LD_FC
19460 # How to create reloadable object files.
19461 reload_flag=$lt_reload_flag_FC
19462 reload_cmds=$lt_reload_cmds_FC
19464 # Commands used to build an old-style archive.
19465 old_archive_cmds=$lt_old_archive_cmds_FC
19467 # A language specific compiler.
19468 CC=$lt_compiler_FC
19470 # Is the compiler the GNU compiler?
19471 with_gcc=$GCC_FC
19473 # Compiler flag to turn off builtin functions.
19474 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
19476 # How to pass a linker flag through the compiler.
19477 wl=$lt_lt_prog_compiler_wl_FC
19479 # Additional compiler flags for building library objects.
19480 pic_flag=$lt_lt_prog_compiler_pic_FC
19482 # Compiler flag to prevent dynamic linking.
19483 link_static_flag=$lt_lt_prog_compiler_static_FC
19485 # Does compiler simultaneously support -c and -o options?
19486 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
19488 # Whether or not to add -lc for building shared libraries.
19489 build_libtool_need_lc=$archive_cmds_need_lc_FC
19491 # Whether or not to disallow shared libs when runtime libs are static.
19492 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
19494 # Compiler flag to allow reflexive dlopens.
19495 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
19497 # Compiler flag to generate shared objects directly from archives.
19498 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
19500 # Whether the compiler copes with passing no objects directly.
19501 compiler_needs_object=$lt_compiler_needs_object_FC
19503 # Create an old-style archive from a shared archive.
19504 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
19506 # Create a temporary old-style archive to link instead of a shared archive.
19507 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
19509 # Commands used to build a shared archive.
19510 archive_cmds=$lt_archive_cmds_FC
19511 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
19513 # Commands used to build a loadable module if different from building
19514 # a shared archive.
19515 module_cmds=$lt_module_cmds_FC
19516 module_expsym_cmds=$lt_module_expsym_cmds_FC
19518 # Whether we are building with GNU ld or not.
19519 with_gnu_ld=$lt_with_gnu_ld_FC
19521 # Flag that allows shared libraries with undefined symbols to be built.
19522 allow_undefined_flag=$lt_allow_undefined_flag_FC
19524 # Flag that enforces no undefined symbols.
19525 no_undefined_flag=$lt_no_undefined_flag_FC
19527 # Flag to hardcode \$libdir into a binary during linking.
19528 # This must work even if \$libdir does not exist
19529 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
19531 # If ld is used when linking, flag to hardcode \$libdir into a binary
19532 # during linking. This must work even if \$libdir does not exist.
19533 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
19535 # Whether we need a single "-rpath" flag with a separated argument.
19536 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
19538 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19539 # DIR into the resulting binary.
19540 hardcode_direct=$hardcode_direct_FC
19542 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19543 # DIR into the resulting binary and the resulting library dependency is
19544 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19545 # library is relocated.
19546 hardcode_direct_absolute=$hardcode_direct_absolute_FC
19548 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19549 # into the resulting binary.
19550 hardcode_minus_L=$hardcode_minus_L_FC
19552 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19553 # into the resulting binary.
19554 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
19556 # Set to "yes" if building a shared library automatically hardcodes DIR
19557 # into the library and all subsequent libraries and executables linked
19558 # against it.
19559 hardcode_automatic=$hardcode_automatic_FC
19561 # Set to yes if linker adds runtime paths of dependent libraries
19562 # to runtime path list.
19563 inherit_rpath=$inherit_rpath_FC
19565 # Whether libtool must link a program against all its dependency libraries.
19566 link_all_deplibs=$link_all_deplibs_FC
19568 # Fix the shell variable \$srcfile for the compiler.
19569 fix_srcfile_path=$lt_fix_srcfile_path_FC
19571 # Set to "yes" if exported symbols are required.
19572 always_export_symbols=$always_export_symbols_FC
19574 # The commands to list exported symbols.
19575 export_symbols_cmds=$lt_export_symbols_cmds_FC
19577 # Symbols that should not be listed in the preloaded symbols.
19578 exclude_expsyms=$lt_exclude_expsyms_FC
19580 # Symbols that must always be exported.
19581 include_expsyms=$lt_include_expsyms_FC
19583 # Commands necessary for linking programs (against libraries) with templates.
19584 prelink_cmds=$lt_prelink_cmds_FC
19586 # Specify filename containing input files.
19587 file_list_spec=$lt_file_list_spec_FC
19589 # How to hardcode a shared library path into an executable.
19590 hardcode_action=$hardcode_action_FC
19592 # The directories searched by this compiler when creating a shared library.
19593 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
19595 # Dependencies to place before and after the objects being linked to
19596 # create a shared library.
19597 predep_objects=$lt_predep_objects_FC
19598 postdep_objects=$lt_postdep_objects_FC
19599 predeps=$lt_predeps_FC
19600 postdeps=$lt_postdeps_FC
19602 # The library search path used internally by the compiler when linking
19603 # a shared library.
19604 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
19606 # ### END LIBTOOL TAG CONFIG: FC
19607 _LT_EOF
19611 esac
19612 done # for ac_tag
19615 as_fn_exit 0
19616 _ACEOF
19617 ac_clean_files=$ac_clean_files_save
19619 test $ac_write_fail = 0 ||
19620 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19623 # configure is writing to config.log, and then calls config.status.
19624 # config.status does its own redirection, appending to config.log.
19625 # Unfortunately, on DOS this fails, as config.log is still kept open
19626 # by configure, so config.status won't be able to write to it; its
19627 # output is simply discarded. So we exec the FD to /dev/null,
19628 # effectively closing config.log, so it can be properly (re)opened and
19629 # appended to by config.status. When coming back to configure, we
19630 # need to make the FD available again.
19631 if test "$no_create" != yes; then
19632 ac_cs_success=:
19633 ac_config_status_args=
19634 test "$silent" = yes &&
19635 ac_config_status_args="$ac_config_status_args --quiet"
19636 exec 5>/dev/null
19637 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19638 exec 5>>config.log
19639 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19640 # would make configure fail if this is the last instruction.
19641 $ac_cs_success || as_fn_exit 1
19643 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19645 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}