Debian Codegraph @

build-frontend/configure

raw symbols SCIP
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for OPARI2 2.0.9.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # need to catch these variables, before unsetting them later
85 : ${AS_COLOR:=$CLICOLOR}; export AS_COLOR
86 : ${AS_COLOR_FORCE:=$CLICOLOR_FORCE}; export AS_COLOR_FORCE
87
88 as__red=
89 as__grn=
90 as__yel=
91 as__blu=
92 as__mag=
93 as__cya=
94 as__gry=
95 as__std=
96 as__color=no
97 if test "X$AS_COLOR_FORCE" = X0; then
98 as__color=no;
99 elif test "X$AS_COLOR_FORCE" = X1; then
100 as__color=yes
101 elif { test "X$TERM" != Xdumb || test "X$AS_COLOR" = X1; } && { test -t 1; } 2>/dev/null; then
102 as__color=yes
103 fi
104 if test $as__color = yes; then
105 as__red=''
106 as__grn=''
107 as__yel=''
108 as__blu=''
109 as__mag=''
110 as__cya=''
111 as__gry=''
112 as__std=''
113 fi
114
115 # IFS
116 # We need space, tab and new line, in precisely that order. Quoting is
117 # there to prevent editors from complaining about space-tab.
118 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
119 # splitting by setting IFS to empty value.)
120 IFS=" "" $as_nl"
121
122 # Find who we are. Look in the path if we contain no directory separator.
123 as_myself=
124 case $0 in #((
125 *[\\/]* ) as_myself=$0 ;;
126 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
127 for as_dir in $PATH
128 do
129 IFS=$as_save_IFS
130 test -z "$as_dir" && as_dir=.
131 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
132 done
133 IFS=$as_save_IFS
134
135 ;;
136 esac
137 # We did not find ourselves, most probably we were run as `sh COMMAND'
138 # in which case we are not to be found in the path.
139 if test "x$as_myself" = x; then
140 as_myself=$0
141 fi
142 if test ! -f "$as_myself"; then
143 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
144 exit 1
145 fi
146
147 # Unset variables that we do not need and which cause bugs (e.g. in
148 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
149 # suppresses any "Segmentation fault" message there. '((' could
150 # trigger a bug in pdksh 5.2.14.
151 for as_var in BASH_ENV ENV MAIL MAILPATH
152 do eval test x\${$as_var+set} = xset \
153 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
154 done
155 PS1='$ '
156 PS2='> '
157 PS4='+ '
158
159 # NLS nuisances.
160 LC_ALL=C
161 export LC_ALL
162 LANGUAGE=C
163 export LANGUAGE
164
165 # CDPATH.
166 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
167
168 # Use a proper internal environment variable to ensure we don't fall
169 # into an infinite loop, continuously re-executing ourselves.
170 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
171 _as_can_reexec=no; export _as_can_reexec;
172 # We cannot yet assume a decent shell, so we have to provide a
173 # neutralization value for shells without unset; and this also
174 # works around shells that cannot unset nonexistent variables.
175 # Preserve -v and -x to the replacement shell.
176 BASH_ENV=/dev/null
177 ENV=/dev/null
178 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
179 case $- in # ((((
180 *v*x* | *x*v* ) as_opts=-vx ;;
181 *v* ) as_opts=-v ;;
182 *x* ) as_opts=-x ;;
183 * ) as_opts= ;;
184 esac
185 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
186 # Admittedly, this is quite paranoid, since all the known shells bail
187 # out after a failed `exec'.
188 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
189 as_fn_exit 255
190 fi
191 # We don't want this to propagate to other subprocesses.
192 { _as_can_reexec=; unset _as_can_reexec;}
193 if test "x$CONFIG_SHELL" = x; then
194 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
195 emulate sh
196 NULLCMD=:
197 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
198 # is contrary to our usage. Disable this feature.
199 alias -g '\${1+\"\$@\"}'='\"\$@\"'
200 setopt NO_GLOB_SUBST
201 else
202 case \`(set -o) 2>/dev/null\` in #(
203 *posix*) :
204 set -o posix ;; #(
205 *) :
206 ;;
207 esac
208 fi
209 "
210 as_required="as_fn_return () { (exit \$1); }
211 as_fn_success () { as_fn_return 0; }
212 as_fn_failure () { as_fn_return 1; }
213 as_fn_ret_success () { return 0; }
214 as_fn_ret_failure () { return 1; }
215
216 exitcode=0
217 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
218 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
219 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
220 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
221 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
222
223 else
224 exitcode=1; echo positional parameters were not saved.
225 fi
226 test x\$exitcode = x0 || exit 1
227 test -x / || exit 1"
228 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
229 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
230 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
231 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
232 test \$(( 1 + 1 )) = 2 || exit 1
233
234 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
235 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
236 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
237 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
238 PATH=/empty FPATH=/empty; export PATH FPATH
239 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
240 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
241 if (eval "$as_required") 2>/dev/null; then :
242 as_have_required=yes
243 else
244 as_have_required=no
245 fi
246 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
247
248 else
249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
250 as_found=false
251 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
252 do
253 IFS=$as_save_IFS
254 test -z "$as_dir" && as_dir=.
255 as_found=:
256 case $as_dir in #(
257 /*)
258 for as_base in sh bash ksh sh5; do
259 # Try only shells that exist, to save several forks.
260 as_shell=$as_dir/$as_base
261 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
262 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
263 CONFIG_SHELL=$as_shell as_have_required=yes
264 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
265 break 2
266 fi
267 fi
268 done;;
269 esac
270 as_found=false
271 done
272 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
273 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
274 CONFIG_SHELL=$SHELL as_have_required=yes
275 fi; }
276 IFS=$as_save_IFS
277
278
279 if test "x$CONFIG_SHELL" != x; then :
280 export CONFIG_SHELL
281 # We cannot yet assume a decent shell, so we have to provide a
282 # neutralization value for shells without unset; and this also
283 # works around shells that cannot unset nonexistent variables.
284 # Preserve -v and -x to the replacement shell.
285 BASH_ENV=/dev/null
286 ENV=/dev/null
287 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
288 case $- in # ((((
289 *v*x* | *x*v* ) as_opts=-vx ;;
290 *v* ) as_opts=-v ;;
291 *x* ) as_opts=-x ;;
292 * ) as_opts= ;;
293 esac
294 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
295 # Admittedly, this is quite paranoid, since all the known shells bail
296 # out after a failed `exec'.
297 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
298 exit 255
299 fi
300
301 if test x$as_have_required = xno; then :
302 $as_echo "$0: This script requires a shell more modern than all"
303 $as_echo "$0: the shells that I found on your system."
304 if test x${ZSH_VERSION+set} = xset ; then
305 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
306 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
307 else
308 $as_echo "$0: Please tell [email protected] and
309 $0: [email protected] about your system, including any
310 $0: error possibly output before this message. Then install
311 $0: a modern shell, or manually run the script under such a
312 $0: shell if you do have one."
313 fi
314 exit 1
315 fi
316 fi
317 fi
318 SHELL=${CONFIG_SHELL-/bin/sh}
319 export SHELL
320 # Unset more variables known to interfere with behavior of common tools.
321 CLICOLOR_FORCE= GREP_OPTIONS=
322 unset CLICOLOR_FORCE GREP_OPTIONS
323
324 ## --------------------- ##
325 ## M4sh Shell Functions. ##
326 ## --------------------- ##
327 # as_fn_unset VAR
328 # ---------------
329 # Portably unset VAR.
330 as_fn_unset ()
331 {
332 { eval $1=; unset $1;}
333 }
334 as_unset=as_fn_unset
335
336 # as_fn_set_status STATUS
337 # -----------------------
338 # Set $? to STATUS, without forking.
339 as_fn_set_status ()
340 {
341 return $1
342 } # as_fn_set_status
343
344 # as_fn_exit STATUS
345 # -----------------
346 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
347 as_fn_exit ()
348 {
349 set +e
350 as_fn_set_status $1
351 exit $1
352 } # as_fn_exit
353
354 # as_fn_mkdir_p
355 # -------------
356 # Create "$as_dir" as a directory, including parents if necessary.
357 as_fn_mkdir_p ()
358 {
359
360 case $as_dir in #(
361 -*) as_dir=./$as_dir;;
362 esac
363 test -d "$as_dir" || eval $as_mkdir_p || {
364 as_dirs=
365 while :; do
366 case $as_dir in #(
367 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
368 *) as_qdir=$as_dir;;
369 esac
370 as_dirs="'$as_qdir' $as_dirs"
371 as_dir=`$as_dirname -- "$as_dir" ||
372 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
373 X"$as_dir" : 'X\(//\)[^/]' \| \
374 X"$as_dir" : 'X\(//\)$' \| \
375 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
376 $as_echo X"$as_dir" |
377 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
378 s//\1/
379 q
380 }
381 /^X\(\/\/\)[^/].*/{
382 s//\1/
383 q
384 }
385 /^X\(\/\/\)$/{
386 s//\1/
387 q
388 }
389 /^X\(\/\).*/{
390 s//\1/
391 q
392 }
393 s/.*/./; q'`
394 test -d "$as_dir" && break
395 done
396 test -z "$as_dirs" || eval "mkdir $as_dirs"
397 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
398
399
400 } # as_fn_mkdir_p
401
402 # as_fn_executable_p FILE
403 # -----------------------
404 # Test if FILE is an executable regular file.
405 as_fn_executable_p ()
406 {
407 test -f "$1" && test -x "$1"
408 } # as_fn_executable_p
409 # as_fn_append VAR VALUE
410 # ----------------------
411 # Append the text in VALUE to the end of the definition contained in VAR. Take
412 # advantage of any shell optimizations that allow amortized linear growth over
413 # repeated appends, instead of the typical quadratic growth present in naive
414 # implementations.
415 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
416 eval 'as_fn_append ()
417 {
418 eval $1+=\$2
419 }'
420 else
421 as_fn_append ()
422 {
423 eval $1=\$$1\$2
424 }
425 fi # as_fn_append
426
427 # as_fn_arith ARG...
428 # ------------------
429 # Perform arithmetic evaluation on the ARGs, and store the result in the
430 # global $as_val. Take advantage of shells that can avoid forks. The arguments
431 # must be portable across $(()) and expr.
432 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
433 eval 'as_fn_arith ()
434 {
435 as_val=$(( $* ))
436 }'
437 else
438 as_fn_arith ()
439 {
440 as_val=`expr "$@" || test $? -eq 1`
441 }
442 fi # as_fn_arith
443
444
445 # as_fn_error STATUS ERROR [LINENO LOG_FD]
446 # ----------------------------------------
447 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
448 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
449 # script with STATUS, using 1 if that was 0.
450 as_fn_error ()
451 {
452 as_status=$1; test $as_status -eq 0 && as_status=1
453 if test "$4"; then
454 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
455 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
456 fi
457 $as_echo "$as_me: ${as__red}error: $2${as__std}" >&2
458 as_fn_exit $as_status
459 } # as_fn_error
460
461 if expr a : '\(a\)' >/dev/null 2>&1 &&
462 test "X`expr 00001 : '.*\(...\)'`" = X001; then
463 as_expr=expr
464 else
465 as_expr=false
466 fi
467
468 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
469 as_basename=basename
470 else
471 as_basename=false
472 fi
473
474 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
475 as_dirname=dirname
476 else
477 as_dirname=false
478 fi
479
480 as_me=`$as_basename -- "$0" ||
481 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
482 X"$0" : 'X\(//\)$' \| \
483 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
484 $as_echo X/"$0" |
485 sed '/^.*\/\([^/][^/]*\)\/*$/{
486 s//\1/
487 q
488 }
489 /^X\/\(\/\/\)$/{
490 s//\1/
491 q
492 }
493 /^X\/\(\/\).*/{
494 s//\1/
495 q
496 }
497 s/.*/./; q'`
498
499 # Avoid depending upon Character Ranges.
500 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
501 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
502 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
503 as_cr_digits='0123456789'
504 as_cr_alnum=$as_cr_Letters$as_cr_digits
505
506
507 as_lineno_1=$LINENO as_lineno_1a=$LINENO
508 as_lineno_2=$LINENO as_lineno_2a=$LINENO
509 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
510 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
511 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
512 sed -n '
513 p
514 /[$]LINENO/=
515 ' <$as_myself |
516 sed '
517 s/[$]LINENO.*/&-/
518 t lineno
519 b
520 :lineno
521 N
522 :loop
523 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
524 t loop
525 s/-\n.*//
526 ' >$as_me.lineno &&
527 chmod +x "$as_me.lineno" ||
528 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
529
530 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
531 # already done that, so ensure we don't try to do so again and fall
532 # in an infinite loop. This has already happened in practice.
533 _as_can_reexec=no; export _as_can_reexec
534 # Don't try to exec as it changes $[0], causing all sort of problems
535 # (the dirname of $[0] is not the place where we might find the
536 # original and so on. Autoconf is especially sensitive to this).
537 . "./$as_me.lineno"
538 # Exit status is that of the last command.
539 exit
540 }
541
542 ECHO_C= ECHO_N= ECHO_T=
543 case `echo -n x` in #(((((
544 -n*)
545 case `echo 'xy\c'` in
546 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
547 xy) ECHO_C='\c';;
548 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
549 ECHO_T=' ';;
550 esac;;
551 *)
552 ECHO_N='-n';;
553 esac
554
555 rm -f conf$$ conf$$.exe conf$$.file
556 if test -d conf$$.dir; then
557 rm -f conf$$.dir/conf$$.file
558 else
559 rm -f conf$$.dir
560 mkdir conf$$.dir 2>/dev/null
561 fi
562 if (echo >conf$$.file) 2>/dev/null; then
563 if ln -s conf$$.file conf$$ 2>/dev/null; then
564 as_ln_s='ln -s'
565 # ... but there are two gotchas:
566 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
567 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
568 # In both cases, we have to default to `cp -pR'.
569 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
570 as_ln_s='cp -pR'
571 elif ln conf$$.file conf$$ 2>/dev/null; then
572 as_ln_s=ln
573 else
574 as_ln_s='cp -pR'
575 fi
576 else
577 as_ln_s='cp -pR'
578 fi
579 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
580 rmdir conf$$.dir 2>/dev/null
581
582 if mkdir -p . 2>/dev/null; then
583 as_mkdir_p='mkdir -p "$as_dir"'
584 else
585 test -d ./-p && rmdir ./-p
586 as_mkdir_p=false
587 fi
588
589 as_test_x='test -x'
590 as_executable_p=as_fn_executable_p
591
592 # Sed expression to map a string onto a valid CPP name.
593 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
594
595 # Sed expression to map a string onto a valid variable name.
596 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
597
598 SHELL=${CONFIG_SHELL-/bin/sh}
599
600
601 test -n "$DJDIR" || exec 7<&0 </dev/null
602 exec 6>&1
603
604 # Name of the host.
605 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
606 # so uname gets run too.
607 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
608
609 #
610 # Initializations.
611 #
612 ac_default_prefix=/usr/local
613 ac_clean_files=
614 ac_config_libobj_dir=.
615 LIBOBJS=
616 cross_compiling=no
617 subdirs=
618 MFLAGS=
619 MAKEFLAGS=
620
621 # Identity of this package.
622 PACKAGE_NAME='OPARI2'
623 PACKAGE_TARNAME='opari2'
624 PACKAGE_VERSION='2.0.9'
625 PACKAGE_STRING='OPARI2 2.0.9'
626 PACKAGE_BUGREPORT='[email protected]'
627 PACKAGE_URL=''
628
629 # Factoring default headers for most tests.
630 ac_includes_default="\
631 #include <stdio.h>
632 #ifdef HAVE_SYS_TYPES_H
633 # include <sys/types.h>
634 #endif
635 #ifdef HAVE_SYS_STAT_H
636 # include <sys/stat.h>
637 #endif
638 #ifdef STDC_HEADERS
639 # include <stdlib.h>
640 # include <stddef.h>
641 #else
642 # ifdef HAVE_STDLIB_H
643 # include <stdlib.h>
644 # endif
645 #endif
646 #ifdef HAVE_STRING_H
647 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
648 # include <memory.h>
649 # endif
650 # include <string.h>
651 #endif
652 #ifdef HAVE_STRINGS_H
653 # include <strings.h>
654 #endif
655 #ifdef HAVE_INTTYPES_H
656 # include <inttypes.h>
657 #endif
658 #ifdef HAVE_STDINT_H
659 # include <stdint.h>
660 #endif
661 #ifdef HAVE_UNISTD_H
662 # include <unistd.h>
663 #endif"
664
665 ac_subst_vars='am__EXEEXT_FALSE
666 am__EXEEXT_TRUE
667 LTLIBOBJS
668 LIBOBJS
669 LIBEXECDIR
670 LIBTOOL_DEPS
671 CXXCPP
672 CPP
673 LT_SYS_LIBRARY_PATH
674 OTOOL64
675 OTOOL
676 LIPO
677 NMEDIT
678 DSYMUTIL
679 MANIFEST_TOOL
680 RANLIB
681 DLLTOOL
682 OBJDUMP
683 LN_S
684 NM
685 ac_ct_DUMPBIN
686 DUMPBIN
687 LD
688 FGREP
689 EGREP
690 GREP
691 host_os
692 host_vendor
693 host_cpu
694 host
695 build_os
696 build_vendor
697 build_cpu
698 build
699 LIBTOOL
700 LIBRARY_AGE
701 LIBRARY_REVISION
702 LIBRARY_CURRENT
703 PACKAGE_SUFFIX
704 PACKAGE_BUGFIX
705 PACKAGE_MINOR
706 PACKAGE_MAJOR
707 FORTRAN_SUPPORT_ALLOCATABLE_FALSE
708 FORTRAN_SUPPORT_ALLOCATABLE_TRUE
709 OPENMP_FCFLAGS
710 OPENMP_FFLAGS
711 OPENMP_CXXFLAGS
712 HAVE_OPENMP_SUPPORT_FALSE
713 HAVE_OPENMP_SUPPORT_TRUE
714 OPENMP_CFLAGS
715 SCOREP_HAVE_F77_FALSE
716 SCOREP_HAVE_F77_TRUE
717 ac_ct_F77
718 FFLAGS
719 F77
720 SCOREP_HAVE_FC_FALSE
721 SCOREP_HAVE_FC_TRUE
722 FCFLAGS_F
723 ac_ct_FC
724 FCFLAGS
725 FC
726 HAVE_CXX11
727 am__fastdepCXX_FALSE
728 am__fastdepCXX_TRUE
729 CXXDEPMODE
730 ac_ct_CXX
731 CXXFLAGS
732 CXX
733 HAVE_C99
734 PLATFORM_CRAY_FALSE
735 PLATFORM_CRAY_TRUE
736 PLATFORM_FX100_FALSE
737 PLATFORM_FX100_TRUE
738 PLATFORM_FX10_FALSE
739 PLATFORM_FX10_TRUE
740 PLATFORM_K_FALSE
741 PLATFORM_K_TRUE
742 PLATFORM_MINGW_FALSE
743 PLATFORM_MINGW_TRUE
744 PLATFORM_MIC_FALSE
745 PLATFORM_MIC_TRUE
746 PLATFORM_MAC_FALSE
747 PLATFORM_MAC_TRUE
748 PLATFORM_SOLARIS_FALSE
749 PLATFORM_SOLARIS_TRUE
750 PLATFORM_LINUX_FALSE
751 PLATFORM_LINUX_TRUE
752 PLATFORM_CRAYGENERIC_FALSE
753 PLATFORM_CRAYGENERIC_TRUE
754 PLATFORM_CRAYXC_FALSE
755 PLATFORM_CRAYXC_TRUE
756 PLATFORM_CRAYXK_FALSE
757 PLATFORM_CRAYXK_TRUE
758 PLATFORM_CRAYXE_FALSE
759 PLATFORM_CRAYXE_TRUE
760 PLATFORM_CRAYXT_FALSE
761 PLATFORM_CRAYXT_TRUE
762 PLATFORM_BGQ_FALSE
763 PLATFORM_BGQ_TRUE
764 PLATFORM_BGP_FALSE
765 PLATFORM_BGP_TRUE
766 PLATFORM_BGL_FALSE
767 PLATFORM_BGL_TRUE
768 PLATFORM_AIX_FALSE
769 PLATFORM_AIX_TRUE
770 PLATFORM_ALTIX_FALSE
771 PLATFORM_ALTIX_TRUE
772 BUILD_TESTS_FALSE
773 BUILD_TESTS_TRUE
774 MAINT
775 MAINTAINER_MODE_FALSE
776 MAINTAINER_MODE_TRUE
777 am__fastdepCC_FALSE
778 am__fastdepCC_TRUE
779 CCDEPMODE
780 am__nodep
781 AMDEPBACKSLASH
782 AMDEP_FALSE
783 AMDEP_TRUE
784 am__quote
785 am__include
786 DEPDIR
787 OBJEXT
788 EXEEXT
789 ac_ct_CC
790 CPPFLAGS
791 LDFLAGS
792 CFLAGS
793 CC
794 ac_ct_AR
795 AR
796 AM_BACKSLASH
797 AM_DEFAULT_VERBOSITY
798 AM_DEFAULT_V
799 AM_V
800 am__untar
801 am__tar
802 AMTAR
803 am__leading_dot
804 SET_MAKE
805 AWK
806 mkdir_p
807 MKDIR_P
808 INSTALL_STRIP_PROGRAM
809 STRIP
810 install_sh
811 MAKEINFO
812 AUTOHEADER
813 AUTOMAKE
814 AUTOCONF
815 ACLOCAL
816 VERSION
817 PACKAGE
818 CYGPATH_W
819 am__isrc
820 INSTALL_DATA
821 INSTALL_SCRIPT
822 INSTALL_PROGRAM
823 SED
824 GIT_CONTROLLED_FALSE
825 GIT_CONTROLLED_TRUE
826 BINDIR
827 INCLUDEDIR
828 LIBS_FOR_BUILD
829 LDFLAGS_FOR_BUILD
830 FCFLAGS_FOR_BUILD
831 FFLAGS_FOR_BUILD
832 CXXFLAGS_FOR_BUILD
833 CFLAGS_FOR_BUILD
834 CPPFLAGS_FOR_BUILD
835 FC_FOR_BUILD
836 F77_FOR_BUILD
837 CXX_FOR_BUILD
838 CC_FOR_BUILD
839 LIBRARY_INTERFACE_VERSION
840 AFS_PACKAGE_BUILD_NAME
841 AFS_PACKAGE_BUILD_name
842 AFS_PACKAGE_TO_TOP
843 afs_srcdir
844 AFS_PACKAGE_NAME
845 AFS_PACKAGE_name
846 target_alias
847 host_alias
848 build_alias
849 LIBS
850 ECHO_T
851 ECHO_N
852 ECHO_C
853 DEFS
854 mandir
855 localedir
856 libdir
857 psdir
858 pdfdir
859 dvidir
860 htmldir
861 infodir
862 docdir
863 oldincludedir
864 includedir
865 runstatedir
866 localstatedir
867 sharedstatedir
868 sysconfdir
869 datadir
870 datarootdir
871 libexecdir
872 sbindir
873 bindir
874 program_transform_name
875 prefix
876 exec_prefix
877 PACKAGE_URL
878 PACKAGE_BUGREPORT
879 PACKAGE_STRING
880 PACKAGE_VERSION
881 PACKAGE_TARNAME
882 PACKAGE_NAME
883 PATH_SEPARATOR
884 SHELL'
885 ac_subst_files=''
886 ac_user_opts='
887 enable_option_checking
888 enable_silent_rules
889 enable_dependency_tracking
890 enable_maintainer_mode
891 enable_openmp
892 enable_shared
893 enable_static
894 with_pic
895 enable_fast_install
896 with_aix_soname
897 with_gnu_ld
898 with_sysroot
899 enable_libtool_lock
900 '
901 ac_precious_vars='build_alias
902 host_alias
903 target_alias
904 CC_FOR_BUILD
905 CXX_FOR_BUILD
906 F77_FOR_BUILD
907 FC_FOR_BUILD
908 CPPFLAGS_FOR_BUILD
909 CFLAGS_FOR_BUILD
910 CXXFLAGS_FOR_BUILD
911 FFLAGS_FOR_BUILD
912 FCFLAGS_FOR_BUILD
913 LDFLAGS_FOR_BUILD
914 LIBS_FOR_BUILD
915 CC
916 CFLAGS
917 LDFLAGS
918 LIBS
919 CPPFLAGS
920 CXX
921 CXXFLAGS
922 CCC
923 FC
924 FCFLAGS
925 F77
926 FFLAGS
927 LT_SYS_LIBRARY_PATH
928 CPP
929 CXXCPP'
930
931
932 # Initialize some variables set by options.
933 ac_init_help=
934 ac_init_version=false
935 ac_unrecognized_opts=
936 ac_unrecognized_sep=
937 # The variables have the same names as the options, with
938 # dashes changed to underlines.
939 cache_file=/dev/null
940 exec_prefix=NONE
941 no_create=
942 no_recursion=
943 prefix=NONE
944 program_prefix=NONE
945 program_suffix=NONE
946 program_transform_name=s,x,x,
947 silent=
948 site=
949 srcdir=
950 verbose=
951 x_includes=NONE
952 x_libraries=NONE
953
954 # Installation directory options.
955 # These are left unexpanded so users can "make install exec_prefix=/foo"
956 # and all the variables that are supposed to be based on exec_prefix
957 # by default will actually change.
958 # Use braces instead of parens because sh, perl, etc. also accept them.
959 # (The list follows the same order as the GNU Coding Standards.)
960 bindir='${exec_prefix}/bin'
961 sbindir='${exec_prefix}/sbin'
962 libexecdir='${exec_prefix}/libexec'
963 datarootdir='${prefix}/share'
964 datadir='${datarootdir}'
965 sysconfdir='${prefix}/etc'
966 sharedstatedir='${prefix}/com'
967 localstatedir='${prefix}/var'
968 runstatedir='${localstatedir}/run'
969 includedir='${prefix}/include'
970 oldincludedir='/usr/include'
971 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
972 infodir='${datarootdir}/info'
973 htmldir='${docdir}'
974 dvidir='${docdir}'
975 pdfdir='${docdir}'
976 psdir='${docdir}'
977 libdir='${exec_prefix}/lib'
978 localedir='${datarootdir}/locale'
979 mandir='${datarootdir}/man'
980
981 ac_prev=
982 ac_dashdash=
983 for ac_option
984 do
985 # If the previous option needs an argument, assign it.
986 if test -n "$ac_prev"; then
987 eval $ac_prev=\$ac_option
988 ac_prev=
989 continue
990 fi
991
992 case $ac_option in
993 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
994 *=) ac_optarg= ;;
995 *) ac_optarg=yes ;;
996 esac
997
998 # Accept the important Cygnus configure options, so we can diagnose typos.
999
1000 case $ac_dashdash$ac_option in
1001 --)
1002 ac_dashdash=yes ;;
1003
1004 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1005 ac_prev=bindir ;;
1006 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1007 bindir=$ac_optarg ;;
1008
1009 -build | --build | --buil | --bui | --bu)
1010 ac_prev=build_alias ;;
1011 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1012 build_alias=$ac_optarg ;;
1013
1014 -cache-file | --cache-file | --cache-fil | --cache-fi \
1015 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1016 ac_prev=cache_file ;;
1017 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1018 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1019 cache_file=$ac_optarg ;;
1020
1021 --config-cache | -C)
1022 cache_file=config.cache ;;
1023
1024 -datadir | --datadir | --datadi | --datad)
1025 ac_prev=datadir ;;
1026 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1027 datadir=$ac_optarg ;;
1028
1029 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1030 | --dataroo | --dataro | --datar)
1031 ac_prev=datarootdir ;;
1032 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1033 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1034 datarootdir=$ac_optarg ;;
1035
1036 -disable-* | --disable-*)
1037 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1038 # Reject names that are not valid shell variable names.
1039 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1040 as_fn_error $? "invalid feature name: $ac_useropt"
1041 ac_useropt_orig=$ac_useropt
1042 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1043 case $ac_user_opts in
1044 *"
1045 "enable_$ac_useropt"
1046 "*) ;;
1047 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1048 ac_unrecognized_sep=', ';;
1049 esac
1050 eval enable_$ac_useropt=no ;;
1051
1052 -docdir | --docdir | --docdi | --doc | --do)
1053 ac_prev=docdir ;;
1054 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1055 docdir=$ac_optarg ;;
1056
1057 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1058 ac_prev=dvidir ;;
1059 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1060 dvidir=$ac_optarg ;;
1061
1062 -enable-* | --enable-*)
1063 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1064 # Reject names that are not valid shell variable names.
1065 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1066 as_fn_error $? "invalid feature name: $ac_useropt"
1067 ac_useropt_orig=$ac_useropt
1068 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1069 case $ac_user_opts in
1070 *"
1071 "enable_$ac_useropt"
1072 "*) ;;
1073 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1074 ac_unrecognized_sep=', ';;
1075 esac
1076 eval enable_$ac_useropt=\$ac_optarg ;;
1077
1078 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1079 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1080 | --exec | --exe | --ex)
1081 ac_prev=exec_prefix ;;
1082 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1083 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1084 | --exec=* | --exe=* | --ex=*)
1085 exec_prefix=$ac_optarg ;;
1086
1087 -gas | --gas | --ga | --g)
1088 # Obsolete; use --with-gas.
1089 with_gas=yes ;;
1090
1091 -help | --help | --hel | --he | -h)
1092 ac_init_help=long ;;
1093 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1094 ac_init_help=recursive ;;
1095 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1096 ac_init_help=short ;;
1097
1098 -host | --host | --hos | --ho)
1099 ac_prev=host_alias ;;
1100 -host=* | --host=* | --hos=* | --ho=*)
1101 host_alias=$ac_optarg ;;
1102
1103 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1104 ac_prev=htmldir ;;
1105 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1106 | --ht=*)
1107 htmldir=$ac_optarg ;;
1108
1109 -includedir | --includedir | --includedi | --included | --include \
1110 | --includ | --inclu | --incl | --inc)
1111 ac_prev=includedir ;;
1112 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1113 | --includ=* | --inclu=* | --incl=* | --inc=*)
1114 includedir=$ac_optarg ;;
1115
1116 -infodir | --infodir | --infodi | --infod | --info | --inf)
1117 ac_prev=infodir ;;
1118 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1119 infodir=$ac_optarg ;;
1120
1121 -libdir | --libdir | --libdi | --libd)
1122 ac_prev=libdir ;;
1123 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1124 libdir=$ac_optarg ;;
1125
1126 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1127 | --libexe | --libex | --libe)
1128 ac_prev=libexecdir ;;
1129 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1130 | --libexe=* | --libex=* | --libe=*)
1131 libexecdir=$ac_optarg ;;
1132
1133 -localedir | --localedir | --localedi | --localed | --locale)
1134 ac_prev=localedir ;;
1135 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1136 localedir=$ac_optarg ;;
1137
1138 -localstatedir | --localstatedir | --localstatedi | --localstated \
1139 | --localstate | --localstat | --localsta | --localst | --locals)
1140 ac_prev=localstatedir ;;
1141 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1142 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1143 localstatedir=$ac_optarg ;;
1144
1145 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1146 ac_prev=mandir ;;
1147 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1148 mandir=$ac_optarg ;;
1149
1150 -nfp | --nfp | --nf)
1151 # Obsolete; use --without-fp.
1152 with_fp=no ;;
1153
1154 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1155 | --no-cr | --no-c | -n)
1156 no_create=yes ;;
1157
1158 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1159 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1160 no_recursion=yes ;;
1161
1162 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1163 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1164 | --oldin | --oldi | --old | --ol | --o)
1165 ac_prev=oldincludedir ;;
1166 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1167 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1168 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1169 oldincludedir=$ac_optarg ;;
1170
1171 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1172 ac_prev=prefix ;;
1173 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1174 prefix=$ac_optarg ;;
1175
1176 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1177 | --program-pre | --program-pr | --program-p)
1178 ac_prev=program_prefix ;;
1179 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1180 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1181 program_prefix=$ac_optarg ;;
1182
1183 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1184 | --program-suf | --program-su | --program-s)
1185 ac_prev=program_suffix ;;
1186 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1187 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1188 program_suffix=$ac_optarg ;;
1189
1190 -program-transform-name | --program-transform-name \
1191 | --program-transform-nam | --program-transform-na \
1192 | --program-transform-n | --program-transform- \
1193 | --program-transform | --program-transfor \
1194 | --program-transfo | --program-transf \
1195 | --program-trans | --program-tran \
1196 | --progr-tra | --program-tr | --program-t)
1197 ac_prev=program_transform_name ;;
1198 -program-transform-name=* | --program-transform-name=* \
1199 | --program-transform-nam=* | --program-transform-na=* \
1200 | --program-transform-n=* | --program-transform-=* \
1201 | --program-transform=* | --program-transfor=* \
1202 | --program-transfo=* | --program-transf=* \
1203 | --program-trans=* | --program-tran=* \
1204 | --progr-tra=* | --program-tr=* | --program-t=*)
1205 program_transform_name=$ac_optarg ;;
1206
1207 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1208 ac_prev=pdfdir ;;
1209 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1210 pdfdir=$ac_optarg ;;
1211
1212 -psdir | --psdir | --psdi | --psd | --ps)
1213 ac_prev=psdir ;;
1214 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1215 psdir=$ac_optarg ;;
1216
1217 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1218 | -silent | --silent | --silen | --sile | --sil)
1219 silent=yes ;;
1220
1221 -runstatedir | --runstatedir | --runstatedi | --runstated \
1222 | --runstate | --runstat | --runsta | --runst | --runs \
1223 | --run | --ru | --r)
1224 ac_prev=runstatedir ;;
1225 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1226 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1227 | --run=* | --ru=* | --r=*)
1228 runstatedir=$ac_optarg ;;
1229
1230 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1231 ac_prev=sbindir ;;
1232 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1233 | --sbi=* | --sb=*)
1234 sbindir=$ac_optarg ;;
1235
1236 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1237 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1238 | --sharedst | --shareds | --shared | --share | --shar \
1239 | --sha | --sh)
1240 ac_prev=sharedstatedir ;;
1241 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1242 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1243 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1244 | --sha=* | --sh=*)
1245 sharedstatedir=$ac_optarg ;;
1246
1247 -site | --site | --sit)
1248 ac_prev=site ;;
1249 -site=* | --site=* | --sit=*)
1250 site=$ac_optarg ;;
1251
1252 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1253 ac_prev=srcdir ;;
1254 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1255 srcdir=$ac_optarg ;;
1256
1257 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1258 | --syscon | --sysco | --sysc | --sys | --sy)
1259 ac_prev=sysconfdir ;;
1260 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1261 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1262 sysconfdir=$ac_optarg ;;
1263
1264 -target | --target | --targe | --targ | --tar | --ta | --t)
1265 ac_prev=target_alias ;;
1266 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1267 target_alias=$ac_optarg ;;
1268
1269 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1270 verbose=yes ;;
1271
1272 -version | --version | --versio | --versi | --vers | -V)
1273 ac_init_version=: ;;
1274
1275 -with-* | --with-*)
1276 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1277 # Reject names that are not valid shell variable names.
1278 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1279 as_fn_error $? "invalid package name: $ac_useropt"
1280 ac_useropt_orig=$ac_useropt
1281 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1282 case $ac_user_opts in
1283 *"
1284 "with_$ac_useropt"
1285 "*) ;;
1286 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1287 ac_unrecognized_sep=', ';;
1288 esac
1289 eval with_$ac_useropt=\$ac_optarg ;;
1290
1291 -without-* | --without-*)
1292 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1293 # Reject names that are not valid shell variable names.
1294 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1295 as_fn_error $? "invalid package name: $ac_useropt"
1296 ac_useropt_orig=$ac_useropt
1297 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1298 case $ac_user_opts in
1299 *"
1300 "with_$ac_useropt"
1301 "*) ;;
1302 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1303 ac_unrecognized_sep=', ';;
1304 esac
1305 eval with_$ac_useropt=no ;;
1306
1307 --x)
1308 # Obsolete; use --with-x.
1309 with_x=yes ;;
1310
1311 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1312 | --x-incl | --x-inc | --x-in | --x-i)
1313 ac_prev=x_includes ;;
1314 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1315 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1316 x_includes=$ac_optarg ;;
1317
1318 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1319 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1320 ac_prev=x_libraries ;;
1321 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1322 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1323 x_libraries=$ac_optarg ;;
1324
1325 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1326 Try \`$0 --help' for more information"
1327 ;;
1328
1329 *=*)
1330 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1331 # Reject names that are not valid shell variable names.
1332 case $ac_envvar in #(
1333 '' | [0-9]* | *[!_$as_cr_alnum]* )
1334 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1335 esac
1336 eval $ac_envvar=\$ac_optarg
1337 export $ac_envvar ;;
1338
1339 *)
1340 # FIXME: should be removed in autoconf 3.0.
1341 $as_echo "$as_me: ${as__yel}WARNING: you should use --build, --host, --target${as__std}" >&2
1342 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1343 $as_echo "$as_me: ${as__yel}WARNING: invalid host type: $ac_option${as__std}" >&2
1344 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1345 ;;
1346
1347 esac
1348 done
1349
1350 if test -n "$ac_prev"; then
1351 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1352 as_fn_error $? "missing argument to $ac_option"
1353 fi
1354
1355 if test -n "$ac_unrecognized_opts"; then
1356 case $enable_option_checking in
1357 no) ;;
1358 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1359 *) $as_echo "$as_me: ${as__yel}WARNING: unrecognized options: $ac_unrecognized_opts${as__std}" >&2 ;;
1360 esac
1361 fi
1362
1363 # Check all directory arguments for consistency.
1364 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1365 datadir sysconfdir sharedstatedir localstatedir includedir \
1366 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1367 libdir localedir mandir runstatedir
1368 do
1369 eval ac_val=\$$ac_var
1370 # Remove trailing slashes.
1371 case $ac_val in
1372 */ )
1373 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1374 eval $ac_var=\$ac_val;;
1375 esac
1376 # Be sure to have absolute directory names.
1377 case $ac_val in
1378 [\\/$]* | ?:[\\/]* ) continue;;
1379 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1380 esac
1381 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1382 done
1383
1384 # There might be people who depend on the old broken behavior: `$host'
1385 # used to hold the argument of --host etc.
1386 # FIXME: To remove some day.
1387 build=$build_alias
1388 host=$host_alias
1389 target=$target_alias
1390
1391 # FIXME: To remove some day.
1392 if test "x$host_alias" != x; then
1393 if test "x$build_alias" = x; then
1394 cross_compiling=maybe
1395 elif test "x$build_alias" != "x$host_alias"; then
1396 cross_compiling=yes
1397 fi
1398 fi
1399
1400 ac_tool_prefix=
1401 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1402
1403 test "$silent" = yes && exec 6>/dev/null
1404
1405
1406 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1407 ac_ls_di=`ls -di .` &&
1408 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1409 as_fn_error $? "working directory cannot be determined"
1410 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1411 as_fn_error $? "pwd does not report name of working directory"
1412
1413
1414 # Find the source files, if location was not specified.
1415 if test -z "$srcdir"; then
1416 ac_srcdir_defaulted=yes
1417 # Try the directory containing this script, then the parent directory.
1418 ac_confdir=`$as_dirname -- "$as_myself" ||
1419 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1420 X"$as_myself" : 'X\(//\)[^/]' \| \
1421 X"$as_myself" : 'X\(//\)$' \| \
1422 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1423 $as_echo X"$as_myself" |
1424 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1425 s//\1/
1426 q
1427 }
1428 /^X\(\/\/\)[^/].*/{
1429 s//\1/
1430 q
1431 }
1432 /^X\(\/\/\)$/{
1433 s//\1/
1434 q
1435 }
1436 /^X\(\/\).*/{
1437 s//\1/
1438 q
1439 }
1440 s/.*/./; q'`
1441 srcdir=$ac_confdir
1442 if test ! -r "$srcdir/$ac_unique_file"; then
1443 srcdir=..
1444 fi
1445 else
1446 ac_srcdir_defaulted=no
1447 fi
1448 if test ! -r "$srcdir/$ac_unique_file"; then
1449 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1450 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1451 fi
1452 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1453 ac_abs_confdir=`(
1454 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1455 pwd)`
1456 # When building in place, set srcdir=.
1457 if test "$ac_abs_confdir" = "$ac_pwd"; then
1458 srcdir=.
1459 fi
1460 # Remove unnecessary trailing slashes from srcdir.
1461 # Double slashes in file names in object file debugging info
1462 # mess up M-x gdb in Emacs.
1463 case $srcdir in
1464 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1465 esac
1466 for ac_var in $ac_precious_vars; do
1467 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1468 eval ac_env_${ac_var}_value=\$${ac_var}
1469 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1470 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1471 done
1472
1473 #
1474 # Report the --help message.
1475 #
1476 if test "$ac_init_help" = "long"; then
1477 # Omit some internal or obsolete options to make the list less imposing.
1478 # This message is too long to be a string in the A/UX 3.1 sh.
1479 cat <<_ACEOF
1480 \`configure' configures OPARI2 2.0.9 to adapt to many kinds of systems.
1481
1482 Usage: $0 [OPTION]... [VAR=VALUE]...
1483
1484 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1485 VAR=VALUE. See below for descriptions of some of the useful variables.
1486
1487 Defaults for the options are specified in brackets.
1488
1489 Configuration:
1490 -h, --help display this help and exit
1491 --help=short display options specific to this package
1492 --help=recursive display the short help of all the included packages
1493 -V, --version display version information and exit
1494 -q, --quiet, --silent do not print \`checking ...' messages
1495 --cache-file=FILE cache test results in FILE [disabled]
1496 -C, --config-cache alias for \`--cache-file=config.cache'
1497 -n, --no-create do not create output files
1498 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1499
1500 Installation directories:
1501 --prefix=PREFIX install architecture-independent files in PREFIX
1502 [$ac_default_prefix]
1503 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1504 [PREFIX]
1505
1506 By default, \`make install' will install all the files in
1507 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1508 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1509 for instance \`--prefix=\$HOME'.
1510
1511 For better control, use the options below.
1512
1513 Fine tuning of the installation directories:
1514 --bindir=DIR user executables [EPREFIX/bin]
1515 --sbindir=DIR system admin executables [EPREFIX/sbin]
1516 --libexecdir=DIR program executables [EPREFIX/libexec]
1517 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1518 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1519 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1520 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1521 --libdir=DIR object code libraries [EPREFIX/lib]
1522 --includedir=DIR C header files [PREFIX/include]
1523 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1524 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1525 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1526 --infodir=DIR info documentation [DATAROOTDIR/info]
1527 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1528 --mandir=DIR man documentation [DATAROOTDIR/man]
1529 --docdir=DIR documentation root [DATAROOTDIR/doc/opari2]
1530 --htmldir=DIR html documentation [DOCDIR]
1531 --dvidir=DIR dvi documentation [DOCDIR]
1532 --pdfdir=DIR pdf documentation [DOCDIR]
1533 --psdir=DIR ps documentation [DOCDIR]
1534 _ACEOF
1535
1536 cat <<\_ACEOF
1537
1538 Program names:
1539 --program-prefix=PREFIX prepend PREFIX to installed program names
1540 --program-suffix=SUFFIX append SUFFIX to installed program names
1541 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1542
1543 System types:
1544 --build=BUILD configure for building on BUILD [guessed]
1545 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1546 _ACEOF
1547 fi
1548
1549 if test -n "$ac_init_help"; then
1550 case $ac_init_help in
1551 short | recursive ) echo "Configuration of OPARI2 2.0.9:";;
1552 esac
1553 cat <<\_ACEOF
1554
1555 Optional Features:
1556 --disable-option-checking ignore unrecognized --enable/--with options
1557 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1558 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1559 --enable-silent-rules less verbose build output (undo: "make V=1")
1560 --disable-silent-rules verbose build output (undo: "make V=0")
1561 --enable-dependency-tracking
1562 do not reject slow dependency extractors
1563 --disable-dependency-tracking
1564 speeds up one-time build
1565 --disable-maintainer-mode
1566 disable make rules and dependencies not useful (and
1567 sometimes confusing) to the casual installer
1568 --disable-openmp do not use OpenMP
1569 --enable-shared[=PKGS] build shared libraries [default=no]
1570 --enable-static[=PKGS] build static libraries [default=yes]
1571 --enable-fast-install[=PKGS]
1572 optimize for fast installation [default=yes]
1573 --disable-libtool-lock avoid locking (might break parallel builds)
1574
1575 Optional Packages:
1576 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1577 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1578 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1579 both]
1580 --with-aix-soname=aix|svr4|both
1581 shared library versioning (aka "SONAME") variant to
1582 provide on AIX, [default=aix].
1583 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1584 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1585 compiler's sysroot if not specified).
1586
1587 Some influential environment variables:
1588 CC_FOR_BUILD
1589 C compiler command for the frontend build
1590 CXX_FOR_BUILD
1591 C++ compiler command for the frontend build
1592 F77_FOR_BUILD
1593 Fortran 77 compiler command for the frontend build
1594 FC_FOR_BUILD
1595 Fortran compiler command for the frontend build
1596 CPPFLAGS_FOR_BUILD
1597 (Objective) C/C++ preprocessor flags for the frontend build,
1598 e.g. -I<include dir> if you have headers in a nonstandard
1599 directory <include dir>
1600 CFLAGS_FOR_BUILD
1601 C compiler flags for the frontend build
1602 CXXFLAGS_FOR_BUILD
1603 C++ compiler flags for the frontend build
1604 FFLAGS_FOR_BUILD
1605 Fortran 77 compiler flags for the frontend build
1606 FCFLAGS_FOR_BUILD
1607 Fortran compiler flags for the frontend build
1608 LDFLAGS_FOR_BUILD
1609 linker flags for the frontend build, e.g. -L<lib dir> if you
1610 have libraries in a nonstandard directory <lib dir>
1611 LIBS_FOR_BUILD
1612 libraries to pass to the linker for the frontend build, e.g.
1613 -l<library>
1614 CC C compiler command
1615 CFLAGS C compiler flags
1616 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1617 nonstandard directory <lib dir>
1618 LIBS libraries to pass to the linker, e.g. -l<library>
1619 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1620 you have headers in a nonstandard directory <include dir>
1621 CXX C++ compiler command
1622 CXXFLAGS C++ compiler flags
1623 FC Fortran compiler command
1624 FCFLAGS Fortran compiler flags
1625 F77 Fortran 77 compiler command
1626 FFLAGS Fortran 77 compiler flags
1627 LT_SYS_LIBRARY_PATH
1628 User-defined run-time library search path.
1629 CPP C preprocessor
1630 CXXCPP C++ preprocessor
1631
1632 Use these variables to override the choices made by `configure' or to help
1633 it to find libraries and programs with nonstandard names/locations.
1634
1635 Report bugs to <[email protected]>.
1636 _ACEOF
1637 ac_status=$?
1638 fi
1639
1640 if test "$ac_init_help" = "recursive"; then
1641 # If there are subdirs, report their specific --help.
1642 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1643 test -d "$ac_dir" ||
1644 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1645 continue
1646 ac_builddir=.
1647
1648 case "$ac_dir" in
1649 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1650 *)
1651 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1652 # A ".." for each directory in $ac_dir_suffix.
1653 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1654 case $ac_top_builddir_sub in
1655 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1656 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1657 esac ;;
1658 esac
1659 ac_abs_top_builddir=$ac_pwd
1660 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1661 # for backward compatibility:
1662 ac_top_builddir=$ac_top_build_prefix
1663
1664 case $srcdir in
1665 .) # We are building in place.
1666 ac_srcdir=.
1667 ac_top_srcdir=$ac_top_builddir_sub
1668 ac_abs_top_srcdir=$ac_pwd ;;
1669 [\\/]* | ?:[\\/]* ) # Absolute name.
1670 ac_srcdir=$srcdir$ac_dir_suffix;
1671 ac_top_srcdir=$srcdir
1672 ac_abs_top_srcdir=$srcdir ;;
1673 *) # Relative name.
1674 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1675 ac_top_srcdir=$ac_top_build_prefix$srcdir
1676 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1677 esac
1678 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1679
1680 cd "$ac_dir" || { ac_status=$?; continue; }
1681 # Check for guested configure.
1682 if test -f "$ac_srcdir/configure.gnu"; then
1683 echo &&
1684 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1685 elif test -f "$ac_srcdir/configure"; then
1686 echo &&
1687 $SHELL "$ac_srcdir/configure" --help=recursive
1688 else
1689 $as_echo "$as_me: ${as__yel}WARNING: no configuration information is in $ac_dir${as__std}" >&2
1690 fi || ac_status=$?
1691 cd "$ac_pwd" || { ac_status=$?; break; }
1692 done
1693 fi
1694
1695 test -n "$ac_init_help" && exit $ac_status
1696 if $ac_init_version; then
1697 cat <<\_ACEOF
1698 OPARI2 configure 2.0.9
1699 generated by GNU Autoconf 2.69
1700
1701 Copyright (C) 2012 Free Software Foundation, Inc.
1702 This configure script is free software; the Free Software Foundation
1703 gives unlimited permission to copy, distribute and modify it.
1704 _ACEOF
1705 exit
1706 fi
1707
1708 ## ------------------------ ##
1709 ## Autoconf initialization. ##
1710 ## ------------------------ ##
1711
1712 # ac_fn_c_try_compile LINENO
1713 # --------------------------
1714 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1715 ac_fn_c_try_compile ()
1716 {
1717 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718 rm -f conftest.$ac_objext
1719 if { { ac_try="$ac_compile"
1720 case "(($ac_try" in
1721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722 *) ac_try_echo=$ac_try;;
1723 esac
1724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725 $as_echo "$ac_try_echo"; } >&5
1726 (eval "$ac_compile") 2>conftest.err
1727 ac_status=$?
1728 if test -s conftest.err; then
1729 grep -v '^ *+' conftest.err >conftest.er1
1730 cat conftest.er1 >&5
1731 mv -f conftest.er1 conftest.err
1732 fi
1733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734 test $ac_status = 0; } && {
1735 test -z "$ac_c_werror_flag" ||
1736 test ! -s conftest.err
1737 } && test -s conftest.$ac_objext; then :
1738 ac_retval=0
1739 else
1740 $as_echo "$as_me: failed program was:" >&5
1741 sed 's/^/| /' conftest.$ac_ext >&5
1742
1743 ac_retval=1
1744 fi
1745 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1746 as_fn_set_status $ac_retval
1747
1748 } # ac_fn_c_try_compile
1749
1750 # ac_fn_c_try_run LINENO
1751 # ----------------------
1752 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1753 # that executables *can* be run.
1754 ac_fn_c_try_run ()
1755 {
1756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757 if { { ac_try="$ac_link"
1758 case "(($ac_try" in
1759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1760 *) ac_try_echo=$ac_try;;
1761 esac
1762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1763 $as_echo "$ac_try_echo"; } >&5
1764 (eval "$ac_link") 2>&5
1765 ac_status=$?
1766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1767 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1768 { { case "(($ac_try" in
1769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1770 *) ac_try_echo=$ac_try;;
1771 esac
1772 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1773 $as_echo "$ac_try_echo"; } >&5
1774 (eval "$ac_try") 2>&5
1775 ac_status=$?
1776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1777 test $ac_status = 0; }; }; then :
1778 ac_retval=0
1779 else
1780 $as_echo "$as_me: program exited with status $ac_status" >&5
1781 $as_echo "$as_me: failed program was:" >&5
1782 sed 's/^/| /' conftest.$ac_ext >&5
1783
1784 ac_retval=$ac_status
1785 fi
1786 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1787 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788 as_fn_set_status $ac_retval
1789
1790 } # ac_fn_c_try_run
1791
1792 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1793 # --------------------------------------------
1794 # Tries to find the compile-time value of EXPR in a program that includes
1795 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1796 # computed
1797 ac_fn_c_compute_int ()
1798 {
1799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800 if test "$cross_compiling" = yes; then
1801 # Depending upon the size, compute the lo and hi bounds.
1802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1803 /* end confdefs.h. */
1804 $4
1805 int
1806 main ()
1807 {
1808 static int test_array [1 - 2 * !(($2) >= 0)];
1809 test_array [0] = 0;
1810 return test_array [0];
1811
1812 ;
1813 return 0;
1814 }
1815 _ACEOF
1816 if ac_fn_c_try_compile "$LINENO"; then :
1817 ac_lo=0 ac_mid=0
1818 while :; do
1819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1820 /* end confdefs.h. */
1821 $4
1822 int
1823 main ()
1824 {
1825 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1826 test_array [0] = 0;
1827 return test_array [0];
1828
1829 ;
1830 return 0;
1831 }
1832 _ACEOF
1833 if ac_fn_c_try_compile "$LINENO"; then :
1834 ac_hi=$ac_mid; break
1835 else
1836 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1837 if test $ac_lo -le $ac_mid; then
1838 ac_lo= ac_hi=
1839 break
1840 fi
1841 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1842 fi
1843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1844 done
1845 else
1846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1847 /* end confdefs.h. */
1848 $4
1849 int
1850 main ()
1851 {
1852 static int test_array [1 - 2 * !(($2) < 0)];
1853 test_array [0] = 0;
1854 return test_array [0];
1855
1856 ;
1857 return 0;
1858 }
1859 _ACEOF
1860 if ac_fn_c_try_compile "$LINENO"; then :
1861 ac_hi=-1 ac_mid=-1
1862 while :; do
1863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1864 /* end confdefs.h. */
1865 $4
1866 int
1867 main ()
1868 {
1869 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1870 test_array [0] = 0;
1871 return test_array [0];
1872
1873 ;
1874 return 0;
1875 }
1876 _ACEOF
1877 if ac_fn_c_try_compile "$LINENO"; then :
1878 ac_lo=$ac_mid; break
1879 else
1880 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1881 if test $ac_mid -le $ac_hi; then
1882 ac_lo= ac_hi=
1883 break
1884 fi
1885 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1886 fi
1887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1888 done
1889 else
1890 ac_lo= ac_hi=
1891 fi
1892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1893 fi
1894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1895 # Binary search between lo and hi bounds.
1896 while test "x$ac_lo" != "x$ac_hi"; do
1897 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1899 /* end confdefs.h. */
1900 $4
1901 int
1902 main ()
1903 {
1904 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1905 test_array [0] = 0;
1906 return test_array [0];
1907
1908 ;
1909 return 0;
1910 }
1911 _ACEOF
1912 if ac_fn_c_try_compile "$LINENO"; then :
1913 ac_hi=$ac_mid
1914 else
1915 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1916 fi
1917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1918 done
1919 case $ac_lo in #((
1920 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1921 '') ac_retval=1 ;;
1922 esac
1923 else
1924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1925 /* end confdefs.h. */
1926 $4
1927 static long int longval () { return $2; }
1928 static unsigned long int ulongval () { return $2; }
1929 #include <stdio.h>
1930 #include <stdlib.h>
1931 int
1932 main ()
1933 {
1934
1935 FILE *f = fopen ("conftest.val", "w");
1936 if (! f)
1937 return 1;
1938 if (($2) < 0)
1939 {
1940 long int i = longval ();
1941 if (i != ($2))
1942 return 1;
1943 fprintf (f, "%ld", i);
1944 }
1945 else
1946 {
1947 unsigned long int i = ulongval ();
1948 if (i != ($2))
1949 return 1;
1950 fprintf (f, "%lu", i);
1951 }
1952 /* Do not output a trailing newline, as this causes \r\n confusion
1953 on some platforms. */
1954 return ferror (f) || fclose (f) != 0;
1955
1956 ;
1957 return 0;
1958 }
1959 _ACEOF
1960 if ac_fn_c_try_run "$LINENO"; then :
1961 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1962 else
1963 ac_retval=1
1964 fi
1965 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1966 conftest.$ac_objext conftest.beam conftest.$ac_ext
1967 rm -f conftest.val
1968
1969 fi
1970 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1971 as_fn_set_status $ac_retval
1972
1973 } # ac_fn_c_compute_int
1974
1975 # ac_fn_cxx_try_compile LINENO
1976 # ----------------------------
1977 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1978 ac_fn_cxx_try_compile ()
1979 {
1980 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1981 rm -f conftest.$ac_objext
1982 if { { ac_try="$ac_compile"
1983 case "(($ac_try" in
1984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1985 *) ac_try_echo=$ac_try;;
1986 esac
1987 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1988 $as_echo "$ac_try_echo"; } >&5
1989 (eval "$ac_compile") 2>conftest.err
1990 ac_status=$?
1991 if test -s conftest.err; then
1992 grep -v '^ *+' conftest.err >conftest.er1
1993 cat conftest.er1 >&5
1994 mv -f conftest.er1 conftest.err
1995 fi
1996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1997 test $ac_status = 0; } && {
1998 test -z "$ac_cxx_werror_flag" ||
1999 test ! -s conftest.err
2000 } && test -s conftest.$ac_objext; then :
2001 ac_retval=0
2002 else
2003 $as_echo "$as_me: failed program was:" >&5
2004 sed 's/^/| /' conftest.$ac_ext >&5
2005
2006 ac_retval=1
2007 fi
2008 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2009 as_fn_set_status $ac_retval
2010
2011 } # ac_fn_cxx_try_compile
2012
2013 # ac_fn_cxx_try_link LINENO
2014 # -------------------------
2015 # Try to link conftest.$ac_ext, and return whether this succeeded.
2016 ac_fn_cxx_try_link ()
2017 {
2018 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2019 rm -f conftest.$ac_objext conftest$ac_exeext
2020 if { { ac_try="$ac_link"
2021 case "(($ac_try" in
2022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2023 *) ac_try_echo=$ac_try;;
2024 esac
2025 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2026 $as_echo "$ac_try_echo"; } >&5
2027 (eval "$ac_link") 2>conftest.err
2028 ac_status=$?
2029 if test -s conftest.err; then
2030 grep -v '^ *+' conftest.err >conftest.er1
2031 cat conftest.er1 >&5
2032 mv -f conftest.er1 conftest.err
2033 fi
2034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2035 test $ac_status = 0; } && {
2036 test -z "$ac_cxx_werror_flag" ||
2037 test ! -s conftest.err
2038 } && test -s conftest$ac_exeext && {
2039 test "$cross_compiling" = yes ||
2040 test -x conftest$ac_exeext
2041 }; then :
2042 ac_retval=0
2043 else
2044 $as_echo "$as_me: failed program was:" >&5
2045 sed 's/^/| /' conftest.$ac_ext >&5
2046
2047 ac_retval=1
2048 fi
2049 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2050 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2051 # interfere with the next link command; also delete a directory that is
2052 # left behind by Apple's compiler. We do this before executing the actions.
2053 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2054 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2055 as_fn_set_status $ac_retval
2056
2057 } # ac_fn_cxx_try_link
2058
2059 # ac_fn_cxx_try_run LINENO
2060 # ------------------------
2061 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2062 # that executables *can* be run.
2063 ac_fn_cxx_try_run ()
2064 {
2065 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2066 if { { ac_try="$ac_link"
2067 case "(($ac_try" in
2068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2069 *) ac_try_echo=$ac_try;;
2070 esac
2071 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2072 $as_echo "$ac_try_echo"; } >&5
2073 (eval "$ac_link") 2>&5
2074 ac_status=$?
2075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2076 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2077 { { case "(($ac_try" in
2078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2079 *) ac_try_echo=$ac_try;;
2080 esac
2081 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2082 $as_echo "$ac_try_echo"; } >&5
2083 (eval "$ac_try") 2>&5
2084 ac_status=$?
2085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2086 test $ac_status = 0; }; }; then :
2087 ac_retval=0
2088 else
2089 $as_echo "$as_me: program exited with status $ac_status" >&5
2090 $as_echo "$as_me: failed program was:" >&5
2091 sed 's/^/| /' conftest.$ac_ext >&5
2092
2093 ac_retval=$ac_status
2094 fi
2095 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2096 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2097 as_fn_set_status $ac_retval
2098
2099 } # ac_fn_cxx_try_run
2100
2101 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2102 # ----------------------------------------------
2103 # Tries to find the compile-time value of EXPR in a program that includes
2104 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2105 # computed
2106 ac_fn_cxx_compute_int ()
2107 {
2108 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2109 if test "$cross_compiling" = yes; then
2110 # Depending upon the size, compute the lo and hi bounds.
2111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2112 /* end confdefs.h. */
2113 $4
2114 int
2115 main ()
2116 {
2117 static int test_array [1 - 2 * !(($2) >= 0)];
2118 test_array [0] = 0;
2119 return test_array [0];
2120
2121 ;
2122 return 0;
2123 }
2124 _ACEOF
2125 if ac_fn_cxx_try_compile "$LINENO"; then :
2126 ac_lo=0 ac_mid=0
2127 while :; do
2128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2129 /* end confdefs.h. */
2130 $4
2131 int
2132 main ()
2133 {
2134 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2135 test_array [0] = 0;
2136 return test_array [0];
2137
2138 ;
2139 return 0;
2140 }
2141 _ACEOF
2142 if ac_fn_cxx_try_compile "$LINENO"; then :
2143 ac_hi=$ac_mid; break
2144 else
2145 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2146 if test $ac_lo -le $ac_mid; then
2147 ac_lo= ac_hi=
2148 break
2149 fi
2150 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2151 fi
2152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2153 done
2154 else
2155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2156 /* end confdefs.h. */
2157 $4
2158 int
2159 main ()
2160 {
2161 static int test_array [1 - 2 * !(($2) < 0)];
2162 test_array [0] = 0;
2163 return test_array [0];
2164
2165 ;
2166 return 0;
2167 }
2168 _ACEOF
2169 if ac_fn_cxx_try_compile "$LINENO"; then :
2170 ac_hi=-1 ac_mid=-1
2171 while :; do
2172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2173 /* end confdefs.h. */
2174 $4
2175 int
2176 main ()
2177 {
2178 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2179 test_array [0] = 0;
2180 return test_array [0];
2181
2182 ;
2183 return 0;
2184 }
2185 _ACEOF
2186 if ac_fn_cxx_try_compile "$LINENO"; then :
2187 ac_lo=$ac_mid; break
2188 else
2189 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2190 if test $ac_mid -le $ac_hi; then
2191 ac_lo= ac_hi=
2192 break
2193 fi
2194 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2195 fi
2196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2197 done
2198 else
2199 ac_lo= ac_hi=
2200 fi
2201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2202 fi
2203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2204 # Binary search between lo and hi bounds.
2205 while test "x$ac_lo" != "x$ac_hi"; do
2206 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2208 /* end confdefs.h. */
2209 $4
2210 int
2211 main ()
2212 {
2213 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2214 test_array [0] = 0;
2215 return test_array [0];
2216
2217 ;
2218 return 0;
2219 }
2220 _ACEOF
2221 if ac_fn_cxx_try_compile "$LINENO"; then :
2222 ac_hi=$ac_mid
2223 else
2224 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2225 fi
2226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2227 done
2228 case $ac_lo in #((
2229 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2230 '') ac_retval=1 ;;
2231 esac
2232 else
2233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2234 /* end confdefs.h. */
2235 $4
2236 static long int longval () { return $2; }
2237 static unsigned long int ulongval () { return $2; }
2238 #include <stdio.h>
2239 #include <stdlib.h>
2240 int
2241 main ()
2242 {
2243
2244 FILE *f = fopen ("conftest.val", "w");
2245 if (! f)
2246 return 1;
2247 if (($2) < 0)
2248 {
2249 long int i = longval ();
2250 if (i != ($2))
2251 return 1;
2252 fprintf (f, "%ld", i);
2253 }
2254 else
2255 {
2256 unsigned long int i = ulongval ();
2257 if (i != ($2))
2258 return 1;
2259 fprintf (f, "%lu", i);
2260 }
2261 /* Do not output a trailing newline, as this causes \r\n confusion
2262 on some platforms. */
2263 return ferror (f) || fclose (f) != 0;
2264
2265 ;
2266 return 0;
2267 }
2268 _ACEOF
2269 if ac_fn_cxx_try_run "$LINENO"; then :
2270 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2271 else
2272 ac_retval=1
2273 fi
2274 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2275 conftest.$ac_objext conftest.beam conftest.$ac_ext
2276 rm -f conftest.val
2277
2278 fi
2279 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2280 as_fn_set_status $ac_retval
2281
2282 } # ac_fn_cxx_compute_int
2283
2284 # ac_fn_fc_try_compile LINENO
2285 # ---------------------------
2286 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2287 ac_fn_fc_try_compile ()
2288 {
2289 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2290 rm -f conftest.$ac_objext
2291 if { { ac_try="$ac_compile"
2292 case "(($ac_try" in
2293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2294 *) ac_try_echo=$ac_try;;
2295 esac
2296 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2297 $as_echo "$ac_try_echo"; } >&5
2298 (eval "$ac_compile") 2>conftest.err
2299 ac_status=$?
2300 if test -s conftest.err; then
2301 grep -v '^ *+' conftest.err >conftest.er1
2302 cat conftest.er1 >&5
2303 mv -f conftest.er1 conftest.err
2304 fi
2305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2306 test $ac_status = 0; } && {
2307 test -z "$ac_fc_werror_flag" ||
2308 test ! -s conftest.err
2309 } && test -s conftest.$ac_objext; then :
2310 ac_retval=0
2311 else
2312 $as_echo "$as_me: failed program was:" >&5
2313 sed 's/^/| /' conftest.$ac_ext >&5
2314
2315 ac_retval=1
2316 fi
2317 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2318 as_fn_set_status $ac_retval
2319
2320 } # ac_fn_fc_try_compile
2321
2322 # ac_fn_fc_try_link LINENO
2323 # ------------------------
2324 # Try to link conftest.$ac_ext, and return whether this succeeded.
2325 ac_fn_fc_try_link ()
2326 {
2327 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2328 rm -f conftest.$ac_objext conftest$ac_exeext
2329 if { { ac_try="$ac_link"
2330 case "(($ac_try" in
2331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2332 *) ac_try_echo=$ac_try;;
2333 esac
2334 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2335 $as_echo "$ac_try_echo"; } >&5
2336 (eval "$ac_link") 2>conftest.err
2337 ac_status=$?
2338 if test -s conftest.err; then
2339 grep -v '^ *+' conftest.err >conftest.er1
2340 cat conftest.er1 >&5
2341 mv -f conftest.er1 conftest.err
2342 fi
2343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2344 test $ac_status = 0; } && {
2345 test -z "$ac_fc_werror_flag" ||
2346 test ! -s conftest.err
2347 } && test -s conftest$ac_exeext && {
2348 test "$cross_compiling" = yes ||
2349 test -x conftest$ac_exeext
2350 }; then :
2351 ac_retval=0
2352 else
2353 $as_echo "$as_me: failed program was:" >&5
2354 sed 's/^/| /' conftest.$ac_ext >&5
2355
2356 ac_retval=1
2357 fi
2358 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2359 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2360 # interfere with the next link command; also delete a directory that is
2361 # left behind by Apple's compiler. We do this before executing the actions.
2362 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2363 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2364 as_fn_set_status $ac_retval
2365
2366 } # ac_fn_fc_try_link
2367
2368 # ac_fn_f77_try_compile LINENO
2369 # ----------------------------
2370 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2371 ac_fn_f77_try_compile ()
2372 {
2373 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2374 rm -f conftest.$ac_objext
2375 if { { ac_try="$ac_compile"
2376 case "(($ac_try" in
2377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2378 *) ac_try_echo=$ac_try;;
2379 esac
2380 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2381 $as_echo "$ac_try_echo"; } >&5
2382 (eval "$ac_compile") 2>conftest.err
2383 ac_status=$?
2384 if test -s conftest.err; then
2385 grep -v '^ *+' conftest.err >conftest.er1
2386 cat conftest.er1 >&5
2387 mv -f conftest.er1 conftest.err
2388 fi
2389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2390 test $ac_status = 0; } && {
2391 test -z "$ac_f77_werror_flag" ||
2392 test ! -s conftest.err
2393 } && test -s conftest.$ac_objext; then :
2394 ac_retval=0
2395 else
2396 $as_echo "$as_me: failed program was:" >&5
2397 sed 's/^/| /' conftest.$ac_ext >&5
2398
2399 ac_retval=1
2400 fi
2401 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2402 as_fn_set_status $ac_retval
2403
2404 } # ac_fn_f77_try_compile
2405
2406 # ac_fn_f77_try_link LINENO
2407 # -------------------------
2408 # Try to link conftest.$ac_ext, and return whether this succeeded.
2409 ac_fn_f77_try_link ()
2410 {
2411 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2412 rm -f conftest.$ac_objext conftest$ac_exeext
2413 if { { ac_try="$ac_link"
2414 case "(($ac_try" in
2415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2416 *) ac_try_echo=$ac_try;;
2417 esac
2418 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2419 $as_echo "$ac_try_echo"; } >&5
2420 (eval "$ac_link") 2>conftest.err
2421 ac_status=$?
2422 if test -s conftest.err; then
2423 grep -v '^ *+' conftest.err >conftest.er1
2424 cat conftest.er1 >&5
2425 mv -f conftest.er1 conftest.err
2426 fi
2427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2428 test $ac_status = 0; } && {
2429 test -z "$ac_f77_werror_flag" ||
2430 test ! -s conftest.err
2431 } && test -s conftest$ac_exeext && {
2432 test "$cross_compiling" = yes ||
2433 test -x conftest$ac_exeext
2434 }; then :
2435 ac_retval=0
2436 else
2437 $as_echo "$as_me: failed program was:" >&5
2438 sed 's/^/| /' conftest.$ac_ext >&5
2439
2440 ac_retval=1
2441 fi
2442 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2443 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2444 # interfere with the next link command; also delete a directory that is
2445 # left behind by Apple's compiler. We do this before executing the actions.
2446 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2447 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2448 as_fn_set_status $ac_retval
2449
2450 } # ac_fn_f77_try_link
2451
2452 # ac_fn_c_try_link LINENO
2453 # -----------------------
2454 # Try to link conftest.$ac_ext, and return whether this succeeded.
2455 ac_fn_c_try_link ()
2456 {
2457 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2458 rm -f conftest.$ac_objext conftest$ac_exeext
2459 if { { ac_try="$ac_link"
2460 case "(($ac_try" in
2461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2462 *) ac_try_echo=$ac_try;;
2463 esac
2464 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2465 $as_echo "$ac_try_echo"; } >&5
2466 (eval "$ac_link") 2>conftest.err
2467 ac_status=$?
2468 if test -s conftest.err; then
2469 grep -v '^ *+' conftest.err >conftest.er1
2470 cat conftest.er1 >&5
2471 mv -f conftest.er1 conftest.err
2472 fi
2473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2474 test $ac_status = 0; } && {
2475 test -z "$ac_c_werror_flag" ||
2476 test ! -s conftest.err
2477 } && test -s conftest$ac_exeext && {
2478 test "$cross_compiling" = yes ||
2479 test -x conftest$ac_exeext
2480 }; then :
2481 ac_retval=0
2482 else
2483 $as_echo "$as_me: failed program was:" >&5
2484 sed 's/^/| /' conftest.$ac_ext >&5
2485
2486 ac_retval=1
2487 fi
2488 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2489 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2490 # interfere with the next link command; also delete a directory that is
2491 # left behind by Apple's compiler. We do this before executing the actions.
2492 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2493 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2494 as_fn_set_status $ac_retval
2495
2496 } # ac_fn_c_try_link
2497
2498 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2499 # -------------------------------------------------------
2500 # Tests whether HEADER exists and can be compiled using the include files in
2501 # INCLUDES, setting the cache variable VAR accordingly.
2502 ac_fn_c_check_header_compile ()
2503 {
2504 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2506 $as_echo_n "checking for $2... " >&6; }
2507 if eval \${$3+:} false; then :
2508 $as_echo_n "(cached) " >&6
2509 else
2510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2511 /* end confdefs.h. */
2512 $4
2513 #include <$2>
2514 _ACEOF
2515 if ac_fn_c_try_compile "$LINENO"; then :
2516 eval "$3=yes"
2517 else
2518 eval "$3=no"
2519 fi
2520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2521 fi
2522 eval ac_res=\$$3
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2524 case "$ac_res" in #(
2525 yes|ok|yes[\ ,]*) :
2526 $as_echo "${as__grn}$ac_res${as__std}" >&6 ;; #(
2527 no|failed|unsupported|no[\ ,]*) :
2528 $as_echo "${as__red}$ac_res${as__std}" >&6 ;; #(
2529 *) :
2530 $as_echo "${as__blu}$ac_res${as__std}" >&6 ;;
2531 esac; }
2532 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2533
2534 } # ac_fn_c_check_header_compile
2535
2536 # ac_fn_c_try_cpp LINENO
2537 # ----------------------
2538 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2539 ac_fn_c_try_cpp ()
2540 {
2541 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2542 if { { ac_try="$ac_cpp conftest.$ac_ext"
2543 case "(($ac_try" in
2544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2545 *) ac_try_echo=$ac_try;;
2546 esac
2547 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2548 $as_echo "$ac_try_echo"; } >&5
2549 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2550 ac_status=$?
2551 if test -s conftest.err; then
2552 grep -v '^ *+' conftest.err >conftest.er1
2553 cat conftest.er1 >&5
2554 mv -f conftest.er1 conftest.err
2555 fi
2556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2557 test $ac_status = 0; } > conftest.i && {
2558 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2559 test ! -s conftest.err
2560 }; then :
2561 ac_retval=0
2562 else
2563 $as_echo "$as_me: failed program was:" >&5
2564 sed 's/^/| /' conftest.$ac_ext >&5
2565
2566 ac_retval=1
2567 fi
2568 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2569 as_fn_set_status $ac_retval
2570
2571 } # ac_fn_c_try_cpp
2572
2573 # ac_fn_c_check_func LINENO FUNC VAR
2574 # ----------------------------------
2575 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2576 ac_fn_c_check_func ()
2577 {
2578 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2580 $as_echo_n "checking for $2... " >&6; }
2581 if eval \${$3+:} false; then :
2582 $as_echo_n "(cached) " >&6
2583 else
2584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2585 /* end confdefs.h. */
2586 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2587 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2588 #define $2 innocuous_$2
2589
2590 /* System header to define __stub macros and hopefully few prototypes,
2591 which can conflict with char $2 (); below.
2592 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2593 <limits.h> exists even on freestanding compilers. */
2594
2595 #ifdef __STDC__
2596 # include <limits.h>
2597 #else
2598 # include <assert.h>
2599 #endif
2600
2601 #undef $2
2602
2603 /* Override any GCC internal prototype to avoid an error.
2604 Use char because int might match the return type of a GCC
2605 builtin and then its argument prototype would still apply. */
2606 #ifdef __cplusplus
2607 extern "C"
2608 #endif
2609 char $2 ();
2610 /* The GNU C library defines this for functions which it implements
2611 to always fail with ENOSYS. Some functions are actually named
2612 something starting with __ and the normal name is an alias. */
2613 #if defined __stub_$2 || defined __stub___$2
2614 choke me
2615 #endif
2616
2617 int
2618 main ()
2619 {
2620 return $2 ();
2621 ;
2622 return 0;
2623 }
2624 _ACEOF
2625 if ac_fn_c_try_link "$LINENO"; then :
2626 eval "$3=yes"
2627 else
2628 eval "$3=no"
2629 fi
2630 rm -f core conftest.err conftest.$ac_objext \
2631 conftest$ac_exeext conftest.$ac_ext
2632 fi
2633 eval ac_res=\$$3
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2635 case "$ac_res" in #(
2636 yes|ok|yes[\ ,]*) :
2637 $as_echo "${as__grn}$ac_res${as__std}" >&6 ;; #(
2638 no|failed|unsupported|no[\ ,]*) :
2639 $as_echo "${as__red}$ac_res${as__std}" >&6 ;; #(
2640 *) :
2641 $as_echo "${as__blu}$ac_res${as__std}" >&6 ;;
2642 esac; }
2643 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2644
2645 } # ac_fn_c_check_func
2646
2647 # ac_fn_cxx_try_cpp LINENO
2648 # ------------------------
2649 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2650 ac_fn_cxx_try_cpp ()
2651 {
2652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2653 if { { ac_try="$ac_cpp conftest.$ac_ext"
2654 case "(($ac_try" in
2655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2656 *) ac_try_echo=$ac_try;;
2657 esac
2658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2659 $as_echo "$ac_try_echo"; } >&5
2660 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2661 ac_status=$?
2662 if test -s conftest.err; then
2663 grep -v '^ *+' conftest.err >conftest.er1
2664 cat conftest.er1 >&5
2665 mv -f conftest.er1 conftest.err
2666 fi
2667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2668 test $ac_status = 0; } > conftest.i && {
2669 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2670 test ! -s conftest.err
2671 }; then :
2672 ac_retval=0
2673 else
2674 $as_echo "$as_me: failed program was:" >&5
2675 sed 's/^/| /' conftest.$ac_ext >&5
2676
2677 ac_retval=1
2678 fi
2679 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2680 as_fn_set_status $ac_retval
2681
2682 } # ac_fn_cxx_try_cpp
2683 cat >config.log <<_ACEOF
2684 This file contains any messages produced by compilers while
2685 running configure, to aid debugging if configure makes a mistake.
2686
2687 It was created by OPARI2 $as_me 2.0.9, which was
2688 generated by GNU Autoconf 2.69. Invocation command line was
2689
2690 $ $0 $@
2691
2692 _ACEOF
2693 exec 5>>config.log
2694 {
2695 cat <<_ASUNAME
2696 ## --------- ##
2697 ## Platform. ##
2698 ## --------- ##
2699
2700 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2701 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2702 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2703 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2704 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2705
2706 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2707 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2708
2709 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2710 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2711 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2712 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2713 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2714 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2715 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2716
2717 _ASUNAME
2718
2719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2720 for as_dir in $PATH
2721 do
2722 IFS=$as_save_IFS
2723 test -z "$as_dir" && as_dir=.
2724 $as_echo "PATH: $as_dir"
2725 done
2726 IFS=$as_save_IFS
2727
2728 } >&5
2729
2730 cat >&5 <<_ACEOF
2731
2732
2733 ## ----------- ##
2734 ## Core tests. ##
2735 ## ----------- ##
2736
2737 _ACEOF
2738
2739
2740 # Keep a trace of the command line.
2741 # Strip out --no-create and --no-recursion so they do not pile up.
2742 # Strip out --silent because we don't want to record it for future runs.
2743 # Also quote any args containing shell meta-characters.
2744 # Make two passes to allow for proper duplicate-argument suppression.
2745 ac_configure_args=
2746 ac_configure_args0=
2747 ac_configure_args1=
2748 ac_must_keep_next=false
2749 for ac_pass in 1 2
2750 do
2751 for ac_arg
2752 do
2753 case $ac_arg in
2754 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2755 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2756 | -silent | --silent | --silen | --sile | --sil)
2757 continue ;;
2758 *\'*)
2759 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2760 esac
2761 case $ac_pass in
2762 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2763 2)
2764 as_fn_append ac_configure_args1 " '$ac_arg'"
2765 if test $ac_must_keep_next = true; then
2766 ac_must_keep_next=false # Got value, back to normal.
2767 else
2768 case $ac_arg in
2769 *=* | --config-cache | -C | -disable-* | --disable-* \
2770 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2771 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2772 | -with-* | --with-* | -without-* | --without-* | --x)
2773 case "$ac_configure_args0 " in
2774 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2775 esac
2776 ;;
2777 -* ) ac_must_keep_next=true ;;
2778 esac
2779 fi
2780 as_fn_append ac_configure_args " '$ac_arg'"
2781 ;;
2782 esac
2783 done
2784 done
2785 { ac_configure_args0=; unset ac_configure_args0;}
2786 { ac_configure_args1=; unset ac_configure_args1;}
2787
2788 # When interrupted or exit'd, cleanup temporary files, and complete
2789 # config.log. We remove comments because anyway the quotes in there
2790 # would cause problems or look ugly.
2791 # WARNING: Use '\'' to represent an apostrophe within the trap.
2792 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2793 trap 'exit_status=$?
2794 # Save into config.log some information that might help in debugging.
2795 {
2796 echo
2797
2798 $as_echo "## ---------------- ##
2799 ## Cache variables. ##
2800 ## ---------------- ##"
2801 echo
2802 # The following way of writing the cache mishandles newlines in values,
2803 (
2804 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2805 eval ac_val=\$$ac_var
2806 case $ac_val in #(
2807 *${as_nl}*)
2808 case $ac_var in #(
2809 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2810 $as_echo "$as_me: ${as__yel}WARNING: cache variable $ac_var contains a newline${as__std}" >&2;} ;;
2811 esac
2812 case $ac_var in #(
2813 _ | IFS | as_nl) ;; #(
2814 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2815 *) { eval $ac_var=; unset $ac_var;} ;;
2816 esac ;;
2817 esac
2818 done
2819 (set) 2>&1 |
2820 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2821 *${as_nl}ac_space=\ *)
2822 sed -n \
2823 "s/'\''/'\''\\\\'\'''\''/g;
2824 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2825 ;; #(
2826 *)
2827 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2828 ;;
2829 esac |
2830 sort
2831 )
2832 echo
2833
2834 $as_echo "## ----------------- ##
2835 ## Output variables. ##
2836 ## ----------------- ##"
2837 echo
2838 for ac_var in $ac_subst_vars
2839 do
2840 eval ac_val=\$$ac_var
2841 case $ac_val in
2842 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2843 esac
2844 $as_echo "$ac_var='\''$ac_val'\''"
2845 done | sort
2846 echo
2847
2848 if test -n "$ac_subst_files"; then
2849 $as_echo "## ------------------- ##
2850 ## File substitutions. ##
2851 ## ------------------- ##"
2852 echo
2853 for ac_var in $ac_subst_files
2854 do
2855 eval ac_val=\$$ac_var
2856 case $ac_val in
2857 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2858 esac
2859 $as_echo "$ac_var='\''$ac_val'\''"
2860 done | sort
2861 echo
2862 fi
2863
2864 if test -s confdefs.h; then
2865 $as_echo "## ----------- ##
2866 ## confdefs.h. ##
2867 ## ----------- ##"
2868 echo
2869 cat confdefs.h
2870 echo
2871 fi
2872 test "$ac_signal" != 0 &&
2873 $as_echo "$as_me: caught signal $ac_signal"
2874 $as_echo "$as_me: exit $exit_status"
2875 } >&5
2876 rm -f core *.core core.conftest.* &&
2877 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2878 exit $exit_status
2879 ' 0
2880 for ac_signal in 1 2 13 15; do
2881 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2882 done
2883 ac_signal=0
2884
2885 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2886 rm -f -r conftest* confdefs.h
2887
2888 $as_echo "/* confdefs.h */" > confdefs.h
2889
2890 # Predefined preprocessor variables.
2891
2892 cat >>confdefs.h <<_ACEOF
2893 #define PACKAGE_NAME "$PACKAGE_NAME"
2894 _ACEOF
2895
2896 cat >>confdefs.h <<_ACEOF
2897 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2898 _ACEOF
2899
2900 cat >>confdefs.h <<_ACEOF
2901 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2902 _ACEOF
2903
2904 cat >>confdefs.h <<_ACEOF
2905 #define PACKAGE_STRING "$PACKAGE_STRING"
2906 _ACEOF
2907
2908 cat >>confdefs.h <<_ACEOF
2909 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2910 _ACEOF
2911
2912 cat >>confdefs.h <<_ACEOF
2913 #define PACKAGE_URL "$PACKAGE_URL"
2914 _ACEOF
2915
2916
2917 # Let the site file select an alternate cache file if it wants to.
2918 # Prefer an explicitly selected file to automatically selected ones.
2919 ac_site_file1=NONE
2920 ac_site_file2=NONE
2921 if test -n "$CONFIG_SITE"; then
2922 # We do not want a PATH search for config.site.
2923 case $CONFIG_SITE in #((
2924 -*) ac_site_file1=./$CONFIG_SITE;;
2925 */*) ac_site_file1=$CONFIG_SITE;;
2926 *) ac_site_file1=./$CONFIG_SITE;;
2927 esac
2928 elif test "x$prefix" != xNONE; then
2929 ac_site_file1=$prefix/share/config.site
2930 ac_site_file2=$prefix/etc/config.site
2931 else
2932 ac_site_file1=$ac_default_prefix/share/config.site
2933 ac_site_file2=$ac_default_prefix/etc/config.site
2934 fi
2935 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2936 do
2937 test "x$ac_site_file" = xNONE && continue
2938 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: info: loading site script $ac_site_file" >&5
2940 $as_echo "$as_me: ${as__blu}info: loading site script $ac_site_file${as__std}" >&2;}
2941 sed 's/^/| /' "$ac_site_file" >&5
2942 . "$ac_site_file" \
2943 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2944 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
2945 as_fn_error $? "failed to load site script $ac_site_file${as__std}
2946 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
2947 fi
2948 done
2949
2950 if test -r "$cache_file"; then
2951 # Some versions of bash will fail to source /dev/null (special files
2952 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2953 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: info: loading cache $cache_file" >&5
2955 $as_echo "$as_me: ${as__blu}info: loading cache $cache_file${as__std}" >&2;}
2956 case $cache_file in
2957 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2958 *) . "./$cache_file";;
2959 esac
2960 fi
2961 else
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: info: creating cache $cache_file" >&5
2963 $as_echo "$as_me: ${as__blu}info: creating cache $cache_file${as__std}" >&2;}
2964 >$cache_file
2965 fi
2966
2967 # Check that the precious variables saved in the cache have kept the same
2968 # value.
2969 ac_cache_corrupted=false
2970 for ac_var in $ac_precious_vars; do
2971 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2972 eval ac_new_set=\$ac_env_${ac_var}_set
2973 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2974 eval ac_new_val=\$ac_env_${ac_var}_value
2975 case $ac_old_set,$ac_new_set in
2976 set,)
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2978 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2979 ac_cache_corrupted=: ;;
2980 ,set)
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2982 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2983 ac_cache_corrupted=: ;;
2984 ,);;
2985 *)
2986 if test "x$ac_old_val" != "x$ac_new_val"; then
2987 # differences in whitespace do not lead to failure.
2988 ac_old_val_w=`echo x $ac_old_val`
2989 ac_new_val_w=`echo x $ac_new_val`
2990 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2992 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2993 ac_cache_corrupted=:
2994 else
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2996 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2997 eval $ac_var=\$ac_old_val
2998 fi
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3000 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3002 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3003 fi;;
3004 esac
3005 # Pass precious variables to config.status.
3006 if test "$ac_new_set" = set; then
3007 case $ac_new_val in
3008 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3009 *) ac_arg=$ac_var=$ac_new_val ;;
3010 esac
3011 case " $ac_configure_args " in
3012 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3013 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3014 esac
3015 fi
3016 done
3017 if $ac_cache_corrupted; then
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3019 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3021 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3022 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3023 fi
3024 ## -------------------- ##
3025 ## Main body of script. ##
3026 ## -------------------- ##
3027
3028 ac_ext=c
3029 ac_cpp='$CPP $CPPFLAGS'
3030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3033
3034
3035
3036
3037
3038
3039 AFS_PACKAGE_name=opari2
3040
3041
3042 AFS_PACKAGE_NAME=OPARI2
3043
3044
3045
3046 afs_srcdir=$srcdir
3047
3048
3049
3050
3051
3052
3053 $as_echo "#define AFS_PACKAGE_BUILD \"frontend\"" >>confdefs.h
3054
3055
3056
3057
3058 AFS_PACKAGE_TO_TOP=../
3059
3060
3061 case $srcdir in #(
3062 .) :
3063 afs_srcdir="../" ;; #(
3064 *) :
3065 afs_srcdir="${srcdir}/../" ;;
3066 esac
3067
3068 cat >>confdefs.h <<_ACEOF
3069 #define AFS_PACKAGE_SRCDIR "${afs_srcdir}"
3070 _ACEOF
3071
3072 afs_srcdir=${afs_srcdir%/}
3073
3074
3075 $as_echo "#define AFS_PACKAGE_BUILD_name frontend" >>confdefs.h
3076
3077 AFS_PACKAGE_BUILD_name=frontend
3078
3079
3080
3081 $as_echo "#define AFS_PACKAGE_BUILD_NAME FRONTEND" >>confdefs.h
3082
3083 AFS_PACKAGE_BUILD_NAME=FRONTEND
3084
3085
3086
3087 $as_echo "#define AFS_PACKAGE_name opari2" >>confdefs.h
3088
3089
3090
3091 $as_echo "#define AFS_PACKAGE_NAME OPARI2" >>confdefs.h
3092
3093
3094
3095 LIBRARY_INTERFACE_VERSION=3:0:0
3096
3097
3098 ac_aux_dir=
3099 for ac_dir in ../build-config "$srcdir"/../build-config; do
3100 if test -f "$ac_dir/install-sh"; then
3101 ac_aux_dir=$ac_dir
3102 ac_install_sh="$ac_aux_dir/install-sh -c"
3103 break
3104 elif test -f "$ac_dir/install.sh"; then
3105 ac_aux_dir=$ac_dir
3106 ac_install_sh="$ac_aux_dir/install.sh -c"
3107 break
3108 elif test -f "$ac_dir/shtool"; then
3109 ac_aux_dir=$ac_dir
3110 ac_install_sh="$ac_aux_dir/shtool install -c"
3111 break
3112 fi
3113 done
3114 if test -z "$ac_aux_dir"; then
3115 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../build-config \"$srcdir\"/../build-config" "$LINENO" 5
3116 fi
3117
3118 # These three variables are undocumented and unsupported,
3119 # and are intended to be withdrawn in a future Autoconf release.
3120 # They can cause serious problems if a builder's source tree is in a directory
3121 # whose full name contains unusual characters.
3122 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3123 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3124 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3125
3126
3127 ## See also ACLOCAL_AMFLAGS in Makefile.am.
3128
3129
3130 ac_config_headers="$ac_config_headers ../src/config-frontend.h"
3131
3132
3133
3134
3135 ac_scorep_frontend="yes"
3136 ac_scorep_backend="no"
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153 opari2_cross_build_args=""
3154
3155 if test "x${ac_cv_env_CC_FOR_BUILD_set}" = "xset"; then :
3156 CC=$ac_cv_env_CC_FOR_BUILD_value
3157 fi
3158
3159 if test "x${ac_cv_env_CXX_FOR_BUILD_set}" = "xset"; then :
3160 CXX=$ac_cv_env_CXX_FOR_BUILD_value
3161 fi
3162
3163 if test "x${ac_cv_env_F77_FOR_BUILD_set}" = "xset"; then :
3164 F77=$ac_cv_env_F77_FOR_BUILD_value
3165 fi
3166
3167 if test "x${ac_cv_env_FC_FOR_BUILD_set}" = "xset"; then :
3168 FC=$ac_cv_env_FC_FOR_BUILD_value
3169 fi
3170
3171 if test "x${ac_cv_env_CPPFLAGS_FOR_BUILD_set}" = "xset"; then :
3172 CPPFLAGS=$ac_cv_env_CPPFLAGS_FOR_BUILD_value
3173 fi
3174
3175 if test "x${ac_cv_env_CFLAGS_FOR_BUILD_set}" = "xset"; then :
3176 CFLAGS=$ac_cv_env_CFLAGS_FOR_BUILD_value
3177 fi
3178
3179 if test "x${ac_cv_env_CXXFLAGS_FOR_BUILD_set}" = "xset"; then :
3180 CXXFLAGS=$ac_cv_env_CXXFLAGS_FOR_BUILD_value
3181 fi
3182
3183 if test "x${ac_cv_env_FFLAGS_FOR_BUILD_set}" = "xset"; then :
3184 FFLAGS=$ac_cv_env_FFLAGS_FOR_BUILD_value
3185 fi
3186
3187 if test "x${ac_cv_env_FCFLAGS_FOR_BUILD_set}" = "xset"; then :
3188 FCFLAGS=$ac_cv_env_FCFLAGS_FOR_BUILD_value
3189 fi
3190
3191 if test "x${ac_cv_env_LDFLAGS_FOR_BUILD_set}" = "xset"; then :
3192 LDFLAGS=$ac_cv_env_LDFLAGS_FOR_BUILD_value
3193 fi
3194
3195 if test "x${ac_cv_env_LIBS_FOR_BUILD_set}" = "xset"; then :
3196 LIBS=$ac_cv_env_LIBS_FOR_BUILD_value
3197 fi
3198
3199
3200
3201 if test "x${ac_cv_env_CC_set}" != "xset"; then
3202 as_fn_error 1 "argument CC not provided in configure call." "$LINENO" 5
3203 fi
3204
3205
3206 if test "x${ac_cv_env_CXX_set}" != "xset"; then
3207 as_fn_error 1 "argument CXX not provided in configure call." "$LINENO" 5
3208 fi
3209
3210
3211 if test "x${ac_cv_env_F77_set}" != "xset"; then
3212 as_fn_error 1 "argument F77 not provided in configure call." "$LINENO" 5
3213 fi
3214
3215
3216 if test "x${ac_cv_env_FC_set}" != "xset"; then
3217 as_fn_error 1 "argument FC not provided in configure call." "$LINENO" 5
3218 fi
3219
3220
3221 #AC_SCOREP_CONVERT_FLAGS([CFLAGS])
3222 #AC_SCOREP_CONVERT_FLAGS([CXXFLAGS])
3223 #AC_SCOREP_CONVERT_FLAGS([CPPFLAGS])
3224
3225 #AC_SCOREP_CONVERT_COMPILER([CC])
3226 #AC_SCOREP_CONVERT_COMPILER([CXX])
3227
3228 _lcl_receval="${includedir}"
3229 INCLUDEDIR=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
3230 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
3231 _lcl_receval_old=''
3232 while test "$_lcl_receval_old" != "$_lcl_receval"; do
3233 _lcl_receval_old="$_lcl_receval"
3234 eval _lcl_receval="\"$_lcl_receval\""
3235 done
3236 echo "$_lcl_receval")`
3237
3238 _lcl_receval="${bindir}"
3239 BINDIR=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
3240 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
3241 _lcl_receval_old=''
3242 while test "$_lcl_receval_old" != "$_lcl_receval"; do
3243 _lcl_receval_old="$_lcl_receval"
3244 eval _lcl_receval="\"$_lcl_receval\""
3245 done
3246 echo "$_lcl_receval")`
3247
3248
3249
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Git controlled" >&5
3251 $as_echo_n "checking Git controlled... " >&6; }
3252 ac_scorep_git_controlled="no"
3253
3254 # test if ${afs_srcdir} is a git top-level, not any parent directory:
3255 # * if ${afs_srcdir} is a top-level, then the prefix is empty (e.g., we are git controlled)
3256 # * if ${afs_srcdir} is below a top-level, then it wont be empty (e.g., we operate in a
3257 # tarball, which was extracted below a top-level)
3258 # * if git could not find any top-level, it prints an error to stderr and stop,
3259 # we catch this error, which makes the test also fail (e.g., we operate in a
3260 # tarball which is *not* below any top-level)
3261 if test -z "$(
3262 unset $(git rev-parse --local-env-vars 2>/dev/null) &&
3263 cd ${afs_srcdir} &&
3264 git rev-parse --show-prefix 2>&1)"; then :
3265 ac_scorep_git_controlled="yes"
3266
3267 $as_echo "#define SCOREP_IN_DEVELOPEMENT /**/" >>confdefs.h
3268
3269 else
3270
3271 $as_echo "#define SCOREP_IN_PRODUCTION /**/" >>confdefs.h
3272
3273 fi
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_scorep_git_controlled" >&5
3275 case "$ac_scorep_git_controlled" in #(
3276 yes|ok|yes[\ ,]*) :
3277 $as_echo "${as__grn}$ac_scorep_git_controlled${as__std}" >&6 ;; #(
3278 no|failed|unsupported|no[\ ,]*) :
3279 $as_echo "${as__red}$ac_scorep_git_controlled${as__std}" >&6 ;; #(
3280 *) :
3281 $as_echo "${as__blu}$ac_scorep_git_controlled${as__std}" >&6 ;;
3282 esac; }
3283
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3285 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3286 if ${ac_cv_path_SED+:} false; then :
3287 $as_echo_n "(cached) " >&6
3288 else
3289 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3290 for ac_i in 1 2 3 4 5 6 7; do
3291 ac_script="$ac_script$as_nl$ac_script"
3292 done
3293 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3294 { ac_script=; unset ac_script;}
3295 if test -z "$SED"; then
3296 ac_path_SED_found=false
3297 # Loop through the user's path and test for each of PROGNAME-LIST
3298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3299 for as_dir in $PATH
3300 do
3301 IFS=$as_save_IFS
3302 test -z "$as_dir" && as_dir=.
3303 for ac_prog in sed gsed; do
3304 for ac_exec_ext in '' $ac_executable_extensions; do
3305 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3306 as_fn_executable_p "$ac_path_SED" || continue
3307 # Check for GNU ac_path_SED and select it if it is found.
3308 # Check for GNU $ac_path_SED
3309 case `"$ac_path_SED" --version 2>&1` in
3310 *GNU*)
3311 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3312 *)
3313 ac_count=0
3314 $as_echo_n 0123456789 >"conftest.in"
3315 while :
3316 do
3317 cat "conftest.in" "conftest.in" >"conftest.tmp"
3318 mv "conftest.tmp" "conftest.in"
3319 cp "conftest.in" "conftest.nl"
3320 $as_echo '' >> "conftest.nl"
3321 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3322 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3323 as_fn_arith $ac_count + 1 && ac_count=$as_val
3324 if test $ac_count -gt ${ac_path_SED_max-0}; then
3325 # Best one so far, save it but keep looking for a better one
3326 ac_cv_path_SED="$ac_path_SED"
3327 ac_path_SED_max=$ac_count
3328 fi
3329 # 10*(2^10) chars as input seems more than enough
3330 test $ac_count -gt 10 && break
3331 done
3332 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3333 esac
3334
3335 $ac_path_SED_found && break 3
3336 done
3337 done
3338 done
3339 IFS=$as_save_IFS
3340 if test -z "$ac_cv_path_SED"; then
3341 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3342 fi
3343 else
3344 ac_cv_path_SED=$SED
3345 fi
3346
3347 fi
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3349 case "$ac_cv_path_SED" in #(
3350 yes|ok|yes[\ ,]*) :
3351 $as_echo "${as__grn}$ac_cv_path_SED${as__std}" >&6 ;; #(
3352 no|failed|unsupported|no[\ ,]*) :
3353 $as_echo "${as__red}$ac_cv_path_SED${as__std}" >&6 ;; #(
3354 *) :
3355 $as_echo "${as__blu}$ac_cv_path_SED${as__std}" >&6 ;;
3356 esac; }
3357 SED="$ac_cv_path_SED"
3358 rm -f conftest.sed
3359
3360
3361
3362 # afs_fn_summary DESCR VALUE INDENT WRAP-MARGIN=128
3363 # ----------------------------------------------------------------------
3364 # Produces a line-wrapped summary line with DESCR and VALUE, indented by
3365 # INDENT and wrapped at WRAP-MARGIN.
3366 afs_fn_summary ()
3367 {
3368 _afs_summary_wrap_width=${4-128}
3369 _afs_summary_column_width=32
3370 _afs_summary_prefix="${3-} ${1-}:"
3371 printf "%s" "${_afs_summary_prefix}"
3372 _afs_summary_padding="$(printf "%-${_afs_summary_column_width}s" "")"
3373 _afs_summary_value="$(echo "${2-}" | $SED -e 's/ */ /g' -e 's/^ //' -e 's/ $//')"
3374 if test ${#_afs_summary_prefix} -ge ${#_afs_summary_padding}; then :
3375
3376 _afs_summary_nl=" \\$as_nl${_afs_summary_padding}"
3377
3378 else
3379
3380 as_fn_arith ${#_afs_summary_padding} - ${#_afs_summary_prefix} &&
3381 _afs_summary_nl="$(printf "%-${as_val}s" "")"
3382
3383 fi
3384 _afs_summary_sep=""
3385 as_fn_arith ${#_afs_summary_padding} + 1 &&
3386 _afs_summary_column=$as_val
3387 while test -n "${_afs_summary_value}"
3388 do
3389 _afs_summary_entry="${_afs_summary_value%% *}"
3390 printf "%s" "${_afs_summary_nl}${_afs_summary_sep}${_afs_summary_entry}"
3391
3392 case "${_afs_summary_value}" in
3393 (*" "*) _afs_summary_value="${_afs_summary_value#* }" ;;
3394 (*) _afs_summary_value="" ;;
3395 esac
3396
3397 as_fn_arith ${_afs_summary_column} + ${#_afs_summary_entry} + ${#_afs_summary_sep} &&
3398 _afs_summary_column=$as_val
3399 if test ${_afs_summary_column} -ge ${_afs_summary_wrap_width}; then :
3400
3401 _afs_summary_nl=" \\$as_nl${_afs_summary_padding}"
3402 _afs_summary_sep=""
3403 as_fn_arith ${#_afs_summary_padding} + 1 &&
3404 _afs_summary_column=$as_val
3405
3406 else
3407
3408 _afs_summary_sep=" "
3409 _afs_summary_nl=""
3410
3411 fi
3412 done
3413 echo
3414 { _afs_summary_column_width=; unset _afs_summary_column_width;}
3415 { _afs_summary_wrap_width=; unset _afs_summary_wrap_width;}
3416 { _afs_summary_prefix=; unset _afs_summary_prefix;}
3417 { _afs_summary_padding=; unset _afs_summary_padding;}
3418 { _afs_summary_value=; unset _afs_summary_value;}
3419 { _afs_summary_nl=; unset _afs_summary_nl;}
3420 { _afs_summary_sep=; unset _afs_summary_sep;}
3421 { _afs_summary_column=; unset _afs_summary_column;}
3422 { _afs_summary_entry=; unset _afs_summary_entry;}
3423 { _afs_summary_tag=; unset _afs_summary_tag;}
3424 { _afs_summary_tag_final=; unset _afs_summary_tag_final;}
3425
3426 } # afs_fn_summary
3427
3428
3429 rm -f opari2.summary
3430 LC_ALL=C find . -name 'config.summary*' -exec rm -f '{}' \;
3431
3432 afs_fn_summary \
3433 "OPARI2 (frontend)" \
3434 "" \
3435 " " \
3436 >config.summary
3437
3438
3439
3440 if test "x${ac_scorep_git_controlled}" = xyes; then
3441 GIT_CONTROLLED_TRUE=
3442 GIT_CONTROLLED_FALSE='#'
3443 else
3444 GIT_CONTROLLED_TRUE='#'
3445 GIT_CONTROLLED_FALSE=
3446 fi
3447
3448
3449
3450 if test "x${verbose}" = "xyes"; then :
3451
3452
3453 afs_fn_summary "Git controlled" "$ac_scorep_git_controlled" " " >>config.summary
3454
3455 fi
3456
3457
3458
3459 am__api_version='1.13'
3460
3461 # Find a good install program. We prefer a C program (faster),
3462 # so one script is as good as another. But avoid the broken or
3463 # incompatible versions:
3464 # SysV /etc/install, /usr/sbin/install
3465 # SunOS /usr/etc/install
3466 # IRIX /sbin/install
3467 # AIX /bin/install
3468 # AmigaOS /C/install, which installs bootblocks on floppy discs
3469 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3470 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3471 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3472 # OS/2's system install, which has a completely different semantic
3473 # ./install, which can be erroneously created by make from ./install.sh.
3474 # Reject install programs that cannot install multiple files.
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3476 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3477 if test -z "$INSTALL"; then
3478 if ${ac_cv_path_install+:} false; then :
3479 $as_echo_n "(cached) " >&6
3480 else
3481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3482 for as_dir in $PATH
3483 do
3484 IFS=$as_save_IFS
3485 test -z "$as_dir" && as_dir=.
3486 # Account for people who put trailing slashes in PATH elements.
3487 case $as_dir/ in #((
3488 ./ | .// | /[cC]/* | \
3489 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3490 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3491 /usr/ucb/* ) ;;
3492 *)
3493 # OSF1 and SCO ODT 3.0 have their own names for install.
3494 # Don't use installbsd from OSF since it installs stuff as root
3495 # by default.
3496 for ac_prog in ginstall scoinst install; do
3497 for ac_exec_ext in '' $ac_executable_extensions; do
3498 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3499 if test $ac_prog = install &&
3500 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3501 # AIX install. It has an incompatible calling convention.
3502 :
3503 elif test $ac_prog = install &&
3504 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3505 # program-specific install script used by HP pwplus--don't use.
3506 :
3507 else
3508 rm -rf conftest.one conftest.two conftest.dir
3509 echo one > conftest.one
3510 echo two > conftest.two
3511 mkdir conftest.dir
3512 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3513 test -s conftest.one && test -s conftest.two &&
3514 test -s conftest.dir/conftest.one &&
3515 test -s conftest.dir/conftest.two
3516 then
3517 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3518 break 3
3519 fi
3520 fi
3521 fi
3522 done
3523 done
3524 ;;
3525 esac
3526
3527 done
3528 IFS=$as_save_IFS
3529
3530 rm -rf conftest.one conftest.two conftest.dir
3531
3532 fi
3533 if test "${ac_cv_path_install+set}" = set; then
3534 INSTALL=$ac_cv_path_install
3535 else
3536 # As a last resort, use the slow shell script. Don't cache a
3537 # value for INSTALL within a source directory, because that will
3538 # break other packages using the cache if that directory is
3539 # removed, or if the value is a relative name.
3540 INSTALL=$ac_install_sh
3541 fi
3542 fi
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3544 case "$INSTALL" in #(
3545 yes|ok|yes[\ ,]*) :
3546 $as_echo "${as__grn}$INSTALL${as__std}" >&6 ;; #(
3547 no|failed|unsupported|no[\ ,]*) :
3548 $as_echo "${as__red}$INSTALL${as__std}" >&6 ;; #(
3549 *) :
3550 $as_echo "${as__blu}$INSTALL${as__std}" >&6 ;;
3551 esac; }
3552
3553 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3554 # It thinks the first close brace ends the variable substitution.
3555 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3556
3557 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3558
3559 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3560
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3562 $as_echo_n "checking whether build environment is sane... " >&6; }
3563 # Reject unsafe characters in $srcdir or the absolute working directory
3564 # name. Accept space and tab only in the latter.
3565 am_lf='
3566 '
3567 case `pwd` in
3568 *[\\\"\#\$\&\'\`$am_lf]*)
3569 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3570 esac
3571 case $srcdir in
3572 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3573 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3574 esac
3575
3576 # Do 'set' in a subshell so we don't clobber the current shell's
3577 # arguments. Must try -L first in case configure is actually a
3578 # symlink; some systems play weird games with the mod time of symlinks
3579 # (eg FreeBSD returns the mod time of the symlink's containing
3580 # directory).
3581 if (
3582 am_has_slept=no
3583 for am_try in 1 2; do
3584 echo "timestamp, slept: $am_has_slept" > conftest.file
3585 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3586 if test "$*" = "X"; then
3587 # -L didn't work.
3588 set X `ls -t "$srcdir/configure" conftest.file`
3589 fi
3590 if test "$*" != "X $srcdir/configure conftest.file" \
3591 && test "$*" != "X conftest.file $srcdir/configure"; then
3592
3593 # If neither matched, then we have a broken ls. This can happen
3594 # if, for instance, CONFIG_SHELL is bash and it inherits a
3595 # broken ls alias from the environment. This has actually
3596 # happened. Such a system could not be considered "sane".
3597 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3598 alias in your environment" "$LINENO" 5
3599 fi
3600 if test "$2" = conftest.file || test $am_try -eq 2; then
3601 break
3602 fi
3603 # Just in case.
3604 sleep 1
3605 am_has_slept=yes
3606 done
3607 test "$2" = conftest.file
3608 )
3609 then
3610 # Ok.
3611 :
3612 else
3613 as_fn_error $? "newly created file is older than distributed files!
3614 Check your system clock" "$LINENO" 5
3615 fi
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3617 $as_echo "${as__grn}yes${as__std}" >&6; }
3618 # If we didn't sleep, we still need to ensure time stamps of config.status and
3619 # generated files are strictly newer.
3620 am_sleep_pid=
3621 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3622 ( sleep 1 ) &
3623 am_sleep_pid=$!
3624 fi
3625
3626 rm -f conftest.file
3627
3628 test "$program_prefix" != NONE &&
3629 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3630 # Use a double $ so make ignores it.
3631 test "$program_suffix" != NONE &&
3632 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3633 # Double any \ or $.
3634 # By default was `s,x,x', remove it if useless.
3635 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3636 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3637
3638 # expand $ac_aux_dir to an absolute path
3639 am_aux_dir=`cd $ac_aux_dir && pwd`
3640
3641 if test x"${MISSING+set}" != xset; then
3642 case $am_aux_dir in
3643 *\ * | *\ *)
3644 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3645 *)
3646 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3647 esac
3648 fi
3649 # Use eval to expand $SHELL
3650 if eval "$MISSING --is-lightweight"; then
3651 am_missing_run="$MISSING "
3652 else
3653 am_missing_run=
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3655 $as_echo "$as_me: ${as__yel}WARNING: 'missing' script is too old or missing${as__std}" >&2;}
3656 fi
3657
3658 if test x"${install_sh}" != xset; then
3659 case $am_aux_dir in
3660 *\ * | *\ *)
3661 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3662 *)
3663 install_sh="\${SHELL} $am_aux_dir/install-sh"
3664 esac
3665 fi
3666
3667 # Installed binaries are usually stripped using 'strip' when the user
3668 # run "make install-strip". However 'strip' might not be the right
3669 # tool to use in cross-compilation environments, therefore Automake
3670 # will honor the 'STRIP' environment variable to overrule this program.
3671 if test "$cross_compiling" != no; then
3672 if test -n "$ac_tool_prefix"; then
3673 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3674 set dummy ${ac_tool_prefix}strip; ac_word=$2
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3676 $as_echo_n "checking for $ac_word... " >&6; }
3677 if ${ac_cv_prog_STRIP+:} false; then :
3678 $as_echo_n "(cached) " >&6
3679 else
3680 if test -n "$STRIP"; then
3681 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3682 else
3683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3684 for as_dir in $PATH
3685 do
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 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3692 break 2
3693 fi
3694 done
3695 done
3696 IFS=$as_save_IFS
3697
3698 fi
3699 fi
3700 STRIP=$ac_cv_prog_STRIP
3701 if test -n "$STRIP"; then
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3703 case "$STRIP" in #(
3704 yes|ok|yes[\ ,]*) :
3705 $as_echo "${as__grn}$STRIP${as__std}" >&6 ;; #(
3706 no|failed|unsupported|no[\ ,]*) :
3707 $as_echo "${as__red}$STRIP${as__std}" >&6 ;; #(
3708 *) :
3709 $as_echo "${as__blu}$STRIP${as__std}" >&6 ;;
3710 esac; }
3711 else
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3713 $as_echo "${as__red}no${as__std}" >&6; }
3714 fi
3715
3716
3717 fi
3718 if test -z "$ac_cv_prog_STRIP"; then
3719 ac_ct_STRIP=$STRIP
3720 # Extract the first word of "strip", so it can be a program name with args.
3721 set dummy strip; ac_word=$2
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3723 $as_echo_n "checking for $ac_word... " >&6; }
3724 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3725 $as_echo_n "(cached) " >&6
3726 else
3727 if test -n "$ac_ct_STRIP"; then
3728 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3729 else
3730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3731 for as_dir in $PATH
3732 do
3733 IFS=$as_save_IFS
3734 test -z "$as_dir" && as_dir=.
3735 for ac_exec_ext in '' $ac_executable_extensions; do
3736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3737 ac_cv_prog_ac_ct_STRIP="strip"
3738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3739 break 2
3740 fi
3741 done
3742 done
3743 IFS=$as_save_IFS
3744
3745 fi
3746 fi
3747 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3748 if test -n "$ac_ct_STRIP"; then
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3750 case "$ac_ct_STRIP" in #(
3751 yes|ok|yes[\ ,]*) :
3752 $as_echo "${as__grn}$ac_ct_STRIP${as__std}" >&6 ;; #(
3753 no|failed|unsupported|no[\ ,]*) :
3754 $as_echo "${as__red}$ac_ct_STRIP${as__std}" >&6 ;; #(
3755 *) :
3756 $as_echo "${as__blu}$ac_ct_STRIP${as__std}" >&6 ;;
3757 esac; }
3758 else
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3760 $as_echo "${as__red}no${as__std}" >&6; }
3761 fi
3762
3763 if test "x$ac_ct_STRIP" = x; then
3764 STRIP=":"
3765 else
3766 case $cross_compiling:$ac_tool_warned in
3767 yes:)
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3769 $as_echo "$as_me: ${as__yel}WARNING: using cross tools not prefixed with host triplet${as__std}" >&2;}
3770 ac_tool_warned=yes ;;
3771 esac
3772 STRIP=$ac_ct_STRIP
3773 fi
3774 else
3775 STRIP="$ac_cv_prog_STRIP"
3776 fi
3777
3778 fi
3779 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3780
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3782 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3783 if test -z "$MKDIR_P"; then
3784 if ${ac_cv_path_mkdir+:} false; then :
3785 $as_echo_n "(cached) " >&6
3786 else
3787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3788 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3789 do
3790 IFS=$as_save_IFS
3791 test -z "$as_dir" && as_dir=.
3792 for ac_prog in mkdir gmkdir; do
3793 for ac_exec_ext in '' $ac_executable_extensions; do
3794 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3795 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3796 'mkdir (GNU coreutils) '* | \
3797 'mkdir (coreutils) '* | \
3798 'mkdir (fileutils) '4.1*)
3799 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3800 break 3;;
3801 esac
3802 done
3803 done
3804 done
3805 IFS=$as_save_IFS
3806
3807 fi
3808
3809 test -d ./--version && rmdir ./--version
3810 if test "${ac_cv_path_mkdir+set}" = set; then
3811 MKDIR_P="$ac_cv_path_mkdir -p"
3812 else
3813 # As a last resort, use the slow shell script. Don't cache a
3814 # value for MKDIR_P within a source directory, because that will
3815 # break other packages using the cache if that directory is
3816 # removed, or if the value is a relative name.
3817 MKDIR_P="$ac_install_sh -d"
3818 fi
3819 fi
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3821 case "$MKDIR_P" in #(
3822 yes|ok|yes[\ ,]*) :
3823 $as_echo "${as__grn}$MKDIR_P${as__std}" >&6 ;; #(
3824 no|failed|unsupported|no[\ ,]*) :
3825 $as_echo "${as__red}$MKDIR_P${as__std}" >&6 ;; #(
3826 *) :
3827 $as_echo "${as__blu}$MKDIR_P${as__std}" >&6 ;;
3828 esac; }
3829
3830 for ac_prog in gawk mawk nawk awk
3831 do
3832 # Extract the first word of "$ac_prog", so it can be a program name with args.
3833 set dummy $ac_prog; ac_word=$2
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3835 $as_echo_n "checking for $ac_word... " >&6; }
3836 if ${ac_cv_prog_AWK+:} false; then :
3837 $as_echo_n "(cached) " >&6
3838 else
3839 if test -n "$AWK"; then
3840 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3841 else
3842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3843 for as_dir in $PATH
3844 do
3845 IFS=$as_save_IFS
3846 test -z "$as_dir" && as_dir=.
3847 for ac_exec_ext in '' $ac_executable_extensions; do
3848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3849 ac_cv_prog_AWK="$ac_prog"
3850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3851 break 2
3852 fi
3853 done
3854 done
3855 IFS=$as_save_IFS
3856
3857 fi
3858 fi
3859 AWK=$ac_cv_prog_AWK
3860 if test -n "$AWK"; then
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3862 case "$AWK" in #(
3863 yes|ok|yes[\ ,]*) :
3864 $as_echo "${as__grn}$AWK${as__std}" >&6 ;; #(
3865 no|failed|unsupported|no[\ ,]*) :
3866 $as_echo "${as__red}$AWK${as__std}" >&6 ;; #(
3867 *) :
3868 $as_echo "${as__blu}$AWK${as__std}" >&6 ;;
3869 esac; }
3870 else
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3872 $as_echo "${as__red}no${as__std}" >&6; }
3873 fi
3874
3875
3876 test -n "$AWK" && break
3877 done
3878
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3880 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3881 set x ${MAKE-make}
3882 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3883 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3884 $as_echo_n "(cached) " >&6
3885 else
3886 cat >conftest.make <<\_ACEOF
3887 SHELL = /bin/sh
3888 all:
3889 @echo '@@@%%%=$(MAKE)=@@@%%%'
3890 _ACEOF
3891 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3892 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3893 *@@@%%%=?*=@@@%%%*)
3894 eval ac_cv_prog_make_${ac_make}_set=yes;;
3895 *)
3896 eval ac_cv_prog_make_${ac_make}_set=no;;
3897 esac
3898 rm -f conftest.make
3899 fi
3900 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3902 $as_echo "${as__grn}yes${as__std}" >&6; }
3903 SET_MAKE=
3904 else
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3906 $as_echo "${as__red}no${as__std}" >&6; }
3907 SET_MAKE="MAKE=${MAKE-make}"
3908 fi
3909
3910 rm -rf .tst 2>/dev/null
3911 mkdir .tst 2>/dev/null
3912 if test -d .tst; then
3913 am__leading_dot=.
3914 else
3915 am__leading_dot=_
3916 fi
3917 rmdir .tst 2>/dev/null
3918
3919 # Check whether --enable-silent-rules was given.
3920 if test "${enable_silent_rules+set}" = set; then :
3921 enableval=$enable_silent_rules;
3922 fi
3923
3924 case $enable_silent_rules in # (((
3925 yes) AM_DEFAULT_VERBOSITY=0;;
3926 no) AM_DEFAULT_VERBOSITY=1;;
3927 *) AM_DEFAULT_VERBOSITY=1;;
3928 esac
3929 am_make=${MAKE-make}
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3931 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3932 if ${am_cv_make_support_nested_variables+:} false; then :
3933 $as_echo_n "(cached) " >&6
3934 else
3935 if $as_echo 'TRUE=$(BAR$(V))
3936 BAR0=false
3937 BAR1=true
3938 V=1
3939 am__doit:
3940 @$(TRUE)
3941 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3942 am_cv_make_support_nested_variables=yes
3943 else
3944 am_cv_make_support_nested_variables=no
3945 fi
3946 fi
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3948 case "$am_cv_make_support_nested_variables" in #(
3949 yes|ok|yes[\ ,]*) :
3950 $as_echo "${as__grn}$am_cv_make_support_nested_variables${as__std}" >&6 ;; #(
3951 no|failed|unsupported|no[\ ,]*) :
3952 $as_echo "${as__red}$am_cv_make_support_nested_variables${as__std}" >&6 ;; #(
3953 *) :
3954 $as_echo "${as__blu}$am_cv_make_support_nested_variables${as__std}" >&6 ;;
3955 esac; }
3956 if test $am_cv_make_support_nested_variables = yes; then
3957 AM_V='$(V)'
3958 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3959 else
3960 AM_V=$AM_DEFAULT_VERBOSITY
3961 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3962 fi
3963 AM_BACKSLASH='\'
3964
3965 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3966 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3967 # is not polluted with repeated "-I."
3968 am__isrc=' -I$(srcdir)'
3969 # test to see if srcdir already configured
3970 if test -f $srcdir/config.status; then
3971 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3972 fi
3973 fi
3974
3975 # test whether we have cygpath
3976 if test -z "$CYGPATH_W"; then
3977 if (cygpath --version) >/dev/null 2>/dev/null; then
3978 CYGPATH_W='cygpath -w'
3979 else
3980 CYGPATH_W=echo
3981 fi
3982 fi
3983
3984
3985 # Define the identity of the package.
3986 PACKAGE='opari2'
3987 VERSION='2.0.9'
3988
3989
3990 cat >>confdefs.h <<_ACEOF
3991 #define PACKAGE "$PACKAGE"
3992 _ACEOF
3993
3994
3995 cat >>confdefs.h <<_ACEOF
3996 #define VERSION "$VERSION"
3997 _ACEOF
3998
3999 # Some tools Automake needs.
4000
4001 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4002
4003
4004 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4005
4006
4007 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4008
4009
4010 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4011
4012
4013 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4014
4015 # For better backward compatibility. To be removed once Automake 1.9.x
4016 # dies out for good. For more background, see:
4017 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4018 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4019 mkdir_p='$(MKDIR_P)'
4020
4021 # We need awk for the "check" target. The system "awk" is bad on
4022 # some platforms.
4023 # Always define AMTAR for backward compatibility. Yes, it's still used
4024 # in the wild :-( We should find a proper way to deprecate it ...
4025 AMTAR='$${TAR-tar}'
4026
4027
4028 # We'll loop over all known methods to create a tar archive until one works.
4029 _am_tools='gnutar pax cpio none'
4030
4031
4032
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5
4034 $as_echo_n "checking how to create a pax tar archive... " >&6; }
4035
4036 # Go ahead even if we have the value already cached. We do so because we
4037 # need to set the values for the 'am__tar' and 'am__untar' variables.
4038 _am_tools=${am_cv_prog_tar_pax-$_am_tools}
4039
4040 for _am_tool in $_am_tools; do
4041 case $_am_tool in
4042 gnutar)
4043 for _am_tar in tar gnutar gtar; do
4044 { echo "$as_me:$LINENO: $_am_tar --version" >&5
4045 ($_am_tar --version) >&5 2>&5
4046 ac_status=$?
4047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048 (exit $ac_status); } && break
4049 done
4050 am__tar="$_am_tar --format=posix -chf - "'"$$tardir"'
4051 am__tar_="$_am_tar --format=posix -chf - "'"$tardir"'
4052 am__untar="$_am_tar -xf -"
4053 ;;
4054 plaintar)
4055 # Must skip GNU tar: if it does not support --format= it doesn't create
4056 # ustar tarball either.
4057 (tar --version) >/dev/null 2>&1 && continue
4058 am__tar='tar chf - "$$tardir"'
4059 am__tar_='tar chf - "$tardir"'
4060 am__untar='tar xf -'
4061 ;;
4062 pax)
4063 am__tar='pax -L -x pax -w "$$tardir"'
4064 am__tar_='pax -L -x pax -w "$tardir"'
4065 am__untar='pax -r'
4066 ;;
4067 cpio)
4068 am__tar='find "$$tardir" -print | cpio -o -H pax -L'
4069 am__tar_='find "$tardir" -print | cpio -o -H pax -L'
4070 am__untar='cpio -i -H pax -d'
4071 ;;
4072 none)
4073 am__tar=false
4074 am__tar_=false
4075 am__untar=false
4076 ;;
4077 esac
4078
4079 # If the value was cached, stop now. We just wanted to have am__tar
4080 # and am__untar set.
4081 test -n "${am_cv_prog_tar_pax}" && break
4082
4083 # tar/untar a dummy directory, and stop if the command works.
4084 rm -rf conftest.dir
4085 mkdir conftest.dir
4086 echo GrepMe > conftest.dir/file
4087 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
4088 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
4089 ac_status=$?
4090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091 (exit $ac_status); }
4092 rm -rf conftest.dir
4093 if test -s conftest.tar; then
4094 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
4095 ($am__untar <conftest.tar) >&5 2>&5
4096 ac_status=$?
4097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098 (exit $ac_status); }
4099 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
4100 (cat conftest.dir/file) >&5 2>&5
4101 ac_status=$?
4102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103 (exit $ac_status); }
4104 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
4105 fi
4106 done
4107 rm -rf conftest.dir
4108
4109 if ${am_cv_prog_tar_pax+:} false; then :
4110 $as_echo_n "(cached) " >&6
4111 else
4112 am_cv_prog_tar_pax=$_am_tool
4113 fi
4114
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5
4116 case "$am_cv_prog_tar_pax" in #(
4117 yes|ok|yes[\ ,]*) :
4118 $as_echo "${as__grn}$am_cv_prog_tar_pax${as__std}" >&6 ;; #(
4119 no|failed|unsupported|no[\ ,]*) :
4120 $as_echo "${as__red}$am_cv_prog_tar_pax${as__std}" >&6 ;; #(
4121 *) :
4122 $as_echo "${as__blu}$am_cv_prog_tar_pax${as__std}" >&6 ;;
4123 esac; }
4124
4125
4126
4127
4128
4129
4130 # Check whether --enable-silent-rules was given.
4131 if test "${enable_silent_rules+set}" = set; then :
4132 enableval=$enable_silent_rules;
4133 fi
4134
4135 case $enable_silent_rules in # (((
4136 yes) AM_DEFAULT_VERBOSITY=0;;
4137 no) AM_DEFAULT_VERBOSITY=1;;
4138 *) AM_DEFAULT_VERBOSITY=0;;
4139 esac
4140 am_make=${MAKE-make}
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4142 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4143 if ${am_cv_make_support_nested_variables+:} false; then :
4144 $as_echo_n "(cached) " >&6
4145 else
4146 if $as_echo 'TRUE=$(BAR$(V))
4147 BAR0=false
4148 BAR1=true
4149 V=1
4150 am__doit:
4151 @$(TRUE)
4152 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4153 am_cv_make_support_nested_variables=yes
4154 else
4155 am_cv_make_support_nested_variables=no
4156 fi
4157 fi
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4159 case "$am_cv_make_support_nested_variables" in #(
4160 yes|ok|yes[\ ,]*) :
4161 $as_echo "${as__grn}$am_cv_make_support_nested_variables${as__std}" >&6 ;; #(
4162 no|failed|unsupported|no[\ ,]*) :
4163 $as_echo "${as__red}$am_cv_make_support_nested_variables${as__std}" >&6 ;; #(
4164 *) :
4165 $as_echo "${as__blu}$am_cv_make_support_nested_variables${as__std}" >&6 ;;
4166 esac; }
4167 if test $am_cv_make_support_nested_variables = yes; then
4168 AM_V='$(V)'
4169 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4170 else
4171 AM_V=$AM_DEFAULT_VERBOSITY
4172 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4173 fi
4174 AM_BACKSLASH='\'
4175
4176 DEPDIR="${am__leading_dot}deps"
4177
4178 ac_config_commands="$ac_config_commands depfiles"
4179
4180
4181 am_make=${MAKE-make}
4182 cat > confinc << 'END'
4183 am__doit:
4184 @echo this is the am__doit target
4185 .PHONY: am__doit
4186 END
4187 # If we don't find an include directive, just comment out the code.
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4189 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4190 am__include="#"
4191 am__quote=
4192 _am_result=none
4193 # First try GNU make style include.
4194 echo "include confinc" > confmf
4195 # Ignore all kinds of additional output from 'make'.
4196 case `$am_make -s -f confmf 2> /dev/null` in #(
4197 *the\ am__doit\ target*)
4198 am__include=include
4199 am__quote=
4200 _am_result=GNU
4201 ;;
4202 esac
4203 # Now try BSD make style include.
4204 if test "$am__include" = "#"; then
4205 echo '.include "confinc"' > confmf
4206 case `$am_make -s -f confmf 2> /dev/null` in #(
4207 *the\ am__doit\ target*)
4208 am__include=.include
4209 am__quote="\""
4210 _am_result=BSD
4211 ;;
4212 esac
4213 fi
4214
4215
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4217 case "$_am_result" in #(
4218 yes|ok|yes[\ ,]*) :
4219 $as_echo "${as__grn}$_am_result${as__std}" >&6 ;; #(
4220 no|failed|unsupported|no[\ ,]*) :
4221 $as_echo "${as__red}$_am_result${as__std}" >&6 ;; #(
4222 *) :
4223 $as_echo "${as__blu}$_am_result${as__std}" >&6 ;;
4224 esac; }
4225 rm -f confinc confmf
4226
4227 # Check whether --enable-dependency-tracking was given.
4228 if test "${enable_dependency_tracking+set}" = set; then :
4229 enableval=$enable_dependency_tracking;
4230 fi
4231
4232 if test "x$enable_dependency_tracking" != xno; then
4233 am_depcomp="$ac_aux_dir/depcomp"
4234 AMDEPBACKSLASH='\'
4235 am__nodep='_no'
4236 fi
4237 if test "x$enable_dependency_tracking" != xno; then
4238 AMDEP_TRUE=
4239 AMDEP_FALSE='#'
4240 else
4241 AMDEP_TRUE='#'
4242 AMDEP_FALSE=
4243 fi
4244
4245
4246 ac_ext=c
4247 ac_cpp='$CPP $CPPFLAGS'
4248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4251 if test -n "$ac_tool_prefix"; then
4252 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4253 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4255 $as_echo_n "checking for $ac_word... " >&6; }
4256 if ${ac_cv_prog_CC+:} false; then :
4257 $as_echo_n "(cached) " >&6
4258 else
4259 if test -n "$CC"; then
4260 ac_cv_prog_CC="$CC" # Let the user override the test.
4261 else
4262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4263 for as_dir in $PATH
4264 do
4265 IFS=$as_save_IFS
4266 test -z "$as_dir" && as_dir=.
4267 for ac_exec_ext in '' $ac_executable_extensions; do
4268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4269 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4271 break 2
4272 fi
4273 done
4274 done
4275 IFS=$as_save_IFS
4276
4277 fi
4278 fi
4279 CC=$ac_cv_prog_CC
4280 if test -n "$CC"; then
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4282 case "$CC" in #(
4283 yes|ok|yes[\ ,]*) :
4284 $as_echo "${as__grn}$CC${as__std}" >&6 ;; #(
4285 no|failed|unsupported|no[\ ,]*) :
4286 $as_echo "${as__red}$CC${as__std}" >&6 ;; #(
4287 *) :
4288 $as_echo "${as__blu}$CC${as__std}" >&6 ;;
4289 esac; }
4290 else
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4292 $as_echo "${as__red}no${as__std}" >&6; }
4293 fi
4294
4295
4296 fi
4297 if test -z "$ac_cv_prog_CC"; then
4298 ac_ct_CC=$CC
4299 # Extract the first word of "gcc", so it can be a program name with args.
4300 set dummy gcc; ac_word=$2
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4302 $as_echo_n "checking for $ac_word... " >&6; }
4303 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4304 $as_echo_n "(cached) " >&6
4305 else
4306 if test -n "$ac_ct_CC"; then
4307 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4308 else
4309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4310 for as_dir in $PATH
4311 do
4312 IFS=$as_save_IFS
4313 test -z "$as_dir" && as_dir=.
4314 for ac_exec_ext in '' $ac_executable_extensions; do
4315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4316 ac_cv_prog_ac_ct_CC="gcc"
4317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4318 break 2
4319 fi
4320 done
4321 done
4322 IFS=$as_save_IFS
4323
4324 fi
4325 fi
4326 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4327 if test -n "$ac_ct_CC"; then
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4329 case "$ac_ct_CC" in #(
4330 yes|ok|yes[\ ,]*) :
4331 $as_echo "${as__grn}$ac_ct_CC${as__std}" >&6 ;; #(
4332 no|failed|unsupported|no[\ ,]*) :
4333 $as_echo "${as__red}$ac_ct_CC${as__std}" >&6 ;; #(
4334 *) :
4335 $as_echo "${as__blu}$ac_ct_CC${as__std}" >&6 ;;
4336 esac; }
4337 else
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4339 $as_echo "${as__red}no${as__std}" >&6; }
4340 fi
4341
4342 if test "x$ac_ct_CC" = x; then
4343 CC=""
4344 else
4345 case $cross_compiling:$ac_tool_warned in
4346 yes:)
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4348 $as_echo "$as_me: ${as__yel}WARNING: using cross tools not prefixed with host triplet${as__std}" >&2;}
4349 ac_tool_warned=yes ;;
4350 esac
4351 CC=$ac_ct_CC
4352 fi
4353 else
4354 CC="$ac_cv_prog_CC"
4355 fi
4356
4357 if test -z "$CC"; then
4358 if test -n "$ac_tool_prefix"; then
4359 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4360 set dummy ${ac_tool_prefix}cc; ac_word=$2
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4362 $as_echo_n "checking for $ac_word... " >&6; }
4363 if ${ac_cv_prog_CC+:} false; then :
4364 $as_echo_n "(cached) " >&6
4365 else
4366 if test -n "$CC"; then
4367 ac_cv_prog_CC="$CC" # Let the user override the test.
4368 else
4369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4370 for as_dir in $PATH
4371 do
4372 IFS=$as_save_IFS
4373 test -z "$as_dir" && as_dir=.
4374 for ac_exec_ext in '' $ac_executable_extensions; do
4375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4376 ac_cv_prog_CC="${ac_tool_prefix}cc"
4377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4378 break 2
4379 fi
4380 done
4381 done
4382 IFS=$as_save_IFS
4383
4384 fi
4385 fi
4386 CC=$ac_cv_prog_CC
4387 if test -n "$CC"; then
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4389 case "$CC" in #(
4390 yes|ok|yes[\ ,]*) :
4391 $as_echo "${as__grn}$CC${as__std}" >&6 ;; #(
4392 no|failed|unsupported|no[\ ,]*) :
4393 $as_echo "${as__red}$CC${as__std}" >&6 ;; #(
4394 *) :
4395 $as_echo "${as__blu}$CC${as__std}" >&6 ;;
4396 esac; }
4397 else
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4399 $as_echo "${as__red}no${as__std}" >&6; }
4400 fi
4401
4402
4403 fi
4404 fi
4405 if test -z "$CC"; then
4406 # Extract the first word of "cc", so it can be a program name with args.
4407 set dummy cc; ac_word=$2
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4409 $as_echo_n "checking for $ac_word... " >&6; }
4410 if ${ac_cv_prog_CC+:} false; then :
4411 $as_echo_n "(cached) " >&6
4412 else
4413 if test -n "$CC"; then
4414 ac_cv_prog_CC="$CC" # Let the user override the test.
4415 else
4416 ac_prog_rejected=no
4417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4418 for as_dir in $PATH
4419 do
4420 IFS=$as_save_IFS
4421 test -z "$as_dir" && as_dir=.
4422 for ac_exec_ext in '' $ac_executable_extensions; do
4423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4424 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4425 ac_prog_rejected=yes
4426 continue
4427 fi
4428 ac_cv_prog_CC="cc"
4429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4430 break 2
4431 fi
4432 done
4433 done
4434 IFS=$as_save_IFS
4435
4436 if test $ac_prog_rejected = yes; then
4437 # We found a bogon in the path, so make sure we never use it.
4438 set dummy $ac_cv_prog_CC
4439 shift
4440 if test $# != 0; then
4441 # We chose a different compiler from the bogus one.
4442 # However, it has the same basename, so the bogon will be chosen
4443 # first if we set CC to just the basename; use the full file name.
4444 shift
4445 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4446 fi
4447 fi
4448 fi
4449 fi
4450 CC=$ac_cv_prog_CC
4451 if test -n "$CC"; then
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4453 case "$CC" in #(
4454 yes|ok|yes[\ ,]*) :
4455 $as_echo "${as__grn}$CC${as__std}" >&6 ;; #(
4456 no|failed|unsupported|no[\ ,]*) :
4457 $as_echo "${as__red}$CC${as__std}" >&6 ;; #(
4458 *) :
4459 $as_echo "${as__blu}$CC${as__std}" >&6 ;;
4460 esac; }
4461 else
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4463 $as_echo "${as__red}no${as__std}" >&6; }
4464 fi
4465
4466
4467 fi
4468 if test -z "$CC"; then
4469 if test -n "$ac_tool_prefix"; then
4470 for ac_prog in cl.exe
4471 do
4472 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4473 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4475 $as_echo_n "checking for $ac_word... " >&6; }
4476 if ${ac_cv_prog_CC+:} false; then :
4477 $as_echo_n "(cached) " >&6
4478 else
4479 if test -n "$CC"; then
4480 ac_cv_prog_CC="$CC" # Let the user override the test.
4481 else
4482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4483 for as_dir in $PATH
4484 do
4485 IFS=$as_save_IFS
4486 test -z "$as_dir" && as_dir=.
4487 for ac_exec_ext in '' $ac_executable_extensions; do
4488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4489 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4491 break 2
4492 fi
4493 done
4494 done
4495 IFS=$as_save_IFS
4496
4497 fi
4498 fi
4499 CC=$ac_cv_prog_CC
4500 if test -n "$CC"; then
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4502 case "$CC" in #(
4503 yes|ok|yes[\ ,]*) :
4504 $as_echo "${as__grn}$CC${as__std}" >&6 ;; #(
4505 no|failed|unsupported|no[\ ,]*) :
4506 $as_echo "${as__red}$CC${as__std}" >&6 ;; #(
4507 *) :
4508 $as_echo "${as__blu}$CC${as__std}" >&6 ;;
4509 esac; }
4510 else
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4512 $as_echo "${as__red}no${as__std}" >&6; }
4513 fi
4514
4515
4516 test -n "$CC" && break
4517 done
4518 fi
4519 if test -z "$CC"; then
4520 ac_ct_CC=$CC
4521 for ac_prog in cl.exe
4522 do
4523 # Extract the first word of "$ac_prog", so it can be a program name with args.
4524 set dummy $ac_prog; ac_word=$2
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4526 $as_echo_n "checking for $ac_word... " >&6; }
4527 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4528 $as_echo_n "(cached) " >&6
4529 else
4530 if test -n "$ac_ct_CC"; then
4531 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4532 else
4533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4534 for as_dir in $PATH
4535 do
4536 IFS=$as_save_IFS
4537 test -z "$as_dir" && as_dir=.
4538 for ac_exec_ext in '' $ac_executable_extensions; do
4539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4540 ac_cv_prog_ac_ct_CC="$ac_prog"
4541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4542 break 2
4543 fi
4544 done
4545 done
4546 IFS=$as_save_IFS
4547
4548 fi
4549 fi
4550 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4551 if test -n "$ac_ct_CC"; then
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4553 case "$ac_ct_CC" in #(
4554 yes|ok|yes[\ ,]*) :
4555 $as_echo "${as__grn}$ac_ct_CC${as__std}" >&6 ;; #(
4556 no|failed|unsupported|no[\ ,]*) :
4557 $as_echo "${as__red}$ac_ct_CC${as__std}" >&6 ;; #(
4558 *) :
4559 $as_echo "${as__blu}$ac_ct_CC${as__std}" >&6 ;;
4560 esac; }
4561 else
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4563 $as_echo "${as__red}no${as__std}" >&6; }
4564 fi
4565
4566
4567 test -n "$ac_ct_CC" && break
4568 done
4569
4570 if test "x$ac_ct_CC" = x; then
4571 CC=""
4572 else
4573 case $cross_compiling:$ac_tool_warned in
4574 yes:)
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4576 $as_echo "$as_me: ${as__yel}WARNING: using cross tools not prefixed with host triplet${as__std}" >&2;}
4577 ac_tool_warned=yes ;;
4578 esac
4579 CC=$ac_ct_CC
4580 fi
4581 fi
4582
4583 fi
4584
4585
4586 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4587 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
4588 as_fn_error $? "no acceptable C compiler found in \$PATH${as__std}
4589 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
4590
4591 # Provide some information about the compiler.
4592 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4593 set X $ac_compile
4594 ac_compiler=$2
4595 for ac_option in --version -v -V -qversion; do
4596 { { ac_try="$ac_compiler $ac_option >&5"
4597 case "(($ac_try" in
4598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4599 *) ac_try_echo=$ac_try;;
4600 esac
4601 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4602 $as_echo "$ac_try_echo"; } >&5
4603 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4604 ac_status=$?
4605 if test -s conftest.err; then
4606 sed '10a\
4607 ... rest of stderr output deleted ...
4608 10q' conftest.err >conftest.er1
4609 cat conftest.er1 >&5
4610 fi
4611 rm -f conftest.er1 conftest.err
4612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4613 test $ac_status = 0; }
4614 done
4615
4616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4617 /* end confdefs.h. */
4618
4619 int
4620 main ()
4621 {
4622
4623 ;
4624 return 0;
4625 }
4626 _ACEOF
4627 ac_clean_files_save=$ac_clean_files
4628 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4629 # Try to create an executable without -o first, disregard a.out.
4630 # It will help us diagnose broken compilers, and finding out an intuition
4631 # of exeext.
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4633 $as_echo_n "checking whether the C compiler works... " >&6; }
4634 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4635
4636 # The possible output files:
4637 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4638
4639 ac_rmfiles=
4640 for ac_file in $ac_files
4641 do
4642 case $ac_file in
4643 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4644 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4645 esac
4646 done
4647 rm -f $ac_rmfiles
4648
4649 if { { ac_try="$ac_link_default"
4650 case "(($ac_try" in
4651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4652 *) ac_try_echo=$ac_try;;
4653 esac
4654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4655 $as_echo "$ac_try_echo"; } >&5
4656 (eval "$ac_link_default") 2>&5
4657 ac_status=$?
4658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4659 test $ac_status = 0; }; then :
4660 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4661 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4662 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4663 # so that the user can short-circuit this test for compilers unknown to
4664 # Autoconf.
4665 for ac_file in $ac_files ''
4666 do
4667 test -f "$ac_file" || continue
4668 case $ac_file in
4669 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4670 ;;
4671 [ab].out )
4672 # We found the default executable, but exeext='' is most
4673 # certainly right.
4674 break;;
4675 *.* )
4676 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4677 then :; else
4678 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4679 fi
4680 # We set ac_cv_exeext here because the later test for it is not
4681 # safe: cross compilers may not add the suffix if given an `-o'
4682 # argument, so we may need to know it at that point already.
4683 # Even if this section looks crufty: it has the advantage of
4684 # actually working.
4685 break;;
4686 * )
4687 break;;
4688 esac
4689 done
4690 test "$ac_cv_exeext" = no && ac_cv_exeext=
4691
4692 else
4693 ac_file=''
4694 fi
4695 if test -z "$ac_file"; then :
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4697 $as_echo "${as__red}no${as__std}" >&6; }
4698 $as_echo "$as_me: failed program was:" >&5
4699 sed 's/^/| /' conftest.$ac_ext >&5
4700
4701 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4702 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
4703 as_fn_error 77 "C compiler cannot create executables${as__std}
4704 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
4705 else
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4707 $as_echo "${as__grn}yes${as__std}" >&6; }
4708 fi
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4710 $as_echo_n "checking for C compiler default output file name... " >&6; }
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4712 case "$ac_file" in #(
4713 yes|ok|yes[\ ,]*) :
4714 $as_echo "${as__grn}$ac_file${as__std}" >&6 ;; #(
4715 no|failed|unsupported|no[\ ,]*) :
4716 $as_echo "${as__red}$ac_file${as__std}" >&6 ;; #(
4717 *) :
4718 $as_echo "${as__blu}$ac_file${as__std}" >&6 ;;
4719 esac; }
4720 ac_exeext=$ac_cv_exeext
4721
4722 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4723 ac_clean_files=$ac_clean_files_save
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4725 $as_echo_n "checking for suffix of executables... " >&6; }
4726 if { { ac_try="$ac_link"
4727 case "(($ac_try" in
4728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4729 *) ac_try_echo=$ac_try;;
4730 esac
4731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4732 $as_echo "$ac_try_echo"; } >&5
4733 (eval "$ac_link") 2>&5
4734 ac_status=$?
4735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4736 test $ac_status = 0; }; then :
4737 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4738 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4739 # work properly (i.e., refer to `conftest.exe'), while it won't with
4740 # `rm'.
4741 for ac_file in conftest.exe conftest conftest.*; do
4742 test -f "$ac_file" || continue
4743 case $ac_file in
4744 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4745 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4746 break;;
4747 * ) break;;
4748 esac
4749 done
4750 else
4751 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4752 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
4753 as_fn_error $? "cannot compute suffix of executables: cannot compile and link${as__std}
4754 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
4755 fi
4756 rm -f conftest conftest$ac_cv_exeext
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4758 case "$ac_cv_exeext" in #(
4759 yes|ok|yes[\ ,]*) :
4760 $as_echo "${as__grn}$ac_cv_exeext${as__std}" >&6 ;; #(
4761 no|failed|unsupported|no[\ ,]*) :
4762 $as_echo "${as__red}$ac_cv_exeext${as__std}" >&6 ;; #(
4763 *) :
4764 $as_echo "${as__blu}$ac_cv_exeext${as__std}" >&6 ;;
4765 esac; }
4766
4767 rm -f conftest.$ac_ext
4768 EXEEXT=$ac_cv_exeext
4769 ac_exeext=$EXEEXT
4770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4771 /* end confdefs.h. */
4772 #include <stdio.h>
4773 int
4774 main ()
4775 {
4776 FILE *f = fopen ("conftest.out", "w");
4777 return ferror (f) || fclose (f) != 0;
4778
4779 ;
4780 return 0;
4781 }
4782 _ACEOF
4783 ac_clean_files="$ac_clean_files conftest.out"
4784 # Check that the compiler produces executables we can run. If not, either
4785 # the compiler is broken, or we cross compile.
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4787 $as_echo_n "checking whether we are cross compiling... " >&6; }
4788 if test "$cross_compiling" != yes; then
4789 { { ac_try="$ac_link"
4790 case "(($ac_try" in
4791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4792 *) ac_try_echo=$ac_try;;
4793 esac
4794 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4795 $as_echo "$ac_try_echo"; } >&5
4796 (eval "$ac_link") 2>&5
4797 ac_status=$?
4798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4799 test $ac_status = 0; }
4800 if { ac_try='./conftest$ac_cv_exeext'
4801 { { case "(($ac_try" in
4802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4803 *) ac_try_echo=$ac_try;;
4804 esac
4805 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4806 $as_echo "$ac_try_echo"; } >&5
4807 (eval "$ac_try") 2>&5
4808 ac_status=$?
4809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4810 test $ac_status = 0; }; }; then
4811 cross_compiling=no
4812 else
4813 if test "$cross_compiling" = maybe; then
4814 cross_compiling=yes
4815 else
4816 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4817 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
4818 as_fn_error $? "cannot run C compiled programs.
4819 If you meant to cross compile, use \`--host'.${as__std}
4820 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
4821 fi
4822 fi
4823 fi
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4825 case "$cross_compiling" in #(
4826 yes|ok|yes[\ ,]*) :
4827 $as_echo "${as__grn}$cross_compiling${as__std}" >&6 ;; #(
4828 no|failed|unsupported|no[\ ,]*) :
4829 $as_echo "${as__red}$cross_compiling${as__std}" >&6 ;; #(
4830 *) :
4831 $as_echo "${as__blu}$cross_compiling${as__std}" >&6 ;;
4832 esac; }
4833
4834 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4835 ac_clean_files=$ac_clean_files_save
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4837 $as_echo_n "checking for suffix of object files... " >&6; }
4838 if ${ac_cv_objext+:} false; then :
4839 $as_echo_n "(cached) " >&6
4840 else
4841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4842 /* end confdefs.h. */
4843
4844 int
4845 main ()
4846 {
4847
4848 ;
4849 return 0;
4850 }
4851 _ACEOF
4852 rm -f conftest.o conftest.obj
4853 if { { ac_try="$ac_compile"
4854 case "(($ac_try" in
4855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4856 *) ac_try_echo=$ac_try;;
4857 esac
4858 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4859 $as_echo "$ac_try_echo"; } >&5
4860 (eval "$ac_compile") 2>&5
4861 ac_status=$?
4862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4863 test $ac_status = 0; }; then :
4864 for ac_file in conftest.o conftest.obj conftest.*; do
4865 test -f "$ac_file" || continue;
4866 case $ac_file in
4867 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4868 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4869 break;;
4870 esac
4871 done
4872 else
4873 $as_echo "$as_me: failed program was:" >&5
4874 sed 's/^/| /' conftest.$ac_ext >&5
4875
4876 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4877 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
4878 as_fn_error $? "cannot compute suffix of object files: cannot compile${as__std}
4879 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
4880 fi
4881 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4882 fi
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4884 case "$ac_cv_objext" in #(
4885 yes|ok|yes[\ ,]*) :
4886 $as_echo "${as__grn}$ac_cv_objext${as__std}" >&6 ;; #(
4887 no|failed|unsupported|no[\ ,]*) :
4888 $as_echo "${as__red}$ac_cv_objext${as__std}" >&6 ;; #(
4889 *) :
4890 $as_echo "${as__blu}$ac_cv_objext${as__std}" >&6 ;;
4891 esac; }
4892 OBJEXT=$ac_cv_objext
4893 ac_objext=$OBJEXT
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4895 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4896 if ${ac_cv_c_compiler_gnu+:} false; then :
4897 $as_echo_n "(cached) " >&6
4898 else
4899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4900 /* end confdefs.h. */
4901
4902 int
4903 main ()
4904 {
4905 #ifndef __GNUC__
4906 choke me
4907 #endif
4908
4909 ;
4910 return 0;
4911 }
4912 _ACEOF
4913 if ac_fn_c_try_compile "$LINENO"; then :
4914 ac_compiler_gnu=yes
4915 else
4916 ac_compiler_gnu=no
4917 fi
4918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4919 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4920
4921 fi
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4923 case "$ac_cv_c_compiler_gnu" in #(
4924 yes|ok|yes[\ ,]*) :
4925 $as_echo "${as__grn}$ac_cv_c_compiler_gnu${as__std}" >&6 ;; #(
4926 no|failed|unsupported|no[\ ,]*) :
4927 $as_echo "${as__red}$ac_cv_c_compiler_gnu${as__std}" >&6 ;; #(
4928 *) :
4929 $as_echo "${as__blu}$ac_cv_c_compiler_gnu${as__std}" >&6 ;;
4930 esac; }
4931 if test $ac_compiler_gnu = yes; then
4932 GCC=yes
4933 else
4934 GCC=
4935 fi
4936 ac_test_CFLAGS=${CFLAGS+set}
4937 ac_save_CFLAGS=$CFLAGS
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4939 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4940 if ${ac_cv_prog_cc_g+:} false; then :
4941 $as_echo_n "(cached) " >&6
4942 else
4943 ac_save_c_werror_flag=$ac_c_werror_flag
4944 ac_c_werror_flag=yes
4945 ac_cv_prog_cc_g=no
4946 CFLAGS="-g"
4947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4948 /* end confdefs.h. */
4949
4950 int
4951 main ()
4952 {
4953
4954 ;
4955 return 0;
4956 }
4957 _ACEOF
4958 if ac_fn_c_try_compile "$LINENO"; then :
4959 ac_cv_prog_cc_g=yes
4960 else
4961 CFLAGS=""
4962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4963 /* end confdefs.h. */
4964
4965 int
4966 main ()
4967 {
4968
4969 ;
4970 return 0;
4971 }
4972 _ACEOF
4973 if ac_fn_c_try_compile "$LINENO"; then :
4974
4975 else
4976 ac_c_werror_flag=$ac_save_c_werror_flag
4977 CFLAGS="-g"
4978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4979 /* end confdefs.h. */
4980
4981 int
4982 main ()
4983 {
4984
4985 ;
4986 return 0;
4987 }
4988 _ACEOF
4989 if ac_fn_c_try_compile "$LINENO"; then :
4990 ac_cv_prog_cc_g=yes
4991 fi
4992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4993 fi
4994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4995 fi
4996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4997 ac_c_werror_flag=$ac_save_c_werror_flag
4998 fi
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5000 case "$ac_cv_prog_cc_g" in #(
5001 yes|ok|yes[\ ,]*) :
5002 $as_echo "${as__grn}$ac_cv_prog_cc_g${as__std}" >&6 ;; #(
5003 no|failed|unsupported|no[\ ,]*) :
5004 $as_echo "${as__red}$ac_cv_prog_cc_g${as__std}" >&6 ;; #(
5005 *) :
5006 $as_echo "${as__blu}$ac_cv_prog_cc_g${as__std}" >&6 ;;
5007 esac; }
5008 if test "$ac_test_CFLAGS" = set; then
5009 CFLAGS=$ac_save_CFLAGS
5010 elif test $ac_cv_prog_cc_g = yes; then
5011 if test "$GCC" = yes; then
5012 CFLAGS="-g -O2"
5013 else
5014 CFLAGS="-g"
5015 fi
5016 else
5017 if test "$GCC" = yes; then
5018 CFLAGS="-O2"
5019 else
5020 CFLAGS=
5021 fi
5022 fi
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5024 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5025 if ${ac_cv_prog_cc_c89+:} false; then :
5026 $as_echo_n "(cached) " >&6
5027 else
5028 ac_cv_prog_cc_c89=no
5029 ac_save_CC=$CC
5030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5031 /* end confdefs.h. */
5032 #include <stdarg.h>
5033 #include <stdio.h>
5034 struct stat;
5035 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5036 struct buf { int x; };
5037 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5038 static char *e (p, i)
5039 char **p;
5040 int i;
5041 {
5042 return p[i];
5043 }
5044 static char *f (char * (*g) (char **, int), char **p, ...)
5045 {
5046 char *s;
5047 va_list v;
5048 va_start (v,p);
5049 s = g (p, va_arg (v,int));
5050 va_end (v);
5051 return s;
5052 }
5053
5054 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5055 function prototypes and stuff, but not '\xHH' hex character constants.
5056 These don't provoke an error unfortunately, instead are silently treated
5057 as 'x'. The following induces an error, until -std is added to get
5058 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5059 array size at least. It's necessary to write '\x00'==0 to get something
5060 that's true only with -std. */
5061 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5062
5063 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5064 inside strings and character constants. */
5065 #define FOO(x) 'x'
5066 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5067
5068 int test (int i, double x);
5069 struct s1 {int (*f) (int a);};
5070 struct s2 {int (*f) (double a);};
5071 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5072 int argc;
5073 char **argv;
5074 int
5075 main ()
5076 {
5077 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5078 ;
5079 return 0;
5080 }
5081 _ACEOF
5082 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5083 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5084 do
5085 CC="$ac_save_CC $ac_arg"
5086 if ac_fn_c_try_compile "$LINENO"; then :
5087 ac_cv_prog_cc_c89=$ac_arg
5088 fi
5089 rm -f core conftest.err conftest.$ac_objext
5090 test "x$ac_cv_prog_cc_c89" != "xno" && break
5091 done
5092 rm -f conftest.$ac_ext
5093 CC=$ac_save_CC
5094
5095 fi
5096 # AC_CACHE_VAL
5097 case "x$ac_cv_prog_cc_c89" in
5098 x)
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5100 case "none needed" in #(
5101 yes|ok|yes[\ ,]*) :
5102 $as_echo "${as__grn}none needed${as__std}" >&6 ;; #(
5103 no|failed|unsupported|no[\ ,]*) :
5104 $as_echo "${as__red}none needed${as__std}" >&6 ;; #(
5105 *) :
5106 $as_echo "${as__blu}none needed${as__std}" >&6 ;;
5107 esac; } ;;
5108 xno)
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5110 $as_echo "${as__red}unsupported${as__std}" >&6; } ;;
5111 *)
5112 CC="$CC $ac_cv_prog_cc_c89"
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5114 case "$ac_cv_prog_cc_c89" in #(
5115 yes|ok|yes[\ ,]*) :
5116 $as_echo "${as__grn}$ac_cv_prog_cc_c89${as__std}" >&6 ;; #(
5117 no|failed|unsupported|no[\ ,]*) :
5118 $as_echo "${as__red}$ac_cv_prog_cc_c89${as__std}" >&6 ;; #(
5119 *) :
5120 $as_echo "${as__blu}$ac_cv_prog_cc_c89${as__std}" >&6 ;;
5121 esac; } ;;
5122 esac
5123 if test "x$ac_cv_prog_cc_c89" != xno; then :
5124
5125 fi
5126
5127 ac_ext=c
5128 ac_cpp='$CPP $CPPFLAGS'
5129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5132
5133 depcc="$CC" am_compiler_list=
5134
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5136 $as_echo_n "checking dependency style of $depcc... " >&6; }
5137 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5138 $as_echo_n "(cached) " >&6
5139 else
5140 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5141 # We make a subdir and do the tests there. Otherwise we can end up
5142 # making bogus files that we don't know about and never remove. For
5143 # instance it was reported that on HP-UX the gcc test will end up
5144 # making a dummy file named 'D' -- because '-MD' means "put the output
5145 # in D".
5146 rm -rf conftest.dir
5147 mkdir conftest.dir
5148 # Copy depcomp to subdir because otherwise we won't find it if we're
5149 # using a relative directory.
5150 cp "$am_depcomp" conftest.dir
5151 cd conftest.dir
5152 # We will build objects and dependencies in a subdirectory because
5153 # it helps to detect inapplicable dependency modes. For instance
5154 # both Tru64's cc and ICC support -MD to output dependencies as a
5155 # side effect of compilation, but ICC will put the dependencies in
5156 # the current directory while Tru64 will put them in the object
5157 # directory.
5158 mkdir sub
5159
5160 am_cv_CC_dependencies_compiler_type=none
5161 if test "$am_compiler_list" = ""; then
5162 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5163 fi
5164 am__universal=false
5165 case " $depcc " in #(
5166 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5167 esac
5168
5169 for depmode in $am_compiler_list; do
5170 # Setup a source with many dependencies, because some compilers
5171 # like to wrap large dependency lists on column 80 (with \), and
5172 # we should not choose a depcomp mode which is confused by this.
5173 #
5174 # We need to recreate these files for each test, as the compiler may
5175 # overwrite some of them when testing with obscure command lines.
5176 # This happens at least with the AIX C compiler.
5177 : > sub/conftest.c
5178 for i in 1 2 3 4 5 6; do
5179 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5180 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5181 # Solaris 10 /bin/sh.
5182 echo '/* dummy */' > sub/conftst$i.h
5183 done
5184 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5185
5186 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5187 # mode. It turns out that the SunPro C++ compiler does not properly
5188 # handle '-M -o', and we need to detect this. Also, some Intel
5189 # versions had trouble with output in subdirs.
5190 am__obj=sub/conftest.${OBJEXT-o}
5191 am__minus_obj="-o $am__obj"
5192 case $depmode in
5193 gcc)
5194 # This depmode causes a compiler race in universal mode.
5195 test "$am__universal" = false || continue
5196 ;;
5197 nosideeffect)
5198 # After this tag, mechanisms are not by side-effect, so they'll
5199 # only be used when explicitly requested.
5200 if test "x$enable_dependency_tracking" = xyes; then
5201 continue
5202 else
5203 break
5204 fi
5205 ;;
5206 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5207 # This compiler won't grok '-c -o', but also, the minuso test has
5208 # not run yet. These depmodes are late enough in the game, and
5209 # so weak that their functioning should not be impacted.
5210 am__obj=conftest.${OBJEXT-o}
5211 am__minus_obj=
5212 ;;
5213 none) break ;;
5214 esac
5215 if depmode=$depmode \
5216 source=sub/conftest.c object=$am__obj \
5217 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5218 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5219 >/dev/null 2>conftest.err &&
5220 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5221 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5222 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5223 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5224 # icc doesn't choke on unknown options, it will just issue warnings
5225 # or remarks (even with -Werror). So we grep stderr for any message
5226 # that says an option was ignored or not supported.
5227 # When given -MP, icc 7.0 and 7.1 complain thusly:
5228 # icc: Command line warning: ignoring option '-M'; no argument required
5229 # The diagnosis changed in icc 8.0:
5230 # icc: Command line remark: option '-MP' not supported
5231 if (grep 'ignoring option' conftest.err ||
5232 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5233 am_cv_CC_dependencies_compiler_type=$depmode
5234 break
5235 fi
5236 fi
5237 done
5238
5239 cd ..
5240 rm -rf conftest.dir
5241 else
5242 am_cv_CC_dependencies_compiler_type=none
5243 fi
5244
5245 fi
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5247 case "$am_cv_CC_dependencies_compiler_type" in #(
5248 yes|ok|yes[\ ,]*) :
5249 $as_echo "${as__grn}$am_cv_CC_dependencies_compiler_type${as__std}" >&6 ;; #(
5250 no|failed|unsupported|no[\ ,]*) :
5251 $as_echo "${as__red}$am_cv_CC_dependencies_compiler_type${as__std}" >&6 ;; #(
5252 *) :
5253 $as_echo "${as__blu}$am_cv_CC_dependencies_compiler_type${as__std}" >&6 ;;
5254 esac; }
5255 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5256
5257 if
5258 test "x$enable_dependency_tracking" != xno \
5259 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5260 am__fastdepCC_TRUE=
5261 am__fastdepCC_FALSE='#'
5262 else
5263 am__fastdepCC_TRUE='#'
5264 am__fastdepCC_FALSE=
5265 fi
5266
5267
5268
5269 if test -n "$ac_tool_prefix"; then
5270 for ac_prog in ar lib "link -lib"
5271 do
5272 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5273 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5275 $as_echo_n "checking for $ac_word... " >&6; }
5276 if ${ac_cv_prog_AR+:} false; then :
5277 $as_echo_n "(cached) " >&6
5278 else
5279 if test -n "$AR"; then
5280 ac_cv_prog_AR="$AR" # Let the user override the test.
5281 else
5282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5283 for as_dir in $PATH
5284 do
5285 IFS=$as_save_IFS
5286 test -z "$as_dir" && as_dir=.
5287 for ac_exec_ext in '' $ac_executable_extensions; do
5288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5289 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5291 break 2
5292 fi
5293 done
5294 done
5295 IFS=$as_save_IFS
5296
5297 fi
5298 fi
5299 AR=$ac_cv_prog_AR
5300 if test -n "$AR"; then
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5302 case "$AR" in #(
5303 yes|ok|yes[\ ,]*) :
5304 $as_echo "${as__grn}$AR${as__std}" >&6 ;; #(
5305 no|failed|unsupported|no[\ ,]*) :
5306 $as_echo "${as__red}$AR${as__std}" >&6 ;; #(
5307 *) :
5308 $as_echo "${as__blu}$AR${as__std}" >&6 ;;
5309 esac; }
5310 else
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5312 $as_echo "${as__red}no${as__std}" >&6; }
5313 fi
5314
5315
5316 test -n "$AR" && break
5317 done
5318 fi
5319 if test -z "$AR"; then
5320 ac_ct_AR=$AR
5321 for ac_prog in ar lib "link -lib"
5322 do
5323 # Extract the first word of "$ac_prog", so it can be a program name with args.
5324 set dummy $ac_prog; ac_word=$2
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5326 $as_echo_n "checking for $ac_word... " >&6; }
5327 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5328 $as_echo_n "(cached) " >&6
5329 else
5330 if test -n "$ac_ct_AR"; then
5331 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5332 else
5333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5334 for as_dir in $PATH
5335 do
5336 IFS=$as_save_IFS
5337 test -z "$as_dir" && as_dir=.
5338 for ac_exec_ext in '' $ac_executable_extensions; do
5339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5340 ac_cv_prog_ac_ct_AR="$ac_prog"
5341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5342 break 2
5343 fi
5344 done
5345 done
5346 IFS=$as_save_IFS
5347
5348 fi
5349 fi
5350 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5351 if test -n "$ac_ct_AR"; then
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5353 case "$ac_ct_AR" in #(
5354 yes|ok|yes[\ ,]*) :
5355 $as_echo "${as__grn}$ac_ct_AR${as__std}" >&6 ;; #(
5356 no|failed|unsupported|no[\ ,]*) :
5357 $as_echo "${as__red}$ac_ct_AR${as__std}" >&6 ;; #(
5358 *) :
5359 $as_echo "${as__blu}$ac_ct_AR${as__std}" >&6 ;;
5360 esac; }
5361 else
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5363 $as_echo "${as__red}no${as__std}" >&6; }
5364 fi
5365
5366
5367 test -n "$ac_ct_AR" && break
5368 done
5369
5370 if test "x$ac_ct_AR" = x; then
5371 AR="false"
5372 else
5373 case $cross_compiling:$ac_tool_warned in
5374 yes:)
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5376 $as_echo "$as_me: ${as__yel}WARNING: using cross tools not prefixed with host triplet${as__std}" >&2;}
5377 ac_tool_warned=yes ;;
5378 esac
5379 AR=$ac_ct_AR
5380 fi
5381 fi
5382
5383 : ${AR=ar}
5384
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5386 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5387 if ${am_cv_ar_interface+:} false; then :
5388 $as_echo_n "(cached) " >&6
5389 else
5390 am_cv_ar_interface=ar
5391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5392 /* end confdefs.h. */
5393 int some_variable = 0;
5394 _ACEOF
5395 if ac_fn_c_try_compile "$LINENO"; then :
5396 am_ar_try='$AR cr libconftest.a conftest.$ac_objext >&5'
5397 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5398 (eval $am_ar_try) 2>&5
5399 ac_status=$?
5400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5401 test $ac_status = 0; }
5402 if test "$ac_status" -eq 0; then
5403 am_cv_ar_interface=ar
5404 else
5405 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5406 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5407 (eval $am_ar_try) 2>&5
5408 ac_status=$?
5409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5410 test $ac_status = 0; }
5411 if test "$ac_status" -eq 0; then
5412 am_cv_ar_interface=lib
5413 else
5414 am_cv_ar_interface=unknown
5415 fi
5416 fi
5417 rm -f conftest.lib libconftest.a
5418
5419 fi
5420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5421
5422 fi
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5424 case "$am_cv_ar_interface" in #(
5425 yes|ok|yes[\ ,]*) :
5426 $as_echo "${as__grn}$am_cv_ar_interface${as__std}" >&6 ;; #(
5427 no|failed|unsupported|no[\ ,]*) :
5428 $as_echo "${as__red}$am_cv_ar_interface${as__std}" >&6 ;; #(
5429 *) :
5430 $as_echo "${as__blu}$am_cv_ar_interface${as__std}" >&6 ;;
5431 esac; }
5432
5433 case $am_cv_ar_interface in
5434 ar)
5435 ;;
5436 lib)
5437 # Microsoft lib, so override with the ar-lib wrapper script.
5438 # FIXME: It is wrong to rewrite AR.
5439 # But if we don't then we get into trouble of one sort or another.
5440 # A longer-term fix would be to have automake use am__AR in this case,
5441 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5442 # similar.
5443 AR="$am_aux_dir/ar-lib $AR"
5444 ;;
5445 unknown)
5446 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5447 ;;
5448 esac
5449
5450
5451 if test "x${ac_scorep_git_controlled}" = xyes; then :
5452
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5454 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5455 # Check whether --enable-maintainer-mode was given.
5456 if test "${enable_maintainer_mode+set}" = set; then :
5457 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5458 else
5459 USE_MAINTAINER_MODE=yes
5460 fi
5461
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5463 case "$USE_MAINTAINER_MODE" in #(
5464 yes|ok|yes[\ ,]*) :
5465 $as_echo "${as__grn}$USE_MAINTAINER_MODE${as__std}" >&6 ;; #(
5466 no|failed|unsupported|no[\ ,]*) :
5467 $as_echo "${as__red}$USE_MAINTAINER_MODE${as__std}" >&6 ;; #(
5468 *) :
5469 $as_echo "${as__blu}$USE_MAINTAINER_MODE${as__std}" >&6 ;;
5470 esac; }
5471 if test $USE_MAINTAINER_MODE = yes; then
5472 MAINTAINER_MODE_TRUE=
5473 MAINTAINER_MODE_FALSE='#'
5474 else
5475 MAINTAINER_MODE_TRUE='#'
5476 MAINTAINER_MODE_FALSE=
5477 fi
5478
5479 MAINT=$MAINTAINER_MODE_TRUE
5480
5481
5482 else
5483
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5485 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5486 # Check whether --enable-maintainer-mode was given.
5487 if test "${enable_maintainer_mode+set}" = set; then :
5488 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5489 else
5490 USE_MAINTAINER_MODE=no
5491 fi
5492
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5494 case "$USE_MAINTAINER_MODE" in #(
5495 yes|ok|yes[\ ,]*) :
5496 $as_echo "${as__grn}$USE_MAINTAINER_MODE${as__std}" >&6 ;; #(
5497 no|failed|unsupported|no[\ ,]*) :
5498 $as_echo "${as__red}$USE_MAINTAINER_MODE${as__std}" >&6 ;; #(
5499 *) :
5500 $as_echo "${as__blu}$USE_MAINTAINER_MODE${as__std}" >&6 ;;
5501 esac; }
5502 if test $USE_MAINTAINER_MODE = yes; then
5503 MAINTAINER_MODE_TRUE=
5504 MAINTAINER_MODE_FALSE='#'
5505 else
5506 MAINTAINER_MODE_TRUE='#'
5507 MAINTAINER_MODE_FALSE=
5508 fi
5509
5510 MAINT=$MAINTAINER_MODE_TRUE
5511
5512
5513 fi
5514
5515 _lcl_receval="${includedir}"
5516 INCLUDEDIR=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5517 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
5518 _lcl_receval_old=''
5519 while test "$_lcl_receval_old" != "$_lcl_receval"; do
5520 _lcl_receval_old="$_lcl_receval"
5521 eval _lcl_receval="\"$_lcl_receval\""
5522 done
5523 echo "$_lcl_receval")`
5524
5525
5526 if test 1 -eq 1; then
5527 BUILD_TESTS_TRUE=
5528 BUILD_TESTS_FALSE='#'
5529 else
5530 BUILD_TESTS_TRUE='#'
5531 BUILD_TESTS_FALSE=
5532 fi
5533
5534
5535 if test "x${ac_scorep_platform}" = "xaltix"; then
5536 PLATFORM_ALTIX_TRUE=
5537 PLATFORM_ALTIX_FALSE='#'
5538 else
5539 PLATFORM_ALTIX_TRUE='#'
5540 PLATFORM_ALTIX_FALSE=
5541 fi
5542
5543 if test "x${ac_scorep_platform}" = "xaix"; then
5544 PLATFORM_AIX_TRUE=
5545 PLATFORM_AIX_FALSE='#'
5546 else
5547 PLATFORM_AIX_TRUE='#'
5548 PLATFORM_AIX_FALSE=
5549 fi
5550
5551 if test "x${ac_scorep_platform}" = "xbgl"; then
5552 PLATFORM_BGL_TRUE=
5553 PLATFORM_BGL_FALSE='#'
5554 else
5555 PLATFORM_BGL_TRUE='#'
5556 PLATFORM_BGL_FALSE=
5557 fi
5558
5559 if test "x${ac_scorep_platform}" = "xbgp"; then
5560 PLATFORM_BGP_TRUE=
5561 PLATFORM_BGP_FALSE='#'
5562 else
5563 PLATFORM_BGP_TRUE='#'
5564 PLATFORM_BGP_FALSE=
5565 fi
5566
5567 if test "x${ac_scorep_platform}" = "xbgq"; then
5568 PLATFORM_BGQ_TRUE=
5569 PLATFORM_BGQ_FALSE='#'
5570 else
5571 PLATFORM_BGQ_TRUE='#'
5572 PLATFORM_BGQ_FALSE=
5573 fi
5574
5575 if test "x${ac_scorep_platform}" = "xcrayxt"; then
5576 PLATFORM_CRAYXT_TRUE=
5577 PLATFORM_CRAYXT_FALSE='#'
5578 else
5579 PLATFORM_CRAYXT_TRUE='#'
5580 PLATFORM_CRAYXT_FALSE=
5581 fi
5582
5583 if test "x${ac_scorep_platform}" = "xcrayxe"; then
5584 PLATFORM_CRAYXE_TRUE=
5585 PLATFORM_CRAYXE_FALSE='#'
5586 else
5587 PLATFORM_CRAYXE_TRUE='#'
5588 PLATFORM_CRAYXE_FALSE=
5589 fi
5590
5591 if test "x${ac_scorep_platform}" = "xcrayxk"; then
5592 PLATFORM_CRAYXK_TRUE=
5593 PLATFORM_CRAYXK_FALSE='#'
5594 else
5595 PLATFORM_CRAYXK_TRUE='#'
5596 PLATFORM_CRAYXK_FALSE=
5597 fi
5598
5599 if test "x${ac_scorep_platform}" = "xcrayxc"; then
5600 PLATFORM_CRAYXC_TRUE=
5601 PLATFORM_CRAYXC_FALSE='#'
5602 else
5603 PLATFORM_CRAYXC_TRUE='#'
5604 PLATFORM_CRAYXC_FALSE=
5605 fi
5606
5607 if test "x${ac_scorep_platform}" = "xcraygeneric"; then
5608 PLATFORM_CRAYGENERIC_TRUE=
5609 PLATFORM_CRAYGENERIC_FALSE='#'
5610 else
5611 PLATFORM_CRAYGENERIC_TRUE='#'
5612 PLATFORM_CRAYGENERIC_FALSE=
5613 fi
5614
5615 if test "x${ac_scorep_platform}" = "xlinux"; then
5616 PLATFORM_LINUX_TRUE=
5617 PLATFORM_LINUX_FALSE='#'
5618 else
5619 PLATFORM_LINUX_TRUE='#'
5620 PLATFORM_LINUX_FALSE=
5621 fi
5622
5623 if test "x${ac_scorep_platform}" = "xsolaris"; then
5624 PLATFORM_SOLARIS_TRUE=
5625 PLATFORM_SOLARIS_FALSE='#'
5626 else
5627 PLATFORM_SOLARIS_TRUE='#'
5628 PLATFORM_SOLARIS_FALSE=
5629 fi
5630
5631 if test "x${ac_scorep_platform}" = "xmac"; then
5632 PLATFORM_MAC_TRUE=
5633 PLATFORM_MAC_FALSE='#'
5634 else
5635 PLATFORM_MAC_TRUE='#'
5636 PLATFORM_MAC_FALSE=
5637 fi
5638
5639 if test "x${ac_scorep_platform}" = "xmic"; then
5640 PLATFORM_MIC_TRUE=
5641 PLATFORM_MIC_FALSE='#'
5642 else
5643 PLATFORM_MIC_TRUE='#'
5644 PLATFORM_MIC_FALSE=
5645 fi
5646
5647 if test "x${ac_scorep_platform}" = "xmingw"; then
5648 PLATFORM_MINGW_TRUE=
5649 PLATFORM_MINGW_FALSE='#'
5650 else
5651 PLATFORM_MINGW_TRUE='#'
5652 PLATFORM_MINGW_FALSE=
5653 fi
5654
5655 if test "x${ac_scorep_platform}" = "xk"; then
5656 PLATFORM_K_TRUE=
5657 PLATFORM_K_FALSE='#'
5658 else
5659 PLATFORM_K_TRUE='#'
5660 PLATFORM_K_FALSE=
5661 fi
5662
5663 if test "x${ac_scorep_platform}" = "xfx10"; then
5664 PLATFORM_FX10_TRUE=
5665 PLATFORM_FX10_FALSE='#'
5666 else
5667 PLATFORM_FX10_TRUE='#'
5668 PLATFORM_FX10_FALSE=
5669 fi
5670
5671 if test "x${ac_scorep_platform}" = "xfx100"; then
5672 PLATFORM_FX100_TRUE=
5673 PLATFORM_FX100_FALSE='#'
5674 else
5675 PLATFORM_FX100_TRUE='#'
5676 PLATFORM_FX100_FALSE=
5677 fi
5678
5679
5680 case ${ac_scorep_platform} in #(
5681 cray*) :
5682 afs_platform_cray="yes" ;; #(
5683 *) :
5684 afs_platform_cray="no" ;;
5685 esac
5686 if test "x${afs_platform_cray}" = "xyes" ; then
5687 PLATFORM_CRAY_TRUE=
5688 PLATFORM_CRAY_FALSE='#'
5689 else
5690 PLATFORM_CRAY_TRUE='#'
5691 PLATFORM_CRAY_FALSE=
5692 fi
5693
5694
5695 if test -z "$PLATFORM_ALTIX_TRUE"; then :
5696
5697 $as_echo "#define HAVE_PLATFORM_ALTIX 1" >>confdefs.h
5698
5699 fi
5700 if test -z "$PLATFORM_AIX_TRUE"; then :
5701
5702 $as_echo "#define HAVE_PLATFORM_AIX 1" >>confdefs.h
5703
5704 fi
5705 if test -z "$PLATFORM_BGL_TRUE"; then :
5706
5707 $as_echo "#define HAVE_PLATFORM_BGL 1" >>confdefs.h
5708
5709 fi
5710 if test -z "$PLATFORM_BGP_TRUE"; then :
5711
5712 $as_echo "#define HAVE_PLATFORM_BGP 1" >>confdefs.h
5713
5714 fi
5715 if test -z "$PLATFORM_BGQ_TRUE"; then :
5716
5717 $as_echo "#define HAVE_PLATFORM_BGQ 1" >>confdefs.h
5718
5719 fi
5720 if test -z "$PLATFORM_CRAY_TRUE"; then :
5721
5722 $as_echo "#define HAVE_PLATFORM_CRAY 1" >>confdefs.h
5723
5724 fi
5725 if test -z "$PLATFORM_CRAYXT_TRUE"; then :
5726
5727 $as_echo "#define HAVE_PLATFORM_CRAYXT 1" >>confdefs.h
5728
5729 fi
5730 if test -z "$PLATFORM_CRAYXE_TRUE"; then :
5731
5732 $as_echo "#define HAVE_PLATFORM_CRAYXE 1" >>confdefs.h
5733
5734 fi
5735 if test -z "$PLATFORM_CRAYXK_TRUE"; then :
5736
5737 $as_echo "#define HAVE_PLATFORM_CRAYXK 1" >>confdefs.h
5738
5739 fi
5740 if test -z "$PLATFORM_CRAYXC_TRUE"; then :
5741
5742 $as_echo "#define HAVE_PLATFORM_CRAYXC 1" >>confdefs.h
5743
5744 fi
5745 if test -z "$PLATFORM_CRAYGENERIC_TRUE"; then :
5746
5747 $as_echo "#define HAVE_PLATFORM_CRAYGENERIC 1" >>confdefs.h
5748
5749 fi
5750 if test -z "$PLATFORM_LINUX_TRUE"; then :
5751
5752 $as_echo "#define HAVE_PLATFORM_LINUX 1" >>confdefs.h
5753
5754 fi
5755 if test -z "$PLATFORM_SOLARIS_TRUE"; then :
5756
5757 $as_echo "#define HAVE_PLATFORM_SOLARIS 1" >>confdefs.h
5758
5759 fi
5760 if test -z "$PLATFORM_MAC_TRUE"; then :
5761
5762 $as_echo "#define HAVE_PLATFORM_MAC 1" >>confdefs.h
5763
5764 fi
5765 if test -z "$PLATFORM_MIC_TRUE"; then :
5766
5767 $as_echo "#define HAVE_PLATFORM_MIC 1" >>confdefs.h
5768
5769 fi
5770 if test -z "$PLATFORM_MINGW_TRUE"; then :
5771
5772 $as_echo "#define HAVE_PLATFORM_MINGW 1" >>confdefs.h
5773
5774 fi
5775 if test -z "$PLATFORM_K_TRUE"; then :
5776
5777 $as_echo "#define HAVE_PLATFORM_K 1" >>confdefs.h
5778
5779 fi
5780 if test -z "$PLATFORM_FX10_TRUE"; then :
5781
5782 $as_echo "#define HAVE_PLATFORM_FX10 1" >>confdefs.h
5783
5784 fi
5785 if test -z "$PLATFORM_FX100_TRUE"; then :
5786
5787 $as_echo "#define HAVE_PLATFORM_FX100 1" >>confdefs.h
5788
5789 fi
5790
5791
5792 # <AC_OPARI_COMMON_CHECKS>
5793
5794
5795
5796 if test "x$CC" != xcc; then
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5798 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5799 else
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5801 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5802 fi
5803 set dummy $CC; ac_cc=`$as_echo "$2" |
5804 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5805 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
5806 $as_echo_n "(cached) " >&6
5807 else
5808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5809 /* end confdefs.h. */
5810
5811 int
5812 main ()
5813 {
5814
5815 ;
5816 return 0;
5817 }
5818 _ACEOF
5819 # Make sure it works both with $CC and with simple cc.
5820 # We do the test twice because some compilers refuse to overwrite an
5821 # existing .o file with -o, though they will create one.
5822 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5823 rm -f conftest2.*
5824 if { { case "(($ac_try" in
5825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5826 *) ac_try_echo=$ac_try;;
5827 esac
5828 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5829 $as_echo "$ac_try_echo"; } >&5
5830 (eval "$ac_try") 2>&5
5831 ac_status=$?
5832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5833 test $ac_status = 0; } &&
5834 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5836 *) ac_try_echo=$ac_try;;
5837 esac
5838 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5839 $as_echo "$ac_try_echo"; } >&5
5840 (eval "$ac_try") 2>&5
5841 ac_status=$?
5842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5843 test $ac_status = 0; };
5844 then
5845 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5846 if test "x$CC" != xcc; then
5847 # Test first that cc exists at all.
5848 if { ac_try='cc -c conftest.$ac_ext >&5'
5849 { { case "(($ac_try" in
5850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5851 *) ac_try_echo=$ac_try;;
5852 esac
5853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5854 $as_echo "$ac_try_echo"; } >&5
5855 (eval "$ac_try") 2>&5
5856 ac_status=$?
5857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5858 test $ac_status = 0; }; }; then
5859 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5860 rm -f conftest2.*
5861 if { { case "(($ac_try" in
5862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5863 *) ac_try_echo=$ac_try;;
5864 esac
5865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5866 $as_echo "$ac_try_echo"; } >&5
5867 (eval "$ac_try") 2>&5
5868 ac_status=$?
5869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5870 test $ac_status = 0; } &&
5871 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5873 *) ac_try_echo=$ac_try;;
5874 esac
5875 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5876 $as_echo "$ac_try_echo"; } >&5
5877 (eval "$ac_try") 2>&5
5878 ac_status=$?
5879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5880 test $ac_status = 0; };
5881 then
5882 # cc works too.
5883 :
5884 else
5885 # cc exists but doesn't like -o.
5886 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5887 fi
5888 fi
5889 fi
5890 else
5891 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5892 fi
5893 rm -f core conftest*
5894
5895 fi
5896 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5898 $as_echo "${as__grn}yes${as__std}" >&6; }
5899 else
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5901 $as_echo "${as__red}no${as__std}" >&6; }
5902
5903 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5904
5905 fi
5906
5907
5908
5909
5910
5911 _afs_prog_c_std="99"
5912
5913 # FIXME: we rely on the cache variable name because
5914 # there is no other way.
5915 set dummy $CC
5916 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5917 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5918 if test "$am_t" != yes; then
5919 # Losing compiler, so override with the script.
5920 # FIXME: It is wrong to rewrite CC.
5921 # But if we don't then we get into trouble of one sort or another.
5922 # A longer-term fix would be to have automake use am__CC in this case,
5923 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5924 CC="$am_aux_dir/compile $CC"
5925 fi
5926
5927
5928
5929 if ${afs_cv_prog_cc_works+:} false; then :
5930 $as_echo_n "(cached) " >&6
5931 else
5932 afs_cv_prog_cc_works=yes
5933 fi
5934
5935 ac_ext=c
5936 ac_cpp='$CPP $CPPFLAGS'
5937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5940
5941
5942 ax_c_compile_alternatives="99 9x" ax_c_compile_c99_required=true
5943 ac_ext=c
5944 ac_cpp='$CPP $CPPFLAGS'
5945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5948 ac_success=no
5949
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports C99 features by default" >&5
5951 $as_echo_n "checking whether $CC supports C99 features by default... " >&6; }
5952 if ${ax_cv_c_compile_c99+:} false; then :
5953 $as_echo_n "(cached) " >&6
5954 else
5955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5956 /* end confdefs.h. */
5957
5958 /* Does the compiler advertise C89 conformance?
5959 Do not test the value of __STDC__, because some compilers set it to 0
5960 while being otherwise adequately conformant. */
5961 #if !defined __STDC__
5962 # error "Compiler does not advertise C89 conformance"
5963 #endif
5964
5965 #include <stddef.h>
5966 #include <stdarg.h>
5967 struct stat;
5968 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
5969 struct buf { int x; };
5970 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
5971 static char *e (p, i)
5972 char **p;
5973 int i;
5974 {
5975 return p[i];
5976 }
5977 static char *f (char * (*g) (char **, int), char **p, ...)
5978 {
5979 char *s;
5980 va_list v;
5981 va_start (v,p);
5982 s = g (p, va_arg (v,int));
5983 va_end (v);
5984 return s;
5985 }
5986
5987 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5988 function prototypes and stuff, but not \xHH hex character constants.
5989 These do not provoke an error unfortunately, instead are silently treated
5990 as an "x". The following induces an error, until -std is added to get
5991 proper ANSI mode. Curiously \x00 != x always comes out true, for an
5992 array size at least. It is necessary to write \x00 == 0 to get something
5993 that is true only with -std. */
5994 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5995
5996 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5997 inside strings and character constants. */
5998 #define FOO(x) 'x'
5999 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6000
6001 int test (int i, double x);
6002 struct s1 {int (*f) (int a);};
6003 struct s2 {int (*f) (double a);};
6004 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
6005 int, int);
6006
6007
6008 // Does the compiler advertise C99 conformance?
6009 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
6010 # error "Compiler does not advertise C99 conformance"
6011 #endif
6012
6013 #include <stdbool.h>
6014 extern int puts (const char *);
6015 extern int printf (const char *, ...);
6016 extern int dprintf (int, const char *, ...);
6017 extern void *malloc (size_t);
6018
6019 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6020 // dprintf is used instead of fprintf to avoid needing to declare
6021 // FILE and stderr.
6022 #define debug(...) dprintf (2, __VA_ARGS__)
6023 #define showlist(...) puts (#__VA_ARGS__)
6024 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6025 static void
6026 test_varargs_macros (void)
6027 {
6028 int x = 1234;
6029 int y = 5678;
6030 debug ("Flag");
6031 debug ("X = %d\n", x);
6032 showlist (The first, second, and third items.);
6033 report (x>y, "x is %d but y is %d", x, y);
6034 }
6035
6036 // Check long long types.
6037 #define BIG64 18446744073709551615ull
6038 #define BIG32 4294967295ul
6039 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6040 #if !BIG_OK
6041 #error "your preprocessor is broken"
6042 #endif
6043 #if BIG_OK
6044 #else
6045 #error "your preprocessor is broken"
6046 #endif
6047 static long long int bignum = -9223372036854775807LL;
6048 static unsigned long long int ubignum = BIG64;
6049
6050 struct incomplete_array
6051 {
6052 int datasize;
6053 double data[];
6054 };
6055
6056 struct named_init {
6057 int number;
6058 const wchar_t *name;
6059 double average;
6060 };
6061
6062 typedef const char *ccp;
6063
6064 static inline int
6065 test_restrict (ccp restrict text)
6066 {
6067 // See if C++-style comments work.
6068 // Iterate through items via the restricted pointer.
6069 // Also check for declarations in for loops.
6070 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6071 continue;
6072 return 0;
6073 }
6074
6075 // Check varargs and va_copy.
6076 static bool
6077 test_varargs (const char *format, ...)
6078 {
6079 va_list args;
6080 va_start (args, format);
6081 va_list args_copy;
6082 va_copy (args_copy, args);
6083
6084 const char *str = "";
6085 int number = 0;
6086 float fnumber = 0;
6087
6088 while (*format)
6089 {
6090 switch (*format++)
6091 {
6092 case 's': // string
6093 str = va_arg (args_copy, const char *);
6094 break;
6095 case 'd': // int
6096 number = va_arg (args_copy, int);
6097 break;
6098 case 'f': // float
6099 fnumber = va_arg (args_copy, double);
6100 break;
6101 default:
6102 break;
6103 }
6104 }
6105 va_end (args_copy);
6106 va_end (args);
6107
6108 return *str && number && fnumber;
6109 }
6110
6111
6112
6113 int
6114 main(int argc, char** argv)
6115 {
6116 int ok = 0;
6117
6118
6119 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
6120
6121
6122 // Check bool.
6123 _Bool success = false;
6124 success |= (argc != 0);
6125
6126 // Check restrict.
6127 if (test_restrict ("String literal") == 0)
6128 success = true;
6129 char *restrict newvar = "Another string";
6130
6131 // Check varargs.
6132 success &= test_varargs ("s, d' f .", "string", 65, 34.234);
6133 test_varargs_macros ();
6134
6135 // Check flexible array members.
6136 struct incomplete_array *ia =
6137 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6138 ia->datasize = 10;
6139 for (int i = 0; i < ia->datasize; ++i)
6140 ia->data[i] = i * 1.234;
6141
6142 // Check named initializers.
6143 struct named_init ni = {
6144 .number = 34,
6145 .name = L"Test wide string",
6146 .average = 543.34343,
6147 };
6148
6149 ni.number = 58;
6150
6151 int dynamic_array[ni.number];
6152 dynamic_array[0] = argv[0][0];
6153 dynamic_array[ni.number - 1] = 543;
6154
6155 // work around unused variable warnings
6156 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6157 || dynamic_array[ni.number - 1] != 543);
6158
6159
6160 return ok;
6161 }
6162
6163 _ACEOF
6164 if ac_fn_c_try_compile "$LINENO"; then :
6165 ax_cv_c_compile_c99=yes
6166 else
6167 ax_cv_c_compile_c99=no
6168 fi
6169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6170 fi
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compile_c99" >&5
6172 case "$ax_cv_c_compile_c99" in #(
6173 yes|ok|yes[\ ,]*) :
6174 $as_echo "${as__grn}$ax_cv_c_compile_c99${as__std}" >&6 ;; #(
6175 no|failed|unsupported|no[\ ,]*) :
6176 $as_echo "${as__red}$ax_cv_c_compile_c99${as__std}" >&6 ;; #(
6177 *) :
6178 $as_echo "${as__blu}$ax_cv_c_compile_c99${as__std}" >&6 ;;
6179 esac; }
6180 if test x$ax_cv_c_compile_c99 = xyes; then
6181 ac_success=yes
6182 fi
6183
6184 if test x$ac_success = xno; then
6185 for alternative in ${ax_c_compile_alternatives}; do
6186 for switch in -std=gnu${alternative} -std=std${alternative} -c${alternative} -AC${alternative} -qlanglvl=extc${alternative} -Kc${alternative} -hstd=c${alternative} -D_STDC_C99=; do
6187 cachevar=`$as_echo "ax_cv_c_compile_c99_$switch" | $as_tr_sh`
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports C99 features with $switch" >&5
6189 $as_echo_n "checking whether $CC supports C99 features with $switch... " >&6; }
6190 if eval \${$cachevar+:} false; then :
6191 $as_echo_n "(cached) " >&6
6192 else
6193 ac_save_CC="$CC"
6194 CC="$CC $switch"
6195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6196 /* end confdefs.h. */
6197
6198 /* Does the compiler advertise C89 conformance?
6199 Do not test the value of __STDC__, because some compilers set it to 0
6200 while being otherwise adequately conformant. */
6201 #if !defined __STDC__
6202 # error "Compiler does not advertise C89 conformance"
6203 #endif
6204
6205 #include <stddef.h>
6206 #include <stdarg.h>
6207 struct stat;
6208 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
6209 struct buf { int x; };
6210 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
6211 static char *e (p, i)
6212 char **p;
6213 int i;
6214 {
6215 return p[i];
6216 }
6217 static char *f (char * (*g) (char **, int), char **p, ...)
6218 {
6219 char *s;
6220 va_list v;
6221 va_start (v,p);
6222 s = g (p, va_arg (v,int));
6223 va_end (v);
6224 return s;
6225 }
6226
6227 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6228 function prototypes and stuff, but not \xHH hex character constants.
6229 These do not provoke an error unfortunately, instead are silently treated
6230 as an "x". The following induces an error, until -std is added to get
6231 proper ANSI mode. Curiously \x00 != x always comes out true, for an
6232 array size at least. It is necessary to write \x00 == 0 to get something
6233 that is true only with -std. */
6234 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6235
6236 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6237 inside strings and character constants. */
6238 #define FOO(x) 'x'
6239 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6240
6241 int test (int i, double x);
6242 struct s1 {int (*f) (int a);};
6243 struct s2 {int (*f) (double a);};
6244 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
6245 int, int);
6246
6247
6248 // Does the compiler advertise C99 conformance?
6249 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
6250 # error "Compiler does not advertise C99 conformance"
6251 #endif
6252
6253 #include <stdbool.h>
6254 extern int puts (const char *);
6255 extern int printf (const char *, ...);
6256 extern int dprintf (int, const char *, ...);
6257 extern void *malloc (size_t);
6258
6259 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6260 // dprintf is used instead of fprintf to avoid needing to declare
6261 // FILE and stderr.
6262 #define debug(...) dprintf (2, __VA_ARGS__)
6263 #define showlist(...) puts (#__VA_ARGS__)
6264 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6265 static void
6266 test_varargs_macros (void)
6267 {
6268 int x = 1234;
6269 int y = 5678;
6270 debug ("Flag");
6271 debug ("X = %d\n", x);
6272 showlist (The first, second, and third items.);
6273 report (x>y, "x is %d but y is %d", x, y);
6274 }
6275
6276 // Check long long types.
6277 #define BIG64 18446744073709551615ull
6278 #define BIG32 4294967295ul
6279 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6280 #if !BIG_OK
6281 #error "your preprocessor is broken"
6282 #endif
6283 #if BIG_OK
6284 #else
6285 #error "your preprocessor is broken"
6286 #endif
6287 static long long int bignum = -9223372036854775807LL;
6288 static unsigned long long int ubignum = BIG64;
6289
6290 struct incomplete_array
6291 {
6292 int datasize;
6293 double data[];
6294 };
6295
6296 struct named_init {
6297 int number;
6298 const wchar_t *name;
6299 double average;
6300 };
6301
6302 typedef const char *ccp;
6303
6304 static inline int
6305 test_restrict (ccp restrict text)
6306 {
6307 // See if C++-style comments work.
6308 // Iterate through items via the restricted pointer.
6309 // Also check for declarations in for loops.
6310 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6311 continue;
6312 return 0;
6313 }
6314
6315 // Check varargs and va_copy.
6316 static bool
6317 test_varargs (const char *format, ...)
6318 {
6319 va_list args;
6320 va_start (args, format);
6321 va_list args_copy;
6322 va_copy (args_copy, args);
6323
6324 const char *str = "";
6325 int number = 0;
6326 float fnumber = 0;
6327
6328 while (*format)
6329 {
6330 switch (*format++)
6331 {
6332 case 's': // string
6333 str = va_arg (args_copy, const char *);
6334 break;
6335 case 'd': // int
6336 number = va_arg (args_copy, int);
6337 break;
6338 case 'f': // float
6339 fnumber = va_arg (args_copy, double);
6340 break;
6341 default:
6342 break;
6343 }
6344 }
6345 va_end (args_copy);
6346 va_end (args);
6347
6348 return *str && number && fnumber;
6349 }
6350
6351
6352
6353 int
6354 main(int argc, char** argv)
6355 {
6356 int ok = 0;
6357
6358
6359 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
6360
6361
6362 // Check bool.
6363 _Bool success = false;
6364 success |= (argc != 0);
6365
6366 // Check restrict.
6367 if (test_restrict ("String literal") == 0)
6368 success = true;
6369 char *restrict newvar = "Another string";
6370
6371 // Check varargs.
6372 success &= test_varargs ("s, d' f .", "string", 65, 34.234);
6373 test_varargs_macros ();
6374
6375 // Check flexible array members.
6376 struct incomplete_array *ia =
6377 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6378 ia->datasize = 10;
6379 for (int i = 0; i < ia->datasize; ++i)
6380 ia->data[i] = i * 1.234;
6381
6382 // Check named initializers.
6383 struct named_init ni = {
6384 .number = 34,
6385 .name = L"Test wide string",
6386 .average = 543.34343,
6387 };
6388
6389 ni.number = 58;
6390
6391 int dynamic_array[ni.number];
6392 dynamic_array[0] = argv[0][0];
6393 dynamic_array[ni.number - 1] = 543;
6394
6395 // work around unused variable warnings
6396 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6397 || dynamic_array[ni.number - 1] != 543);
6398
6399
6400 return ok;
6401 }
6402
6403 _ACEOF
6404 if ac_fn_c_try_compile "$LINENO"; then :
6405 eval $cachevar=yes
6406 else
6407 eval $cachevar=no
6408 fi
6409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6410 CC="$ac_save_CC"
6411 fi
6412 eval ac_res=\$$cachevar
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6414 case "$ac_res" in #(
6415 yes|ok|yes[\ ,]*) :
6416 $as_echo "${as__grn}$ac_res${as__std}" >&6 ;; #(
6417 no|failed|unsupported|no[\ ,]*) :
6418 $as_echo "${as__red}$ac_res${as__std}" >&6 ;; #(
6419 *) :
6420 $as_echo "${as__blu}$ac_res${as__std}" >&6 ;;
6421 esac; }
6422 if eval test x\$$cachevar = xyes; then
6423 CC="$CC $switch"
6424 if test "x$CPP" != x; then
6425 CPP="$CPP $switch"
6426 fi
6427 ac_success=yes
6428 break
6429 fi
6430 done
6431 if test x$ac_success = xyes; then
6432 break
6433 fi
6434 done
6435 fi
6436
6437 if test x$ac_success = xno; then
6438 for alternative in ${ax_c_compile_alternatives}; do
6439 for switch in -std=c${alternative} -c${alternative} -AC${alternative} -qlanglvl=stdc${alternative} -Kc${alternative} -hstd=c${alternative} -D_STDC_C99=; do
6440 cachevar=`$as_echo "ax_cv_c_compile_c99_$switch" | $as_tr_sh`
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports C99 features with $switch" >&5
6442 $as_echo_n "checking whether $CC supports C99 features with $switch... " >&6; }
6443 if eval \${$cachevar+:} false; then :
6444 $as_echo_n "(cached) " >&6
6445 else
6446 ac_save_CC="$CC"
6447 CC="$CC $switch"
6448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6449 /* end confdefs.h. */
6450
6451 /* Does the compiler advertise C89 conformance?
6452 Do not test the value of __STDC__, because some compilers set it to 0
6453 while being otherwise adequately conformant. */
6454 #if !defined __STDC__
6455 # error "Compiler does not advertise C89 conformance"
6456 #endif
6457
6458 #include <stddef.h>
6459 #include <stdarg.h>
6460 struct stat;
6461 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
6462 struct buf { int x; };
6463 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
6464 static char *e (p, i)
6465 char **p;
6466 int i;
6467 {
6468 return p[i];
6469 }
6470 static char *f (char * (*g) (char **, int), char **p, ...)
6471 {
6472 char *s;
6473 va_list v;
6474 va_start (v,p);
6475 s = g (p, va_arg (v,int));
6476 va_end (v);
6477 return s;
6478 }
6479
6480 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6481 function prototypes and stuff, but not \xHH hex character constants.
6482 These do not provoke an error unfortunately, instead are silently treated
6483 as an "x". The following induces an error, until -std is added to get
6484 proper ANSI mode. Curiously \x00 != x always comes out true, for an
6485 array size at least. It is necessary to write \x00 == 0 to get something
6486 that is true only with -std. */
6487 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6488
6489 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6490 inside strings and character constants. */
6491 #define FOO(x) 'x'
6492 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6493
6494 int test (int i, double x);
6495 struct s1 {int (*f) (int a);};
6496 struct s2 {int (*f) (double a);};
6497 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
6498 int, int);
6499
6500
6501 // Does the compiler advertise C99 conformance?
6502 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
6503 # error "Compiler does not advertise C99 conformance"
6504 #endif
6505
6506 #include <stdbool.h>
6507 extern int puts (const char *);
6508 extern int printf (const char *, ...);
6509 extern int dprintf (int, const char *, ...);
6510 extern void *malloc (size_t);
6511
6512 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6513 // dprintf is used instead of fprintf to avoid needing to declare
6514 // FILE and stderr.
6515 #define debug(...) dprintf (2, __VA_ARGS__)
6516 #define showlist(...) puts (#__VA_ARGS__)
6517 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6518 static void
6519 test_varargs_macros (void)
6520 {
6521 int x = 1234;
6522 int y = 5678;
6523 debug ("Flag");
6524 debug ("X = %d\n", x);
6525 showlist (The first, second, and third items.);
6526 report (x>y, "x is %d but y is %d", x, y);
6527 }
6528
6529 // Check long long types.
6530 #define BIG64 18446744073709551615ull
6531 #define BIG32 4294967295ul
6532 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6533 #if !BIG_OK
6534 #error "your preprocessor is broken"
6535 #endif
6536 #if BIG_OK
6537 #else
6538 #error "your preprocessor is broken"
6539 #endif
6540 static long long int bignum = -9223372036854775807LL;
6541 static unsigned long long int ubignum = BIG64;
6542
6543 struct incomplete_array
6544 {
6545 int datasize;
6546 double data[];
6547 };
6548
6549 struct named_init {
6550 int number;
6551 const wchar_t *name;
6552 double average;
6553 };
6554
6555 typedef const char *ccp;
6556
6557 static inline int
6558 test_restrict (ccp restrict text)
6559 {
6560 // See if C++-style comments work.
6561 // Iterate through items via the restricted pointer.
6562 // Also check for declarations in for loops.
6563 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6564 continue;
6565 return 0;
6566 }
6567
6568 // Check varargs and va_copy.
6569 static bool
6570 test_varargs (const char *format, ...)
6571 {
6572 va_list args;
6573 va_start (args, format);
6574 va_list args_copy;
6575 va_copy (args_copy, args);
6576
6577 const char *str = "";
6578 int number = 0;
6579 float fnumber = 0;
6580
6581 while (*format)
6582 {
6583 switch (*format++)
6584 {
6585 case 's': // string
6586 str = va_arg (args_copy, const char *);
6587 break;
6588 case 'd': // int
6589 number = va_arg (args_copy, int);
6590 break;
6591 case 'f': // float
6592 fnumber = va_arg (args_copy, double);
6593 break;
6594 default:
6595 break;
6596 }
6597 }
6598 va_end (args_copy);
6599 va_end (args);
6600
6601 return *str && number && fnumber;
6602 }
6603
6604
6605
6606 int
6607 main(int argc, char** argv)
6608 {
6609 int ok = 0;
6610
6611
6612 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
6613
6614
6615 // Check bool.
6616 _Bool success = false;
6617 success |= (argc != 0);
6618
6619 // Check restrict.
6620 if (test_restrict ("String literal") == 0)
6621 success = true;
6622 char *restrict newvar = "Another string";
6623
6624 // Check varargs.
6625 success &= test_varargs ("s, d' f .", "string", 65, 34.234);
6626 test_varargs_macros ();
6627
6628 // Check flexible array members.
6629 struct incomplete_array *ia =
6630 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6631 ia->datasize = 10;
6632 for (int i = 0; i < ia->datasize; ++i)
6633 ia->data[i] = i * 1.234;
6634
6635 // Check named initializers.
6636 struct named_init ni = {
6637 .number = 34,
6638 .name = L"Test wide string",
6639 .average = 543.34343,
6640 };
6641
6642 ni.number = 58;
6643
6644 int dynamic_array[ni.number];
6645 dynamic_array[0] = argv[0][0];
6646 dynamic_array[ni.number - 1] = 543;
6647
6648 // work around unused variable warnings
6649 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6650 || dynamic_array[ni.number - 1] != 543);
6651
6652
6653 return ok;
6654 }
6655
6656 _ACEOF
6657 if ac_fn_c_try_compile "$LINENO"; then :
6658 eval $cachevar=yes
6659 else
6660 eval $cachevar=no
6661 fi
6662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6663 CC="$ac_save_CC"
6664 fi
6665 eval ac_res=\$$cachevar
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6667 case "$ac_res" in #(
6668 yes|ok|yes[\ ,]*) :
6669 $as_echo "${as__grn}$ac_res${as__std}" >&6 ;; #(
6670 no|failed|unsupported|no[\ ,]*) :
6671 $as_echo "${as__red}$ac_res${as__std}" >&6 ;; #(
6672 *) :
6673 $as_echo "${as__blu}$ac_res${as__std}" >&6 ;;
6674 esac; }
6675 if eval test x\$$cachevar = xyes; then
6676 CC="$CC $switch"
6677 if test "x$CPP" != x; then
6678 CPP="$CPP $switch"
6679 fi
6680 ac_success=yes
6681 break
6682 fi
6683 done
6684 if test x$ac_success = xyes; then
6685 break
6686 fi
6687 done
6688 fi
6689 ac_ext=c
6690 ac_cpp='$CPP $CPPFLAGS'
6691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6694
6695 if test x$ax_c_compile_c99_required = xtrue; then
6696 if test x$ac_success = xno; then
6697 as_fn_error $? "*** A compiler with support for C99 language features is required." "$LINENO" 5
6698 fi
6699 fi
6700 if test x$ac_success = xno; then
6701 HAVE_C99=0
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: info: No compiler with C99 support was found" >&5
6703 $as_echo "$as_me: ${as__blu}info: No compiler with C99 support was found${as__std}" >&2;}
6704 else
6705 HAVE_C99=1
6706
6707 $as_echo "#define HAVE_C99 1" >>confdefs.h
6708
6709 fi
6710
6711
6712
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
6714 $as_echo_n "checking for C compiler vendor... " >&6; }
6715 if ${ax_cv_c_compiler_vendor+:} false; then :
6716 $as_echo_n "(cached) " >&6
6717 else
6718
6719 vendors="
6720 intel: __ICC,__ECC,__INTEL_COMPILER,__INTEL_LLVM_COMPILER
6721 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__,__ibmxl__clang__,__ibmxl__
6722 pathscale: __PATHCC__,__PATHSCALE__
6723 clang: __clang__
6724 cray: _CRAYC,_CRAYFTN
6725 fujitsu: __FUJITSU
6726 sdcc: SDCC,__SDCC
6727 sx: _SX
6728 nvhpc: __NVCOMPILER
6729 portland: __PGI
6730 flang: __flang__,__PGLLVM__
6731 gnu: __GNUC__
6732 sun: __SUNPRO_C,__SUNPRO_CC,__SUNPRO_F90,__SUNPRO_F95
6733 hp: __HP_cc,__HP_aCC
6734 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
6735 borland: __BORLANDC__,__CODEGEARC__,__TURBOC__
6736 comeau: __COMO__
6737 kai: __KCC
6738 lcc: __LCC__
6739 sgi: __sgi,sgi
6740 microsoft: _MSC_VER
6741 metrowerks: __MWERKS__
6742 watcom: __WATCOMC__
6743 tcc: __TINYC__
6744 unknown: UNKNOWN
6745 "
6746 for ventest in $vendors; do
6747 case $ventest in #(
6748 *:)
6749 vendor=${ventest%:*}
6750 continue
6751 ;; #(
6752 *)
6753 vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")"
6754 ;;
6755 esac
6756
6757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6758 /* end confdefs.h. */
6759
6760 int
6761 main ()
6762 {
6763
6764 #if !($vencpp)
6765 thisisanerror;
6766 #endif
6767
6768 ;
6769 return 0;
6770 }
6771 _ACEOF
6772 if ac_fn_c_try_compile "$LINENO"; then :
6773 break
6774 fi
6775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6776 done
6777
6778 ax_cv_c_compiler_vendor=$vendor
6779
6780 flang_variants="classic: __PGLLVM__"
6781 portland_variants="llvm: __PGLLVM__"
6782 intel_variants="oneapi: __INTEL_LLVM_COMPILER"
6783 eval variants=\"\$${ax_cv_c_compiler_vendor}_variants : NONE\"
6784 for vartest in $variants; do
6785 case $vartest in #(
6786 *:)
6787 variant=${vartest%:*};
6788 continue
6789 ;; #(
6790 *)
6791 varcpp="defined("`echo $vartest | sed 's/,/) && defined(/g'`")"
6792 ;;
6793 esac
6794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6795 /* end confdefs.h. */
6796
6797 int
6798 main ()
6799 {
6800
6801 #if !($varcpp)
6802 thisisanerror;
6803 #endif
6804
6805 ;
6806 return 0;
6807 }
6808 _ACEOF
6809 if ac_fn_c_try_compile "$LINENO"; then :
6810 break
6811 fi
6812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6813 done
6814 as_fn_append ax_cv_c_compiler_vendor ${variant:+/$variant}
6815
6816 fi
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
6818 case "$ax_cv_c_compiler_vendor" in #(
6819 yes|ok|yes[\ ,]*) :
6820 $as_echo "${as__grn}$ax_cv_c_compiler_vendor${as__std}" >&6 ;; #(
6821 no|failed|unsupported|no[\ ,]*) :
6822 $as_echo "${as__red}$ax_cv_c_compiler_vendor${as__std}" >&6 ;; #(
6823 *) :
6824 $as_echo "${as__blu}$ax_cv_c_compiler_vendor${as__std}" >&6 ;;
6825 esac; }
6826
6827
6828
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6830 $as_echo_n "checking for C compiler version... " >&6; }
6831 if ${ax_cv_c_compiler_version+:} false; then :
6832 $as_echo_n "(cached) " >&6
6833 else
6834 case ${ax_cv_c_compiler_vendor%/*} in #(
6835 intel) :
6836 case ${ax_cv_c_compiler_vendor} in #(
6837 intel) :
6838 if ac_fn_c_compute_int "$LINENO" "__INTEL_COMPILER/100" "_ax_c_compiler_version_major" ""; then :
6839
6840 else
6841 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6842 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
6843 as_fn_error $? "_AX_COMPILER_VERSION_INTEL unknown intel compiler version${as__std}
6844 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
6845 fi
6846
6847 if ac_fn_c_compute_int "$LINENO" "(__INTEL_COMPILER%100)/10" "_ax_c_compiler_version_minor" ""; then :
6848
6849 else
6850 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6851 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
6852 as_fn_error $? "_AX_COMPILER_VERSION_INTEL unknown intel compiler version${as__std}
6853 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
6854 fi
6855
6856 if ac_fn_c_compute_int "$LINENO" "(__INTEL_COMPILER%10)" "_ax_c_compiler_version_patch" ""; then :
6857
6858 else
6859 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6860 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
6861 as_fn_error $? "_AX_COMPILER_VERSION_INTEL unknown intel compiler version${as__std}
6862 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
6863 fi
6864 ;; #(
6865 intel/oneapi) :
6866 if ac_fn_c_compute_int "$LINENO" "__INTEL_LLVM_COMPILER/10000" "_ax_c_compiler_version_major" ""; then :
6867
6868 else
6869 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6870 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
6871 as_fn_error $? "_AX_COMPILER_VERSION_INTEL unknown intel oneAPI compiler version${as__std}
6872 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
6873 fi
6874
6875 if ac_fn_c_compute_int "$LINENO" "(__INTEL_LLVM_COMPILER/100)%100" "_ax_c_compiler_version_minor" ""; then :
6876
6877 else
6878 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6879 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
6880 as_fn_error $? "_AX_COMPILER_VERSION_INTEL unknown intel oneAPI compiler version${as__std}
6881 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
6882 fi
6883
6884 if ac_fn_c_compute_int "$LINENO" "(__INTEL_LLVM_COMPILER%100)" "_ax_c_compiler_version_patch" ""; then :
6885
6886 else
6887 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6888 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
6889 as_fn_error $? "_AX_COMPILER_VERSION_INTEL unknown intel oneAPI compiler version${as__std}
6890 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
6891 fi
6892 ;; #(
6893 *) :
6894 ;;
6895 esac
6896 ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch"
6897 ;; #(
6898 ibm) :
6899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6900 /* end confdefs.h. */
6901
6902
6903 int
6904 main ()
6905 {
6906
6907 #if defined(__COMPILER_VER__)
6908 choke me;
6909 #endif
6910
6911 ;
6912 return 0;
6913 }
6914 _ACEOF
6915 if ac_fn_c_try_compile "$LINENO"; then :
6916
6917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6918 /* end confdefs.h. */
6919
6920
6921 int
6922 main ()
6923 {
6924
6925 #if defined(__ibmxl_version__)
6926 choke me;
6927 #endif
6928
6929 ;
6930 return 0;
6931 }
6932 _ACEOF
6933 if ac_fn_c_try_compile "$LINENO"; then :
6934
6935 if ac_fn_c_compute_int "$LINENO" "__xlC__/100" "_ax_c_compiler_version_major" ""; then :
6936
6937 else
6938 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6939 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
6940 as_fn_error $? "_AX_COMPILER_VERSION_IBM unknown IBM compiler major version${as__std}
6941 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
6942 fi
6943
6944 if ac_fn_c_compute_int "$LINENO" "__xlC__%100" "_ax_c_compiler_version_minor" ""; then :
6945
6946 else
6947 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6948 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
6949 as_fn_error $? "_AX_COMPILER_VERSION_IBM unknown IBM compiler minor version${as__std}
6950 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
6951 fi
6952
6953 if ac_fn_c_compute_int "$LINENO" "__xlC_ver__/0x100" "_ax_c_compiler_version_patch" ""; then :
6954
6955 else
6956 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6957 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
6958 as_fn_error $? "_AX_COMPILER_VERSION_IBM unknown IBM compiler patch version${as__std}
6959 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
6960 fi
6961
6962 if ac_fn_c_compute_int "$LINENO" "__xlC_ver__%0x100" "_ax_c_compiler_version_build" ""; then :
6963
6964 else
6965 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6966 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
6967 as_fn_error $? "_AX_COMPILER_VERSION_IBM unknown IBM compiler build version${as__std}
6968 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
6969 fi
6970
6971 ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch.$_ax_c_compiler_version_build"
6972
6973 else
6974
6975 if ac_fn_c_compute_int "$LINENO" "__ibmxl_modification__" "_ax_c_compiler_version_patch" ""; then :
6976
6977 else
6978 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6979 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
6980 as_fn_error $? "_AX_COMPILER_VERSION_IBM unknown IBM compiler patch version${as__std}
6981 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
6982 fi
6983
6984 if ac_fn_c_compute_int "$LINENO" "__ibmxl_release__" "_ax_c_compiler_version_minor" ""; then :
6985
6986 else
6987 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6988 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
6989 as_fn_error $? "_AX_COMPILER_VERSION_IBM unknown IBM compiler minor version${as__std}
6990 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
6991 fi
6992
6993 if ac_fn_c_compute_int "$LINENO" "__ibmxl_version__" "_ax_c_compiler_version_major" ""; then :
6994
6995 else
6996 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6997 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
6998 as_fn_error $? "_AX_COMPILER_VERSION_IBM unknown IBM compiler major version${as__std}
6999 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
7000 fi
7001
7002 ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch"
7003
7004 fi
7005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7006
7007 else
7008
7009 if ac_fn_c_compute_int "$LINENO" "__xlC__%1000" "_ax_c_compiler_version_patch" ""; then :
7010
7011 else
7012 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7013 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
7014 as_fn_error $? "_AX_COMPILER_VERSION_IBM unknown IBM compiler patch version${as__std}
7015 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
7016 fi
7017
7018 if ac_fn_c_compute_int "$LINENO" "(__xlC__/10000)%10" "_ax_c_compiler_version_minor" ""; then :
7019
7020 else
7021 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7022 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
7023 as_fn_error $? "_AX_COMPILER_VERSION_IBM unknown IBM compiler minor version${as__std}
7024 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
7025 fi
7026
7027 if ac_fn_c_compute_int "$LINENO" "(__xlC__/100000)%10" "_ax_c_compiler_version_major" ""; then :
7028
7029 else
7030 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7031 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
7032 as_fn_error $? "_AX_COMPILER_VERSION_IBM unknown IBM compiler major version${as__std}
7033 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
7034 fi
7035
7036 ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch"
7037
7038 fi
7039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7040 ;; #(
7041 pathscale) :
7042
7043 if ac_fn_c_compute_int "$LINENO" "__PATHCC__" "_ax_c_compiler_version_major" ""; then :
7044
7045 else
7046 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7047 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
7048 as_fn_error $? "_AX_COMPILER_VERSION_PATHSCALE unknown pathscale major${as__std}
7049 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
7050 fi
7051
7052 if ac_fn_c_compute_int "$LINENO" "__PATHCC_MINOR__" "_ax_c_compiler_version_minor" ""; then :
7053
7054 else
7055 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7056 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
7057 as_fn_error $? "_AX_COMPILER_VERSION_PATHSCALE unknown pathscale minor${as__std}
7058 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
7059 fi
7060
7061 if ac_fn_c_compute_int "$LINENO" "__PATHCC_PATCHLEVEL__" "_ax_c_compiler_version_patch" ""; then :
7062
7063 else
7064 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7065 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
7066 as_fn_error $? "_AX_COMPILER_VERSION_PATHSCALE unknown pathscale patch level${as__std}
7067 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
7068 fi
7069
7070 ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch"
7071 ;; #(
7072 clang) :
7073
7074 if ac_fn_c_compute_int "$LINENO" "__clang_major__" "_ax_c_compiler_version_major" ""; then :
7075
7076 else
7077 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7078 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
7079 as_fn_error $? "_AX_COMPILER_VERSION_CLANG unknown clang major${as__std}
7080 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
7081 fi
7082
7083 if ac_fn_c_compute_int "$LINENO" "__clang_minor__" "_ax_c_compiler_version_minor" ""; then :
7084
7085 else
7086 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7087 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
7088 as_fn_error $? "_AX_COMPILER_VERSION_CLANG unknown clang minor${as__std}
7089 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
7090 fi
7091
7092 if ac_fn_c_compute_int "$LINENO" "__clang_patchlevel__" "_ax_c_compiler_version_patch" ""; then :
7093
7094 else
7095 0
7096 fi
7097
7098 ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch"
7099 ;; #(
7100 cray) :
7101
7102 if ac_fn_c_compute_int "$LINENO" "_RELEASE" "_ax_c_compiler_version_major" ""; then :
7103
7104 else
7105 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7106 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
7107 as_fn_error $? "_AX_COMPILER_VERSION_CRAY unknown crayc release${as__std}
7108 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
7109 fi
7110
7111 if ac_fn_c_compute_int "$LINENO" "_RELEASE_MINOR" "_ax_c_compiler_version_minor" ""; then :
7112
7113 else
7114 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7115 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
7116 as_fn_error $? "_AX_COMPILER_VERSION_CRAY unknown crayc minor${as__std}
7117 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
7118 fi
7119
7120 ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor"
7121 ;; #(
7122 fujitsu) :
7123
7124 if ac_fn_c_compute_int "$LINENO" "__FCC_major__" "_ax_c_compiler_version_major" ""; then :
7125
7126 else
7127 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7128 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
7129 as_fn_error $? "_AX_COMPILER_VERSION_FUJITSU unknown fujitsu major${as__std}
7130 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
7131 fi
7132
7133 if ac_fn_c_compute_int "$LINENO" "__FCC_minor__" "_ax_c_compiler_version_minor" ""; then :
7134
7135 else
7136 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7137 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
7138 as_fn_error $? "_AX_COMPILER_VERSION_FUJITSU unknown fujitsu minor${as__std}
7139 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
7140 fi
7141
7142 if ac_fn_c_compute_int "$LINENO" "__FCC_patchlevel__" "_ax_c_compiler_version_patch" ""; then :
7143
7144 else
7145 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7146 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
7147 as_fn_error $? "_AX_COMPILER_VERSION_FUJITSU unknown fujitsu patch level${as__std}
7148 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
7149 fi
7150
7151 ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch"
7152 ;; #(
7153 gnu) :
7154
7155 if ac_fn_c_compute_int "$LINENO" "__GNUC__" "_ax_c_compiler_version_major" ""; then :
7156
7157 else
7158 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7159 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
7160 as_fn_error $? "_AX_COMPILER_VERSION_GNU unknown gcc major${as__std}
7161 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
7162 fi
7163
7164 if ac_fn_c_compute_int "$LINENO" "__GNUC_MINOR__" "_ax_c_compiler_version_minor" ""; then :
7165
7166 else
7167 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7168 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
7169 as_fn_error $? "_AX_COMPILER_VERSION_GNU unknown gcc minor${as__std}
7170 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
7171 fi
7172
7173 if ac_fn_c_compute_int "$LINENO" "__GNUC_PATCHLEVEL__" "_ax_c_compiler_version_patch" ""; then :
7174
7175 else
7176 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7177 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
7178 as_fn_error $? "_AX_COMPILER_VERSION_GNU unknown gcc patch level${as__std}
7179 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
7180 fi
7181
7182 ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch"
7183 ;; #(
7184 sun) :
7185
7186
7187 if ac_fn_c_compute_int "$LINENO" "!!(
7188 #if defined(__SUNPRO_CC)
7189 __SUNPRO_CC
7190 #else
7191 __SUNPRO_C
7192 #endif
7193 < 0x1000)" "_ax_c_compiler_version_until59" ""; then :
7194
7195 else
7196 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7197 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
7198 as_fn_error $? "_AX_COMPILER_VERSION_SUN unknown sun release version${as__std}
7199 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
7200 fi
7201
7202 if test "X$_ax_c_compiler_version_until59" = X1; then :
7203 if ac_fn_c_compute_int "$LINENO" "
7204 #if defined(__SUNPRO_CC)
7205 __SUNPRO_CC
7206 #else
7207 __SUNPRO_C
7208 #endif
7209 % 0x10" "_ax_c_compiler_version_patch" ""; then :
7210
7211 else
7212 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7213 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
7214 as_fn_error $? "_AX_COMPILER_VERSION_SUN unknown sun patch version${as__std}
7215 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
7216 fi
7217
7218 if ac_fn_c_compute_int "$LINENO" "(
7219 #if defined(__SUNPRO_CC)
7220 __SUNPRO_CC
7221 #else
7222 __SUNPRO_C
7223 #endif
7224 / 0x10) % 0x10" "_ax_c_compiler_version_minor" ""; then :
7225
7226 else
7227 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7228 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
7229 as_fn_error $? "_AX_COMPILER_VERSION_SUN unknown sun minor version${as__std}
7230 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
7231 fi
7232
7233 if ac_fn_c_compute_int "$LINENO" "(
7234 #if defined(__SUNPRO_CC)
7235 __SUNPRO_CC
7236 #else
7237 __SUNPRO_C
7238 #endif
7239 / 0x100)" "_ax_c_compiler_version_major" ""; then :
7240
7241 else
7242 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7243 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
7244 as_fn_error $? "_AX_COMPILER_VERSION_SUN unknown sun major version${as__std}
7245 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
7246 fi
7247
7248
7249 else
7250 if ac_fn_c_compute_int "$LINENO" "
7251 #if defined(__SUNPRO_CC)
7252 __SUNPRO_CC
7253 #else
7254 __SUNPRO_C
7255 #endif
7256 % 0x10" "_ax_c_compiler_version_patch" ""; then :
7257
7258 else
7259 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7260 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
7261 as_fn_error $? "_AX_COMPILER_VERSION_SUN unknown sun patch version${as__std}
7262 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
7263 fi
7264
7265 if ac_fn_c_compute_int "$LINENO" "(
7266 #if defined(__SUNPRO_CC)
7267 __SUNPRO_CC
7268 #else
7269 __SUNPRO_C
7270 #endif
7271 / 0x100) % 0x100" "_ax_c_compiler_version_minor" ""; then :
7272
7273 else
7274 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7275 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
7276 as_fn_error $? "_AX_COMPILER_VERSION_SUN unknown sun minor version${as__std}
7277 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
7278 fi
7279
7280 if ac_fn_c_compute_int "$LINENO" "(
7281 #if defined(__SUNPRO_CC)
7282 __SUNPRO_CC
7283 #else
7284 __SUNPRO_C
7285 #endif
7286 / 0x1000)" "_ax_c_compiler_version_major" ""; then :
7287
7288 else
7289 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7290 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
7291 as_fn_error $? "_AX_COMPILER_VERSION_SUN unknown sun major version${as__std}
7292 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
7293 fi
7294
7295
7296 fi
7297 ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch"
7298 ;; #(
7299 hp) :
7300
7301
7302 if ac_fn_c_compute_int "$LINENO" "!!(
7303 #if defined(__HP_cc)
7304 __HP_cc
7305 #else
7306 __HP_aCC
7307 #endif
7308 <= 1)" "_ax_c_compiler_version_untilA0121" ""; then :
7309
7310 else
7311 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7312 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
7313 as_fn_error $? "_AX_COMPILER_VERSION_HP unknown hp release version${as__std}
7314 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
7315 fi
7316
7317 if test "X$_ax_c_compiler_version_untilA0121" = X1; then :
7318 ax_cv_c_compiler_version="01.21.00"
7319
7320 else
7321 if ac_fn_c_compute_int "$LINENO" "(
7322 #if defined(__HP_cc)
7323 __HP_cc
7324 #else
7325 __HP_aCC
7326 #endif
7327 % 100)" "_ax_c_compiler_version_patch" ""; then :
7328
7329 else
7330 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7331 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
7332 as_fn_error $? "_AX_COMPILER_VERSION_HP unknown hp release version${as__std}
7333 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
7334 fi
7335
7336 if ac_fn_c_compute_int "$LINENO" "((
7337 #if defined(__HP_cc)
7338 __HP_cc
7339 #else
7340 __HP_aCC
7341 #endif
7342 / 100)%100)" "_ax_c_compiler_version_minor" ""; then :
7343
7344 else
7345 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7346 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
7347 as_fn_error $? "_AX_COMPILER_VERSION_HP unknown hp minor version${as__std}
7348 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
7349 fi
7350
7351 if ac_fn_c_compute_int "$LINENO" "((
7352 #if defined(__HP_cc)
7353 __HP_cc
7354 #else
7355 __HP_aCC
7356 #endif
7357 / 10000)%100)" "_ax_c_compiler_version_major" ""; then :
7358
7359 else
7360 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7361 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
7362 as_fn_error $? "_AX_COMPILER_VERSION_HP unknown hp major version${as__std}
7363 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
7364 fi
7365
7366 ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch"
7367
7368 fi
7369 ;; #(
7370 dec) :
7371
7372 if ac_fn_c_compute_int "$LINENO" "(
7373 #if defined(__DECC_VER)
7374 __DECC_VER
7375 #else
7376 __DECCXX_VER
7377 #endif
7378 % 10000)" "_ax_c_compiler_version_patch" ""; then :
7379
7380 else
7381 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7382 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
7383 as_fn_error $? "_AX_COMPILER_VERSION_DEC unknown dec release version${as__std}
7384 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
7385 fi
7386
7387 if ac_fn_c_compute_int "$LINENO" "((
7388 #if defined(__DECC_VER)
7389 __DECC_VER
7390 #else
7391 __DECCXX_VER
7392 #endif
7393 / 100000UL)%100)" "_ax_c_compiler_version_minor" ""; then :
7394
7395 else
7396 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7397 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
7398 as_fn_error $? "_AX_COMPILER_VERSION_DEC unknown dec minor version${as__std}
7399 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
7400 fi
7401
7402 if ac_fn_c_compute_int "$LINENO" "((
7403 #if defined(__DECC_VER)
7404 __DECC_VER
7405 #else
7406 __DECCXX_VER
7407 #endif
7408 / 10000000UL)%100)" "_ax_c_compiler_version_major" ""; then :
7409
7410 else
7411 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7412 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
7413 as_fn_error $? "_AX_COMPILER_VERSION_DEC unknown dec major version${as__std}
7414 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
7415 fi
7416
7417 ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch"
7418 ;; #(
7419 borland) :
7420
7421
7422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7423 /* end confdefs.h. */
7424
7425 int
7426 main ()
7427 {
7428
7429 #if defined(__TURBOC__)
7430 __TURBOC__
7431 #else
7432 choke me
7433 #endif
7434
7435 ;
7436 return 0;
7437 }
7438 _ACEOF
7439 if ac_fn_c_try_compile "$LINENO"; then :
7440 if ac_fn_c_compute_int "$LINENO" "
7441 #if defined(__TURBOC__)
7442 __TURBOC__
7443 #else
7444 choke me
7445 #endif
7446 " "_ax_c_compiler_version_turboc_raw" ""; then :
7447
7448 else
7449 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7450 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
7451 as_fn_error $? "_AX_COMPILER_VERSION_BORLAND unknown turboc version${as__std}
7452 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
7453 fi
7454
7455 if test $_ax_c_compiler_version_turboc_raw -lt 661 || test $_ax_c_compiler_version_turboc_raw -gt 1023; then :
7456 if ac_fn_c_compute_int "$LINENO" "
7457 #if defined(__TURBOC__)
7458 __TURBOC__
7459 #else
7460 choke me
7461 #endif
7462 % 0x100" "_ax_c_compiler_version_minor" ""; then :
7463
7464 else
7465 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7466 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
7467 as_fn_error $? "_AX_COMPILER_VERSION_BORLAND unknown turboc minor version${as__std}
7468 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
7469 fi
7470
7471 if ac_fn_c_compute_int "$LINENO" "(
7472 #if defined(__TURBOC__)
7473 __TURBOC__
7474 #else
7475 choke me
7476 #endif
7477 /0x100)%0x100" "_ax_c_compiler_version_major" ""; then :
7478
7479 else
7480 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7481 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
7482 as_fn_error $? "_AX_COMPILER_VERSION_BORLAND unknown turboc major version${as__std}
7483 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
7484 fi
7485
7486 ax_cv_c_compiler_version="0turboc:$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor"
7487 else
7488 case $_ax_c_compiler_version_turboc_raw in #(
7489 661) :
7490 ax_cv_c_compiler_version="0turboc:1.00" ;; #(
7491 662) :
7492 ax_cv_c_compiler_version="0turboc:1.01" ;; #(
7493 663) :
7494 ax_cv_c_compiler_version="0turboc:2.00" ;; #(
7495 *) :
7496
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: [_AX_COMPILER_VERSION_BORLAND] unknown turboc version between 0x295 and 0x400 please report bug" >&5
7498 $as_echo "$as_me: ${as__yel}WARNING: [_AX_COMPILER_VERSION_BORLAND] unknown turboc version between 0x295 and 0x400 please report bug${as__std}" >&2;}
7499 ax_cv_c_compiler_version=""
7500 ;;
7501 esac
7502
7503 fi
7504
7505 else
7506 # borlandc
7507
7508 if ac_fn_c_compute_int "$LINENO" "
7509 #if defined(__BORLANDC__)
7510 __BORLANDC__
7511 #else
7512 __CODEGEARC__
7513 #endif
7514 " "_ax_c_compiler_version_borlandc_raw" ""; then :
7515
7516 else
7517 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7518 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
7519 as_fn_error $? "_AX_COMPILER_VERSION_BORLAND unknown borlandc version${as__std}
7520 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
7521 fi
7522
7523 case $_ax_c_compiler_version_borlandc_raw in #(
7524 512 ) :
7525 ax_cv_c_compiler_version="1borlanc:2.00" ;; #(
7526 1024) :
7527 ax_cv_c_compiler_version="1borlanc:3.00" ;; #(
7528 1024) :
7529 ax_cv_c_compiler_version="1borlanc:3.00" ;; #(
7530 1040) :
7531 ax_cv_c_compiler_version="1borlanc:3.1" ;; #(
7532 1106) :
7533 ax_cv_c_compiler_version="1borlanc:4.0" ;; #(
7534 1280) :
7535 ax_cv_c_compiler_version="1borlanc:5.0" ;; #(
7536 1312) :
7537 ax_cv_c_compiler_version="1borlanc:5.02" ;; #(
7538 1328) :
7539 ax_cv_c_compiler_version="2cppbuilder:3.0" ;; #(
7540 1344) :
7541 ax_cv_c_compiler_version="2cppbuilder:4.0" ;; #(
7542 1360) :
7543 ax_cv_c_compiler_version="3borlancpp:5.5" ;; #(
7544 1361) :
7545 ax_cv_c_compiler_version="3borlancpp:5.51" ;; #(
7546 1378) :
7547 ax_cv_c_compiler_version="3borlancpp:5.6.4" ;; #(
7548 1392) :
7549 ax_cv_c_compiler_version="4cppbuilder:2006" ;; #(
7550 1424) :
7551 ax_cv_c_compiler_version="4cppbuilder:2007" ;; #(
7552 1555) :
7553 ax_cv_c_compiler_version="4cppbuilder:2009" ;; #(
7554 1569) :
7555 ax_cv_c_compiler_version="4cppbuilder:2010" ;; #(
7556 1584) :
7557 ax_cv_c_compiler_version="5xe" ;; #(
7558 1600) :
7559 ax_cv_c_compiler_version="5xe:2" ;; #(
7560 1616) :
7561 ax_cv_c_compiler_version="5xe:3" ;; #(
7562 1632) :
7563 ax_cv_c_compiler_version="5xe:4" ;; #(
7564 *) :
7565
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: [_AX_COMPILER_VERSION_BORLAND] Unknown borlandc compiler version $_ax_c_compiler_version_borlandc_raw please report bug" >&5
7567 $as_echo "$as_me: ${as__yel}WARNING: [_AX_COMPILER_VERSION_BORLAND] Unknown borlandc compiler version $_ax_c_compiler_version_borlandc_raw please report bug${as__std}" >&2;}
7568 ;;
7569 esac
7570
7571 fi
7572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7573 ;; #(
7574 comeau) :
7575 if ac_fn_c_compute_int "$LINENO" "__COMO_VERSION__%100" "_ax_c_compiler_version_minor" ""; then :
7576
7577 else
7578 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7579 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
7580 as_fn_error $? "_AX_COMPILER_VERSION_COMEAU unknown comeau compiler minor version${as__std}
7581 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
7582 fi
7583
7584 if ac_fn_c_compute_int "$LINENO" "(__COMO_VERSION__/100)%10" "_ax_c_compiler_version_major" ""; then :
7585
7586 else
7587 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7588 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
7589 as_fn_error $? "_AX_COMPILER_VERSION_COMEAU unknown comeau compiler major version${as__std}
7590 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
7591 fi
7592
7593 ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor"
7594 ;; #(
7595 kai) :
7596
7597 if ac_fn_c_compute_int "$LINENO" "__KCC_VERSION%100" "_ax_c_compiler_version_patch" ""; then :
7598
7599 else
7600 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7601 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
7602 as_fn_error $? "_AX_COMPILER_VERSION_KAI unknown kay compiler patch version${as__std}
7603 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
7604 fi
7605
7606 if ac_fn_c_compute_int "$LINENO" "(__KCC_VERSION/100)%10" "_ax_c_compiler_version_minor" ""; then :
7607
7608 else
7609 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7610 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
7611 as_fn_error $? "_AX_COMPILER_VERSION_KAI unknown kay compiler minor version${as__std}
7612 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
7613 fi
7614
7615 if ac_fn_c_compute_int "$LINENO" "(__KCC_VERSION/1000)%10" "_ax_c_compiler_version_major" ""; then :
7616
7617 else
7618 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7619 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
7620 as_fn_error $? "_AX_COMPILER_VERSION_KAI unknown kay compiler major version${as__std}
7621 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
7622 fi
7623
7624 ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch"
7625 ;; #(
7626 sgi) :
7627
7628
7629 if ac_fn_c_compute_int "$LINENO" "
7630 #if defined(_COMPILER_VERSION)
7631 _COMPILER_VERSION
7632 #else
7633 _SGI_COMPILER_VERSION
7634 #endif
7635 %10" "_ax_c_compiler_version_patch" ""; then :
7636
7637 else
7638 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7639 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
7640 as_fn_error $? "_AX_COMPILER_VERSION_SGI unknown SGI compiler patch version${as__std}
7641 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
7642 fi
7643
7644 if ac_fn_c_compute_int "$LINENO" "(
7645 #if defined(_COMPILER_VERSION)
7646 _COMPILER_VERSION
7647 #else
7648 _SGI_COMPILER_VERSION
7649 #endif
7650 /10)%10" "_ax_c_compiler_version_minor" ""; then :
7651
7652 else
7653 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7654 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
7655 as_fn_error $? "_AX_COMPILER_VERSION_SGI unknown SGI compiler minor version${as__std}
7656 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
7657 fi
7658
7659 if ac_fn_c_compute_int "$LINENO" "(
7660 #if defined(_COMPILER_VERSION)
7661 _COMPILER_VERSION
7662 #else
7663 _SGI_COMPILER_VERSION
7664 #endif
7665 /100)%10" "_ax_c_compiler_version_major" ""; then :
7666
7667 else
7668 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7669 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
7670 as_fn_error $? "_AX_COMPILER_VERSION_SGI unknown SGI compiler major version${as__std}
7671 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
7672 fi
7673
7674 ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch"
7675 ;; #(
7676 microsoft) :
7677
7678 if ac_fn_c_compute_int "$LINENO" "_MSC_VER%100" "_ax_c_compiler_version_minor" ""; then :
7679
7680 else
7681 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7682 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
7683 as_fn_error $? "_AX_COMPILER_VERSION_MICROSOFT unknown microsoft compiler minor version${as__std}
7684 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
7685 fi
7686
7687 if ac_fn_c_compute_int "$LINENO" "(_MSC_VER/100)%100" "_ax_c_compiler_version_major" ""; then :
7688
7689 else
7690 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7691 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
7692 as_fn_error $? "_AX_COMPILER_VERSION_MICROSOFT unknown microsoft compiler major version${as__std}
7693 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
7694 fi
7695
7696 _ax_c_compiler_version_patch=0
7697 _ax_c_compiler_version_build=0
7698 # special case for version 6
7699 if test "X$_ax_c_compiler_version_major" = "X12"; then :
7700 if ac_fn_c_compute_int "$LINENO" "_MSC_FULL_VER%1000" "_ax_c_compiler_version_patch" ""; then :
7701
7702 else
7703 _ax_c_compiler_version_patch=0
7704 fi
7705
7706 fi
7707 # for version 7
7708 if test "X$_ax_c_compiler_version_major" = "X13"; then :
7709 if ac_fn_c_compute_int "$LINENO" "_MSC_FULL_VER%1000" "_ax_c_compiler_version_patch" ""; then :
7710
7711 else
7712 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7713 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
7714 as_fn_error $? "_AX_COMPILER_VERSION_MICROSOFT unknown microsoft compiler patch version${as__std}
7715 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
7716 fi
7717
7718
7719 fi
7720 # for version > 8
7721 if test $_ax_c_compiler_version_major -ge 14; then :
7722 if ac_fn_c_compute_int "$LINENO" "_MSC_FULL_VER%10000" "_ax_c_compiler_version_patch" ""; then :
7723
7724 else
7725 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7726 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
7727 as_fn_error $? "_AX_COMPILER_VERSION_MICROSOFT unknown microsoft compiler patch version${as__std}
7728 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
7729 fi
7730
7731
7732 fi
7733 if test $_ax_c_compiler_version_major -ge 15; then :
7734 if ac_fn_c_compute_int "$LINENO" "_MSC_BUILD" "_ax_c_compiler_version_build" ""; then :
7735
7736 else
7737 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7738 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
7739 as_fn_error $? "_AX_COMPILER_VERSION_MICROSOFT unknown microsoft compiler build version${as__std}
7740 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
7741 fi
7742
7743
7744 fi
7745 ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch.$_ax_c_compiler_version_build"
7746 ;; #(
7747 metrowerks) :
7748 if ac_fn_c_compute_int "$LINENO" "__MWERKS__%0x100" "_ax_c_compiler_version_patch" ""; then :
7749
7750 else
7751 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7752 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
7753 as_fn_error $? "_AX_COMPILER_VERSION_METROWERKS unknown metrowerks compiler patch version${as__std}
7754 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
7755 fi
7756
7757 if ac_fn_c_compute_int "$LINENO" "(__MWERKS__/0x100)%0x10" "_ax_c_compiler_version_minor" ""; then :
7758
7759 else
7760 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7761 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
7762 as_fn_error $? "_AX_COMPILER_VERSION_METROWERKS unknown metrowerks compiler minor version${as__std}
7763 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
7764 fi
7765
7766 if ac_fn_c_compute_int "$LINENO" "(__MWERKS__/0x1000)%0x10" "_ax_c_compiler_version_major" ""; then :
7767
7768 else
7769 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7770 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
7771 as_fn_error $? "_AX_COMPILER_VERSION_METROWERKS unknown metrowerks compiler major version${as__std}
7772 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
7773 fi
7774
7775 ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch"
7776 ;; #(
7777 watcom) :
7778 if ac_fn_c_compute_int "$LINENO" "__WATCOMC__%100" "_ax_c_compiler_version_minor" ""; then :
7779
7780 else
7781 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7782 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
7783 as_fn_error $? "_AX_COMPILER_VERSION_WATCOM unknown watcom compiler minor version${as__std}
7784 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
7785 fi
7786
7787 if ac_fn_c_compute_int "$LINENO" "(__WATCOMC__/100)%100" "_ax_c_compiler_version_major" ""; then :
7788
7789 else
7790 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7791 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
7792 as_fn_error $? "_AX_COMPILER_VERSION_WATCOM unknown watcom compiler major version${as__std}
7793 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
7794 fi
7795
7796 ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor"
7797 ;; #(
7798 nvhpc) :
7799
7800 if ac_fn_c_compute_int "$LINENO" "__NVCOMPILER_MAJOR__" "_ax_c_compiler_version_major" ""; then :
7801
7802 else
7803 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7804 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
7805 as_fn_error $? "_AX_COMPILER_VERSION_NVHPC unknown nvhpc major${as__std}
7806 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
7807 fi
7808
7809 if ac_fn_c_compute_int "$LINENO" "__NVCOMPILER_MINOR__" "_ax_c_compiler_version_minor" ""; then :
7810
7811 else
7812 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7813 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
7814 as_fn_error $? "_AX_COMPILER_VERSION_NVHPC unknown nvhpc minor${as__std}
7815 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
7816 fi
7817
7818 if ac_fn_c_compute_int "$LINENO" "__NVCOMPILER_PATCHLEVEL__" "_ax_c_compiler_version_patch" ""; then :
7819
7820 else
7821 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7822 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
7823 as_fn_error $? "_AX_COMPILER_VERSION_NVHPC unknown nvhpc patch level${as__std}
7824 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
7825 fi
7826
7827 ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch"
7828 ;; #(
7829 portland) :
7830
7831 if ac_fn_c_compute_int "$LINENO" "__PGIC__" "_ax_c_compiler_version_major" ""; then :
7832
7833 else
7834 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7835 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
7836 as_fn_error $? "_AX_COMPILER_VERSION_PORTLAND unknown pgi major${as__std}
7837 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
7838 fi
7839
7840 if ac_fn_c_compute_int "$LINENO" "__PGIC_MINOR__" "_ax_c_compiler_version_minor" ""; then :
7841
7842 else
7843 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7844 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
7845 as_fn_error $? "_AX_COMPILER_VERSION_PORTLAND unknown pgi minor${as__std}
7846 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
7847 fi
7848
7849 if ac_fn_c_compute_int "$LINENO" "__PGIC_PATCHLEVEL__" "_ax_c_compiler_version_patch" ""; then :
7850
7851 else
7852 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7853 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
7854 as_fn_error $? "_AX_COMPILER_VERSION_PORTLAND unknown pgi patch level${as__std}
7855 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
7856 fi
7857
7858 ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch"
7859 ;; #(
7860 tcc) :
7861
7862 ax_cv_c_compiler_version=`tcc -v | $SED 's/^[ ]*tcc[ ]\+version[ ]\+\([0-9.]\+\).*/\1/g'`
7863 ;; #(
7864 sdcc) :
7865
7866 if ac_fn_c_compute_int "$LINENO" "/* avoid parse error with comments */
7867 #if(defined(__SDCC_VERSION_MAJOR))
7868 __SDCC_VERSION_MAJOR
7869 #else
7870 SDCC/100
7871 #endif
7872 " "_ax_c_compiler_version_major" ""; then :
7873
7874 else
7875 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7876 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
7877 as_fn_error $? "_AX_COMPILER_VERSION_SDCC unknown sdcc major${as__std}
7878 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
7879 fi
7880
7881 if ac_fn_c_compute_int "$LINENO" "/* avoid parse error with comments */
7882 #if(defined(__SDCC_VERSION_MINOR))
7883 __SDCC_VERSION_MINOR
7884 #else
7885 (SDCC%100)/10
7886 #endif
7887 " "_ax_c_compiler_version_minor" ""; then :
7888
7889 else
7890 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7891 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
7892 as_fn_error $? "_AX_COMPILER_VERSION_SDCC unknown sdcc minor${as__std}
7893 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
7894 fi
7895
7896 if ac_fn_c_compute_int "$LINENO" "
7897 /* avoid parse error with comments */
7898 #if(defined(__SDCC_VERSION_PATCH))
7899 __SDCC_VERSION_PATCH
7900 #elsif(defined(_SDCC_VERSION_PATCHLEVEL))
7901 __SDCC_VERSION_PATCHLEVEL
7902 #else
7903 SDCC%10
7904 #endif
7905 " "_ax_c_compiler_version_patch" ""; then :
7906
7907 else
7908 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7909 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
7910 as_fn_error $? "_AX_COMPILER_VERSION_SDCC unknown sdcc patch level${as__std}
7911 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
7912 fi
7913
7914 ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch"
7915 ;; #(
7916 *) :
7917 ax_cv_c_compiler_version="" ;;
7918 esac
7919
7920 fi
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_version" >&5
7922 case "$ax_cv_c_compiler_version" in #(
7923 yes|ok|yes[\ ,]*) :
7924 $as_echo "${as__grn}$ax_cv_c_compiler_version${as__std}" >&6 ;; #(
7925 no|failed|unsupported|no[\ ,]*) :
7926 $as_echo "${as__red}$ax_cv_c_compiler_version${as__std}" >&6 ;; #(
7927 *) :
7928 $as_echo "${as__blu}$ax_cv_c_compiler_version${as__std}" >&6 ;;
7929 esac; }
7930
7931
7932 if test x${ax_cv_c_compiler_vendor%/*} = xcray; then :
7933
7934 CC="$CC -hnoomp"
7935
7936 fi
7937
7938 ac_ext=c
7939 ac_cpp='$CPP $CPPFLAGS'
7940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7943
7944
7945
7946
7947 ac_ext=cpp
7948 ac_cpp='$CXXCPP $CPPFLAGS'
7949 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7950 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7951 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7952 if test -z "$CXX"; then
7953 if test -n "$CCC"; then
7954 CXX=$CCC
7955 else
7956 if test -n "$ac_tool_prefix"; then
7957 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7958 do
7959 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7960 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7962 $as_echo_n "checking for $ac_word... " >&6; }
7963 if ${ac_cv_prog_CXX+:} false; then :
7964 $as_echo_n "(cached) " >&6
7965 else
7966 if test -n "$CXX"; then
7967 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7968 else
7969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7970 for as_dir in $PATH
7971 do
7972 IFS=$as_save_IFS
7973 test -z "$as_dir" && as_dir=.
7974 for ac_exec_ext in '' $ac_executable_extensions; do
7975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7976 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7978 break 2
7979 fi
7980 done
7981 done
7982 IFS=$as_save_IFS
7983
7984 fi
7985 fi
7986 CXX=$ac_cv_prog_CXX
7987 if test -n "$CXX"; then
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7989 case "$CXX" in #(
7990 yes|ok|yes[\ ,]*) :
7991 $as_echo "${as__grn}$CXX${as__std}" >&6 ;; #(
7992 no|failed|unsupported|no[\ ,]*) :
7993 $as_echo "${as__red}$CXX${as__std}" >&6 ;; #(
7994 *) :
7995 $as_echo "${as__blu}$CXX${as__std}" >&6 ;;
7996 esac; }
7997 else
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7999 $as_echo "${as__red}no${as__std}" >&6; }
8000 fi
8001
8002
8003 test -n "$CXX" && break
8004 done
8005 fi
8006 if test -z "$CXX"; then
8007 ac_ct_CXX=$CXX
8008 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8009 do
8010 # Extract the first word of "$ac_prog", so it can be a program name with args.
8011 set dummy $ac_prog; ac_word=$2
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8013 $as_echo_n "checking for $ac_word... " >&6; }
8014 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
8015 $as_echo_n "(cached) " >&6
8016 else
8017 if test -n "$ac_ct_CXX"; then
8018 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8019 else
8020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8021 for as_dir in $PATH
8022 do
8023 IFS=$as_save_IFS
8024 test -z "$as_dir" && as_dir=.
8025 for ac_exec_ext in '' $ac_executable_extensions; do
8026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8027 ac_cv_prog_ac_ct_CXX="$ac_prog"
8028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8029 break 2
8030 fi
8031 done
8032 done
8033 IFS=$as_save_IFS
8034
8035 fi
8036 fi
8037 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8038 if test -n "$ac_ct_CXX"; then
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
8040 case "$ac_ct_CXX" in #(
8041 yes|ok|yes[\ ,]*) :
8042 $as_echo "${as__grn}$ac_ct_CXX${as__std}" >&6 ;; #(
8043 no|failed|unsupported|no[\ ,]*) :
8044 $as_echo "${as__red}$ac_ct_CXX${as__std}" >&6 ;; #(
8045 *) :
8046 $as_echo "${as__blu}$ac_ct_CXX${as__std}" >&6 ;;
8047 esac; }
8048 else
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8050 $as_echo "${as__red}no${as__std}" >&6; }
8051 fi
8052
8053
8054 test -n "$ac_ct_CXX" && break
8055 done
8056
8057 if test "x$ac_ct_CXX" = x; then
8058 CXX="g++"
8059 else
8060 case $cross_compiling:$ac_tool_warned in
8061 yes:)
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8063 $as_echo "$as_me: ${as__yel}WARNING: using cross tools not prefixed with host triplet${as__std}" >&2;}
8064 ac_tool_warned=yes ;;
8065 esac
8066 CXX=$ac_ct_CXX
8067 fi
8068 fi
8069
8070 fi
8071 fi
8072 # Provide some information about the compiler.
8073 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
8074 set X $ac_compile
8075 ac_compiler=$2
8076 for ac_option in --version -v -V -qversion; do
8077 { { ac_try="$ac_compiler $ac_option >&5"
8078 case "(($ac_try" in
8079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8080 *) ac_try_echo=$ac_try;;
8081 esac
8082 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8083 $as_echo "$ac_try_echo"; } >&5
8084 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8085 ac_status=$?
8086 if test -s conftest.err; then
8087 sed '10a\
8088 ... rest of stderr output deleted ...
8089 10q' conftest.err >conftest.er1
8090 cat conftest.er1 >&5
8091 fi
8092 rm -f conftest.er1 conftest.err
8093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8094 test $ac_status = 0; }
8095 done
8096
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
8098 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
8099 if ${ac_cv_cxx_compiler_gnu+:} false; then :
8100 $as_echo_n "(cached) " >&6
8101 else
8102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8103 /* end confdefs.h. */
8104
8105 int
8106 main ()
8107 {
8108 #ifndef __GNUC__
8109 choke me
8110 #endif
8111
8112 ;
8113 return 0;
8114 }
8115 _ACEOF
8116 if ac_fn_cxx_try_compile "$LINENO"; then :
8117 ac_compiler_gnu=yes
8118 else
8119 ac_compiler_gnu=no
8120 fi
8121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8122 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8123
8124 fi
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
8126 case "$ac_cv_cxx_compiler_gnu" in #(
8127 yes|ok|yes[\ ,]*) :
8128 $as_echo "${as__grn}$ac_cv_cxx_compiler_gnu${as__std}" >&6 ;; #(
8129 no|failed|unsupported|no[\ ,]*) :
8130 $as_echo "${as__red}$ac_cv_cxx_compiler_gnu${as__std}" >&6 ;; #(
8131 *) :
8132 $as_echo "${as__blu}$ac_cv_cxx_compiler_gnu${as__std}" >&6 ;;
8133 esac; }
8134 if test $ac_compiler_gnu = yes; then
8135 GXX=yes
8136 else
8137 GXX=
8138 fi
8139 ac_test_CXXFLAGS=${CXXFLAGS+set}
8140 ac_save_CXXFLAGS=$CXXFLAGS
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
8142 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
8143 if ${ac_cv_prog_cxx_g+:} false; then :
8144 $as_echo_n "(cached) " >&6
8145 else
8146 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8147 ac_cxx_werror_flag=yes
8148 ac_cv_prog_cxx_g=no
8149 CXXFLAGS="-g"
8150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8151 /* end confdefs.h. */
8152
8153 int
8154 main ()
8155 {
8156
8157 ;
8158 return 0;
8159 }
8160 _ACEOF
8161 if ac_fn_cxx_try_compile "$LINENO"; then :
8162 ac_cv_prog_cxx_g=yes
8163 else
8164 CXXFLAGS=""
8165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8166 /* end confdefs.h. */
8167
8168 int
8169 main ()
8170 {
8171
8172 ;
8173 return 0;
8174 }
8175 _ACEOF
8176 if ac_fn_cxx_try_compile "$LINENO"; then :
8177
8178 else
8179 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8180 CXXFLAGS="-g"
8181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8182 /* end confdefs.h. */
8183
8184 int
8185 main ()
8186 {
8187
8188 ;
8189 return 0;
8190 }
8191 _ACEOF
8192 if ac_fn_cxx_try_compile "$LINENO"; then :
8193 ac_cv_prog_cxx_g=yes
8194 fi
8195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8196 fi
8197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8198 fi
8199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8200 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8201 fi
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
8203 case "$ac_cv_prog_cxx_g" in #(
8204 yes|ok|yes[\ ,]*) :
8205 $as_echo "${as__grn}$ac_cv_prog_cxx_g${as__std}" >&6 ;; #(
8206 no|failed|unsupported|no[\ ,]*) :
8207 $as_echo "${as__red}$ac_cv_prog_cxx_g${as__std}" >&6 ;; #(
8208 *) :
8209 $as_echo "${as__blu}$ac_cv_prog_cxx_g${as__std}" >&6 ;;
8210 esac; }
8211 if test "$ac_test_CXXFLAGS" = set; then
8212 CXXFLAGS=$ac_save_CXXFLAGS
8213 elif test $ac_cv_prog_cxx_g = yes; then
8214 if test "$GXX" = yes; then
8215 CXXFLAGS="-g -O2"
8216 else
8217 CXXFLAGS="-g"
8218 fi
8219 else
8220 if test "$GXX" = yes; then
8221 CXXFLAGS="-O2"
8222 else
8223 CXXFLAGS=
8224 fi
8225 fi
8226 ac_ext=c
8227 ac_cpp='$CPP $CPPFLAGS'
8228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8231
8232 depcc="$CXX" am_compiler_list=
8233
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8235 $as_echo_n "checking dependency style of $depcc... " >&6; }
8236 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
8237 $as_echo_n "(cached) " >&6
8238 else
8239 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8240 # We make a subdir and do the tests there. Otherwise we can end up
8241 # making bogus files that we don't know about and never remove. For
8242 # instance it was reported that on HP-UX the gcc test will end up
8243 # making a dummy file named 'D' -- because '-MD' means "put the output
8244 # in D".
8245 rm -rf conftest.dir
8246 mkdir conftest.dir
8247 # Copy depcomp to subdir because otherwise we won't find it if we're
8248 # using a relative directory.
8249 cp "$am_depcomp" conftest.dir
8250 cd conftest.dir
8251 # We will build objects and dependencies in a subdirectory because
8252 # it helps to detect inapplicable dependency modes. For instance
8253 # both Tru64's cc and ICC support -MD to output dependencies as a
8254 # side effect of compilation, but ICC will put the dependencies in
8255 # the current directory while Tru64 will put them in the object
8256 # directory.
8257 mkdir sub
8258
8259 am_cv_CXX_dependencies_compiler_type=none
8260 if test "$am_compiler_list" = ""; then
8261 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8262 fi
8263 am__universal=false
8264 case " $depcc " in #(
8265 *\ -arch\ *\ -arch\ *) am__universal=true ;;
8266 esac
8267
8268 for depmode in $am_compiler_list; do
8269 # Setup a source with many dependencies, because some compilers
8270 # like to wrap large dependency lists on column 80 (with \), and
8271 # we should not choose a depcomp mode which is confused by this.
8272 #
8273 # We need to recreate these files for each test, as the compiler may
8274 # overwrite some of them when testing with obscure command lines.
8275 # This happens at least with the AIX C compiler.
8276 : > sub/conftest.c
8277 for i in 1 2 3 4 5 6; do
8278 echo '#include "conftst'$i'.h"' >> sub/conftest.c
8279 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
8280 # Solaris 10 /bin/sh.
8281 echo '/* dummy */' > sub/conftst$i.h
8282 done
8283 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8284
8285 # We check with '-c' and '-o' for the sake of the "dashmstdout"
8286 # mode. It turns out that the SunPro C++ compiler does not properly
8287 # handle '-M -o', and we need to detect this. Also, some Intel
8288 # versions had trouble with output in subdirs.
8289 am__obj=sub/conftest.${OBJEXT-o}
8290 am__minus_obj="-o $am__obj"
8291 case $depmode in
8292 gcc)
8293 # This depmode causes a compiler race in universal mode.
8294 test "$am__universal" = false || continue
8295 ;;
8296 nosideeffect)
8297 # After this tag, mechanisms are not by side-effect, so they'll
8298 # only be used when explicitly requested.
8299 if test "x$enable_dependency_tracking" = xyes; then
8300 continue
8301 else
8302 break
8303 fi
8304 ;;
8305 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
8306 # This compiler won't grok '-c -o', but also, the minuso test has
8307 # not run yet. These depmodes are late enough in the game, and
8308 # so weak that their functioning should not be impacted.
8309 am__obj=conftest.${OBJEXT-o}
8310 am__minus_obj=
8311 ;;
8312 none) break ;;
8313 esac
8314 if depmode=$depmode \
8315 source=sub/conftest.c object=$am__obj \
8316 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8317 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
8318 >/dev/null 2>conftest.err &&
8319 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
8320 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8321 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
8322 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8323 # icc doesn't choke on unknown options, it will just issue warnings
8324 # or remarks (even with -Werror). So we grep stderr for any message
8325 # that says an option was ignored or not supported.
8326 # When given -MP, icc 7.0 and 7.1 complain thusly:
8327 # icc: Command line warning: ignoring option '-M'; no argument required
8328 # The diagnosis changed in icc 8.0:
8329 # icc: Command line remark: option '-MP' not supported
8330 if (grep 'ignoring option' conftest.err ||
8331 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8332 am_cv_CXX_dependencies_compiler_type=$depmode
8333 break
8334 fi
8335 fi
8336 done
8337
8338 cd ..
8339 rm -rf conftest.dir
8340 else
8341 am_cv_CXX_dependencies_compiler_type=none
8342 fi
8343
8344 fi
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
8346 case "$am_cv_CXX_dependencies_compiler_type" in #(
8347 yes|ok|yes[\ ,]*) :
8348 $as_echo "${as__grn}$am_cv_CXX_dependencies_compiler_type${as__std}" >&6 ;; #(
8349 no|failed|unsupported|no[\ ,]*) :
8350 $as_echo "${as__red}$am_cv_CXX_dependencies_compiler_type${as__std}" >&6 ;; #(
8351 *) :
8352 $as_echo "${as__blu}$am_cv_CXX_dependencies_compiler_type${as__std}" >&6 ;;
8353 esac; }
8354 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8355
8356 if
8357 test "x$enable_dependency_tracking" != xno \
8358 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8359 am__fastdepCXX_TRUE=
8360 am__fastdepCXX_FALSE='#'
8361 else
8362 am__fastdepCXX_TRUE='#'
8363 am__fastdepCXX_FALSE=
8364 fi
8365
8366
8367
8368
8369
8370
8371
8372
8373 afs_prog_cxx_required=true
8374
8375 _afs_prog_cxx_std="11"
8376
8377 if test "x$CXX" = x; then :
8378
8379 if test x$afs_prog_cxx_required = xtrue; then :
8380
8381 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8382 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
8383 as_fn_error $? "no acceptable C++ compiler found in \$PATH${as__std}
8384 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
8385
8386 fi
8387 CXX=no
8388 if ${afs_cv_prog_cxx_works+:} false; then :
8389 $as_echo_n "(cached) " >&6
8390 else
8391 afs_cv_prog_cxx_works=no
8392 fi
8393
8394
8395 else
8396
8397 ac_ext=cpp
8398 ac_cpp='$CXXCPP $CPPFLAGS'
8399 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8400 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8401 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8402
8403
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
8405 $as_echo_n "checking whether the C++ compiler works... " >&6; }
8406 if ${afs_cv_prog_cxx_works+:} false; then :
8407 $as_echo_n "(cached) " >&6
8408 else
8409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8410 /* end confdefs.h. */
8411
8412 int
8413 main ()
8414 {
8415
8416 ;
8417 return 0;
8418 }
8419 _ACEOF
8420 if ac_fn_cxx_try_link "$LINENO"; then :
8421 afs_cv_prog_cxx_works=yes
8422 else
8423 afs_cv_prog_cxx_works=no
8424 fi
8425 rm -f core conftest.err conftest.$ac_objext \
8426 conftest$ac_exeext conftest.$ac_ext
8427 fi
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $afs_cv_prog_cxx_works" >&5
8429 case "$afs_cv_prog_cxx_works" in #(
8430 yes|ok|yes[\ ,]*) :
8431 $as_echo "${as__grn}$afs_cv_prog_cxx_works${as__std}" >&6 ;; #(
8432 no|failed|unsupported|no[\ ,]*) :
8433 $as_echo "${as__red}$afs_cv_prog_cxx_works${as__std}" >&6 ;; #(
8434 *) :
8435 $as_echo "${as__blu}$afs_cv_prog_cxx_works${as__std}" >&6 ;;
8436 esac; }
8437 if test x$afs_cv_prog_cxx_works = xno; then :
8438
8439 if test x$afs_prog_cxx_required = xtrue; then :
8440
8441 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8442 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
8443 as_fn_error $? "C++ compiler cannot create executables${as__std}
8444 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
8445
8446 fi
8447 CXX=no
8448
8449 else
8450
8451 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
8452 ac_ext=cpp
8453 ac_cpp='$CXXCPP $CPPFLAGS'
8454 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8455 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8456 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8457 ac_success=no
8458
8459
8460
8461
8462
8463 if test x$ac_success = xno; then
8464 for alternative in ${ax_cxx_compile_alternatives}; do
8465 for switch in -std=c++${alternative} -hstd=c++${alternative} +std=c++${alternative} MSVC; do
8466 if test x"$switch" = xMSVC; then
8467 switch=-std:c++${alternative}
8468 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_${switch}_MSVC" | $as_tr_sh`
8469 else
8470 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
8471 fi
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
8473 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
8474 if eval \${$cachevar+:} false; then :
8475 $as_echo_n "(cached) " >&6
8476 else
8477 ac_save_CXX="$CXX"
8478 CXX="$CXX $switch"
8479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8480 /* end confdefs.h. */
8481
8482
8483 // If the compiler admits that it is not ready for C++11, why torture it?
8484 // Hopefully, this will speed up the test.
8485
8486 #ifndef __cplusplus
8487
8488 #error "This is not a C++ compiler"
8489
8490 // MSVC always sets __cplusplus to 199711L in older versions; newer versions
8491 // only set it correctly if /Zc:__cplusplus is specified as well as a
8492 // /std:c++NN switch:
8493 //
8494 // https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/
8495 //
8496 // The value __cplusplus ought to have is available in _MSVC_LANG since
8497 // Visual Studio 2015 Update 3:
8498 //
8499 // https://learn.microsoft.com/en-us/cpp/preprocessor/predefined-macros
8500 //
8501 // This was also the first MSVC version to support C++14 so we can't use the
8502 // value of either __cplusplus or _MSVC_LANG to quickly rule out MSVC having
8503 // C++11 or C++14 support, but we can check _MSVC_LANG for C++17 and later.
8504 #elif __cplusplus < 201103L && !defined _MSC_VER
8505
8506 #error "This is not a C++11 compiler"
8507
8508 #else
8509
8510 namespace cxx11
8511 {
8512
8513 namespace test_static_assert
8514 {
8515
8516 template <typename T>
8517 struct check
8518 {
8519 static_assert(sizeof(int) <= sizeof(T), "not big enough");
8520 };
8521
8522 }
8523
8524 namespace test_final_override
8525 {
8526
8527 struct Base
8528 {
8529 virtual ~Base() {}
8530 virtual void f() {}
8531 };
8532
8533 struct Derived : public Base
8534 {
8535 virtual ~Derived() override {}
8536 virtual void f() override {}
8537 };
8538
8539 }
8540
8541 namespace test_double_right_angle_brackets
8542 {
8543
8544 template < typename T >
8545 struct check {};
8546
8547 typedef check<void> single_type;
8548 typedef check<check<void>> double_type;
8549 typedef check<check<check<void>>> triple_type;
8550 typedef check<check<check<check<void>>>> quadruple_type;
8551
8552 }
8553
8554 namespace test_decltype
8555 {
8556
8557 int
8558 f()
8559 {
8560 int a = 1;
8561 decltype(a) b = 2;
8562 return a + b;
8563 }
8564
8565 }
8566
8567 namespace test_type_deduction
8568 {
8569
8570 template < typename T1, typename T2 >
8571 struct is_same
8572 {
8573 static const bool value = false;
8574 };
8575
8576 template < typename T >
8577 struct is_same<T, T>
8578 {
8579 static const bool value = true;
8580 };
8581
8582 template < typename T1, typename T2 >
8583 auto
8584 add(T1 a1, T2 a2) -> decltype(a1 + a2)
8585 {
8586 return a1 + a2;
8587 }
8588
8589 int
8590 test(const int c, volatile int v)
8591 {
8592 static_assert(is_same<int, decltype(0)>::value == true, "");
8593 static_assert(is_same<int, decltype(c)>::value == false, "");
8594 static_assert(is_same<int, decltype(v)>::value == false, "");
8595 auto ac = c;
8596 auto av = v;
8597 auto sumi = ac + av + 'x';
8598 auto sumf = ac + av + 1.0;
8599 static_assert(is_same<int, decltype(ac)>::value == true, "");
8600 static_assert(is_same<int, decltype(av)>::value == true, "");
8601 static_assert(is_same<int, decltype(sumi)>::value == true, "");
8602 static_assert(is_same<int, decltype(sumf)>::value == false, "");
8603 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
8604 return (sumf > 0.0) ? sumi : add(c, v);
8605 }
8606
8607 }
8608
8609 namespace test_noexcept
8610 {
8611
8612 int f() { return 0; }
8613 int g() noexcept { return 0; }
8614
8615 static_assert(noexcept(f()) == false, "");
8616 static_assert(noexcept(g()) == true, "");
8617
8618 }
8619
8620 namespace test_constexpr
8621 {
8622
8623 template < typename CharT >
8624 unsigned long constexpr
8625 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
8626 {
8627 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
8628 }
8629
8630 template < typename CharT >
8631 unsigned long constexpr
8632 strlen_c(const CharT *const s) noexcept
8633 {
8634 return strlen_c_r(s, 0UL);
8635 }
8636
8637 static_assert(strlen_c("") == 0UL, "");
8638 static_assert(strlen_c("1") == 1UL, "");
8639 static_assert(strlen_c("example") == 7UL, "");
8640 static_assert(strlen_c("another\0example") == 7UL, "");
8641
8642 }
8643
8644 namespace test_rvalue_references
8645 {
8646
8647 template < int N >
8648 struct answer
8649 {
8650 static constexpr int value = N;
8651 };
8652
8653 answer<1> f(int&) { return answer<1>(); }
8654 answer<2> f(const int&) { return answer<2>(); }
8655 answer<3> f(int&&) { return answer<3>(); }
8656
8657 void
8658 test()
8659 {
8660 int i = 0;
8661 const int c = 0;
8662 static_assert(decltype(f(i))::value == 1, "");
8663 static_assert(decltype(f(c))::value == 2, "");
8664 static_assert(decltype(f(0))::value == 3, "");
8665 }
8666
8667 }
8668
8669 namespace test_uniform_initialization
8670 {
8671
8672 struct test
8673 {
8674 static const int zero {};
8675 static const int one {1};
8676 };
8677
8678 static_assert(test::zero == 0, "");
8679 static_assert(test::one == 1, "");
8680
8681 }
8682
8683 namespace test_lambdas
8684 {
8685
8686 void
8687 test1()
8688 {
8689 auto lambda1 = [](){};
8690 auto lambda2 = lambda1;
8691 lambda1();
8692 lambda2();
8693 }
8694
8695 int
8696 test2()
8697 {
8698 auto a = [](int i, int j){ return i + j; }(1, 2);
8699 auto b = []() -> int { return '0'; }();
8700 auto c = [=](){ return a + b; }();
8701 auto d = [&](){ return c; }();
8702 auto e = [a, &b](int x) mutable {
8703 const auto identity = [](int y){ return y; };
8704 for (auto i = 0; i < a; ++i)
8705 a += b--;
8706 return x + identity(a + b);
8707 }(0);
8708 return a + b + c + d + e;
8709 }
8710
8711 int
8712 test3()
8713 {
8714 const auto nullary = [](){ return 0; };
8715 const auto unary = [](int x){ return x; };
8716 using nullary_t = decltype(nullary);
8717 using unary_t = decltype(unary);
8718 const auto higher1st = [](nullary_t f){ return f(); };
8719 const auto higher2nd = [unary](nullary_t f1){
8720 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
8721 };
8722 return higher1st(nullary) + higher2nd(nullary)(unary);
8723 }
8724
8725 }
8726
8727 namespace test_variadic_templates
8728 {
8729
8730 template <int...>
8731 struct sum;
8732
8733 template <int N0, int... N1toN>
8734 struct sum<N0, N1toN...>
8735 {
8736 static constexpr auto value = N0 + sum<N1toN...>::value;
8737 };
8738
8739 template <>
8740 struct sum<>
8741 {
8742 static constexpr auto value = 0;
8743 };
8744
8745 static_assert(sum<>::value == 0, "");
8746 static_assert(sum<1>::value == 1, "");
8747 static_assert(sum<23>::value == 23, "");
8748 static_assert(sum<1, 2>::value == 3, "");
8749 static_assert(sum<5, 5, 11>::value == 21, "");
8750 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
8751
8752 }
8753
8754 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
8755 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
8756 // because of this.
8757 namespace test_template_alias_sfinae
8758 {
8759
8760 struct foo {};
8761
8762 template<typename T>
8763 using member = typename T::member_type;
8764
8765 template<typename T>
8766 void func(...) {}
8767
8768 template<typename T>
8769 void func(member<T>*) {}
8770
8771 void test();
8772
8773 void test() { func<foo>(0); }
8774
8775 }
8776
8777 } // namespace cxx11
8778
8779 #endif // __cplusplus >= 201103L
8780
8781
8782
8783 _ACEOF
8784 if ac_fn_cxx_try_compile "$LINENO"; then :
8785 eval $cachevar=yes
8786 else
8787 eval $cachevar=no
8788 fi
8789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8790 CXX="$ac_save_CXX"
8791 fi
8792 eval ac_res=\$$cachevar
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8794 case "$ac_res" in #(
8795 yes|ok|yes[\ ,]*) :
8796 $as_echo "${as__grn}$ac_res${as__std}" >&6 ;; #(
8797 no|failed|unsupported|no[\ ,]*) :
8798 $as_echo "${as__red}$ac_res${as__std}" >&6 ;; #(
8799 *) :
8800 $as_echo "${as__blu}$ac_res${as__std}" >&6 ;;
8801 esac; }
8802 if eval test x\$$cachevar = xyes; then
8803 CXX="$CXX $switch"
8804 if test "x$CXXCPP" != x; then
8805 CXXCPP="$CXXCPP $switch"
8806 fi
8807 ac_success=yes
8808 break
8809 fi
8810 done
8811 if test x$ac_success = xyes; then
8812 break
8813 fi
8814 done
8815 fi
8816
8817 if test x$ac_success = xno; then
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
8819 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
8820 if ${ax_cv_cxx_compile_cxx11+:} false; then :
8821 $as_echo_n "(cached) " >&6
8822 else
8823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8824 /* end confdefs.h. */
8825
8826
8827 // If the compiler admits that it is not ready for C++11, why torture it?
8828 // Hopefully, this will speed up the test.
8829
8830 #ifndef __cplusplus
8831
8832 #error "This is not a C++ compiler"
8833
8834 // MSVC always sets __cplusplus to 199711L in older versions; newer versions
8835 // only set it correctly if /Zc:__cplusplus is specified as well as a
8836 // /std:c++NN switch:
8837 //
8838 // https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/
8839 //
8840 // The value __cplusplus ought to have is available in _MSVC_LANG since
8841 // Visual Studio 2015 Update 3:
8842 //
8843 // https://learn.microsoft.com/en-us/cpp/preprocessor/predefined-macros
8844 //
8845 // This was also the first MSVC version to support C++14 so we can't use the
8846 // value of either __cplusplus or _MSVC_LANG to quickly rule out MSVC having
8847 // C++11 or C++14 support, but we can check _MSVC_LANG for C++17 and later.
8848 #elif __cplusplus < 201103L && !defined _MSC_VER
8849
8850 #error "This is not a C++11 compiler"
8851
8852 #else
8853
8854 namespace cxx11
8855 {
8856
8857 namespace test_static_assert
8858 {
8859
8860 template <typename T>
8861 struct check
8862 {
8863 static_assert(sizeof(int) <= sizeof(T), "not big enough");
8864 };
8865
8866 }
8867
8868 namespace test_final_override
8869 {
8870
8871 struct Base
8872 {
8873 virtual ~Base() {}
8874 virtual void f() {}
8875 };
8876
8877 struct Derived : public Base
8878 {
8879 virtual ~Derived() override {}
8880 virtual void f() override {}
8881 };
8882
8883 }
8884
8885 namespace test_double_right_angle_brackets
8886 {
8887
8888 template < typename T >
8889 struct check {};
8890
8891 typedef check<void> single_type;
8892 typedef check<check<void>> double_type;
8893 typedef check<check<check<void>>> triple_type;
8894 typedef check<check<check<check<void>>>> quadruple_type;
8895
8896 }
8897
8898 namespace test_decltype
8899 {
8900
8901 int
8902 f()
8903 {
8904 int a = 1;
8905 decltype(a) b = 2;
8906 return a + b;
8907 }
8908
8909 }
8910
8911 namespace test_type_deduction
8912 {
8913
8914 template < typename T1, typename T2 >
8915 struct is_same
8916 {
8917 static const bool value = false;
8918 };
8919
8920 template < typename T >
8921 struct is_same<T, T>
8922 {
8923 static const bool value = true;
8924 };
8925
8926 template < typename T1, typename T2 >
8927 auto
8928 add(T1 a1, T2 a2) -> decltype(a1 + a2)
8929 {
8930 return a1 + a2;
8931 }
8932
8933 int
8934 test(const int c, volatile int v)
8935 {
8936 static_assert(is_same<int, decltype(0)>::value == true, "");
8937 static_assert(is_same<int, decltype(c)>::value == false, "");
8938 static_assert(is_same<int, decltype(v)>::value == false, "");
8939 auto ac = c;
8940 auto av = v;
8941 auto sumi = ac + av + 'x';
8942 auto sumf = ac + av + 1.0;
8943 static_assert(is_same<int, decltype(ac)>::value == true, "");
8944 static_assert(is_same<int, decltype(av)>::value == true, "");
8945 static_assert(is_same<int, decltype(sumi)>::value == true, "");
8946 static_assert(is_same<int, decltype(sumf)>::value == false, "");
8947 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
8948 return (sumf > 0.0) ? sumi : add(c, v);
8949 }
8950
8951 }
8952
8953 namespace test_noexcept
8954 {
8955
8956 int f() { return 0; }
8957 int g() noexcept { return 0; }
8958
8959 static_assert(noexcept(f()) == false, "");
8960 static_assert(noexcept(g()) == true, "");
8961
8962 }
8963
8964 namespace test_constexpr
8965 {
8966
8967 template < typename CharT >
8968 unsigned long constexpr
8969 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
8970 {
8971 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
8972 }
8973
8974 template < typename CharT >
8975 unsigned long constexpr
8976 strlen_c(const CharT *const s) noexcept
8977 {
8978 return strlen_c_r(s, 0UL);
8979 }
8980
8981 static_assert(strlen_c("") == 0UL, "");
8982 static_assert(strlen_c("1") == 1UL, "");
8983 static_assert(strlen_c("example") == 7UL, "");
8984 static_assert(strlen_c("another\0example") == 7UL, "");
8985
8986 }
8987
8988 namespace test_rvalue_references
8989 {
8990
8991 template < int N >
8992 struct answer
8993 {
8994 static constexpr int value = N;
8995 };
8996
8997 answer<1> f(int&) { return answer<1>(); }
8998 answer<2> f(const int&) { return answer<2>(); }
8999 answer<3> f(int&&) { return answer<3>(); }
9000
9001 void
9002 test()
9003 {
9004 int i = 0;
9005 const int c = 0;
9006 static_assert(decltype(f(i))::value == 1, "");
9007 static_assert(decltype(f(c))::value == 2, "");
9008 static_assert(decltype(f(0))::value == 3, "");
9009 }
9010
9011 }
9012
9013 namespace test_uniform_initialization
9014 {
9015
9016 struct test
9017 {
9018 static const int zero {};
9019 static const int one {1};
9020 };
9021
9022 static_assert(test::zero == 0, "");
9023 static_assert(test::one == 1, "");
9024
9025 }
9026
9027 namespace test_lambdas
9028 {
9029
9030 void
9031 test1()
9032 {
9033 auto lambda1 = [](){};
9034 auto lambda2 = lambda1;
9035 lambda1();
9036 lambda2();
9037 }
9038
9039 int
9040 test2()
9041 {
9042 auto a = [](int i, int j){ return i + j; }(1, 2);
9043 auto b = []() -> int { return '0'; }();
9044 auto c = [=](){ return a + b; }();
9045 auto d = [&](){ return c; }();
9046 auto e = [a, &b](int x) mutable {
9047 const auto identity = [](int y){ return y; };
9048 for (auto i = 0; i < a; ++i)
9049 a += b--;
9050 return x + identity(a + b);
9051 }(0);
9052 return a + b + c + d + e;
9053 }
9054
9055 int
9056 test3()
9057 {
9058 const auto nullary = [](){ return 0; };
9059 const auto unary = [](int x){ return x; };
9060 using nullary_t = decltype(nullary);
9061 using unary_t = decltype(unary);
9062 const auto higher1st = [](nullary_t f){ return f(); };
9063 const auto higher2nd = [unary](nullary_t f1){
9064 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
9065 };
9066 return higher1st(nullary) + higher2nd(nullary)(unary);
9067 }
9068
9069 }
9070
9071 namespace test_variadic_templates
9072 {
9073
9074 template <int...>
9075 struct sum;
9076
9077 template <int N0, int... N1toN>
9078 struct sum<N0, N1toN...>
9079 {
9080 static constexpr auto value = N0 + sum<N1toN...>::value;
9081 };
9082
9083 template <>
9084 struct sum<>
9085 {
9086 static constexpr auto value = 0;
9087 };
9088
9089 static_assert(sum<>::value == 0, "");
9090 static_assert(sum<1>::value == 1, "");
9091 static_assert(sum<23>::value == 23, "");
9092 static_assert(sum<1, 2>::value == 3, "");
9093 static_assert(sum<5, 5, 11>::value == 21, "");
9094 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
9095
9096 }
9097
9098 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
9099 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
9100 // because of this.
9101 namespace test_template_alias_sfinae
9102 {
9103
9104 struct foo {};
9105
9106 template<typename T>
9107 using member = typename T::member_type;
9108
9109 template<typename T>
9110 void func(...) {}
9111
9112 template<typename T>
9113 void func(member<T>*) {}
9114
9115 void test();
9116
9117 void test() { func<foo>(0); }
9118
9119 }
9120
9121 } // namespace cxx11
9122
9123 #endif // __cplusplus >= 201103L
9124
9125
9126
9127 _ACEOF
9128 if ac_fn_cxx_try_compile "$LINENO"; then :
9129 ax_cv_cxx_compile_cxx11=yes
9130 else
9131 ax_cv_cxx_compile_cxx11=no
9132 fi
9133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9134 fi
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
9136 case "$ax_cv_cxx_compile_cxx11" in #(
9137 yes|ok|yes[\ ,]*) :
9138 $as_echo "${as__grn}$ax_cv_cxx_compile_cxx11${as__std}" >&6 ;; #(
9139 no|failed|unsupported|no[\ ,]*) :
9140 $as_echo "${as__red}$ax_cv_cxx_compile_cxx11${as__std}" >&6 ;; #(
9141 *) :
9142 $as_echo "${as__blu}$ax_cv_cxx_compile_cxx11${as__std}" >&6 ;;
9143 esac; }
9144 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
9145 ac_success=yes
9146 fi
9147 fi
9148
9149 ac_ext=cpp
9150 ac_cpp='$CXXCPP $CPPFLAGS'
9151 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9152 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9153 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9154
9155 if test x$ax_cxx_compile_cxx11_required = xtrue; then
9156 if test x$ac_success = xno; then
9157 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
9158 fi
9159 fi
9160 if test x$ac_success = xno; then
9161 HAVE_CXX11=0
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: info: No compiler with C++11 support was found" >&5
9163 $as_echo "$as_me: ${as__blu}info: No compiler with C++11 support was found${as__std}" >&2;}
9164 else
9165 HAVE_CXX11=1
9166
9167 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
9168
9169 fi
9170
9171
9172
9173 ac_ext=cpp
9174 ac_cpp='$CXXCPP $CPPFLAGS'
9175 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9176 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9177 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9178
9179
9180
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX needs __STDC_CONSTANT_MACROS" >&5
9182 $as_echo_n "checking whether $CXX needs __STDC_CONSTANT_MACROS... " >&6; }
9183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9184 /* end confdefs.h. */
9185
9186
9187 #include <stdint.h>
9188
9189 int
9190 main ()
9191 {
9192
9193 int8_t i8 = INT8_C( 42 );
9194 int16_t i16 = INT16_C( 42 );
9195 int32_t i32 = INT32_C( 42 );
9196 int64_t i64 = INT64_C( 42 );
9197 uint8_t u8 = UINT8_C( 42 );
9198 uint16_t u16 = UINT16_C( 42 );
9199 uint32_t u32 = UINT32_C( 42 );
9200 uint64_t u64 = UINT64_C( 42 );
9201
9202 ;
9203 return 0;
9204 }
9205
9206 _ACEOF
9207 if ac_fn_cxx_try_compile "$LINENO"; then :
9208 _ax_result=no
9209 else
9210 _ax_save_CPPFLAGS="$CPPFLAGS"
9211 CPPFLAGS="-D__STDC_CONSTANT_MACROS"
9212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9213 /* end confdefs.h. */
9214
9215
9216 #include <stdint.h>
9217
9218 int
9219 main ()
9220 {
9221
9222 int8_t i8 = INT8_C( 42 );
9223 int16_t i16 = INT16_C( 42 );
9224 int32_t i32 = INT32_C( 42 );
9225 int64_t i64 = INT64_C( 42 );
9226 uint8_t u8 = UINT8_C( 42 );
9227 uint16_t u16 = UINT16_C( 42 );
9228 uint32_t u32 = UINT32_C( 42 );
9229 uint64_t u64 = UINT64_C( 42 );
9230
9231 ;
9232 return 0;
9233 }
9234
9235 _ACEOF
9236 if ac_fn_cxx_try_compile "$LINENO"; then :
9237 _ax_result=yes
9238
9239 $as_echo "#define __STDC_CONSTANT_MACROS 1" >>confdefs.h
9240
9241 else
9242 as_fn_error $? "$CXX cannot compile fixed-width integer constant macros" "$LINENO" 5
9243 fi
9244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9245 CPPFLAGS="$_ax_save_CPPFLAGS"
9246 fi
9247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_ax_result" >&5
9249 case "$_ax_result" in #(
9250 yes|ok|yes[\ ,]*) :
9251 $as_echo "${as__grn}$_ax_result${as__std}" >&6 ;; #(
9252 no|failed|unsupported|no[\ ,]*) :
9253 $as_echo "${as__red}$_ax_result${as__std}" >&6 ;; #(
9254 *) :
9255 $as_echo "${as__blu}$_ax_result${as__std}" >&6 ;;
9256 esac; }
9257
9258
9259
9260
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX needs __STDC_FORMAT_MACROS" >&5
9262 $as_echo_n "checking whether $CXX needs __STDC_FORMAT_MACROS... " >&6; }
9263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9264 /* end confdefs.h. */
9265
9266
9267 #include <inttypes.h>
9268
9269 int
9270 main ()
9271 {
9272
9273 const char* i8 = PRId8;
9274 const char* i16 = PRId16;
9275 const char* i32 = PRId32;
9276 const char* i64 = PRId64;
9277 const char* u8 = PRIu8;
9278 const char* u16 = PRIu16;
9279 const char* u32 = PRIu32;
9280 const char* u64 = PRIu64;
9281
9282 ;
9283 return 0;
9284 }
9285
9286 _ACEOF
9287 if ac_fn_cxx_try_compile "$LINENO"; then :
9288 _ax_result=no
9289 else
9290 _ax_save_CPPFLAGS="$CPPFLAGS"
9291 CPPFLAGS="-D__STDC_FORMAT_MACROS"
9292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9293 /* end confdefs.h. */
9294
9295
9296 #include <inttypes.h>
9297
9298 int
9299 main ()
9300 {
9301
9302 const char* i8 = PRId8;
9303 const char* i16 = PRId16;
9304 const char* i32 = PRId32;
9305 const char* i64 = PRId64;
9306 const char* u8 = PRIu8;
9307 const char* u16 = PRIu16;
9308 const char* u32 = PRIu32;
9309 const char* u64 = PRIu64;
9310
9311 ;
9312 return 0;
9313 }
9314
9315 _ACEOF
9316 if ac_fn_cxx_try_compile "$LINENO"; then :
9317 _ax_result=yes
9318
9319 $as_echo "#define __STDC_FORMAT_MACROS 1" >>confdefs.h
9320
9321 else
9322 as_fn_error $? "$CXX cannot compile fixed-width integer format macros" "$LINENO" 5
9323 fi
9324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9325 CPPFLAGS="$_ax_save_CPPFLAGS"
9326 fi
9327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_ax_result" >&5
9329 case "$_ax_result" in #(
9330 yes|ok|yes[\ ,]*) :
9331 $as_echo "${as__grn}$_ax_result${as__std}" >&6 ;; #(
9332 no|failed|unsupported|no[\ ,]*) :
9333 $as_echo "${as__red}$_ax_result${as__std}" >&6 ;; #(
9334 *) :
9335 $as_echo "${as__blu}$_ax_result${as__std}" >&6 ;;
9336 esac; }
9337
9338
9339
9340
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX needs __STDC_LIMIT_MACROS" >&5
9342 $as_echo_n "checking whether $CXX needs __STDC_LIMIT_MACROS... " >&6; }
9343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9344 /* end confdefs.h. */
9345
9346
9347 #include <stdint.h>
9348
9349 int
9350 main ()
9351 {
9352
9353 int8_t i8 = INT8_MAX;
9354 int16_t i16 = INT16_MAX;
9355 int32_t i32 = INT32_MAX;
9356 int64_t i64 = INT64_MAX;
9357 uint8_t u8 = UINT8_MAX;
9358 uint16_t u16 = UINT16_MAX;
9359 uint32_t u32 = UINT32_MAX;
9360 uint64_t u64 = UINT64_MAX;
9361
9362 ;
9363 return 0;
9364 }
9365
9366 _ACEOF
9367 if ac_fn_cxx_try_compile "$LINENO"; then :
9368 _ax_result=no
9369 else
9370 _ax_save_CPPFLAGS="$CPPFLAGS"
9371 CPPFLAGS="-D__STDC_LIMIT_MACROS"
9372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9373 /* end confdefs.h. */
9374
9375
9376 #include <stdint.h>
9377
9378 int
9379 main ()
9380 {
9381
9382 int8_t i8 = INT8_MAX;
9383 int16_t i16 = INT16_MAX;
9384 int32_t i32 = INT32_MAX;
9385 int64_t i64 = INT64_MAX;
9386 uint8_t u8 = UINT8_MAX;
9387 uint16_t u16 = UINT16_MAX;
9388 uint32_t u32 = UINT32_MAX;
9389 uint64_t u64 = UINT64_MAX;
9390
9391 ;
9392 return 0;
9393 }
9394
9395 _ACEOF
9396 if ac_fn_cxx_try_compile "$LINENO"; then :
9397 _ax_result=yes
9398
9399 $as_echo "#define __STDC_LIMIT_MACROS 1" >>confdefs.h
9400
9401 else
9402 as_fn_error $? "$CXX cannot compile fixed-width integer limit macros" "$LINENO" 5
9403 fi
9404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9405 CPPFLAGS="$_ax_save_CPPFLAGS"
9406 fi
9407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_ax_result" >&5
9409 case "$_ax_result" in #(
9410 yes|ok|yes[\ ,]*) :
9411 $as_echo "${as__grn}$_ax_result${as__std}" >&6 ;; #(
9412 no|failed|unsupported|no[\ ,]*) :
9413 $as_echo "${as__red}$_ax_result${as__std}" >&6 ;; #(
9414 *) :
9415 $as_echo "${as__blu}$_ax_result${as__std}" >&6 ;;
9416 esac; }
9417
9418
9419 ac_ext=cpp
9420 ac_cpp='$CXXCPP $CPPFLAGS'
9421 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9422 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9423 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9424
9425
9426
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler vendor" >&5
9428 $as_echo_n "checking for C++ compiler vendor... " >&6; }
9429 if ${ax_cv_cxx_compiler_vendor+:} false; then :
9430 $as_echo_n "(cached) " >&6
9431 else
9432
9433 vendors="
9434 intel: __ICC,__ECC,__INTEL_COMPILER,__INTEL_LLVM_COMPILER
9435 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__,__ibmxl__clang__,__ibmxl__
9436 pathscale: __PATHCC__,__PATHSCALE__
9437 clang: __clang__
9438 cray: _CRAYC,_CRAYFTN
9439 fujitsu: __FUJITSU
9440 sdcc: SDCC,__SDCC
9441 sx: _SX
9442 nvhpc: __NVCOMPILER
9443 portland: __PGI
9444 flang: __flang__,__PGLLVM__
9445 gnu: __GNUC__
9446 sun: __SUNPRO_C,__SUNPRO_CC,__SUNPRO_F90,__SUNPRO_F95
9447 hp: __HP_cc,__HP_aCC
9448 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
9449 borland: __BORLANDC__,__CODEGEARC__,__TURBOC__
9450 comeau: __COMO__
9451 kai: __KCC
9452 lcc: __LCC__
9453 sgi: __sgi,sgi
9454 microsoft: _MSC_VER
9455 metrowerks: __MWERKS__
9456 watcom: __WATCOMC__
9457 tcc: __TINYC__
9458 unknown: UNKNOWN
9459 "
9460 for ventest in $vendors; do
9461 case $ventest in #(
9462 *:)
9463 vendor=${ventest%:*}
9464 continue
9465 ;; #(
9466 *)
9467 vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")"
9468 ;;
9469 esac
9470
9471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9472 /* end confdefs.h. */
9473
9474 int
9475 main ()
9476 {
9477
9478 #if !($vencpp)
9479 thisisanerror;
9480 #endif
9481
9482 ;
9483 return 0;
9484 }
9485 _ACEOF
9486 if ac_fn_cxx_try_compile "$LINENO"; then :
9487 break
9488 fi
9489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9490 done
9491
9492 ax_cv_cxx_compiler_vendor=$vendor
9493
9494 flang_variants="classic: __PGLLVM__"
9495 portland_variants="llvm: __PGLLVM__"
9496 intel_variants="oneapi: __INTEL_LLVM_COMPILER"
9497 eval variants=\"\$${ax_cv_cxx_compiler_vendor}_variants : NONE\"
9498 for vartest in $variants; do
9499 case $vartest in #(
9500 *:)
9501 variant=${vartest%:*};
9502 continue
9503 ;; #(
9504 *)
9505 varcpp="defined("`echo $vartest | sed 's/,/) && defined(/g'`")"
9506 ;;
9507 esac
9508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9509 /* end confdefs.h. */
9510
9511 int
9512 main ()
9513 {
9514
9515 #if !($varcpp)
9516 thisisanerror;
9517 #endif
9518
9519 ;
9520 return 0;
9521 }
9522 _ACEOF
9523 if ac_fn_cxx_try_compile "$LINENO"; then :
9524 break
9525 fi
9526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9527 done
9528 as_fn_append ax_cv_cxx_compiler_vendor ${variant:+/$variant}
9529
9530 fi
9531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compiler_vendor" >&5
9532 case "$ax_cv_cxx_compiler_vendor" in #(
9533 yes|ok|yes[\ ,]*) :
9534 $as_echo "${as__grn}$ax_cv_cxx_compiler_vendor${as__std}" >&6 ;; #(
9535 no|failed|unsupported|no[\ ,]*) :
9536 $as_echo "${as__red}$ax_cv_cxx_compiler_vendor${as__std}" >&6 ;; #(
9537 *) :
9538 $as_echo "${as__blu}$ax_cv_cxx_compiler_vendor${as__std}" >&6 ;;
9539 esac; }
9540
9541
9542
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
9544 $as_echo_n "checking for C++ compiler version... " >&6; }
9545 if ${ax_cv_cxx_compiler_version+:} false; then :
9546 $as_echo_n "(cached) " >&6
9547 else
9548 case ${ax_cv_cxx_compiler_vendor%/*} in #(
9549 intel) :
9550 case ${ax_cv_cxx_compiler_vendor} in #(
9551 intel) :
9552 if ac_fn_cxx_compute_int "$LINENO" "__INTEL_COMPILER/100" "_ax_cxx_compiler_version_major" ""; then :
9553
9554 else
9555 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9556 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
9557 as_fn_error $? "_AX_COMPILER_VERSION_INTEL unknown intel compiler version${as__std}
9558 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
9559 fi
9560
9561 if ac_fn_cxx_compute_int "$LINENO" "(__INTEL_COMPILER%100)/10" "_ax_cxx_compiler_version_minor" ""; then :
9562
9563 else
9564 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9565 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
9566 as_fn_error $? "_AX_COMPILER_VERSION_INTEL unknown intel compiler version${as__std}
9567 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
9568 fi
9569
9570 if ac_fn_cxx_compute_int "$LINENO" "(__INTEL_COMPILER%10)" "_ax_cxx_compiler_version_patch" ""; then :
9571
9572 else
9573 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9574 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
9575 as_fn_error $? "_AX_COMPILER_VERSION_INTEL unknown intel compiler version${as__std}
9576 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
9577 fi
9578 ;; #(
9579 intel/oneapi) :
9580 if ac_fn_cxx_compute_int "$LINENO" "__INTEL_LLVM_COMPILER/10000" "_ax_cxx_compiler_version_major" ""; then :
9581
9582 else
9583 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9584 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
9585 as_fn_error $? "_AX_COMPILER_VERSION_INTEL unknown intel oneAPI compiler version${as__std}
9586 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
9587 fi
9588
9589 if ac_fn_cxx_compute_int "$LINENO" "(__INTEL_LLVM_COMPILER/100)%100" "_ax_cxx_compiler_version_minor" ""; then :
9590
9591 else
9592 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9593 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
9594 as_fn_error $? "_AX_COMPILER_VERSION_INTEL unknown intel oneAPI compiler version${as__std}
9595 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
9596 fi
9597
9598 if ac_fn_cxx_compute_int "$LINENO" "(__INTEL_LLVM_COMPILER%100)" "_ax_cxx_compiler_version_patch" ""; then :
9599
9600 else
9601 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9602 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
9603 as_fn_error $? "_AX_COMPILER_VERSION_INTEL unknown intel oneAPI compiler version${as__std}
9604 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
9605 fi
9606 ;; #(
9607 *) :
9608 ;;
9609 esac
9610 ax_cv_cxx_compiler_version="$_ax_cxx_compiler_version_major.$_ax_cxx_compiler_version_minor.$_ax_cxx_compiler_version_patch"
9611 ;; #(
9612 ibm) :
9613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9614 /* end confdefs.h. */
9615
9616
9617 int
9618 main ()
9619 {
9620
9621 #if defined(__COMPILER_VER__)
9622 choke me;
9623 #endif
9624
9625 ;
9626 return 0;
9627 }
9628 _ACEOF
9629 if ac_fn_cxx_try_compile "$LINENO"; then :
9630
9631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9632 /* end confdefs.h. */
9633
9634
9635 int
9636 main ()
9637 {
9638
9639 #if defined(__ibmxl_version__)
9640 choke me;
9641 #endif
9642
9643 ;
9644 return 0;
9645 }
9646 _ACEOF
9647 if ac_fn_cxx_try_compile "$LINENO"; then :
9648
9649 if ac_fn_cxx_compute_int "$LINENO" "__xlC__/100" "_ax_cxx_compiler_version_major" ""; then :
9650
9651 else
9652 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9653 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
9654 as_fn_error $? "_AX_COMPILER_VERSION_IBM unknown IBM compiler major version${as__std}
9655 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
9656 fi
9657
9658 if ac_fn_cxx_compute_int "$LINENO" "__xlC__%100" "_ax_cxx_compiler_version_minor" ""; then :
9659
9660 else
9661 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9662 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
9663 as_fn_error $? "_AX_COMPILER_VERSION_IBM unknown IBM compiler minor version${as__std}
9664 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
9665 fi
9666
9667 if ac_fn_cxx_compute_int "$LINENO" "__xlC_ver__/0x100" "_ax_cxx_compiler_version_patch" ""; then :
9668
9669 else
9670 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9671 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
9672 as_fn_error $? "_AX_COMPILER_VERSION_IBM unknown IBM compiler patch version${as__std}
9673 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
9674 fi
9675
9676 if ac_fn_cxx_compute_int "$LINENO" "__xlC_ver__%0x100" "_ax_cxx_compiler_version_build" ""; then :
9677
9678 else
9679 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9680 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
9681 as_fn_error $? "_AX_COMPILER_VERSION_IBM unknown IBM compiler build version${as__std}
9682 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
9683 fi
9684
9685 ax_cv_cxx_compiler_version="$_ax_cxx_compiler_version_major.$_ax_cxx_compiler_version_minor.$_ax_cxx_compiler_version_patch.$_ax_cxx_compiler_version_build"
9686
9687 else
9688
9689 if ac_fn_cxx_compute_int "$LINENO" "__ibmxl_modification__" "_ax_cxx_compiler_version_patch" ""; then :
9690
9691 else
9692 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9693 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
9694 as_fn_error $? "_AX_COMPILER_VERSION_IBM unknown IBM compiler patch version${as__std}
9695 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
9696 fi
9697
9698 if ac_fn_cxx_compute_int "$LINENO" "__ibmxl_release__" "_ax_cxx_compiler_version_minor" ""; then :
9699
9700 else
9701 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9702 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
9703 as_fn_error $? "_AX_COMPILER_VERSION_IBM unknown IBM compiler minor version${as__std}
9704 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
9705 fi
9706
9707 if ac_fn_cxx_compute_int "$LINENO" "__ibmxl_version__" "_ax_cxx_compiler_version_major" ""; then :
9708
9709 else
9710 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9711 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
9712 as_fn_error $? "_AX_COMPILER_VERSION_IBM unknown IBM compiler major version${as__std}
9713 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
9714 fi
9715
9716 ax_cv_cxx_compiler_version="$_ax_cxx_compiler_version_major.$_ax_cxx_compiler_version_minor.$_ax_cxx_compiler_version_patch"
9717
9718 fi
9719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9720
9721 else
9722
9723 if ac_fn_cxx_compute_int "$LINENO" "__xlC__%1000" "_ax_cxx_compiler_version_patch" ""; then :
9724
9725 else
9726 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9727 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
9728 as_fn_error $? "_AX_COMPILER_VERSION_IBM unknown IBM compiler patch version${as__std}
9729 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
9730 fi
9731
9732 if ac_fn_cxx_compute_int "$LINENO" "(__xlC__/10000)%10" "_ax_cxx_compiler_version_minor" ""; then :
9733
9734 else
9735 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9736 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
9737 as_fn_error $? "_AX_COMPILER_VERSION_IBM unknown IBM compiler minor version${as__std}
9738 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
9739 fi
9740
9741 if ac_fn_cxx_compute_int "$LINENO" "(__xlC__/100000)%10" "_ax_cxx_compiler_version_major" ""; then :
9742
9743 else
9744 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9745 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
9746 as_fn_error $? "_AX_COMPILER_VERSION_IBM unknown IBM compiler major version${as__std}
9747 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
9748 fi
9749
9750 ax_cv_cxx_compiler_version="$_ax_cxx_compiler_version_major.$_ax_cxx_compiler_version_minor.$_ax_cxx_compiler_version_patch"
9751
9752 fi
9753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9754 ;; #(
9755 pathscale) :
9756
9757 if ac_fn_cxx_compute_int "$LINENO" "__PATHCC__" "_ax_cxx_compiler_version_major" ""; then :
9758
9759 else
9760 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9761 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
9762 as_fn_error $? "_AX_COMPILER_VERSION_PATHSCALE unknown pathscale major${as__std}
9763 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
9764 fi
9765
9766 if ac_fn_cxx_compute_int "$LINENO" "__PATHCC_MINOR__" "_ax_cxx_compiler_version_minor" ""; then :
9767
9768 else
9769 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9770 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
9771 as_fn_error $? "_AX_COMPILER_VERSION_PATHSCALE unknown pathscale minor${as__std}
9772 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
9773 fi
9774
9775 if ac_fn_cxx_compute_int "$LINENO" "__PATHCC_PATCHLEVEL__" "_ax_cxx_compiler_version_patch" ""; then :
9776
9777 else
9778 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9779 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
9780 as_fn_error $? "_AX_COMPILER_VERSION_PATHSCALE unknown pathscale patch level${as__std}
9781 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
9782 fi
9783
9784 ax_cv_cxx_compiler_version="$_ax_cxx_compiler_version_major.$_ax_cxx_compiler_version_minor.$_ax_cxx_compiler_version_patch"
9785 ;; #(
9786 clang) :
9787
9788 if ac_fn_cxx_compute_int "$LINENO" "__clang_major__" "_ax_cxx_compiler_version_major" ""; then :
9789
9790 else
9791 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9792 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
9793 as_fn_error $? "_AX_COMPILER_VERSION_CLANG unknown clang major${as__std}
9794 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
9795 fi
9796
9797 if ac_fn_cxx_compute_int "$LINENO" "__clang_minor__" "_ax_cxx_compiler_version_minor" ""; then :
9798
9799 else
9800 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9801 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
9802 as_fn_error $? "_AX_COMPILER_VERSION_CLANG unknown clang minor${as__std}
9803 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
9804 fi
9805
9806 if ac_fn_cxx_compute_int "$LINENO" "__clang_patchlevel__" "_ax_cxx_compiler_version_patch" ""; then :
9807
9808 else
9809 0
9810 fi
9811
9812 ax_cv_cxx_compiler_version="$_ax_cxx_compiler_version_major.$_ax_cxx_compiler_version_minor.$_ax_cxx_compiler_version_patch"
9813 ;; #(
9814 cray) :
9815
9816 if ac_fn_cxx_compute_int "$LINENO" "_RELEASE" "_ax_cxx_compiler_version_major" ""; then :
9817
9818 else
9819 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9820 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
9821 as_fn_error $? "_AX_COMPILER_VERSION_CRAY unknown crayc release${as__std}
9822 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
9823 fi
9824
9825 if ac_fn_cxx_compute_int "$LINENO" "_RELEASE_MINOR" "_ax_cxx_compiler_version_minor" ""; then :
9826
9827 else
9828 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9829 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
9830 as_fn_error $? "_AX_COMPILER_VERSION_CRAY unknown crayc minor${as__std}
9831 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
9832 fi
9833
9834 ax_cv_cxx_compiler_version="$_ax_cxx_compiler_version_major.$_ax_cxx_compiler_version_minor"
9835 ;; #(
9836 fujitsu) :
9837
9838 if ac_fn_cxx_compute_int "$LINENO" "__FCC_major__" "_ax_cxx_compiler_version_major" ""; then :
9839
9840 else
9841 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9842 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
9843 as_fn_error $? "_AX_COMPILER_VERSION_FUJITSU unknown fujitsu major${as__std}
9844 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
9845 fi
9846
9847 if ac_fn_cxx_compute_int "$LINENO" "__FCC_minor__" "_ax_cxx_compiler_version_minor" ""; then :
9848
9849 else
9850 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9851 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
9852 as_fn_error $? "_AX_COMPILER_VERSION_FUJITSU unknown fujitsu minor${as__std}
9853 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
9854 fi
9855
9856 if ac_fn_cxx_compute_int "$LINENO" "__FCC_patchlevel__" "_ax_cxx_compiler_version_patch" ""; then :
9857
9858 else
9859 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9860 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
9861 as_fn_error $? "_AX_COMPILER_VERSION_FUJITSU unknown fujitsu patch level${as__std}
9862 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
9863 fi
9864
9865 ax_cv_cxx_compiler_version="$_ax_cxx_compiler_version_major.$_ax_cxx_compiler_version_minor.$_ax_cxx_compiler_version_patch"
9866 ;; #(
9867 gnu) :
9868
9869 if ac_fn_cxx_compute_int "$LINENO" "__GNUC__" "_ax_cxx_compiler_version_major" ""; then :
9870
9871 else
9872 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9873 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
9874 as_fn_error $? "_AX_COMPILER_VERSION_GNU unknown gcc major${as__std}
9875 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
9876 fi
9877
9878 if ac_fn_cxx_compute_int "$LINENO" "__GNUC_MINOR__" "_ax_cxx_compiler_version_minor" ""; then :
9879
9880 else
9881 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9882 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
9883 as_fn_error $? "_AX_COMPILER_VERSION_GNU unknown gcc minor${as__std}
9884 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
9885 fi
9886
9887 if ac_fn_cxx_compute_int "$LINENO" "__GNUC_PATCHLEVEL__" "_ax_cxx_compiler_version_patch" ""; then :
9888
9889 else
9890 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9891 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
9892 as_fn_error $? "_AX_COMPILER_VERSION_GNU unknown gcc patch level${as__std}
9893 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
9894 fi
9895
9896 ax_cv_cxx_compiler_version="$_ax_cxx_compiler_version_major.$_ax_cxx_compiler_version_minor.$_ax_cxx_compiler_version_patch"
9897 ;; #(
9898 sun) :
9899
9900
9901 if ac_fn_cxx_compute_int "$LINENO" "!!(
9902 #if defined(__SUNPRO_CC)
9903 __SUNPRO_CC
9904 #else
9905 __SUNPRO_C
9906 #endif
9907 < 0x1000)" "_ax_cxx_compiler_version_until59" ""; then :
9908
9909 else
9910 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9911 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
9912 as_fn_error $? "_AX_COMPILER_VERSION_SUN unknown sun release version${as__std}
9913 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
9914 fi
9915
9916 if test "X$_ax_cxx_compiler_version_until59" = X1; then :
9917 if ac_fn_cxx_compute_int "$LINENO" "
9918 #if defined(__SUNPRO_CC)
9919 __SUNPRO_CC
9920 #else
9921 __SUNPRO_C
9922 #endif
9923 % 0x10" "_ax_cxx_compiler_version_patch" ""; then :
9924
9925 else
9926 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9927 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
9928 as_fn_error $? "_AX_COMPILER_VERSION_SUN unknown sun patch version${as__std}
9929 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
9930 fi
9931
9932 if ac_fn_cxx_compute_int "$LINENO" "(
9933 #if defined(__SUNPRO_CC)
9934 __SUNPRO_CC
9935 #else
9936 __SUNPRO_C
9937 #endif
9938 / 0x10) % 0x10" "_ax_cxx_compiler_version_minor" ""; then :
9939
9940 else
9941 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9942 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
9943 as_fn_error $? "_AX_COMPILER_VERSION_SUN unknown sun minor version${as__std}
9944 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
9945 fi
9946
9947 if ac_fn_cxx_compute_int "$LINENO" "(
9948 #if defined(__SUNPRO_CC)
9949 __SUNPRO_CC
9950 #else
9951 __SUNPRO_C
9952 #endif
9953 / 0x100)" "_ax_cxx_compiler_version_major" ""; then :
9954
9955 else
9956 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9957 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
9958 as_fn_error $? "_AX_COMPILER_VERSION_SUN unknown sun major version${as__std}
9959 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
9960 fi
9961
9962
9963 else
9964 if ac_fn_cxx_compute_int "$LINENO" "
9965 #if defined(__SUNPRO_CC)
9966 __SUNPRO_CC
9967 #else
9968 __SUNPRO_C
9969 #endif
9970 % 0x10" "_ax_cxx_compiler_version_patch" ""; then :
9971
9972 else
9973 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9974 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
9975 as_fn_error $? "_AX_COMPILER_VERSION_SUN unknown sun patch version${as__std}
9976 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
9977 fi
9978
9979 if ac_fn_cxx_compute_int "$LINENO" "(
9980 #if defined(__SUNPRO_CC)
9981 __SUNPRO_CC
9982 #else
9983 __SUNPRO_C
9984 #endif
9985 / 0x100) % 0x100" "_ax_cxx_compiler_version_minor" ""; then :
9986
9987 else
9988 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9989 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
9990 as_fn_error $? "_AX_COMPILER_VERSION_SUN unknown sun minor version${as__std}
9991 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
9992 fi
9993
9994 if ac_fn_cxx_compute_int "$LINENO" "(
9995 #if defined(__SUNPRO_CC)
9996 __SUNPRO_CC
9997 #else
9998 __SUNPRO_C
9999 #endif
10000 / 0x1000)" "_ax_cxx_compiler_version_major" ""; then :
10001
10002 else
10003 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10004 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
10005 as_fn_error $? "_AX_COMPILER_VERSION_SUN unknown sun major version${as__std}
10006 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
10007 fi
10008
10009
10010 fi
10011 ax_cv_cxx_compiler_version="$_ax_cxx_compiler_version_major.$_ax_cxx_compiler_version_minor.$_ax_cxx_compiler_version_patch"
10012 ;; #(
10013 hp) :
10014
10015
10016 if ac_fn_cxx_compute_int "$LINENO" "!!(
10017 #if defined(__HP_cc)
10018 __HP_cc
10019 #else
10020 __HP_aCC
10021 #endif
10022 <= 1)" "_ax_cxx_compiler_version_untilA0121" ""; then :
10023
10024 else
10025 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10026 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
10027 as_fn_error $? "_AX_COMPILER_VERSION_HP unknown hp release version${as__std}
10028 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
10029 fi
10030
10031 if test "X$_ax_cxx_compiler_version_untilA0121" = X1; then :
10032 ax_cv_cxx_compiler_version="01.21.00"
10033
10034 else
10035 if ac_fn_cxx_compute_int "$LINENO" "(
10036 #if defined(__HP_cc)
10037 __HP_cc
10038 #else
10039 __HP_aCC
10040 #endif
10041 % 100)" "_ax_cxx_compiler_version_patch" ""; then :
10042
10043 else
10044 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10045 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
10046 as_fn_error $? "_AX_COMPILER_VERSION_HP unknown hp release version${as__std}
10047 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
10048 fi
10049
10050 if ac_fn_cxx_compute_int "$LINENO" "((
10051 #if defined(__HP_cc)
10052 __HP_cc
10053 #else
10054 __HP_aCC
10055 #endif
10056 / 100)%100)" "_ax_cxx_compiler_version_minor" ""; then :
10057
10058 else
10059 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10060 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
10061 as_fn_error $? "_AX_COMPILER_VERSION_HP unknown hp minor version${as__std}
10062 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
10063 fi
10064
10065 if ac_fn_cxx_compute_int "$LINENO" "((
10066 #if defined(__HP_cc)
10067 __HP_cc
10068 #else
10069 __HP_aCC
10070 #endif
10071 / 10000)%100)" "_ax_cxx_compiler_version_major" ""; then :
10072
10073 else
10074 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10075 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
10076 as_fn_error $? "_AX_COMPILER_VERSION_HP unknown hp major version${as__std}
10077 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
10078 fi
10079
10080 ax_cv_cxx_compiler_version="$_ax_cxx_compiler_version_major.$_ax_cxx_compiler_version_minor.$_ax_cxx_compiler_version_patch"
10081
10082 fi
10083 ;; #(
10084 dec) :
10085
10086 if ac_fn_cxx_compute_int "$LINENO" "(
10087 #if defined(__DECC_VER)
10088 __DECC_VER
10089 #else
10090 __DECCXX_VER
10091 #endif
10092 % 10000)" "_ax_cxx_compiler_version_patch" ""; then :
10093
10094 else
10095 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10096 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
10097 as_fn_error $? "_AX_COMPILER_VERSION_DEC unknown dec release version${as__std}
10098 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
10099 fi
10100
10101 if ac_fn_cxx_compute_int "$LINENO" "((
10102 #if defined(__DECC_VER)
10103 __DECC_VER
10104 #else
10105 __DECCXX_VER
10106 #endif
10107 / 100000UL)%100)" "_ax_cxx_compiler_version_minor" ""; then :
10108
10109 else
10110 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10111 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
10112 as_fn_error $? "_AX_COMPILER_VERSION_DEC unknown dec minor version${as__std}
10113 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
10114 fi
10115
10116 if ac_fn_cxx_compute_int "$LINENO" "((
10117 #if defined(__DECC_VER)
10118 __DECC_VER
10119 #else
10120 __DECCXX_VER
10121 #endif
10122 / 10000000UL)%100)" "_ax_cxx_compiler_version_major" ""; then :
10123
10124 else
10125 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10126 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
10127 as_fn_error $? "_AX_COMPILER_VERSION_DEC unknown dec major version${as__std}
10128 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
10129 fi
10130
10131 ax_cv_cxx_compiler_version="$_ax_cxx_compiler_version_major.$_ax_cxx_compiler_version_minor.$_ax_cxx_compiler_version_patch"
10132 ;; #(
10133 borland) :
10134
10135
10136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10137 /* end confdefs.h. */
10138
10139 int
10140 main ()
10141 {
10142
10143 #if defined(__TURBOC__)
10144 __TURBOC__
10145 #else
10146 choke me
10147 #endif
10148
10149 ;
10150 return 0;
10151 }
10152 _ACEOF
10153 if ac_fn_cxx_try_compile "$LINENO"; then :
10154 if ac_fn_cxx_compute_int "$LINENO" "
10155 #if defined(__TURBOC__)
10156 __TURBOC__
10157 #else
10158 choke me
10159 #endif
10160 " "_ax_cxx_compiler_version_turboc_raw" ""; then :
10161
10162 else
10163 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10164 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
10165 as_fn_error $? "_AX_COMPILER_VERSION_BORLAND unknown turboc version${as__std}
10166 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
10167 fi
10168
10169 if test $_ax_cxx_compiler_version_turboc_raw -lt 661 || test $_ax_cxx_compiler_version_turboc_raw -gt 1023; then :
10170 if ac_fn_cxx_compute_int "$LINENO" "
10171 #if defined(__TURBOC__)
10172 __TURBOC__
10173 #else
10174 choke me
10175 #endif
10176 % 0x100" "_ax_cxx_compiler_version_minor" ""; then :
10177
10178 else
10179 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10180 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
10181 as_fn_error $? "_AX_COMPILER_VERSION_BORLAND unknown turboc minor version${as__std}
10182 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
10183 fi
10184
10185 if ac_fn_cxx_compute_int "$LINENO" "(
10186 #if defined(__TURBOC__)
10187 __TURBOC__
10188 #else
10189 choke me
10190 #endif
10191 /0x100)%0x100" "_ax_cxx_compiler_version_major" ""; then :
10192
10193 else
10194 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10195 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
10196 as_fn_error $? "_AX_COMPILER_VERSION_BORLAND unknown turboc major version${as__std}
10197 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
10198 fi
10199
10200 ax_cv_cxx_compiler_version="0turboc:$_ax_cxx_compiler_version_major.$_ax_cxx_compiler_version_minor"
10201 else
10202 case $_ax_cxx_compiler_version_turboc_raw in #(
10203 661) :
10204 ax_cv_cxx_compiler_version="0turboc:1.00" ;; #(
10205 662) :
10206 ax_cv_cxx_compiler_version="0turboc:1.01" ;; #(
10207 663) :
10208 ax_cv_cxx_compiler_version="0turboc:2.00" ;; #(
10209 *) :
10210
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: [_AX_COMPILER_VERSION_BORLAND] unknown turboc version between 0x295 and 0x400 please report bug" >&5
10212 $as_echo "$as_me: ${as__yel}WARNING: [_AX_COMPILER_VERSION_BORLAND] unknown turboc version between 0x295 and 0x400 please report bug${as__std}" >&2;}
10213 ax_cv_cxx_compiler_version=""
10214 ;;
10215 esac
10216
10217 fi
10218
10219 else
10220 # borlandc
10221
10222 if ac_fn_cxx_compute_int "$LINENO" "
10223 #if defined(__BORLANDC__)
10224 __BORLANDC__
10225 #else
10226 __CODEGEARC__
10227 #endif
10228 " "_ax_cxx_compiler_version_borlandc_raw" ""; then :
10229
10230 else
10231 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10232 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
10233 as_fn_error $? "_AX_COMPILER_VERSION_BORLAND unknown borlandc version${as__std}
10234 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
10235 fi
10236
10237 case $_ax_cxx_compiler_version_borlandc_raw in #(
10238 512 ) :
10239 ax_cv_cxx_compiler_version="1borlanc:2.00" ;; #(
10240 1024) :
10241 ax_cv_cxx_compiler_version="1borlanc:3.00" ;; #(
10242 1024) :
10243 ax_cv_cxx_compiler_version="1borlanc:3.00" ;; #(
10244 1040) :
10245 ax_cv_cxx_compiler_version="1borlanc:3.1" ;; #(
10246 1106) :
10247 ax_cv_cxx_compiler_version="1borlanc:4.0" ;; #(
10248 1280) :
10249 ax_cv_cxx_compiler_version="1borlanc:5.0" ;; #(
10250 1312) :
10251 ax_cv_cxx_compiler_version="1borlanc:5.02" ;; #(
10252 1328) :
10253 ax_cv_cxx_compiler_version="2cppbuilder:3.0" ;; #(
10254 1344) :
10255 ax_cv_cxx_compiler_version="2cppbuilder:4.0" ;; #(
10256 1360) :
10257 ax_cv_cxx_compiler_version="3borlancpp:5.5" ;; #(
10258 1361) :
10259 ax_cv_cxx_compiler_version="3borlancpp:5.51" ;; #(
10260 1378) :
10261 ax_cv_cxx_compiler_version="3borlancpp:5.6.4" ;; #(
10262 1392) :
10263 ax_cv_cxx_compiler_version="4cppbuilder:2006" ;; #(
10264 1424) :
10265 ax_cv_cxx_compiler_version="4cppbuilder:2007" ;; #(
10266 1555) :
10267 ax_cv_cxx_compiler_version="4cppbuilder:2009" ;; #(
10268 1569) :
10269 ax_cv_cxx_compiler_version="4cppbuilder:2010" ;; #(
10270 1584) :
10271 ax_cv_cxx_compiler_version="5xe" ;; #(
10272 1600) :
10273 ax_cv_cxx_compiler_version="5xe:2" ;; #(
10274 1616) :
10275 ax_cv_cxx_compiler_version="5xe:3" ;; #(
10276 1632) :
10277 ax_cv_cxx_compiler_version="5xe:4" ;; #(
10278 *) :
10279
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: [_AX_COMPILER_VERSION_BORLAND] Unknown borlandc compiler version $_ax_cxx_compiler_version_borlandc_raw please report bug" >&5
10281 $as_echo "$as_me: ${as__yel}WARNING: [_AX_COMPILER_VERSION_BORLAND] Unknown borlandc compiler version $_ax_cxx_compiler_version_borlandc_raw please report bug${as__std}" >&2;}
10282 ;;
10283 esac
10284
10285 fi
10286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10287 ;; #(
10288 comeau) :
10289 if ac_fn_cxx_compute_int "$LINENO" "__COMO_VERSION__%100" "_ax_cxx_compiler_version_minor" ""; then :
10290
10291 else
10292 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10293 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
10294 as_fn_error $? "_AX_COMPILER_VERSION_COMEAU unknown comeau compiler minor version${as__std}
10295 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
10296 fi
10297
10298 if ac_fn_cxx_compute_int "$LINENO" "(__COMO_VERSION__/100)%10" "_ax_cxx_compiler_version_major" ""; then :
10299
10300 else
10301 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10302 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
10303 as_fn_error $? "_AX_COMPILER_VERSION_COMEAU unknown comeau compiler major version${as__std}
10304 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
10305 fi
10306
10307 ax_cv_cxx_compiler_version="$_ax_cxx_compiler_version_major.$_ax_cxx_compiler_version_minor"
10308 ;; #(
10309 kai) :
10310
10311 if ac_fn_cxx_compute_int "$LINENO" "__KCC_VERSION%100" "_ax_cxx_compiler_version_patch" ""; then :
10312
10313 else
10314 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10315 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
10316 as_fn_error $? "_AX_COMPILER_VERSION_KAI unknown kay compiler patch version${as__std}
10317 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
10318 fi
10319
10320 if ac_fn_cxx_compute_int "$LINENO" "(__KCC_VERSION/100)%10" "_ax_cxx_compiler_version_minor" ""; then :
10321
10322 else
10323 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10324 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
10325 as_fn_error $? "_AX_COMPILER_VERSION_KAI unknown kay compiler minor version${as__std}
10326 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
10327 fi
10328
10329 if ac_fn_cxx_compute_int "$LINENO" "(__KCC_VERSION/1000)%10" "_ax_cxx_compiler_version_major" ""; then :
10330
10331 else
10332 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10333 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
10334 as_fn_error $? "_AX_COMPILER_VERSION_KAI unknown kay compiler major version${as__std}
10335 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
10336 fi
10337
10338 ax_cv_cxx_compiler_version="$_ax_cxx_compiler_version_major.$_ax_cxx_compiler_version_minor.$_ax_cxx_compiler_version_patch"
10339 ;; #(
10340 sgi) :
10341
10342
10343 if ac_fn_cxx_compute_int "$LINENO" "
10344 #if defined(_COMPILER_VERSION)
10345 _COMPILER_VERSION
10346 #else
10347 _SGI_COMPILER_VERSION
10348 #endif
10349 %10" "_ax_cxx_compiler_version_patch" ""; then :
10350
10351 else
10352 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10353 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
10354 as_fn_error $? "_AX_COMPILER_VERSION_SGI unknown SGI compiler patch version${as__std}
10355 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
10356 fi
10357
10358 if ac_fn_cxx_compute_int "$LINENO" "(
10359 #if defined(_COMPILER_VERSION)
10360 _COMPILER_VERSION
10361 #else
10362 _SGI_COMPILER_VERSION
10363 #endif
10364 /10)%10" "_ax_cxx_compiler_version_minor" ""; then :
10365
10366 else
10367 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10368 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
10369 as_fn_error $? "_AX_COMPILER_VERSION_SGI unknown SGI compiler minor version${as__std}
10370 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
10371 fi
10372
10373 if ac_fn_cxx_compute_int "$LINENO" "(
10374 #if defined(_COMPILER_VERSION)
10375 _COMPILER_VERSION
10376 #else
10377 _SGI_COMPILER_VERSION
10378 #endif
10379 /100)%10" "_ax_cxx_compiler_version_major" ""; then :
10380
10381 else
10382 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10383 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
10384 as_fn_error $? "_AX_COMPILER_VERSION_SGI unknown SGI compiler major version${as__std}
10385 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
10386 fi
10387
10388 ax_cv_cxx_compiler_version="$_ax_cxx_compiler_version_major.$_ax_cxx_compiler_version_minor.$_ax_cxx_compiler_version_patch"
10389 ;; #(
10390 microsoft) :
10391
10392 if ac_fn_cxx_compute_int "$LINENO" "_MSC_VER%100" "_ax_cxx_compiler_version_minor" ""; then :
10393
10394 else
10395 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10396 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
10397 as_fn_error $? "_AX_COMPILER_VERSION_MICROSOFT unknown microsoft compiler minor version${as__std}
10398 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
10399 fi
10400
10401 if ac_fn_cxx_compute_int "$LINENO" "(_MSC_VER/100)%100" "_ax_cxx_compiler_version_major" ""; then :
10402
10403 else
10404 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10405 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
10406 as_fn_error $? "_AX_COMPILER_VERSION_MICROSOFT unknown microsoft compiler major version${as__std}
10407 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
10408 fi
10409
10410 _ax_cxx_compiler_version_patch=0
10411 _ax_cxx_compiler_version_build=0
10412 # special case for version 6
10413 if test "X$_ax_cxx_compiler_version_major" = "X12"; then :
10414 if ac_fn_cxx_compute_int "$LINENO" "_MSC_FULL_VER%1000" "_ax_cxx_compiler_version_patch" ""; then :
10415
10416 else
10417 _ax_cxx_compiler_version_patch=0
10418 fi
10419
10420 fi
10421 # for version 7
10422 if test "X$_ax_cxx_compiler_version_major" = "X13"; then :
10423 if ac_fn_cxx_compute_int "$LINENO" "_MSC_FULL_VER%1000" "_ax_cxx_compiler_version_patch" ""; then :
10424
10425 else
10426 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10427 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
10428 as_fn_error $? "_AX_COMPILER_VERSION_MICROSOFT unknown microsoft compiler patch version${as__std}
10429 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
10430 fi
10431
10432
10433 fi
10434 # for version > 8
10435 if test $_ax_cxx_compiler_version_major -ge 14; then :
10436 if ac_fn_cxx_compute_int "$LINENO" "_MSC_FULL_VER%10000" "_ax_cxx_compiler_version_patch" ""; then :
10437
10438 else
10439 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10440 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
10441 as_fn_error $? "_AX_COMPILER_VERSION_MICROSOFT unknown microsoft compiler patch version${as__std}
10442 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
10443 fi
10444
10445
10446 fi
10447 if test $_ax_cxx_compiler_version_major -ge 15; then :
10448 if ac_fn_cxx_compute_int "$LINENO" "_MSC_BUILD" "_ax_cxx_compiler_version_build" ""; then :
10449
10450 else
10451 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10452 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
10453 as_fn_error $? "_AX_COMPILER_VERSION_MICROSOFT unknown microsoft compiler build version${as__std}
10454 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
10455 fi
10456
10457
10458 fi
10459 ax_cv_cxx_compiler_version="$_ax_cxx_compiler_version_major.$_ax_cxx_compiler_version_minor.$_ax_cxx_compiler_version_patch.$_ax_cxx_compiler_version_build"
10460 ;; #(
10461 metrowerks) :
10462 if ac_fn_cxx_compute_int "$LINENO" "__MWERKS__%0x100" "_ax_cxx_compiler_version_patch" ""; then :
10463
10464 else
10465 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10466 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
10467 as_fn_error $? "_AX_COMPILER_VERSION_METROWERKS unknown metrowerks compiler patch version${as__std}
10468 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
10469 fi
10470
10471 if ac_fn_cxx_compute_int "$LINENO" "(__MWERKS__/0x100)%0x10" "_ax_cxx_compiler_version_minor" ""; then :
10472
10473 else
10474 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10475 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
10476 as_fn_error $? "_AX_COMPILER_VERSION_METROWERKS unknown metrowerks compiler minor version${as__std}
10477 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
10478 fi
10479
10480 if ac_fn_cxx_compute_int "$LINENO" "(__MWERKS__/0x1000)%0x10" "_ax_cxx_compiler_version_major" ""; then :
10481
10482 else
10483 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10484 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
10485 as_fn_error $? "_AX_COMPILER_VERSION_METROWERKS unknown metrowerks compiler major version${as__std}
10486 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
10487 fi
10488
10489 ax_cv_cxx_compiler_version="$_ax_cxx_compiler_version_major.$_ax_cxx_compiler_version_minor.$_ax_cxx_compiler_version_patch"
10490 ;; #(
10491 watcom) :
10492 if ac_fn_cxx_compute_int "$LINENO" "__WATCOMC__%100" "_ax_cxx_compiler_version_minor" ""; then :
10493
10494 else
10495 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10496 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
10497 as_fn_error $? "_AX_COMPILER_VERSION_WATCOM unknown watcom compiler minor version${as__std}
10498 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
10499 fi
10500
10501 if ac_fn_cxx_compute_int "$LINENO" "(__WATCOMC__/100)%100" "_ax_cxx_compiler_version_major" ""; then :
10502
10503 else
10504 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10505 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
10506 as_fn_error $? "_AX_COMPILER_VERSION_WATCOM unknown watcom compiler major version${as__std}
10507 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
10508 fi
10509
10510 ax_cv_cxx_compiler_version="$_ax_cxx_compiler_version_major.$_ax_cxx_compiler_version_minor"
10511 ;; #(
10512 nvhpc) :
10513
10514 if ac_fn_cxx_compute_int "$LINENO" "__NVCOMPILER_MAJOR__" "_ax_cxx_compiler_version_major" ""; then :
10515
10516 else
10517 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10518 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
10519 as_fn_error $? "_AX_COMPILER_VERSION_NVHPC unknown nvhpc major${as__std}
10520 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
10521 fi
10522
10523 if ac_fn_cxx_compute_int "$LINENO" "__NVCOMPILER_MINOR__" "_ax_cxx_compiler_version_minor" ""; then :
10524
10525 else
10526 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10527 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
10528 as_fn_error $? "_AX_COMPILER_VERSION_NVHPC unknown nvhpc minor${as__std}
10529 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
10530 fi
10531
10532 if ac_fn_cxx_compute_int "$LINENO" "__NVCOMPILER_PATCHLEVEL__" "_ax_cxx_compiler_version_patch" ""; then :
10533
10534 else
10535 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10536 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
10537 as_fn_error $? "_AX_COMPILER_VERSION_NVHPC unknown nvhpc patch level${as__std}
10538 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
10539 fi
10540
10541 ax_cv_cxx_compiler_version="$_ax_cxx_compiler_version_major.$_ax_cxx_compiler_version_minor.$_ax_cxx_compiler_version_patch"
10542 ;; #(
10543 portland) :
10544
10545 if ac_fn_cxx_compute_int "$LINENO" "__PGIC__" "_ax_cxx_compiler_version_major" ""; then :
10546
10547 else
10548 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10549 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
10550 as_fn_error $? "_AX_COMPILER_VERSION_PORTLAND unknown pgi major${as__std}
10551 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
10552 fi
10553
10554 if ac_fn_cxx_compute_int "$LINENO" "__PGIC_MINOR__" "_ax_cxx_compiler_version_minor" ""; then :
10555
10556 else
10557 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10558 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
10559 as_fn_error $? "_AX_COMPILER_VERSION_PORTLAND unknown pgi minor${as__std}
10560 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
10561 fi
10562
10563 if ac_fn_cxx_compute_int "$LINENO" "__PGIC_PATCHLEVEL__" "_ax_cxx_compiler_version_patch" ""; then :
10564
10565 else
10566 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10567 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
10568 as_fn_error $? "_AX_COMPILER_VERSION_PORTLAND unknown pgi patch level${as__std}
10569 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
10570 fi
10571
10572 ax_cv_cxx_compiler_version="$_ax_cxx_compiler_version_major.$_ax_cxx_compiler_version_minor.$_ax_cxx_compiler_version_patch"
10573 ;; #(
10574 tcc) :
10575
10576 ax_cv_cxx_compiler_version=`tcc -v | $SED 's/^[ ]*tcc[ ]\+version[ ]\+\([0-9.]\+\).*/\1/g'`
10577 ;; #(
10578 sdcc) :
10579
10580 if ac_fn_cxx_compute_int "$LINENO" "/* avoid parse error with comments */
10581 #if(defined(__SDCC_VERSION_MAJOR))
10582 __SDCC_VERSION_MAJOR
10583 #else
10584 SDCC/100
10585 #endif
10586 " "_ax_cxx_compiler_version_major" ""; then :
10587
10588 else
10589 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10590 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
10591 as_fn_error $? "_AX_COMPILER_VERSION_SDCC unknown sdcc major${as__std}
10592 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
10593 fi
10594
10595 if ac_fn_cxx_compute_int "$LINENO" "/* avoid parse error with comments */
10596 #if(defined(__SDCC_VERSION_MINOR))
10597 __SDCC_VERSION_MINOR
10598 #else
10599 (SDCC%100)/10
10600 #endif
10601 " "_ax_cxx_compiler_version_minor" ""; then :
10602
10603 else
10604 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10605 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
10606 as_fn_error $? "_AX_COMPILER_VERSION_SDCC unknown sdcc minor${as__std}
10607 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
10608 fi
10609
10610 if ac_fn_cxx_compute_int "$LINENO" "
10611 /* avoid parse error with comments */
10612 #if(defined(__SDCC_VERSION_PATCH))
10613 __SDCC_VERSION_PATCH
10614 #elsif(defined(_SDCC_VERSION_PATCHLEVEL))
10615 __SDCC_VERSION_PATCHLEVEL
10616 #else
10617 SDCC%10
10618 #endif
10619 " "_ax_cxx_compiler_version_patch" ""; then :
10620
10621 else
10622 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10623 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
10624 as_fn_error $? "_AX_COMPILER_VERSION_SDCC unknown sdcc patch level${as__std}
10625 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
10626 fi
10627
10628 ax_cv_cxx_compiler_version="$_ax_cxx_compiler_version_major.$_ax_cxx_compiler_version_minor.$_ax_cxx_compiler_version_patch"
10629 ;; #(
10630 *) :
10631 ax_cv_cxx_compiler_version="" ;;
10632 esac
10633
10634 fi
10635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compiler_version" >&5
10636 case "$ax_cv_cxx_compiler_version" in #(
10637 yes|ok|yes[\ ,]*) :
10638 $as_echo "${as__grn}$ax_cv_cxx_compiler_version${as__std}" >&6 ;; #(
10639 no|failed|unsupported|no[\ ,]*) :
10640 $as_echo "${as__red}$ax_cv_cxx_compiler_version${as__std}" >&6 ;; #(
10641 *) :
10642 $as_echo "${as__blu}$ax_cv_cxx_compiler_version${as__std}" >&6 ;;
10643 esac; }
10644
10645
10646 if test x${ax_cv_cxx_compiler_vendor%/*} = xcray; then :
10647
10648 CXX="$CXX -hnoomp"
10649
10650 fi
10651
10652 fi
10653
10654 ac_ext=c
10655 ac_cpp='$CPP $CPPFLAGS'
10656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10659
10660
10661 fi
10662
10663
10664
10665 ac_ext=${ac_fc_srcext-f}
10666 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
10667 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
10668 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
10669 if test -n "$ac_tool_prefix"; then
10670 for ac_prog in gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor xlf90 f90 pgf90 pghpf epcf90 g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77
10671 do
10672 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10673 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10675 $as_echo_n "checking for $ac_word... " >&6; }
10676 if ${ac_cv_prog_FC+:} false; then :
10677 $as_echo_n "(cached) " >&6
10678 else
10679 if test -n "$FC"; then
10680 ac_cv_prog_FC="$FC" # Let the user override the test.
10681 else
10682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10683 for as_dir in $PATH
10684 do
10685 IFS=$as_save_IFS
10686 test -z "$as_dir" && as_dir=.
10687 for ac_exec_ext in '' $ac_executable_extensions; do
10688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10689 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
10690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10691 break 2
10692 fi
10693 done
10694 done
10695 IFS=$as_save_IFS
10696
10697 fi
10698 fi
10699 FC=$ac_cv_prog_FC
10700 if test -n "$FC"; then
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
10702 case "$FC" in #(
10703 yes|ok|yes[\ ,]*) :
10704 $as_echo "${as__grn}$FC${as__std}" >&6 ;; #(
10705 no|failed|unsupported|no[\ ,]*) :
10706 $as_echo "${as__red}$FC${as__std}" >&6 ;; #(
10707 *) :
10708 $as_echo "${as__blu}$FC${as__std}" >&6 ;;
10709 esac; }
10710 else
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10712 $as_echo "${as__red}no${as__std}" >&6; }
10713 fi
10714
10715
10716 test -n "$FC" && break
10717 done
10718 fi
10719 if test -z "$FC"; then
10720 ac_ct_FC=$FC
10721 for ac_prog in gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor xlf90 f90 pgf90 pghpf epcf90 g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77
10722 do
10723 # Extract the first word of "$ac_prog", so it can be a program name with args.
10724 set dummy $ac_prog; ac_word=$2
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10726 $as_echo_n "checking for $ac_word... " >&6; }
10727 if ${ac_cv_prog_ac_ct_FC+:} false; then :
10728 $as_echo_n "(cached) " >&6
10729 else
10730 if test -n "$ac_ct_FC"; then
10731 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
10732 else
10733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10734 for as_dir in $PATH
10735 do
10736 IFS=$as_save_IFS
10737 test -z "$as_dir" && as_dir=.
10738 for ac_exec_ext in '' $ac_executable_extensions; do
10739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10740 ac_cv_prog_ac_ct_FC="$ac_prog"
10741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10742 break 2
10743 fi
10744 done
10745 done
10746 IFS=$as_save_IFS
10747
10748 fi
10749 fi
10750 ac_ct_FC=$ac_cv_prog_ac_ct_FC
10751 if test -n "$ac_ct_FC"; then
10752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
10753 case "$ac_ct_FC" in #(
10754 yes|ok|yes[\ ,]*) :
10755 $as_echo "${as__grn}$ac_ct_FC${as__std}" >&6 ;; #(
10756 no|failed|unsupported|no[\ ,]*) :
10757 $as_echo "${as__red}$ac_ct_FC${as__std}" >&6 ;; #(
10758 *) :
10759 $as_echo "${as__blu}$ac_ct_FC${as__std}" >&6 ;;
10760 esac; }
10761 else
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10763 $as_echo "${as__red}no${as__std}" >&6; }
10764 fi
10765
10766
10767 test -n "$ac_ct_FC" && break
10768 done
10769
10770 if test "x$ac_ct_FC" = x; then
10771 FC=""
10772 else
10773 case $cross_compiling:$ac_tool_warned in
10774 yes:)
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10776 $as_echo "$as_me: ${as__yel}WARNING: using cross tools not prefixed with host triplet${as__std}" >&2;}
10777 ac_tool_warned=yes ;;
10778 esac
10779 FC=$ac_ct_FC
10780 fi
10781 fi
10782
10783
10784 # Provide some information about the compiler.
10785 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
10786 set X $ac_compile
10787 ac_compiler=$2
10788 for ac_option in --version -v -V -qversion; do
10789 { { ac_try="$ac_compiler $ac_option >&5"
10790 case "(($ac_try" in
10791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10792 *) ac_try_echo=$ac_try;;
10793 esac
10794 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10795 $as_echo "$ac_try_echo"; } >&5
10796 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
10797 ac_status=$?
10798 if test -s conftest.err; then
10799 sed '10a\
10800 ... rest of stderr output deleted ...
10801 10q' conftest.err >conftest.er1
10802 cat conftest.er1 >&5
10803 fi
10804 rm -f conftest.er1 conftest.err
10805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10806 test $ac_status = 0; }
10807 done
10808 rm -f a.out
10809
10810 # If we don't use `.F' as extension, the preprocessor is not run on the
10811 # input file. (Note that this only needs to work for GNU compilers.)
10812 ac_save_ext=$ac_ext
10813 ac_ext=F
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
10815 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
10816 if ${ac_cv_fc_compiler_gnu+:} false; then :
10817 $as_echo_n "(cached) " >&6
10818 else
10819 cat > conftest.$ac_ext <<_ACEOF
10820 program main
10821 #ifndef __GNUC__
10822 choke me
10823 #endif
10824
10825 end
10826 _ACEOF
10827 if ac_fn_fc_try_compile "$LINENO"; then :
10828 ac_compiler_gnu=yes
10829 else
10830 ac_compiler_gnu=no
10831 fi
10832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10833 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
10834
10835 fi
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
10837 case "$ac_cv_fc_compiler_gnu" in #(
10838 yes|ok|yes[\ ,]*) :
10839 $as_echo "${as__grn}$ac_cv_fc_compiler_gnu${as__std}" >&6 ;; #(
10840 no|failed|unsupported|no[\ ,]*) :
10841 $as_echo "${as__red}$ac_cv_fc_compiler_gnu${as__std}" >&6 ;; #(
10842 *) :
10843 $as_echo "${as__blu}$ac_cv_fc_compiler_gnu${as__std}" >&6 ;;
10844 esac; }
10845 ac_ext=$ac_save_ext
10846 ac_test_FCFLAGS=${FCFLAGS+set}
10847 ac_save_FCFLAGS=$FCFLAGS
10848 FCFLAGS=
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
10850 $as_echo_n "checking whether $FC accepts -g... " >&6; }
10851 if ${ac_cv_prog_fc_g+:} false; then :
10852 $as_echo_n "(cached) " >&6
10853 else
10854 FCFLAGS=-g
10855 cat > conftest.$ac_ext <<_ACEOF
10856 program main
10857
10858 end
10859 _ACEOF
10860 if ac_fn_fc_try_compile "$LINENO"; then :
10861 ac_cv_prog_fc_g=yes
10862 else
10863 ac_cv_prog_fc_g=no
10864 fi
10865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10866
10867 fi
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
10869 case "$ac_cv_prog_fc_g" in #(
10870 yes|ok|yes[\ ,]*) :
10871 $as_echo "${as__grn}$ac_cv_prog_fc_g${as__std}" >&6 ;; #(
10872 no|failed|unsupported|no[\ ,]*) :
10873 $as_echo "${as__red}$ac_cv_prog_fc_g${as__std}" >&6 ;; #(
10874 *) :
10875 $as_echo "${as__blu}$ac_cv_prog_fc_g${as__std}" >&6 ;;
10876 esac; }
10877 if test "$ac_test_FCFLAGS" = set; then
10878 FCFLAGS=$ac_save_FCFLAGS
10879 elif test $ac_cv_prog_fc_g = yes; then
10880 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
10881 FCFLAGS="-g -O2"
10882 else
10883 FCFLAGS="-g"
10884 fi
10885 else
10886 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
10887 FCFLAGS="-O2"
10888 else
10889 FCFLAGS=
10890 fi
10891 fi
10892
10893 if test $ac_compiler_gnu = yes; then
10894 GFC=yes
10895 else
10896 GFC=
10897 fi
10898 ac_ext=c
10899 ac_cpp='$CPP $CPPFLAGS'
10900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10903
10904
10905
10906
10907
10908
10909
10910 afs_prog_fc_required=false
10911
10912 { _afs_prog_fc_std=; unset _afs_prog_fc_std;}
10913
10914 if test "x$FC" = x; then :
10915
10916 if test x$afs_prog_fc_required = xtrue; then :
10917
10918 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10919 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
10920 as_fn_error $? "no acceptable Fortran compiler found in \$PATH${as__std}
10921 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
10922
10923 fi
10924 FC=no
10925 if ${afs_cv_prog_fc_works+:} false; then :
10926 $as_echo_n "(cached) " >&6
10927 else
10928 afs_cv_prog_fc_works=no
10929 fi
10930
10931
10932 else
10933
10934 ac_ext=${ac_fc_srcext-f}
10935 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
10936 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
10937 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
10938
10939
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Fortran compiler works" >&5
10941 $as_echo_n "checking whether the Fortran compiler works... " >&6; }
10942 if ${afs_cv_prog_fc_works+:} false; then :
10943 $as_echo_n "(cached) " >&6
10944 else
10945 cat > conftest.$ac_ext <<_ACEOF
10946 program main
10947
10948 end
10949 _ACEOF
10950 if ac_fn_fc_try_link "$LINENO"; then :
10951 afs_cv_prog_fc_works=yes
10952 else
10953 afs_cv_prog_fc_works=no
10954 fi
10955 rm -f core conftest.err conftest.$ac_objext \
10956 conftest$ac_exeext conftest.$ac_ext
10957 fi
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $afs_cv_prog_fc_works" >&5
10959 case "$afs_cv_prog_fc_works" in #(
10960 yes|ok|yes[\ ,]*) :
10961 $as_echo "${as__grn}$afs_cv_prog_fc_works${as__std}" >&6 ;; #(
10962 no|failed|unsupported|no[\ ,]*) :
10963 $as_echo "${as__red}$afs_cv_prog_fc_works${as__std}" >&6 ;; #(
10964 *) :
10965 $as_echo "${as__blu}$afs_cv_prog_fc_works${as__std}" >&6 ;;
10966 esac; }
10967 if test x$afs_cv_prog_fc_works = xno; then :
10968
10969 if test x$afs_prog_fc_required = xtrue; then :
10970
10971 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10972 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
10973 as_fn_error $? "Fortran compiler cannot create executables${as__std}
10974 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
10975
10976 fi
10977 FC=no
10978
10979 else
10980
10981 ac_ext=${ac_fc_srcext-f}
10982 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
10983 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
10984 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran flag to compile preprocessed .F files" >&5
10986 $as_echo_n "checking for Fortran flag to compile preprocessed .F files... " >&6; }
10987 if ${ac_cv_fc_pp_srcext_F+:} false; then :
10988 $as_echo_n "(cached) " >&6
10989 else
10990 ac_ext=F
10991 ac_fcflags_pp_srcext_save=$ac_fcflags_srcext
10992 ac_fcflags_srcext=
10993 ac_cv_fc_pp_srcext_F=unknown
10994 case $ac_ext in #(
10995 [fF]77) ac_try=f77-cpp-input;; #(
10996 *) ac_try=f95-cpp-input;;
10997 esac
10998 for ac_flag in none -ftpp -fpp -Tf "-fpp -Tf" -xpp=fpp -Mpreprocess "-e Z" \
10999 -cpp -xpp=cpp -qsuffix=cpp=F "-x $ac_try" +cpp -Cpp; do
11000 test "x$ac_flag" != xnone && ac_fcflags_srcext="$ac_flag"
11001 cat > conftest.$ac_ext <<_ACEOF
11002 program main
11003
11004 #if 0
11005 #include <ac_nonexistent.h>
11006 choke me
11007 #endif
11008 end
11009 _ACEOF
11010 if ac_fn_fc_try_compile "$LINENO"; then :
11011 cat > conftest.$ac_ext <<_ACEOF
11012 program main
11013
11014 #if 1
11015 #include <ac_nonexistent.h>
11016 choke me
11017 #endif
11018 end
11019 _ACEOF
11020 if ac_fn_fc_try_compile "$LINENO"; then :
11021
11022 else
11023 ac_cv_fc_pp_srcext_F=$ac_flag; break
11024 fi
11025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11026 fi
11027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11028 done
11029 rm -f conftest.$ac_objext conftest.F
11030 ac_fcflags_srcext=$ac_fcflags_pp_srcext_save
11031
11032 fi
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_pp_srcext_F" >&5
11034 case "$ac_cv_fc_pp_srcext_F" in #(
11035 yes|ok|yes[\ ,]*) :
11036 $as_echo "${as__grn}$ac_cv_fc_pp_srcext_F${as__std}" >&6 ;; #(
11037 no|failed|unsupported|no[\ ,]*) :
11038 $as_echo "${as__red}$ac_cv_fc_pp_srcext_F${as__std}" >&6 ;; #(
11039 *) :
11040 $as_echo "${as__blu}$ac_cv_fc_pp_srcext_F${as__std}" >&6 ;;
11041 esac; }
11042 if test "x$ac_cv_fc_pp_srcext_F" = xunknown; then
11043 as_fn_error $? "Fortran could not compile preprocessed .F files" "$LINENO" 5
11044 else
11045 ac_fc_srcext=F
11046 if test "x$ac_cv_fc_pp_srcext_F" = xnone; then
11047 ac_fcflags_srcext=""
11048 FCFLAGS_F=""
11049 else
11050 ac_fcflags_srcext=$ac_cv_fc_pp_srcext_F
11051 FCFLAGS_F=$ac_cv_fc_pp_srcext_F
11052 fi
11053
11054
11055 fi
11056 ac_ext=${ac_fc_srcext-f}
11057 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11058 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
11059 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11060
11061
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler vendor" >&5
11063 $as_echo_n "checking for Fortran compiler vendor... " >&6; }
11064 if ${ax_cv_fc_compiler_vendor+:} false; then :
11065 $as_echo_n "(cached) " >&6
11066 else
11067
11068 vendors="
11069 intel: __ICC,__ECC,__INTEL_COMPILER,__INTEL_LLVM_COMPILER
11070 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__,__ibmxl__clang__,__ibmxl__
11071 pathscale: __PATHCC__,__PATHSCALE__
11072 clang: __clang__
11073 cray: _CRAYC,_CRAYFTN
11074 fujitsu: __FUJITSU
11075 sdcc: SDCC,__SDCC
11076 sx: _SX
11077 nvhpc: __NVCOMPILER
11078 portland: __PGI
11079 flang: __flang__,__PGLLVM__
11080 gnu: __GNUC__
11081 sun: __SUNPRO_C,__SUNPRO_CC,__SUNPRO_F90,__SUNPRO_F95
11082 hp: __HP_cc,__HP_aCC
11083 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
11084 borland: __BORLANDC__,__CODEGEARC__,__TURBOC__
11085 comeau: __COMO__
11086 kai: __KCC
11087 lcc: __LCC__
11088 sgi: __sgi,sgi
11089 microsoft: _MSC_VER
11090 metrowerks: __MWERKS__
11091 watcom: __WATCOMC__
11092 tcc: __TINYC__
11093 unknown: UNKNOWN
11094 "
11095 for ventest in $vendors; do
11096 case $ventest in #(
11097 *:)
11098 vendor=${ventest%:*}
11099 continue
11100 ;; #(
11101 *)
11102 vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")"
11103 ;;
11104 esac
11105
11106 cat > conftest.$ac_ext <<_ACEOF
11107 program main
11108
11109 #if !($vencpp)
11110 thisisanerror;
11111 #endif
11112
11113 end
11114 _ACEOF
11115 if ac_fn_fc_try_compile "$LINENO"; then :
11116 break
11117 fi
11118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11119 done
11120
11121 ax_cv_fc_compiler_vendor=$vendor
11122
11123 flang_variants="classic: __PGLLVM__"
11124 portland_variants="llvm: __PGLLVM__"
11125 intel_variants="oneapi: __INTEL_LLVM_COMPILER"
11126 eval variants=\"\$${ax_cv_fc_compiler_vendor}_variants : NONE\"
11127 for vartest in $variants; do
11128 case $vartest in #(
11129 *:)
11130 variant=${vartest%:*};
11131 continue
11132 ;; #(
11133 *)
11134 varcpp="defined("`echo $vartest | sed 's/,/) && defined(/g'`")"
11135 ;;
11136 esac
11137 cat > conftest.$ac_ext <<_ACEOF
11138 program main
11139
11140 #if !($varcpp)
11141 thisisanerror;
11142 #endif
11143
11144 end
11145 _ACEOF
11146 if ac_fn_fc_try_compile "$LINENO"; then :
11147 break
11148 fi
11149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11150 done
11151 as_fn_append ax_cv_fc_compiler_vendor ${variant:+/$variant}
11152
11153 fi
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_fc_compiler_vendor" >&5
11155 case "$ax_cv_fc_compiler_vendor" in #(
11156 yes|ok|yes[\ ,]*) :
11157 $as_echo "${as__grn}$ax_cv_fc_compiler_vendor${as__std}" >&6 ;; #(
11158 no|failed|unsupported|no[\ ,]*) :
11159 $as_echo "${as__red}$ax_cv_fc_compiler_vendor${as__std}" >&6 ;; #(
11160 *) :
11161 $as_echo "${as__blu}$ax_cv_fc_compiler_vendor${as__std}" >&6 ;;
11162 esac; }
11163
11164 { ax_cv_fc_compiler_version=; unset ax_cv_fc_compiler_version;}
11165
11166 if test x${ax_cv_fc_compiler_vendor%/*} = xcray; then :
11167
11168 FC="$FC -hnoomp"
11169
11170 fi
11171
11172 fi
11173
11174 ac_ext=c
11175 ac_cpp='$CPP $CPPFLAGS'
11176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11179
11180
11181 fi
11182
11183
11184 scorep_have_fc="no"
11185
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the fortran compiler ${FC} works" >&5
11187 $as_echo_n "checking whether the fortran compiler ${FC} works... " >&6; }
11188 ac_ext=${ac_fc_srcext-f}
11189 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11190 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
11191 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11192
11193 cat > conftest.$ac_ext <<_ACEOF
11194
11195 program main
11196 implicit none
11197 integer tid
11198 end
11199
11200 _ACEOF
11201 if ac_fn_fc_try_link "$LINENO"; then :
11202 scorep_have_fc="yes"
11203 fi
11204 rm -f core conftest.err conftest.$ac_objext \
11205 conftest$ac_exeext conftest.$ac_ext
11206 ac_ext=c
11207 ac_cpp='$CPP $CPPFLAGS'
11208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11211
11212 if test "x${scorep_have_fc}" == "xyes"; then
11213 SCOREP_HAVE_FC_TRUE=
11214 SCOREP_HAVE_FC_FALSE='#'
11215 else
11216 SCOREP_HAVE_FC_TRUE='#'
11217 SCOREP_HAVE_FC_FALSE=
11218 fi
11219
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${scorep_have_fc}" >&5
11221 case "${scorep_have_fc}" in #(
11222 yes|ok|yes[\ ,]*) :
11223 $as_echo "${as__grn}${scorep_have_fc}${as__std}" >&6 ;; #(
11224 no|failed|unsupported|no[\ ,]*) :
11225 $as_echo "${as__red}${scorep_have_fc}${as__std}" >&6 ;; #(
11226 *) :
11227 $as_echo "${as__blu}${scorep_have_fc}${as__std}" >&6 ;;
11228 esac; }
11229
11230
11231
11232 ac_ext=f
11233 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
11234 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11235 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
11236 if test -n "$ac_tool_prefix"; then
11237 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor
11238 do
11239 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11240 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11242 $as_echo_n "checking for $ac_word... " >&6; }
11243 if ${ac_cv_prog_F77+:} false; then :
11244 $as_echo_n "(cached) " >&6
11245 else
11246 if test -n "$F77"; then
11247 ac_cv_prog_F77="$F77" # Let the user override the test.
11248 else
11249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11250 for as_dir in $PATH
11251 do
11252 IFS=$as_save_IFS
11253 test -z "$as_dir" && as_dir=.
11254 for ac_exec_ext in '' $ac_executable_extensions; do
11255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11256 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
11257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11258 break 2
11259 fi
11260 done
11261 done
11262 IFS=$as_save_IFS
11263
11264 fi
11265 fi
11266 F77=$ac_cv_prog_F77
11267 if test -n "$F77"; then
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
11269 case "$F77" in #(
11270 yes|ok|yes[\ ,]*) :
11271 $as_echo "${as__grn}$F77${as__std}" >&6 ;; #(
11272 no|failed|unsupported|no[\ ,]*) :
11273 $as_echo "${as__red}$F77${as__std}" >&6 ;; #(
11274 *) :
11275 $as_echo "${as__blu}$F77${as__std}" >&6 ;;
11276 esac; }
11277 else
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11279 $as_echo "${as__red}no${as__std}" >&6; }
11280 fi
11281
11282
11283 test -n "$F77" && break
11284 done
11285 fi
11286 if test -z "$F77"; then
11287 ac_ct_F77=$F77
11288 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor
11289 do
11290 # Extract the first word of "$ac_prog", so it can be a program name with args.
11291 set dummy $ac_prog; ac_word=$2
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11293 $as_echo_n "checking for $ac_word... " >&6; }
11294 if ${ac_cv_prog_ac_ct_F77+:} false; then :
11295 $as_echo_n "(cached) " >&6
11296 else
11297 if test -n "$ac_ct_F77"; then
11298 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
11299 else
11300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11301 for as_dir in $PATH
11302 do
11303 IFS=$as_save_IFS
11304 test -z "$as_dir" && as_dir=.
11305 for ac_exec_ext in '' $ac_executable_extensions; do
11306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11307 ac_cv_prog_ac_ct_F77="$ac_prog"
11308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11309 break 2
11310 fi
11311 done
11312 done
11313 IFS=$as_save_IFS
11314
11315 fi
11316 fi
11317 ac_ct_F77=$ac_cv_prog_ac_ct_F77
11318 if test -n "$ac_ct_F77"; then
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
11320 case "$ac_ct_F77" in #(
11321 yes|ok|yes[\ ,]*) :
11322 $as_echo "${as__grn}$ac_ct_F77${as__std}" >&6 ;; #(
11323 no|failed|unsupported|no[\ ,]*) :
11324 $as_echo "${as__red}$ac_ct_F77${as__std}" >&6 ;; #(
11325 *) :
11326 $as_echo "${as__blu}$ac_ct_F77${as__std}" >&6 ;;
11327 esac; }
11328 else
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11330 $as_echo "${as__red}no${as__std}" >&6; }
11331 fi
11332
11333
11334 test -n "$ac_ct_F77" && break
11335 done
11336
11337 if test "x$ac_ct_F77" = x; then
11338 F77=""
11339 else
11340 case $cross_compiling:$ac_tool_warned in
11341 yes:)
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11343 $as_echo "$as_me: ${as__yel}WARNING: using cross tools not prefixed with host triplet${as__std}" >&2;}
11344 ac_tool_warned=yes ;;
11345 esac
11346 F77=$ac_ct_F77
11347 fi
11348 fi
11349
11350
11351 # Provide some information about the compiler.
11352 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
11353 set X $ac_compile
11354 ac_compiler=$2
11355 for ac_option in --version -v -V -qversion; do
11356 { { ac_try="$ac_compiler $ac_option >&5"
11357 case "(($ac_try" in
11358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11359 *) ac_try_echo=$ac_try;;
11360 esac
11361 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11362 $as_echo "$ac_try_echo"; } >&5
11363 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11364 ac_status=$?
11365 if test -s conftest.err; then
11366 sed '10a\
11367 ... rest of stderr output deleted ...
11368 10q' conftest.err >conftest.er1
11369 cat conftest.er1 >&5
11370 fi
11371 rm -f conftest.er1 conftest.err
11372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11373 test $ac_status = 0; }
11374 done
11375 rm -f a.out
11376
11377 # If we don't use `.F' as extension, the preprocessor is not run on the
11378 # input file. (Note that this only needs to work for GNU compilers.)
11379 ac_save_ext=$ac_ext
11380 ac_ext=F
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
11382 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
11383 if ${ac_cv_f77_compiler_gnu+:} false; then :
11384 $as_echo_n "(cached) " >&6
11385 else
11386 cat > conftest.$ac_ext <<_ACEOF
11387 program main
11388 #ifndef __GNUC__
11389 choke me
11390 #endif
11391
11392 end
11393 _ACEOF
11394 if ac_fn_f77_try_compile "$LINENO"; then :
11395 ac_compiler_gnu=yes
11396 else
11397 ac_compiler_gnu=no
11398 fi
11399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11400 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
11401
11402 fi
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
11404 case "$ac_cv_f77_compiler_gnu" in #(
11405 yes|ok|yes[\ ,]*) :
11406 $as_echo "${as__grn}$ac_cv_f77_compiler_gnu${as__std}" >&6 ;; #(
11407 no|failed|unsupported|no[\ ,]*) :
11408 $as_echo "${as__red}$ac_cv_f77_compiler_gnu${as__std}" >&6 ;; #(
11409 *) :
11410 $as_echo "${as__blu}$ac_cv_f77_compiler_gnu${as__std}" >&6 ;;
11411 esac; }
11412 ac_ext=$ac_save_ext
11413 ac_test_FFLAGS=${FFLAGS+set}
11414 ac_save_FFLAGS=$FFLAGS
11415 FFLAGS=
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
11417 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
11418 if ${ac_cv_prog_f77_g+:} false; then :
11419 $as_echo_n "(cached) " >&6
11420 else
11421 FFLAGS=-g
11422 cat > conftest.$ac_ext <<_ACEOF
11423 program main
11424
11425 end
11426 _ACEOF
11427 if ac_fn_f77_try_compile "$LINENO"; then :
11428 ac_cv_prog_f77_g=yes
11429 else
11430 ac_cv_prog_f77_g=no
11431 fi
11432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11433
11434 fi
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
11436 case "$ac_cv_prog_f77_g" in #(
11437 yes|ok|yes[\ ,]*) :
11438 $as_echo "${as__grn}$ac_cv_prog_f77_g${as__std}" >&6 ;; #(
11439 no|failed|unsupported|no[\ ,]*) :
11440 $as_echo "${as__red}$ac_cv_prog_f77_g${as__std}" >&6 ;; #(
11441 *) :
11442 $as_echo "${as__blu}$ac_cv_prog_f77_g${as__std}" >&6 ;;
11443 esac; }
11444 if test "$ac_test_FFLAGS" = set; then
11445 FFLAGS=$ac_save_FFLAGS
11446 elif test $ac_cv_prog_f77_g = yes; then
11447 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
11448 FFLAGS="-g -O2"
11449 else
11450 FFLAGS="-g"
11451 fi
11452 else
11453 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
11454 FFLAGS="-O2"
11455 else
11456 FFLAGS=
11457 fi
11458 fi
11459
11460 if test $ac_compiler_gnu = yes; then
11461 G77=yes
11462 else
11463 G77=
11464 fi
11465 ac_ext=c
11466 ac_cpp='$CPP $CPPFLAGS'
11467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11470
11471
11472
11473
11474
11475
11476
11477 afs_prog_f77_required=false
11478
11479 { _afs_prog_f77_std=; unset _afs_prog_f77_std;}
11480
11481 if test "x$F77" = x; then :
11482
11483 if test x$afs_prog_f77_required = xtrue; then :
11484
11485 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11486 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
11487 as_fn_error $? "no acceptable Fortran 77 compiler found in \$PATH${as__std}
11488 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
11489
11490 fi
11491 F77=no
11492 if ${afs_cv_prog_f77_works+:} false; then :
11493 $as_echo_n "(cached) " >&6
11494 else
11495 afs_cv_prog_f77_works=no
11496 fi
11497
11498
11499 else
11500
11501 ac_ext=f
11502 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
11503 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11504 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
11505
11506
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Fortran 77 compiler works" >&5
11508 $as_echo_n "checking whether the Fortran 77 compiler works... " >&6; }
11509 if ${afs_cv_prog_f77_works+:} false; then :
11510 $as_echo_n "(cached) " >&6
11511 else
11512 cat > conftest.$ac_ext <<_ACEOF
11513 program main
11514
11515 end
11516 _ACEOF
11517 if ac_fn_f77_try_link "$LINENO"; then :
11518 afs_cv_prog_f77_works=yes
11519 else
11520 afs_cv_prog_f77_works=no
11521 fi
11522 rm -f core conftest.err conftest.$ac_objext \
11523 conftest$ac_exeext conftest.$ac_ext
11524 fi
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $afs_cv_prog_f77_works" >&5
11526 case "$afs_cv_prog_f77_works" in #(
11527 yes|ok|yes[\ ,]*) :
11528 $as_echo "${as__grn}$afs_cv_prog_f77_works${as__std}" >&6 ;; #(
11529 no|failed|unsupported|no[\ ,]*) :
11530 $as_echo "${as__red}$afs_cv_prog_f77_works${as__std}" >&6 ;; #(
11531 *) :
11532 $as_echo "${as__blu}$afs_cv_prog_f77_works${as__std}" >&6 ;;
11533 esac; }
11534 if test x$afs_cv_prog_f77_works = xno; then :
11535
11536 if test x$afs_prog_f77_required = xtrue; then :
11537
11538 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11539 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
11540 as_fn_error $? "Fortran 77 compiler cannot create executables${as__std}
11541 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
11542
11543 fi
11544 F77=no
11545
11546 else
11547
11548 { ax_cv_f77_compiler_vendor=; unset ax_cv_f77_compiler_vendor;}
11549 { ax_cv_f77_compiler_version=; unset ax_cv_f77_compiler_version;}
11550
11551 if test "x$ax_cv_fc_compiler_vendor" = x || \
11552 test "x$ax_cv_fc_compiler_vendor" = xunknown; then :
11553
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: F77 setting cannot be based on FC vendor. F77 setting might be incorrect." >&5
11555 $as_echo "$as_me: ${as__yel}WARNING: F77 setting cannot be based on FC vendor. F77 setting might be incorrect.${as__std}" >&2;}
11556
11557 else
11558
11559 if test x${ax_cv_fc_compiler_vendor%/*} = xcray; then :
11560
11561 F77="$F77 -hnoomp"
11562
11563 fi
11564
11565 fi
11566
11567 fi
11568
11569 ac_ext=c
11570 ac_cpp='$CPP $CPPFLAGS'
11571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11574
11575
11576 fi
11577
11578
11579 scorep_have_f77="no"
11580
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the fortran 77 compiler ${F77} works" >&5
11582 $as_echo_n "checking whether the fortran 77 compiler ${F77} works... " >&6; }
11583 ac_ext=f
11584 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
11585 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11586 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
11587
11588 cat > conftest.$ac_ext <<_ACEOF
11589
11590 program main
11591 implicit none
11592 integer tid
11593 end
11594
11595 _ACEOF
11596 if ac_fn_f77_try_link "$LINENO"; then :
11597 scorep_have_f77="yes"
11598 fi
11599 rm -f core conftest.err conftest.$ac_objext \
11600 conftest$ac_exeext conftest.$ac_ext
11601 ac_ext=c
11602 ac_cpp='$CPP $CPPFLAGS'
11603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11606
11607 if test "x${scorep_have_f77}" == "xyes"; then
11608 SCOREP_HAVE_F77_TRUE=
11609 SCOREP_HAVE_F77_FALSE='#'
11610 else
11611 SCOREP_HAVE_F77_TRUE='#'
11612 SCOREP_HAVE_F77_FALSE=
11613 fi
11614
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${scorep_have_f77}" >&5
11616 case "${scorep_have_f77}" in #(
11617 yes|ok|yes[\ ,]*) :
11618 $as_echo "${as__grn}${scorep_have_f77}${as__std}" >&6 ;; #(
11619 no|failed|unsupported|no[\ ,]*) :
11620 $as_echo "${as__red}${scorep_have_f77}${as__std}" >&6 ;; #(
11621 *) :
11622 $as_echo "${as__blu}${scorep_have_f77}${as__std}" >&6 ;;
11623 esac; }
11624
11625
11626 ac_ext=c
11627 ac_cpp='$CPP $CPPFLAGS'
11628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11631
11632
11633 OPENMP_CFLAGS=
11634 # Check whether --enable-openmp was given.
11635 if test "${enable_openmp+set}" = set; then :
11636 enableval=$enable_openmp;
11637 fi
11638
11639 if test "$enable_openmp" != no; then
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
11641 $as_echo_n "checking for $CC option to support OpenMP... " >&6; }
11642 if ${ac_cv_prog_c_openmp+:} false; then :
11643 $as_echo_n "(cached) " >&6
11644 else
11645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11646 /* end confdefs.h. */
11647
11648 #ifndef _OPENMP
11649 choke me
11650 #endif
11651 #include <omp.h>
11652 int main () { return omp_get_num_threads (); }
11653
11654 _ACEOF
11655 if ac_fn_c_try_link "$LINENO"; then :
11656 ac_cv_prog_c_openmp='none needed'
11657 else
11658 ac_cv_prog_c_openmp='unsupported'
11659 for ac_option in -fopenmp -xopenmp -qopenmp -openmp -mp -omp -qsmp=omp -homp \
11660 -Popenmp --openmp -Kopenmp; do
11661 ac_save_CFLAGS=$CFLAGS
11662 CFLAGS="$CFLAGS $ac_option"
11663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11664 /* end confdefs.h. */
11665
11666 #ifndef _OPENMP
11667 choke me
11668 #endif
11669 #include <omp.h>
11670 int main () { return omp_get_num_threads (); }
11671
11672 _ACEOF
11673 if ac_fn_c_try_link "$LINENO"; then :
11674 ac_cv_prog_c_openmp=$ac_option
11675 fi
11676 rm -f core conftest.err conftest.$ac_objext \
11677 conftest$ac_exeext conftest.$ac_ext
11678 CFLAGS=$ac_save_CFLAGS
11679 if test "$ac_cv_prog_c_openmp" != unsupported; then
11680 break
11681 fi
11682 done
11683 fi
11684 rm -f core conftest.err conftest.$ac_objext \
11685 conftest$ac_exeext conftest.$ac_ext
11686 fi
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
11688 case "$ac_cv_prog_c_openmp" in #(
11689 yes|ok|yes[\ ,]*) :
11690 $as_echo "${as__grn}$ac_cv_prog_c_openmp${as__std}" >&6 ;; #(
11691 no|failed|unsupported|no[\ ,]*) :
11692 $as_echo "${as__red}$ac_cv_prog_c_openmp${as__std}" >&6 ;; #(
11693 *) :
11694 $as_echo "${as__blu}$ac_cv_prog_c_openmp${as__std}" >&6 ;;
11695 esac; }
11696 case $ac_cv_prog_c_openmp in #(
11697 "none needed" | unsupported)
11698 ;; #(
11699 *)
11700 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
11701 esac
11702 fi
11703
11704
11705 ac_ext=c
11706 ac_cpp='$CPP $CPPFLAGS'
11707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11710
11711
11712 if test "x${ac_cv_prog_c_openmp}" != "xunsupported" && test "x${enable_openmp}" != "xno"; then
11713 HAVE_OPENMP_SUPPORT_TRUE=
11714 HAVE_OPENMP_SUPPORT_FALSE='#'
11715 else
11716 HAVE_OPENMP_SUPPORT_TRUE='#'
11717 HAVE_OPENMP_SUPPORT_FALSE=
11718 fi
11719
11720
11721 if test "x${ac_cv_prog_c_openmp}" = "xunsupported"; then
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no suitable OpenMP compilers found. POMP2 dummy lib will not be build." >&5
11723 $as_echo "$as_me: ${as__yel}WARNING: no suitable OpenMP compilers found. POMP2 dummy lib will not be build.${as__std}" >&2;}
11724 else
11725 ac_ext=cpp
11726 ac_cpp='$CXXCPP $CPPFLAGS'
11727 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11728 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11729 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11730
11731
11732 OPENMP_CXXFLAGS=
11733 # Check whether --enable-openmp was given.
11734 if test "${enable_openmp+set}" = set; then :
11735 enableval=$enable_openmp;
11736 fi
11737
11738 if test "$enable_openmp" != no; then
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
11740 $as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
11741 if ${ac_cv_prog_cxx_openmp+:} false; then :
11742 $as_echo_n "(cached) " >&6
11743 else
11744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11745 /* end confdefs.h. */
11746
11747 #ifndef _OPENMP
11748 choke me
11749 #endif
11750 #include <omp.h>
11751 int main () { return omp_get_num_threads (); }
11752
11753 _ACEOF
11754 if ac_fn_cxx_try_link "$LINENO"; then :
11755 ac_cv_prog_cxx_openmp='none needed'
11756 else
11757 ac_cv_prog_cxx_openmp='unsupported'
11758 for ac_option in -fopenmp -xopenmp -qopenmp -openmp -mp -omp -qsmp=omp -homp \
11759 -Popenmp --openmp -Kopenmp; do
11760 ac_save_CXXFLAGS=$CXXFLAGS
11761 CXXFLAGS="$CXXFLAGS $ac_option"
11762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11763 /* end confdefs.h. */
11764
11765 #ifndef _OPENMP
11766 choke me
11767 #endif
11768 #include <omp.h>
11769 int main () { return omp_get_num_threads (); }
11770
11771 _ACEOF
11772 if ac_fn_cxx_try_link "$LINENO"; then :
11773 ac_cv_prog_cxx_openmp=$ac_option
11774 fi
11775 rm -f core conftest.err conftest.$ac_objext \
11776 conftest$ac_exeext conftest.$ac_ext
11777 CXXFLAGS=$ac_save_CXXFLAGS
11778 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
11779 break
11780 fi
11781 done
11782 fi
11783 rm -f core conftest.err conftest.$ac_objext \
11784 conftest$ac_exeext conftest.$ac_ext
11785 fi
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
11787 case "$ac_cv_prog_cxx_openmp" in #(
11788 yes|ok|yes[\ ,]*) :
11789 $as_echo "${as__grn}$ac_cv_prog_cxx_openmp${as__std}" >&6 ;; #(
11790 no|failed|unsupported|no[\ ,]*) :
11791 $as_echo "${as__red}$ac_cv_prog_cxx_openmp${as__std}" >&6 ;; #(
11792 *) :
11793 $as_echo "${as__blu}$ac_cv_prog_cxx_openmp${as__std}" >&6 ;;
11794 esac; }
11795 case $ac_cv_prog_cxx_openmp in #(
11796 "none needed" | unsupported)
11797 ;; #(
11798 *)
11799 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
11800 esac
11801 fi
11802
11803
11804 ac_ext=c
11805 ac_cpp='$CPP $CPPFLAGS'
11806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11809
11810
11811 ac_ext=f
11812 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
11813 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11814 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
11815
11816
11817 OPENMP_FFLAGS=
11818 # Check whether --enable-openmp was given.
11819 if test "${enable_openmp+set}" = set; then :
11820 enableval=$enable_openmp;
11821 fi
11822
11823 if test "$enable_openmp" != no; then
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $F77 option to support OpenMP" >&5
11825 $as_echo_n "checking for $F77 option to support OpenMP... " >&6; }
11826 if ${ac_cv_prog_f77_openmp+:} false; then :
11827 $as_echo_n "(cached) " >&6
11828 else
11829 cat > conftest.$ac_ext <<_ACEOF
11830
11831 program main
11832 implicit none
11833 !$ integer tid
11834 tid = 42
11835 call omp_set_num_threads(2)
11836 end
11837
11838 _ACEOF
11839 if ac_fn_f77_try_link "$LINENO"; then :
11840 ac_cv_prog_f77_openmp='none needed'
11841 else
11842 ac_cv_prog_f77_openmp='unsupported'
11843 for ac_option in -fopenmp -xopenmp -qopenmp -openmp -mp -omp -qsmp=omp -homp \
11844 -Popenmp --openmp -Kopenmp; do
11845 ac_save_FFLAGS=$FFLAGS
11846 FFLAGS="$FFLAGS $ac_option"
11847 cat > conftest.$ac_ext <<_ACEOF
11848
11849 program main
11850 implicit none
11851 !$ integer tid
11852 tid = 42
11853 call omp_set_num_threads(2)
11854 end
11855
11856 _ACEOF
11857 if ac_fn_f77_try_link "$LINENO"; then :
11858 ac_cv_prog_f77_openmp=$ac_option
11859 fi
11860 rm -f core conftest.err conftest.$ac_objext \
11861 conftest$ac_exeext conftest.$ac_ext
11862 FFLAGS=$ac_save_FFLAGS
11863 if test "$ac_cv_prog_f77_openmp" != unsupported; then
11864 break
11865 fi
11866 done
11867 fi
11868 rm -f core conftest.err conftest.$ac_objext \
11869 conftest$ac_exeext conftest.$ac_ext
11870 fi
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_openmp" >&5
11872 case "$ac_cv_prog_f77_openmp" in #(
11873 yes|ok|yes[\ ,]*) :
11874 $as_echo "${as__grn}$ac_cv_prog_f77_openmp${as__std}" >&6 ;; #(
11875 no|failed|unsupported|no[\ ,]*) :
11876 $as_echo "${as__red}$ac_cv_prog_f77_openmp${as__std}" >&6 ;; #(
11877 *) :
11878 $as_echo "${as__blu}$ac_cv_prog_f77_openmp${as__std}" >&6 ;;
11879 esac; }
11880 case $ac_cv_prog_f77_openmp in #(
11881 "none needed" | unsupported)
11882 ;; #(
11883 *)
11884 OPENMP_FFLAGS=$ac_cv_prog_f77_openmp ;;
11885 esac
11886 fi
11887
11888
11889 ac_ext=c
11890 ac_cpp='$CPP $CPPFLAGS'
11891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11894
11895
11896 ac_ext=${ac_fc_srcext-f}
11897 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11898 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
11899 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11900
11901
11902 OPENMP_FCFLAGS=
11903 # Check whether --enable-openmp was given.
11904 if test "${enable_openmp+set}" = set; then :
11905 enableval=$enable_openmp;
11906 fi
11907
11908 if test "$enable_openmp" != no; then
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $FC option to support OpenMP" >&5
11910 $as_echo_n "checking for $FC option to support OpenMP... " >&6; }
11911 if ${ac_cv_prog_fc_openmp+:} false; then :
11912 $as_echo_n "(cached) " >&6
11913 else
11914 cat > conftest.$ac_ext <<_ACEOF
11915
11916 program main
11917 implicit none
11918 !$ integer tid
11919 tid = 42
11920 call omp_set_num_threads(2)
11921 end
11922
11923 _ACEOF
11924 if ac_fn_fc_try_link "$LINENO"; then :
11925 ac_cv_prog_fc_openmp='none needed'
11926 else
11927 ac_cv_prog_fc_openmp='unsupported'
11928 for ac_option in -fopenmp -xopenmp -qopenmp -openmp -mp -omp -qsmp=omp -homp \
11929 -Popenmp --openmp -Kopenmp; do
11930 ac_save_FCFLAGS=$FCFLAGS
11931 FCFLAGS="$FCFLAGS $ac_option"
11932 cat > conftest.$ac_ext <<_ACEOF
11933
11934 program main
11935 implicit none
11936 !$ integer tid
11937 tid = 42
11938 call omp_set_num_threads(2)
11939 end
11940
11941 _ACEOF
11942 if ac_fn_fc_try_link "$LINENO"; then :
11943 ac_cv_prog_fc_openmp=$ac_option
11944 fi
11945 rm -f core conftest.err conftest.$ac_objext \
11946 conftest$ac_exeext conftest.$ac_ext
11947 FCFLAGS=$ac_save_FCFLAGS
11948 if test "$ac_cv_prog_fc_openmp" != unsupported; then
11949 break
11950 fi
11951 done
11952 fi
11953 rm -f core conftest.err conftest.$ac_objext \
11954 conftest$ac_exeext conftest.$ac_ext
11955 fi
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_openmp" >&5
11957 case "$ac_cv_prog_fc_openmp" in #(
11958 yes|ok|yes[\ ,]*) :
11959 $as_echo "${as__grn}$ac_cv_prog_fc_openmp${as__std}" >&6 ;; #(
11960 no|failed|unsupported|no[\ ,]*) :
11961 $as_echo "${as__red}$ac_cv_prog_fc_openmp${as__std}" >&6 ;; #(
11962 *) :
11963 $as_echo "${as__blu}$ac_cv_prog_fc_openmp${as__std}" >&6 ;;
11964 esac; }
11965 case $ac_cv_prog_fc_openmp in #(
11966 "none needed" | unsupported)
11967 ;; #(
11968 *)
11969 OPENMP_FCFLAGS=$ac_cv_prog_fc_openmp ;;
11970 esac
11971 fi
11972
11973
11974 ac_ext=c
11975 ac_cpp='$CPP $CPPFLAGS'
11976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11979
11980 fi
11981
11982
11983 ac_ext=${ac_fc_srcext-f}
11984 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11985 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
11986 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11987
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether double precision, allocatable arrays are supported" >&5
11989 $as_echo_n "checking whether double precision, allocatable arrays are supported... " >&6; }
11990 cat > conftest.$ac_ext <<_ACEOF
11991
11992 PROGRAM test
11993 TYPE mydata
11994 double precision, allocatable :: afF(:,:)
11995 END TYPE mydata
11996 END PROGRAM test
11997
11998 _ACEOF
11999 if ac_fn_fc_try_compile "$LINENO"; then :
12000 scorep_support_allocatable="yes"
12001 else
12002 scorep_support_allocatable="no"
12003
12004 fi
12005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext #AC_COMPILE_IFELSE
12006 ac_ext=c
12007 ac_cpp='$CPP $CPPFLAGS'
12008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12011
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $scorep_support_allocatable" >&5
12013 case "$scorep_support_allocatable" in #(
12014 yes|ok|yes[\ ,]*) :
12015 $as_echo "${as__grn}$scorep_support_allocatable${as__std}" >&6 ;; #(
12016 no|failed|unsupported|no[\ ,]*) :
12017 $as_echo "${as__red}$scorep_support_allocatable${as__std}" >&6 ;; #(
12018 *) :
12019 $as_echo "${as__blu}$scorep_support_allocatable${as__std}" >&6 ;;
12020 esac; }
12021 if test "x$scorep_support_allocatable" = "xyes"; then
12022 FORTRAN_SUPPORT_ALLOCATABLE_TRUE=
12023 FORTRAN_SUPPORT_ALLOCATABLE_FALSE='#'
12024 else
12025 FORTRAN_SUPPORT_ALLOCATABLE_TRUE='#'
12026 FORTRAN_SUPPORT_ALLOCATABLE_FALSE=
12027 fi
12028
12029
12030
12031 # Special alignement needed with --tpd option. 16bit alignement used
12032 # by Fortran, so we need to use it in C/C++ as well.
12033
12034 $as_echo "#define FORTRAN_ALIGNED __attribute__((aligned (16)))" >>confdefs.h
12035
12036
12037
12038 if test ! -e ${afs_srcdir}/build-config/REVISION; then :
12039 as_fn_error $? "File ${afs_srcdir}/build-config/REVISION must exist." "$LINENO" 5
12040 fi
12041
12042 component_revision=`cat ${afs_srcdir}/build-config/REVISION`
12043
12044 cat >>confdefs.h <<_ACEOF
12045 #define SCOREP_COMPONENT_REVISION "${component_revision}"
12046 _ACEOF
12047
12048
12049 # </AC_OPARI_COMMON_CHECKS>
12050
12051 PACKAGE_MAJOR=2
12052
12053
12054 PACKAGE_MINOR=0
12055
12056
12057 PACKAGE_BUGFIX=9
12058
12059
12060 PACKAGE_SUFFIX=
12061
12062
12063
12064 LIBRARY_CURRENT=3
12065
12066
12067 LIBRARY_REVISION=0
12068
12069
12070 LIBRARY_AGE=0
12071
12072
12073
12074
12075
12076 case `pwd` in
12077 *\ * | *\ *)
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12079 $as_echo "$as_me: ${as__yel}WARNING: Libtool does not cope well with whitespace in \`pwd\`${as__std}" >&2;} ;;
12080 esac
12081
12082
12083
12084 macro_version='2.4.6'
12085 macro_revision='2.4.6'
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099 ltmain=$ac_aux_dir/ltmain.sh
12100
12101 # Make sure we can run config.sub.
12102 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
12103 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
12104
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
12106 $as_echo_n "checking build system type... " >&6; }
12107 if ${ac_cv_build+:} false; then :
12108 $as_echo_n "(cached) " >&6
12109 else
12110 ac_build_alias=$build_alias
12111 test "x$ac_build_alias" = x &&
12112 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
12113 test "x$ac_build_alias" = x &&
12114 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
12115 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
12116 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
12117
12118 fi
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
12120 case "$ac_cv_build" in #(
12121 yes|ok|yes[\ ,]*) :
12122 $as_echo "${as__grn}$ac_cv_build${as__std}" >&6 ;; #(
12123 no|failed|unsupported|no[\ ,]*) :
12124 $as_echo "${as__red}$ac_cv_build${as__std}" >&6 ;; #(
12125 *) :
12126 $as_echo "${as__blu}$ac_cv_build${as__std}" >&6 ;;
12127 esac; }
12128 case $ac_cv_build in
12129 *-*-*) ;;
12130 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
12131 esac
12132 build=$ac_cv_build
12133 ac_save_IFS=$IFS; IFS='-'
12134 set x $ac_cv_build
12135 shift
12136 build_cpu=$1
12137 build_vendor=$2
12138 shift; shift
12139 # Remember, the first character of IFS is used to create $*,
12140 # except with old shells:
12141 build_os=$*
12142 IFS=$ac_save_IFS
12143 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
12144
12145
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
12147 $as_echo_n "checking host system type... " >&6; }
12148 if ${ac_cv_host+:} false; then :
12149 $as_echo_n "(cached) " >&6
12150 else
12151 if test "x$host_alias" = x; then
12152 ac_cv_host=$ac_cv_build
12153 else
12154 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
12155 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
12156 fi
12157
12158 fi
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
12160 case "$ac_cv_host" in #(
12161 yes|ok|yes[\ ,]*) :
12162 $as_echo "${as__grn}$ac_cv_host${as__std}" >&6 ;; #(
12163 no|failed|unsupported|no[\ ,]*) :
12164 $as_echo "${as__red}$ac_cv_host${as__std}" >&6 ;; #(
12165 *) :
12166 $as_echo "${as__blu}$ac_cv_host${as__std}" >&6 ;;
12167 esac; }
12168 case $ac_cv_host in
12169 *-*-*) ;;
12170 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
12171 esac
12172 host=$ac_cv_host
12173 ac_save_IFS=$IFS; IFS='-'
12174 set x $ac_cv_host
12175 shift
12176 host_cpu=$1
12177 host_vendor=$2
12178 shift; shift
12179 # Remember, the first character of IFS is used to create $*,
12180 # except with old shells:
12181 host_os=$*
12182 IFS=$ac_save_IFS
12183 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
12184
12185
12186 # Backslashify metacharacters that are still active within
12187 # double-quoted strings.
12188 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12189
12190 # Same as above, but do not quote variable references.
12191 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12192
12193 # Sed substitution to delay expansion of an escaped shell variable in a
12194 # double_quote_subst'ed string.
12195 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12196
12197 # Sed substitution to delay expansion of an escaped single quote.
12198 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12199
12200 # Sed substitution to avoid accidental globbing in evaled expressions
12201 no_glob_subst='s/\*/\\\*/g'
12202
12203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12204 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12205 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12206
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12208 $as_echo_n "checking how to print strings... " >&6; }
12209 # Test print first, because it will be a builtin if present.
12210 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
12211 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12212 ECHO='print -r --'
12213 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12214 ECHO='printf %s\n'
12215 else
12216 # Use this function as a fallback that always works.
12217 func_fallback_echo ()
12218 {
12219 eval 'cat <<_LTECHO_EOF
12220 $1
12221 _LTECHO_EOF'
12222 }
12223 ECHO='func_fallback_echo'
12224 fi
12225
12226 # func_echo_all arg...
12227 # Invoke $ECHO with all args, space-separated.
12228 func_echo_all ()
12229 {
12230 $ECHO ""
12231 }
12232
12233 case $ECHO in
12234 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12235 case "printf" in #(
12236 yes|ok|yes[\ ,]*) :
12237 $as_echo "${as__grn}printf${as__std}" >&6 ;; #(
12238 no|failed|unsupported|no[\ ,]*) :
12239 $as_echo "${as__red}printf${as__std}" >&6 ;; #(
12240 *) :
12241 $as_echo "${as__blu}printf${as__std}" >&6 ;;
12242 esac; } ;;
12243 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12244 case "print -r" in #(
12245 yes|ok|yes[\ ,]*) :
12246 $as_echo "${as__grn}print -r${as__std}" >&6 ;; #(
12247 no|failed|unsupported|no[\ ,]*) :
12248 $as_echo "${as__red}print -r${as__std}" >&6 ;; #(
12249 *) :
12250 $as_echo "${as__blu}print -r${as__std}" >&6 ;;
12251 esac; } ;;
12252 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12253 case "cat" in #(
12254 yes|ok|yes[\ ,]*) :
12255 $as_echo "${as__grn}cat${as__std}" >&6 ;; #(
12256 no|failed|unsupported|no[\ ,]*) :
12257 $as_echo "${as__red}cat${as__std}" >&6 ;; #(
12258 *) :
12259 $as_echo "${as__blu}cat${as__std}" >&6 ;;
12260 esac; } ;;
12261 esac
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12277 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12278 if ${ac_cv_path_SED+:} false; then :
12279 $as_echo_n "(cached) " >&6
12280 else
12281 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12282 for ac_i in 1 2 3 4 5 6 7; do
12283 ac_script="$ac_script$as_nl$ac_script"
12284 done
12285 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12286 { ac_script=; unset ac_script;}
12287 if test -z "$SED"; then
12288 ac_path_SED_found=false
12289 # Loop through the user's path and test for each of PROGNAME-LIST
12290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12291 for as_dir in $PATH
12292 do
12293 IFS=$as_save_IFS
12294 test -z "$as_dir" && as_dir=.
12295 for ac_prog in sed gsed; do
12296 for ac_exec_ext in '' $ac_executable_extensions; do
12297 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12298 as_fn_executable_p "$ac_path_SED" || continue
12299 # Check for GNU ac_path_SED and select it if it is found.
12300 # Check for GNU $ac_path_SED
12301 case `"$ac_path_SED" --version 2>&1` in
12302 *GNU*)
12303 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12304 *)
12305 ac_count=0
12306 $as_echo_n 0123456789 >"conftest.in"
12307 while :
12308 do
12309 cat "conftest.in" "conftest.in" >"conftest.tmp"
12310 mv "conftest.tmp" "conftest.in"
12311 cp "conftest.in" "conftest.nl"
12312 $as_echo '' >> "conftest.nl"
12313 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12314 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12315 as_fn_arith $ac_count + 1 && ac_count=$as_val
12316 if test $ac_count -gt ${ac_path_SED_max-0}; then
12317 # Best one so far, save it but keep looking for a better one
12318 ac_cv_path_SED="$ac_path_SED"
12319 ac_path_SED_max=$ac_count
12320 fi
12321 # 10*(2^10) chars as input seems more than enough
12322 test $ac_count -gt 10 && break
12323 done
12324 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12325 esac
12326
12327 $ac_path_SED_found && break 3
12328 done
12329 done
12330 done
12331 IFS=$as_save_IFS
12332 if test -z "$ac_cv_path_SED"; then
12333 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
12334 fi
12335 else
12336 ac_cv_path_SED=$SED
12337 fi
12338
12339 fi
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12341 case "$ac_cv_path_SED" in #(
12342 yes|ok|yes[\ ,]*) :
12343 $as_echo "${as__grn}$ac_cv_path_SED${as__std}" >&6 ;; #(
12344 no|failed|unsupported|no[\ ,]*) :
12345 $as_echo "${as__red}$ac_cv_path_SED${as__std}" >&6 ;; #(
12346 *) :
12347 $as_echo "${as__blu}$ac_cv_path_SED${as__std}" >&6 ;;
12348 esac; }
12349 SED="$ac_cv_path_SED"
12350 rm -f conftest.sed
12351
12352 test -z "$SED" && SED=sed
12353 Xsed="$SED -e 1s/^X//"
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
12366 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
12367 if ${ac_cv_path_GREP+:} false; then :
12368 $as_echo_n "(cached) " >&6
12369 else
12370 if test -z "$GREP"; then
12371 ac_path_GREP_found=false
12372 # Loop through the user's path and test for each of PROGNAME-LIST
12373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12374 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12375 do
12376 IFS=$as_save_IFS
12377 test -z "$as_dir" && as_dir=.
12378 for ac_prog in grep ggrep; do
12379 for ac_exec_ext in '' $ac_executable_extensions; do
12380 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
12381 as_fn_executable_p "$ac_path_GREP" || continue
12382 # Check for GNU ac_path_GREP and select it if it is found.
12383 # Check for GNU $ac_path_GREP
12384 case `"$ac_path_GREP" --version 2>&1` in
12385 *GNU*)
12386 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
12387 *)
12388 ac_count=0
12389 $as_echo_n 0123456789 >"conftest.in"
12390 while :
12391 do
12392 cat "conftest.in" "conftest.in" >"conftest.tmp"
12393 mv "conftest.tmp" "conftest.in"
12394 cp "conftest.in" "conftest.nl"
12395 $as_echo 'GREP' >> "conftest.nl"
12396 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
12397 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12398 as_fn_arith $ac_count + 1 && ac_count=$as_val
12399 if test $ac_count -gt ${ac_path_GREP_max-0}; then
12400 # Best one so far, save it but keep looking for a better one
12401 ac_cv_path_GREP="$ac_path_GREP"
12402 ac_path_GREP_max=$ac_count
12403 fi
12404 # 10*(2^10) chars as input seems more than enough
12405 test $ac_count -gt 10 && break
12406 done
12407 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12408 esac
12409
12410 $ac_path_GREP_found && break 3
12411 done
12412 done
12413 done
12414 IFS=$as_save_IFS
12415 if test -z "$ac_cv_path_GREP"; then
12416 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12417 fi
12418 else
12419 ac_cv_path_GREP=$GREP
12420 fi
12421
12422 fi
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
12424 case "$ac_cv_path_GREP" in #(
12425 yes|ok|yes[\ ,]*) :
12426 $as_echo "${as__grn}$ac_cv_path_GREP${as__std}" >&6 ;; #(
12427 no|failed|unsupported|no[\ ,]*) :
12428 $as_echo "${as__red}$ac_cv_path_GREP${as__std}" >&6 ;; #(
12429 *) :
12430 $as_echo "${as__blu}$ac_cv_path_GREP${as__std}" >&6 ;;
12431 esac; }
12432 GREP="$ac_cv_path_GREP"
12433
12434
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
12436 $as_echo_n "checking for egrep... " >&6; }
12437 if ${ac_cv_path_EGREP+:} false; then :
12438 $as_echo_n "(cached) " >&6
12439 else
12440 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
12441 then ac_cv_path_EGREP="$GREP -E"
12442 else
12443 if test -z "$EGREP"; then
12444 ac_path_EGREP_found=false
12445 # Loop through the user's path and test for each of PROGNAME-LIST
12446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12447 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12448 do
12449 IFS=$as_save_IFS
12450 test -z "$as_dir" && as_dir=.
12451 for ac_prog in egrep; do
12452 for ac_exec_ext in '' $ac_executable_extensions; do
12453 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
12454 as_fn_executable_p "$ac_path_EGREP" || continue
12455 # Check for GNU ac_path_EGREP and select it if it is found.
12456 # Check for GNU $ac_path_EGREP
12457 case `"$ac_path_EGREP" --version 2>&1` in
12458 *GNU*)
12459 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
12460 *)
12461 ac_count=0
12462 $as_echo_n 0123456789 >"conftest.in"
12463 while :
12464 do
12465 cat "conftest.in" "conftest.in" >"conftest.tmp"
12466 mv "conftest.tmp" "conftest.in"
12467 cp "conftest.in" "conftest.nl"
12468 $as_echo 'EGREP' >> "conftest.nl"
12469 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
12470 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12471 as_fn_arith $ac_count + 1 && ac_count=$as_val
12472 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
12473 # Best one so far, save it but keep looking for a better one
12474 ac_cv_path_EGREP="$ac_path_EGREP"
12475 ac_path_EGREP_max=$ac_count
12476 fi
12477 # 10*(2^10) chars as input seems more than enough
12478 test $ac_count -gt 10 && break
12479 done
12480 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12481 esac
12482
12483 $ac_path_EGREP_found && break 3
12484 done
12485 done
12486 done
12487 IFS=$as_save_IFS
12488 if test -z "$ac_cv_path_EGREP"; then
12489 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12490 fi
12491 else
12492 ac_cv_path_EGREP=$EGREP
12493 fi
12494
12495 fi
12496 fi
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
12498 case "$ac_cv_path_EGREP" in #(
12499 yes|ok|yes[\ ,]*) :
12500 $as_echo "${as__grn}$ac_cv_path_EGREP${as__std}" >&6 ;; #(
12501 no|failed|unsupported|no[\ ,]*) :
12502 $as_echo "${as__red}$ac_cv_path_EGREP${as__std}" >&6 ;; #(
12503 *) :
12504 $as_echo "${as__blu}$ac_cv_path_EGREP${as__std}" >&6 ;;
12505 esac; }
12506 EGREP="$ac_cv_path_EGREP"
12507
12508
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12510 $as_echo_n "checking for fgrep... " >&6; }
12511 if ${ac_cv_path_FGREP+:} false; then :
12512 $as_echo_n "(cached) " >&6
12513 else
12514 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12515 then ac_cv_path_FGREP="$GREP -F"
12516 else
12517 if test -z "$FGREP"; then
12518 ac_path_FGREP_found=false
12519 # Loop through the user's path and test for each of PROGNAME-LIST
12520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12521 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12522 do
12523 IFS=$as_save_IFS
12524 test -z "$as_dir" && as_dir=.
12525 for ac_prog in fgrep; do
12526 for ac_exec_ext in '' $ac_executable_extensions; do
12527 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12528 as_fn_executable_p "$ac_path_FGREP" || continue
12529 # Check for GNU ac_path_FGREP and select it if it is found.
12530 # Check for GNU $ac_path_FGREP
12531 case `"$ac_path_FGREP" --version 2>&1` in
12532 *GNU*)
12533 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12534 *)
12535 ac_count=0
12536 $as_echo_n 0123456789 >"conftest.in"
12537 while :
12538 do
12539 cat "conftest.in" "conftest.in" >"conftest.tmp"
12540 mv "conftest.tmp" "conftest.in"
12541 cp "conftest.in" "conftest.nl"
12542 $as_echo 'FGREP' >> "conftest.nl"
12543 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12544 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12545 as_fn_arith $ac_count + 1 && ac_count=$as_val
12546 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12547 # Best one so far, save it but keep looking for a better one
12548 ac_cv_path_FGREP="$ac_path_FGREP"
12549 ac_path_FGREP_max=$ac_count
12550 fi
12551 # 10*(2^10) chars as input seems more than enough
12552 test $ac_count -gt 10 && break
12553 done
12554 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12555 esac
12556
12557 $ac_path_FGREP_found && break 3
12558 done
12559 done
12560 done
12561 IFS=$as_save_IFS
12562 if test -z "$ac_cv_path_FGREP"; then
12563 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12564 fi
12565 else
12566 ac_cv_path_FGREP=$FGREP
12567 fi
12568
12569 fi
12570 fi
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12572 case "$ac_cv_path_FGREP" in #(
12573 yes|ok|yes[\ ,]*) :
12574 $as_echo "${as__grn}$ac_cv_path_FGREP${as__std}" >&6 ;; #(
12575 no|failed|unsupported|no[\ ,]*) :
12576 $as_echo "${as__red}$ac_cv_path_FGREP${as__std}" >&6 ;; #(
12577 *) :
12578 $as_echo "${as__blu}$ac_cv_path_FGREP${as__std}" >&6 ;;
12579 esac; }
12580 FGREP="$ac_cv_path_FGREP"
12581
12582
12583 test -z "$GREP" && GREP=grep
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603 # Check whether --with-gnu-ld was given.
12604 if test "${with_gnu_ld+set}" = set; then :
12605 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
12606 else
12607 with_gnu_ld=no
12608 fi
12609
12610 ac_prog=ld
12611 if test yes = "$GCC"; then
12612 # Check if gcc -print-prog-name=ld gives a path.
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12614 $as_echo_n "checking for ld used by $CC... " >&6; }
12615 case $host in
12616 *-*-mingw*)
12617 # gcc leaves a trailing carriage return, which upsets mingw
12618 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12619 *)
12620 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12621 esac
12622 case $ac_prog in
12623 # Accept absolute paths.
12624 [\\/]* | ?:[\\/]*)
12625 re_direlt='/[^/][^/]*/\.\./'
12626 # Canonicalize the pathname of ld
12627 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12628 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12629 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12630 done
12631 test -z "$LD" && LD=$ac_prog
12632 ;;
12633 "")
12634 # If it fails, then pretend we aren't using GCC.
12635 ac_prog=ld
12636 ;;
12637 *)
12638 # If it is relative, then search for the first ld in PATH.
12639 with_gnu_ld=unknown
12640 ;;
12641 esac
12642 elif test yes = "$with_gnu_ld"; then
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12644 $as_echo_n "checking for GNU ld... " >&6; }
12645 else
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12647 $as_echo_n "checking for non-GNU ld... " >&6; }
12648 fi
12649 if ${lt_cv_path_LD+:} false; then :
12650 $as_echo_n "(cached) " >&6
12651 else
12652 if test -z "$LD"; then
12653 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12654 for ac_dir in $PATH; do
12655 IFS=$lt_save_ifs
12656 test -z "$ac_dir" && ac_dir=.
12657 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12658 lt_cv_path_LD=$ac_dir/$ac_prog
12659 # Check to see if the program is GNU ld. I'd rather use --version,
12660 # but apparently some variants of GNU ld only accept -v.
12661 # Break only if it was the GNU/non-GNU ld that we prefer.
12662 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12663 *GNU* | *'with BFD'*)
12664 test no != "$with_gnu_ld" && break
12665 ;;
12666 *)
12667 test yes != "$with_gnu_ld" && break
12668 ;;
12669 esac
12670 fi
12671 done
12672 IFS=$lt_save_ifs
12673 else
12674 lt_cv_path_LD=$LD # Let the user override the test with a path.
12675 fi
12676 fi
12677
12678 LD=$lt_cv_path_LD
12679 if test -n "$LD"; then
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12681 case "$LD" in #(
12682 yes|ok|yes[\ ,]*) :
12683 $as_echo "${as__grn}$LD${as__std}" >&6 ;; #(
12684 no|failed|unsupported|no[\ ,]*) :
12685 $as_echo "${as__red}$LD${as__std}" >&6 ;; #(
12686 *) :
12687 $as_echo "${as__blu}$LD${as__std}" >&6 ;;
12688 esac; }
12689 else
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12691 $as_echo "${as__red}no${as__std}" >&6; }
12692 fi
12693 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12695 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12696 if ${lt_cv_prog_gnu_ld+:} false; then :
12697 $as_echo_n "(cached) " >&6
12698 else
12699 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12700 case `$LD -v 2>&1 </dev/null` in
12701 *GNU* | *'with BFD'*)
12702 lt_cv_prog_gnu_ld=yes
12703 ;;
12704 *)
12705 lt_cv_prog_gnu_ld=no
12706 ;;
12707 esac
12708 fi
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12710 case "$lt_cv_prog_gnu_ld" in #(
12711 yes|ok|yes[\ ,]*) :
12712 $as_echo "${as__grn}$lt_cv_prog_gnu_ld${as__std}" >&6 ;; #(
12713 no|failed|unsupported|no[\ ,]*) :
12714 $as_echo "${as__red}$lt_cv_prog_gnu_ld${as__std}" >&6 ;; #(
12715 *) :
12716 $as_echo "${as__blu}$lt_cv_prog_gnu_ld${as__std}" >&6 ;;
12717 esac; }
12718 with_gnu_ld=$lt_cv_prog_gnu_ld
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12729 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12730 if ${lt_cv_path_NM+:} false; then :
12731 $as_echo_n "(cached) " >&6
12732 else
12733 if test -n "$NM"; then
12734 # Let the user override the test.
12735 lt_cv_path_NM=$NM
12736 else
12737 lt_nm_to_check=${ac_tool_prefix}nm
12738 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12739 lt_nm_to_check="$lt_nm_to_check nm"
12740 fi
12741 for lt_tmp_nm in $lt_nm_to_check; do
12742 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12743 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12744 IFS=$lt_save_ifs
12745 test -z "$ac_dir" && ac_dir=.
12746 tmp_nm=$ac_dir/$lt_tmp_nm
12747 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
12748 # Check to see if the nm accepts a BSD-compat flag.
12749 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
12750 # nm: unknown option "B" ignored
12751 # Tru64's nm complains that /dev/null is an invalid object file
12752 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
12753 case $build_os in
12754 mingw*) lt_bad_file=conftest.nm/nofile ;;
12755 *) lt_bad_file=/dev/null ;;
12756 esac
12757 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
12758 *$lt_bad_file* | *'Invalid file or object type'*)
12759 lt_cv_path_NM="$tmp_nm -B"
12760 break 2
12761 ;;
12762 *)
12763 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12764 */dev/null*)
12765 lt_cv_path_NM="$tmp_nm -p"
12766 break 2
12767 ;;
12768 *)
12769 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12770 continue # so that we can try to find one that supports BSD flags
12771 ;;
12772 esac
12773 ;;
12774 esac
12775 fi
12776 done
12777 IFS=$lt_save_ifs
12778 done
12779 : ${lt_cv_path_NM=no}
12780 fi
12781 fi
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12783 case "$lt_cv_path_NM" in #(
12784 yes|ok|yes[\ ,]*) :
12785 $as_echo "${as__grn}$lt_cv_path_NM${as__std}" >&6 ;; #(
12786 no|failed|unsupported|no[\ ,]*) :
12787 $as_echo "${as__red}$lt_cv_path_NM${as__std}" >&6 ;; #(
12788 *) :
12789 $as_echo "${as__blu}$lt_cv_path_NM${as__std}" >&6 ;;
12790 esac; }
12791 if test no != "$lt_cv_path_NM"; then
12792 NM=$lt_cv_path_NM
12793 else
12794 # Didn't find any BSD compatible name lister, look for dumpbin.
12795 if test -n "$DUMPBIN"; then :
12796 # Let the user override the test.
12797 else
12798 if test -n "$ac_tool_prefix"; then
12799 for ac_prog in dumpbin "link -dump"
12800 do
12801 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12802 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12804 $as_echo_n "checking for $ac_word... " >&6; }
12805 if ${ac_cv_prog_DUMPBIN+:} false; then :
12806 $as_echo_n "(cached) " >&6
12807 else
12808 if test -n "$DUMPBIN"; then
12809 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12810 else
12811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12812 for as_dir in $PATH
12813 do
12814 IFS=$as_save_IFS
12815 test -z "$as_dir" && as_dir=.
12816 for ac_exec_ext in '' $ac_executable_extensions; do
12817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12818 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12820 break 2
12821 fi
12822 done
12823 done
12824 IFS=$as_save_IFS
12825
12826 fi
12827 fi
12828 DUMPBIN=$ac_cv_prog_DUMPBIN
12829 if test -n "$DUMPBIN"; then
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12831 case "$DUMPBIN" in #(
12832 yes|ok|yes[\ ,]*) :
12833 $as_echo "${as__grn}$DUMPBIN${as__std}" >&6 ;; #(
12834 no|failed|unsupported|no[\ ,]*) :
12835 $as_echo "${as__red}$DUMPBIN${as__std}" >&6 ;; #(
12836 *) :
12837 $as_echo "${as__blu}$DUMPBIN${as__std}" >&6 ;;
12838 esac; }
12839 else
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12841 $as_echo "${as__red}no${as__std}" >&6; }
12842 fi
12843
12844
12845 test -n "$DUMPBIN" && break
12846 done
12847 fi
12848 if test -z "$DUMPBIN"; then
12849 ac_ct_DUMPBIN=$DUMPBIN
12850 for ac_prog in dumpbin "link -dump"
12851 do
12852 # Extract the first word of "$ac_prog", so it can be a program name with args.
12853 set dummy $ac_prog; ac_word=$2
12854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12855 $as_echo_n "checking for $ac_word... " >&6; }
12856 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
12857 $as_echo_n "(cached) " >&6
12858 else
12859 if test -n "$ac_ct_DUMPBIN"; then
12860 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12861 else
12862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12863 for as_dir in $PATH
12864 do
12865 IFS=$as_save_IFS
12866 test -z "$as_dir" && as_dir=.
12867 for ac_exec_ext in '' $ac_executable_extensions; do
12868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12869 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12871 break 2
12872 fi
12873 done
12874 done
12875 IFS=$as_save_IFS
12876
12877 fi
12878 fi
12879 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12880 if test -n "$ac_ct_DUMPBIN"; then
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12882 case "$ac_ct_DUMPBIN" in #(
12883 yes|ok|yes[\ ,]*) :
12884 $as_echo "${as__grn}$ac_ct_DUMPBIN${as__std}" >&6 ;; #(
12885 no|failed|unsupported|no[\ ,]*) :
12886 $as_echo "${as__red}$ac_ct_DUMPBIN${as__std}" >&6 ;; #(
12887 *) :
12888 $as_echo "${as__blu}$ac_ct_DUMPBIN${as__std}" >&6 ;;
12889 esac; }
12890 else
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12892 $as_echo "${as__red}no${as__std}" >&6; }
12893 fi
12894
12895
12896 test -n "$ac_ct_DUMPBIN" && break
12897 done
12898
12899 if test "x$ac_ct_DUMPBIN" = x; then
12900 DUMPBIN=":"
12901 else
12902 case $cross_compiling:$ac_tool_warned in
12903 yes:)
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12905 $as_echo "$as_me: ${as__yel}WARNING: using cross tools not prefixed with host triplet${as__std}" >&2;}
12906 ac_tool_warned=yes ;;
12907 esac
12908 DUMPBIN=$ac_ct_DUMPBIN
12909 fi
12910 fi
12911
12912 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
12913 *COFF*)
12914 DUMPBIN="$DUMPBIN -symbols -headers"
12915 ;;
12916 *)
12917 DUMPBIN=:
12918 ;;
12919 esac
12920 fi
12921
12922 if test : != "$DUMPBIN"; then
12923 NM=$DUMPBIN
12924 fi
12925 fi
12926 test -z "$NM" && NM=nm
12927
12928
12929
12930
12931
12932
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12934 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12935 if ${lt_cv_nm_interface+:} false; then :
12936 $as_echo_n "(cached) " >&6
12937 else
12938 lt_cv_nm_interface="BSD nm"
12939 echo "int some_variable = 0;" > conftest.$ac_ext
12940 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12941 (eval "$ac_compile" 2>conftest.err)
12942 cat conftest.err >&5
12943 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12944 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12945 cat conftest.err >&5
12946 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12947 cat conftest.out >&5
12948 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12949 lt_cv_nm_interface="MS dumpbin"
12950 fi
12951 rm -f conftest*
12952 fi
12953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12954 case "$lt_cv_nm_interface" in #(
12955 yes|ok|yes[\ ,]*) :
12956 $as_echo "${as__grn}$lt_cv_nm_interface${as__std}" >&6 ;; #(
12957 no|failed|unsupported|no[\ ,]*) :
12958 $as_echo "${as__red}$lt_cv_nm_interface${as__std}" >&6 ;; #(
12959 *) :
12960 $as_echo "${as__blu}$lt_cv_nm_interface${as__std}" >&6 ;;
12961 esac; }
12962
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12964 $as_echo_n "checking whether ln -s works... " >&6; }
12965 LN_S=$as_ln_s
12966 if test "$LN_S" = "ln -s"; then
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12968 $as_echo "${as__grn}yes${as__std}" >&6; }
12969 else
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12971 $as_echo "${as__red}no, using $LN_S${as__std}" >&6; }
12972 fi
12973
12974 # find the maximum length of command line arguments
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12976 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12977 if ${lt_cv_sys_max_cmd_len+:} false; then :
12978 $as_echo_n "(cached) " >&6
12979 else
12980 i=0
12981 teststring=ABCD
12982
12983 case $build_os in
12984 msdosdjgpp*)
12985 # On DJGPP, this test can blow up pretty badly due to problems in libc
12986 # (any single argument exceeding 2000 bytes causes a buffer overrun
12987 # during glob expansion). Even if it were fixed, the result of this
12988 # check would be larger than it should be.
12989 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12990 ;;
12991
12992 gnu*)
12993 # Under GNU Hurd, this test is not required because there is
12994 # no limit to the length of command line arguments.
12995 # Libtool will interpret -1 as no limit whatsoever
12996 lt_cv_sys_max_cmd_len=-1;
12997 ;;
12998
12999 cygwin* | mingw* | cegcc*)
13000 # On Win9x/ME, this test blows up -- it succeeds, but takes
13001 # about 5 minutes as the teststring grows exponentially.
13002 # Worse, since 9x/ME are not pre-emptively multitasking,
13003 # you end up with a "frozen" computer, even though with patience
13004 # the test eventually succeeds (with a max line length of 256k).
13005 # Instead, let's just punt: use the minimum linelength reported by
13006 # all of the supported platforms: 8192 (on NT/2K/XP).
13007 lt_cv_sys_max_cmd_len=8192;
13008 ;;
13009
13010 mint*)
13011 # On MiNT this can take a long time and run out of memory.
13012 lt_cv_sys_max_cmd_len=8192;
13013 ;;
13014
13015 amigaos*)
13016 # On AmigaOS with pdksh, this test takes hours, literally.
13017 # So we just punt and use a minimum line length of 8192.
13018 lt_cv_sys_max_cmd_len=8192;
13019 ;;
13020
13021 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
13022 # This has been around since 386BSD, at least. Likely further.
13023 if test -x /sbin/sysctl; then
13024 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13025 elif test -x /usr/sbin/sysctl; then
13026 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13027 else
13028 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13029 fi
13030 # And add a safety zone
13031 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13032 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13033 ;;
13034
13035 interix*)
13036 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13037 lt_cv_sys_max_cmd_len=196608
13038 ;;
13039
13040 os2*)
13041 # The test takes a long time on OS/2.
13042 lt_cv_sys_max_cmd_len=8192
13043 ;;
13044
13045 osf*)
13046 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13047 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13048 # nice to cause kernel panics so lets avoid the loop below.
13049 # First set a reasonable default.
13050 lt_cv_sys_max_cmd_len=16384
13051 #
13052 if test -x /sbin/sysconfig; then
13053 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13054 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13055 esac
13056 fi
13057 ;;
13058 sco3.2v5*)
13059 lt_cv_sys_max_cmd_len=102400
13060 ;;
13061 sysv5* | sco5v6* | sysv4.2uw2*)
13062 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13063 if test -n "$kargmax"; then
13064 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13065 else
13066 lt_cv_sys_max_cmd_len=32768
13067 fi
13068 ;;
13069 *)
13070 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
13071 if test -n "$lt_cv_sys_max_cmd_len" && \
13072 test undefined != "$lt_cv_sys_max_cmd_len"; then
13073 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13074 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13075 else
13076 # Make teststring a little bigger before we do anything with it.
13077 # a 1K string should be a reasonable start.
13078 for i in 1 2 3 4 5 6 7 8; do
13079 teststring=$teststring$teststring
13080 done
13081 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13082 # If test is not a shell built-in, we'll probably end up computing a
13083 # maximum length that is only half of the actual maximum length, but
13084 # we can't tell.
13085 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
13086 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
13087 test 17 != "$i" # 1/2 MB should be enough
13088 do
13089 i=`expr $i + 1`
13090 teststring=$teststring$teststring
13091 done
13092 # Only check the string length outside the loop.
13093 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
13094 teststring=
13095 # Add a significant safety factor because C++ compilers can tack on
13096 # massive amounts of additional arguments before passing them to the
13097 # linker. It appears as though 1/2 is a usable value.
13098 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13099 fi
13100 ;;
13101 esac
13102
13103 fi
13104
13105 if test -n "$lt_cv_sys_max_cmd_len"; then
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13107 case "$lt_cv_sys_max_cmd_len" in #(
13108 yes|ok|yes[\ ,]*) :
13109 $as_echo "${as__grn}$lt_cv_sys_max_cmd_len${as__std}" >&6 ;; #(
13110 no|failed|unsupported|no[\ ,]*) :
13111 $as_echo "${as__red}$lt_cv_sys_max_cmd_len${as__std}" >&6 ;; #(
13112 *) :
13113 $as_echo "${as__blu}$lt_cv_sys_max_cmd_len${as__std}" >&6 ;;
13114 esac; }
13115 else
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13117 case "none" in #(
13118 yes|ok|yes[\ ,]*) :
13119 $as_echo "${as__grn}none${as__std}" >&6 ;; #(
13120 no|failed|unsupported|no[\ ,]*) :
13121 $as_echo "${as__red}none${as__std}" >&6 ;; #(
13122 *) :
13123 $as_echo "${as__blu}none${as__std}" >&6 ;;
13124 esac; }
13125 fi
13126 max_cmd_len=$lt_cv_sys_max_cmd_len
13127
13128
13129
13130
13131
13132
13133 : ${CP="cp -f"}
13134 : ${MV="mv -f"}
13135 : ${RM="rm -f"}
13136
13137 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13138 lt_unset=unset
13139 else
13140 lt_unset=false
13141 fi
13142
13143
13144
13145
13146
13147 # test EBCDIC or ASCII
13148 case `echo X|tr X '\101'` in
13149 A) # ASCII based system
13150 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13151 lt_SP2NL='tr \040 \012'
13152 lt_NL2SP='tr \015\012 \040\040'
13153 ;;
13154 *) # EBCDIC based system
13155 lt_SP2NL='tr \100 \n'
13156 lt_NL2SP='tr \r\n \100\100'
13157 ;;
13158 esac
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
13169 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
13170 if ${lt_cv_to_host_file_cmd+:} false; then :
13171 $as_echo_n "(cached) " >&6
13172 else
13173 case $host in
13174 *-*-mingw* )
13175 case $build in
13176 *-*-mingw* ) # actually msys
13177 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
13178 ;;
13179 *-*-cygwin* )
13180 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
13181 ;;
13182 * ) # otherwise, assume *nix
13183 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
13184 ;;
13185 esac
13186 ;;
13187 *-*-cygwin* )
13188 case $build in
13189 *-*-mingw* ) # actually msys
13190 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
13191 ;;
13192 *-*-cygwin* )
13193 lt_cv_to_host_file_cmd=func_convert_file_noop
13194 ;;
13195 * ) # otherwise, assume *nix
13196 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
13197 ;;
13198 esac
13199 ;;
13200 * ) # unhandled hosts (and "normal" native builds)
13201 lt_cv_to_host_file_cmd=func_convert_file_noop
13202 ;;
13203 esac
13204
13205 fi
13206
13207 to_host_file_cmd=$lt_cv_to_host_file_cmd
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
13209 case "$lt_cv_to_host_file_cmd" in #(
13210 yes|ok|yes[\ ,]*) :
13211 $as_echo "${as__grn}$lt_cv_to_host_file_cmd${as__std}" >&6 ;; #(
13212 no|failed|unsupported|no[\ ,]*) :
13213 $as_echo "${as__red}$lt_cv_to_host_file_cmd${as__std}" >&6 ;; #(
13214 *) :
13215 $as_echo "${as__blu}$lt_cv_to_host_file_cmd${as__std}" >&6 ;;
13216 esac; }
13217
13218
13219
13220
13221
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
13223 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
13224 if ${lt_cv_to_tool_file_cmd+:} false; then :
13225 $as_echo_n "(cached) " >&6
13226 else
13227 #assume ordinary cross tools, or native build.
13228 lt_cv_to_tool_file_cmd=func_convert_file_noop
13229 case $host in
13230 *-*-mingw* )
13231 case $build in
13232 *-*-mingw* ) # actually msys
13233 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
13234 ;;
13235 esac
13236 ;;
13237 esac
13238
13239 fi
13240
13241 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
13243 case "$lt_cv_to_tool_file_cmd" in #(
13244 yes|ok|yes[\ ,]*) :
13245 $as_echo "${as__grn}$lt_cv_to_tool_file_cmd${as__std}" >&6 ;; #(
13246 no|failed|unsupported|no[\ ,]*) :
13247 $as_echo "${as__red}$lt_cv_to_tool_file_cmd${as__std}" >&6 ;; #(
13248 *) :
13249 $as_echo "${as__blu}$lt_cv_to_tool_file_cmd${as__std}" >&6 ;;
13250 esac; }
13251
13252
13253
13254
13255
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
13257 $as_echo_n "checking for $LD option to reload object files... " >&6; }
13258 if ${lt_cv_ld_reload_flag+:} false; then :
13259 $as_echo_n "(cached) " >&6
13260 else
13261 lt_cv_ld_reload_flag='-r'
13262 fi
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
13264 case "$lt_cv_ld_reload_flag" in #(
13265 yes|ok|yes[\ ,]*) :
13266 $as_echo "${as__grn}$lt_cv_ld_reload_flag${as__std}" >&6 ;; #(
13267 no|failed|unsupported|no[\ ,]*) :
13268 $as_echo "${as__red}$lt_cv_ld_reload_flag${as__std}" >&6 ;; #(
13269 *) :
13270 $as_echo "${as__blu}$lt_cv_ld_reload_flag${as__std}" >&6 ;;
13271 esac; }
13272 reload_flag=$lt_cv_ld_reload_flag
13273 case $reload_flag in
13274 "" | " "*) ;;
13275 *) reload_flag=" $reload_flag" ;;
13276 esac
13277 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13278 case $host_os in
13279 cygwin* | mingw* | pw32* | cegcc*)
13280 if test yes != "$GCC"; then
13281 reload_cmds=false
13282 fi
13283 ;;
13284 darwin*)
13285 if test yes = "$GCC"; then
13286 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
13287 else
13288 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13289 fi
13290 ;;
13291 esac
13292
13293
13294
13295
13296
13297
13298
13299
13300
13301 if test -n "$ac_tool_prefix"; then
13302 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13303 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13305 $as_echo_n "checking for $ac_word... " >&6; }
13306 if ${ac_cv_prog_OBJDUMP+:} false; then :
13307 $as_echo_n "(cached) " >&6
13308 else
13309 if test -n "$OBJDUMP"; then
13310 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13311 else
13312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13313 for as_dir in $PATH
13314 do
13315 IFS=$as_save_IFS
13316 test -z "$as_dir" && as_dir=.
13317 for ac_exec_ext in '' $ac_executable_extensions; do
13318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13319 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13321 break 2
13322 fi
13323 done
13324 done
13325 IFS=$as_save_IFS
13326
13327 fi
13328 fi
13329 OBJDUMP=$ac_cv_prog_OBJDUMP
13330 if test -n "$OBJDUMP"; then
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13332 case "$OBJDUMP" in #(
13333 yes|ok|yes[\ ,]*) :
13334 $as_echo "${as__grn}$OBJDUMP${as__std}" >&6 ;; #(
13335 no|failed|unsupported|no[\ ,]*) :
13336 $as_echo "${as__red}$OBJDUMP${as__std}" >&6 ;; #(
13337 *) :
13338 $as_echo "${as__blu}$OBJDUMP${as__std}" >&6 ;;
13339 esac; }
13340 else
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13342 $as_echo "${as__red}no${as__std}" >&6; }
13343 fi
13344
13345
13346 fi
13347 if test -z "$ac_cv_prog_OBJDUMP"; then
13348 ac_ct_OBJDUMP=$OBJDUMP
13349 # Extract the first word of "objdump", so it can be a program name with args.
13350 set dummy objdump; ac_word=$2
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13352 $as_echo_n "checking for $ac_word... " >&6; }
13353 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
13354 $as_echo_n "(cached) " >&6
13355 else
13356 if test -n "$ac_ct_OBJDUMP"; then
13357 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13358 else
13359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13360 for as_dir in $PATH
13361 do
13362 IFS=$as_save_IFS
13363 test -z "$as_dir" && as_dir=.
13364 for ac_exec_ext in '' $ac_executable_extensions; do
13365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13366 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13368 break 2
13369 fi
13370 done
13371 done
13372 IFS=$as_save_IFS
13373
13374 fi
13375 fi
13376 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13377 if test -n "$ac_ct_OBJDUMP"; then
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13379 case "$ac_ct_OBJDUMP" in #(
13380 yes|ok|yes[\ ,]*) :
13381 $as_echo "${as__grn}$ac_ct_OBJDUMP${as__std}" >&6 ;; #(
13382 no|failed|unsupported|no[\ ,]*) :
13383 $as_echo "${as__red}$ac_ct_OBJDUMP${as__std}" >&6 ;; #(
13384 *) :
13385 $as_echo "${as__blu}$ac_ct_OBJDUMP${as__std}" >&6 ;;
13386 esac; }
13387 else
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13389 $as_echo "${as__red}no${as__std}" >&6; }
13390 fi
13391
13392 if test "x$ac_ct_OBJDUMP" = x; then
13393 OBJDUMP="false"
13394 else
13395 case $cross_compiling:$ac_tool_warned in
13396 yes:)
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13398 $as_echo "$as_me: ${as__yel}WARNING: using cross tools not prefixed with host triplet${as__std}" >&2;}
13399 ac_tool_warned=yes ;;
13400 esac
13401 OBJDUMP=$ac_ct_OBJDUMP
13402 fi
13403 else
13404 OBJDUMP="$ac_cv_prog_OBJDUMP"
13405 fi
13406
13407 test -z "$OBJDUMP" && OBJDUMP=objdump
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
13418 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
13419 if ${lt_cv_deplibs_check_method+:} false; then :
13420 $as_echo_n "(cached) " >&6
13421 else
13422 lt_cv_file_magic_cmd='$MAGIC_CMD'
13423 lt_cv_file_magic_test_file=
13424 lt_cv_deplibs_check_method='unknown'
13425 # Need to set the preceding variable on all platforms that support
13426 # interlibrary dependencies.
13427 # 'none' -- dependencies not supported.
13428 # 'unknown' -- same as none, but documents that we really don't know.
13429 # 'pass_all' -- all dependencies passed with no checks.
13430 # 'test_compile' -- check by making test program.
13431 # 'file_magic [[regex]]' -- check by looking for files in library path
13432 # that responds to the $file_magic_cmd with a given extended regex.
13433 # If you have 'file' or equivalent on your system and you're not sure
13434 # whether 'pass_all' will *always* work, you probably want this one.
13435
13436 case $host_os in
13437 aix[4-9]*)
13438 lt_cv_deplibs_check_method=pass_all
13439 ;;
13440
13441 beos*)
13442 lt_cv_deplibs_check_method=pass_all
13443 ;;
13444
13445 bsdi[45]*)
13446 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13447 lt_cv_file_magic_cmd='/usr/bin/file -L'
13448 lt_cv_file_magic_test_file=/shlib/libc.so
13449 ;;
13450
13451 cygwin*)
13452 # func_win32_libid is a shell function defined in ltmain.sh
13453 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13454 lt_cv_file_magic_cmd='func_win32_libid'
13455 ;;
13456
13457 mingw* | pw32*)
13458 # Base MSYS/MinGW do not provide the 'file' command needed by
13459 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13460 # unless we find 'file', for example because we are cross-compiling.
13461 if ( file / ) >/dev/null 2>&1; then
13462 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13463 lt_cv_file_magic_cmd='func_win32_libid'
13464 else
13465 # Keep this pattern in sync with the one in func_win32_libid.
13466 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
13467 lt_cv_file_magic_cmd='$OBJDUMP -f'
13468 fi
13469 ;;
13470
13471 cegcc*)
13472 # use the weaker test based on 'objdump'. See mingw*.
13473 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13474 lt_cv_file_magic_cmd='$OBJDUMP -f'
13475 ;;
13476
13477 darwin* | rhapsody*)
13478 lt_cv_deplibs_check_method=pass_all
13479 ;;
13480
13481 freebsd* | dragonfly*)
13482 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13483 case $host_cpu in
13484 i*86 )
13485 # Not sure whether the presence of OpenBSD here was a mistake.
13486 # Let's accept both of them until this is cleared up.
13487 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13488 lt_cv_file_magic_cmd=/usr/bin/file
13489 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13490 ;;
13491 esac
13492 else
13493 lt_cv_deplibs_check_method=pass_all
13494 fi
13495 ;;
13496
13497 haiku*)
13498 lt_cv_deplibs_check_method=pass_all
13499 ;;
13500
13501 hpux10.20* | hpux11*)
13502 lt_cv_file_magic_cmd=/usr/bin/file
13503 case $host_cpu in
13504 ia64*)
13505 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13506 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13507 ;;
13508 hppa*64*)
13509 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]'
13510 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13511 ;;
13512 *)
13513 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13514 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13515 ;;
13516 esac
13517 ;;
13518
13519 interix[3-9]*)
13520 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13521 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13522 ;;
13523
13524 irix5* | irix6* | nonstopux*)
13525 case $LD in
13526 *-32|*"-32 ") libmagic=32-bit;;
13527 *-n32|*"-n32 ") libmagic=N32;;
13528 *-64|*"-64 ") libmagic=64-bit;;
13529 *) libmagic=never-match;;
13530 esac
13531 lt_cv_deplibs_check_method=pass_all
13532 ;;
13533
13534 # This must be glibc/ELF.
13535 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13536 lt_cv_deplibs_check_method=pass_all
13537 ;;
13538
13539 netbsd*)
13540 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13541 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13542 else
13543 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13544 fi
13545 ;;
13546
13547 newos6*)
13548 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13549 lt_cv_file_magic_cmd=/usr/bin/file
13550 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13551 ;;
13552
13553 *nto* | *qnx*)
13554 lt_cv_deplibs_check_method=pass_all
13555 ;;
13556
13557 openbsd* | bitrig*)
13558 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13559 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13560 else
13561 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13562 fi
13563 ;;
13564
13565 osf3* | osf4* | osf5*)
13566 lt_cv_deplibs_check_method=pass_all
13567 ;;
13568
13569 rdos*)
13570 lt_cv_deplibs_check_method=pass_all
13571 ;;
13572
13573 solaris*)
13574 lt_cv_deplibs_check_method=pass_all
13575 ;;
13576
13577 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13578 lt_cv_deplibs_check_method=pass_all
13579 ;;
13580
13581 sysv4 | sysv4.3*)
13582 case $host_vendor in
13583 motorola)
13584 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]'
13585 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13586 ;;
13587 ncr)
13588 lt_cv_deplibs_check_method=pass_all
13589 ;;
13590 sequent)
13591 lt_cv_file_magic_cmd='/bin/file'
13592 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13593 ;;
13594 sni)
13595 lt_cv_file_magic_cmd='/bin/file'
13596 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13597 lt_cv_file_magic_test_file=/lib/libc.so
13598 ;;
13599 siemens)
13600 lt_cv_deplibs_check_method=pass_all
13601 ;;
13602 pc)
13603 lt_cv_deplibs_check_method=pass_all
13604 ;;
13605 esac
13606 ;;
13607
13608 tpf*)
13609 lt_cv_deplibs_check_method=pass_all
13610 ;;
13611 os2*)
13612 lt_cv_deplibs_check_method=pass_all
13613 ;;
13614 esac
13615
13616 fi
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13618 case "$lt_cv_deplibs_check_method" in #(
13619 yes|ok|yes[\ ,]*) :
13620 $as_echo "${as__grn}$lt_cv_deplibs_check_method${as__std}" >&6 ;; #(
13621 no|failed|unsupported|no[\ ,]*) :
13622 $as_echo "${as__red}$lt_cv_deplibs_check_method${as__std}" >&6 ;; #(
13623 *) :
13624 $as_echo "${as__blu}$lt_cv_deplibs_check_method${as__std}" >&6 ;;
13625 esac; }
13626
13627 file_magic_glob=
13628 want_nocaseglob=no
13629 if test "$build" = "$host"; then
13630 case $host_os in
13631 mingw* | pw32*)
13632 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
13633 want_nocaseglob=yes
13634 else
13635 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
13636 fi
13637 ;;
13638 esac
13639 fi
13640
13641 file_magic_cmd=$lt_cv_file_magic_cmd
13642 deplibs_check_method=$lt_cv_deplibs_check_method
13643 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666 if test -n "$ac_tool_prefix"; then
13667 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13668 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13670 $as_echo_n "checking for $ac_word... " >&6; }
13671 if ${ac_cv_prog_DLLTOOL+:} false; then :
13672 $as_echo_n "(cached) " >&6
13673 else
13674 if test -n "$DLLTOOL"; then
13675 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13676 else
13677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13678 for as_dir in $PATH
13679 do
13680 IFS=$as_save_IFS
13681 test -z "$as_dir" && as_dir=.
13682 for ac_exec_ext in '' $ac_executable_extensions; do
13683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13684 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13686 break 2
13687 fi
13688 done
13689 done
13690 IFS=$as_save_IFS
13691
13692 fi
13693 fi
13694 DLLTOOL=$ac_cv_prog_DLLTOOL
13695 if test -n "$DLLTOOL"; then
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13697 case "$DLLTOOL" in #(
13698 yes|ok|yes[\ ,]*) :
13699 $as_echo "${as__grn}$DLLTOOL${as__std}" >&6 ;; #(
13700 no|failed|unsupported|no[\ ,]*) :
13701 $as_echo "${as__red}$DLLTOOL${as__std}" >&6 ;; #(
13702 *) :
13703 $as_echo "${as__blu}$DLLTOOL${as__std}" >&6 ;;
13704 esac; }
13705 else
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13707 $as_echo "${as__red}no${as__std}" >&6; }
13708 fi
13709
13710
13711 fi
13712 if test -z "$ac_cv_prog_DLLTOOL"; then
13713 ac_ct_DLLTOOL=$DLLTOOL
13714 # Extract the first word of "dlltool", so it can be a program name with args.
13715 set dummy dlltool; ac_word=$2
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13717 $as_echo_n "checking for $ac_word... " >&6; }
13718 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
13719 $as_echo_n "(cached) " >&6
13720 else
13721 if test -n "$ac_ct_DLLTOOL"; then
13722 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13723 else
13724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13725 for as_dir in $PATH
13726 do
13727 IFS=$as_save_IFS
13728 test -z "$as_dir" && as_dir=.
13729 for ac_exec_ext in '' $ac_executable_extensions; do
13730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13731 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13733 break 2
13734 fi
13735 done
13736 done
13737 IFS=$as_save_IFS
13738
13739 fi
13740 fi
13741 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13742 if test -n "$ac_ct_DLLTOOL"; then
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13744 case "$ac_ct_DLLTOOL" in #(
13745 yes|ok|yes[\ ,]*) :
13746 $as_echo "${as__grn}$ac_ct_DLLTOOL${as__std}" >&6 ;; #(
13747 no|failed|unsupported|no[\ ,]*) :
13748 $as_echo "${as__red}$ac_ct_DLLTOOL${as__std}" >&6 ;; #(
13749 *) :
13750 $as_echo "${as__blu}$ac_ct_DLLTOOL${as__std}" >&6 ;;
13751 esac; }
13752 else
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13754 $as_echo "${as__red}no${as__std}" >&6; }
13755 fi
13756
13757 if test "x$ac_ct_DLLTOOL" = x; then
13758 DLLTOOL="false"
13759 else
13760 case $cross_compiling:$ac_tool_warned in
13761 yes:)
13762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13763 $as_echo "$as_me: ${as__yel}WARNING: using cross tools not prefixed with host triplet${as__std}" >&2;}
13764 ac_tool_warned=yes ;;
13765 esac
13766 DLLTOOL=$ac_ct_DLLTOOL
13767 fi
13768 else
13769 DLLTOOL="$ac_cv_prog_DLLTOOL"
13770 fi
13771
13772 test -z "$DLLTOOL" && DLLTOOL=dlltool
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
13784 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
13785 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
13786 $as_echo_n "(cached) " >&6
13787 else
13788 lt_cv_sharedlib_from_linklib_cmd='unknown'
13789
13790 case $host_os in
13791 cygwin* | mingw* | pw32* | cegcc*)
13792 # two different shell functions defined in ltmain.sh;
13793 # decide which one to use based on capabilities of $DLLTOOL
13794 case `$DLLTOOL --help 2>&1` in
13795 *--identify-strict*)
13796 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
13797 ;;
13798 *)
13799 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
13800 ;;
13801 esac
13802 ;;
13803 *)
13804 # fallback: assume linklib IS sharedlib
13805 lt_cv_sharedlib_from_linklib_cmd=$ECHO
13806 ;;
13807 esac
13808
13809 fi
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
13811 case "$lt_cv_sharedlib_from_linklib_cmd" in #(
13812 yes|ok|yes[\ ,]*) :
13813 $as_echo "${as__grn}$lt_cv_sharedlib_from_linklib_cmd${as__std}" >&6 ;; #(
13814 no|failed|unsupported|no[\ ,]*) :
13815 $as_echo "${as__red}$lt_cv_sharedlib_from_linklib_cmd${as__std}" >&6 ;; #(
13816 *) :
13817 $as_echo "${as__blu}$lt_cv_sharedlib_from_linklib_cmd${as__std}" >&6 ;;
13818 esac; }
13819 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
13820 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
13821
13822
13823
13824
13825
13826
13827
13828 if test -n "$ac_tool_prefix"; then
13829 for ac_prog in ar
13830 do
13831 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13832 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13834 $as_echo_n "checking for $ac_word... " >&6; }
13835 if ${ac_cv_prog_AR+:} false; then :
13836 $as_echo_n "(cached) " >&6
13837 else
13838 if test -n "$AR"; then
13839 ac_cv_prog_AR="$AR" # Let the user override the test.
13840 else
13841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13842 for as_dir in $PATH
13843 do
13844 IFS=$as_save_IFS
13845 test -z "$as_dir" && as_dir=.
13846 for ac_exec_ext in '' $ac_executable_extensions; do
13847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13848 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
13849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13850 break 2
13851 fi
13852 done
13853 done
13854 IFS=$as_save_IFS
13855
13856 fi
13857 fi
13858 AR=$ac_cv_prog_AR
13859 if test -n "$AR"; then
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13861 case "$AR" in #(
13862 yes|ok|yes[\ ,]*) :
13863 $as_echo "${as__grn}$AR${as__std}" >&6 ;; #(
13864 no|failed|unsupported|no[\ ,]*) :
13865 $as_echo "${as__red}$AR${as__std}" >&6 ;; #(
13866 *) :
13867 $as_echo "${as__blu}$AR${as__std}" >&6 ;;
13868 esac; }
13869 else
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13871 $as_echo "${as__red}no${as__std}" >&6; }
13872 fi
13873
13874
13875 test -n "$AR" && break
13876 done
13877 fi
13878 if test -z "$AR"; then
13879 ac_ct_AR=$AR
13880 for ac_prog in ar
13881 do
13882 # Extract the first word of "$ac_prog", so it can be a program name with args.
13883 set dummy $ac_prog; ac_word=$2
13884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13885 $as_echo_n "checking for $ac_word... " >&6; }
13886 if ${ac_cv_prog_ac_ct_AR+:} false; then :
13887 $as_echo_n "(cached) " >&6
13888 else
13889 if test -n "$ac_ct_AR"; then
13890 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13891 else
13892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13893 for as_dir in $PATH
13894 do
13895 IFS=$as_save_IFS
13896 test -z "$as_dir" && as_dir=.
13897 for ac_exec_ext in '' $ac_executable_extensions; do
13898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13899 ac_cv_prog_ac_ct_AR="$ac_prog"
13900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13901 break 2
13902 fi
13903 done
13904 done
13905 IFS=$as_save_IFS
13906
13907 fi
13908 fi
13909 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13910 if test -n "$ac_ct_AR"; then
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13912 case "$ac_ct_AR" in #(
13913 yes|ok|yes[\ ,]*) :
13914 $as_echo "${as__grn}$ac_ct_AR${as__std}" >&6 ;; #(
13915 no|failed|unsupported|no[\ ,]*) :
13916 $as_echo "${as__red}$ac_ct_AR${as__std}" >&6 ;; #(
13917 *) :
13918 $as_echo "${as__blu}$ac_ct_AR${as__std}" >&6 ;;
13919 esac; }
13920 else
13921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13922 $as_echo "${as__red}no${as__std}" >&6; }
13923 fi
13924
13925
13926 test -n "$ac_ct_AR" && break
13927 done
13928
13929 if test "x$ac_ct_AR" = x; then
13930 AR="false"
13931 else
13932 case $cross_compiling:$ac_tool_warned in
13933 yes:)
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13935 $as_echo "$as_me: ${as__yel}WARNING: using cross tools not prefixed with host triplet${as__std}" >&2;}
13936 ac_tool_warned=yes ;;
13937 esac
13938 AR=$ac_ct_AR
13939 fi
13940 fi
13941
13942 : ${AR=ar}
13943
13944
13945
13946
13947
13948
13949 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
13950 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
13951 # higher priority because thats what people were doing historically (setting
13952 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
13953 # variable obsoleted/removed.
13954
13955 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
13956 lt_ar_flags=$AR_FLAGS
13957
13958
13959
13960
13961
13962
13963 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
13964 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
13965
13966
13967
13968
13969
13970
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
13972 $as_echo_n "checking for archiver @FILE support... " >&6; }
13973 if ${lt_cv_ar_at_file+:} false; then :
13974 $as_echo_n "(cached) " >&6
13975 else
13976 lt_cv_ar_at_file=no
13977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13978 /* end confdefs.h. */
13979
13980 int
13981 main ()
13982 {
13983
13984 ;
13985 return 0;
13986 }
13987 _ACEOF
13988 if ac_fn_c_try_compile "$LINENO"; then :
13989 echo conftest.$ac_objext > conftest.lst
13990 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
13991 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13992 (eval $lt_ar_try) 2>&5
13993 ac_status=$?
13994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13995 test $ac_status = 0; }
13996 if test 0 -eq "$ac_status"; then
13997 # Ensure the archiver fails upon bogus file names.
13998 rm -f conftest.$ac_objext libconftest.a
13999 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
14000 (eval $lt_ar_try) 2>&5
14001 ac_status=$?
14002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14003 test $ac_status = 0; }
14004 if test 0 -ne "$ac_status"; then
14005 lt_cv_ar_at_file=@
14006 fi
14007 fi
14008 rm -f conftest.* libconftest.a
14009
14010 fi
14011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14012
14013 fi
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
14015 case "$lt_cv_ar_at_file" in #(
14016 yes|ok|yes[\ ,]*) :
14017 $as_echo "${as__grn}$lt_cv_ar_at_file${as__std}" >&6 ;; #(
14018 no|failed|unsupported|no[\ ,]*) :
14019 $as_echo "${as__red}$lt_cv_ar_at_file${as__std}" >&6 ;; #(
14020 *) :
14021 $as_echo "${as__blu}$lt_cv_ar_at_file${as__std}" >&6 ;;
14022 esac; }
14023
14024 if test no = "$lt_cv_ar_at_file"; then
14025 archiver_list_spec=
14026 else
14027 archiver_list_spec=$lt_cv_ar_at_file
14028 fi
14029
14030
14031
14032
14033
14034
14035
14036 if test -n "$ac_tool_prefix"; then
14037 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14038 set dummy ${ac_tool_prefix}strip; ac_word=$2
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14040 $as_echo_n "checking for $ac_word... " >&6; }
14041 if ${ac_cv_prog_STRIP+:} false; then :
14042 $as_echo_n "(cached) " >&6
14043 else
14044 if test -n "$STRIP"; then
14045 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14046 else
14047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14048 for as_dir in $PATH
14049 do
14050 IFS=$as_save_IFS
14051 test -z "$as_dir" && as_dir=.
14052 for ac_exec_ext in '' $ac_executable_extensions; do
14053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14054 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14056 break 2
14057 fi
14058 done
14059 done
14060 IFS=$as_save_IFS
14061
14062 fi
14063 fi
14064 STRIP=$ac_cv_prog_STRIP
14065 if test -n "$STRIP"; then
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
14067 case "$STRIP" in #(
14068 yes|ok|yes[\ ,]*) :
14069 $as_echo "${as__grn}$STRIP${as__std}" >&6 ;; #(
14070 no|failed|unsupported|no[\ ,]*) :
14071 $as_echo "${as__red}$STRIP${as__std}" >&6 ;; #(
14072 *) :
14073 $as_echo "${as__blu}$STRIP${as__std}" >&6 ;;
14074 esac; }
14075 else
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14077 $as_echo "${as__red}no${as__std}" >&6; }
14078 fi
14079
14080
14081 fi
14082 if test -z "$ac_cv_prog_STRIP"; then
14083 ac_ct_STRIP=$STRIP
14084 # Extract the first word of "strip", so it can be a program name with args.
14085 set dummy strip; ac_word=$2
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14087 $as_echo_n "checking for $ac_word... " >&6; }
14088 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
14089 $as_echo_n "(cached) " >&6
14090 else
14091 if test -n "$ac_ct_STRIP"; then
14092 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14093 else
14094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14095 for as_dir in $PATH
14096 do
14097 IFS=$as_save_IFS
14098 test -z "$as_dir" && as_dir=.
14099 for ac_exec_ext in '' $ac_executable_extensions; do
14100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14101 ac_cv_prog_ac_ct_STRIP="strip"
14102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14103 break 2
14104 fi
14105 done
14106 done
14107 IFS=$as_save_IFS
14108
14109 fi
14110 fi
14111 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14112 if test -n "$ac_ct_STRIP"; then
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
14114 case "$ac_ct_STRIP" in #(
14115 yes|ok|yes[\ ,]*) :
14116 $as_echo "${as__grn}$ac_ct_STRIP${as__std}" >&6 ;; #(
14117 no|failed|unsupported|no[\ ,]*) :
14118 $as_echo "${as__red}$ac_ct_STRIP${as__std}" >&6 ;; #(
14119 *) :
14120 $as_echo "${as__blu}$ac_ct_STRIP${as__std}" >&6 ;;
14121 esac; }
14122 else
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14124 $as_echo "${as__red}no${as__std}" >&6; }
14125 fi
14126
14127 if test "x$ac_ct_STRIP" = x; then
14128 STRIP=":"
14129 else
14130 case $cross_compiling:$ac_tool_warned in
14131 yes:)
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14133 $as_echo "$as_me: ${as__yel}WARNING: using cross tools not prefixed with host triplet${as__std}" >&2;}
14134 ac_tool_warned=yes ;;
14135 esac
14136 STRIP=$ac_ct_STRIP
14137 fi
14138 else
14139 STRIP="$ac_cv_prog_STRIP"
14140 fi
14141
14142 test -z "$STRIP" && STRIP=:
14143
14144
14145
14146
14147
14148
14149 if test -n "$ac_tool_prefix"; then
14150 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14151 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14153 $as_echo_n "checking for $ac_word... " >&6; }
14154 if ${ac_cv_prog_RANLIB+:} false; then :
14155 $as_echo_n "(cached) " >&6
14156 else
14157 if test -n "$RANLIB"; then
14158 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14159 else
14160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14161 for as_dir in $PATH
14162 do
14163 IFS=$as_save_IFS
14164 test -z "$as_dir" && as_dir=.
14165 for ac_exec_ext in '' $ac_executable_extensions; do
14166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14167 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14169 break 2
14170 fi
14171 done
14172 done
14173 IFS=$as_save_IFS
14174
14175 fi
14176 fi
14177 RANLIB=$ac_cv_prog_RANLIB
14178 if test -n "$RANLIB"; then
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
14180 case "$RANLIB" in #(
14181 yes|ok|yes[\ ,]*) :
14182 $as_echo "${as__grn}$RANLIB${as__std}" >&6 ;; #(
14183 no|failed|unsupported|no[\ ,]*) :
14184 $as_echo "${as__red}$RANLIB${as__std}" >&6 ;; #(
14185 *) :
14186 $as_echo "${as__blu}$RANLIB${as__std}" >&6 ;;
14187 esac; }
14188 else
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14190 $as_echo "${as__red}no${as__std}" >&6; }
14191 fi
14192
14193
14194 fi
14195 if test -z "$ac_cv_prog_RANLIB"; then
14196 ac_ct_RANLIB=$RANLIB
14197 # Extract the first word of "ranlib", so it can be a program name with args.
14198 set dummy ranlib; ac_word=$2
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14200 $as_echo_n "checking for $ac_word... " >&6; }
14201 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
14202 $as_echo_n "(cached) " >&6
14203 else
14204 if test -n "$ac_ct_RANLIB"; then
14205 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14206 else
14207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14208 for as_dir in $PATH
14209 do
14210 IFS=$as_save_IFS
14211 test -z "$as_dir" && as_dir=.
14212 for ac_exec_ext in '' $ac_executable_extensions; do
14213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14214 ac_cv_prog_ac_ct_RANLIB="ranlib"
14215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14216 break 2
14217 fi
14218 done
14219 done
14220 IFS=$as_save_IFS
14221
14222 fi
14223 fi
14224 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14225 if test -n "$ac_ct_RANLIB"; then
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
14227 case "$ac_ct_RANLIB" in #(
14228 yes|ok|yes[\ ,]*) :
14229 $as_echo "${as__grn}$ac_ct_RANLIB${as__std}" >&6 ;; #(
14230 no|failed|unsupported|no[\ ,]*) :
14231 $as_echo "${as__red}$ac_ct_RANLIB${as__std}" >&6 ;; #(
14232 *) :
14233 $as_echo "${as__blu}$ac_ct_RANLIB${as__std}" >&6 ;;
14234 esac; }
14235 else
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14237 $as_echo "${as__red}no${as__std}" >&6; }
14238 fi
14239
14240 if test "x$ac_ct_RANLIB" = x; then
14241 RANLIB=":"
14242 else
14243 case $cross_compiling:$ac_tool_warned in
14244 yes:)
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14246 $as_echo "$as_me: ${as__yel}WARNING: using cross tools not prefixed with host triplet${as__std}" >&2;}
14247 ac_tool_warned=yes ;;
14248 esac
14249 RANLIB=$ac_ct_RANLIB
14250 fi
14251 else
14252 RANLIB="$ac_cv_prog_RANLIB"
14253 fi
14254
14255 test -z "$RANLIB" && RANLIB=:
14256
14257
14258
14259
14260
14261
14262 # Determine commands to create old-style static archives.
14263 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
14264 old_postinstall_cmds='chmod 644 $oldlib'
14265 old_postuninstall_cmds=
14266
14267 if test -n "$RANLIB"; then
14268 case $host_os in
14269 bitrig* | openbsd*)
14270 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
14271 ;;
14272 *)
14273 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
14274 ;;
14275 esac
14276 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
14277 fi
14278
14279 case $host_os in
14280 darwin*)
14281 lock_old_archive_extraction=yes ;;
14282 *)
14283 lock_old_archive_extraction=no ;;
14284 esac
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324 # If no C compiler was specified, use CC.
14325 LTCC=${LTCC-"$CC"}
14326
14327 # If no C compiler flags were specified, use CFLAGS.
14328 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14329
14330 # Allow CC to be a program name with arguments.
14331 compiler=$CC
14332
14333
14334 # Check for command to grab the raw symbol name followed by C symbol from nm.
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
14336 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
14337 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
14338 $as_echo_n "(cached) " >&6
14339 else
14340
14341 # These are sane defaults that work on at least a few old systems.
14342 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
14343
14344 # Character class describing NM global symbol codes.
14345 symcode='[BCDEGRST]'
14346
14347 # Regexp to match symbols that can be accessed directly from C.
14348 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14349
14350 # Define system-specific variables.
14351 case $host_os in
14352 aix*)
14353 symcode='[BCDT]'
14354 ;;
14355 cygwin* | mingw* | pw32* | cegcc*)
14356 symcode='[ABCDGISTW]'
14357 ;;
14358 hpux*)
14359 if test ia64 = "$host_cpu"; then
14360 symcode='[ABCDEGRST]'
14361 fi
14362 ;;
14363 irix* | nonstopux*)
14364 symcode='[BCDEGRST]'
14365 ;;
14366 osf*)
14367 symcode='[BCDEGQRST]'
14368 ;;
14369 solaris*)
14370 symcode='[BDRT]'
14371 ;;
14372 sco3.2v5*)
14373 symcode='[DT]'
14374 ;;
14375 sysv4.2uw2*)
14376 symcode='[DT]'
14377 ;;
14378 sysv5* | sco5v6* | unixware* | OpenUNIX*)
14379 symcode='[ABDT]'
14380 ;;
14381 sysv4)
14382 symcode='[DFNSTU]'
14383 ;;
14384 esac
14385
14386 # If we're using GNU nm, then use its standard symbol codes.
14387 case `$NM -V 2>&1` in
14388 *GNU* | *'with BFD'*)
14389 symcode='[ABCDGIRSTW]' ;;
14390 esac
14391
14392 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
14393 # Gets list of data symbols to import.
14394 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
14395 # Adjust the below global symbol transforms to fixup imported variables.
14396 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
14397 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
14398 lt_c_name_lib_hook="\
14399 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
14400 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
14401 else
14402 # Disable hooks by default.
14403 lt_cv_sys_global_symbol_to_import=
14404 lt_cdecl_hook=
14405 lt_c_name_hook=
14406 lt_c_name_lib_hook=
14407 fi
14408
14409 # Transform an extracted symbol line into a proper C declaration.
14410 # Some systems (esp. on ia64) link data and code symbols differently,
14411 # so use this general approach.
14412 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
14413 $lt_cdecl_hook\
14414 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
14415 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
14416
14417 # Transform an extracted symbol line into symbol name and symbol address
14418 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
14419 $lt_c_name_hook\
14420 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
14421 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
14422
14423 # Transform an extracted symbol line into symbol name with lib prefix and
14424 # symbol address.
14425 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
14426 $lt_c_name_lib_hook\
14427 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
14428 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
14429 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
14430
14431 # Handle CRLF in mingw tool chain
14432 opt_cr=
14433 case $build_os in
14434 mingw*)
14435 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14436 ;;
14437 esac
14438
14439 # Try without a prefix underscore, then with it.
14440 for ac_symprfx in "" "_"; do
14441
14442 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14443 symxfrm="\\1 $ac_symprfx\\2 \\2"
14444
14445 # Write the raw and C identifiers.
14446 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
14447 # Fake it for dumpbin and say T for any non-static function,
14448 # D for any global variable and I for any imported variable.
14449 # Also find C++ and __fastcall symbols from MSVC++,
14450 # which start with @ or ?.
14451 lt_cv_sys_global_symbol_pipe="$AWK '"\
14452 " {last_section=section; section=\$ 3};"\
14453 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
14454 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
14455 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
14456 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
14457 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
14458 " \$ 0!~/External *\|/{next};"\
14459 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
14460 " {if(hide[section]) next};"\
14461 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
14462 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
14463 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
14464 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
14465 " ' prfx=^$ac_symprfx"
14466 else
14467 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14468 fi
14469 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
14470
14471 # Check to see that the pipe works correctly.
14472 pipe_works=no
14473
14474 rm -f conftest*
14475 cat > conftest.$ac_ext <<_LT_EOF
14476 #ifdef __cplusplus
14477 extern "C" {
14478 #endif
14479 char nm_test_var;
14480 void nm_test_func(void);
14481 void nm_test_func(void){}
14482 #ifdef __cplusplus
14483 }
14484 #endif
14485 int main(){nm_test_var='a';nm_test_func();return(0);}
14486 _LT_EOF
14487
14488 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14489 (eval $ac_compile) 2>&5
14490 ac_status=$?
14491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14492 test $ac_status = 0; }; then
14493 # Now try to grab the symbols.
14494 nlist=conftest.nm
14495 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
14496 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
14497 ac_status=$?
14498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14499 test $ac_status = 0; } && test -s "$nlist"; then
14500 # Try sorting and uniquifying the output.
14501 if sort "$nlist" | uniq > "$nlist"T; then
14502 mv -f "$nlist"T "$nlist"
14503 else
14504 rm -f "$nlist"T
14505 fi
14506
14507 # Make sure that we snagged all the symbols we need.
14508 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14509 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14510 cat <<_LT_EOF > conftest.$ac_ext
14511 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
14512 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
14513 /* DATA imports from DLLs on WIN32 can't be const, because runtime
14514 relocations are performed -- see ld's documentation on pseudo-relocs. */
14515 # define LT_DLSYM_CONST
14516 #elif defined __osf__
14517 /* This system does not cope well with relocations in const data. */
14518 # define LT_DLSYM_CONST
14519 #else
14520 # define LT_DLSYM_CONST const
14521 #endif
14522
14523 #ifdef __cplusplus
14524 extern "C" {
14525 #endif
14526
14527 _LT_EOF
14528 # Now generate the symbol file.
14529 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14530
14531 cat <<_LT_EOF >> conftest.$ac_ext
14532
14533 /* The mapping between symbol names and symbols. */
14534 LT_DLSYM_CONST struct {
14535 const char *name;
14536 void *address;
14537 }
14538 lt__PROGRAM__LTX_preloaded_symbols[] =
14539 {
14540 { "@PROGRAM@", (void *) 0 },
14541 _LT_EOF
14542 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14543 cat <<\_LT_EOF >> conftest.$ac_ext
14544 {0, (void *) 0}
14545 };
14546
14547 /* This works around a problem in FreeBSD linker */
14548 #ifdef FREEBSD_WORKAROUND
14549 static const void *lt_preloaded_setup() {
14550 return lt__PROGRAM__LTX_preloaded_symbols;
14551 }
14552 #endif
14553
14554 #ifdef __cplusplus
14555 }
14556 #endif
14557 _LT_EOF
14558 # Now try linking the two files.
14559 mv conftest.$ac_objext conftstm.$ac_objext
14560 lt_globsym_save_LIBS=$LIBS
14561 lt_globsym_save_CFLAGS=$CFLAGS
14562 LIBS=conftstm.$ac_objext
14563 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14564 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14565 (eval $ac_link) 2>&5
14566 ac_status=$?
14567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14568 test $ac_status = 0; } && test -s conftest$ac_exeext; then
14569 pipe_works=yes
14570 fi
14571 LIBS=$lt_globsym_save_LIBS
14572 CFLAGS=$lt_globsym_save_CFLAGS
14573 else
14574 echo "cannot find nm_test_func in $nlist" >&5
14575 fi
14576 else
14577 echo "cannot find nm_test_var in $nlist" >&5
14578 fi
14579 else
14580 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14581 fi
14582 else
14583 echo "$progname: failed program was:" >&5
14584 cat conftest.$ac_ext >&5
14585 fi
14586 rm -rf conftest* conftst*
14587
14588 # Do not use the global_symbol_pipe unless it works.
14589 if test yes = "$pipe_works"; then
14590 break
14591 else
14592 lt_cv_sys_global_symbol_pipe=
14593 fi
14594 done
14595
14596 fi
14597
14598 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14599 lt_cv_sys_global_symbol_to_cdecl=
14600 fi
14601 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14603 $as_echo "${as__red}failed${as__std}" >&6; }
14604 else
14605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14606 $as_echo "${as__grn}ok${as__std}" >&6; }
14607 fi
14608
14609 # Response file support.
14610 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
14611 nm_file_list_spec='@'
14612 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
14613 nm_file_list_spec='@'
14614 fi
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
14653 $as_echo_n "checking for sysroot... " >&6; }
14654
14655 # Check whether --with-sysroot was given.
14656 if test "${with_sysroot+set}" = set; then :
14657 withval=$with_sysroot;
14658 else
14659 with_sysroot=no
14660 fi
14661
14662
14663 lt_sysroot=
14664 case $with_sysroot in #(
14665 yes)
14666 if test yes = "$GCC"; then
14667 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
14668 fi
14669 ;; #(
14670 /*)
14671 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
14672 ;; #(
14673 no|'')
14674 ;; #(
14675 *)
14676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
14677 case "$with_sysroot" in #(
14678 yes|ok|yes[\ ,]*) :
14679 $as_echo "${as__grn}$with_sysroot${as__std}" >&6 ;; #(
14680 no|failed|unsupported|no[\ ,]*) :
14681 $as_echo "${as__red}$with_sysroot${as__std}" >&6 ;; #(
14682 *) :
14683 $as_echo "${as__blu}$with_sysroot${as__std}" >&6 ;;
14684 esac; }
14685 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
14686 ;;
14687 esac
14688
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
14690 case "${lt_sysroot:-no}" in #(
14691 yes|ok|yes[\ ,]*) :
14692 $as_echo "${as__grn}${lt_sysroot:-no}${as__std}" >&6 ;; #(
14693 no|failed|unsupported|no[\ ,]*) :
14694 $as_echo "${as__red}${lt_sysroot:-no}${as__std}" >&6 ;; #(
14695 *) :
14696 $as_echo "${as__blu}${lt_sysroot:-no}${as__std}" >&6 ;;
14697 esac; }
14698
14699
14700
14701
14702
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
14704 $as_echo_n "checking for a working dd... " >&6; }
14705 if ${ac_cv_path_lt_DD+:} false; then :
14706 $as_echo_n "(cached) " >&6
14707 else
14708 printf 0123456789abcdef0123456789abcdef >conftest.i
14709 cat conftest.i conftest.i >conftest2.i
14710 : ${lt_DD:=$DD}
14711 if test -z "$lt_DD"; then
14712 ac_path_lt_DD_found=false
14713 # Loop through the user's path and test for each of PROGNAME-LIST
14714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14715 for as_dir in $PATH
14716 do
14717 IFS=$as_save_IFS
14718 test -z "$as_dir" && as_dir=.
14719 for ac_prog in dd; do
14720 for ac_exec_ext in '' $ac_executable_extensions; do
14721 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
14722 as_fn_executable_p "$ac_path_lt_DD" || continue
14723 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
14724 cmp -s conftest.i conftest.out \
14725 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
14726 fi
14727 $ac_path_lt_DD_found && break 3
14728 done
14729 done
14730 done
14731 IFS=$as_save_IFS
14732 if test -z "$ac_cv_path_lt_DD"; then
14733 :
14734 fi
14735 else
14736 ac_cv_path_lt_DD=$lt_DD
14737 fi
14738
14739 rm -f conftest.i conftest2.i conftest.out
14740 fi
14741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
14742 case "$ac_cv_path_lt_DD" in #(
14743 yes|ok|yes[\ ,]*) :
14744 $as_echo "${as__grn}$ac_cv_path_lt_DD${as__std}" >&6 ;; #(
14745 no|failed|unsupported|no[\ ,]*) :
14746 $as_echo "${as__red}$ac_cv_path_lt_DD${as__std}" >&6 ;; #(
14747 *) :
14748 $as_echo "${as__blu}$ac_cv_path_lt_DD${as__std}" >&6 ;;
14749 esac; }
14750
14751
14752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
14753 $as_echo_n "checking how to truncate binary pipes... " >&6; }
14754 if ${lt_cv_truncate_bin+:} false; then :
14755 $as_echo_n "(cached) " >&6
14756 else
14757 printf 0123456789abcdef0123456789abcdef >conftest.i
14758 cat conftest.i conftest.i >conftest2.i
14759 lt_cv_truncate_bin=
14760 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
14761 cmp -s conftest.i conftest.out \
14762 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
14763 fi
14764 rm -f conftest.i conftest2.i conftest.out
14765 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
14766 fi
14767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
14768 case "$lt_cv_truncate_bin" in #(
14769 yes|ok|yes[\ ,]*) :
14770 $as_echo "${as__grn}$lt_cv_truncate_bin${as__std}" >&6 ;; #(
14771 no|failed|unsupported|no[\ ,]*) :
14772 $as_echo "${as__red}$lt_cv_truncate_bin${as__std}" >&6 ;; #(
14773 *) :
14774 $as_echo "${as__blu}$lt_cv_truncate_bin${as__std}" >&6 ;;
14775 esac; }
14776
14777
14778
14779
14780
14781
14782
14783 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
14784 func_cc_basename ()
14785 {
14786 for cc_temp in $*""; do
14787 case $cc_temp in
14788 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14789 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14790 \-*) ;;
14791 *) break;;
14792 esac
14793 done
14794 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14795 }
14796
14797 # Check whether --enable-libtool-lock was given.
14798 if test "${enable_libtool_lock+set}" = set; then :
14799 enableval=$enable_libtool_lock;
14800 fi
14801
14802 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
14803
14804 # Some flags need to be propagated to the compiler or linker for good
14805 # libtool support.
14806 case $host in
14807 ia64-*-hpux*)
14808 # Find out what ABI is being produced by ac_compile, and set mode
14809 # options accordingly.
14810 echo 'int i;' > conftest.$ac_ext
14811 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14812 (eval $ac_compile) 2>&5
14813 ac_status=$?
14814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14815 test $ac_status = 0; }; then
14816 case `/usr/bin/file conftest.$ac_objext` in
14817 *ELF-32*)
14818 HPUX_IA64_MODE=32
14819 ;;
14820 *ELF-64*)
14821 HPUX_IA64_MODE=64
14822 ;;
14823 esac
14824 fi
14825 rm -rf conftest*
14826 ;;
14827 *-*-irix6*)
14828 # Find out what ABI is being produced by ac_compile, and set linker
14829 # options accordingly.
14830 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14831 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14832 (eval $ac_compile) 2>&5
14833 ac_status=$?
14834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14835 test $ac_status = 0; }; then
14836 if test yes = "$lt_cv_prog_gnu_ld"; then
14837 case `/usr/bin/file conftest.$ac_objext` in
14838 *32-bit*)
14839 LD="${LD-ld} -melf32bsmip"
14840 ;;
14841 *N32*)
14842 LD="${LD-ld} -melf32bmipn32"
14843 ;;
14844 *64-bit*)
14845 LD="${LD-ld} -melf64bmip"
14846 ;;
14847 esac
14848 else
14849 case `/usr/bin/file conftest.$ac_objext` in
14850 *32-bit*)
14851 LD="${LD-ld} -32"
14852 ;;
14853 *N32*)
14854 LD="${LD-ld} -n32"
14855 ;;
14856 *64-bit*)
14857 LD="${LD-ld} -64"
14858 ;;
14859 esac
14860 fi
14861 fi
14862 rm -rf conftest*
14863 ;;
14864
14865 mips64*-*linux*)
14866 # Find out what ABI is being produced by ac_compile, and set linker
14867 # options accordingly.
14868 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14869 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14870 (eval $ac_compile) 2>&5
14871 ac_status=$?
14872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14873 test $ac_status = 0; }; then
14874 emul=elf
14875 case `/usr/bin/file conftest.$ac_objext` in
14876 *32-bit*)
14877 emul="${emul}32"
14878 ;;
14879 *64-bit*)
14880 emul="${emul}64"
14881 ;;
14882 esac
14883 case `/usr/bin/file conftest.$ac_objext` in
14884 *MSB*)
14885 emul="${emul}btsmip"
14886 ;;
14887 *LSB*)
14888 emul="${emul}ltsmip"
14889 ;;
14890 esac
14891 case `/usr/bin/file conftest.$ac_objext` in
14892 *N32*)
14893 emul="${emul}n32"
14894 ;;
14895 esac
14896 LD="${LD-ld} -m $emul"
14897 fi
14898 rm -rf conftest*
14899 ;;
14900
14901 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14902 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14903 # Find out what ABI is being produced by ac_compile, and set linker
14904 # options accordingly. Note that the listed cases only cover the
14905 # situations where additional linker options are needed (such as when
14906 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
14907 # vice versa); the common cases where no linker options are needed do
14908 # not appear in the list.
14909 echo 'int i;' > conftest.$ac_ext
14910 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14911 (eval $ac_compile) 2>&5
14912 ac_status=$?
14913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14914 test $ac_status = 0; }; then
14915 case `/usr/bin/file conftest.o` in
14916 *32-bit*)
14917 case $host in
14918 x86_64-*kfreebsd*-gnu)
14919 LD="${LD-ld} -m elf_i386_fbsd"
14920 ;;
14921 x86_64-*linux*)
14922 case `/usr/bin/file conftest.o` in
14923 *x86-64*)
14924 LD="${LD-ld} -m elf32_x86_64"
14925 ;;
14926 *)
14927 LD="${LD-ld} -m elf_i386"
14928 ;;
14929 esac
14930 ;;
14931 powerpc64le-*linux*)
14932 LD="${LD-ld} -m elf32lppclinux"
14933 ;;
14934 powerpc64-*linux*)
14935 LD="${LD-ld} -m elf32ppclinux"
14936 ;;
14937 s390x-*linux*)
14938 LD="${LD-ld} -m elf_s390"
14939 ;;
14940 sparc64-*linux*)
14941 LD="${LD-ld} -m elf32_sparc"
14942 ;;
14943 esac
14944 ;;
14945 *64-bit*)
14946 case $host in
14947 x86_64-*kfreebsd*-gnu)
14948 LD="${LD-ld} -m elf_x86_64_fbsd"
14949 ;;
14950 x86_64-*linux*)
14951 LD="${LD-ld} -m elf_x86_64"
14952 ;;
14953 powerpcle-*linux*)
14954 LD="${LD-ld} -m elf64lppc"
14955 ;;
14956 powerpc-*linux*)
14957 LD="${LD-ld} -m elf64ppc"
14958 ;;
14959 s390*-*linux*|s390*-*tpf*)
14960 LD="${LD-ld} -m elf64_s390"
14961 ;;
14962 sparc*-*linux*)
14963 LD="${LD-ld} -m elf64_sparc"
14964 ;;
14965 esac
14966 ;;
14967 esac
14968 fi
14969 rm -rf conftest*
14970 ;;
14971
14972 *-*-sco3.2v5*)
14973 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14974 SAVE_CFLAGS=$CFLAGS
14975 CFLAGS="$CFLAGS -belf"
14976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14977 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
14978 if ${lt_cv_cc_needs_belf+:} false; then :
14979 $as_echo_n "(cached) " >&6
14980 else
14981 ac_ext=c
14982 ac_cpp='$CPP $CPPFLAGS'
14983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14986
14987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14988 /* end confdefs.h. */
14989
14990 int
14991 main ()
14992 {
14993
14994 ;
14995 return 0;
14996 }
14997 _ACEOF
14998 if ac_fn_c_try_link "$LINENO"; then :
14999 lt_cv_cc_needs_belf=yes
15000 else
15001 lt_cv_cc_needs_belf=no
15002 fi
15003 rm -f core conftest.err conftest.$ac_objext \
15004 conftest$ac_exeext conftest.$ac_ext
15005 ac_ext=c
15006 ac_cpp='$CPP $CPPFLAGS'
15007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15010
15011 fi
15012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
15013 case "$lt_cv_cc_needs_belf" in #(
15014 yes|ok|yes[\ ,]*) :
15015 $as_echo "${as__grn}$lt_cv_cc_needs_belf${as__std}" >&6 ;; #(
15016 no|failed|unsupported|no[\ ,]*) :
15017 $as_echo "${as__red}$lt_cv_cc_needs_belf${as__std}" >&6 ;; #(
15018 *) :
15019 $as_echo "${as__blu}$lt_cv_cc_needs_belf${as__std}" >&6 ;;
15020 esac; }
15021 if test yes != "$lt_cv_cc_needs_belf"; then
15022 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
15023 CFLAGS=$SAVE_CFLAGS
15024 fi
15025 ;;
15026 *-*solaris*)
15027 # Find out what ABI is being produced by ac_compile, and set linker
15028 # options accordingly.
15029 echo 'int i;' > conftest.$ac_ext
15030 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15031 (eval $ac_compile) 2>&5
15032 ac_status=$?
15033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15034 test $ac_status = 0; }; then
15035 case `/usr/bin/file conftest.o` in
15036 *64-bit*)
15037 case $lt_cv_prog_gnu_ld in
15038 yes*)
15039 case $host in
15040 i?86-*-solaris*|x86_64-*-solaris*)
15041 LD="${LD-ld} -m elf_x86_64"
15042 ;;
15043 sparc*-*-solaris*)
15044 LD="${LD-ld} -m elf64_sparc"
15045 ;;
15046 esac
15047 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
15048 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
15049 LD=${LD-ld}_sol2
15050 fi
15051 ;;
15052 *)
15053 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
15054 LD="${LD-ld} -64"
15055 fi
15056 ;;
15057 esac
15058 ;;
15059 esac
15060 fi
15061 rm -rf conftest*
15062 ;;
15063 esac
15064
15065 need_locks=$enable_libtool_lock
15066
15067 if test -n "$ac_tool_prefix"; then
15068 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
15069 set dummy ${ac_tool_prefix}mt; ac_word=$2
15070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15071 $as_echo_n "checking for $ac_word... " >&6; }
15072 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
15073 $as_echo_n "(cached) " >&6
15074 else
15075 if test -n "$MANIFEST_TOOL"; then
15076 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
15077 else
15078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15079 for as_dir in $PATH
15080 do
15081 IFS=$as_save_IFS
15082 test -z "$as_dir" && as_dir=.
15083 for ac_exec_ext in '' $ac_executable_extensions; do
15084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15085 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
15086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15087 break 2
15088 fi
15089 done
15090 done
15091 IFS=$as_save_IFS
15092
15093 fi
15094 fi
15095 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
15096 if test -n "$MANIFEST_TOOL"; then
15097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
15098 case "$MANIFEST_TOOL" in #(
15099 yes|ok|yes[\ ,]*) :
15100 $as_echo "${as__grn}$MANIFEST_TOOL${as__std}" >&6 ;; #(
15101 no|failed|unsupported|no[\ ,]*) :
15102 $as_echo "${as__red}$MANIFEST_TOOL${as__std}" >&6 ;; #(
15103 *) :
15104 $as_echo "${as__blu}$MANIFEST_TOOL${as__std}" >&6 ;;
15105 esac; }
15106 else
15107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15108 $as_echo "${as__red}no${as__std}" >&6; }
15109 fi
15110
15111
15112 fi
15113 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
15114 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
15115 # Extract the first word of "mt", so it can be a program name with args.
15116 set dummy mt; ac_word=$2
15117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15118 $as_echo_n "checking for $ac_word... " >&6; }
15119 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
15120 $as_echo_n "(cached) " >&6
15121 else
15122 if test -n "$ac_ct_MANIFEST_TOOL"; then
15123 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
15124 else
15125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15126 for as_dir in $PATH
15127 do
15128 IFS=$as_save_IFS
15129 test -z "$as_dir" && as_dir=.
15130 for ac_exec_ext in '' $ac_executable_extensions; do
15131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15132 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
15133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15134 break 2
15135 fi
15136 done
15137 done
15138 IFS=$as_save_IFS
15139
15140 fi
15141 fi
15142 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
15143 if test -n "$ac_ct_MANIFEST_TOOL"; then
15144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
15145 case "$ac_ct_MANIFEST_TOOL" in #(
15146 yes|ok|yes[\ ,]*) :
15147 $as_echo "${as__grn}$ac_ct_MANIFEST_TOOL${as__std}" >&6 ;; #(
15148 no|failed|unsupported|no[\ ,]*) :
15149 $as_echo "${as__red}$ac_ct_MANIFEST_TOOL${as__std}" >&6 ;; #(
15150 *) :
15151 $as_echo "${as__blu}$ac_ct_MANIFEST_TOOL${as__std}" >&6 ;;
15152 esac; }
15153 else
15154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15155 $as_echo "${as__red}no${as__std}" >&6; }
15156 fi
15157
15158 if test "x$ac_ct_MANIFEST_TOOL" = x; then
15159 MANIFEST_TOOL=":"
15160 else
15161 case $cross_compiling:$ac_tool_warned in
15162 yes:)
15163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15164 $as_echo "$as_me: ${as__yel}WARNING: using cross tools not prefixed with host triplet${as__std}" >&2;}
15165 ac_tool_warned=yes ;;
15166 esac
15167 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
15168 fi
15169 else
15170 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
15171 fi
15172
15173 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
15174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
15175 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
15176 if ${lt_cv_path_mainfest_tool+:} false; then :
15177 $as_echo_n "(cached) " >&6
15178 else
15179 lt_cv_path_mainfest_tool=no
15180 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
15181 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
15182 cat conftest.err >&5
15183 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
15184 lt_cv_path_mainfest_tool=yes
15185 fi
15186 rm -f conftest*
15187 fi
15188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
15189 case "$lt_cv_path_mainfest_tool" in #(
15190 yes|ok|yes[\ ,]*) :
15191 $as_echo "${as__grn}$lt_cv_path_mainfest_tool${as__std}" >&6 ;; #(
15192 no|failed|unsupported|no[\ ,]*) :
15193 $as_echo "${as__red}$lt_cv_path_mainfest_tool${as__std}" >&6 ;; #(
15194 *) :
15195 $as_echo "${as__blu}$lt_cv_path_mainfest_tool${as__std}" >&6 ;;
15196 esac; }
15197 if test yes != "$lt_cv_path_mainfest_tool"; then
15198 MANIFEST_TOOL=:
15199 fi
15200
15201
15202
15203
15204
15205
15206 case $host_os in
15207 rhapsody* | darwin*)
15208 if test -n "$ac_tool_prefix"; then
15209 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
15210 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
15211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15212 $as_echo_n "checking for $ac_word... " >&6; }
15213 if ${ac_cv_prog_DSYMUTIL+:} false; then :
15214 $as_echo_n "(cached) " >&6
15215 else
15216 if test -n "$DSYMUTIL"; then
15217 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
15218 else
15219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15220 for as_dir in $PATH
15221 do
15222 IFS=$as_save_IFS
15223 test -z "$as_dir" && as_dir=.
15224 for ac_exec_ext in '' $ac_executable_extensions; do
15225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15226 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
15227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15228 break 2
15229 fi
15230 done
15231 done
15232 IFS=$as_save_IFS
15233
15234 fi
15235 fi
15236 DSYMUTIL=$ac_cv_prog_DSYMUTIL
15237 if test -n "$DSYMUTIL"; then
15238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
15239 case "$DSYMUTIL" in #(
15240 yes|ok|yes[\ ,]*) :
15241 $as_echo "${as__grn}$DSYMUTIL${as__std}" >&6 ;; #(
15242 no|failed|unsupported|no[\ ,]*) :
15243 $as_echo "${as__red}$DSYMUTIL${as__std}" >&6 ;; #(
15244 *) :
15245 $as_echo "${as__blu}$DSYMUTIL${as__std}" >&6 ;;
15246 esac; }
15247 else
15248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15249 $as_echo "${as__red}no${as__std}" >&6; }
15250 fi
15251
15252
15253 fi
15254 if test -z "$ac_cv_prog_DSYMUTIL"; then
15255 ac_ct_DSYMUTIL=$DSYMUTIL
15256 # Extract the first word of "dsymutil", so it can be a program name with args.
15257 set dummy dsymutil; ac_word=$2
15258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15259 $as_echo_n "checking for $ac_word... " >&6; }
15260 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
15261 $as_echo_n "(cached) " >&6
15262 else
15263 if test -n "$ac_ct_DSYMUTIL"; then
15264 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
15265 else
15266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15267 for as_dir in $PATH
15268 do
15269 IFS=$as_save_IFS
15270 test -z "$as_dir" && as_dir=.
15271 for ac_exec_ext in '' $ac_executable_extensions; do
15272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15273 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
15274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15275 break 2
15276 fi
15277 done
15278 done
15279 IFS=$as_save_IFS
15280
15281 fi
15282 fi
15283 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
15284 if test -n "$ac_ct_DSYMUTIL"; then
15285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
15286 case "$ac_ct_DSYMUTIL" in #(
15287 yes|ok|yes[\ ,]*) :
15288 $as_echo "${as__grn}$ac_ct_DSYMUTIL${as__std}" >&6 ;; #(
15289 no|failed|unsupported|no[\ ,]*) :
15290 $as_echo "${as__red}$ac_ct_DSYMUTIL${as__std}" >&6 ;; #(
15291 *) :
15292 $as_echo "${as__blu}$ac_ct_DSYMUTIL${as__std}" >&6 ;;
15293 esac; }
15294 else
15295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15296 $as_echo "${as__red}no${as__std}" >&6; }
15297 fi
15298
15299 if test "x$ac_ct_DSYMUTIL" = x; then
15300 DSYMUTIL=":"
15301 else
15302 case $cross_compiling:$ac_tool_warned in
15303 yes:)
15304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15305 $as_echo "$as_me: ${as__yel}WARNING: using cross tools not prefixed with host triplet${as__std}" >&2;}
15306 ac_tool_warned=yes ;;
15307 esac
15308 DSYMUTIL=$ac_ct_DSYMUTIL
15309 fi
15310 else
15311 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
15312 fi
15313
15314 if test -n "$ac_tool_prefix"; then
15315 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
15316 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
15317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15318 $as_echo_n "checking for $ac_word... " >&6; }
15319 if ${ac_cv_prog_NMEDIT+:} false; then :
15320 $as_echo_n "(cached) " >&6
15321 else
15322 if test -n "$NMEDIT"; then
15323 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
15324 else
15325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15326 for as_dir in $PATH
15327 do
15328 IFS=$as_save_IFS
15329 test -z "$as_dir" && as_dir=.
15330 for ac_exec_ext in '' $ac_executable_extensions; do
15331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15332 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
15333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15334 break 2
15335 fi
15336 done
15337 done
15338 IFS=$as_save_IFS
15339
15340 fi
15341 fi
15342 NMEDIT=$ac_cv_prog_NMEDIT
15343 if test -n "$NMEDIT"; then
15344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
15345 case "$NMEDIT" in #(
15346 yes|ok|yes[\ ,]*) :
15347 $as_echo "${as__grn}$NMEDIT${as__std}" >&6 ;; #(
15348 no|failed|unsupported|no[\ ,]*) :
15349 $as_echo "${as__red}$NMEDIT${as__std}" >&6 ;; #(
15350 *) :
15351 $as_echo "${as__blu}$NMEDIT${as__std}" >&6 ;;
15352 esac; }
15353 else
15354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15355 $as_echo "${as__red}no${as__std}" >&6; }
15356 fi
15357
15358
15359 fi
15360 if test -z "$ac_cv_prog_NMEDIT"; then
15361 ac_ct_NMEDIT=$NMEDIT
15362 # Extract the first word of "nmedit", so it can be a program name with args.
15363 set dummy nmedit; ac_word=$2
15364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15365 $as_echo_n "checking for $ac_word... " >&6; }
15366 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
15367 $as_echo_n "(cached) " >&6
15368 else
15369 if test -n "$ac_ct_NMEDIT"; then
15370 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
15371 else
15372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15373 for as_dir in $PATH
15374 do
15375 IFS=$as_save_IFS
15376 test -z "$as_dir" && as_dir=.
15377 for ac_exec_ext in '' $ac_executable_extensions; do
15378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15379 ac_cv_prog_ac_ct_NMEDIT="nmedit"
15380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15381 break 2
15382 fi
15383 done
15384 done
15385 IFS=$as_save_IFS
15386
15387 fi
15388 fi
15389 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
15390 if test -n "$ac_ct_NMEDIT"; then
15391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
15392 case "$ac_ct_NMEDIT" in #(
15393 yes|ok|yes[\ ,]*) :
15394 $as_echo "${as__grn}$ac_ct_NMEDIT${as__std}" >&6 ;; #(
15395 no|failed|unsupported|no[\ ,]*) :
15396 $as_echo "${as__red}$ac_ct_NMEDIT${as__std}" >&6 ;; #(
15397 *) :
15398 $as_echo "${as__blu}$ac_ct_NMEDIT${as__std}" >&6 ;;
15399 esac; }
15400 else
15401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15402 $as_echo "${as__red}no${as__std}" >&6; }
15403 fi
15404
15405 if test "x$ac_ct_NMEDIT" = x; then
15406 NMEDIT=":"
15407 else
15408 case $cross_compiling:$ac_tool_warned in
15409 yes:)
15410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15411 $as_echo "$as_me: ${as__yel}WARNING: using cross tools not prefixed with host triplet${as__std}" >&2;}
15412 ac_tool_warned=yes ;;
15413 esac
15414 NMEDIT=$ac_ct_NMEDIT
15415 fi
15416 else
15417 NMEDIT="$ac_cv_prog_NMEDIT"
15418 fi
15419
15420 if test -n "$ac_tool_prefix"; then
15421 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
15422 set dummy ${ac_tool_prefix}lipo; ac_word=$2
15423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15424 $as_echo_n "checking for $ac_word... " >&6; }
15425 if ${ac_cv_prog_LIPO+:} false; then :
15426 $as_echo_n "(cached) " >&6
15427 else
15428 if test -n "$LIPO"; then
15429 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
15430 else
15431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15432 for as_dir in $PATH
15433 do
15434 IFS=$as_save_IFS
15435 test -z "$as_dir" && as_dir=.
15436 for ac_exec_ext in '' $ac_executable_extensions; do
15437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15438 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
15439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15440 break 2
15441 fi
15442 done
15443 done
15444 IFS=$as_save_IFS
15445
15446 fi
15447 fi
15448 LIPO=$ac_cv_prog_LIPO
15449 if test -n "$LIPO"; then
15450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
15451 case "$LIPO" in #(
15452 yes|ok|yes[\ ,]*) :
15453 $as_echo "${as__grn}$LIPO${as__std}" >&6 ;; #(
15454 no|failed|unsupported|no[\ ,]*) :
15455 $as_echo "${as__red}$LIPO${as__std}" >&6 ;; #(
15456 *) :
15457 $as_echo "${as__blu}$LIPO${as__std}" >&6 ;;
15458 esac; }
15459 else
15460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15461 $as_echo "${as__red}no${as__std}" >&6; }
15462 fi
15463
15464
15465 fi
15466 if test -z "$ac_cv_prog_LIPO"; then
15467 ac_ct_LIPO=$LIPO
15468 # Extract the first word of "lipo", so it can be a program name with args.
15469 set dummy lipo; ac_word=$2
15470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15471 $as_echo_n "checking for $ac_word... " >&6; }
15472 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
15473 $as_echo_n "(cached) " >&6
15474 else
15475 if test -n "$ac_ct_LIPO"; then
15476 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
15477 else
15478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15479 for as_dir in $PATH
15480 do
15481 IFS=$as_save_IFS
15482 test -z "$as_dir" && as_dir=.
15483 for ac_exec_ext in '' $ac_executable_extensions; do
15484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15485 ac_cv_prog_ac_ct_LIPO="lipo"
15486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15487 break 2
15488 fi
15489 done
15490 done
15491 IFS=$as_save_IFS
15492
15493 fi
15494 fi
15495 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
15496 if test -n "$ac_ct_LIPO"; then
15497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
15498 case "$ac_ct_LIPO" in #(
15499 yes|ok|yes[\ ,]*) :
15500 $as_echo "${as__grn}$ac_ct_LIPO${as__std}" >&6 ;; #(
15501 no|failed|unsupported|no[\ ,]*) :
15502 $as_echo "${as__red}$ac_ct_LIPO${as__std}" >&6 ;; #(
15503 *) :
15504 $as_echo "${as__blu}$ac_ct_LIPO${as__std}" >&6 ;;
15505 esac; }
15506 else
15507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15508 $as_echo "${as__red}no${as__std}" >&6; }
15509 fi
15510
15511 if test "x$ac_ct_LIPO" = x; then
15512 LIPO=":"
15513 else
15514 case $cross_compiling:$ac_tool_warned in
15515 yes:)
15516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15517 $as_echo "$as_me: ${as__yel}WARNING: using cross tools not prefixed with host triplet${as__std}" >&2;}
15518 ac_tool_warned=yes ;;
15519 esac
15520 LIPO=$ac_ct_LIPO
15521 fi
15522 else
15523 LIPO="$ac_cv_prog_LIPO"
15524 fi
15525
15526 if test -n "$ac_tool_prefix"; then
15527 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
15528 set dummy ${ac_tool_prefix}otool; ac_word=$2
15529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15530 $as_echo_n "checking for $ac_word... " >&6; }
15531 if ${ac_cv_prog_OTOOL+:} false; then :
15532 $as_echo_n "(cached) " >&6
15533 else
15534 if test -n "$OTOOL"; then
15535 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
15536 else
15537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15538 for as_dir in $PATH
15539 do
15540 IFS=$as_save_IFS
15541 test -z "$as_dir" && as_dir=.
15542 for ac_exec_ext in '' $ac_executable_extensions; do
15543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15544 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
15545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15546 break 2
15547 fi
15548 done
15549 done
15550 IFS=$as_save_IFS
15551
15552 fi
15553 fi
15554 OTOOL=$ac_cv_prog_OTOOL
15555 if test -n "$OTOOL"; then
15556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
15557 case "$OTOOL" in #(
15558 yes|ok|yes[\ ,]*) :
15559 $as_echo "${as__grn}$OTOOL${as__std}" >&6 ;; #(
15560 no|failed|unsupported|no[\ ,]*) :
15561 $as_echo "${as__red}$OTOOL${as__std}" >&6 ;; #(
15562 *) :
15563 $as_echo "${as__blu}$OTOOL${as__std}" >&6 ;;
15564 esac; }
15565 else
15566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15567 $as_echo "${as__red}no${as__std}" >&6; }
15568 fi
15569
15570
15571 fi
15572 if test -z "$ac_cv_prog_OTOOL"; then
15573 ac_ct_OTOOL=$OTOOL
15574 # Extract the first word of "otool", so it can be a program name with args.
15575 set dummy otool; ac_word=$2
15576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15577 $as_echo_n "checking for $ac_word... " >&6; }
15578 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
15579 $as_echo_n "(cached) " >&6
15580 else
15581 if test -n "$ac_ct_OTOOL"; then
15582 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
15583 else
15584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15585 for as_dir in $PATH
15586 do
15587 IFS=$as_save_IFS
15588 test -z "$as_dir" && as_dir=.
15589 for ac_exec_ext in '' $ac_executable_extensions; do
15590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15591 ac_cv_prog_ac_ct_OTOOL="otool"
15592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15593 break 2
15594 fi
15595 done
15596 done
15597 IFS=$as_save_IFS
15598
15599 fi
15600 fi
15601 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
15602 if test -n "$ac_ct_OTOOL"; then
15603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
15604 case "$ac_ct_OTOOL" in #(
15605 yes|ok|yes[\ ,]*) :
15606 $as_echo "${as__grn}$ac_ct_OTOOL${as__std}" >&6 ;; #(
15607 no|failed|unsupported|no[\ ,]*) :
15608 $as_echo "${as__red}$ac_ct_OTOOL${as__std}" >&6 ;; #(
15609 *) :
15610 $as_echo "${as__blu}$ac_ct_OTOOL${as__std}" >&6 ;;
15611 esac; }
15612 else
15613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15614 $as_echo "${as__red}no${as__std}" >&6; }
15615 fi
15616
15617 if test "x$ac_ct_OTOOL" = x; then
15618 OTOOL=":"
15619 else
15620 case $cross_compiling:$ac_tool_warned in
15621 yes:)
15622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15623 $as_echo "$as_me: ${as__yel}WARNING: using cross tools not prefixed with host triplet${as__std}" >&2;}
15624 ac_tool_warned=yes ;;
15625 esac
15626 OTOOL=$ac_ct_OTOOL
15627 fi
15628 else
15629 OTOOL="$ac_cv_prog_OTOOL"
15630 fi
15631
15632 if test -n "$ac_tool_prefix"; then
15633 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
15634 set dummy ${ac_tool_prefix}otool64; ac_word=$2
15635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15636 $as_echo_n "checking for $ac_word... " >&6; }
15637 if ${ac_cv_prog_OTOOL64+:} false; then :
15638 $as_echo_n "(cached) " >&6
15639 else
15640 if test -n "$OTOOL64"; then
15641 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
15642 else
15643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15644 for as_dir in $PATH
15645 do
15646 IFS=$as_save_IFS
15647 test -z "$as_dir" && as_dir=.
15648 for ac_exec_ext in '' $ac_executable_extensions; do
15649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15650 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
15651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15652 break 2
15653 fi
15654 done
15655 done
15656 IFS=$as_save_IFS
15657
15658 fi
15659 fi
15660 OTOOL64=$ac_cv_prog_OTOOL64
15661 if test -n "$OTOOL64"; then
15662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
15663 case "$OTOOL64" in #(
15664 yes|ok|yes[\ ,]*) :
15665 $as_echo "${as__grn}$OTOOL64${as__std}" >&6 ;; #(
15666 no|failed|unsupported|no[\ ,]*) :
15667 $as_echo "${as__red}$OTOOL64${as__std}" >&6 ;; #(
15668 *) :
15669 $as_echo "${as__blu}$OTOOL64${as__std}" >&6 ;;
15670 esac; }
15671 else
15672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15673 $as_echo "${as__red}no${as__std}" >&6; }
15674 fi
15675
15676
15677 fi
15678 if test -z "$ac_cv_prog_OTOOL64"; then
15679 ac_ct_OTOOL64=$OTOOL64
15680 # Extract the first word of "otool64", so it can be a program name with args.
15681 set dummy otool64; ac_word=$2
15682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15683 $as_echo_n "checking for $ac_word... " >&6; }
15684 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
15685 $as_echo_n "(cached) " >&6
15686 else
15687 if test -n "$ac_ct_OTOOL64"; then
15688 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
15689 else
15690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15691 for as_dir in $PATH
15692 do
15693 IFS=$as_save_IFS
15694 test -z "$as_dir" && as_dir=.
15695 for ac_exec_ext in '' $ac_executable_extensions; do
15696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15697 ac_cv_prog_ac_ct_OTOOL64="otool64"
15698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15699 break 2
15700 fi
15701 done
15702 done
15703 IFS=$as_save_IFS
15704
15705 fi
15706 fi
15707 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
15708 if test -n "$ac_ct_OTOOL64"; then
15709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
15710 case "$ac_ct_OTOOL64" in #(
15711 yes|ok|yes[\ ,]*) :
15712 $as_echo "${as__grn}$ac_ct_OTOOL64${as__std}" >&6 ;; #(
15713 no|failed|unsupported|no[\ ,]*) :
15714 $as_echo "${as__red}$ac_ct_OTOOL64${as__std}" >&6 ;; #(
15715 *) :
15716 $as_echo "${as__blu}$ac_ct_OTOOL64${as__std}" >&6 ;;
15717 esac; }
15718 else
15719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15720 $as_echo "${as__red}no${as__std}" >&6; }
15721 fi
15722
15723 if test "x$ac_ct_OTOOL64" = x; then
15724 OTOOL64=":"
15725 else
15726 case $cross_compiling:$ac_tool_warned in
15727 yes:)
15728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15729 $as_echo "$as_me: ${as__yel}WARNING: using cross tools not prefixed with host triplet${as__std}" >&2;}
15730 ac_tool_warned=yes ;;
15731 esac
15732 OTOOL64=$ac_ct_OTOOL64
15733 fi
15734 else
15735 OTOOL64="$ac_cv_prog_OTOOL64"
15736 fi
15737
15738
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
15765 $as_echo_n "checking for -single_module linker flag... " >&6; }
15766 if ${lt_cv_apple_cc_single_mod+:} false; then :
15767 $as_echo_n "(cached) " >&6
15768 else
15769 lt_cv_apple_cc_single_mod=no
15770 if test -z "$LT_MULTI_MODULE"; then
15771 # By default we will add the -single_module flag. You can override
15772 # by either setting the environment variable LT_MULTI_MODULE
15773 # non-empty at configure time, or by adding -multi_module to the
15774 # link flags.
15775 rm -rf libconftest.dylib*
15776 echo "int foo(void){return 1;}" > conftest.c
15777 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15778 -dynamiclib -Wl,-single_module conftest.c" >&5
15779 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15780 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
15781 _lt_result=$?
15782 # If there is a non-empty error log, and "single_module"
15783 # appears in it, assume the flag caused a linker warning
15784 if test -s conftest.err && $GREP single_module conftest.err; then
15785 cat conftest.err >&5
15786 # Otherwise, if the output was created with a 0 exit code from
15787 # the compiler, it worked.
15788 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
15789 lt_cv_apple_cc_single_mod=yes
15790 else
15791 cat conftest.err >&5
15792 fi
15793 rm -rf libconftest.dylib*
15794 rm -f conftest.*
15795 fi
15796 fi
15797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
15798 case "$lt_cv_apple_cc_single_mod" in #(
15799 yes|ok|yes[\ ,]*) :
15800 $as_echo "${as__grn}$lt_cv_apple_cc_single_mod${as__std}" >&6 ;; #(
15801 no|failed|unsupported|no[\ ,]*) :
15802 $as_echo "${as__red}$lt_cv_apple_cc_single_mod${as__std}" >&6 ;; #(
15803 *) :
15804 $as_echo "${as__blu}$lt_cv_apple_cc_single_mod${as__std}" >&6 ;;
15805 esac; }
15806
15807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
15808 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
15809 if ${lt_cv_ld_exported_symbols_list+:} false; then :
15810 $as_echo_n "(cached) " >&6
15811 else
15812 lt_cv_ld_exported_symbols_list=no
15813 save_LDFLAGS=$LDFLAGS
15814 echo "_main" > conftest.sym
15815 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
15816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15817 /* end confdefs.h. */
15818
15819 int
15820 main ()
15821 {
15822
15823 ;
15824 return 0;
15825 }
15826 _ACEOF
15827 if ac_fn_c_try_link "$LINENO"; then :
15828 lt_cv_ld_exported_symbols_list=yes
15829 else
15830 lt_cv_ld_exported_symbols_list=no
15831 fi
15832 rm -f core conftest.err conftest.$ac_objext \
15833 conftest$ac_exeext conftest.$ac_ext
15834 LDFLAGS=$save_LDFLAGS
15835
15836 fi
15837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
15838 case "$lt_cv_ld_exported_symbols_list" in #(
15839 yes|ok|yes[\ ,]*) :
15840 $as_echo "${as__grn}$lt_cv_ld_exported_symbols_list${as__std}" >&6 ;; #(
15841 no|failed|unsupported|no[\ ,]*) :
15842 $as_echo "${as__red}$lt_cv_ld_exported_symbols_list${as__std}" >&6 ;; #(
15843 *) :
15844 $as_echo "${as__blu}$lt_cv_ld_exported_symbols_list${as__std}" >&6 ;;
15845 esac; }
15846
15847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
15848 $as_echo_n "checking for -force_load linker flag... " >&6; }
15849 if ${lt_cv_ld_force_load+:} false; then :
15850 $as_echo_n "(cached) " >&6
15851 else
15852 lt_cv_ld_force_load=no
15853 cat > conftest.c << _LT_EOF
15854 int forced_loaded() { return 2;}
15855 _LT_EOF
15856 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
15857 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
15858 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
15859 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
15860 echo "$RANLIB libconftest.a" >&5
15861 $RANLIB libconftest.a 2>&5
15862 cat > conftest.c << _LT_EOF
15863 int main() { return 0;}
15864 _LT_EOF
15865 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
15866 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
15867 _lt_result=$?
15868 if test -s conftest.err && $GREP force_load conftest.err; then
15869 cat conftest.err >&5
15870 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
15871 lt_cv_ld_force_load=yes
15872 else
15873 cat conftest.err >&5
15874 fi
15875 rm -f conftest.err libconftest.a conftest conftest.c
15876 rm -rf conftest.dSYM
15877
15878 fi
15879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
15880 case "$lt_cv_ld_force_load" in #(
15881 yes|ok|yes[\ ,]*) :
15882 $as_echo "${as__grn}$lt_cv_ld_force_load${as__std}" >&6 ;; #(
15883 no|failed|unsupported|no[\ ,]*) :
15884 $as_echo "${as__red}$lt_cv_ld_force_load${as__std}" >&6 ;; #(
15885 *) :
15886 $as_echo "${as__blu}$lt_cv_ld_force_load${as__std}" >&6 ;;
15887 esac; }
15888 case $host_os in
15889 rhapsody* | darwin1.[012])
15890 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
15891 darwin1.*)
15892 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
15893 darwin*) # darwin 5.x on
15894 # if running on 10.5 or later, the deployment target defaults
15895 # to the OS version, if on x86, and 10.4, the deployment
15896 # target defaults to 10.4. Don't you love it?
15897 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
15898 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
15899 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
15900 10.[012][,.]*)
15901 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
15902 10.*)
15903 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
15904 esac
15905 ;;
15906 esac
15907 if test yes = "$lt_cv_apple_cc_single_mod"; then
15908 _lt_dar_single_mod='$single_module'
15909 fi
15910 if test yes = "$lt_cv_ld_exported_symbols_list"; then
15911 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
15912 else
15913 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
15914 fi
15915 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
15916 _lt_dsymutil='~$DSYMUTIL $lib || :'
15917 else
15918 _lt_dsymutil=
15919 fi
15920 ;;
15921 esac
15922
15923 # func_munge_path_list VARIABLE PATH
15924 # -----------------------------------
15925 # VARIABLE is name of variable containing _space_ separated list of
15926 # directories to be munged by the contents of PATH, which is string
15927 # having a format:
15928 # "DIR[:DIR]:"
15929 # string "DIR[ DIR]" will be prepended to VARIABLE
15930 # ":DIR[:DIR]"
15931 # string "DIR[ DIR]" will be appended to VARIABLE
15932 # "DIRP[:DIRP]::[DIRA:]DIRA"
15933 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15934 # "DIRA[ DIRA]" will be appended to VARIABLE
15935 # "DIR[:DIR]"
15936 # VARIABLE will be replaced by "DIR[ DIR]"
15937 func_munge_path_list ()
15938 {
15939 case x$2 in
15940 x)
15941 ;;
15942 *:)
15943 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15944 ;;
15945 x:*)
15946 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15947 ;;
15948 *::*)
15949 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15950 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15951 ;;
15952 *)
15953 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15954 ;;
15955 esac
15956 }
15957
15958 ac_ext=c
15959 ac_cpp='$CPP $CPPFLAGS'
15960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
15964 $as_echo_n "checking how to run the C preprocessor... " >&6; }
15965 # On Suns, sometimes $CPP names a directory.
15966 if test -n "$CPP" && test -d "$CPP"; then
15967 CPP=
15968 fi
15969 if test -z "$CPP"; then
15970 if ${ac_cv_prog_CPP+:} false; then :
15971 $as_echo_n "(cached) " >&6
15972 else
15973 # Double quotes because CPP needs to be expanded
15974 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
15975 do
15976 ac_preproc_ok=false
15977 for ac_c_preproc_warn_flag in '' yes
15978 do
15979 # Use a header file that comes with gcc, so configuring glibc
15980 # with a fresh cross-compiler works.
15981 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15982 # <limits.h> exists even on freestanding compilers.
15983 # On the NeXT, cc -E runs the code through the compiler's parser,
15984 # not just through cpp. "Syntax error" is here to catch this case.
15985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15986 /* end confdefs.h. */
15987 #ifdef __STDC__
15988 # include <limits.h>
15989 #else
15990 # include <assert.h>
15991 #endif
15992 Syntax error
15993 _ACEOF
15994 if ac_fn_c_try_cpp "$LINENO"; then :
15995
15996 else
15997 # Broken: fails on valid input.
15998 continue
15999 fi
16000 rm -f conftest.err conftest.i conftest.$ac_ext
16001
16002 # OK, works on sane cases. Now check whether nonexistent headers
16003 # can be detected and how.
16004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16005 /* end confdefs.h. */
16006 #include <ac_nonexistent.h>
16007 _ACEOF
16008 if ac_fn_c_try_cpp "$LINENO"; then :
16009 # Broken: success on invalid input.
16010 continue
16011 else
16012 # Passes both tests.
16013 ac_preproc_ok=:
16014 break
16015 fi
16016 rm -f conftest.err conftest.i conftest.$ac_ext
16017
16018 done
16019 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16020 rm -f conftest.i conftest.err conftest.$ac_ext
16021 if $ac_preproc_ok; then :
16022 break
16023 fi
16024
16025 done
16026 ac_cv_prog_CPP=$CPP
16027
16028 fi
16029 CPP=$ac_cv_prog_CPP
16030 else
16031 ac_cv_prog_CPP=$CPP
16032 fi
16033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
16034 case "$CPP" in #(
16035 yes|ok|yes[\ ,]*) :
16036 $as_echo "${as__grn}$CPP${as__std}" >&6 ;; #(
16037 no|failed|unsupported|no[\ ,]*) :
16038 $as_echo "${as__red}$CPP${as__std}" >&6 ;; #(
16039 *) :
16040 $as_echo "${as__blu}$CPP${as__std}" >&6 ;;
16041 esac; }
16042 ac_preproc_ok=false
16043 for ac_c_preproc_warn_flag in '' yes
16044 do
16045 # Use a header file that comes with gcc, so configuring glibc
16046 # with a fresh cross-compiler works.
16047 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16048 # <limits.h> exists even on freestanding compilers.
16049 # On the NeXT, cc -E runs the code through the compiler's parser,
16050 # not just through cpp. "Syntax error" is here to catch this case.
16051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16052 /* end confdefs.h. */
16053 #ifdef __STDC__
16054 # include <limits.h>
16055 #else
16056 # include <assert.h>
16057 #endif
16058 Syntax error
16059 _ACEOF
16060 if ac_fn_c_try_cpp "$LINENO"; then :
16061
16062 else
16063 # Broken: fails on valid input.
16064 continue
16065 fi
16066 rm -f conftest.err conftest.i conftest.$ac_ext
16067
16068 # OK, works on sane cases. Now check whether nonexistent headers
16069 # can be detected and how.
16070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16071 /* end confdefs.h. */
16072 #include <ac_nonexistent.h>
16073 _ACEOF
16074 if ac_fn_c_try_cpp "$LINENO"; then :
16075 # Broken: success on invalid input.
16076 continue
16077 else
16078 # Passes both tests.
16079 ac_preproc_ok=:
16080 break
16081 fi
16082 rm -f conftest.err conftest.i conftest.$ac_ext
16083
16084 done
16085 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16086 rm -f conftest.i conftest.err conftest.$ac_ext
16087 if $ac_preproc_ok; then :
16088
16089 else
16090 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16091 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
16092 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check${as__std}
16093 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
16094 fi
16095
16096 ac_ext=c
16097 ac_cpp='$CPP $CPPFLAGS'
16098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16101
16102
16103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
16104 $as_echo_n "checking for ANSI C header files... " >&6; }
16105 if ${ac_cv_header_stdc+:} false; then :
16106 $as_echo_n "(cached) " >&6
16107 else
16108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16109 /* end confdefs.h. */
16110 #include <stdlib.h>
16111 #include <stdarg.h>
16112 #include <string.h>
16113 #include <float.h>
16114
16115 int
16116 main ()
16117 {
16118
16119 ;
16120 return 0;
16121 }
16122 _ACEOF
16123 if ac_fn_c_try_compile "$LINENO"; then :
16124 ac_cv_header_stdc=yes
16125 else
16126 ac_cv_header_stdc=no
16127 fi
16128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16129
16130 if test $ac_cv_header_stdc = yes; then
16131 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16133 /* end confdefs.h. */
16134 #include <string.h>
16135
16136 _ACEOF
16137 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16138 $EGREP "memchr" >/dev/null 2>&1; then :
16139
16140 else
16141 ac_cv_header_stdc=no
16142 fi
16143 rm -f conftest*
16144
16145 fi
16146
16147 if test $ac_cv_header_stdc = yes; then
16148 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16150 /* end confdefs.h. */
16151 #include <stdlib.h>
16152
16153 _ACEOF
16154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16155 $EGREP "free" >/dev/null 2>&1; then :
16156
16157 else
16158 ac_cv_header_stdc=no
16159 fi
16160 rm -f conftest*
16161
16162 fi
16163
16164 if test $ac_cv_header_stdc = yes; then
16165 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16166 if test "$cross_compiling" = yes; then :
16167 :
16168 else
16169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16170 /* end confdefs.h. */
16171 #include <ctype.h>
16172 #include <stdlib.h>
16173 #if ((' ' & 0x0FF) == 0x020)
16174 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16175 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16176 #else
16177 # define ISLOWER(c) \
16178 (('a' <= (c) && (c) <= 'i') \
16179 || ('j' <= (c) && (c) <= 'r') \
16180 || ('s' <= (c) && (c) <= 'z'))
16181 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16182 #endif
16183
16184 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16185 int
16186 main ()
16187 {
16188 int i;
16189 for (i = 0; i < 256; i++)
16190 if (XOR (islower (i), ISLOWER (i))
16191 || toupper (i) != TOUPPER (i))
16192 return 2;
16193 return 0;
16194 }
16195 _ACEOF
16196 if ac_fn_c_try_run "$LINENO"; then :
16197
16198 else
16199 ac_cv_header_stdc=no
16200 fi
16201 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16202 conftest.$ac_objext conftest.beam conftest.$ac_ext
16203 fi
16204
16205 fi
16206 fi
16207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16208 case "$ac_cv_header_stdc" in #(
16209 yes|ok|yes[\ ,]*) :
16210 $as_echo "${as__grn}$ac_cv_header_stdc${as__std}" >&6 ;; #(
16211 no|failed|unsupported|no[\ ,]*) :
16212 $as_echo "${as__red}$ac_cv_header_stdc${as__std}" >&6 ;; #(
16213 *) :
16214 $as_echo "${as__blu}$ac_cv_header_stdc${as__std}" >&6 ;;
16215 esac; }
16216 if test $ac_cv_header_stdc = yes; then
16217
16218 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
16219
16220 fi
16221
16222 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
16223 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
16224 inttypes.h stdint.h unistd.h
16225 do :
16226 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16227 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16228 "
16229 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16230 cat >>confdefs.h <<_ACEOF
16231 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16232 _ACEOF
16233
16234 fi
16235
16236 done
16237
16238
16239 for ac_header in dlfcn.h
16240 do :
16241 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
16242 "
16243 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
16244 cat >>confdefs.h <<_ACEOF
16245 #define HAVE_DLFCN_H 1
16246 _ACEOF
16247
16248 fi
16249
16250 done
16251
16252
16253
16254 func_stripname_cnf ()
16255 {
16256 case $2 in
16257 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
16258 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
16259 esac
16260 } # func_stripname_cnf
16261
16262
16263
16264
16265
16266 # Set options
16267 # Check whether --enable-shared was given.
16268 if test "${enable_shared+set}" = set; then :
16269 enableval=$enable_shared; p=${PACKAGE-default}
16270 case $enableval in
16271 yes) enable_shared=yes ;;
16272 no) enable_shared=no ;;
16273 *)
16274 enable_shared=no
16275 # Look at the argument we got. We use all the common list separators.
16276 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
16277 for pkg in $enableval; do
16278 IFS=$lt_save_ifs
16279 if test "X$pkg" = "X$p"; then
16280 enable_shared=yes
16281 fi
16282 done
16283 IFS=$lt_save_ifs
16284 ;;
16285 esac
16286 else
16287 enable_shared=no
16288 fi
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299 enable_dlopen=no
16300
16301
16302 enable_win32_dll=no
16303
16304
16305
16306 # Check whether --enable-static was given.
16307 if test "${enable_static+set}" = set; then :
16308 enableval=$enable_static; p=${PACKAGE-default}
16309 case $enableval in
16310 yes) enable_static=yes ;;
16311 no) enable_static=no ;;
16312 *)
16313 enable_static=no
16314 # Look at the argument we got. We use all the common list separators.
16315 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
16316 for pkg in $enableval; do
16317 IFS=$lt_save_ifs
16318 if test "X$pkg" = "X$p"; then
16319 enable_static=yes
16320 fi
16321 done
16322 IFS=$lt_save_ifs
16323 ;;
16324 esac
16325 else
16326 enable_static=yes
16327 fi
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337
16338 # Check whether --with-pic was given.
16339 if test "${with_pic+set}" = set; then :
16340 withval=$with_pic; lt_p=${PACKAGE-default}
16341 case $withval in
16342 yes|no) pic_mode=$withval ;;
16343 *)
16344 pic_mode=default
16345 # Look at the argument we got. We use all the common list separators.
16346 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
16347 for lt_pkg in $withval; do
16348 IFS=$lt_save_ifs
16349 if test "X$lt_pkg" = "X$lt_p"; then
16350 pic_mode=yes
16351 fi
16352 done
16353 IFS=$lt_save_ifs
16354 ;;
16355 esac
16356 else
16357 pic_mode=default
16358 fi
16359
16360
16361
16362
16363
16364
16365
16366
16367 # Check whether --enable-fast-install was given.
16368 if test "${enable_fast_install+set}" = set; then :
16369 enableval=$enable_fast_install; p=${PACKAGE-default}
16370 case $enableval in
16371 yes) enable_fast_install=yes ;;
16372 no) enable_fast_install=no ;;
16373 *)
16374 enable_fast_install=no
16375 # Look at the argument we got. We use all the common list separators.
16376 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
16377 for pkg in $enableval; do
16378 IFS=$lt_save_ifs
16379 if test "X$pkg" = "X$p"; then
16380 enable_fast_install=yes
16381 fi
16382 done
16383 IFS=$lt_save_ifs
16384 ;;
16385 esac
16386 else
16387 enable_fast_install=yes
16388 fi
16389
16390
16391
16392
16393
16394
16395
16396
16397 shared_archive_member_spec=
16398 case $host,$enable_shared in
16399 power*-*-aix[5-9]*,yes)
16400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
16401 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
16402
16403 # Check whether --with-aix-soname was given.
16404 if test "${with_aix_soname+set}" = set; then :
16405 withval=$with_aix_soname; case $withval in
16406 aix|svr4|both)
16407 ;;
16408 *)
16409 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
16410 ;;
16411 esac
16412 lt_cv_with_aix_soname=$with_aix_soname
16413 else
16414 if ${lt_cv_with_aix_soname+:} false; then :
16415 $as_echo_n "(cached) " >&6
16416 else
16417 lt_cv_with_aix_soname=aix
16418 fi
16419
16420 with_aix_soname=$lt_cv_with_aix_soname
16421 fi
16422
16423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
16424 case "$with_aix_soname" in #(
16425 yes|ok|yes[\ ,]*) :
16426 $as_echo "${as__grn}$with_aix_soname${as__std}" >&6 ;; #(
16427 no|failed|unsupported|no[\ ,]*) :
16428 $as_echo "${as__red}$with_aix_soname${as__std}" >&6 ;; #(
16429 *) :
16430 $as_echo "${as__blu}$with_aix_soname${as__std}" >&6 ;;
16431 esac; }
16432 if test aix != "$with_aix_soname"; then
16433 # For the AIX way of multilib, we name the shared archive member
16434 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
16435 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
16436 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
16437 # the AIX toolchain works better with OBJECT_MODE set (default 32).
16438 if test 64 = "${OBJECT_MODE-32}"; then
16439 shared_archive_member_spec=shr_64
16440 else
16441 shared_archive_member_spec=shr
16442 fi
16443 fi
16444 ;;
16445 *)
16446 with_aix_soname=aix
16447 ;;
16448 esac
16449
16450
16451
16452
16453
16454
16455
16456
16457
16458
16459 # This can be used to rebuild libtool when needed
16460 LIBTOOL_DEPS=$ltmain
16461
16462 # Always use our own libtool.
16463 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474
16475
16476
16477
16478
16479
16480
16481
16482
16483
16484
16485
16486
16487
16488
16489
16490
16491
16492
16493
16494 test -z "$LN_S" && LN_S="ln -s"
16495
16496
16497
16498
16499
16500
16501
16502
16503
16504
16505
16506
16507
16508
16509 if test -n "${ZSH_VERSION+set}"; then
16510 setopt NO_GLOB_SUBST
16511 fi
16512
16513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
16514 $as_echo_n "checking for objdir... " >&6; }
16515 if ${lt_cv_objdir+:} false; then :
16516 $as_echo_n "(cached) " >&6
16517 else
16518 rm -f .libs 2>/dev/null
16519 mkdir .libs 2>/dev/null
16520 if test -d .libs; then
16521 lt_cv_objdir=.libs
16522 else
16523 # MS-DOS does not allow filenames that begin with a dot.
16524 lt_cv_objdir=_libs
16525 fi
16526 rmdir .libs 2>/dev/null
16527 fi
16528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
16529 case "$lt_cv_objdir" in #(
16530 yes|ok|yes[\ ,]*) :
16531 $as_echo "${as__grn}$lt_cv_objdir${as__std}" >&6 ;; #(
16532 no|failed|unsupported|no[\ ,]*) :
16533 $as_echo "${as__red}$lt_cv_objdir${as__std}" >&6 ;; #(
16534 *) :
16535 $as_echo "${as__blu}$lt_cv_objdir${as__std}" >&6 ;;
16536 esac; }
16537 objdir=$lt_cv_objdir
16538
16539
16540
16541
16542
16543 cat >>confdefs.h <<_ACEOF
16544 #define LT_OBJDIR "$lt_cv_objdir/"
16545 _ACEOF
16546
16547
16548
16549
16550 case $host_os in
16551 aix3*)
16552 # AIX sometimes has problems with the GCC collect2 program. For some
16553 # reason, if we set the COLLECT_NAMES environment variable, the problems
16554 # vanish in a puff of smoke.
16555 if test set != "${COLLECT_NAMES+set}"; then
16556 COLLECT_NAMES=
16557 export COLLECT_NAMES
16558 fi
16559 ;;
16560 esac
16561
16562 # Global variables:
16563 ofile=libtool
16564 can_build_shared=yes
16565
16566 # All known linkers require a '.a' archive for static linking (except MSVC,
16567 # which needs '.lib').
16568 libext=a
16569
16570 with_gnu_ld=$lt_cv_prog_gnu_ld
16571
16572 old_CC=$CC
16573 old_CFLAGS=$CFLAGS
16574
16575 # Set sane defaults for various variables
16576 test -z "$CC" && CC=cc
16577 test -z "$LTCC" && LTCC=$CC
16578 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
16579 test -z "$LD" && LD=ld
16580 test -z "$ac_objext" && ac_objext=o
16581
16582 func_cc_basename $compiler
16583 cc_basename=$func_cc_basename_result
16584
16585
16586 # Only perform the check for file, if the check method requires it
16587 test -z "$MAGIC_CMD" && MAGIC_CMD=file
16588 case $deplibs_check_method in
16589 file_magic*)
16590 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
16591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
16592 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
16593 if ${lt_cv_path_MAGIC_CMD+:} false; then :
16594 $as_echo_n "(cached) " >&6
16595 else
16596 case $MAGIC_CMD in
16597 [\\/*] | ?:[\\/]*)
16598 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
16599 ;;
16600 *)
16601 lt_save_MAGIC_CMD=$MAGIC_CMD
16602 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
16603 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16604 for ac_dir in $ac_dummy; do
16605 IFS=$lt_save_ifs
16606 test -z "$ac_dir" && ac_dir=.
16607 if test -f "$ac_dir/${ac_tool_prefix}file"; then
16608 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
16609 if test -n "$file_magic_test_file"; then
16610 case $deplibs_check_method in
16611 "file_magic "*)
16612 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16613 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
16614 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16615 $EGREP "$file_magic_regex" > /dev/null; then
16616 :
16617 else
16618 cat <<_LT_EOF 1>&2
16619
16620 *** Warning: the command libtool uses to detect shared libraries,
16621 *** $file_magic_cmd, produces output that libtool cannot recognize.
16622 *** The result is that libtool may fail to recognize shared libraries
16623 *** as such. This will affect the creation of libtool libraries that
16624 *** depend on shared libraries, but programs linked with such libtool
16625 *** libraries will work regardless of this problem. Nevertheless, you
16626 *** may want to report the problem to your system manager and/or to
16627 *** [email protected]
16628
16629 _LT_EOF
16630 fi ;;
16631 esac
16632 fi
16633 break
16634 fi
16635 done
16636 IFS=$lt_save_ifs
16637 MAGIC_CMD=$lt_save_MAGIC_CMD
16638 ;;
16639 esac
16640 fi
16641
16642 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
16643 if test -n "$MAGIC_CMD"; then
16644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
16645 case "$MAGIC_CMD" in #(
16646 yes|ok|yes[\ ,]*) :
16647 $as_echo "${as__grn}$MAGIC_CMD${as__std}" >&6 ;; #(
16648 no|failed|unsupported|no[\ ,]*) :
16649 $as_echo "${as__red}$MAGIC_CMD${as__std}" >&6 ;; #(
16650 *) :
16651 $as_echo "${as__blu}$MAGIC_CMD${as__std}" >&6 ;;
16652 esac; }
16653 else
16654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16655 $as_echo "${as__red}no${as__std}" >&6; }
16656 fi
16657
16658
16659
16660
16661
16662 if test -z "$lt_cv_path_MAGIC_CMD"; then
16663 if test -n "$ac_tool_prefix"; then
16664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
16665 $as_echo_n "checking for file... " >&6; }
16666 if ${lt_cv_path_MAGIC_CMD+:} false; then :
16667 $as_echo_n "(cached) " >&6
16668 else
16669 case $MAGIC_CMD in
16670 [\\/*] | ?:[\\/]*)
16671 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
16672 ;;
16673 *)
16674 lt_save_MAGIC_CMD=$MAGIC_CMD
16675 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
16676 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16677 for ac_dir in $ac_dummy; do
16678 IFS=$lt_save_ifs
16679 test -z "$ac_dir" && ac_dir=.
16680 if test -f "$ac_dir/file"; then
16681 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
16682 if test -n "$file_magic_test_file"; then
16683 case $deplibs_check_method in
16684 "file_magic "*)
16685 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16686 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
16687 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16688 $EGREP "$file_magic_regex" > /dev/null; then
16689 :
16690 else
16691 cat <<_LT_EOF 1>&2
16692
16693 *** Warning: the command libtool uses to detect shared libraries,
16694 *** $file_magic_cmd, produces output that libtool cannot recognize.
16695 *** The result is that libtool may fail to recognize shared libraries
16696 *** as such. This will affect the creation of libtool libraries that
16697 *** depend on shared libraries, but programs linked with such libtool
16698 *** libraries will work regardless of this problem. Nevertheless, you
16699 *** may want to report the problem to your system manager and/or to
16700 *** [email protected]
16701
16702 _LT_EOF
16703 fi ;;
16704 esac
16705 fi
16706 break
16707 fi
16708 done
16709 IFS=$lt_save_ifs
16710 MAGIC_CMD=$lt_save_MAGIC_CMD
16711 ;;
16712 esac
16713 fi
16714
16715 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
16716 if test -n "$MAGIC_CMD"; then
16717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
16718 case "$MAGIC_CMD" in #(
16719 yes|ok|yes[\ ,]*) :
16720 $as_echo "${as__grn}$MAGIC_CMD${as__std}" >&6 ;; #(
16721 no|failed|unsupported|no[\ ,]*) :
16722 $as_echo "${as__red}$MAGIC_CMD${as__std}" >&6 ;; #(
16723 *) :
16724 $as_echo "${as__blu}$MAGIC_CMD${as__std}" >&6 ;;
16725 esac; }
16726 else
16727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16728 $as_echo "${as__red}no${as__std}" >&6; }
16729 fi
16730
16731
16732 else
16733 MAGIC_CMD=:
16734 fi
16735 fi
16736
16737 fi
16738 ;;
16739 esac
16740
16741 # Use C for the default configuration in the libtool script
16742
16743 lt_save_CC=$CC
16744 ac_ext=c
16745 ac_cpp='$CPP $CPPFLAGS'
16746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16748 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16749
16750
16751 # Source file extension for C test sources.
16752 ac_ext=c
16753
16754 # Object file extension for compiled C test sources.
16755 objext=o
16756 objext=$objext
16757
16758 # Code to be used in simple compile tests
16759 lt_simple_compile_test_code="int some_variable = 0;"
16760
16761 # Code to be used in simple link tests
16762 lt_simple_link_test_code='int main(){return(0);}'
16763
16764
16765
16766
16767
16768
16769
16770 # If no C compiler was specified, use CC.
16771 LTCC=${LTCC-"$CC"}
16772
16773 # If no C compiler flags were specified, use CFLAGS.
16774 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16775
16776 # Allow CC to be a program name with arguments.
16777 compiler=$CC
16778
16779 # Save the default compiler, since it gets overwritten when the other
16780 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
16781 compiler_DEFAULT=$CC
16782
16783 # save warnings/boilerplate of simple test code
16784 ac_outfile=conftest.$ac_objext
16785 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16786 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16787 _lt_compiler_boilerplate=`cat conftest.err`
16788 $RM conftest*
16789
16790 ac_outfile=conftest.$ac_objext
16791 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16792 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16793 _lt_linker_boilerplate=`cat conftest.err`
16794 $RM -r conftest*
16795
16796
16797 ## CAVEAT EMPTOR:
16798 ## There is no encapsulation within the following macros, do not change
16799 ## the running order or otherwise move them around unless you know exactly
16800 ## what you are doing...
16801 if test -n "$compiler"; then
16802
16803 lt_prog_compiler_no_builtin_flag=
16804
16805 if test yes = "$GCC"; then
16806 case $cc_basename in
16807 nvcc*)
16808 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
16809 *)
16810 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
16811 esac
16812
16813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16814 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16815 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
16816 $as_echo_n "(cached) " >&6
16817 else
16818 lt_cv_prog_compiler_rtti_exceptions=no
16819 ac_outfile=conftest.$ac_objext
16820 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16821 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
16822 # Insert the option either (1) after the last *FLAGS variable, or
16823 # (2) before a word containing "conftest.", or (3) at the end.
16824 # Note that $ac_compile itself does not contain backslashes and begins
16825 # with a dollar sign (not a hyphen), so the echo should work correctly.
16826 # The option is referenced via a variable to avoid confusing sed.
16827 lt_compile=`echo "$ac_compile" | $SED \
16828 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16829 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16830 -e 's:$: $lt_compiler_flag:'`
16831 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16832 (eval "$lt_compile" 2>conftest.err)
16833 ac_status=$?
16834 cat conftest.err >&5
16835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836 if (exit $ac_status) && test -s "$ac_outfile"; then
16837 # The compiler can only warn and ignore the option if not recognized
16838 # So say no if there are warnings other than the usual output.
16839 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16840 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16841 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16842 lt_cv_prog_compiler_rtti_exceptions=yes
16843 fi
16844 fi
16845 $RM conftest*
16846
16847 fi
16848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16849 case "$lt_cv_prog_compiler_rtti_exceptions" in #(
16850 yes|ok|yes[\ ,]*) :
16851 $as_echo "${as__grn}$lt_cv_prog_compiler_rtti_exceptions${as__std}" >&6 ;; #(
16852 no|failed|unsupported|no[\ ,]*) :
16853 $as_echo "${as__red}$lt_cv_prog_compiler_rtti_exceptions${as__std}" >&6 ;; #(
16854 *) :
16855 $as_echo "${as__blu}$lt_cv_prog_compiler_rtti_exceptions${as__std}" >&6 ;;
16856 esac; }
16857
16858 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
16859 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16860 else
16861 :
16862 fi
16863
16864 fi
16865
16866
16867
16868
16869
16870
16871 lt_prog_compiler_wl=
16872 lt_prog_compiler_pic=
16873 lt_prog_compiler_static=
16874
16875
16876 if test yes = "$GCC"; then
16877 lt_prog_compiler_wl='-Wl,'
16878 lt_prog_compiler_static='-static'
16879
16880 case $host_os in
16881 aix*)
16882 # All AIX code is PIC.
16883 if test ia64 = "$host_cpu"; then
16884 # AIX 5 now supports IA64 processor
16885 lt_prog_compiler_static='-Bstatic'
16886 fi
16887 lt_prog_compiler_pic='-fPIC'
16888 ;;
16889
16890 amigaos*)
16891 case $host_cpu in
16892 powerpc)
16893 # see comment about AmigaOS4 .so support
16894 lt_prog_compiler_pic='-fPIC'
16895 ;;
16896 m68k)
16897 # FIXME: we need at least 68020 code to build shared libraries, but
16898 # adding the '-m68020' flag to GCC prevents building anything better,
16899 # like '-m68040'.
16900 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16901 ;;
16902 esac
16903 ;;
16904
16905 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16906 # PIC is the default for these OSes.
16907 ;;
16908
16909 mingw* | cygwin* | pw32* | os2* | cegcc*)
16910 # This hack is so that the source file can tell whether it is being
16911 # built for inclusion in a dll (and should export symbols for example).
16912 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16913 # (--disable-auto-import) libraries
16914 lt_prog_compiler_pic='-DDLL_EXPORT'
16915 case $host_os in
16916 os2*)
16917 lt_prog_compiler_static='$wl-static'
16918 ;;
16919 esac
16920 ;;
16921
16922 darwin* | rhapsody*)
16923 # PIC is the default on this platform
16924 # Common symbols not allowed in MH_DYLIB files
16925 lt_prog_compiler_pic='-fno-common'
16926 ;;
16927
16928 haiku*)
16929 # PIC is the default for Haiku.
16930 # The "-static" flag exists, but is broken.
16931 lt_prog_compiler_static=
16932 ;;
16933
16934 hpux*)
16935 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16936 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16937 # sets the default TLS model and affects inlining.
16938 case $host_cpu in
16939 hppa*64*)
16940 # +Z the default
16941 ;;
16942 *)
16943 lt_prog_compiler_pic='-fPIC'
16944 ;;
16945 esac
16946 ;;
16947
16948 interix[3-9]*)
16949 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16950 # Instead, we relocate shared libraries at runtime.
16951 ;;
16952
16953 msdosdjgpp*)
16954 # Just because we use GCC doesn't mean we suddenly get shared libraries
16955 # on systems that don't support them.
16956 lt_prog_compiler_can_build_shared=no
16957 enable_shared=no
16958 ;;
16959
16960 *nto* | *qnx*)
16961 # QNX uses GNU C++, but need to define -shared option too, otherwise
16962 # it will coredump.
16963 lt_prog_compiler_pic='-fPIC -shared'
16964 ;;
16965
16966 sysv4*MP*)
16967 if test -d /usr/nec; then
16968 lt_prog_compiler_pic=-Kconform_pic
16969 fi
16970 ;;
16971
16972 *)
16973 lt_prog_compiler_pic='-fPIC'
16974 ;;
16975 esac
16976
16977 case $cc_basename in
16978 nvcc*) # Cuda Compiler Driver 2.2
16979 lt_prog_compiler_wl='-Xlinker '
16980 if test -n "$lt_prog_compiler_pic"; then
16981 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
16982 fi
16983 ;;
16984 esac
16985 else
16986 # PORTME Check for flag to pass linker flags through the system compiler.
16987 case $host_os in
16988 aix*)
16989 lt_prog_compiler_wl='-Wl,'
16990 if test ia64 = "$host_cpu"; then
16991 # AIX 5 now supports IA64 processor
16992 lt_prog_compiler_static='-Bstatic'
16993 else
16994 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
16995 fi
16996 ;;
16997
16998 darwin* | rhapsody*)
16999 # PIC is the default on this platform
17000 # Common symbols not allowed in MH_DYLIB files
17001 lt_prog_compiler_pic='-fno-common'
17002 case $cc_basename in
17003 nagfor*)
17004 # NAG Fortran compiler
17005 lt_prog_compiler_wl='-Wl,-Wl,,'
17006 lt_prog_compiler_pic='-PIC'
17007 lt_prog_compiler_static='-Bstatic'
17008 ;;
17009 esac
17010 ;;
17011
17012 mingw* | cygwin* | pw32* | os2* | cegcc*)
17013 # This hack is so that the source file can tell whether it is being
17014 # built for inclusion in a dll (and should export symbols for example).
17015 lt_prog_compiler_pic='-DDLL_EXPORT'
17016 case $host_os in
17017 os2*)
17018 lt_prog_compiler_static='$wl-static'
17019 ;;
17020 esac
17021 ;;
17022
17023 hpux9* | hpux10* | hpux11*)
17024 lt_prog_compiler_wl='-Wl,'
17025 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17026 # not for PA HP-UX.
17027 case $host_cpu in
17028 hppa*64*|ia64*)
17029 # +Z the default
17030 ;;
17031 *)
17032 lt_prog_compiler_pic='+Z'
17033 ;;
17034 esac
17035 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17036 lt_prog_compiler_static='$wl-a ${wl}archive'
17037 ;;
17038
17039 irix5* | irix6* | nonstopux*)
17040 lt_prog_compiler_wl='-Wl,'
17041 # PIC (with -KPIC) is the default.
17042 lt_prog_compiler_static='-non_shared'
17043 ;;
17044
17045 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17046 case $cc_basename in
17047 # old Intel for x86_64, which still supported -KPIC.
17048 ecc*)
17049 lt_prog_compiler_wl='-Wl,'
17050 lt_prog_compiler_pic='-KPIC'
17051 lt_prog_compiler_static='-static'
17052 ;;
17053 # icc used to be incompatible with GCC.
17054 # ICC 10 doesn't accept -KPIC any more.
17055 icc* | ifort*)
17056 lt_prog_compiler_wl='-Wl,'
17057 lt_prog_compiler_pic='-fPIC'
17058 lt_prog_compiler_static='-static'
17059 ;;
17060 # Lahey Fortran 8.1.
17061 lf95*)
17062 lt_prog_compiler_wl='-Wl,'
17063 lt_prog_compiler_pic='--shared'
17064 lt_prog_compiler_static='--static'
17065 ;;
17066 nagfor*)
17067 # NAG Fortran compiler
17068 lt_prog_compiler_wl='-Wl,-Wl,,'
17069 lt_prog_compiler_pic='-PIC'
17070 lt_prog_compiler_static='-Bstatic'
17071 ;;
17072 tcc*)
17073 # Fabrice Bellard et al's Tiny C Compiler
17074 lt_prog_compiler_wl='-Wl,'
17075 lt_prog_compiler_pic='-fPIC'
17076 lt_prog_compiler_static='-static'
17077 ;;
17078 # Catch both prefix and suffix variants: armflang, amdflang, flang<number>
17079 *flang*)
17080 # Flang compiler
17081 lt_prog_compiler_wl='-Wl,'
17082 lt_prog_compiler_pic='-fPIC -DPIC'
17083 lt_prog_compiler_static='-static'
17084 ;;
17085 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran* | nvc* | nvfortran*)
17086 # NVIDIA HPC Compilers
17087 lt_prog_compiler_wl='-Wl,'
17088 lt_prog_compiler_pic='-fpic'
17089 lt_prog_compiler_static='-Bstatic'
17090 ;;
17091 ccc*)
17092 lt_prog_compiler_wl='-Wl,'
17093 # All Alpha code is PIC.
17094 lt_prog_compiler_static='-non_shared'
17095 ;;
17096 xl* | bgxl* | bgf* | mpixl*)
17097 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
17098 lt_prog_compiler_wl='-Wl,'
17099 lt_prog_compiler_pic='-qpic'
17100 lt_prog_compiler_static='-qstaticlink'
17101 ;;
17102 *ncc* | *nfort*)
17103 # NEC Vector Engine compiler suite
17104 lt_prog_compiler_wl='-Wl,'
17105 lt_prog_compiler_pic='-fPIC'
17106 lt_prog_compiler_static='-static'
17107 ;;
17108 *)
17109 case `$CC -V 2>&1``$CC -v 2>&1` in
17110 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
17111 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17112 lt_prog_compiler_pic='-KPIC'
17113 lt_prog_compiler_static='-Bstatic'
17114 lt_prog_compiler_wl=''
17115 ;;
17116 *Sun\ F* | *Sun*Fortran*)
17117 lt_prog_compiler_pic='-KPIC'
17118 lt_prog_compiler_static='-Bstatic'
17119 lt_prog_compiler_wl='-Qoption ld '
17120 ;;
17121 *Sun\ C*)
17122 # Sun C 5.9
17123 lt_prog_compiler_pic='-KPIC'
17124 lt_prog_compiler_static='-Bstatic'
17125 lt_prog_compiler_wl='-Wl,'
17126 ;;
17127 *Intel*\ [CF]*Compiler*)
17128 lt_prog_compiler_wl='-Wl,'
17129 lt_prog_compiler_pic='-fPIC'
17130 lt_prog_compiler_static='-static'
17131 ;;
17132 *Cray\ Fortran* | *Cray\ C*)
17133 lt_prog_compiler_wl='-Wl,'
17134 lt_prog_compiler_pic='-hpic'
17135 lt_prog_compiler_static='-static'
17136 ;;
17137 *Portland\ Group* | *NVIDIA\ Compilers* | *PGI\ Compilers*)
17138 lt_prog_compiler_wl='-Wl,'
17139 lt_prog_compiler_pic='-fpic'
17140 lt_prog_compiler_static='-Bstatic'
17141 ;;
17142 *Fujitsu*)
17143 lt_prog_compiler_wl='-Wl,'
17144 lt_prog_compiler_pic='-Kpic'
17145 lt_prog_compiler_static='-Bstatic'
17146 ;;
17147 *xlf*)
17148 lt_prog_compiler_wl='-Wl,'
17149 lt_prog_compiler_pic='-qpic'
17150 lt_prog_compiler_static='-qstaticlink'
17151 ;;
17152 # Not sure if `flang version` exists, but honor vendor prefix like 'AMD '
17153 *clang\ version* | *flang\ version* | *flang-new\ version* | *flang-classic\ version*)
17154 lt_prog_compiler_wl='-Wl,'
17155 lt_prog_compiler_pic='-fPIC -DPIC'
17156 lt_prog_compiler_static='-static'
17157 ;;
17158 esac
17159 ;;
17160 esac
17161 ;;
17162
17163 newsos6)
17164 lt_prog_compiler_pic='-KPIC'
17165 lt_prog_compiler_static='-Bstatic'
17166 ;;
17167
17168 *nto* | *qnx*)
17169 # QNX uses GNU C++, but need to define -shared option too, otherwise
17170 # it will coredump.
17171 lt_prog_compiler_pic='-fPIC -shared'
17172 ;;
17173
17174 osf3* | osf4* | osf5*)
17175 lt_prog_compiler_wl='-Wl,'
17176 # All OSF/1 code is PIC.
17177 lt_prog_compiler_static='-non_shared'
17178 ;;
17179
17180 rdos*)
17181 lt_prog_compiler_static='-non_shared'
17182 ;;
17183
17184 solaris*)
17185 lt_prog_compiler_pic='-KPIC'
17186 lt_prog_compiler_static='-Bstatic'
17187 case $cc_basename in
17188 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
17189 lt_prog_compiler_wl='-Qoption ld ';;
17190 *)
17191 lt_prog_compiler_wl='-Wl,';;
17192 esac
17193 ;;
17194
17195 sunos4*)
17196 lt_prog_compiler_wl='-Qoption ld '
17197 lt_prog_compiler_pic='-PIC'
17198 lt_prog_compiler_static='-Bstatic'
17199 ;;
17200
17201 sysv4 | sysv4.2uw2* | sysv4.3*)
17202 lt_prog_compiler_wl='-Wl,'
17203 lt_prog_compiler_pic='-KPIC'
17204 lt_prog_compiler_static='-Bstatic'
17205 ;;
17206
17207 sysv4*MP*)
17208 if test -d /usr/nec; then
17209 lt_prog_compiler_pic='-Kconform_pic'
17210 lt_prog_compiler_static='-Bstatic'
17211 fi
17212 ;;
17213
17214 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17215 lt_prog_compiler_wl='-Wl,'
17216 lt_prog_compiler_pic='-KPIC'
17217 lt_prog_compiler_static='-Bstatic'
17218 ;;
17219
17220 unicos*)
17221 lt_prog_compiler_wl='-Wl,'
17222 lt_prog_compiler_can_build_shared=no
17223 ;;
17224
17225 uts4*)
17226 lt_prog_compiler_pic='-pic'
17227 lt_prog_compiler_static='-Bstatic'
17228 ;;
17229
17230 *)
17231 lt_prog_compiler_can_build_shared=no
17232 ;;
17233 esac
17234 fi
17235
17236 case $host_os in
17237 # For platforms that do not support PIC, -DPIC is meaningless:
17238 *djgpp*)
17239 lt_prog_compiler_pic=
17240 ;;
17241 *)
17242 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
17243 ;;
17244 esac
17245
17246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17247 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17248 if ${lt_cv_prog_compiler_pic+:} false; then :
17249 $as_echo_n "(cached) " >&6
17250 else
17251 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
17252 fi
17253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
17254 case "$lt_cv_prog_compiler_pic" in #(
17255 yes|ok|yes[\ ,]*) :
17256 $as_echo "${as__grn}$lt_cv_prog_compiler_pic${as__std}" >&6 ;; #(
17257 no|failed|unsupported|no[\ ,]*) :
17258 $as_echo "${as__red}$lt_cv_prog_compiler_pic${as__std}" >&6 ;; #(
17259 *) :
17260 $as_echo "${as__blu}$lt_cv_prog_compiler_pic${as__std}" >&6 ;;
17261 esac; }
17262 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
17263
17264 #
17265 # Check to make sure the PIC flag actually works.
17266 #
17267 if test -n "$lt_prog_compiler_pic"; then
17268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
17269 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
17270 if ${lt_cv_prog_compiler_pic_works+:} false; then :
17271 $as_echo_n "(cached) " >&6
17272 else
17273 lt_cv_prog_compiler_pic_works=no
17274 ac_outfile=conftest.$ac_objext
17275 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17276 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
17277 # Insert the option either (1) after the last *FLAGS variable, or
17278 # (2) before a word containing "conftest.", or (3) at the end.
17279 # Note that $ac_compile itself does not contain backslashes and begins
17280 # with a dollar sign (not a hyphen), so the echo should work correctly.
17281 # The option is referenced via a variable to avoid confusing sed.
17282 lt_compile=`echo "$ac_compile" | $SED \
17283 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17284 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17285 -e 's:$: $lt_compiler_flag:'`
17286 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17287 (eval "$lt_compile" 2>conftest.err)
17288 ac_status=$?
17289 cat conftest.err >&5
17290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17291 if (exit $ac_status) && test -s "$ac_outfile"; then
17292 # The compiler can only warn and ignore the option if not recognized
17293 # So say no if there are warnings other than the usual output.
17294 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17295 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17296 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17297 lt_cv_prog_compiler_pic_works=yes
17298 fi
17299 fi
17300 $RM conftest*
17301
17302 fi
17303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
17304 case "$lt_cv_prog_compiler_pic_works" in #(
17305 yes|ok|yes[\ ,]*) :
17306 $as_echo "${as__grn}$lt_cv_prog_compiler_pic_works${as__std}" >&6 ;; #(
17307 no|failed|unsupported|no[\ ,]*) :
17308 $as_echo "${as__red}$lt_cv_prog_compiler_pic_works${as__std}" >&6 ;; #(
17309 *) :
17310 $as_echo "${as__blu}$lt_cv_prog_compiler_pic_works${as__std}" >&6 ;;
17311 esac; }
17312
17313 if test yes = "$lt_cv_prog_compiler_pic_works"; then
17314 case $lt_prog_compiler_pic in
17315 "" | " "*) ;;
17316 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
17317 esac
17318 else
17319 lt_prog_compiler_pic=
17320 lt_prog_compiler_can_build_shared=no
17321 fi
17322
17323 fi
17324
17325
17326
17327
17328
17329
17330
17331
17332
17333
17334
17335 #
17336 # Check to make sure the static flag actually works.
17337 #
17338 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
17339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17340 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17341 if ${lt_cv_prog_compiler_static_works+:} false; then :
17342 $as_echo_n "(cached) " >&6
17343 else
17344 lt_cv_prog_compiler_static_works=no
17345 save_LDFLAGS=$LDFLAGS
17346 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17347 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17348 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17349 # The linker can only warn and ignore the option if not recognized
17350 # So say no if there are warnings
17351 if test -s conftest.err; then
17352 # Append any errors to the config.log.
17353 cat conftest.err 1>&5
17354 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17355 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17356 if diff conftest.exp conftest.er2 >/dev/null; then
17357 lt_cv_prog_compiler_static_works=yes
17358 fi
17359 else
17360 lt_cv_prog_compiler_static_works=yes
17361 fi
17362 fi
17363 $RM -r conftest*
17364 LDFLAGS=$save_LDFLAGS
17365
17366 fi
17367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
17368 case "$lt_cv_prog_compiler_static_works" in #(
17369 yes|ok|yes[\ ,]*) :
17370 $as_echo "${as__grn}$lt_cv_prog_compiler_static_works${as__std}" >&6 ;; #(
17371 no|failed|unsupported|no[\ ,]*) :
17372 $as_echo "${as__red}$lt_cv_prog_compiler_static_works${as__std}" >&6 ;; #(
17373 *) :
17374 $as_echo "${as__blu}$lt_cv_prog_compiler_static_works${as__std}" >&6 ;;
17375 esac; }
17376
17377 if test yes = "$lt_cv_prog_compiler_static_works"; then
17378 :
17379 else
17380 lt_prog_compiler_static=
17381 fi
17382
17383
17384
17385
17386
17387
17388
17389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17390 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17391 if ${lt_cv_prog_compiler_c_o+:} false; then :
17392 $as_echo_n "(cached) " >&6
17393 else
17394 lt_cv_prog_compiler_c_o=no
17395 $RM -r conftest 2>/dev/null
17396 mkdir conftest
17397 cd conftest
17398 mkdir out
17399 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17400
17401 lt_compiler_flag="-o out/conftest2.$ac_objext"
17402 # Insert the option either (1) after the last *FLAGS variable, or
17403 # (2) before a word containing "conftest.", or (3) at the end.
17404 # Note that $ac_compile itself does not contain backslashes and begins
17405 # with a dollar sign (not a hyphen), so the echo should work correctly.
17406 lt_compile=`echo "$ac_compile" | $SED \
17407 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17408 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17409 -e 's:$: $lt_compiler_flag:'`
17410 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17411 (eval "$lt_compile" 2>out/conftest.err)
17412 ac_status=$?
17413 cat out/conftest.err >&5
17414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17415 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17416 then
17417 # The compiler can only warn and ignore the option if not recognized
17418 # So say no if there are warnings
17419 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17420 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17421 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17422 lt_cv_prog_compiler_c_o=yes
17423 fi
17424 fi
17425 chmod u+w . 2>&5
17426 $RM conftest*
17427 # SGI C++ compiler will create directory out/ii_files/ for
17428 # template instantiation
17429 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17430 $RM out/* && rmdir out
17431 cd ..
17432 $RM -r conftest
17433 $RM conftest*
17434
17435 fi
17436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
17437 case "$lt_cv_prog_compiler_c_o" in #(
17438 yes|ok|yes[\ ,]*) :
17439 $as_echo "${as__grn}$lt_cv_prog_compiler_c_o${as__std}" >&6 ;; #(
17440 no|failed|unsupported|no[\ ,]*) :
17441 $as_echo "${as__red}$lt_cv_prog_compiler_c_o${as__std}" >&6 ;; #(
17442 *) :
17443 $as_echo "${as__blu}$lt_cv_prog_compiler_c_o${as__std}" >&6 ;;
17444 esac; }
17445
17446
17447
17448
17449
17450
17451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17452 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17453 if ${lt_cv_prog_compiler_c_o+:} false; then :
17454 $as_echo_n "(cached) " >&6
17455 else
17456 lt_cv_prog_compiler_c_o=no
17457 $RM -r conftest 2>/dev/null
17458 mkdir conftest
17459 cd conftest
17460 mkdir out
17461 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17462
17463 lt_compiler_flag="-o out/conftest2.$ac_objext"
17464 # Insert the option either (1) after the last *FLAGS variable, or
17465 # (2) before a word containing "conftest.", or (3) at the end.
17466 # Note that $ac_compile itself does not contain backslashes and begins
17467 # with a dollar sign (not a hyphen), so the echo should work correctly.
17468 lt_compile=`echo "$ac_compile" | $SED \
17469 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17470 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17471 -e 's:$: $lt_compiler_flag:'`
17472 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17473 (eval "$lt_compile" 2>out/conftest.err)
17474 ac_status=$?
17475 cat out/conftest.err >&5
17476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17477 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17478 then
17479 # The compiler can only warn and ignore the option if not recognized
17480 # So say no if there are warnings
17481 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17482 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17483 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17484 lt_cv_prog_compiler_c_o=yes
17485 fi
17486 fi
17487 chmod u+w . 2>&5
17488 $RM conftest*
17489 # SGI C++ compiler will create directory out/ii_files/ for
17490 # template instantiation
17491 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17492 $RM out/* && rmdir out
17493 cd ..
17494 $RM -r conftest
17495 $RM conftest*
17496
17497 fi
17498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
17499 case "$lt_cv_prog_compiler_c_o" in #(
17500 yes|ok|yes[\ ,]*) :
17501 $as_echo "${as__grn}$lt_cv_prog_compiler_c_o${as__std}" >&6 ;; #(
17502 no|failed|unsupported|no[\ ,]*) :
17503 $as_echo "${as__red}$lt_cv_prog_compiler_c_o${as__std}" >&6 ;; #(
17504 *) :
17505 $as_echo "${as__blu}$lt_cv_prog_compiler_c_o${as__std}" >&6 ;;
17506 esac; }
17507
17508
17509
17510
17511 hard_links=nottested
17512 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
17513 # do not overwrite the value of need_locks provided by the user
17514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17515 $as_echo_n "checking if we can lock with hard links... " >&6; }
17516 hard_links=yes
17517 $RM conftest*
17518 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17519 touch conftest.a
17520 ln conftest.a conftest.b 2>&5 || hard_links=no
17521 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17523 case "$hard_links" in #(
17524 yes|ok|yes[\ ,]*) :
17525 $as_echo "${as__grn}$hard_links${as__std}" >&6 ;; #(
17526 no|failed|unsupported|no[\ ,]*) :
17527 $as_echo "${as__red}$hard_links${as__std}" >&6 ;; #(
17528 *) :
17529 $as_echo "${as__blu}$hard_links${as__std}" >&6 ;;
17530 esac; }
17531 if test no = "$hard_links"; then
17532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
17533 $as_echo "$as_me: ${as__yel}WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe${as__std}" >&2;}
17534 need_locks=warn
17535 fi
17536 else
17537 need_locks=no
17538 fi
17539
17540
17541
17542
17543
17544
17545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17546 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17547
17548 runpath_var=
17549 allow_undefined_flag=
17550 always_export_symbols=no
17551 archive_cmds=
17552 archive_expsym_cmds=
17553 compiler_needs_object=no
17554 enable_shared_with_static_runtimes=no
17555 export_dynamic_flag_spec=
17556 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17557 hardcode_automatic=no
17558 hardcode_direct=no
17559 hardcode_direct_absolute=no
17560 hardcode_libdir_flag_spec=
17561 hardcode_libdir_separator=
17562 hardcode_minus_L=no
17563 hardcode_shlibpath_var=unsupported
17564 inherit_rpath=no
17565 link_all_deplibs=unknown
17566 module_cmds=
17567 module_expsym_cmds=
17568 old_archive_from_new_cmds=
17569 old_archive_from_expsyms_cmds=
17570 thread_safe_flag_spec=
17571 whole_archive_flag_spec=
17572 # include_expsyms should be a list of space-separated symbols to be *always*
17573 # included in the symbol list
17574 include_expsyms=
17575 # exclude_expsyms can be an extended regexp of symbols to exclude
17576 # it will be wrapped by ' (' and ')$', so one must not match beginning or
17577 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
17578 # as well as any symbol that contains 'd'.
17579 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17580 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17581 # platforms (ab)use it in PIC code, but their linkers get confused if
17582 # the symbol is explicitly referenced. Since portable code cannot
17583 # rely on this symbol name, it's probably fine to never include it in
17584 # preloaded symbol tables.
17585 # Exclude shared library initialization/finalization symbols.
17586 extract_expsyms_cmds=
17587
17588 case $host_os in
17589 cygwin* | mingw* | pw32* | cegcc*)
17590 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17591 # When not using gcc, we currently assume that we are using
17592 # Microsoft Visual C++.
17593 if test yes != "$GCC"; then
17594 with_gnu_ld=no
17595 fi
17596 ;;
17597 interix*)
17598 # we just hope/assume this is gcc and not c89 (= MSVC++)
17599 with_gnu_ld=yes
17600 ;;
17601 openbsd* | bitrig*)
17602 with_gnu_ld=no
17603 ;;
17604 esac
17605
17606 ld_shlibs=yes
17607
17608 # On some targets, GNU ld is compatible enough with the native linker
17609 # that we're better off using the native interface for both.
17610 lt_use_gnu_ld_interface=no
17611 if test yes = "$with_gnu_ld"; then
17612 case $host_os in
17613 aix*)
17614 # The AIX port of GNU ld has always aspired to compatibility
17615 # with the native linker. However, as the warning in the GNU ld
17616 # block says, versions before 2.19.5* couldn't really create working
17617 # shared libraries, regardless of the interface used.
17618 case `$LD -v 2>&1` in
17619 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
17620 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
17621 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
17622 *)
17623 lt_use_gnu_ld_interface=yes
17624 ;;
17625 esac
17626 ;;
17627 *)
17628 lt_use_gnu_ld_interface=yes
17629 ;;
17630 esac
17631 fi
17632
17633 if test yes = "$lt_use_gnu_ld_interface"; then
17634 # If archive_cmds runs LD, not CC, wlarc should be empty
17635 wlarc='$wl'
17636
17637 # Set some defaults for GNU ld with shared library support. These
17638 # are reset later if shared libraries are not supported. Putting them
17639 # here allows them to be overridden if necessary.
17640 runpath_var=LD_RUN_PATH
17641 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17642 export_dynamic_flag_spec='$wl--export-dynamic'
17643 # ancient GNU ld didn't support --whole-archive et. al.
17644 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17645 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
17646 else
17647 whole_archive_flag_spec=
17648 fi
17649 supports_anon_versioning=no
17650 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
17651 *GNU\ gold*) supports_anon_versioning=yes ;;
17652 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17653 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17654 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17655 *\ 2.11.*) ;; # other 2.11 versions
17656 *) supports_anon_versioning=yes ;;
17657 esac
17658
17659 # See if GNU ld supports shared libraries.
17660 case $host_os in
17661 aix[3-9]*)
17662 # On AIX/PPC, the GNU linker is very broken
17663 if test ia64 != "$host_cpu"; then
17664 ld_shlibs=no
17665 cat <<_LT_EOF 1>&2
17666
17667 *** Warning: the GNU linker, at least up to release 2.19, is reported
17668 *** to be unable to reliably create shared libraries on AIX.
17669 *** Therefore, libtool is disabling shared libraries support. If you
17670 *** really care for shared libraries, you may want to install binutils
17671 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
17672 *** You will then need to restart the configuration process.
17673
17674 _LT_EOF
17675 fi
17676 ;;
17677
17678 amigaos*)
17679 case $host_cpu in
17680 powerpc)
17681 # see comment about AmigaOS4 .so support
17682 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17683 archive_expsym_cmds=''
17684 ;;
17685 m68k)
17686 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)'
17687 hardcode_libdir_flag_spec='-L$libdir'
17688 hardcode_minus_L=yes
17689 ;;
17690 esac
17691 ;;
17692
17693 beos*)
17694 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17695 allow_undefined_flag=unsupported
17696 # Joseph Beckenbach <[email protected]> says some releases of gcc
17697 # support --undefined. This deserves some investigation. FIXME
17698 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17699 else
17700 ld_shlibs=no
17701 fi
17702 ;;
17703
17704 cygwin* | mingw* | pw32* | cegcc*)
17705 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
17706 # as there is no search path for DLLs.
17707 hardcode_libdir_flag_spec='-L$libdir'
17708 export_dynamic_flag_spec='$wl--export-all-symbols'
17709 allow_undefined_flag=unsupported
17710 always_export_symbols=no
17711 enable_shared_with_static_runtimes=yes
17712 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
17713 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
17714
17715 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17716 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17717 # If the export-symbols file already is a .def file, use it as
17718 # is; otherwise, prepend EXPORTS...
17719 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
17720 cp $export_symbols $output_objdir/$soname.def;
17721 else
17722 echo EXPORTS > $output_objdir/$soname.def;
17723 cat $export_symbols >> $output_objdir/$soname.def;
17724 fi~
17725 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17726 else
17727 ld_shlibs=no
17728 fi
17729 ;;
17730
17731 haiku*)
17732 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17733 link_all_deplibs=yes
17734 ;;
17735
17736 os2*)
17737 hardcode_libdir_flag_spec='-L$libdir'
17738 hardcode_minus_L=yes
17739 allow_undefined_flag=unsupported
17740 shrext_cmds=.dll
17741 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17742 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17743 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17744 $ECHO EXPORTS >> $output_objdir/$libname.def~
17745 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
17746 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17747 emximp -o $lib $output_objdir/$libname.def'
17748 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17749 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17750 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17751 $ECHO EXPORTS >> $output_objdir/$libname.def~
17752 prefix_cmds="$SED"~
17753 if test EXPORTS = "`$SED 1q $export_symbols`"; then
17754 prefix_cmds="$prefix_cmds -e 1d";
17755 fi~
17756 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
17757 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
17758 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17759 emximp -o $lib $output_objdir/$libname.def'
17760 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
17761 enable_shared_with_static_runtimes=yes
17762 ;;
17763
17764 interix[3-9]*)
17765 hardcode_direct=no
17766 hardcode_shlibpath_var=no
17767 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
17768 export_dynamic_flag_spec='$wl-E'
17769 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17770 # Instead, shared libraries are loaded at an image base (0x10000000 by
17771 # default) and relocated if they conflict, which is a slow very memory
17772 # consuming and fragmenting process. To avoid this, we pick a random,
17773 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17774 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17775 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17776 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'
17777 ;;
17778
17779 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
17780 tmp_diet=no
17781 if test linux-dietlibc = "$host_os"; then
17782 case $cc_basename in
17783 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
17784 esac
17785 fi
17786 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
17787 && test no = "$tmp_diet"
17788 then
17789 tmp_addflag=' $pic_flag'
17790 tmp_sharedflag='-shared'
17791 case $cc_basename,$host_cpu in
17792 pgcc* | nvc*) # NVIDIA HPC C compiler
17793 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'
17794 tmp_addflag=' $pic_flag'
17795 ;;
17796 pgCC* | pgcpp* | pgc++* | nvc++*) # NVIDIA HPC C++ compiler
17797 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'
17798 tmp_addflag=' $pic_flag'
17799 ;;
17800 pgf77* | pgf90* | pgf95* | pgfortran* | nvfortran*)
17801 # NVIDIA HPC Fortran compiler
17802 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'
17803 tmp_addflag=' $pic_flag -Mnomain' ;;
17804 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17805 tmp_addflag=' -i_dynamic' ;;
17806 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17807 tmp_addflag=' -i_dynamic -nofor_main' ;;
17808 ifc* | ifort*) # Intel Fortran compiler
17809 tmp_addflag=' -nofor_main' ;;
17810 lf95*) # Lahey Fortran 8.1
17811 whole_archive_flag_spec=
17812 tmp_sharedflag='--shared' ;;
17813 nagfor*) # NAGFOR 5.3
17814 tmp_sharedflag='-Wl,-shared' ;;
17815 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC
17816 tmp_sharedflag='-qmkshrobj'
17817 tmp_addflag= ;;
17818 xlf* | mpixlf*) # IBM xlf since version 13 knows about -qmkshrobj, see also below
17819 xlf_version=`$CC -qversion=verbose 2>&1 | sed -n 2p | sed -e "s/^Version: //" | cut -d'.' -f 1`
17820 if test $xlf_version -ge 13; then
17821 tmp_sharedflag='-qmkshrobj'
17822 tmp_addflag=
17823 fi
17824 ;;
17825 nvcc*) # Cuda Compiler Driver 2.2
17826 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'
17827 compiler_needs_object=yes
17828 ;;
17829 *ncc* | *nfort*)
17830 # NEC Vector Engine Compiler Suite
17831 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'
17832 tmp_sharedflag='-shared'
17833 tmp_addflag=' $pic_flag'
17834 ;;
17835 *)
17836 case `$CC -V 2>&1 | sed 5q` in
17837 *Sun\ C*) # Sun C 5.9
17838 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'
17839 compiler_needs_object=yes
17840 tmp_sharedflag='-G' ;;
17841 *Sun\ F*) # Sun Fortran 8.3
17842 tmp_sharedflag='-G' ;;
17843 *xlc*) # IBM XL C
17844 tmp_sharedflag='-qmkshrobj'
17845 tmp_addflag= ;;
17846 *xlf*) # IBM xlf since version 13 knows about -qmkshrobj
17847 xlf_version=`$CC -qversion=verbose 2>&1 | sed -n 2p | sed -e "s/^Version: //" | cut -d'.' -f 1`
17848 if test $xlf_version -ge 13; then
17849 tmp_sharedflag='-qmkshrobj'
17850 tmp_addflag=
17851 fi
17852 ;;
17853 esac
17854 esac
17855 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17856
17857 if test yes = "$supports_anon_versioning"; then
17858 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
17859 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17860 echo "local: *; };" >> $output_objdir/$libname.ver~
17861 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
17862 fi
17863
17864 case $cc_basename in
17865 tcc*)
17866 export_dynamic_flag_spec='-rdynamic'
17867 ;;
17868 xlf* | mpixlf*) # IBM xlf since version 13 knows about -qmkshrobj, see also above
17869 xlf_version=`$CC -qversion=verbose 2>&1 | sed -n 2p | sed -e "s/^Version: //" | cut -d'.' -f 1`
17870 if test $xlf_version -lt 13; then
17871 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
17872 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17873 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
17874 if test yes = "$supports_anon_versioning"; then
17875 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
17876 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17877 echo "local: *; };" >> $output_objdir/$libname.ver~
17878 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
17879 fi
17880 fi
17881 ;;
17882 bgf* | bgxlf*)
17883 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
17884 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
17885 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17886 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
17887 if test yes = "$supports_anon_versioning"; then
17888 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
17889 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17890 echo "local: *; };" >> $output_objdir/$libname.ver~
17891 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
17892 fi
17893 ;;
17894 esac
17895 case `$CC -V 2>&1 | sed 5q` in
17896 *Cray\ C* | *Cray\ Fortran*) # Cray C/C++/Fortran
17897 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'
17898 compiler_needs_object=yes
17899 archive_cmds_need_lc='no'
17900 archive_cmds='save_STRIP=$STRIP; unset STRIP; $CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib; ret=\$?; STRIP=\$save_STRIP; export STRIP; (exit \$ret)'
17901 ;;
17902 esac
17903 else
17904 ld_shlibs=no
17905 fi
17906 ;;
17907
17908 netbsd*)
17909 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17910 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17911 wlarc=
17912 else
17913 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17914 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
17915 fi
17916 ;;
17917
17918 solaris*)
17919 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
17920 ld_shlibs=no
17921 cat <<_LT_EOF 1>&2
17922
17923 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17924 *** create shared libraries on Solaris systems. Therefore, libtool
17925 *** is disabling shared libraries support. We urge you to upgrade GNU
17926 *** binutils to release 2.9.1 or newer. Another option is to modify
17927 *** your PATH or compiler configuration so that the native linker is
17928 *** used, and then restart.
17929
17930 _LT_EOF
17931 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17932 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17933 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
17934 else
17935 ld_shlibs=no
17936 fi
17937 ;;
17938
17939 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17940 case `$LD -v 2>&1` in
17941 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17942 ld_shlibs=no
17943 cat <<_LT_EOF 1>&2
17944
17945 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
17946 *** reliably create shared libraries on SCO systems. Therefore, libtool
17947 *** is disabling shared libraries support. We urge you to upgrade GNU
17948 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17949 *** your PATH or compiler configuration so that the native linker is
17950 *** used, and then restart.
17951
17952 _LT_EOF
17953 ;;
17954 *)
17955 # For security reasons, it is highly recommended that you always
17956 # use absolute paths for naming shared libraries, and exclude the
17957 # DT_RUNPATH tag from executables and libraries. But doing so
17958 # requires that you compile everything twice, which is a pain.
17959 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17960 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17961 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17962 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
17963 else
17964 ld_shlibs=no
17965 fi
17966 ;;
17967 esac
17968 ;;
17969
17970 sunos4*)
17971 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17972 wlarc=
17973 hardcode_direct=yes
17974 hardcode_shlibpath_var=no
17975 ;;
17976
17977 *)
17978 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17979 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17980 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
17981 else
17982 ld_shlibs=no
17983 fi
17984 ;;
17985 esac
17986
17987 if test no = "$ld_shlibs"; then
17988 runpath_var=
17989 hardcode_libdir_flag_spec=
17990 export_dynamic_flag_spec=
17991 whole_archive_flag_spec=
17992 fi
17993 else
17994 # PORTME fill in a description of your system's linker (not GNU ld)
17995 case $host_os in
17996 aix3*)
17997 allow_undefined_flag=unsupported
17998 always_export_symbols=yes
17999 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'
18000 # Note: this linker hardcodes the directories in LIBPATH if there
18001 # are no directories specified by -L.
18002 hardcode_minus_L=yes
18003 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
18004 # Neither direct hardcoding nor static linking is supported with a
18005 # broken collect2.
18006 hardcode_direct=unsupported
18007 fi
18008 ;;
18009
18010 aix[4-9]*)
18011 if test ia64 = "$host_cpu"; then
18012 # On IA64, the linker does run time linking by default, so we don't
18013 # have to do anything special.
18014 aix_use_runtimelinking=no
18015 exp_sym_flag='-Bexport'
18016 no_entry_flag=
18017 else
18018 # If we're using GNU nm, then we don't want the "-C" option.
18019 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
18020 # Without the "-l" option, or with the "-B" option, AIX nm treats
18021 # weak defined symbols like other global defined symbols, whereas
18022 # GNU nm marks them as "W".
18023 # While the 'weak' keyword is ignored in the Export File, we need
18024 # it in the Import File for the 'aix-soname' feature, so we have
18025 # to replace the "-B" option with "-P" for AIX nm.
18026 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18027 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
18028 else
18029 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
18030 fi
18031 aix_use_runtimelinking=no
18032
18033 # Test if we are trying to use run time linking or normal
18034 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18035 # have runtime linking enabled, and use it for executables.
18036 # For shared libraries, we enable/disable runtime linking
18037 # depending on the kind of the shared library created -
18038 # when "with_aix_soname,aix_use_runtimelinking" is:
18039 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
18040 # "aix,yes" lib.so shared, rtl:yes, for executables
18041 # lib.a static archive
18042 # "both,no" lib.so.V(shr.o) shared, rtl:yes
18043 # lib.a(lib.so.V) shared, rtl:no, for executables
18044 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
18045 # lib.a(lib.so.V) shared, rtl:no
18046 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
18047 # lib.a static archive
18048 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18049 for ld_flag in $LDFLAGS; do
18050 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
18051 aix_use_runtimelinking=yes
18052 break
18053 fi
18054 done
18055 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
18056 # With aix-soname=svr4, we create the lib.so.V shared archives only,
18057 # so we don't have lib.a shared libs to link our executables.
18058 # We have to force runtime linking in this case.
18059 aix_use_runtimelinking=yes
18060 LDFLAGS="$LDFLAGS -Wl,-brtl"
18061 fi
18062 ;;
18063 esac
18064
18065 exp_sym_flag='-bexport'
18066 no_entry_flag='-bnoentry'
18067 fi
18068
18069 # When large executables or shared objects are built, AIX ld can
18070 # have problems creating the table of contents. If linking a library
18071 # or program results in "error TOC overflow" add -mminimal-toc to
18072 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18073 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18074
18075 archive_cmds=''
18076 hardcode_direct=yes
18077 hardcode_direct_absolute=yes
18078 hardcode_libdir_separator=':'
18079 link_all_deplibs=yes
18080 file_list_spec='$wl-f,'
18081 case $with_aix_soname,$aix_use_runtimelinking in
18082 aix,*) ;; # traditional, no import file
18083 svr4,* | *,yes) # use import file
18084 # The Import File defines what to hardcode.
18085 hardcode_direct=no
18086 hardcode_direct_absolute=no
18087 ;;
18088 esac
18089
18090 if test yes = "$GCC"; then
18091 case $host_os in aix4.[012]|aix4.[012].*)
18092 # We only want to do this on AIX 4.2 and lower, the check
18093 # below for broken collect2 doesn't work under 4.3+
18094 collect2name=`$CC -print-prog-name=collect2`
18095 if test -f "$collect2name" &&
18096 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18097 then
18098 # We have reworked collect2
18099 :
18100 else
18101 # We have old collect2
18102 hardcode_direct=unsupported
18103 # It fails to find uninstalled libraries when the uninstalled
18104 # path is not listed in the libpath. Setting hardcode_minus_L
18105 # to unsupported forces relinking
18106 hardcode_minus_L=yes
18107 hardcode_libdir_flag_spec='-L$libdir'
18108 hardcode_libdir_separator=
18109 fi
18110 ;;
18111 esac
18112 shared_flag='-shared'
18113 if test yes = "$aix_use_runtimelinking"; then
18114 shared_flag="$shared_flag "'$wl-G'
18115 fi
18116 # Need to ensure runtime linking is disabled for the traditional
18117 # shared library, or the linker may eventually find shared libraries
18118 # /with/ Import File - we do not want to mix them.
18119 shared_flag_aix='-shared'
18120 shared_flag_svr4='-shared $wl-G'
18121 else
18122 # not using gcc
18123 if test ia64 = "$host_cpu"; then
18124 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18125 # chokes on -Wl,-G. The following line is correct:
18126 shared_flag='-G'
18127 else
18128 if test yes = "$aix_use_runtimelinking"; then
18129 shared_flag='$wl-G'
18130 else
18131 shared_flag='$wl-bM:SRE'
18132 fi
18133 shared_flag_aix='$wl-bM:SRE'
18134 shared_flag_svr4='$wl-G'
18135 fi
18136 fi
18137
18138 export_dynamic_flag_spec='$wl-bexpall'
18139 # It seems that -bexpall does not export symbols beginning with
18140 # underscore (_), so it is better to generate a list of symbols to export.
18141 always_export_symbols=yes
18142 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
18143 # Warning - without using the other runtime loading flags (-brtl),
18144 # -berok will link without error, but may produce a broken library.
18145 allow_undefined_flag='-berok'
18146 # Determine the default libpath from the value encoded in an
18147 # empty executable.
18148 if test set = "${lt_cv_aix_libpath+set}"; then
18149 aix_libpath=$lt_cv_aix_libpath
18150 else
18151 if ${lt_cv_aix_libpath_+:} false; then :
18152 $as_echo_n "(cached) " >&6
18153 else
18154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18155 /* end confdefs.h. */
18156
18157 int
18158 main ()
18159 {
18160
18161 ;
18162 return 0;
18163 }
18164 _ACEOF
18165 if ac_fn_c_try_link "$LINENO"; then :
18166
18167 lt_aix_libpath_sed='
18168 /Import File Strings/,/^$/ {
18169 /^0/ {
18170 s/^0 *\([^ ]*\) *$/\1/
18171 p
18172 }
18173 }'
18174 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18175 # Check for a 64-bit object if we didn't find anything.
18176 if test -z "$lt_cv_aix_libpath_"; then
18177 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18178 fi
18179 fi
18180 rm -f core conftest.err conftest.$ac_objext \
18181 conftest$ac_exeext conftest.$ac_ext
18182 if test -z "$lt_cv_aix_libpath_"; then
18183 lt_cv_aix_libpath_=/usr/lib:/lib
18184 fi
18185
18186 fi
18187
18188 aix_libpath=$lt_cv_aix_libpath_
18189 fi
18190
18191 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
18192 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
18193 else
18194 if test ia64 = "$host_cpu"; then
18195 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
18196 allow_undefined_flag="-z nodefs"
18197 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"
18198 else
18199 # Determine the default libpath from the value encoded in an
18200 # empty executable.
18201 if test set = "${lt_cv_aix_libpath+set}"; then
18202 aix_libpath=$lt_cv_aix_libpath
18203 else
18204 if ${lt_cv_aix_libpath_+:} false; then :
18205 $as_echo_n "(cached) " >&6
18206 else
18207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18208 /* end confdefs.h. */
18209
18210 int
18211 main ()
18212 {
18213
18214 ;
18215 return 0;
18216 }
18217 _ACEOF
18218 if ac_fn_c_try_link "$LINENO"; then :
18219
18220 lt_aix_libpath_sed='
18221 /Import File Strings/,/^$/ {
18222 /^0/ {
18223 s/^0 *\([^ ]*\) *$/\1/
18224 p
18225 }
18226 }'
18227 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18228 # Check for a 64-bit object if we didn't find anything.
18229 if test -z "$lt_cv_aix_libpath_"; then
18230 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18231 fi
18232 fi
18233 rm -f core conftest.err conftest.$ac_objext \
18234 conftest$ac_exeext conftest.$ac_ext
18235 if test -z "$lt_cv_aix_libpath_"; then
18236 lt_cv_aix_libpath_=/usr/lib:/lib
18237 fi
18238
18239 fi
18240
18241 aix_libpath=$lt_cv_aix_libpath_
18242 fi
18243
18244 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
18245 # Warning - without using the other run time loading flags,
18246 # -berok will link without error, but may produce a broken library.
18247 no_undefined_flag=' $wl-bernotok'
18248 allow_undefined_flag=' $wl-berok'
18249 if test yes = "$with_gnu_ld"; then
18250 # We only use this code for GNU lds that support --whole-archive.
18251 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
18252 else
18253 # Exported symbols can be pulled into shared objects from archives
18254 whole_archive_flag_spec='$convenience'
18255 fi
18256 archive_cmds_need_lc=yes
18257 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
18258 # -brtl affects multiple linker settings, -berok does not and is overridden later
18259 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
18260 if test svr4 != "$with_aix_soname"; then
18261 # This is similar to how AIX traditionally builds its shared libraries.
18262 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
18263 fi
18264 if test aix != "$with_aix_soname"; then
18265 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
18266 else
18267 # used by -dlpreopen to get the symbols
18268 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
18269 fi
18270 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
18271 fi
18272 fi
18273 ;;
18274
18275 amigaos*)
18276 case $host_cpu in
18277 powerpc)
18278 # see comment about AmigaOS4 .so support
18279 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
18280 archive_expsym_cmds=''
18281 ;;
18282 m68k)
18283 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)'
18284 hardcode_libdir_flag_spec='-L$libdir'
18285 hardcode_minus_L=yes
18286 ;;
18287 esac
18288 ;;
18289
18290 bsdi[45]*)
18291 export_dynamic_flag_spec=-rdynamic
18292 ;;
18293
18294 cygwin* | mingw* | pw32* | cegcc*)
18295 # When not using gcc, we currently assume that we are using
18296 # Microsoft Visual C++.
18297 # hardcode_libdir_flag_spec is actually meaningless, as there is
18298 # no search path for DLLs.
18299 case $cc_basename in
18300 cl*)
18301 # Native MSVC
18302 hardcode_libdir_flag_spec=' '
18303 allow_undefined_flag=unsupported
18304 always_export_symbols=yes
18305 file_list_spec='@'
18306 # Tell ltmain to make .lib files, not .a files.
18307 libext=lib
18308 # Tell ltmain to make .dll files, not .so files.
18309 shrext_cmds=.dll
18310 # FIXME: Setting linknames here is a bad hack.
18311 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
18312 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
18313 cp "$export_symbols" "$output_objdir/$soname.def";
18314 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
18315 else
18316 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
18317 fi~
18318 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
18319 linknames='
18320 # The linker will not automatically build a static lib if we build a DLL.
18321 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
18322 enable_shared_with_static_runtimes=yes
18323 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
18324 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18325 # Don't use ranlib
18326 old_postinstall_cmds='chmod 644 $oldlib'
18327 postlink_cmds='lt_outputfile="@OUTPUT@"~
18328 lt_tool_outputfile="@TOOL_OUTPUT@"~
18329 case $lt_outputfile in
18330 *.exe|*.EXE) ;;
18331 *)
18332 lt_outputfile=$lt_outputfile.exe
18333 lt_tool_outputfile=$lt_tool_outputfile.exe
18334 ;;
18335 esac~
18336 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
18337 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
18338 $RM "$lt_outputfile.manifest";
18339 fi'
18340 ;;
18341 *)
18342 # Assume MSVC wrapper
18343 hardcode_libdir_flag_spec=' '
18344 allow_undefined_flag=unsupported
18345 # Tell ltmain to make .lib files, not .a files.
18346 libext=lib
18347 # Tell ltmain to make .dll files, not .so files.
18348 shrext_cmds=.dll
18349 # FIXME: Setting linknames here is a bad hack.
18350 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
18351 # The linker will automatically build a .lib file if we build a DLL.
18352 old_archive_from_new_cmds='true'
18353 # FIXME: Should let the user specify the lib program.
18354 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
18355 enable_shared_with_static_runtimes=yes
18356 ;;
18357 esac
18358 ;;
18359
18360 darwin* | rhapsody*)
18361
18362
18363 archive_cmds_need_lc=no
18364 hardcode_direct=no
18365 hardcode_automatic=yes
18366 hardcode_shlibpath_var=unsupported
18367 if test yes = "$lt_cv_ld_force_load"; then
18368 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\"`'
18369
18370 else
18371 whole_archive_flag_spec=''
18372 fi
18373 link_all_deplibs=yes
18374 allow_undefined_flag=$_lt_dar_allow_undefined
18375 case $cc_basename in
18376 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
18377 *) _lt_dar_can_shared=$GCC ;;
18378 esac
18379 if test yes = "$_lt_dar_can_shared"; then
18380 output_verbose_link_cmd=func_echo_all
18381 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
18382 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
18383 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"
18384 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"
18385
18386 else
18387 ld_shlibs=no
18388 fi
18389
18390 ;;
18391
18392 dgux*)
18393 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18394 hardcode_libdir_flag_spec='-L$libdir'
18395 hardcode_shlibpath_var=no
18396 ;;
18397
18398 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18399 # support. Future versions do this automatically, but an explicit c++rt0.o
18400 # does not break anything, and helps significantly (at the cost of a little
18401 # extra space).
18402 freebsd2.2*)
18403 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18404 hardcode_libdir_flag_spec='-R$libdir'
18405 hardcode_direct=yes
18406 hardcode_shlibpath_var=no
18407 ;;
18408
18409 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18410 freebsd2.*)
18411 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18412 hardcode_direct=yes
18413 hardcode_minus_L=yes
18414 hardcode_shlibpath_var=no
18415 ;;
18416
18417 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18418 freebsd* | dragonfly*)
18419 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18420 hardcode_libdir_flag_spec='-R$libdir'
18421 hardcode_direct=yes
18422 hardcode_shlibpath_var=no
18423 ;;
18424
18425 hpux9*)
18426 if test yes = "$GCC"; then
18427 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
18428 else
18429 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
18430 fi
18431 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
18432 hardcode_libdir_separator=:
18433 hardcode_direct=yes
18434
18435 # hardcode_minus_L: Not really in the search PATH,
18436 # but as the default location of the library.
18437 hardcode_minus_L=yes
18438 export_dynamic_flag_spec='$wl-E'
18439 ;;
18440
18441 hpux10*)
18442 if test yes,no = "$GCC,$with_gnu_ld"; then
18443 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18444 else
18445 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18446 fi
18447 if test no = "$with_gnu_ld"; then
18448 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
18449 hardcode_libdir_separator=:
18450 hardcode_direct=yes
18451 hardcode_direct_absolute=yes
18452 export_dynamic_flag_spec='$wl-E'
18453 # hardcode_minus_L: Not really in the search PATH,
18454 # but as the default location of the library.
18455 hardcode_minus_L=yes
18456 fi
18457 ;;
18458
18459 hpux11*)
18460 if test yes,no = "$GCC,$with_gnu_ld"; then
18461 case $host_cpu in
18462 hppa*64*)
18463 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
18464 ;;
18465 ia64*)
18466 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18467 ;;
18468 *)
18469 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18470 ;;
18471 esac
18472 else
18473 case $host_cpu in
18474 hppa*64*)
18475 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
18476 ;;
18477 ia64*)
18478 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18479 ;;
18480 *)
18481
18482 # Older versions of the 11.00 compiler do not understand -b yet
18483 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
18484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
18485 $as_echo_n "checking if $CC understands -b... " >&6; }
18486 if ${lt_cv_prog_compiler__b+:} false; then :
18487 $as_echo_n "(cached) " >&6
18488 else
18489 lt_cv_prog_compiler__b=no
18490 save_LDFLAGS=$LDFLAGS
18491 LDFLAGS="$LDFLAGS -b"
18492 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18493 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18494 # The linker can only warn and ignore the option if not recognized
18495 # So say no if there are warnings
18496 if test -s conftest.err; then
18497 # Append any errors to the config.log.
18498 cat conftest.err 1>&5
18499 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18500 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18501 if diff conftest.exp conftest.er2 >/dev/null; then
18502 lt_cv_prog_compiler__b=yes
18503 fi
18504 else
18505 lt_cv_prog_compiler__b=yes
18506 fi
18507 fi
18508 $RM -r conftest*
18509 LDFLAGS=$save_LDFLAGS
18510
18511 fi
18512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
18513 case "$lt_cv_prog_compiler__b" in #(
18514 yes|ok|yes[\ ,]*) :
18515 $as_echo "${as__grn}$lt_cv_prog_compiler__b${as__std}" >&6 ;; #(
18516 no|failed|unsupported|no[\ ,]*) :
18517 $as_echo "${as__red}$lt_cv_prog_compiler__b${as__std}" >&6 ;; #(
18518 *) :
18519 $as_echo "${as__blu}$lt_cv_prog_compiler__b${as__std}" >&6 ;;
18520 esac; }
18521
18522 if test yes = "$lt_cv_prog_compiler__b"; then
18523 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18524 else
18525 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18526 fi
18527
18528 ;;
18529 esac
18530 fi
18531 if test no = "$with_gnu_ld"; then
18532 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
18533 hardcode_libdir_separator=:
18534
18535 case $host_cpu in
18536 hppa*64*|ia64*)
18537 hardcode_direct=no
18538 hardcode_shlibpath_var=no
18539 ;;
18540 *)
18541 hardcode_direct=yes
18542 hardcode_direct_absolute=yes
18543 export_dynamic_flag_spec='$wl-E'
18544
18545 # hardcode_minus_L: Not really in the search PATH,
18546 # but as the default location of the library.
18547 hardcode_minus_L=yes
18548 ;;
18549 esac
18550 fi
18551 ;;
18552
18553 irix5* | irix6* | nonstopux*)
18554 if test yes = "$GCC"; then
18555 archive_cmds='$CC -shared $pic_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'
18556 # Try to use the -exported_symbol ld option, if it does not
18557 # work, assume that -exports_file does not work either and
18558 # implicitly export all symbols.
18559 # This should be the same for all languages, so no per-tag cache variable.
18560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
18561 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
18562 if ${lt_cv_irix_exported_symbol+:} false; then :
18563 $as_echo_n "(cached) " >&6
18564 else
18565 save_LDFLAGS=$LDFLAGS
18566 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
18567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18568 /* end confdefs.h. */
18569 int foo (void) { return 0; }
18570 _ACEOF
18571 if ac_fn_c_try_link "$LINENO"; then :
18572 lt_cv_irix_exported_symbol=yes
18573 else
18574 lt_cv_irix_exported_symbol=no
18575 fi
18576 rm -f core conftest.err conftest.$ac_objext \
18577 conftest$ac_exeext conftest.$ac_ext
18578 LDFLAGS=$save_LDFLAGS
18579 fi
18580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
18581 case "$lt_cv_irix_exported_symbol" in #(
18582 yes|ok|yes[\ ,]*) :
18583 $as_echo "${as__grn}$lt_cv_irix_exported_symbol${as__std}" >&6 ;; #(
18584 no|failed|unsupported|no[\ ,]*) :
18585 $as_echo "${as__red}$lt_cv_irix_exported_symbol${as__std}" >&6 ;; #(
18586 *) :
18587 $as_echo "${as__blu}$lt_cv_irix_exported_symbol${as__std}" >&6 ;;
18588 esac; }
18589 if test yes = "$lt_cv_irix_exported_symbol"; then
18590 archive_expsym_cmds='$CC -shared $pic_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 $wl-exports_file $wl$export_symbols -o $lib'
18591 fi
18592 else
18593 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'
18594 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'
18595 fi
18596 archive_cmds_need_lc='no'
18597 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
18598 hardcode_libdir_separator=:
18599 inherit_rpath=yes
18600 link_all_deplibs=yes
18601 ;;
18602
18603 linux*)
18604 case $cc_basename in
18605 tcc*)
18606 # Fabrice Bellard et al's Tiny C Compiler
18607 ld_shlibs=yes
18608 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18609 ;;
18610 esac
18611 case `$CC -V 2>&1 | sed 5q` in
18612 *Cray\ C* | *Cray\ Fortran*) # Cray C/C++/Fortran
18613 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'
18614 compiler_needs_object=yes
18615 archive_cmds='save_STRIP=$STRIP; unset STRIP; $CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib; ret=\$?; STRIP=\$save_STRIP; export STRIP; (exit \$ret)'
18616 ;;
18617 *)
18618 ld_shlibs=no
18619 ;;
18620 esac
18621 ;;
18622
18623 netbsd*)
18624 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18625 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18626 else
18627 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18628 fi
18629 hardcode_libdir_flag_spec='-R$libdir'
18630 hardcode_direct=yes
18631 hardcode_shlibpath_var=no
18632 ;;
18633
18634 newsos6)
18635 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18636 hardcode_direct=yes
18637 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
18638 hardcode_libdir_separator=:
18639 hardcode_shlibpath_var=no
18640 ;;
18641
18642 *nto* | *qnx*)
18643 ;;
18644
18645 openbsd* | bitrig*)
18646 if test -f /usr/libexec/ld.so; then
18647 hardcode_direct=yes
18648 hardcode_shlibpath_var=no
18649 hardcode_direct_absolute=yes
18650 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
18651 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18652 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
18653 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
18654 export_dynamic_flag_spec='$wl-E'
18655 else
18656 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18657 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
18658 fi
18659 else
18660 ld_shlibs=no
18661 fi
18662 ;;
18663
18664 os2*)
18665 hardcode_libdir_flag_spec='-L$libdir'
18666 hardcode_minus_L=yes
18667 allow_undefined_flag=unsupported
18668 shrext_cmds=.dll
18669 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
18670 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
18671 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
18672 $ECHO EXPORTS >> $output_objdir/$libname.def~
18673 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
18674 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
18675 emximp -o $lib $output_objdir/$libname.def'
18676 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
18677 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
18678 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
18679 $ECHO EXPORTS >> $output_objdir/$libname.def~
18680 prefix_cmds="$SED"~
18681 if test EXPORTS = "`$SED 1q $export_symbols`"; then
18682 prefix_cmds="$prefix_cmds -e 1d";
18683 fi~
18684 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
18685 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
18686 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
18687 emximp -o $lib $output_objdir/$libname.def'
18688 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
18689 enable_shared_with_static_runtimes=yes
18690 ;;
18691
18692 osf3*)
18693 if test yes = "$GCC"; then
18694 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
18695 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'
18696 else
18697 allow_undefined_flag=' -expect_unresolved \*'
18698 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'
18699 fi
18700 archive_cmds_need_lc='no'
18701 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
18702 hardcode_libdir_separator=:
18703 ;;
18704
18705 osf4* | osf5*) # as osf3* with the addition of -msym flag
18706 if test yes = "$GCC"; then
18707 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
18708 archive_cmds='$CC -shared$allow_undefined_flag $pic_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'
18709 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
18710 else
18711 allow_undefined_flag=' -expect_unresolved \*'
18712 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'
18713 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~
18714 $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'
18715
18716 # Both c and cxx compiler support -rpath directly
18717 hardcode_libdir_flag_spec='-rpath $libdir'
18718 fi
18719 archive_cmds_need_lc='no'
18720 hardcode_libdir_separator=:
18721 ;;
18722
18723 solaris*)
18724 no_undefined_flag=' -z defs'
18725 if test yes = "$GCC"; then
18726 wlarc='$wl'
18727 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
18728 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18729 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18730 else
18731 case `$CC -V 2>&1` in
18732 *"Compilers 5.0"*)
18733 wlarc=''
18734 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
18735 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18736 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18737 ;;
18738 *)
18739 wlarc='$wl'
18740 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18741 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18742 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18743 ;;
18744 esac
18745 fi
18746 hardcode_libdir_flag_spec='-R$libdir'
18747 hardcode_shlibpath_var=no
18748 case $host_os in
18749 solaris2.[0-5] | solaris2.[0-5].*) ;;
18750 *)
18751 # The compiler driver will combine and reorder linker options,
18752 # but understands '-z linker_flag'. GCC discards it without '$wl',
18753 # but is careful enough not to reorder.
18754 # Supported since Solaris 2.6 (maybe 2.5.1?)
18755 if test yes = "$GCC"; then
18756 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
18757 else
18758 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
18759 fi
18760 ;;
18761 esac
18762 link_all_deplibs=yes
18763 ;;
18764
18765 sunos4*)
18766 if test sequent = "$host_vendor"; then
18767 # Use $CC to link under sequent, because it throws in some extra .o
18768 # files that make .init and .fini sections work.
18769 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18770 else
18771 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18772 fi
18773 hardcode_libdir_flag_spec='-L$libdir'
18774 hardcode_direct=yes
18775 hardcode_minus_L=yes
18776 hardcode_shlibpath_var=no
18777 ;;
18778
18779 sysv4)
18780 case $host_vendor in
18781 sni)
18782 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18783 hardcode_direct=yes # is this really true???
18784 ;;
18785 siemens)
18786 ## LD is ld it makes a PLAMLIB
18787 ## CC just makes a GrossModule.
18788 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18789 reload_cmds='$CC -r -o $output$reload_objs'
18790 hardcode_direct=no
18791 ;;
18792 motorola)
18793 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18794 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
18795 ;;
18796 esac
18797 runpath_var='LD_RUN_PATH'
18798 hardcode_shlibpath_var=no
18799 ;;
18800
18801 sysv4.3*)
18802 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18803 hardcode_shlibpath_var=no
18804 export_dynamic_flag_spec='-Bexport'
18805 ;;
18806
18807 sysv4*MP*)
18808 if test -d /usr/nec; then
18809 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18810 hardcode_shlibpath_var=no
18811 runpath_var=LD_RUN_PATH
18812 hardcode_runpath_var=yes
18813 ld_shlibs=yes
18814 fi
18815 ;;
18816
18817 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18818 no_undefined_flag='$wl-z,text'
18819 archive_cmds_need_lc=no
18820 hardcode_shlibpath_var=no
18821 runpath_var='LD_RUN_PATH'
18822
18823 if test yes = "$GCC"; then
18824 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18825 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18826 else
18827 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18828 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18829 fi
18830 ;;
18831
18832 sysv5* | sco3.2v5* | sco5v6*)
18833 # Note: We CANNOT use -z defs as we might desire, because we do not
18834 # link with -lc, and that would cause any symbols used from libc to
18835 # always be unresolved, which means just about no library would
18836 # ever link correctly. If we're not using GNU ld we use -z text
18837 # though, which does catch some bad symbols but isn't as heavy-handed
18838 # as -z defs.
18839 no_undefined_flag='$wl-z,text'
18840 allow_undefined_flag='$wl-z,nodefs'
18841 archive_cmds_need_lc=no
18842 hardcode_shlibpath_var=no
18843 hardcode_libdir_flag_spec='$wl-R,$libdir'
18844 hardcode_libdir_separator=':'
18845 link_all_deplibs=yes
18846 export_dynamic_flag_spec='$wl-Bexport'
18847 runpath_var='LD_RUN_PATH'
18848
18849 if test yes = "$GCC"; then
18850 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18851 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18852 else
18853 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18854 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18855 fi
18856 ;;
18857
18858 uts4*)
18859 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18860 hardcode_libdir_flag_spec='-L$libdir'
18861 hardcode_shlibpath_var=no
18862 ;;
18863
18864 *)
18865 ld_shlibs=no
18866 ;;
18867 esac
18868
18869 if test sni = "$host_vendor"; then
18870 case $host in
18871 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18872 export_dynamic_flag_spec='$wl-Blargedynsym'
18873 ;;
18874 esac
18875 fi
18876 fi
18877
18878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
18879 case "$ld_shlibs" in #(
18880 yes|ok|yes[\ ,]*) :
18881 $as_echo "${as__grn}$ld_shlibs${as__std}" >&6 ;; #(
18882 no|failed|unsupported|no[\ ,]*) :
18883 $as_echo "${as__red}$ld_shlibs${as__std}" >&6 ;; #(
18884 *) :
18885 $as_echo "${as__blu}$ld_shlibs${as__std}" >&6 ;;
18886 esac; }
18887 test no = "$ld_shlibs" && can_build_shared=no
18888
18889 with_gnu_ld=$with_gnu_ld
18890
18891
18892
18893
18894
18895
18896
18897
18898
18899
18900
18901
18902
18903
18904
18905 #
18906 # Do we need to explicitly link libc?
18907 #
18908 case "x$archive_cmds_need_lc" in
18909 x|xyes)
18910 # Assume -lc should be added
18911 archive_cmds_need_lc=yes
18912
18913 if test yes,yes = "$GCC,$enable_shared"; then
18914 case $archive_cmds in
18915 *'~'*)
18916 # FIXME: we may have to deal with multi-command sequences.
18917 ;;
18918 '$CC '*)
18919 # Test whether the compiler implicitly links with -lc since on some
18920 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18921 # to ld, don't add -lc before -lgcc.
18922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18923 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18924 if ${lt_cv_archive_cmds_need_lc+:} false; then :
18925 $as_echo_n "(cached) " >&6
18926 else
18927 $RM conftest*
18928 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18929
18930 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18931 (eval $ac_compile) 2>&5
18932 ac_status=$?
18933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18934 test $ac_status = 0; } 2>conftest.err; then
18935 soname=conftest
18936 lib=conftest
18937 libobjs=conftest.$ac_objext
18938 deplibs=
18939 wl=$lt_prog_compiler_wl
18940 pic_flag=$lt_prog_compiler_pic
18941 compiler_flags=-v
18942 linker_flags=-v
18943 verstring=
18944 output_objdir=.
18945 libname=conftest
18946 lt_save_allow_undefined_flag=$allow_undefined_flag
18947 allow_undefined_flag=
18948 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18949 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18950 ac_status=$?
18951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18952 test $ac_status = 0; }
18953 then
18954 lt_cv_archive_cmds_need_lc=no
18955 else
18956 lt_cv_archive_cmds_need_lc=yes
18957 fi
18958 allow_undefined_flag=$lt_save_allow_undefined_flag
18959 else
18960 cat conftest.err 1>&5
18961 fi
18962 $RM conftest*
18963
18964 fi
18965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
18966 case "$lt_cv_archive_cmds_need_lc" in #(
18967 yes|ok|yes[\ ,]*) :
18968 $as_echo "${as__grn}$lt_cv_archive_cmds_need_lc${as__std}" >&6 ;; #(
18969 no|failed|unsupported|no[\ ,]*) :
18970 $as_echo "${as__red}$lt_cv_archive_cmds_need_lc${as__std}" >&6 ;; #(
18971 *) :
18972 $as_echo "${as__blu}$lt_cv_archive_cmds_need_lc${as__std}" >&6 ;;
18973 esac; }
18974 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
18975 ;;
18976 esac
18977 fi
18978 ;;
18979 esac
18980
18981
18982
18983
18984
18985
18986
18987
18988
18989
18990
18991
18992
18993
18994
18995
18996
18997
18998
18999
19000
19001
19002
19003
19004
19005
19006
19007
19008
19009
19010
19011
19012
19013
19014
19015
19016
19017
19018
19019
19020
19021
19022
19023
19024
19025
19026
19027
19028
19029
19030
19031
19032
19033
19034
19035
19036
19037
19038
19039
19040
19041
19042
19043
19044
19045
19046
19047
19048
19049
19050
19051
19052
19053
19054
19055
19056
19057
19058
19059
19060
19061
19062
19063
19064
19065
19066
19067
19068
19069
19070
19071
19072
19073
19074
19075
19076
19077
19078
19079
19080
19081
19082
19083
19084
19085
19086
19087
19088
19089
19090
19091
19092
19093
19094
19095
19096
19097
19098
19099
19100
19101
19102
19103
19104
19105
19106
19107
19108
19109
19110
19111
19112
19113
19114
19115
19116
19117
19118
19119
19120
19121
19122
19123
19124
19125
19126
19127
19128
19129
19130
19131
19132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19133 $as_echo_n "checking dynamic linker characteristics... " >&6; }
19134
19135 if test yes = "$GCC"; then
19136 case $host_os in
19137 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
19138 *) lt_awk_arg='/^libraries:/' ;;
19139 esac
19140 case $host_os in
19141 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
19142 *) lt_sed_strip_eq='s|=/|/|g' ;;
19143 esac
19144 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
19145 case $lt_search_path_spec in
19146 *\;*)
19147 # if the path contains ";" then we assume it to be the separator
19148 # otherwise default to the standard path separator (i.e. ":") - it is
19149 # assumed that no part of a normal pathname contains ";" but that should
19150 # okay in the real world where ";" in dirpaths is itself problematic.
19151 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
19152 ;;
19153 *)
19154 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
19155 ;;
19156 esac
19157 # Ok, now we have the path, separated by spaces, we can step through it
19158 # and add multilib dir if necessary...
19159 lt_tmp_lt_search_path_spec=
19160 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
19161 # ...but if some path component already ends with the multilib dir we assume
19162 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
19163 case "$lt_multi_os_dir; $lt_search_path_spec " in
19164 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
19165 lt_multi_os_dir=
19166 ;;
19167 esac
19168 for lt_sys_path in $lt_search_path_spec; do
19169 if test -d "$lt_sys_path$lt_multi_os_dir"; then
19170 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
19171 elif test -n "$lt_multi_os_dir"; then
19172 test -d "$lt_sys_path" && \
19173 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
19174 fi
19175 done
19176 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
19177 BEGIN {RS = " "; FS = "/|\n";} {
19178 lt_foo = "";
19179 lt_count = 0;
19180 for (lt_i = NF; lt_i > 0; lt_i--) {
19181 if ($lt_i != "" && $lt_i != ".") {
19182 if ($lt_i == "..") {
19183 lt_count++;
19184 } else {
19185 if (lt_count == 0) {
19186 lt_foo = "/" $lt_i lt_foo;
19187 } else {
19188 lt_count--;
19189 }
19190 }
19191 }
19192 }
19193 if (lt_foo != "") { lt_freq[lt_foo]++; }
19194 if (lt_freq[lt_foo] == 1) { print lt_foo; }
19195 }'`
19196 # AWK program above erroneously prepends '/' to C:/dos/paths
19197 # for these hosts.
19198 case $host_os in
19199 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
19200 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
19201 esac
19202 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
19203 else
19204 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19205 fi
19206 library_names_spec=
19207 libname_spec='lib$name'
19208 soname_spec=
19209 shrext_cmds=.so
19210 postinstall_cmds=
19211 postuninstall_cmds=
19212 finish_cmds=
19213 finish_eval=
19214 shlibpath_var=
19215 shlibpath_overrides_runpath=unknown
19216 version_type=none
19217 dynamic_linker="$host_os ld.so"
19218 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19219 need_lib_prefix=unknown
19220 hardcode_into_libs=no
19221
19222 # when you set need_version to no, make sure it does not cause -set_version
19223 # flags to be left without arguments
19224 need_version=unknown
19225
19226
19227
19228 case $host_os in
19229 aix3*)
19230 version_type=linux # correct to gnu/linux during the next big refactor
19231 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
19232 shlibpath_var=LIBPATH
19233
19234 # AIX 3 has no versioning support, so we append a major version to the name.
19235 soname_spec='$libname$release$shared_ext$major'
19236 ;;
19237
19238 aix[4-9]*)
19239 version_type=linux # correct to gnu/linux during the next big refactor
19240 need_lib_prefix=no
19241 need_version=no
19242 hardcode_into_libs=yes
19243 if test ia64 = "$host_cpu"; then
19244 # AIX 5 supports IA64
19245 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
19246 shlibpath_var=LD_LIBRARY_PATH
19247 else
19248 # With GCC up to 2.95.x, collect2 would create an import file
19249 # for dependence libraries. The import file would start with
19250 # the line '#! .'. This would cause the generated library to
19251 # depend on '.', always an invalid library. This was fixed in
19252 # development snapshots of GCC prior to 3.0.
19253 case $host_os in
19254 aix4 | aix4.[01] | aix4.[01].*)
19255 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19256 echo ' yes '
19257 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
19258 :
19259 else
19260 can_build_shared=no
19261 fi
19262 ;;
19263 esac
19264 # Using Import Files as archive members, it is possible to support
19265 # filename-based versioning of shared library archives on AIX. While
19266 # this would work for both with and without runtime linking, it will
19267 # prevent static linking of such archives. So we do filename-based
19268 # shared library versioning with .so extension only, which is used
19269 # when both runtime linking and shared linking is enabled.
19270 # Unfortunately, runtime linking may impact performance, so we do
19271 # not want this to be the default eventually. Also, we use the
19272 # versioned .so libs for executables only if there is the -brtl
19273 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
19274 # To allow for filename-based versioning support, we need to create
19275 # libNAME.so.V as an archive file, containing:
19276 # *) an Import File, referring to the versioned filename of the
19277 # archive as well as the shared archive member, telling the
19278 # bitwidth (32 or 64) of that shared object, and providing the
19279 # list of exported symbols of that shared object, eventually
19280 # decorated with the 'weak' keyword
19281 # *) the shared object with the F_LOADONLY flag set, to really avoid
19282 # it being seen by the linker.
19283 # At run time we better use the real file rather than another symlink,
19284 # but for link time we create the symlink libNAME.so -> libNAME.so.V
19285
19286 case $with_aix_soname,$aix_use_runtimelinking in
19287 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
19288 # soname into executable. Probably we can add versioning support to
19289 # collect2, so additional links can be useful in future.
19290 aix,yes) # traditional libtool
19291 dynamic_linker='AIX unversionable lib.so'
19292 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19293 # instead of lib<name>.a to let people know that these are not
19294 # typical AIX shared libraries.
19295 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19296 ;;
19297 aix,no) # traditional AIX only
19298 dynamic_linker='AIX lib.a(lib.so.V)'
19299 # We preserve .a as extension for shared libraries through AIX4.2
19300 # and later when we are not doing run time linking.
19301 library_names_spec='$libname$release.a $libname.a'
19302 soname_spec='$libname$release$shared_ext$major'
19303 ;;
19304 svr4,*) # full svr4 only
19305 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
19306 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
19307 # We do not specify a path in Import Files, so LIBPATH fires.
19308 shlibpath_overrides_runpath=yes
19309 ;;
19310 *,yes) # both, prefer svr4
19311 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
19312 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
19313 # unpreferred sharedlib libNAME.a needs extra handling
19314 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
19315 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
19316 # We do not specify a path in Import Files, so LIBPATH fires.
19317 shlibpath_overrides_runpath=yes
19318 ;;
19319 *,no) # both, prefer aix
19320 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
19321 library_names_spec='$libname$release.a $libname.a'
19322 soname_spec='$libname$release$shared_ext$major'
19323 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
19324 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
19325 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
19326 ;;
19327 esac
19328 shlibpath_var=LIBPATH
19329 fi
19330 ;;
19331
19332 amigaos*)
19333 case $host_cpu in
19334 powerpc)
19335 # Since July 2007 AmigaOS4 officially supports .so libraries.
19336 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19337 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19338 ;;
19339 m68k)
19340 library_names_spec='$libname.ixlibrary $libname.a'
19341 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19342 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
19343 ;;
19344 esac
19345 ;;
19346
19347 beos*)
19348 library_names_spec='$libname$shared_ext'
19349 dynamic_linker="$host_os ld.so"
19350 shlibpath_var=LIBRARY_PATH
19351 ;;
19352
19353 bsdi[45]*)
19354 version_type=linux # correct to gnu/linux during the next big refactor
19355 need_version=no
19356 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19357 soname_spec='$libname$release$shared_ext$major'
19358 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19359 shlibpath_var=LD_LIBRARY_PATH
19360 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19361 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19362 # the default ld.so.conf also contains /usr/contrib/lib and
19363 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19364 # libtool to hard-code these into programs
19365 ;;
19366
19367 cygwin* | mingw* | pw32* | cegcc*)
19368 version_type=windows
19369 shrext_cmds=.dll
19370 need_version=no
19371 need_lib_prefix=no
19372
19373 case $GCC,$cc_basename in
19374 yes,*)
19375 # gcc
19376 library_names_spec='$libname.dll.a'
19377 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19378 postinstall_cmds='base_file=`basename \$file`~
19379 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
19380 dldir=$destdir/`dirname \$dlpath`~
19381 test -d \$dldir || mkdir -p \$dldir~
19382 $install_prog $dir/$dlname \$dldir/$dlname~
19383 chmod a+x \$dldir/$dlname~
19384 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19385 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19386 fi'
19387 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19388 dlpath=$dir/\$dldll~
19389 $RM \$dlpath'
19390 shlibpath_overrides_runpath=yes
19391
19392 case $host_os in
19393 cygwin*)
19394 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19395 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
19396
19397 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
19398 ;;
19399 mingw* | cegcc*)
19400 # MinGW DLLs use traditional 'lib' prefix
19401 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
19402 ;;
19403 pw32*)
19404 # pw32 DLLs use 'pw' prefix rather than 'lib'
19405 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
19406 ;;
19407 esac
19408 dynamic_linker='Win32 ld.exe'
19409 ;;
19410
19411 *,cl*)
19412 # Native MSVC
19413 libname_spec='$name'
19414 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
19415 library_names_spec='$libname.dll.lib'
19416
19417 case $build_os in
19418 mingw*)
19419 sys_lib_search_path_spec=
19420 lt_save_ifs=$IFS
19421 IFS=';'
19422 for lt_path in $LIB
19423 do
19424 IFS=$lt_save_ifs
19425 # Let DOS variable expansion print the short 8.3 style file name.
19426 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
19427 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
19428 done
19429 IFS=$lt_save_ifs
19430 # Convert to MSYS style.
19431 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
19432 ;;
19433 cygwin*)
19434 # Convert to unix form, then to dos form, then back to unix form
19435 # but this time dos style (no spaces!) so that the unix form looks
19436 # like /cygdrive/c/PROGRA~1:/cygdr...
19437 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
19438 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
19439 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19440 ;;
19441 *)
19442 sys_lib_search_path_spec=$LIB
19443 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19444 # It is most probably a Windows format PATH.
19445 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19446 else
19447 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19448 fi
19449 # FIXME: find the short name or the path components, as spaces are
19450 # common. (e.g. "Program Files" -> "PROGRA~1")
19451 ;;
19452 esac
19453
19454 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19455 postinstall_cmds='base_file=`basename \$file`~
19456 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
19457 dldir=$destdir/`dirname \$dlpath`~
19458 test -d \$dldir || mkdir -p \$dldir~
19459 $install_prog $dir/$dlname \$dldir/$dlname'
19460 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19461 dlpath=$dir/\$dldll~
19462 $RM \$dlpath'
19463 shlibpath_overrides_runpath=yes
19464 dynamic_linker='Win32 link.exe'
19465 ;;
19466
19467 *)
19468 # Assume MSVC wrapper
19469 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
19470 dynamic_linker='Win32 ld.exe'
19471 ;;
19472 esac
19473 # FIXME: first we should search . and the directory the executable is in
19474 shlibpath_var=PATH
19475 ;;
19476
19477 darwin* | rhapsody*)
19478 dynamic_linker="$host_os dyld"
19479 version_type=darwin
19480 need_lib_prefix=no
19481 need_version=no
19482 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
19483 soname_spec='$libname$release$major$shared_ext'
19484 shlibpath_overrides_runpath=yes
19485 shlibpath_var=DYLD_LIBRARY_PATH
19486 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19487
19488 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
19489 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19490 ;;
19491
19492 dgux*)
19493 version_type=linux # correct to gnu/linux during the next big refactor
19494 need_lib_prefix=no
19495 need_version=no
19496 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19497 soname_spec='$libname$release$shared_ext$major'
19498 shlibpath_var=LD_LIBRARY_PATH
19499 ;;
19500
19501 freebsd* | dragonfly*)
19502 # DragonFly does not have aout. When/if they implement a new
19503 # versioning mechanism, adjust this.
19504 if test -x /usr/bin/objformat; then
19505 objformat=`/usr/bin/objformat`
19506 else
19507 case $host_os in
19508 freebsd[23].*) objformat=aout ;;
19509 *) objformat=elf ;;
19510 esac
19511 fi
19512 version_type=freebsd-$objformat
19513 case $version_type in
19514 freebsd-elf*)
19515 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19516 soname_spec='$libname$release$shared_ext$major'
19517 need_version=no
19518 need_lib_prefix=no
19519 ;;
19520 freebsd-*)
19521 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19522 need_version=yes
19523 ;;
19524 esac
19525 shlibpath_var=LD_LIBRARY_PATH
19526 case $host_os in
19527 freebsd2.*)
19528 shlibpath_overrides_runpath=yes
19529 ;;
19530 freebsd3.[01]* | freebsdelf3.[01]*)
19531 shlibpath_overrides_runpath=yes
19532 hardcode_into_libs=yes
19533 ;;
19534 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19535 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19536 shlibpath_overrides_runpath=no
19537 hardcode_into_libs=yes
19538 ;;
19539 *) # from 4.6 on, and DragonFly
19540 shlibpath_overrides_runpath=yes
19541 hardcode_into_libs=yes
19542 ;;
19543 esac
19544 ;;
19545
19546 haiku*)
19547 version_type=linux # correct to gnu/linux during the next big refactor
19548 need_lib_prefix=no
19549 need_version=no
19550 dynamic_linker="$host_os runtime_loader"
19551 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19552 soname_spec='$libname$release$shared_ext$major'
19553 shlibpath_var=LIBRARY_PATH
19554 shlibpath_overrides_runpath=no
19555 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
19556 hardcode_into_libs=yes
19557 ;;
19558
19559 hpux9* | hpux10* | hpux11*)
19560 # Give a soname corresponding to the major version so that dld.sl refuses to
19561 # link against other versions.
19562 version_type=sunos
19563 need_lib_prefix=no
19564 need_version=no
19565 case $host_cpu in
19566 ia64*)
19567 shrext_cmds='.so'
19568 hardcode_into_libs=yes
19569 dynamic_linker="$host_os dld.so"
19570 shlibpath_var=LD_LIBRARY_PATH
19571 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19572 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19573 soname_spec='$libname$release$shared_ext$major'
19574 if test 32 = "$HPUX_IA64_MODE"; then
19575 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19576 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
19577 else
19578 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19579 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
19580 fi
19581 ;;
19582 hppa*64*)
19583 shrext_cmds='.sl'
19584 hardcode_into_libs=yes
19585 dynamic_linker="$host_os dld.sl"
19586 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19587 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19588 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19589 soname_spec='$libname$release$shared_ext$major'
19590 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19591 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19592 ;;
19593 *)
19594 shrext_cmds='.sl'
19595 dynamic_linker="$host_os dld.sl"
19596 shlibpath_var=SHLIB_PATH
19597 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19598 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19599 soname_spec='$libname$release$shared_ext$major'
19600 ;;
19601 esac
19602 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
19603 postinstall_cmds='chmod 555 $lib'
19604 # or fails outright, so override atomically:
19605 install_override_mode=555
19606 ;;
19607
19608 interix[3-9]*)
19609 version_type=linux # correct to gnu/linux during the next big refactor
19610 need_lib_prefix=no
19611 need_version=no
19612 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19613 soname_spec='$libname$release$shared_ext$major'
19614 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19615 shlibpath_var=LD_LIBRARY_PATH
19616 shlibpath_overrides_runpath=no
19617 hardcode_into_libs=yes
19618 ;;
19619
19620 irix5* | irix6* | nonstopux*)
19621 case $host_os in
19622 nonstopux*) version_type=nonstopux ;;
19623 *)
19624 if test yes = "$lt_cv_prog_gnu_ld"; then
19625 version_type=linux # correct to gnu/linux during the next big refactor
19626 else
19627 version_type=irix
19628 fi ;;
19629 esac
19630 need_lib_prefix=no
19631 need_version=no
19632 soname_spec='$libname$release$shared_ext$major'
19633 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
19634 case $host_os in
19635 irix5* | nonstopux*)
19636 libsuff= shlibsuff=
19637 ;;
19638 *)
19639 case $LD in # libtool.m4 will add one of these switches to LD
19640 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19641 libsuff= shlibsuff= libmagic=32-bit;;
19642 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19643 libsuff=32 shlibsuff=N32 libmagic=N32;;
19644 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19645 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19646 *) libsuff= shlibsuff= libmagic=never-match;;
19647 esac
19648 ;;
19649 esac
19650 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19651 shlibpath_overrides_runpath=no
19652 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
19653 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
19654 hardcode_into_libs=yes
19655 ;;
19656
19657 # No shared lib support for Linux oldld, aout, or coff.
19658 linux*oldld* | linux*aout* | linux*coff*)
19659 dynamic_linker=no
19660 ;;
19661
19662 linux*android*)
19663 version_type=none # Android doesn't support versioned libraries.
19664 need_lib_prefix=no
19665 need_version=no
19666 library_names_spec='$libname$release$shared_ext'
19667 soname_spec='$libname$release$shared_ext'
19668 finish_cmds=
19669 shlibpath_var=LD_LIBRARY_PATH
19670 shlibpath_overrides_runpath=yes
19671
19672 # This implies no fast_install, which is unacceptable.
19673 # Some rework will be needed to allow for fast_install
19674 # before this can be enabled.
19675 hardcode_into_libs=yes
19676
19677 dynamic_linker='Android linker'
19678 # Don't embed -rpath directories since the linker doesn't support them.
19679 hardcode_libdir_flag_spec='-L$libdir'
19680 ;;
19681
19682 # This must be glibc/ELF.
19683 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
19684 version_type=linux # correct to gnu/linux during the next big refactor
19685 need_lib_prefix=no
19686 need_version=no
19687 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19688 soname_spec='$libname$release$shared_ext$major'
19689 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19690 shlibpath_var=LD_LIBRARY_PATH
19691 shlibpath_overrides_runpath=no
19692
19693 # Some binutils ld are patched to set DT_RUNPATH
19694 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
19695 $as_echo_n "(cached) " >&6
19696 else
19697 lt_cv_shlibpath_overrides_runpath=no
19698 save_LDFLAGS=$LDFLAGS
19699 save_libdir=$libdir
19700 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
19701 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
19702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19703 /* end confdefs.h. */
19704
19705 int
19706 main ()
19707 {
19708
19709 ;
19710 return 0;
19711 }
19712 _ACEOF
19713 if ac_fn_c_try_link "$LINENO"; then :
19714 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
19715 lt_cv_shlibpath_overrides_runpath=yes
19716 fi
19717 fi
19718 rm -f core conftest.err conftest.$ac_objext \
19719 conftest$ac_exeext conftest.$ac_ext
19720 LDFLAGS=$save_LDFLAGS
19721 libdir=$save_libdir
19722
19723 fi
19724
19725 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
19726
19727 # This implies no fast_install, which is unacceptable.
19728 # Some rework will be needed to allow for fast_install
19729 # before this can be enabled.
19730 hardcode_into_libs=yes
19731
19732 # Ideally, we could use ldconfig to report *all* directores which are
19733 # searched for libraries, however this is still not possible. Aside from not
19734 # being certain /sbin/ldconfig is available, command
19735 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
19736 # even though it is searched at run-time. Try to do the best guess by
19737 # appending ld.so.conf contents (and includes) to the search path.
19738 if test -f /etc/ld.so.conf; then
19739 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' ' '`
19740 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19741 fi
19742
19743 # We used to test for /lib/ld.so.1 and disable shared libraries on
19744 # powerpc, because MkLinux only supported shared libraries with the
19745 # GNU dynamic linker. Since this was broken with cross compilers,
19746 # most powerpc-linux boxes support dynamic linking these days and
19747 # people can always --disable-shared, the test was removed, and we
19748 # assume the GNU/Linux dynamic linker is in use.
19749 dynamic_linker='GNU/Linux ld.so'
19750 ;;
19751
19752 netbsd*)
19753 version_type=sunos
19754 need_lib_prefix=no
19755 need_version=no
19756 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19757 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19758 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19759 dynamic_linker='NetBSD (a.out) ld.so'
19760 else
19761 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19762 soname_spec='$libname$release$shared_ext$major'
19763 dynamic_linker='NetBSD ld.elf_so'
19764 fi
19765 shlibpath_var=LD_LIBRARY_PATH
19766 shlibpath_overrides_runpath=yes
19767 hardcode_into_libs=yes
19768 ;;
19769
19770 newsos6)
19771 version_type=linux # correct to gnu/linux during the next big refactor
19772 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19773 shlibpath_var=LD_LIBRARY_PATH
19774 shlibpath_overrides_runpath=yes
19775 ;;
19776
19777 *nto* | *qnx*)
19778 version_type=qnx
19779 need_lib_prefix=no
19780 need_version=no
19781 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19782 soname_spec='$libname$release$shared_ext$major'
19783 shlibpath_var=LD_LIBRARY_PATH
19784 shlibpath_overrides_runpath=no
19785 hardcode_into_libs=yes
19786 dynamic_linker='ldqnx.so'
19787 ;;
19788
19789 openbsd* | bitrig*)
19790 version_type=sunos
19791 sys_lib_dlsearch_path_spec=/usr/lib
19792 need_lib_prefix=no
19793 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
19794 need_version=no
19795 else
19796 need_version=yes
19797 fi
19798 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19799 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19800 shlibpath_var=LD_LIBRARY_PATH
19801 shlibpath_overrides_runpath=yes
19802 ;;
19803
19804 os2*)
19805 libname_spec='$name'
19806 version_type=windows
19807 shrext_cmds=.dll
19808 need_version=no
19809 need_lib_prefix=no
19810 # OS/2 can only load a DLL with a base name of 8 characters or less.
19811 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
19812 v=$($ECHO $release$versuffix | tr -d .-);
19813 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
19814 $ECHO $n$v`$shared_ext'
19815 library_names_spec='${libname}_dll.$libext'
19816 dynamic_linker='OS/2 ld.exe'
19817 shlibpath_var=BEGINLIBPATH
19818 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19819 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19820 postinstall_cmds='base_file=`basename \$file`~
19821 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
19822 dldir=$destdir/`dirname \$dlpath`~
19823 test -d \$dldir || mkdir -p \$dldir~
19824 $install_prog $dir/$dlname \$dldir/$dlname~
19825 chmod a+x \$dldir/$dlname~
19826 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19827 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19828 fi'
19829 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
19830 dlpath=$dir/\$dldll~
19831 $RM \$dlpath'
19832 ;;
19833
19834 osf3* | osf4* | osf5*)
19835 version_type=osf
19836 need_lib_prefix=no
19837 need_version=no
19838 soname_spec='$libname$release$shared_ext$major'
19839 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19840 shlibpath_var=LD_LIBRARY_PATH
19841 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19842 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19843 ;;
19844
19845 rdos*)
19846 dynamic_linker=no
19847 ;;
19848
19849 solaris*)
19850 version_type=linux # correct to gnu/linux during the next big refactor
19851 need_lib_prefix=no
19852 need_version=no
19853 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19854 soname_spec='$libname$release$shared_ext$major'
19855 shlibpath_var=LD_LIBRARY_PATH
19856 shlibpath_overrides_runpath=yes
19857 hardcode_into_libs=yes
19858 # ldd complains unless libraries are executable
19859 postinstall_cmds='chmod +x $lib'
19860 ;;
19861
19862 sunos4*)
19863 version_type=sunos
19864 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19865 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19866 shlibpath_var=LD_LIBRARY_PATH
19867 shlibpath_overrides_runpath=yes
19868 if test yes = "$with_gnu_ld"; then
19869 need_lib_prefix=no
19870 fi
19871 need_version=yes
19872 ;;
19873
19874 sysv4 | sysv4.3*)
19875 version_type=linux # correct to gnu/linux during the next big refactor
19876 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19877 soname_spec='$libname$release$shared_ext$major'
19878 shlibpath_var=LD_LIBRARY_PATH
19879 case $host_vendor in
19880 sni)
19881 shlibpath_overrides_runpath=no
19882 need_lib_prefix=no
19883 runpath_var=LD_RUN_PATH
19884 ;;
19885 siemens)
19886 need_lib_prefix=no
19887 ;;
19888 motorola)
19889 need_lib_prefix=no
19890 need_version=no
19891 shlibpath_overrides_runpath=no
19892 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19893 ;;
19894 esac
19895 ;;
19896
19897 sysv4*MP*)
19898 if test -d /usr/nec; then
19899 version_type=linux # correct to gnu/linux during the next big refactor
19900 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
19901 soname_spec='$libname$shared_ext.$major'
19902 shlibpath_var=LD_LIBRARY_PATH
19903 fi
19904 ;;
19905
19906 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19907 version_type=sco
19908 need_lib_prefix=no
19909 need_version=no
19910 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
19911 soname_spec='$libname$release$shared_ext$major'
19912 shlibpath_var=LD_LIBRARY_PATH
19913 shlibpath_overrides_runpath=yes
19914 hardcode_into_libs=yes
19915 if test yes = "$with_gnu_ld"; then
19916 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19917 else
19918 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19919 case $host_os in
19920 sco3.2v5*)
19921 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19922 ;;
19923 esac
19924 fi
19925 sys_lib_dlsearch_path_spec='/usr/lib'
19926 ;;
19927
19928 tpf*)
19929 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19930 version_type=linux # correct to gnu/linux during the next big refactor
19931 need_lib_prefix=no
19932 need_version=no
19933 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19934 shlibpath_var=LD_LIBRARY_PATH
19935 shlibpath_overrides_runpath=no
19936 hardcode_into_libs=yes
19937 ;;
19938
19939 uts4*)
19940 version_type=linux # correct to gnu/linux during the next big refactor
19941 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19942 soname_spec='$libname$release$shared_ext$major'
19943 shlibpath_var=LD_LIBRARY_PATH
19944 ;;
19945
19946 *)
19947 dynamic_linker=no
19948 ;;
19949 esac
19950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19951 case "$dynamic_linker" in #(
19952 yes|ok|yes[\ ,]*) :
19953 $as_echo "${as__grn}$dynamic_linker${as__std}" >&6 ;; #(
19954 no|failed|unsupported|no[\ ,]*) :
19955 $as_echo "${as__red}$dynamic_linker${as__std}" >&6 ;; #(
19956 *) :
19957 $as_echo "${as__blu}$dynamic_linker${as__std}" >&6 ;;
19958 esac; }
19959 test no = "$dynamic_linker" && can_build_shared=no
19960
19961 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19962 if test yes = "$GCC"; then
19963 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19964 fi
19965
19966 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
19967 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
19968 fi
19969
19970 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
19971 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
19972 fi
19973
19974 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
19975 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
19976
19977 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
19978 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
19979
19980 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
19981 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
19982
19983
19984
19985
19986
19987
19988
19989
19990
19991
19992
19993
19994
19995
19996
19997
19998
19999
20000
20001
20002
20003
20004
20005
20006
20007
20008
20009
20010
20011
20012
20013
20014
20015
20016
20017
20018
20019
20020
20021
20022
20023
20024
20025
20026
20027
20028
20029
20030
20031
20032
20033
20034
20035
20036
20037
20038
20039
20040
20041
20042
20043
20044
20045
20046
20047
20048
20049
20050
20051
20052
20053
20054
20055
20056
20057
20058
20059
20060
20061
20062
20063
20064
20065
20066
20067
20068
20069
20070
20071
20072
20073
20074
20075
20076
20077
20078
20079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20080 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20081 hardcode_action=
20082 if test -n "$hardcode_libdir_flag_spec" ||
20083 test -n "$runpath_var" ||
20084 test yes = "$hardcode_automatic"; then
20085
20086 # We can hardcode non-existent directories.
20087 if test no != "$hardcode_direct" &&
20088 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20089 # have to relink, otherwise we might link with an installed library
20090 # when we should be linking with a yet-to-be-installed one
20091 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
20092 test no != "$hardcode_minus_L"; then
20093 # Linking always hardcodes the temporary library directory.
20094 hardcode_action=relink
20095 else
20096 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20097 hardcode_action=immediate
20098 fi
20099 else
20100 # We cannot hardcode anything, or else we can only hardcode existing
20101 # directories.
20102 hardcode_action=unsupported
20103 fi
20104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
20105 case "$hardcode_action" in #(
20106 yes|ok|yes[\ ,]*) :
20107 $as_echo "${as__grn}$hardcode_action${as__std}" >&6 ;; #(
20108 no|failed|unsupported|no[\ ,]*) :
20109 $as_echo "${as__red}$hardcode_action${as__std}" >&6 ;; #(
20110 *) :
20111 $as_echo "${as__blu}$hardcode_action${as__std}" >&6 ;;
20112 esac; }
20113
20114 if test relink = "$hardcode_action" ||
20115 test yes = "$inherit_rpath"; then
20116 # Fast installation is not supported
20117 enable_fast_install=no
20118 elif test yes = "$shlibpath_overrides_runpath" ||
20119 test no = "$enable_shared"; then
20120 # Fast installation is not necessary
20121 enable_fast_install=needless
20122 fi
20123
20124
20125
20126
20127
20128
20129 if test yes != "$enable_dlopen"; then
20130 enable_dlopen=unknown
20131 enable_dlopen_self=unknown
20132 enable_dlopen_self_static=unknown
20133 else
20134 lt_cv_dlopen=no
20135 lt_cv_dlopen_libs=
20136
20137 case $host_os in
20138 beos*)
20139 lt_cv_dlopen=load_add_on
20140 lt_cv_dlopen_libs=
20141 lt_cv_dlopen_self=yes
20142 ;;
20143
20144 mingw* | pw32* | cegcc*)
20145 lt_cv_dlopen=LoadLibrary
20146 lt_cv_dlopen_libs=
20147 ;;
20148
20149 cygwin*)
20150 lt_cv_dlopen=dlopen
20151 lt_cv_dlopen_libs=
20152 ;;
20153
20154 darwin*)
20155 # if libdl is installed we need to link against it
20156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
20157 $as_echo_n "checking for dlopen in -ldl... " >&6; }
20158 if ${ac_cv_lib_dl_dlopen+:} false; then :
20159 $as_echo_n "(cached) " >&6
20160 else
20161 ac_check_lib_save_LIBS=$LIBS
20162 LIBS="-ldl $LIBS"
20163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20164 /* end confdefs.h. */
20165
20166 /* Override any GCC internal prototype to avoid an error.
20167 Use char because int might match the return type of a GCC
20168 builtin and then its argument prototype would still apply. */
20169 #ifdef __cplusplus
20170 extern "C"
20171 #endif
20172 char dlopen ();
20173 int
20174 main ()
20175 {
20176 return dlopen ();
20177 ;
20178 return 0;
20179 }
20180 _ACEOF
20181 if ac_fn_c_try_link "$LINENO"; then :
20182 ac_cv_lib_dl_dlopen=yes
20183 else
20184 ac_cv_lib_dl_dlopen=no
20185 fi
20186 rm -f core conftest.err conftest.$ac_objext \
20187 conftest$ac_exeext conftest.$ac_ext
20188 LIBS=$ac_check_lib_save_LIBS
20189 fi
20190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
20191 case "$ac_cv_lib_dl_dlopen" in #(
20192 yes|ok|yes[\ ,]*) :
20193 $as_echo "${as__grn}$ac_cv_lib_dl_dlopen${as__std}" >&6 ;; #(
20194 no|failed|unsupported|no[\ ,]*) :
20195 $as_echo "${as__red}$ac_cv_lib_dl_dlopen${as__std}" >&6 ;; #(
20196 *) :
20197 $as_echo "${as__blu}$ac_cv_lib_dl_dlopen${as__std}" >&6 ;;
20198 esac; }
20199 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
20200 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
20201 else
20202
20203 lt_cv_dlopen=dyld
20204 lt_cv_dlopen_libs=
20205 lt_cv_dlopen_self=yes
20206
20207 fi
20208
20209 ;;
20210
20211 tpf*)
20212 # Don't try to run any link tests for TPF. We know it's impossible
20213 # because TPF is a cross-compiler, and we know how we open DSOs.
20214 lt_cv_dlopen=dlopen
20215 lt_cv_dlopen_libs=
20216 lt_cv_dlopen_self=no
20217 ;;
20218
20219 *)
20220 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
20221 if test "x$ac_cv_func_shl_load" = xyes; then :
20222 lt_cv_dlopen=shl_load
20223 else
20224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
20225 $as_echo_n "checking for shl_load in -ldld... " >&6; }
20226 if ${ac_cv_lib_dld_shl_load+:} false; then :
20227 $as_echo_n "(cached) " >&6
20228 else
20229 ac_check_lib_save_LIBS=$LIBS
20230 LIBS="-ldld $LIBS"
20231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20232 /* end confdefs.h. */
20233
20234 /* Override any GCC internal prototype to avoid an error.
20235 Use char because int might match the return type of a GCC
20236 builtin and then its argument prototype would still apply. */
20237 #ifdef __cplusplus
20238 extern "C"
20239 #endif
20240 char shl_load ();
20241 int
20242 main ()
20243 {
20244 return shl_load ();
20245 ;
20246 return 0;
20247 }
20248 _ACEOF
20249 if ac_fn_c_try_link "$LINENO"; then :
20250 ac_cv_lib_dld_shl_load=yes
20251 else
20252 ac_cv_lib_dld_shl_load=no
20253 fi
20254 rm -f core conftest.err conftest.$ac_objext \
20255 conftest$ac_exeext conftest.$ac_ext
20256 LIBS=$ac_check_lib_save_LIBS
20257 fi
20258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
20259 case "$ac_cv_lib_dld_shl_load" in #(
20260 yes|ok|yes[\ ,]*) :
20261 $as_echo "${as__grn}$ac_cv_lib_dld_shl_load${as__std}" >&6 ;; #(
20262 no|failed|unsupported|no[\ ,]*) :
20263 $as_echo "${as__red}$ac_cv_lib_dld_shl_load${as__std}" >&6 ;; #(
20264 *) :
20265 $as_echo "${as__blu}$ac_cv_lib_dld_shl_load${as__std}" >&6 ;;
20266 esac; }
20267 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
20268 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
20269 else
20270 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
20271 if test "x$ac_cv_func_dlopen" = xyes; then :
20272 lt_cv_dlopen=dlopen
20273 else
20274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
20275 $as_echo_n "checking for dlopen in -ldl... " >&6; }
20276 if ${ac_cv_lib_dl_dlopen+:} false; then :
20277 $as_echo_n "(cached) " >&6
20278 else
20279 ac_check_lib_save_LIBS=$LIBS
20280 LIBS="-ldl $LIBS"
20281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20282 /* end confdefs.h. */
20283
20284 /* Override any GCC internal prototype to avoid an error.
20285 Use char because int might match the return type of a GCC
20286 builtin and then its argument prototype would still apply. */
20287 #ifdef __cplusplus
20288 extern "C"
20289 #endif
20290 char dlopen ();
20291 int
20292 main ()
20293 {
20294 return dlopen ();
20295 ;
20296 return 0;
20297 }
20298 _ACEOF
20299 if ac_fn_c_try_link "$LINENO"; then :
20300 ac_cv_lib_dl_dlopen=yes
20301 else
20302 ac_cv_lib_dl_dlopen=no
20303 fi
20304 rm -f core conftest.err conftest.$ac_objext \
20305 conftest$ac_exeext conftest.$ac_ext
20306 LIBS=$ac_check_lib_save_LIBS
20307 fi
20308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
20309 case "$ac_cv_lib_dl_dlopen" in #(
20310 yes|ok|yes[\ ,]*) :
20311 $as_echo "${as__grn}$ac_cv_lib_dl_dlopen${as__std}" >&6 ;; #(
20312 no|failed|unsupported|no[\ ,]*) :
20313 $as_echo "${as__red}$ac_cv_lib_dl_dlopen${as__std}" >&6 ;; #(
20314 *) :
20315 $as_echo "${as__blu}$ac_cv_lib_dl_dlopen${as__std}" >&6 ;;
20316 esac; }
20317 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
20318 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
20319 else
20320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
20321 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
20322 if ${ac_cv_lib_svld_dlopen+:} false; then :
20323 $as_echo_n "(cached) " >&6
20324 else
20325 ac_check_lib_save_LIBS=$LIBS
20326 LIBS="-lsvld $LIBS"
20327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20328 /* end confdefs.h. */
20329
20330 /* Override any GCC internal prototype to avoid an error.
20331 Use char because int might match the return type of a GCC
20332 builtin and then its argument prototype would still apply. */
20333 #ifdef __cplusplus
20334 extern "C"
20335 #endif
20336 char dlopen ();
20337 int
20338 main ()
20339 {
20340 return dlopen ();
20341 ;
20342 return 0;
20343 }
20344 _ACEOF
20345 if ac_fn_c_try_link "$LINENO"; then :
20346 ac_cv_lib_svld_dlopen=yes
20347 else
20348 ac_cv_lib_svld_dlopen=no
20349 fi
20350 rm -f core conftest.err conftest.$ac_objext \
20351 conftest$ac_exeext conftest.$ac_ext
20352 LIBS=$ac_check_lib_save_LIBS
20353 fi
20354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
20355 case "$ac_cv_lib_svld_dlopen" in #(
20356 yes|ok|yes[\ ,]*) :
20357 $as_echo "${as__grn}$ac_cv_lib_svld_dlopen${as__std}" >&6 ;; #(
20358 no|failed|unsupported|no[\ ,]*) :
20359 $as_echo "${as__red}$ac_cv_lib_svld_dlopen${as__std}" >&6 ;; #(
20360 *) :
20361 $as_echo "${as__blu}$ac_cv_lib_svld_dlopen${as__std}" >&6 ;;
20362 esac; }
20363 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
20364 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
20365 else
20366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
20367 $as_echo_n "checking for dld_link in -ldld... " >&6; }
20368 if ${ac_cv_lib_dld_dld_link+:} false; then :
20369 $as_echo_n "(cached) " >&6
20370 else
20371 ac_check_lib_save_LIBS=$LIBS
20372 LIBS="-ldld $LIBS"
20373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20374 /* end confdefs.h. */
20375
20376 /* Override any GCC internal prototype to avoid an error.
20377 Use char because int might match the return type of a GCC
20378 builtin and then its argument prototype would still apply. */
20379 #ifdef __cplusplus
20380 extern "C"
20381 #endif
20382 char dld_link ();
20383 int
20384 main ()
20385 {
20386 return dld_link ();
20387 ;
20388 return 0;
20389 }
20390 _ACEOF
20391 if ac_fn_c_try_link "$LINENO"; then :
20392 ac_cv_lib_dld_dld_link=yes
20393 else
20394 ac_cv_lib_dld_dld_link=no
20395 fi
20396 rm -f core conftest.err conftest.$ac_objext \
20397 conftest$ac_exeext conftest.$ac_ext
20398 LIBS=$ac_check_lib_save_LIBS
20399 fi
20400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
20401 case "$ac_cv_lib_dld_dld_link" in #(
20402 yes|ok|yes[\ ,]*) :
20403 $as_echo "${as__grn}$ac_cv_lib_dld_dld_link${as__std}" >&6 ;; #(
20404 no|failed|unsupported|no[\ ,]*) :
20405 $as_echo "${as__red}$ac_cv_lib_dld_dld_link${as__std}" >&6 ;; #(
20406 *) :
20407 $as_echo "${as__blu}$ac_cv_lib_dld_dld_link${as__std}" >&6 ;;
20408 esac; }
20409 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
20410 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
20411 fi
20412
20413
20414 fi
20415
20416
20417 fi
20418
20419
20420 fi
20421
20422
20423 fi
20424
20425
20426 fi
20427
20428 ;;
20429 esac
20430
20431 if test no = "$lt_cv_dlopen"; then
20432 enable_dlopen=no
20433 else
20434 enable_dlopen=yes
20435 fi
20436
20437 case $lt_cv_dlopen in
20438 dlopen)
20439 save_CPPFLAGS=$CPPFLAGS
20440 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
20441
20442 save_LDFLAGS=$LDFLAGS
20443 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
20444
20445 save_LIBS=$LIBS
20446 LIBS="$lt_cv_dlopen_libs $LIBS"
20447
20448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
20449 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
20450 if ${lt_cv_dlopen_self+:} false; then :
20451 $as_echo_n "(cached) " >&6
20452 else
20453 if test yes = "$cross_compiling"; then :
20454 lt_cv_dlopen_self=cross
20455 else
20456 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20457 lt_status=$lt_dlunknown
20458 cat > conftest.$ac_ext <<_LT_EOF
20459 #line $LINENO "configure"
20460 #include "confdefs.h"
20461
20462 #if HAVE_DLFCN_H
20463 #include <dlfcn.h>
20464 #endif
20465
20466 #include <stdio.h>
20467
20468 #ifdef RTLD_GLOBAL
20469 # define LT_DLGLOBAL RTLD_GLOBAL
20470 #else
20471 # ifdef DL_GLOBAL
20472 # define LT_DLGLOBAL DL_GLOBAL
20473 # else
20474 # define LT_DLGLOBAL 0
20475 # endif
20476 #endif
20477
20478 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20479 find out it does not work in some platform. */
20480 #ifndef LT_DLLAZY_OR_NOW
20481 # ifdef RTLD_LAZY
20482 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20483 # else
20484 # ifdef DL_LAZY
20485 # define LT_DLLAZY_OR_NOW DL_LAZY
20486 # else
20487 # ifdef RTLD_NOW
20488 # define LT_DLLAZY_OR_NOW RTLD_NOW
20489 # else
20490 # ifdef DL_NOW
20491 # define LT_DLLAZY_OR_NOW DL_NOW
20492 # else
20493 # define LT_DLLAZY_OR_NOW 0
20494 # endif
20495 # endif
20496 # endif
20497 # endif
20498 #endif
20499
20500 /* When -fvisibility=hidden is used, assume the code has been annotated
20501 correspondingly for the symbols needed. */
20502 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
20503 int fnord () __attribute__((visibility("default")));
20504 #endif
20505
20506 int fnord () { return 42; }
20507 int main ()
20508 {
20509 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20510 int status = $lt_dlunknown;
20511
20512 if (self)
20513 {
20514 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20515 else
20516 {
20517 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20518 else puts (dlerror ());
20519 }
20520 /* dlclose (self); */
20521 }
20522 else
20523 puts (dlerror ());
20524
20525 return status;
20526 }
20527 _LT_EOF
20528 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
20529 (eval $ac_link) 2>&5
20530 ac_status=$?
20531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20532 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
20533 (./conftest; exit; ) >&5 2>/dev/null
20534 lt_status=$?
20535 case x$lt_status in
20536 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
20537 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
20538 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
20539 esac
20540 else :
20541 # compilation failed
20542 lt_cv_dlopen_self=no
20543 fi
20544 fi
20545 rm -fr conftest*
20546
20547
20548 fi
20549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
20550 case "$lt_cv_dlopen_self" in #(
20551 yes|ok|yes[\ ,]*) :
20552 $as_echo "${as__grn}$lt_cv_dlopen_self${as__std}" >&6 ;; #(
20553 no|failed|unsupported|no[\ ,]*) :
20554 $as_echo "${as__red}$lt_cv_dlopen_self${as__std}" >&6 ;; #(
20555 *) :
20556 $as_echo "${as__blu}$lt_cv_dlopen_self${as__std}" >&6 ;;
20557 esac; }
20558
20559 if test yes = "$lt_cv_dlopen_self"; then
20560 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
20561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
20562 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
20563 if ${lt_cv_dlopen_self_static+:} false; then :
20564 $as_echo_n "(cached) " >&6
20565 else
20566 if test yes = "$cross_compiling"; then :
20567 lt_cv_dlopen_self_static=cross
20568 else
20569 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20570 lt_status=$lt_dlunknown
20571 cat > conftest.$ac_ext <<_LT_EOF
20572 #line $LINENO "configure"
20573 #include "confdefs.h"
20574
20575 #if HAVE_DLFCN_H
20576 #include <dlfcn.h>
20577 #endif
20578
20579 #include <stdio.h>
20580
20581 #ifdef RTLD_GLOBAL
20582 # define LT_DLGLOBAL RTLD_GLOBAL
20583 #else
20584 # ifdef DL_GLOBAL
20585 # define LT_DLGLOBAL DL_GLOBAL
20586 # else
20587 # define LT_DLGLOBAL 0
20588 # endif
20589 #endif
20590
20591 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20592 find out it does not work in some platform. */
20593 #ifndef LT_DLLAZY_OR_NOW
20594 # ifdef RTLD_LAZY
20595 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20596 # else
20597 # ifdef DL_LAZY
20598 # define LT_DLLAZY_OR_NOW DL_LAZY
20599 # else
20600 # ifdef RTLD_NOW
20601 # define LT_DLLAZY_OR_NOW RTLD_NOW
20602 # else
20603 # ifdef DL_NOW
20604 # define LT_DLLAZY_OR_NOW DL_NOW
20605 # else
20606 # define LT_DLLAZY_OR_NOW 0
20607 # endif
20608 # endif
20609 # endif
20610 # endif
20611 #endif
20612
20613 /* When -fvisibility=hidden is used, assume the code has been annotated
20614 correspondingly for the symbols needed. */
20615 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
20616 int fnord () __attribute__((visibility("default")));
20617 #endif
20618
20619 int fnord () { return 42; }
20620 int main ()
20621 {
20622 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20623 int status = $lt_dlunknown;
20624
20625 if (self)
20626 {
20627 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20628 else
20629 {
20630 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20631 else puts (dlerror ());
20632 }
20633 /* dlclose (self); */
20634 }
20635 else
20636 puts (dlerror ());
20637
20638 return status;
20639 }
20640 _LT_EOF
20641 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
20642 (eval $ac_link) 2>&5
20643 ac_status=$?
20644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20645 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
20646 (./conftest; exit; ) >&5 2>/dev/null
20647 lt_status=$?
20648 case x$lt_status in
20649 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
20650 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
20651 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
20652 esac
20653 else :
20654 # compilation failed
20655 lt_cv_dlopen_self_static=no
20656 fi
20657 fi
20658 rm -fr conftest*
20659
20660
20661 fi
20662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
20663 case "$lt_cv_dlopen_self_static" in #(
20664 yes|ok|yes[\ ,]*) :
20665 $as_echo "${as__grn}$lt_cv_dlopen_self_static${as__std}" >&6 ;; #(
20666 no|failed|unsupported|no[\ ,]*) :
20667 $as_echo "${as__red}$lt_cv_dlopen_self_static${as__std}" >&6 ;; #(
20668 *) :
20669 $as_echo "${as__blu}$lt_cv_dlopen_self_static${as__std}" >&6 ;;
20670 esac; }
20671 fi
20672
20673 CPPFLAGS=$save_CPPFLAGS
20674 LDFLAGS=$save_LDFLAGS
20675 LIBS=$save_LIBS
20676 ;;
20677 esac
20678
20679 case $lt_cv_dlopen_self in
20680 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
20681 *) enable_dlopen_self=unknown ;;
20682 esac
20683
20684 case $lt_cv_dlopen_self_static in
20685 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
20686 *) enable_dlopen_self_static=unknown ;;
20687 esac
20688 fi
20689
20690
20691
20692
20693
20694
20695
20696
20697
20698
20699
20700
20701
20702
20703
20704
20705
20706 striplib=
20707 old_striplib=
20708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
20709 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
20710 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
20711 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20712 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20714 $as_echo "${as__grn}yes${as__std}" >&6; }
20715 else
20716 # FIXME - insert some real tests, host_os isn't really good enough
20717 case $host_os in
20718 darwin*)
20719 if test -n "$STRIP"; then
20720 striplib="$STRIP -x"
20721 old_striplib="$STRIP -S"
20722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20723 $as_echo "${as__grn}yes${as__std}" >&6; }
20724 else
20725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20726 $as_echo "${as__red}no${as__std}" >&6; }
20727 fi
20728 ;;
20729 *)
20730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20731 $as_echo "${as__red}no${as__std}" >&6; }
20732 ;;
20733 esac
20734 fi
20735
20736
20737
20738
20739
20740
20741
20742
20743
20744
20745
20746
20747 # Report what library types will actually be built
20748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
20749 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
20750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
20751 case "$can_build_shared" in #(
20752 yes|ok|yes[\ ,]*) :
20753 $as_echo "${as__grn}$can_build_shared${as__std}" >&6 ;; #(
20754 no|failed|unsupported|no[\ ,]*) :
20755 $as_echo "${as__red}$can_build_shared${as__std}" >&6 ;; #(
20756 *) :
20757 $as_echo "${as__blu}$can_build_shared${as__std}" >&6 ;;
20758 esac; }
20759
20760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
20761 $as_echo_n "checking whether to build shared libraries... " >&6; }
20762 test no = "$can_build_shared" && enable_shared=no
20763
20764 # On AIX, shared libraries and static libraries use the same namespace, and
20765 # are all built from PIC.
20766 case $host_os in
20767 aix3*)
20768 test yes = "$enable_shared" && enable_static=no
20769 if test -n "$RANLIB"; then
20770 archive_cmds="$archive_cmds~\$RANLIB \$lib"
20771 postinstall_cmds='$RANLIB $lib'
20772 fi
20773 ;;
20774
20775 aix[4-9]*)
20776 if test ia64 != "$host_cpu"; then
20777 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
20778 yes,aix,yes) ;; # shared object as lib.so file only
20779 yes,svr4,*) ;; # shared object as lib.so archive member only
20780 yes,*) enable_static=no ;; # shared object in lib.a archive as well
20781 esac
20782 fi
20783 ;;
20784 esac
20785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
20786 case "$enable_shared" in #(
20787 yes|ok|yes[\ ,]*) :
20788 $as_echo "${as__grn}$enable_shared${as__std}" >&6 ;; #(
20789 no|failed|unsupported|no[\ ,]*) :
20790 $as_echo "${as__red}$enable_shared${as__std}" >&6 ;; #(
20791 *) :
20792 $as_echo "${as__blu}$enable_shared${as__std}" >&6 ;;
20793 esac; }
20794
20795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
20796 $as_echo_n "checking whether to build static libraries... " >&6; }
20797 # Make sure either enable_shared or enable_static is yes.
20798 test yes = "$enable_shared" || enable_static=yes
20799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
20800 case "$enable_static" in #(
20801 yes|ok|yes[\ ,]*) :
20802 $as_echo "${as__grn}$enable_static${as__std}" >&6 ;; #(
20803 no|failed|unsupported|no[\ ,]*) :
20804 $as_echo "${as__red}$enable_static${as__std}" >&6 ;; #(
20805 *) :
20806 $as_echo "${as__blu}$enable_static${as__std}" >&6 ;;
20807 esac; }
20808
20809
20810
20811
20812 fi
20813 ac_ext=c
20814 ac_cpp='$CPP $CPPFLAGS'
20815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20818
20819 CC=$lt_save_CC
20820
20821 if test -n "$CXX" && ( test no != "$CXX" &&
20822 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
20823 (test g++ != "$CXX"))); then
20824 ac_ext=cpp
20825 ac_cpp='$CXXCPP $CPPFLAGS'
20826 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20827 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20828 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
20830 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
20831 if test -z "$CXXCPP"; then
20832 if ${ac_cv_prog_CXXCPP+:} false; then :
20833 $as_echo_n "(cached) " >&6
20834 else
20835 # Double quotes because CXXCPP needs to be expanded
20836 for CXXCPP in "$CXX -E" "/lib/cpp"
20837 do
20838 ac_preproc_ok=false
20839 for ac_cxx_preproc_warn_flag in '' yes
20840 do
20841 # Use a header file that comes with gcc, so configuring glibc
20842 # with a fresh cross-compiler works.
20843 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20844 # <limits.h> exists even on freestanding compilers.
20845 # On the NeXT, cc -E runs the code through the compiler's parser,
20846 # not just through cpp. "Syntax error" is here to catch this case.
20847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20848 /* end confdefs.h. */
20849 #ifdef __STDC__
20850 # include <limits.h>
20851 #else
20852 # include <assert.h>
20853 #endif
20854 Syntax error
20855 _ACEOF
20856 if ac_fn_cxx_try_cpp "$LINENO"; then :
20857
20858 else
20859 # Broken: fails on valid input.
20860 continue
20861 fi
20862 rm -f conftest.err conftest.i conftest.$ac_ext
20863
20864 # OK, works on sane cases. Now check whether nonexistent headers
20865 # can be detected and how.
20866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20867 /* end confdefs.h. */
20868 #include <ac_nonexistent.h>
20869 _ACEOF
20870 if ac_fn_cxx_try_cpp "$LINENO"; then :
20871 # Broken: success on invalid input.
20872 continue
20873 else
20874 # Passes both tests.
20875 ac_preproc_ok=:
20876 break
20877 fi
20878 rm -f conftest.err conftest.i conftest.$ac_ext
20879
20880 done
20881 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20882 rm -f conftest.i conftest.err conftest.$ac_ext
20883 if $ac_preproc_ok; then :
20884 break
20885 fi
20886
20887 done
20888 ac_cv_prog_CXXCPP=$CXXCPP
20889
20890 fi
20891 CXXCPP=$ac_cv_prog_CXXCPP
20892 else
20893 ac_cv_prog_CXXCPP=$CXXCPP
20894 fi
20895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
20896 case "$CXXCPP" in #(
20897 yes|ok|yes[\ ,]*) :
20898 $as_echo "${as__grn}$CXXCPP${as__std}" >&6 ;; #(
20899 no|failed|unsupported|no[\ ,]*) :
20900 $as_echo "${as__red}$CXXCPP${as__std}" >&6 ;; #(
20901 *) :
20902 $as_echo "${as__blu}$CXXCPP${as__std}" >&6 ;;
20903 esac; }
20904 ac_preproc_ok=false
20905 for ac_cxx_preproc_warn_flag in '' yes
20906 do
20907 # Use a header file that comes with gcc, so configuring glibc
20908 # with a fresh cross-compiler works.
20909 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20910 # <limits.h> exists even on freestanding compilers.
20911 # On the NeXT, cc -E runs the code through the compiler's parser,
20912 # not just through cpp. "Syntax error" is here to catch this case.
20913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20914 /* end confdefs.h. */
20915 #ifdef __STDC__
20916 # include <limits.h>
20917 #else
20918 # include <assert.h>
20919 #endif
20920 Syntax error
20921 _ACEOF
20922 if ac_fn_cxx_try_cpp "$LINENO"; then :
20923
20924 else
20925 # Broken: fails on valid input.
20926 continue
20927 fi
20928 rm -f conftest.err conftest.i conftest.$ac_ext
20929
20930 # OK, works on sane cases. Now check whether nonexistent headers
20931 # can be detected and how.
20932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20933 /* end confdefs.h. */
20934 #include <ac_nonexistent.h>
20935 _ACEOF
20936 if ac_fn_cxx_try_cpp "$LINENO"; then :
20937 # Broken: success on invalid input.
20938 continue
20939 else
20940 # Passes both tests.
20941 ac_preproc_ok=:
20942 break
20943 fi
20944 rm -f conftest.err conftest.i conftest.$ac_ext
20945
20946 done
20947 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20948 rm -f conftest.i conftest.err conftest.$ac_ext
20949 if $ac_preproc_ok; then :
20950
20951 else
20952 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20953 $as_echo "$as_me: ${as__red}error: in \`$ac_pwd':${as__std}" >&2;}
20954 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check${as__std}
20955 ${as__red}See \`config.log' for more details" "$LINENO" 5; }
20956 fi
20957
20958 ac_ext=c
20959 ac_cpp='$CPP $CPPFLAGS'
20960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20963
20964 else
20965 _lt_caught_CXX_error=yes
20966 fi
20967
20968 ac_ext=cpp
20969 ac_cpp='$CXXCPP $CPPFLAGS'
20970 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20971 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20972 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20973
20974 archive_cmds_need_lc_CXX=no
20975 allow_undefined_flag_CXX=
20976 always_export_symbols_CXX=no
20977 archive_expsym_cmds_CXX=
20978 compiler_needs_object_CXX=no
20979 export_dynamic_flag_spec_CXX=
20980 hardcode_direct_CXX=no
20981 hardcode_direct_absolute_CXX=no
20982 hardcode_libdir_flag_spec_CXX=
20983 hardcode_libdir_separator_CXX=
20984 hardcode_minus_L_CXX=no
20985 hardcode_shlibpath_var_CXX=unsupported
20986 hardcode_automatic_CXX=no
20987 inherit_rpath_CXX=no
20988 module_cmds_CXX=
20989 module_expsym_cmds_CXX=
20990 link_all_deplibs_CXX=unknown
20991 old_archive_cmds_CXX=$old_archive_cmds
20992 reload_flag_CXX=$reload_flag
20993 reload_cmds_CXX=$reload_cmds
20994 no_undefined_flag_CXX=
20995 whole_archive_flag_spec_CXX=
20996 enable_shared_with_static_runtimes_CXX=no
20997
20998 # Source file extension for C++ test sources.
20999 ac_ext=cpp
21000
21001 # Object file extension for compiled C++ test sources.
21002 objext=o
21003 objext_CXX=$objext
21004
21005 # No sense in running all these tests if we already determined that
21006 # the CXX compiler isn't working. Some variables (like enable_shared)
21007 # are currently assumed to apply to all compilers on this platform,
21008 # and will be corrupted by setting them based on a non-working compiler.
21009 if test yes != "$_lt_caught_CXX_error"; then
21010 # Code to be used in simple compile tests
21011 lt_simple_compile_test_code="int some_variable = 0;"
21012
21013 # Code to be used in simple link tests
21014 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
21015
21016 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21017
21018
21019
21020
21021
21022
21023 # If no C compiler was specified, use CC.
21024 LTCC=${LTCC-"$CC"}
21025
21026 # If no C compiler flags were specified, use CFLAGS.
21027 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21028
21029 # Allow CC to be a program name with arguments.
21030 compiler=$CC
21031
21032
21033 # save warnings/boilerplate of simple test code
21034 ac_outfile=conftest.$ac_objext
21035 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
21036 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21037 _lt_compiler_boilerplate=`cat conftest.err`
21038 $RM conftest*
21039
21040 ac_outfile=conftest.$ac_objext
21041 echo "$lt_simple_link_test_code" >conftest.$ac_ext
21042 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21043 _lt_linker_boilerplate=`cat conftest.err`
21044 $RM -r conftest*
21045
21046
21047 # Allow CC to be a program name with arguments.
21048 lt_save_CC=$CC
21049 lt_save_CFLAGS=$CFLAGS
21050 lt_save_LD=$LD
21051 lt_save_GCC=$GCC
21052 GCC=$GXX
21053 lt_save_with_gnu_ld=$with_gnu_ld
21054 lt_save_path_LD=$lt_cv_path_LD
21055 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
21056 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
21057 else
21058 $as_unset lt_cv_prog_gnu_ld
21059 fi
21060 if test -n "${lt_cv_path_LDCXX+set}"; then
21061 lt_cv_path_LD=$lt_cv_path_LDCXX
21062 else
21063 $as_unset lt_cv_path_LD
21064 fi
21065 test -z "${LDCXX+set}" || LD=$LDCXX
21066 CC=${CXX-"c++"}
21067 CFLAGS=$CXXFLAGS
21068 compiler=$CC
21069 compiler_CXX=$CC
21070 func_cc_basename $compiler
21071 cc_basename=$func_cc_basename_result
21072
21073
21074 if test -n "$compiler"; then
21075 # We don't want -fno-exception when compiling C++ code, so set the
21076 # no_builtin_flag separately
21077 if test yes = "$GXX"; then
21078 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
21079 else
21080 lt_prog_compiler_no_builtin_flag_CXX=
21081 fi
21082
21083 if test yes = "$GXX"; then
21084 # Set up default GNU C++ configuration
21085
21086
21087
21088 # Check whether --with-gnu-ld was given.
21089 if test "${with_gnu_ld+set}" = set; then :
21090 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
21091 else
21092 with_gnu_ld=no
21093 fi
21094
21095 ac_prog=ld
21096 if test yes = "$GCC"; then
21097 # Check if gcc -print-prog-name=ld gives a path.
21098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
21099 $as_echo_n "checking for ld used by $CC... " >&6; }
21100 case $host in
21101 *-*-mingw*)
21102 # gcc leaves a trailing carriage return, which upsets mingw
21103 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
21104 *)
21105 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
21106 esac
21107 case $ac_prog in
21108 # Accept absolute paths.
21109 [\\/]* | ?:[\\/]*)
21110 re_direlt='/[^/][^/]*/\.\./'
21111 # Canonicalize the pathname of ld
21112 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
21113 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
21114 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
21115 done
21116 test -z "$LD" && LD=$ac_prog
21117 ;;
21118 "")
21119 # If it fails, then pretend we aren't using GCC.
21120 ac_prog=ld
21121 ;;
21122 *)
21123 # If it is relative, then search for the first ld in PATH.
21124 with_gnu_ld=unknown
21125 ;;
21126 esac
21127 elif test yes = "$with_gnu_ld"; then
21128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
21129 $as_echo_n "checking for GNU ld... " >&6; }
21130 else
21131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
21132 $as_echo_n "checking for non-GNU ld... " >&6; }
21133 fi
21134 if ${lt_cv_path_LD+:} false; then :
21135 $as_echo_n "(cached) " >&6
21136 else
21137 if test -z "$LD"; then
21138 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
21139 for ac_dir in $PATH; do
21140 IFS=$lt_save_ifs
21141 test -z "$ac_dir" && ac_dir=.
21142 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
21143 lt_cv_path_LD=$ac_dir/$ac_prog
21144 # Check to see if the program is GNU ld. I'd rather use --version,
21145 # but apparently some variants of GNU ld only accept -v.
21146 # Break only if it was the GNU/non-GNU ld that we prefer.
21147 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
21148 *GNU* | *'with BFD'*)
21149 test no != "$with_gnu_ld" && break
21150 ;;
21151 *)
21152 test yes != "$with_gnu_ld" && break
21153 ;;
21154 esac
21155 fi
21156 done
21157 IFS=$lt_save_ifs
21158 else
21159 lt_cv_path_LD=$LD # Let the user override the test with a path.
21160 fi
21161 fi
21162
21163 LD=$lt_cv_path_LD
21164 if test -n "$LD"; then
21165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
21166 case "$LD" in #(
21167 yes|ok|yes[\ ,]*) :
21168 $as_echo "${as__grn}$LD${as__std}" >&6 ;; #(
21169 no|failed|unsupported|no[\ ,]*) :
21170 $as_echo "${as__red}$LD${as__std}" >&6 ;; #(
21171 *) :
21172 $as_echo "${as__blu}$LD${as__std}" >&6 ;;
21173 esac; }
21174 else
21175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21176 $as_echo "${as__red}no${as__std}" >&6; }
21177 fi
21178 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
21179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
21180 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
21181 if ${lt_cv_prog_gnu_ld+:} false; then :
21182 $as_echo_n "(cached) " >&6
21183 else
21184 # I'd rather use --version here, but apparently some GNU lds only accept -v.
21185 case `$LD -v 2>&1 </dev/null` in
21186 *GNU* | *'with BFD'*)
21187 lt_cv_prog_gnu_ld=yes
21188 ;;
21189 *)
21190 lt_cv_prog_gnu_ld=no
21191 ;;
21192 esac
21193 fi
21194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
21195 case "$lt_cv_prog_gnu_ld" in #(
21196 yes|ok|yes[\ ,]*) :
21197 $as_echo "${as__grn}$lt_cv_prog_gnu_ld${as__std}" >&6 ;; #(
21198 no|failed|unsupported|no[\ ,]*) :
21199 $as_echo "${as__red}$lt_cv_prog_gnu_ld${as__std}" >&6 ;; #(
21200 *) :
21201 $as_echo "${as__blu}$lt_cv_prog_gnu_ld${as__std}" >&6 ;;
21202 esac; }
21203 with_gnu_ld=$lt_cv_prog_gnu_ld
21204
21205
21206
21207
21208
21209
21210
21211 # Check if GNU C++ uses GNU ld as the underlying linker, since the
21212 # archiving commands below assume that GNU ld is being used.
21213 if test yes = "$with_gnu_ld"; then
21214 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
21215 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
21216
21217 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
21218 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
21219
21220 # If archive_cmds runs LD, not CC, wlarc should be empty
21221 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
21222 # investigate it a little bit more. (MM)
21223 wlarc='$wl'
21224
21225 # ancient GNU ld didn't support --whole-archive et. al.
21226 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
21227 $GREP 'no-whole-archive' > /dev/null; then
21228 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
21229 else
21230 whole_archive_flag_spec_CXX=
21231 fi
21232 else
21233 with_gnu_ld=no
21234 wlarc=
21235
21236 # A generic and very simple default shared library creation
21237 # command for GNU C++ for the case where it uses the native
21238 # linker, instead of GNU ld. If possible, this setting should
21239 # overridden to take advantage of the native linker features on
21240 # the platform it is being used on.
21241 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
21242 fi
21243
21244 # Commands to make compiler produce verbose output that lists
21245 # what "hidden" libraries, object files and flags are used when
21246 # linking a shared library.
21247 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21248
21249 else
21250 GXX=no
21251 with_gnu_ld=no
21252 wlarc=
21253 fi
21254
21255 # PORTME: fill in a description of your system's C++ link characteristics
21256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21257 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
21258 ld_shlibs_CXX=yes
21259 case $host_os in
21260 aix3*)
21261 # FIXME: insert proper C++ library support
21262 ld_shlibs_CXX=no
21263 ;;
21264 aix[4-9]*)
21265 if test ia64 = "$host_cpu"; then
21266 # On IA64, the linker does run time linking by default, so we don't
21267 # have to do anything special.
21268 aix_use_runtimelinking=no
21269 exp_sym_flag='-Bexport'
21270 no_entry_flag=
21271 else
21272 aix_use_runtimelinking=no
21273
21274 # Test if we are trying to use run time linking or normal
21275 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21276 # have runtime linking enabled, and use it for executables.
21277 # For shared libraries, we enable/disable runtime linking
21278 # depending on the kind of the shared library created -
21279 # when "with_aix_soname,aix_use_runtimelinking" is:
21280 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
21281 # "aix,yes" lib.so shared, rtl:yes, for executables
21282 # lib.a static archive
21283 # "both,no" lib.so.V(shr.o) shared, rtl:yes
21284 # lib.a(lib.so.V) shared, rtl:no, for executables
21285 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
21286 # lib.a(lib.so.V) shared, rtl:no
21287 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
21288 # lib.a static archive
21289 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
21290 for ld_flag in $LDFLAGS; do
21291 case $ld_flag in
21292 *-brtl*)
21293 aix_use_runtimelinking=yes
21294 break
21295 ;;
21296 esac
21297 done
21298 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
21299 # With aix-soname=svr4, we create the lib.so.V shared archives only,
21300 # so we don't have lib.a shared libs to link our executables.
21301 # We have to force runtime linking in this case.
21302 aix_use_runtimelinking=yes
21303 LDFLAGS="$LDFLAGS -Wl,-brtl"
21304 fi
21305 ;;
21306 esac
21307
21308 exp_sym_flag='-bexport'
21309 no_entry_flag='-bnoentry'
21310 fi
21311
21312 # When large executables or shared objects are built, AIX ld can
21313 # have problems creating the table of contents. If linking a library
21314 # or program results in "error TOC overflow" add -mminimal-toc to
21315 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21316 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21317
21318 archive_cmds_CXX=''
21319 hardcode_direct_CXX=yes
21320 hardcode_direct_absolute_CXX=yes
21321 hardcode_libdir_separator_CXX=':'
21322 link_all_deplibs_CXX=yes
21323 file_list_spec_CXX='$wl-f,'
21324 case $with_aix_soname,$aix_use_runtimelinking in
21325 aix,*) ;; # no import file
21326 svr4,* | *,yes) # use import file
21327 # The Import File defines what to hardcode.
21328 hardcode_direct_CXX=no
21329 hardcode_direct_absolute_CXX=no
21330 ;;
21331 esac
21332
21333 if test yes = "$GXX"; then
21334 case $host_os in aix4.[012]|aix4.[012].*)
21335 # We only want to do this on AIX 4.2 and lower, the check
21336 # below for broken collect2 doesn't work under 4.3+
21337 collect2name=`$CC -print-prog-name=collect2`
21338 if test -f "$collect2name" &&
21339 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
21340 then
21341 # We have reworked collect2
21342 :
21343 else
21344 # We have old collect2
21345 hardcode_direct_CXX=unsupported
21346 # It fails to find uninstalled libraries when the uninstalled
21347 # path is not listed in the libpath. Setting hardcode_minus_L
21348 # to unsupported forces relinking
21349 hardcode_minus_L_CXX=yes
21350 hardcode_libdir_flag_spec_CXX='-L$libdir'
21351 hardcode_libdir_separator_CXX=
21352 fi
21353 esac
21354 shared_flag='-shared'
21355 if test yes = "$aix_use_runtimelinking"; then
21356 shared_flag=$shared_flag' $wl-G'
21357 fi
21358 # Need to ensure runtime linking is disabled for the traditional
21359 # shared library, or the linker may eventually find shared libraries
21360 # /with/ Import File - we do not want to mix them.
21361 shared_flag_aix='-shared'
21362 shared_flag_svr4='-shared $wl-G'
21363 else
21364 # not using gcc
21365 if test ia64 = "$host_cpu"; then
21366 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21367 # chokes on -Wl,-G. The following line is correct:
21368 shared_flag='-G'
21369 else
21370 if test yes = "$aix_use_runtimelinking"; then
21371 shared_flag='$wl-G'
21372 else
21373 shared_flag='$wl-bM:SRE'
21374 fi
21375 shared_flag_aix='$wl-bM:SRE'
21376 shared_flag_svr4='$wl-G'
21377 fi
21378 fi
21379
21380 export_dynamic_flag_spec_CXX='$wl-bexpall'
21381 # It seems that -bexpall does not export symbols beginning with
21382 # underscore (_), so it is better to generate a list of symbols to
21383 # export.
21384 always_export_symbols_CXX=yes
21385 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
21386 # Warning - without using the other runtime loading flags (-brtl),
21387 # -berok will link without error, but may produce a broken library.
21388 # The "-G" linker flag allows undefined symbols.
21389 no_undefined_flag_CXX='-bernotok'
21390 # Determine the default libpath from the value encoded in an empty
21391 # executable.
21392 if test set = "${lt_cv_aix_libpath+set}"; then
21393 aix_libpath=$lt_cv_aix_libpath
21394 else
21395 if ${lt_cv_aix_libpath__CXX+:} false; then :
21396 $as_echo_n "(cached) " >&6
21397 else
21398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21399 /* end confdefs.h. */
21400
21401 int
21402 main ()
21403 {
21404
21405 ;
21406 return 0;
21407 }
21408 _ACEOF
21409 if ac_fn_cxx_try_link "$LINENO"; then :
21410
21411 lt_aix_libpath_sed='
21412 /Import File Strings/,/^$/ {
21413 /^0/ {
21414 s/^0 *\([^ ]*\) *$/\1/
21415 p
21416 }
21417 }'
21418 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
21419 # Check for a 64-bit object if we didn't find anything.
21420 if test -z "$lt_cv_aix_libpath__CXX"; then
21421 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
21422 fi
21423 fi
21424 rm -f core conftest.err conftest.$ac_objext \
21425 conftest$ac_exeext conftest.$ac_ext
21426 if test -z "$lt_cv_aix_libpath__CXX"; then
21427 lt_cv_aix_libpath__CXX=/usr/lib:/lib
21428 fi
21429
21430 fi
21431
21432 aix_libpath=$lt_cv_aix_libpath__CXX
21433 fi
21434
21435 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
21436
21437 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
21438 else
21439 if test ia64 = "$host_cpu"; then
21440 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
21441 allow_undefined_flag_CXX="-z nodefs"
21442 archive_expsym_cmds_CXX="\$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"
21443 else
21444 # Determine the default libpath from the value encoded in an
21445 # empty executable.
21446 if test set = "${lt_cv_aix_libpath+set}"; then
21447 aix_libpath=$lt_cv_aix_libpath
21448 else
21449 if ${lt_cv_aix_libpath__CXX+:} false; then :
21450 $as_echo_n "(cached) " >&6
21451 else
21452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21453 /* end confdefs.h. */
21454
21455 int
21456 main ()
21457 {
21458
21459 ;
21460 return 0;
21461 }
21462 _ACEOF
21463 if ac_fn_cxx_try_link "$LINENO"; then :
21464
21465 lt_aix_libpath_sed='
21466 /Import File Strings/,/^$/ {
21467 /^0/ {
21468 s/^0 *\([^ ]*\) *$/\1/
21469 p
21470 }
21471 }'
21472 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
21473 # Check for a 64-bit object if we didn't find anything.
21474 if test -z "$lt_cv_aix_libpath__CXX"; then
21475 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
21476 fi
21477 fi
21478 rm -f core conftest.err conftest.$ac_objext \
21479 conftest$ac_exeext conftest.$ac_ext
21480 if test -z "$lt_cv_aix_libpath__CXX"; then
21481 lt_cv_aix_libpath__CXX=/usr/lib:/lib
21482 fi
21483
21484 fi
21485
21486 aix_libpath=$lt_cv_aix_libpath__CXX
21487 fi
21488
21489 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
21490 # Warning - without using the other run time loading flags,
21491 # -berok will link without error, but may produce a broken library.
21492 no_undefined_flag_CXX=' $wl-bernotok'
21493 allow_undefined_flag_CXX=' $wl-berok'
21494 if test yes = "$with_gnu_ld"; then
21495 # We only use this code for GNU lds that support --whole-archive.
21496 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
21497 else
21498 # Exported symbols can be pulled into shared objects from archives
21499 whole_archive_flag_spec_CXX='$convenience'
21500 fi
21501 archive_cmds_need_lc_CXX=yes
21502 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
21503 # -brtl affects multiple linker settings, -berok does not and is overridden later
21504 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
21505 if test svr4 != "$with_aix_soname"; then
21506 # This is similar to how AIX traditionally builds its shared
21507 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
21508 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
21509 fi
21510 if test aix != "$with_aix_soname"; then
21511 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
21512 else
21513 # used by -dlpreopen to get the symbols
21514 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
21515 fi
21516 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
21517 fi
21518 fi
21519 ;;
21520
21521 beos*)
21522 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
21523 allow_undefined_flag_CXX=unsupported
21524 # Joseph Beckenbach <[email protected]> says some releases of gcc
21525 # support --undefined. This deserves some investigation. FIXME
21526 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
21527 else
21528 ld_shlibs_CXX=no
21529 fi
21530 ;;
21531
21532 chorus*)
21533 case $cc_basename in
21534 *)
21535 # FIXME: insert proper C++ library support
21536 ld_shlibs_CXX=no
21537 ;;
21538 esac
21539 ;;
21540
21541 cygwin* | mingw* | pw32* | cegcc*)
21542 case $GXX,$cc_basename in
21543 ,cl* | no,cl*)
21544 # Native MSVC
21545 # hardcode_libdir_flag_spec is actually meaningless, as there is
21546 # no search path for DLLs.
21547 hardcode_libdir_flag_spec_CXX=' '
21548 allow_undefined_flag_CXX=unsupported
21549 always_export_symbols_CXX=yes
21550 file_list_spec_CXX='@'
21551 # Tell ltmain to make .lib files, not .a files.
21552 libext=lib
21553 # Tell ltmain to make .dll files, not .so files.
21554 shrext_cmds=.dll
21555 # FIXME: Setting linknames here is a bad hack.
21556 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
21557 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
21558 cp "$export_symbols" "$output_objdir/$soname.def";
21559 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
21560 else
21561 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
21562 fi~
21563 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
21564 linknames='
21565 # The linker will not automatically build a static lib if we build a DLL.
21566 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
21567 enable_shared_with_static_runtimes_CXX=yes
21568 # Don't use ranlib
21569 old_postinstall_cmds_CXX='chmod 644 $oldlib'
21570 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
21571 lt_tool_outputfile="@TOOL_OUTPUT@"~
21572 case $lt_outputfile in
21573 *.exe|*.EXE) ;;
21574 *)
21575 lt_outputfile=$lt_outputfile.exe
21576 lt_tool_outputfile=$lt_tool_outputfile.exe
21577 ;;
21578 esac~
21579 func_to_tool_file "$lt_outputfile"~
21580 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
21581 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
21582 $RM "$lt_outputfile.manifest";
21583 fi'
21584 ;;
21585 *)
21586 # g++
21587 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
21588 # as there is no search path for DLLs.
21589 hardcode_libdir_flag_spec_CXX='-L$libdir'
21590 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
21591 allow_undefined_flag_CXX=unsupported
21592 always_export_symbols_CXX=no
21593 enable_shared_with_static_runtimes_CXX=yes
21594
21595 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
21596 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21597 # If the export-symbols file already is a .def file, use it as
21598 # is; otherwise, prepend EXPORTS...
21599 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
21600 cp $export_symbols $output_objdir/$soname.def;
21601 else
21602 echo EXPORTS > $output_objdir/$soname.def;
21603 cat $export_symbols >> $output_objdir/$soname.def;
21604 fi~
21605 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21606 else
21607 ld_shlibs_CXX=no
21608 fi
21609 ;;
21610 esac
21611 ;;
21612 darwin* | rhapsody*)
21613
21614
21615 archive_cmds_need_lc_CXX=no
21616 hardcode_direct_CXX=no
21617 hardcode_automatic_CXX=yes
21618 hardcode_shlibpath_var_CXX=unsupported
21619 if test yes = "$lt_cv_ld_force_load"; then
21620 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
21621
21622 else
21623 whole_archive_flag_spec_CXX=''
21624 fi
21625 link_all_deplibs_CXX=yes
21626 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
21627 case $cc_basename in
21628 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
21629 *) _lt_dar_can_shared=$GCC ;;
21630 esac
21631 if test yes = "$_lt_dar_can_shared"; then
21632 output_verbose_link_cmd=func_echo_all
21633 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
21634 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
21635 archive_expsym_cmds_CXX="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"
21636 module_expsym_cmds_CXX="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"
21637 if test yes != "$lt_cv_apple_cc_single_mod"; then
21638 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
21639 archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
21640 fi
21641
21642 else
21643 ld_shlibs_CXX=no
21644 fi
21645
21646 ;;
21647
21648 os2*)
21649 hardcode_libdir_flag_spec_CXX='-L$libdir'
21650 hardcode_minus_L_CXX=yes
21651 allow_undefined_flag_CXX=unsupported
21652 shrext_cmds=.dll
21653 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
21654 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
21655 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
21656 $ECHO EXPORTS >> $output_objdir/$libname.def~
21657 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
21658 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
21659 emximp -o $lib $output_objdir/$libname.def'
21660 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
21661 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
21662 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
21663 $ECHO EXPORTS >> $output_objdir/$libname.def~
21664 prefix_cmds="$SED"~
21665 if test EXPORTS = "`$SED 1q $export_symbols`"; then
21666 prefix_cmds="$prefix_cmds -e 1d";
21667 fi~
21668 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
21669 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
21670 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
21671 emximp -o $lib $output_objdir/$libname.def'
21672 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
21673 enable_shared_with_static_runtimes_CXX=yes
21674 ;;
21675
21676 dgux*)
21677 case $cc_basename in
21678 ec++*)
21679 # FIXME: insert proper C++ library support
21680 ld_shlibs_CXX=no
21681 ;;
21682 ghcx*)
21683 # Green Hills C++ Compiler
21684 # FIXME: insert proper C++ library support
21685 ld_shlibs_CXX=no
21686 ;;
21687 *)
21688 # FIXME: insert proper C++ library support
21689 ld_shlibs_CXX=no
21690 ;;
21691 esac
21692 ;;
21693
21694 freebsd2.*)
21695 # C++ shared libraries reported to be fairly broken before
21696 # switch to ELF
21697 ld_shlibs_CXX=no
21698 ;;
21699
21700 freebsd-elf*)
21701 archive_cmds_need_lc_CXX=no
21702 ;;
21703
21704 freebsd* | dragonfly*)
21705 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
21706 # conventions
21707 ld_shlibs_CXX=yes
21708 ;;
21709
21710 haiku*)
21711 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
21712 link_all_deplibs_CXX=yes
21713 ;;
21714
21715 hpux9*)
21716 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
21717 hardcode_libdir_separator_CXX=:
21718 export_dynamic_flag_spec_CXX='$wl-E'
21719 hardcode_direct_CXX=yes
21720 hardcode_minus_L_CXX=yes # Not in the search PATH,
21721 # but as the default
21722 # location of the library.
21723
21724 case $cc_basename in
21725 CC*)
21726 # FIXME: insert proper C++ library support
21727 ld_shlibs_CXX=no
21728 ;;
21729 aCC*)
21730 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
21731 # Commands to make compiler produce verbose output that lists
21732 # what "hidden" libraries, object files and flags are used when
21733 # linking a shared library.
21734 #
21735 # There doesn't appear to be a way to prevent this compiler from
21736 # explicitly linking system object files so we need to strip them
21737 # from the output so that they don't get included in the library
21738 # dependencies.
21739 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
21740 ;;
21741 *)
21742 if test yes = "$GXX"; then
21743 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
21744 else
21745 # FIXME: insert proper C++ library support
21746 ld_shlibs_CXX=no
21747 fi
21748 ;;
21749 esac
21750 ;;
21751
21752 hpux10*|hpux11*)
21753 if test no = "$with_gnu_ld"; then
21754 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
21755 hardcode_libdir_separator_CXX=:
21756
21757 case $host_cpu in
21758 hppa*64*|ia64*)
21759 ;;
21760 *)
21761 export_dynamic_flag_spec_CXX='$wl-E'
21762 ;;
21763 esac
21764 fi
21765 case $host_cpu in
21766 hppa*64*|ia64*)
21767 hardcode_direct_CXX=no
21768 hardcode_shlibpath_var_CXX=no
21769 ;;
21770 *)
21771 hardcode_direct_CXX=yes
21772 hardcode_direct_absolute_CXX=yes
21773 hardcode_minus_L_CXX=yes # Not in the search PATH,
21774 # but as the default
21775 # location of the library.
21776 ;;
21777 esac
21778
21779 case $cc_basename in
21780 CC*)
21781 # FIXME: insert proper C++ library support
21782 ld_shlibs_CXX=no
21783 ;;
21784 aCC*)
21785 case $host_cpu in
21786 hppa*64*)
21787 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21788 ;;
21789 ia64*)
21790 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21791 ;;
21792 *)
21793 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21794 ;;
21795 esac
21796 # Commands to make compiler produce verbose output that lists
21797 # what "hidden" libraries, object files and flags are used when
21798 # linking a shared library.
21799 #
21800 # There doesn't appear to be a way to prevent this compiler from
21801 # explicitly linking system object files so we need to strip them
21802 # from the output so that they don't get included in the library
21803 # dependencies.
21804 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
21805 ;;
21806 *)
21807 if test yes = "$GXX"; then
21808 if test no = "$with_gnu_ld"; then
21809 case $host_cpu in
21810 hppa*64*)
21811 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21812 ;;
21813 ia64*)
21814 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21815 ;;
21816 *)
21817 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21818 ;;
21819 esac
21820 fi
21821 else
21822 # FIXME: insert proper C++ library support
21823 ld_shlibs_CXX=no
21824 fi
21825 ;;
21826 esac
21827 ;;
21828
21829 interix[3-9]*)
21830 hardcode_direct_CXX=no
21831 hardcode_shlibpath_var_CXX=no
21832 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
21833 export_dynamic_flag_spec_CXX='$wl-E'
21834 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21835 # Instead, shared libraries are loaded at an image base (0x10000000 by
21836 # default) and relocated if they conflict, which is a slow very memory
21837 # consuming and fragmenting process. To avoid this, we pick a random,
21838 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21839 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21840 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
21841 archive_expsym_cmds_CXX='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'
21842 ;;
21843 irix5* | irix6*)
21844 case $cc_basename in
21845 CC*)
21846 # SGI C++
21847 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
21848
21849 # Archives containing C++ object files must be created using
21850 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
21851 # necessary to make sure instantiated templates are included
21852 # in the archive.
21853 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
21854 ;;
21855 *)
21856 if test yes = "$GXX"; then
21857 if test no = "$with_gnu_ld"; then
21858 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
21859 else
21860 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
21861 fi
21862 fi
21863 link_all_deplibs_CXX=yes
21864 ;;
21865 esac
21866 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
21867 hardcode_libdir_separator_CXX=:
21868 inherit_rpath_CXX=yes
21869 ;;
21870
21871 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
21872 case $cc_basename in
21873 KCC*)
21874 # Kuck and Associates, Inc. (KAI) C++ Compiler
21875
21876 # KCC will only create a shared library if the output file
21877 # ends with ".so" (or ".sl" for HP-UX), so rename the library
21878 # to its proper name (with version) after linking.
21879 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
21880 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
21881 # Commands to make compiler produce verbose output that lists
21882 # what "hidden" libraries, object files and flags are used when
21883 # linking a shared library.
21884 #
21885 # There doesn't appear to be a way to prevent this compiler from
21886 # explicitly linking system object files so we need to strip them
21887 # from the output so that they don't get included in the library
21888 # dependencies.
21889 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
21890
21891 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
21892 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
21893
21894 # Archives containing C++ object files must be created using
21895 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
21896 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
21897 ;;
21898 icpc* | ecpc* )
21899 # Intel C++
21900 with_gnu_ld=yes
21901 # version 8.0 and above of icpc choke on multiply defined symbols
21902 # if we add $predep_objects and $postdep_objects, however 7.1 and
21903 # earlier do not add the objects themselves.
21904 case `$CC -V 2>&1` in
21905 *"Version 7."*)
21906 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
21907 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
21908 ;;
21909 *) # Version 8.0 or newer
21910 tmp_idyn=
21911 case $host_cpu in
21912 ia64*) tmp_idyn=' -i_dynamic';;
21913 esac
21914 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
21915 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
21916 ;;
21917 esac
21918 archive_cmds_need_lc_CXX=no
21919 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
21920 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
21921 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
21922 ;;
21923 pgCC* | pgcpp*)
21924 # NVIDIA HPC C++ compiler. No special treatment for pgc++ and nvc++.
21925 case `$CC -V` in
21926 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
21927 prelink_cmds_CXX='tpldir=Template.dir~
21928 rm -rf $tpldir~
21929 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
21930 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
21931 old_archive_cmds_CXX='tpldir=Template.dir~
21932 rm -rf $tpldir~
21933 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
21934 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
21935 $RANLIB $oldlib'
21936 archive_cmds_CXX='tpldir=Template.dir~
21937 rm -rf $tpldir~
21938 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
21939 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
21940 archive_expsym_cmds_CXX='tpldir=Template.dir~
21941 rm -rf $tpldir~
21942 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
21943 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
21944 ;;
21945 *) # Version 6 and above use weak symbols
21946 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
21947 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
21948 ;;
21949 esac
21950
21951 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
21952 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
21953 whole_archive_flag_spec_CXX='$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'
21954 ;;
21955 cxx*)
21956 # Compaq C++
21957 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
21958 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols'
21959
21960 runpath_var=LD_RUN_PATH
21961 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
21962 hardcode_libdir_separator_CXX=:
21963
21964 # Commands to make compiler produce verbose output that lists
21965 # what "hidden" libraries, object files and flags are used when
21966 # linking a shared library.
21967 #
21968 # There doesn't appear to be a way to prevent this compiler from
21969 # explicitly linking system object files so we need to strip them
21970 # from the output so that they don't get included in the library
21971 # dependencies.
21972 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
21973 ;;
21974 xl* | mpixl* | bgxl*)
21975 # IBM XL 8.0 on PPC, with GNU ld
21976 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
21977 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
21978 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
21979 if test yes = "$supports_anon_versioning"; then
21980 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
21981 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21982 echo "local: *; };" >> $output_objdir/$libname.ver~
21983 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
21984 fi
21985 ;;
21986 *nc++*)
21987 # NEC Vector Engine C++ compiler
21988 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
21989 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
21990 archive_cmds_CXX='$CC $pic_flag -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
21991 archive_expsym_cmds_CXX='$CC $pic_flag -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
21992 whole_archive_flag_spec_CXX='${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'
21993 ;;
21994 *)
21995 case `$CC -V 2>&1` in
21996 *Sun\ C*)
21997 # Sun C++ 5.9
21998 no_undefined_flag_CXX=' -zdefs'
21999 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22000 archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
22001 hardcode_libdir_flag_spec_CXX='-R$libdir'
22002 whole_archive_flag_spec_CXX='$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'
22003 compiler_needs_object_CXX=yes
22004
22005 # Not sure whether something based on
22006 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
22007 # would be better.
22008 output_verbose_link_cmd='func_echo_all'
22009
22010 # Archives containing C++ object files must be created using
22011 # "CC -xar", where "CC" is the Sun C++ compiler. This is
22012 # necessary to make sure instantiated templates are included
22013 # in the archive.
22014 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
22015 ;;
22016 *Cray\ C*) # Cray C++ compiler
22017 # If STRIP is set while creating a shared library with
22018 # the Cray compiler, the library has its symbols
22019 # removed. So we unset and restore it.
22020 archive_cmds_CXX='save_STRIP=$STRIP; unset STRIP; $CC -shared $wl-soname $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags; ret=\$?; STRIP=\$save_STRIP; export STRIP; (exit \$ret)'
22021 archive_expsym_cmds_CXX=''
22022 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
22023 whole_archive_flag_spec_CXX='-vv $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'
22024 compiler_needs_object_CXX=yes
22025
22026 # Not sure whether something based on
22027 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
22028 # would be better.
22029 output_verbose_link_cmd='func_echo_all'
22030 ;;
22031 *pgCC* | *pgcpp*)
22032 # NVIDIA HPC C++ compiler. No special treatment for pgc++ and nvc++.
22033 case `$CC -V` in
22034 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
22035 prelink_cmds_CXX='tpldir=Template.dir~
22036 rm -rf $tpldir~
22037 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
22038 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
22039 old_archive_cmds_CXX='tpldir=Template.dir~
22040 rm -rf $tpldir~
22041 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
22042 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
22043 $RANLIB $oldlib'
22044 archive_cmds_CXX='tpldir=Template.dir~
22045 rm -rf $tpldir~
22046 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
22047 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
22048 archive_expsym_cmds_CXX='tpldir=Template.dir~
22049 rm -rf $tpldir~
22050 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
22051 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
22052 ;;
22053 *) # Version 6 and above use weak symbols
22054 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
22055 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
22056 ;;
22057 esac
22058
22059 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
22060 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
22061 whole_archive_flag_spec_CXX='$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'
22062 ;;
22063 *xlC* | *xlc++* ) # IBM XL
22064 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
22065 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
22066 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
22067 if test yes = "$supports_anon_versioning"; then
22068 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
22069 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22070 echo "local: *; };" >> $output_objdir/$libname.ver~
22071 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
22072 fi
22073 ;;
22074 esac
22075 ;;
22076 esac
22077 ;;
22078
22079 lynxos*)
22080 # FIXME: insert proper C++ library support
22081 ld_shlibs_CXX=no
22082 ;;
22083
22084 m88k*)
22085 # FIXME: insert proper C++ library support
22086 ld_shlibs_CXX=no
22087 ;;
22088
22089 mvs*)
22090 case $cc_basename in
22091 cxx*)
22092 # FIXME: insert proper C++ library support
22093 ld_shlibs_CXX=no
22094 ;;
22095 *)
22096 # FIXME: insert proper C++ library support
22097 ld_shlibs_CXX=no
22098 ;;
22099 esac
22100 ;;
22101
22102 netbsd*)
22103 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
22104 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
22105 wlarc=
22106 hardcode_libdir_flag_spec_CXX='-R$libdir'
22107 hardcode_direct_CXX=yes
22108 hardcode_shlibpath_var_CXX=no
22109 fi
22110 # Workaround some broken pre-1.5 toolchains
22111 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
22112 ;;
22113
22114 *nto* | *qnx*)
22115 ld_shlibs_CXX=yes
22116 ;;
22117
22118 openbsd* | bitrig*)
22119 if test -f /usr/libexec/ld.so; then
22120 hardcode_direct_CXX=yes
22121 hardcode_shlibpath_var_CXX=no
22122 hardcode_direct_absolute_CXX=yes
22123 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
22124 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
22125 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
22126 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
22127 export_dynamic_flag_spec_CXX='$wl-E'
22128 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
22129 fi
22130 output_verbose_link_cmd=func_echo_all
22131 else
22132 ld_shlibs_CXX=no
22133 fi
22134 ;;
22135
22136 osf3* | osf4* | osf5*)
22137 case $cc_basename in
22138 KCC*)
22139 # Kuck and Associates, Inc. (KAI) C++ Compiler
22140
22141 # KCC will only create a shared library if the output file
22142 # ends with ".so" (or ".sl" for HP-UX), so rename the library
22143 # to its proper name (with version) after linking.
22144 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
22145
22146 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
22147 hardcode_libdir_separator_CXX=:
22148
22149 # Archives containing C++ object files must be created using
22150 # the KAI C++ compiler.
22151 case $host in
22152 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
22153 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
22154 esac
22155 ;;
22156 RCC*)
22157 # Rational C++ 2.4.1
22158 # FIXME: insert proper C++ library support
22159 ld_shlibs_CXX=no
22160 ;;
22161 cxx*)
22162 case $host in
22163 osf3*)
22164 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
22165 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
22166 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
22167 ;;
22168 *)
22169 allow_undefined_flag_CXX=' -expect_unresolved \*'
22170 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
22171 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
22172 echo "-hidden">> $lib.exp~
22173 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
22174 $RM $lib.exp'
22175 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
22176 ;;
22177 esac
22178
22179 hardcode_libdir_separator_CXX=:
22180
22181 # Commands to make compiler produce verbose output that lists
22182 # what "hidden" libraries, object files and flags are used when
22183 # linking a shared library.
22184 #
22185 # There doesn't appear to be a way to prevent this compiler from
22186 # explicitly linking system object files so we need to strip them
22187 # from the output so that they don't get included in the library
22188 # dependencies.
22189 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
22190 ;;
22191 *)
22192 if test yes,no = "$GXX,$with_gnu_ld"; then
22193 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
22194 case $host in
22195 osf3*)
22196 archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
22197 ;;
22198 *)
22199 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
22200 ;;
22201 esac
22202
22203 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
22204 hardcode_libdir_separator_CXX=:
22205
22206 # Commands to make compiler produce verbose output that lists
22207 # what "hidden" libraries, object files and flags are used when
22208 # linking a shared library.
22209 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
22210
22211 else
22212 # FIXME: insert proper C++ library support
22213 ld_shlibs_CXX=no
22214 fi
22215 ;;
22216 esac
22217 ;;
22218
22219 psos*)
22220 # FIXME: insert proper C++ library support
22221 ld_shlibs_CXX=no
22222 ;;
22223
22224 sunos4*)
22225 case $cc_basename in
22226 CC*)
22227 # Sun C++ 4.x
22228 # FIXME: insert proper C++ library support
22229 ld_shlibs_CXX=no
22230 ;;
22231 lcc*)
22232 # Lucid
22233 # FIXME: insert proper C++ library support
22234 ld_shlibs_CXX=no
22235 ;;
22236 *)
22237 # FIXME: insert proper C++ library support
22238 ld_shlibs_CXX=no
22239 ;;
22240 esac
22241 ;;
22242
22243 solaris*)
22244 case $cc_basename in
22245 CC* | sunCC*)
22246 # Sun C++ 4.2, 5.x and Centerline C++
22247 archive_cmds_need_lc_CXX=yes
22248 no_undefined_flag_CXX=' -zdefs'
22249 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22250 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
22251 $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
22252
22253 hardcode_libdir_flag_spec_CXX='-R$libdir'
22254 hardcode_shlibpath_var_CXX=no
22255 case $host_os in
22256 solaris2.[0-5] | solaris2.[0-5].*) ;;
22257 *)
22258 # The compiler driver will combine and reorder linker options,
22259 # but understands '-z linker_flag'.
22260 # Supported since Solaris 2.6 (maybe 2.5.1?)
22261 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
22262 ;;
22263 esac
22264 link_all_deplibs_CXX=yes
22265
22266 output_verbose_link_cmd='func_echo_all'
22267
22268 # Archives containing C++ object files must be created using
22269 # "CC -xar", where "CC" is the Sun C++ compiler. This is
22270 # necessary to make sure instantiated templates are included
22271 # in the archive.
22272 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
22273 ;;
22274 gcx*)
22275 # Green Hills C++ Compiler
22276 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
22277
22278 # The C++ compiler must be used to create the archive.
22279 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
22280 ;;
22281 *)
22282 # GNU C++ compiler with Solaris linker
22283 if test yes,no = "$GXX,$with_gnu_ld"; then
22284 no_undefined_flag_CXX=' $wl-z ${wl}defs'
22285 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
22286 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
22287 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
22288 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
22289
22290 # Commands to make compiler produce verbose output that lists
22291 # what "hidden" libraries, object files and flags are used when
22292 # linking a shared library.
22293 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
22294 else
22295 # g++ 2.7 appears to require '-G' NOT '-shared' on this
22296 # platform.
22297 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
22298 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
22299 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
22300
22301 # Commands to make compiler produce verbose output that lists
22302 # what "hidden" libraries, object files and flags are used when
22303 # linking a shared library.
22304 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
22305 fi
22306
22307 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
22308 case $host_os in
22309 solaris2.[0-5] | solaris2.[0-5].*) ;;
22310 *)
22311 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
22312 ;;
22313 esac
22314 fi
22315 ;;
22316 esac
22317 ;;
22318
22319 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
22320 no_undefined_flag_CXX='$wl-z,text'
22321 archive_cmds_need_lc_CXX=no
22322 hardcode_shlibpath_var_CXX=no
22323 runpath_var='LD_RUN_PATH'
22324
22325 case $cc_basename in
22326 CC*)
22327 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22328 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22329 ;;
22330 *)
22331 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22332 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22333 ;;
22334 esac
22335 ;;
22336
22337 sysv5* | sco3.2v5* | sco5v6*)
22338 # Note: We CANNOT use -z defs as we might desire, because we do not
22339 # link with -lc, and that would cause any symbols used from libc to
22340 # always be unresolved, which means just about no library would
22341 # ever link correctly. If we're not using GNU ld we use -z text
22342 # though, which does catch some bad symbols but isn't as heavy-handed
22343 # as -z defs.
22344 no_undefined_flag_CXX='$wl-z,text'
22345 allow_undefined_flag_CXX='$wl-z,nodefs'
22346 archive_cmds_need_lc_CXX=no
22347 hardcode_shlibpath_var_CXX=no
22348 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
22349 hardcode_libdir_separator_CXX=':'
22350 link_all_deplibs_CXX=yes
22351 export_dynamic_flag_spec_CXX='$wl-Bexport'
22352 runpath_var='LD_RUN_PATH'
22353
22354 case $cc_basename in
22355 CC*)
22356 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22357 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22358 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
22359 '"$old_archive_cmds_CXX"
22360 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
22361 '"$reload_cmds_CXX"
22362 ;;
22363 *)
22364 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22365 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22366 ;;
22367 esac
22368 ;;
22369
22370 tandem*)
22371 case $cc_basename in
22372 NCC*)
22373 # NonStop-UX NCC 3.20
22374 # FIXME: insert proper C++ library support
22375 ld_shlibs_CXX=no
22376 ;;
22377 *)
22378 # FIXME: insert proper C++ library support
22379 ld_shlibs_CXX=no
22380 ;;
22381 esac
22382 ;;
22383
22384 vxworks*)
22385 # FIXME: insert proper C++ library support
22386 ld_shlibs_CXX=no
22387 ;;
22388
22389 *)
22390 # FIXME: insert proper C++ library support
22391 ld_shlibs_CXX=no
22392 ;;
22393 esac
22394
22395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
22396 case "$ld_shlibs_CXX" in #(
22397 yes|ok|yes[\ ,]*) :
22398 $as_echo "${as__grn}$ld_shlibs_CXX${as__std}" >&6 ;; #(
22399 no|failed|unsupported|no[\ ,]*) :
22400 $as_echo "${as__red}$ld_shlibs_CXX${as__std}" >&6 ;; #(
22401 *) :
22402 $as_echo "${as__blu}$ld_shlibs_CXX${as__std}" >&6 ;;
22403 esac; }
22404 test no = "$ld_shlibs_CXX" && can_build_shared=no
22405
22406 GCC_CXX=$GXX
22407 LD_CXX=$LD
22408
22409 ## CAVEAT EMPTOR:
22410 ## There is no encapsulation within the following macros, do not change
22411 ## the running order or otherwise move them around unless you know exactly
22412 ## what you are doing...
22413 # Dependencies to place before and after the object being linked:
22414 predep_objects_CXX=
22415 postdep_objects_CXX=
22416 predeps_CXX=
22417 postdeps_CXX=
22418 compiler_lib_search_path_CXX=
22419
22420 cat > conftest.$ac_ext <<_LT_EOF
22421 class Foo
22422 {
22423 public:
22424 Foo (void) { a = 0; }
22425 private:
22426 int a;
22427 };
22428 _LT_EOF
22429
22430
22431 _lt_libdeps_save_CFLAGS=$CFLAGS
22432 case "$CC $CFLAGS " in #(
22433 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
22434 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
22435 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
22436 esac
22437
22438 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
22439 (eval $ac_compile) 2>&5
22440 ac_status=$?
22441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22442 test $ac_status = 0; }; then
22443 # Parse the compiler output and extract the necessary
22444 # objects, libraries and library flags.
22445
22446 # Sentinel used to keep track of whether or not we are before
22447 # the conftest object file.
22448 pre_test_object_deps_done=no
22449
22450 for p in `eval "$output_verbose_link_cmd"`; do
22451 case $prev$p in
22452
22453 -L* | -R* | -l*)
22454 # Some compilers place space between "-{L,R}" and the path.
22455 # Remove the space.
22456 if test x-L = "$p" ||
22457 test x-R = "$p"; then
22458 prev=$p
22459 continue
22460 fi
22461
22462 # Expand the sysroot to ease extracting the directories later.
22463 if test -z "$prev"; then
22464 case $p in
22465 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
22466 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
22467 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
22468 esac
22469 fi
22470 case $p in
22471 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
22472 esac
22473 if test no = "$pre_test_object_deps_done"; then
22474 case $prev in
22475 -L | -R)
22476 # Internal compiler library paths should come after those
22477 # provided the user. The postdeps already come after the
22478 # user supplied libs so there is no need to process them.
22479 if test -z "$compiler_lib_search_path_CXX"; then
22480 compiler_lib_search_path_CXX=$prev$p
22481 else
22482 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
22483 fi
22484 ;;
22485 # The "-l" case would never come before the object being
22486 # linked, so don't bother handling this case.
22487 esac
22488 else
22489 if test -z "$postdeps_CXX"; then
22490 postdeps_CXX=$prev$p
22491 else
22492 postdeps_CXX="${postdeps_CXX} $prev$p"
22493 fi
22494 fi
22495 prev=
22496 ;;
22497
22498 -*)
22499 # Ignore all other options starting with a dash
22500 # (e.g., "-mIPOPT_obj_output_file_name=<tmp_obj>" used by Intel compiler)
22501 ;;
22502
22503 *.lto.$objext) ;; # Ignore GCC LTO objects
22504 *.$objext)
22505 # This assumes that the test object file only shows up
22506 # once in the compiler output.
22507 if test "$p" = "conftest.$objext"; then
22508 pre_test_object_deps_done=yes
22509 continue
22510 fi
22511
22512 if test no = "$pre_test_object_deps_done"; then
22513 if test -z "$predep_objects_CXX"; then
22514 predep_objects_CXX=$p
22515 else
22516 predep_objects_CXX="$predep_objects_CXX $p"
22517 fi
22518 else
22519 if test -z "$postdep_objects_CXX"; then
22520 postdep_objects_CXX=$p
22521 else
22522 postdep_objects_CXX="$postdep_objects_CXX $p"
22523 fi
22524 fi
22525 ;;
22526
22527 *) ;; # Ignore the rest.
22528
22529 esac
22530 done
22531
22532 # Clean up.
22533 rm -f a.out a.exe
22534 else
22535 echo "libtool.m4: error: problem compiling CXX test program"
22536 fi
22537
22538 $RM -f confest.$objext
22539 CFLAGS=$_lt_libdeps_save_CFLAGS
22540
22541 # PORTME: override above test on systems where it is broken
22542 case $host_os in
22543 interix[3-9]*)
22544 # Interix 3.5 installs completely hosed .la files for C++, so rather than
22545 # hack all around it, let's just trust "g++" to DTRT.
22546 predep_objects_CXX=
22547 postdep_objects_CXX=
22548 postdeps_CXX=
22549 ;;
22550 esac
22551
22552
22553 case " $postdeps_CXX " in
22554 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
22555 esac
22556 compiler_lib_search_dirs_CXX=
22557 if test -n "${compiler_lib_search_path_CXX}"; then
22558 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
22559 fi
22560
22561
22562
22563
22564
22565
22566
22567
22568
22569
22570
22571
22572
22573
22574
22575
22576
22577
22578
22579
22580
22581
22582
22583
22584
22585
22586
22587
22588
22589
22590
22591 lt_prog_compiler_wl_CXX=
22592 lt_prog_compiler_pic_CXX=
22593 lt_prog_compiler_static_CXX=
22594
22595
22596 # C++ specific cases for pic, static, wl, etc.
22597 if test yes = "$GXX"; then
22598 lt_prog_compiler_wl_CXX='-Wl,'
22599 lt_prog_compiler_static_CXX='-static'
22600
22601 case $host_os in
22602 aix*)
22603 # All AIX code is PIC.
22604 if test ia64 = "$host_cpu"; then
22605 # AIX 5 now supports IA64 processor
22606 lt_prog_compiler_static_CXX='-Bstatic'
22607 fi
22608 lt_prog_compiler_pic_CXX='-fPIC'
22609 ;;
22610
22611 amigaos*)
22612 case $host_cpu in
22613 powerpc)
22614 # see comment about AmigaOS4 .so support
22615 lt_prog_compiler_pic_CXX='-fPIC'
22616 ;;
22617 m68k)
22618 # FIXME: we need at least 68020 code to build shared libraries, but
22619 # adding the '-m68020' flag to GCC prevents building anything better,
22620 # like '-m68040'.
22621 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
22622 ;;
22623 esac
22624 ;;
22625
22626 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
22627 # PIC is the default for these OSes.
22628 ;;
22629 mingw* | cygwin* | os2* | pw32* | cegcc*)
22630 # This hack is so that the source file can tell whether it is being
22631 # built for inclusion in a dll (and should export symbols for example).
22632 # Although the cygwin gcc ignores -fPIC, still need this for old-style
22633 # (--disable-auto-import) libraries
22634 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
22635 case $host_os in
22636 os2*)
22637 lt_prog_compiler_static_CXX='$wl-static'
22638 ;;
22639 esac
22640 ;;
22641 darwin* | rhapsody*)
22642 # PIC is the default on this platform
22643 # Common symbols not allowed in MH_DYLIB files
22644 lt_prog_compiler_pic_CXX='-fno-common'
22645 ;;
22646 *djgpp*)
22647 # DJGPP does not support shared libraries at all
22648 lt_prog_compiler_pic_CXX=
22649 ;;
22650 haiku*)
22651 # PIC is the default for Haiku.
22652 # The "-static" flag exists, but is broken.
22653 lt_prog_compiler_static_CXX=
22654 ;;
22655 interix[3-9]*)
22656 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
22657 # Instead, we relocate shared libraries at runtime.
22658 ;;
22659 sysv4*MP*)
22660 if test -d /usr/nec; then
22661 lt_prog_compiler_pic_CXX=-Kconform_pic
22662 fi
22663 ;;
22664 hpux*)
22665 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
22666 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
22667 # sets the default TLS model and affects inlining.
22668 case $host_cpu in
22669 hppa*64*)
22670 ;;
22671 *)
22672 lt_prog_compiler_pic_CXX='-fPIC'
22673 ;;
22674 esac
22675 ;;
22676 *qnx* | *nto*)
22677 # QNX uses GNU C++, but need to define -shared option too, otherwise
22678 # it will coredump.
22679 lt_prog_compiler_pic_CXX='-fPIC -shared'
22680 ;;
22681 *)
22682 lt_prog_compiler_pic_CXX='-fPIC'
22683 ;;
22684 esac
22685 else
22686 case $host_os in
22687 aix[4-9]*)
22688 # All AIX code is PIC.
22689 if test ia64 = "$host_cpu"; then
22690 # AIX 5 now supports IA64 processor
22691 lt_prog_compiler_static_CXX='-Bstatic'
22692 else
22693 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
22694 fi
22695 ;;
22696 chorus*)
22697 case $cc_basename in
22698 cxch68*)
22699 # Green Hills C++ Compiler
22700 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
22701 ;;
22702 esac
22703 ;;
22704 mingw* | cygwin* | os2* | pw32* | cegcc*)
22705 # This hack is so that the source file can tell whether it is being
22706 # built for inclusion in a dll (and should export symbols for example).
22707 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
22708 ;;
22709 dgux*)
22710 case $cc_basename in
22711 ec++*)
22712 lt_prog_compiler_pic_CXX='-KPIC'
22713 ;;
22714 ghcx*)
22715 # Green Hills C++ Compiler
22716 lt_prog_compiler_pic_CXX='-pic'
22717 ;;
22718 *)
22719 ;;
22720 esac
22721 ;;
22722 freebsd* | dragonfly*)
22723 # FreeBSD uses GNU C++
22724 ;;
22725 hpux9* | hpux10* | hpux11*)
22726 case $cc_basename in
22727 CC*)
22728 lt_prog_compiler_wl_CXX='-Wl,'
22729 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
22730 if test ia64 != "$host_cpu"; then
22731 lt_prog_compiler_pic_CXX='+Z'
22732 fi
22733 ;;
22734 aCC*)
22735 lt_prog_compiler_wl_CXX='-Wl,'
22736 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
22737 case $host_cpu in
22738 hppa*64*|ia64*)
22739 # +Z the default
22740 ;;
22741 *)
22742 lt_prog_compiler_pic_CXX='+Z'
22743 ;;
22744 esac
22745 ;;
22746 *)
22747 ;;
22748 esac
22749 ;;
22750 interix*)
22751 # This is c89, which is MS Visual C++ (no shared libs)
22752 # Anyone wants to do a port?
22753 ;;
22754 irix5* | irix6* | nonstopux*)
22755 case $cc_basename in
22756 CC*)
22757 lt_prog_compiler_wl_CXX='-Wl,'
22758 lt_prog_compiler_static_CXX='-non_shared'
22759 # CC pic flag -KPIC is the default.
22760 ;;
22761 *)
22762 ;;
22763 esac
22764 ;;
22765 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
22766 case $cc_basename in
22767 KCC*)
22768 # KAI C++ Compiler
22769 lt_prog_compiler_wl_CXX='--backend -Wl,'
22770 lt_prog_compiler_pic_CXX='-fPIC'
22771 ;;
22772 ecpc* )
22773 # old Intel C++ for x86_64, which still supported -KPIC.
22774 lt_prog_compiler_wl_CXX='-Wl,'
22775 lt_prog_compiler_pic_CXX='-KPIC'
22776 lt_prog_compiler_static_CXX='-static'
22777 ;;
22778 icpc* )
22779 # Intel C++, used to be incompatible with GCC.
22780 # ICC 10 doesn't accept -KPIC any more.
22781 lt_prog_compiler_wl_CXX='-Wl,'
22782 lt_prog_compiler_pic_CXX='-fPIC'
22783 lt_prog_compiler_static_CXX='-static'
22784 ;;
22785 pgCC* | pgcpp* | pgc++* | nvc++*)
22786 # NVIDIA HPC C++ compiler
22787 lt_prog_compiler_wl_CXX='-Wl,'
22788 lt_prog_compiler_pic_CXX='-fpic'
22789 lt_prog_compiler_static_CXX='-Bstatic'
22790 ;;
22791 cxx*)
22792 # Compaq C++
22793 # Make sure the PIC flag is empty. It appears that all Alpha
22794 # Linux and Compaq Tru64 Unix objects are PIC.
22795 lt_prog_compiler_pic_CXX=
22796 lt_prog_compiler_static_CXX='-non_shared'
22797 ;;
22798 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
22799 # IBM XL 8.0, 9.0 on PPC and BlueGene
22800 lt_prog_compiler_wl_CXX='-Wl,'
22801 lt_prog_compiler_pic_CXX='-qpic'
22802 lt_prog_compiler_static_CXX='-qstaticlink'
22803 ;;
22804 *nc++*)
22805 # NEC Vector Engine C++ Compiler
22806 lt_prog_compiler_wl_CXX='-Wl,'
22807 lt_prog_compiler_pic_CXX='-fPIC'
22808 lt_prog_compiler_static_CXX='-static'
22809 ;;
22810 *)
22811 case `$CC -V 2>&1` in
22812 *Sun\ C*)
22813 # Sun C++ 5.9
22814 lt_prog_compiler_pic_CXX='-KPIC'
22815 lt_prog_compiler_static_CXX='-Bstatic'
22816 lt_prog_compiler_wl_CXX='-Qoption ld '
22817 ;;
22818 *Cray\ C*)
22819 # Cray C++ compiler
22820 lt_prog_compiler_pic_CXX='-hpic'
22821 lt_prog_compiler_static_CXX='-static'
22822 lt_prog_compiler_wl_CXX='-Wl,'
22823 ;;
22824 *pgCC* | *pgcpp* | *pgc++* | *nvc++*)
22825 # NVIDIA HPC C++ compiler
22826 lt_prog_compiler_pic_CXX='-fpic'
22827 lt_prog_compiler_static_CXX='-Bstatic'
22828 lt_prog_compiler_wl_CXX='-Wl,'
22829 ;;
22830 *Fujitsu*)
22831 # Fujitsu C/C++ Compiler Driver
22832 lt_prog_compiler_pic_CXX='-Kpic'
22833 lt_prog_compiler_static_CXX='-Bstatic'
22834 lt_prog_compiler_wl_CXX='-Wl,'
22835 ;;
22836 esac
22837 ;;
22838 esac
22839 ;;
22840 lynxos*)
22841 ;;
22842 m88k*)
22843 ;;
22844 mvs*)
22845 case $cc_basename in
22846 cxx*)
22847 lt_prog_compiler_pic_CXX='-W c,exportall'
22848 ;;
22849 *)
22850 ;;
22851 esac
22852 ;;
22853 netbsd*)
22854 ;;
22855 *qnx* | *nto*)
22856 # QNX uses GNU C++, but need to define -shared option too, otherwise
22857 # it will coredump.
22858 lt_prog_compiler_pic_CXX='-fPIC -shared'
22859 ;;
22860 osf3* | osf4* | osf5*)
22861 case $cc_basename in
22862 KCC*)
22863 lt_prog_compiler_wl_CXX='--backend -Wl,'
22864 ;;
22865 RCC*)
22866 # Rational C++ 2.4.1
22867 lt_prog_compiler_pic_CXX='-pic'
22868 ;;
22869 cxx*)
22870 # Digital/Compaq C++
22871 lt_prog_compiler_wl_CXX='-Wl,'
22872 # Make sure the PIC flag is empty. It appears that all Alpha
22873 # Linux and Compaq Tru64 Unix objects are PIC.
22874 lt_prog_compiler_pic_CXX=
22875 lt_prog_compiler_static_CXX='-non_shared'
22876 ;;
22877 *)
22878 ;;
22879 esac
22880 ;;
22881 psos*)
22882 ;;
22883 solaris*)
22884 case $cc_basename in
22885 CC* | sunCC*)
22886 # Sun C++ 4.2, 5.x and Centerline C++
22887 lt_prog_compiler_pic_CXX='-KPIC'
22888 lt_prog_compiler_static_CXX='-Bstatic'
22889 lt_prog_compiler_wl_CXX='-Qoption ld '
22890 ;;
22891 gcx*)
22892 # Green Hills C++ Compiler
22893 lt_prog_compiler_pic_CXX='-PIC'
22894 ;;
22895 *)
22896 ;;
22897 esac
22898 ;;
22899 sunos4*)
22900 case $cc_basename in
22901 CC*)
22902 # Sun C++ 4.x
22903 lt_prog_compiler_pic_CXX='-pic'
22904 lt_prog_compiler_static_CXX='-Bstatic'
22905 ;;
22906 lcc*)
22907 # Lucid
22908 lt_prog_compiler_pic_CXX='-pic'
22909 ;;
22910 *)
22911 ;;
22912 esac
22913 ;;
22914 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
22915 case $cc_basename in
22916 CC*)
22917 lt_prog_compiler_wl_CXX='-Wl,'
22918 lt_prog_compiler_pic_CXX='-KPIC'
22919 lt_prog_compiler_static_CXX='-Bstatic'
22920 ;;
22921 esac
22922 ;;
22923 tandem*)
22924 case $cc_basename in
22925 NCC*)
22926 # NonStop-UX NCC 3.20
22927 lt_prog_compiler_pic_CXX='-KPIC'
22928 ;;
22929 *)
22930 ;;
22931 esac
22932 ;;
22933 vxworks*)
22934 ;;
22935 *)
22936 lt_prog_compiler_can_build_shared_CXX=no
22937 ;;
22938 esac
22939 fi
22940
22941 case $host_os in
22942 # For platforms that do not support PIC, -DPIC is meaningless:
22943 *djgpp*)
22944 lt_prog_compiler_pic_CXX=
22945 ;;
22946 *)
22947 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
22948 ;;
22949 esac
22950
22951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
22952 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
22953 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
22954 $as_echo_n "(cached) " >&6
22955 else
22956 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
22957 fi
22958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
22959 case "$lt_cv_prog_compiler_pic_CXX" in #(
22960 yes|ok|yes[\ ,]*) :
22961 $as_echo "${as__grn}$lt_cv_prog_compiler_pic_CXX${as__std}" >&6 ;; #(
22962 no|failed|unsupported|no[\ ,]*) :
22963 $as_echo "${as__red}$lt_cv_prog_compiler_pic_CXX${as__std}" >&6 ;; #(
22964 *) :
22965 $as_echo "${as__blu}$lt_cv_prog_compiler_pic_CXX${as__std}" >&6 ;;
22966 esac; }
22967 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
22968
22969 #
22970 # Check to make sure the PIC flag actually works.
22971 #
22972 if test -n "$lt_prog_compiler_pic_CXX"; then
22973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
22974 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
22975 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
22976 $as_echo_n "(cached) " >&6
22977 else
22978 lt_cv_prog_compiler_pic_works_CXX=no
22979 ac_outfile=conftest.$ac_objext
22980 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22981 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
22982 # Insert the option either (1) after the last *FLAGS variable, or
22983 # (2) before a word containing "conftest.", or (3) at the end.
22984 # Note that $ac_compile itself does not contain backslashes and begins
22985 # with a dollar sign (not a hyphen), so the echo should work correctly.
22986 # The option is referenced via a variable to avoid confusing sed.
22987 lt_compile=`echo "$ac_compile" | $SED \
22988 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22989 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22990 -e 's:$: $lt_compiler_flag:'`
22991 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22992 (eval "$lt_compile" 2>conftest.err)
22993 ac_status=$?
22994 cat conftest.err >&5
22995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22996 if (exit $ac_status) && test -s "$ac_outfile"; then
22997 # The compiler can only warn and ignore the option if not recognized
22998 # So say no if there are warnings other than the usual output.
22999 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
23000 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23001 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23002 lt_cv_prog_compiler_pic_works_CXX=yes
23003 fi
23004 fi
23005 $RM conftest*
23006
23007 fi
23008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
23009 case "$lt_cv_prog_compiler_pic_works_CXX" in #(
23010 yes|ok|yes[\ ,]*) :
23011 $as_echo "${as__grn}$lt_cv_prog_compiler_pic_works_CXX${as__std}" >&6 ;; #(
23012 no|failed|unsupported|no[\ ,]*) :
23013 $as_echo "${as__red}$lt_cv_prog_compiler_pic_works_CXX${as__std}" >&6 ;; #(
23014 *) :
23015 $as_echo "${as__blu}$lt_cv_prog_compiler_pic_works_CXX${as__std}" >&6 ;;
23016 esac; }
23017
23018 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
23019 case $lt_prog_compiler_pic_CXX in
23020 "" | " "*) ;;
23021 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
23022 esac
23023 else
23024 lt_prog_compiler_pic_CXX=
23025 lt_prog_compiler_can_build_shared_CXX=no
23026 fi
23027
23028 fi
23029
23030
23031
23032
23033
23034 #
23035 # Check to make sure the static flag actually works.
23036 #
23037 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
23038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23039 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
23040 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
23041 $as_echo_n "(cached) " >&6
23042 else
23043 lt_cv_prog_compiler_static_works_CXX=no
23044 save_LDFLAGS=$LDFLAGS
23045 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23046 echo "$lt_simple_link_test_code" > conftest.$ac_ext
23047 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23048 # The linker can only warn and ignore the option if not recognized
23049 # So say no if there are warnings
23050 if test -s conftest.err; then
23051 # Append any errors to the config.log.
23052 cat conftest.err 1>&5
23053 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
23054 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23055 if diff conftest.exp conftest.er2 >/dev/null; then
23056 lt_cv_prog_compiler_static_works_CXX=yes
23057 fi
23058 else
23059 lt_cv_prog_compiler_static_works_CXX=yes
23060 fi
23061 fi
23062 $RM -r conftest*
23063 LDFLAGS=$save_LDFLAGS
23064
23065 fi
23066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
23067 case "$lt_cv_prog_compiler_static_works_CXX" in #(
23068 yes|ok|yes[\ ,]*) :
23069 $as_echo "${as__grn}$lt_cv_prog_compiler_static_works_CXX${as__std}" >&6 ;; #(
23070 no|failed|unsupported|no[\ ,]*) :
23071 $as_echo "${as__red}$lt_cv_prog_compiler_static_works_CXX${as__std}" >&6 ;; #(
23072 *) :
23073 $as_echo "${as__blu}$lt_cv_prog_compiler_static_works_CXX${as__std}" >&6 ;;
23074 esac; }
23075
23076 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
23077 :
23078 else
23079 lt_prog_compiler_static_CXX=
23080 fi
23081
23082
23083
23084
23085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
23086 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
23087 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
23088 $as_echo_n "(cached) " >&6
23089 else
23090 lt_cv_prog_compiler_c_o_CXX=no
23091 $RM -r conftest 2>/dev/null
23092 mkdir conftest
23093 cd conftest
23094 mkdir out
23095 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23096
23097 lt_compiler_flag="-o out/conftest2.$ac_objext"
23098 # Insert the option either (1) after the last *FLAGS variable, or
23099 # (2) before a word containing "conftest.", or (3) at the end.
23100 # Note that $ac_compile itself does not contain backslashes and begins
23101 # with a dollar sign (not a hyphen), so the echo should work correctly.
23102 lt_compile=`echo "$ac_compile" | $SED \
23103 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23104 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23105 -e 's:$: $lt_compiler_flag:'`
23106 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
23107 (eval "$lt_compile" 2>out/conftest.err)
23108 ac_status=$?
23109 cat out/conftest.err >&5
23110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23111 if (exit $ac_status) && test -s out/conftest2.$ac_objext
23112 then
23113 # The compiler can only warn and ignore the option if not recognized
23114 # So say no if there are warnings
23115 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
23116 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23117 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
23118 lt_cv_prog_compiler_c_o_CXX=yes
23119 fi
23120 fi
23121 chmod u+w . 2>&5
23122 $RM conftest*
23123 # SGI C++ compiler will create directory out/ii_files/ for
23124 # template instantiation
23125 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
23126 $RM out/* && rmdir out
23127 cd ..
23128 $RM -r conftest
23129 $RM conftest*
23130
23131 fi
23132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
23133 case "$lt_cv_prog_compiler_c_o_CXX" in #(
23134 yes|ok|yes[\ ,]*) :
23135 $as_echo "${as__grn}$lt_cv_prog_compiler_c_o_CXX${as__std}" >&6 ;; #(
23136 no|failed|unsupported|no[\ ,]*) :
23137 $as_echo "${as__red}$lt_cv_prog_compiler_c_o_CXX${as__std}" >&6 ;; #(
23138 *) :
23139 $as_echo "${as__blu}$lt_cv_prog_compiler_c_o_CXX${as__std}" >&6 ;;
23140 esac; }
23141
23142
23143
23144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
23145 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
23146 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
23147 $as_echo_n "(cached) " >&6
23148 else
23149 lt_cv_prog_compiler_c_o_CXX=no
23150 $RM -r conftest 2>/dev/null
23151 mkdir conftest
23152 cd conftest
23153 mkdir out
23154 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23155
23156 lt_compiler_flag="-o out/conftest2.$ac_objext"
23157 # Insert the option either (1) after the last *FLAGS variable, or
23158 # (2) before a word containing "conftest.", or (3) at the end.
23159 # Note that $ac_compile itself does not contain backslashes and begins
23160 # with a dollar sign (not a hyphen), so the echo should work correctly.
23161 lt_compile=`echo "$ac_compile" | $SED \
23162 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23163 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23164 -e 's:$: $lt_compiler_flag:'`
23165 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
23166 (eval "$lt_compile" 2>out/conftest.err)
23167 ac_status=$?
23168 cat out/conftest.err >&5
23169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23170 if (exit $ac_status) && test -s out/conftest2.$ac_objext
23171 then
23172 # The compiler can only warn and ignore the option if not recognized
23173 # So say no if there are warnings
23174 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
23175 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23176 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
23177 lt_cv_prog_compiler_c_o_CXX=yes
23178 fi
23179 fi
23180 chmod u+w . 2>&5
23181 $RM conftest*
23182 # SGI C++ compiler will create directory out/ii_files/ for
23183 # template instantiation
23184 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
23185 $RM out/* && rmdir out
23186 cd ..
23187 $RM -r conftest
23188 $RM conftest*
23189
23190 fi
23191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
23192 case "$lt_cv_prog_compiler_c_o_CXX" in #(
23193 yes|ok|yes[\ ,]*) :
23194 $as_echo "${as__grn}$lt_cv_prog_compiler_c_o_CXX${as__std}" >&6 ;; #(
23195 no|failed|unsupported|no[\ ,]*) :
23196 $as_echo "${as__red}$lt_cv_prog_compiler_c_o_CXX${as__std}" >&6 ;; #(
23197 *) :
23198 $as_echo "${as__blu}$lt_cv_prog_compiler_c_o_CXX${as__std}" >&6 ;;
23199 esac; }
23200
23201
23202
23203
23204 hard_links=nottested
23205 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
23206 # do not overwrite the value of need_locks provided by the user
23207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
23208 $as_echo_n "checking if we can lock with hard links... " >&6; }
23209 hard_links=yes
23210 $RM conftest*
23211 ln conftest.a conftest.b 2>/dev/null && hard_links=no
23212 touch conftest.a
23213 ln conftest.a conftest.b 2>&5 || hard_links=no
23214 ln conftest.a conftest.b 2>/dev/null && hard_links=no
23215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
23216 case "$hard_links" in #(
23217 yes|ok|yes[\ ,]*) :
23218 $as_echo "${as__grn}$hard_links${as__std}" >&6 ;; #(
23219 no|failed|unsupported|no[\ ,]*) :
23220 $as_echo "${as__red}$hard_links${as__std}" >&6 ;; #(
23221 *) :
23222 $as_echo "${as__blu}$hard_links${as__std}" >&6 ;;
23223 esac; }
23224 if test no = "$hard_links"; then
23225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
23226 $as_echo "$as_me: ${as__yel}WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe${as__std}" >&2;}
23227 need_locks=warn
23228 fi
23229 else
23230 need_locks=no
23231 fi
23232
23233
23234
23235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
23236 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
23237
23238 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23239 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
23240 case $host_os in
23241 aix[4-9]*)
23242 # If we're using GNU nm, then we don't want the "-C" option.
23243 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
23244 # Without the "-l" option, or with the "-B" option, AIX nm treats
23245 # weak defined symbols like other global defined symbols, whereas
23246 # GNU nm marks them as "W".
23247 # While the 'weak' keyword is ignored in the Export File, we need
23248 # it in the Import File for the 'aix-soname' feature, so we have
23249 # to replace the "-B" option with "-P" for AIX nm.
23250 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
23251 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
23252 else
23253 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
23254 fi
23255 ;;
23256 pw32*)
23257 export_symbols_cmds_CXX=$ltdll_cmds
23258 ;;
23259 cygwin* | mingw* | cegcc*)
23260 case $cc_basename in
23261 cl*)
23262 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
23263 ;;
23264 *)
23265 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
23266 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
23267 ;;
23268 esac
23269 ;;
23270 *)
23271 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23272 ;;
23273 esac
23274
23275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
23276 case "$ld_shlibs_CXX" in #(
23277 yes|ok|yes[\ ,]*) :
23278 $as_echo "${as__grn}$ld_shlibs_CXX${as__std}" >&6 ;; #(
23279 no|failed|unsupported|no[\ ,]*) :
23280 $as_echo "${as__red}$ld_shlibs_CXX${as__std}" >&6 ;; #(
23281 *) :
23282 $as_echo "${as__blu}$ld_shlibs_CXX${as__std}" >&6 ;;
23283 esac; }
23284 test no = "$ld_shlibs_CXX" && can_build_shared=no
23285
23286 with_gnu_ld_CXX=$with_gnu_ld
23287
23288
23289
23290
23291
23292
23293 #
23294 # Do we need to explicitly link libc?
23295 #
23296 case "x$archive_cmds_need_lc_CXX" in
23297 x|xyes)
23298 # Assume -lc should be added
23299 archive_cmds_need_lc_CXX=yes
23300
23301 if test yes,yes = "$GCC,$enable_shared"; then
23302 case $archive_cmds_CXX in
23303 *'~'*)
23304 # FIXME: we may have to deal with multi-command sequences.
23305 ;;
23306 '$CC '*)
23307 # Test whether the compiler implicitly links with -lc since on some
23308 # systems, -lgcc has to come before -lc. If gcc already passes -lc
23309 # to ld, don't add -lc before -lgcc.
23310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
23311 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
23312 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
23313 $as_echo_n "(cached) " >&6
23314 else
23315 $RM conftest*
23316 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23317
23318 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
23319 (eval $ac_compile) 2>&5
23320 ac_status=$?
23321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23322 test $ac_status = 0; } 2>conftest.err; then
23323 soname=conftest
23324 lib=conftest
23325 libobjs=conftest.$ac_objext
23326 deplibs=
23327 wl=$lt_prog_compiler_wl_CXX
23328 pic_flag=$lt_prog_compiler_pic_CXX
23329 compiler_flags=-v
23330 linker_flags=-v
23331 verstring=
23332 output_objdir=.
23333 libname=conftest
23334 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
23335 allow_undefined_flag_CXX=
23336 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
23337 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
23338 ac_status=$?
23339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23340 test $ac_status = 0; }
23341 then
23342 lt_cv_archive_cmds_need_lc_CXX=no
23343 else
23344 lt_cv_archive_cmds_need_lc_CXX=yes
23345 fi
23346 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
23347 else
23348 cat conftest.err 1>&5
23349 fi
23350 $RM conftest*
23351
23352 fi
23353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
23354 case "$lt_cv_archive_cmds_need_lc_CXX" in #(
23355 yes|ok|yes[\ ,]*) :
23356 $as_echo "${as__grn}$lt_cv_archive_cmds_need_lc_CXX${as__std}" >&6 ;; #(
23357 no|failed|unsupported|no[\ ,]*) :
23358 $as_echo "${as__red}$lt_cv_archive_cmds_need_lc_CXX${as__std}" >&6 ;; #(
23359 *) :
23360 $as_echo "${as__blu}$lt_cv_archive_cmds_need_lc_CXX${as__std}" >&6 ;;
23361 esac; }
23362 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
23363 ;;
23364 esac
23365 fi
23366 ;;
23367 esac
23368
23369
23370
23371
23372
23373
23374
23375
23376
23377
23378
23379
23380
23381
23382
23383
23384
23385
23386
23387
23388
23389
23390
23391
23392
23393
23394
23395
23396
23397
23398
23399
23400
23401
23402
23403
23404
23405
23406
23407
23408
23409
23410
23411
23412
23413
23414
23415
23416
23417
23418
23419
23420
23421
23422
23423
23424
23425
23426
23427
23428
23429
23430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
23431 $as_echo_n "checking dynamic linker characteristics... " >&6; }
23432
23433 library_names_spec=
23434 libname_spec='lib$name'
23435 soname_spec=
23436 shrext_cmds=.so
23437 postinstall_cmds=
23438 postuninstall_cmds=
23439 finish_cmds=
23440 finish_eval=
23441 shlibpath_var=
23442 shlibpath_overrides_runpath=unknown
23443 version_type=none
23444 dynamic_linker="$host_os ld.so"
23445 sys_lib_dlsearch_path_spec="/lib /usr/lib"
23446 need_lib_prefix=unknown
23447 hardcode_into_libs=no
23448
23449 # when you set need_version to no, make sure it does not cause -set_version
23450 # flags to be left without arguments
23451 need_version=unknown
23452
23453
23454
23455 case $host_os in
23456 aix3*)
23457 version_type=linux # correct to gnu/linux during the next big refactor
23458 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
23459 shlibpath_var=LIBPATH
23460
23461 # AIX 3 has no versioning support, so we append a major version to the name.
23462 soname_spec='$libname$release$shared_ext$major'
23463 ;;
23464
23465 aix[4-9]*)
23466 version_type=linux # correct to gnu/linux during the next big refactor
23467 need_lib_prefix=no
23468 need_version=no
23469 hardcode_into_libs=yes
23470 if test ia64 = "$host_cpu"; then
23471 # AIX 5 supports IA64
23472 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
23473 shlibpath_var=LD_LIBRARY_PATH
23474 else
23475 # With GCC up to 2.95.x, collect2 would create an import file
23476 # for dependence libraries. The import file would start with
23477 # the line '#! .'. This would cause the generated library to
23478 # depend on '.', always an invalid library. This was fixed in
23479 # development snapshots of GCC prior to 3.0.
23480 case $host_os in
23481 aix4 | aix4.[01] | aix4.[01].*)
23482 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
23483 echo ' yes '
23484 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
23485 :
23486 else
23487 can_build_shared=no
23488 fi
23489 ;;
23490 esac
23491 # Using Import Files as archive members, it is possible to support
23492 # filename-based versioning of shared library archives on AIX. While
23493 # this would work for both with and without runtime linking, it will
23494 # prevent static linking of such archives. So we do filename-based
23495 # shared library versioning with .so extension only, which is used
23496 # when both runtime linking and shared linking is enabled.
23497 # Unfortunately, runtime linking may impact performance, so we do
23498 # not want this to be the default eventually. Also, we use the
23499 # versioned .so libs for executables only if there is the -brtl
23500 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
23501 # To allow for filename-based versioning support, we need to create
23502 # libNAME.so.V as an archive file, containing:
23503 # *) an Import File, referring to the versioned filename of the
23504 # archive as well as the shared archive member, telling the
23505 # bitwidth (32 or 64) of that shared object, and providing the
23506 # list of exported symbols of that shared object, eventually
23507 # decorated with the 'weak' keyword
23508 # *) the shared object with the F_LOADONLY flag set, to really avoid
23509 # it being seen by the linker.
23510 # At run time we better use the real file rather than another symlink,
23511 # but for link time we create the symlink libNAME.so -> libNAME.so.V
23512
23513 case $with_aix_soname,$aix_use_runtimelinking in
23514 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
23515 # soname into executable. Probably we can add versioning support to
23516 # collect2, so additional links can be useful in future.
23517 aix,yes) # traditional libtool
23518 dynamic_linker='AIX unversionable lib.so'
23519 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23520 # instead of lib<name>.a to let people know that these are not
23521 # typical AIX shared libraries.
23522 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23523 ;;
23524 aix,no) # traditional AIX only
23525 dynamic_linker='AIX lib.a(lib.so.V)'
23526 # We preserve .a as extension for shared libraries through AIX4.2
23527 # and later when we are not doing run time linking.
23528 library_names_spec='$libname$release.a $libname.a'
23529 soname_spec='$libname$release$shared_ext$major'
23530 ;;
23531 svr4,*) # full svr4 only
23532 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
23533 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
23534 # We do not specify a path in Import Files, so LIBPATH fires.
23535 shlibpath_overrides_runpath=yes
23536 ;;
23537 *,yes) # both, prefer svr4
23538 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
23539 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
23540 # unpreferred sharedlib libNAME.a needs extra handling
23541 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
23542 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
23543 # We do not specify a path in Import Files, so LIBPATH fires.
23544 shlibpath_overrides_runpath=yes
23545 ;;
23546 *,no) # both, prefer aix
23547 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
23548 library_names_spec='$libname$release.a $libname.a'
23549 soname_spec='$libname$release$shared_ext$major'
23550 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
23551 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
23552 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
23553 ;;
23554 esac
23555 shlibpath_var=LIBPATH
23556 fi
23557 ;;
23558
23559 amigaos*)
23560 case $host_cpu in
23561 powerpc)
23562 # Since July 2007 AmigaOS4 officially supports .so libraries.
23563 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
23564 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23565 ;;
23566 m68k)
23567 library_names_spec='$libname.ixlibrary $libname.a'
23568 # Create ${libname}_ixlibrary.a entries in /sys/libs.
23569 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
23570 ;;
23571 esac
23572 ;;
23573
23574 beos*)
23575 library_names_spec='$libname$shared_ext'
23576 dynamic_linker="$host_os ld.so"
23577 shlibpath_var=LIBRARY_PATH
23578 ;;
23579
23580 bsdi[45]*)
23581 version_type=linux # correct to gnu/linux during the next big refactor
23582 need_version=no
23583 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23584 soname_spec='$libname$release$shared_ext$major'
23585 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23586 shlibpath_var=LD_LIBRARY_PATH
23587 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23588 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23589 # the default ld.so.conf also contains /usr/contrib/lib and
23590 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23591 # libtool to hard-code these into programs
23592 ;;
23593
23594 cygwin* | mingw* | pw32* | cegcc*)
23595 version_type=windows
23596 shrext_cmds=.dll
23597 need_version=no
23598 need_lib_prefix=no
23599
23600 case $GCC,$cc_basename in
23601 yes,*)
23602 # gcc
23603 library_names_spec='$libname.dll.a'
23604 # DLL is installed to $(libdir)/../bin by postinstall_cmds
23605 postinstall_cmds='base_file=`basename \$file`~
23606 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
23607 dldir=$destdir/`dirname \$dlpath`~
23608 test -d \$dldir || mkdir -p \$dldir~
23609 $install_prog $dir/$dlname \$dldir/$dlname~
23610 chmod a+x \$dldir/$dlname~
23611 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
23612 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
23613 fi'
23614 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23615 dlpath=$dir/\$dldll~
23616 $RM \$dlpath'
23617 shlibpath_overrides_runpath=yes
23618
23619 case $host_os in
23620 cygwin*)
23621 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23622 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
23623
23624 ;;
23625 mingw* | cegcc*)
23626 # MinGW DLLs use traditional 'lib' prefix
23627 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
23628 ;;
23629 pw32*)
23630 # pw32 DLLs use 'pw' prefix rather than 'lib'
23631 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
23632 ;;
23633 esac
23634 dynamic_linker='Win32 ld.exe'
23635 ;;
23636
23637 *,cl*)
23638 # Native MSVC
23639 libname_spec='$name'
23640 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
23641 library_names_spec='$libname.dll.lib'
23642
23643 case $build_os in
23644 mingw*)
23645 sys_lib_search_path_spec=
23646 lt_save_ifs=$IFS
23647 IFS=';'
23648 for lt_path in $LIB
23649 do
23650 IFS=$lt_save_ifs
23651 # Let DOS variable expansion print the short 8.3 style file name.
23652 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
23653 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
23654 done
23655 IFS=$lt_save_ifs
23656 # Convert to MSYS style.
23657 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
23658 ;;
23659 cygwin*)
23660 # Convert to unix form, then to dos form, then back to unix form
23661 # but this time dos style (no spaces!) so that the unix form looks
23662 # like /cygdrive/c/PROGRA~1:/cygdr...
23663 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
23664 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
23665 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23666 ;;
23667 *)
23668 sys_lib_search_path_spec=$LIB
23669 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
23670 # It is most probably a Windows format PATH.
23671 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23672 else
23673 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23674 fi
23675 # FIXME: find the short name or the path components, as spaces are
23676 # common. (e.g. "Program Files" -> "PROGRA~1")
23677 ;;
23678 esac
23679
23680 # DLL is installed to $(libdir)/../bin by postinstall_cmds
23681 postinstall_cmds='base_file=`basename \$file`~
23682 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
23683 dldir=$destdir/`dirname \$dlpath`~
23684 test -d \$dldir || mkdir -p \$dldir~
23685 $install_prog $dir/$dlname \$dldir/$dlname'
23686 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23687 dlpath=$dir/\$dldll~
23688 $RM \$dlpath'
23689 shlibpath_overrides_runpath=yes
23690 dynamic_linker='Win32 link.exe'
23691 ;;
23692
23693 *)
23694 # Assume MSVC wrapper
23695 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
23696 dynamic_linker='Win32 ld.exe'
23697 ;;
23698 esac
23699 # FIXME: first we should search . and the directory the executable is in
23700 shlibpath_var=PATH
23701 ;;
23702
23703 darwin* | rhapsody*)
23704 dynamic_linker="$host_os dyld"
23705 version_type=darwin
23706 need_lib_prefix=no
23707 need_version=no
23708 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
23709 soname_spec='$libname$release$major$shared_ext'
23710 shlibpath_overrides_runpath=yes
23711 shlibpath_var=DYLD_LIBRARY_PATH
23712 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
23713
23714 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23715 ;;
23716
23717 dgux*)
23718 version_type=linux # correct to gnu/linux during the next big refactor
23719 need_lib_prefix=no
23720 need_version=no
23721 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23722 soname_spec='$libname$release$shared_ext$major'
23723 shlibpath_var=LD_LIBRARY_PATH
23724 ;;
23725
23726 freebsd* | dragonfly*)
23727 # DragonFly does not have aout. When/if they implement a new
23728 # versioning mechanism, adjust this.
23729 if test -x /usr/bin/objformat; then
23730 objformat=`/usr/bin/objformat`
23731 else
23732 case $host_os in
23733 freebsd[23].*) objformat=aout ;;
23734 *) objformat=elf ;;
23735 esac
23736 fi
23737 version_type=freebsd-$objformat
23738 case $version_type in
23739 freebsd-elf*)
23740 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23741 soname_spec='$libname$release$shared_ext$major'
23742 need_version=no
23743 need_lib_prefix=no
23744 ;;
23745 freebsd-*)
23746 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
23747 need_version=yes
23748 ;;
23749 esac
23750 shlibpath_var=LD_LIBRARY_PATH
23751 case $host_os in
23752 freebsd2.*)
23753 shlibpath_overrides_runpath=yes
23754 ;;
23755 freebsd3.[01]* | freebsdelf3.[01]*)
23756 shlibpath_overrides_runpath=yes
23757 hardcode_into_libs=yes
23758 ;;
23759 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23760 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
23761 shlibpath_overrides_runpath=no
23762 hardcode_into_libs=yes
23763 ;;
23764 *) # from 4.6 on, and DragonFly
23765 shlibpath_overrides_runpath=yes
23766 hardcode_into_libs=yes
23767 ;;
23768 esac
23769 ;;
23770
23771 haiku*)
23772 version_type=linux # correct to gnu/linux during the next big refactor
23773 need_lib_prefix=no
23774 need_version=no
23775 dynamic_linker="$host_os runtime_loader"
23776 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23777 soname_spec='$libname$release$shared_ext$major'
23778 shlibpath_var=LIBRARY_PATH
23779 shlibpath_overrides_runpath=no
23780 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
23781 hardcode_into_libs=yes
23782 ;;
23783
23784 hpux9* | hpux10* | hpux11*)
23785 # Give a soname corresponding to the major version so that dld.sl refuses to
23786 # link against other versions.
23787 version_type=sunos
23788 need_lib_prefix=no
23789 need_version=no
23790 case $host_cpu in
23791 ia64*)
23792 shrext_cmds='.so'
23793 hardcode_into_libs=yes
23794 dynamic_linker="$host_os dld.so"
23795 shlibpath_var=LD_LIBRARY_PATH
23796 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23797 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23798 soname_spec='$libname$release$shared_ext$major'
23799 if test 32 = "$HPUX_IA64_MODE"; then
23800 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23801 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
23802 else
23803 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23804 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
23805 fi
23806 ;;
23807 hppa*64*)
23808 shrext_cmds='.sl'
23809 hardcode_into_libs=yes
23810 dynamic_linker="$host_os dld.sl"
23811 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23812 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23813 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23814 soname_spec='$libname$release$shared_ext$major'
23815 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23816 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23817 ;;
23818 *)
23819 shrext_cmds='.sl'
23820 dynamic_linker="$host_os dld.sl"
23821 shlibpath_var=SHLIB_PATH
23822 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23823 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23824 soname_spec='$libname$release$shared_ext$major'
23825 ;;
23826 esac
23827 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
23828 postinstall_cmds='chmod 555 $lib'
23829 # or fails outright, so override atomically:
23830 install_override_mode=555
23831 ;;
23832
23833 interix[3-9]*)
23834 version_type=linux # correct to gnu/linux during the next big refactor
23835 need_lib_prefix=no
23836 need_version=no
23837 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23838 soname_spec='$libname$release$shared_ext$major'
23839 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23840 shlibpath_var=LD_LIBRARY_PATH
23841 shlibpath_overrides_runpath=no
23842 hardcode_into_libs=yes
23843 ;;
23844
23845 irix5* | irix6* | nonstopux*)
23846 case $host_os in
23847 nonstopux*) version_type=nonstopux ;;
23848 *)
23849 if test yes = "$lt_cv_prog_gnu_ld"; then
23850 version_type=linux # correct to gnu/linux during the next big refactor
23851 else
23852 version_type=irix
23853 fi ;;
23854 esac
23855 need_lib_prefix=no
23856 need_version=no
23857 soname_spec='$libname$release$shared_ext$major'
23858 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
23859 case $host_os in
23860 irix5* | nonstopux*)
23861 libsuff= shlibsuff=
23862 ;;
23863 *)
23864 case $LD in # libtool.m4 will add one of these switches to LD
23865 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23866 libsuff= shlibsuff= libmagic=32-bit;;
23867 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23868 libsuff=32 shlibsuff=N32 libmagic=N32;;
23869 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23870 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23871 *) libsuff= shlibsuff= libmagic=never-match;;
23872 esac
23873 ;;
23874 esac
23875 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23876 shlibpath_overrides_runpath=no
23877 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
23878 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
23879 hardcode_into_libs=yes
23880 ;;
23881
23882 # No shared lib support for Linux oldld, aout, or coff.
23883 linux*oldld* | linux*aout* | linux*coff*)
23884 dynamic_linker=no
23885 ;;
23886
23887 linux*android*)
23888 version_type=none # Android doesn't support versioned libraries.
23889 need_lib_prefix=no
23890 need_version=no
23891 library_names_spec='$libname$release$shared_ext'
23892 soname_spec='$libname$release$shared_ext'
23893 finish_cmds=
23894 shlibpath_var=LD_LIBRARY_PATH
23895 shlibpath_overrides_runpath=yes
23896
23897 # This implies no fast_install, which is unacceptable.
23898 # Some rework will be needed to allow for fast_install
23899 # before this can be enabled.
23900 hardcode_into_libs=yes
23901
23902 dynamic_linker='Android linker'
23903 # Don't embed -rpath directories since the linker doesn't support them.
23904 hardcode_libdir_flag_spec_CXX='-L$libdir'
23905 ;;
23906
23907 # This must be glibc/ELF.
23908 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
23909 version_type=linux # correct to gnu/linux during the next big refactor
23910 need_lib_prefix=no
23911 need_version=no
23912 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23913 soname_spec='$libname$release$shared_ext$major'
23914 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23915 shlibpath_var=LD_LIBRARY_PATH
23916 shlibpath_overrides_runpath=no
23917
23918 # Some binutils ld are patched to set DT_RUNPATH
23919 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
23920 $as_echo_n "(cached) " >&6
23921 else
23922 lt_cv_shlibpath_overrides_runpath=no
23923 save_LDFLAGS=$LDFLAGS
23924 save_libdir=$libdir
23925 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
23926 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
23927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23928 /* end confdefs.h. */
23929
23930 int
23931 main ()
23932 {
23933
23934 ;
23935 return 0;
23936 }
23937 _ACEOF
23938 if ac_fn_cxx_try_link "$LINENO"; then :
23939 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
23940 lt_cv_shlibpath_overrides_runpath=yes
23941 fi
23942 fi
23943 rm -f core conftest.err conftest.$ac_objext \
23944 conftest$ac_exeext conftest.$ac_ext
23945 LDFLAGS=$save_LDFLAGS
23946 libdir=$save_libdir
23947
23948 fi
23949
23950 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
23951
23952 # This implies no fast_install, which is unacceptable.
23953 # Some rework will be needed to allow for fast_install
23954 # before this can be enabled.
23955 hardcode_into_libs=yes
23956
23957 # Ideally, we could use ldconfig to report *all* directores which are
23958 # searched for libraries, however this is still not possible. Aside from not
23959 # being certain /sbin/ldconfig is available, command
23960 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
23961 # even though it is searched at run-time. Try to do the best guess by
23962 # appending ld.so.conf contents (and includes) to the search path.
23963 if test -f /etc/ld.so.conf; then
23964 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' ' '`
23965 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23966 fi
23967
23968 # We used to test for /lib/ld.so.1 and disable shared libraries on
23969 # powerpc, because MkLinux only supported shared libraries with the
23970 # GNU dynamic linker. Since this was broken with cross compilers,
23971 # most powerpc-linux boxes support dynamic linking these days and
23972 # people can always --disable-shared, the test was removed, and we
23973 # assume the GNU/Linux dynamic linker is in use.
23974 dynamic_linker='GNU/Linux ld.so'
23975 ;;
23976
23977 netbsd*)
23978 version_type=sunos
23979 need_lib_prefix=no
23980 need_version=no
23981 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
23982 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
23983 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23984 dynamic_linker='NetBSD (a.out) ld.so'
23985 else
23986 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23987 soname_spec='$libname$release$shared_ext$major'
23988 dynamic_linker='NetBSD ld.elf_so'
23989 fi
23990 shlibpath_var=LD_LIBRARY_PATH
23991 shlibpath_overrides_runpath=yes
23992 hardcode_into_libs=yes
23993 ;;
23994
23995 newsos6)
23996 version_type=linux # correct to gnu/linux during the next big refactor
23997 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23998 shlibpath_var=LD_LIBRARY_PATH
23999 shlibpath_overrides_runpath=yes
24000 ;;
24001
24002 *nto* | *qnx*)
24003 version_type=qnx
24004 need_lib_prefix=no
24005 need_version=no
24006 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
24007 soname_spec='$libname$release$shared_ext$major'
24008 shlibpath_var=LD_LIBRARY_PATH
24009 shlibpath_overrides_runpath=no
24010 hardcode_into_libs=yes
24011 dynamic_linker='ldqnx.so'
24012 ;;
24013
24014 openbsd* | bitrig*)
24015 version_type=sunos
24016 sys_lib_dlsearch_path_spec=/usr/lib
24017 need_lib_prefix=no
24018 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
24019 need_version=no
24020 else
24021 need_version=yes
24022 fi
24023 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
24024 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24025 shlibpath_var=LD_LIBRARY_PATH
24026 shlibpath_overrides_runpath=yes
24027 ;;
24028
24029 os2*)
24030 libname_spec='$name'
24031 version_type=windows
24032 shrext_cmds=.dll
24033 need_version=no
24034 need_lib_prefix=no
24035 # OS/2 can only load a DLL with a base name of 8 characters or less.
24036 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
24037 v=$($ECHO $release$versuffix | tr -d .-);
24038 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
24039 $ECHO $n$v`$shared_ext'
24040 library_names_spec='${libname}_dll.$libext'
24041 dynamic_linker='OS/2 ld.exe'
24042 shlibpath_var=BEGINLIBPATH
24043 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
24044 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24045 postinstall_cmds='base_file=`basename \$file`~
24046 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
24047 dldir=$destdir/`dirname \$dlpath`~
24048 test -d \$dldir || mkdir -p \$dldir~
24049 $install_prog $dir/$dlname \$dldir/$dlname~
24050 chmod a+x \$dldir/$dlname~
24051 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
24052 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
24053 fi'
24054 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
24055 dlpath=$dir/\$dldll~
24056 $RM \$dlpath'
24057 ;;
24058
24059 osf3* | osf4* | osf5*)
24060 version_type=osf
24061 need_lib_prefix=no
24062 need_version=no
24063 soname_spec='$libname$release$shared_ext$major'
24064 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
24065 shlibpath_var=LD_LIBRARY_PATH
24066 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
24067 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24068 ;;
24069
24070 rdos*)
24071 dynamic_linker=no
24072 ;;
24073
24074 solaris*)
24075 version_type=linux # correct to gnu/linux during the next big refactor
24076 need_lib_prefix=no
24077 need_version=no
24078 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
24079 soname_spec='$libname$release$shared_ext$major'
24080 shlibpath_var=LD_LIBRARY_PATH
24081 shlibpath_overrides_runpath=yes
24082 hardcode_into_libs=yes
24083 # ldd complains unless libraries are executable
24084 postinstall_cmds='chmod +x $lib'
24085 ;;
24086
24087 sunos4*)
24088 version_type=sunos
24089 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
24090 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
24091 shlibpath_var=LD_LIBRARY_PATH
24092 shlibpath_overrides_runpath=yes
24093 if test yes = "$with_gnu_ld"; then
24094 need_lib_prefix=no
24095 fi
24096 need_version=yes
24097 ;;
24098
24099 sysv4 | sysv4.3*)
24100 version_type=linux # correct to gnu/linux during the next big refactor
24101 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
24102 soname_spec='$libname$release$shared_ext$major'
24103 shlibpath_var=LD_LIBRARY_PATH
24104 case $host_vendor in
24105 sni)
24106 shlibpath_overrides_runpath=no
24107 need_lib_prefix=no
24108 runpath_var=LD_RUN_PATH
24109 ;;
24110 siemens)
24111 need_lib_prefix=no
24112 ;;
24113 motorola)
24114 need_lib_prefix=no
24115 need_version=no
24116 shlibpath_overrides_runpath=no
24117 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
24118 ;;
24119 esac
24120 ;;
24121
24122 sysv4*MP*)
24123 if test -d /usr/nec; then
24124 version_type=linux # correct to gnu/linux during the next big refactor
24125 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
24126 soname_spec='$libname$shared_ext.$major'
24127 shlibpath_var=LD_LIBRARY_PATH
24128 fi
24129 ;;
24130
24131 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
24132 version_type=sco
24133 need_lib_prefix=no
24134 need_version=no
24135 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
24136 soname_spec='$libname$release$shared_ext$major'
24137 shlibpath_var=LD_LIBRARY_PATH
24138 shlibpath_overrides_runpath=yes
24139 hardcode_into_libs=yes
24140 if test yes = "$with_gnu_ld"; then
24141 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
24142 else
24143 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
24144 case $host_os in
24145 sco3.2v5*)
24146 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
24147 ;;
24148 esac
24149 fi
24150 sys_lib_dlsearch_path_spec='/usr/lib'
24151 ;;
24152
24153 tpf*)
24154 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
24155 version_type=linux # correct to gnu/linux during the next big refactor
24156 need_lib_prefix=no
24157 need_version=no
24158 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
24159 shlibpath_var=LD_LIBRARY_PATH
24160 shlibpath_overrides_runpath=no
24161 hardcode_into_libs=yes
24162 ;;
24163
24164 uts4*)
24165 version_type=linux # correct to gnu/linux during the next big refactor
24166 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
24167 soname_spec='$libname$release$shared_ext$major'
24168 shlibpath_var=LD_LIBRARY_PATH
24169 ;;
24170
24171 *)
24172 dynamic_linker=no
24173 ;;
24174 esac
24175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
24176 case "$dynamic_linker" in #(
24177 yes|ok|yes[\ ,]*) :
24178 $as_echo "${as__grn}$dynamic_linker${as__std}" >&6 ;; #(
24179 no|failed|unsupported|no[\ ,]*) :
24180 $as_echo "${as__red}$dynamic_linker${as__std}" >&6 ;; #(
24181 *) :
24182 $as_echo "${as__blu}$dynamic_linker${as__std}" >&6 ;;
24183 esac; }
24184 test no = "$dynamic_linker" && can_build_shared=no
24185
24186 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
24187 if test yes = "$GCC"; then
24188 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
24189 fi
24190
24191 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
24192 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
24193 fi
24194
24195 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
24196 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
24197 fi
24198
24199 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
24200 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
24201
24202 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
24203 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
24204
24205 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
24206 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
24207
24208
24209
24210
24211
24212
24213
24214
24215
24216
24217
24218
24219
24220
24221
24222
24223
24224
24225
24226
24227
24228
24229
24230
24231
24232
24233
24234
24235
24236
24237
24238
24239
24240
24241
24242
24243
24244
24245
24246
24247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
24248 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
24249 hardcode_action_CXX=
24250 if test -n "$hardcode_libdir_flag_spec_CXX" ||
24251 test -n "$runpath_var_CXX" ||
24252 test yes = "$hardcode_automatic_CXX"; then
24253
24254 # We can hardcode non-existent directories.
24255 if test no != "$hardcode_direct_CXX" &&
24256 # If the only mechanism to avoid hardcoding is shlibpath_var, we
24257 # have to relink, otherwise we might link with an installed library
24258 # when we should be linking with a yet-to-be-installed one
24259 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
24260 test no != "$hardcode_minus_L_CXX"; then
24261 # Linking always hardcodes the temporary library directory.
24262 hardcode_action_CXX=relink
24263 else
24264 # We can link without hardcoding, and we can hardcode nonexisting dirs.
24265 hardcode_action_CXX=immediate
24266 fi
24267 else
24268 # We cannot hardcode anything, or else we can only hardcode existing
24269 # directories.
24270 hardcode_action_CXX=unsupported
24271 fi
24272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
24273 case "$hardcode_action_CXX" in #(
24274 yes|ok|yes[\ ,]*) :
24275 $as_echo "${as__grn}$hardcode_action_CXX${as__std}" >&6 ;; #(
24276 no|failed|unsupported|no[\ ,]*) :
24277 $as_echo "${as__red}$hardcode_action_CXX${as__std}" >&6 ;; #(
24278 *) :
24279 $as_echo "${as__blu}$hardcode_action_CXX${as__std}" >&6 ;;
24280 esac; }
24281
24282 if test relink = "$hardcode_action_CXX" ||
24283 test yes = "$inherit_rpath_CXX"; then
24284 # Fast installation is not supported
24285 enable_fast_install=no
24286 elif test yes = "$shlibpath_overrides_runpath" ||
24287 test no = "$enable_shared"; then
24288 # Fast installation is not necessary
24289 enable_fast_install=needless
24290 fi
24291
24292
24293
24294
24295
24296
24297
24298 fi # test -n "$compiler"
24299
24300 CC=$lt_save_CC
24301 CFLAGS=$lt_save_CFLAGS
24302 LDCXX=$LD
24303 LD=$lt_save_LD
24304 GCC=$lt_save_GCC
24305 with_gnu_ld=$lt_save_with_gnu_ld
24306 lt_cv_path_LDCXX=$lt_cv_path_LD
24307 lt_cv_path_LD=$lt_save_path_LD
24308 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
24309 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
24310 fi # test yes != "$_lt_caught_CXX_error"
24311
24312 ac_ext=c
24313 ac_cpp='$CPP $CPPFLAGS'
24314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24317
24318
24319
24320 ac_ext=f
24321 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
24322 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24323 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
24324
24325 if test -z "$F77" || test no = "$F77"; then
24326 _lt_disable_F77=yes
24327 fi
24328
24329 archive_cmds_need_lc_F77=no
24330 allow_undefined_flag_F77=
24331 always_export_symbols_F77=no
24332 archive_expsym_cmds_F77=
24333 export_dynamic_flag_spec_F77=
24334 hardcode_direct_F77=no
24335 hardcode_direct_absolute_F77=no
24336 hardcode_libdir_flag_spec_F77=
24337 hardcode_libdir_separator_F77=
24338 hardcode_minus_L_F77=no
24339 hardcode_automatic_F77=no
24340 inherit_rpath_F77=no
24341 module_cmds_F77=
24342 module_expsym_cmds_F77=
24343 link_all_deplibs_F77=unknown
24344 old_archive_cmds_F77=$old_archive_cmds
24345 reload_flag_F77=$reload_flag
24346 reload_cmds_F77=$reload_cmds
24347 no_undefined_flag_F77=
24348 whole_archive_flag_spec_F77=
24349 enable_shared_with_static_runtimes_F77=no
24350
24351 # Source file extension for f77 test sources.
24352 ac_ext=f
24353
24354 # Object file extension for compiled f77 test sources.
24355 objext=o
24356 objext_F77=$objext
24357
24358 # No sense in running all these tests if we already determined that
24359 # the F77 compiler isn't working. Some variables (like enable_shared)
24360 # are currently assumed to apply to all compilers on this platform,
24361 # and will be corrupted by setting them based on a non-working compiler.
24362 if test yes != "$_lt_disable_F77"; then
24363 # Code to be used in simple compile tests
24364 lt_simple_compile_test_code="\
24365 subroutine t
24366 return
24367 end
24368 "
24369
24370 # Code to be used in simple link tests
24371 lt_simple_link_test_code="\
24372 program t
24373 end
24374 "
24375
24376 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24377
24378
24379
24380
24381
24382
24383 # If no C compiler was specified, use CC.
24384 LTCC=${LTCC-"$CC"}
24385
24386 # If no C compiler flags were specified, use CFLAGS.
24387 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
24388
24389 # Allow CC to be a program name with arguments.
24390 compiler=$CC
24391
24392
24393 # save warnings/boilerplate of simple test code
24394 ac_outfile=conftest.$ac_objext
24395 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
24396 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24397 _lt_compiler_boilerplate=`cat conftest.err`
24398 $RM conftest*
24399
24400 ac_outfile=conftest.$ac_objext
24401 echo "$lt_simple_link_test_code" >conftest.$ac_ext
24402 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24403 _lt_linker_boilerplate=`cat conftest.err`
24404 $RM -r conftest*
24405
24406
24407 # Allow CC to be a program name with arguments.
24408 lt_save_CC=$CC
24409 lt_save_GCC=$GCC
24410 lt_save_CFLAGS=$CFLAGS
24411 CC=${F77-"f77"}
24412 CFLAGS=$FFLAGS
24413 compiler=$CC
24414 compiler_F77=$CC
24415 func_cc_basename $compiler
24416 cc_basename=$func_cc_basename_result
24417
24418 GCC=$G77
24419 if test -n "$compiler"; then
24420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
24421 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
24422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
24423 case "$can_build_shared" in #(
24424 yes|ok|yes[\ ,]*) :
24425 $as_echo "${as__grn}$can_build_shared${as__std}" >&6 ;; #(
24426 no|failed|unsupported|no[\ ,]*) :
24427 $as_echo "${as__red}$can_build_shared${as__std}" >&6 ;; #(
24428 *) :
24429 $as_echo "${as__blu}$can_build_shared${as__std}" >&6 ;;
24430 esac; }
24431
24432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
24433 $as_echo_n "checking whether to build shared libraries... " >&6; }
24434 test no = "$can_build_shared" && enable_shared=no
24435
24436 # On AIX, shared libraries and static libraries use the same namespace, and
24437 # are all built from PIC.
24438 case $host_os in
24439 aix3*)
24440 test yes = "$enable_shared" && enable_static=no
24441 if test -n "$RANLIB"; then
24442 archive_cmds="$archive_cmds~\$RANLIB \$lib"
24443 postinstall_cmds='$RANLIB $lib'
24444 fi
24445 ;;
24446 aix[4-9]*)
24447 if test ia64 != "$host_cpu"; then
24448 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
24449 yes,aix,yes) ;; # shared object as lib.so file only
24450 yes,svr4,*) ;; # shared object as lib.so archive member only
24451 yes,*) enable_static=no ;; # shared object in lib.a archive as well
24452 esac
24453 fi
24454 ;;
24455 esac
24456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
24457 case "$enable_shared" in #(
24458 yes|ok|yes[\ ,]*) :
24459 $as_echo "${as__grn}$enable_shared${as__std}" >&6 ;; #(
24460 no|failed|unsupported|no[\ ,]*) :
24461 $as_echo "${as__red}$enable_shared${as__std}" >&6 ;; #(
24462 *) :
24463 $as_echo "${as__blu}$enable_shared${as__std}" >&6 ;;
24464 esac; }
24465
24466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
24467 $as_echo_n "checking whether to build static libraries... " >&6; }
24468 # Make sure either enable_shared or enable_static is yes.
24469 test yes = "$enable_shared" || enable_static=yes
24470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
24471 case "$enable_static" in #(
24472 yes|ok|yes[\ ,]*) :
24473 $as_echo "${as__grn}$enable_static${as__std}" >&6 ;; #(
24474 no|failed|unsupported|no[\ ,]*) :
24475 $as_echo "${as__red}$enable_static${as__std}" >&6 ;; #(
24476 *) :
24477 $as_echo "${as__blu}$enable_static${as__std}" >&6 ;;
24478 esac; }
24479
24480 GCC_F77=$G77
24481 LD_F77=$LD
24482
24483 ## CAVEAT EMPTOR:
24484 ## There is no encapsulation within the following macros, do not change
24485 ## the running order or otherwise move them around unless you know exactly
24486 ## what you are doing...
24487 lt_prog_compiler_wl_F77=
24488 lt_prog_compiler_pic_F77=
24489 lt_prog_compiler_static_F77=
24490
24491
24492 if test yes = "$GCC"; then
24493 lt_prog_compiler_wl_F77='-Wl,'
24494 lt_prog_compiler_static_F77='-static'
24495
24496 case $host_os in
24497 aix*)
24498 # All AIX code is PIC.
24499 if test ia64 = "$host_cpu"; then
24500 # AIX 5 now supports IA64 processor
24501 lt_prog_compiler_static_F77='-Bstatic'
24502 fi
24503 lt_prog_compiler_pic_F77='-fPIC'
24504 ;;
24505
24506 amigaos*)
24507 case $host_cpu in
24508 powerpc)
24509 # see comment about AmigaOS4 .so support
24510 lt_prog_compiler_pic_F77='-fPIC'
24511 ;;
24512 m68k)
24513 # FIXME: we need at least 68020 code to build shared libraries, but
24514 # adding the '-m68020' flag to GCC prevents building anything better,
24515 # like '-m68040'.
24516 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
24517 ;;
24518 esac
24519 ;;
24520
24521 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24522 # PIC is the default for these OSes.
24523 ;;
24524
24525 mingw* | cygwin* | pw32* | os2* | cegcc*)
24526 # This hack is so that the source file can tell whether it is being
24527 # built for inclusion in a dll (and should export symbols for example).
24528 # Although the cygwin gcc ignores -fPIC, still need this for old-style
24529 # (--disable-auto-import) libraries
24530 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
24531 case $host_os in
24532 os2*)
24533 lt_prog_compiler_static_F77='$wl-static'
24534 ;;
24535 esac
24536 ;;
24537
24538 darwin* | rhapsody*)
24539 # PIC is the default on this platform
24540 # Common symbols not allowed in MH_DYLIB files
24541 lt_prog_compiler_pic_F77='-fno-common'
24542 ;;
24543
24544 haiku*)
24545 # PIC is the default for Haiku.
24546 # The "-static" flag exists, but is broken.
24547 lt_prog_compiler_static_F77=
24548 ;;
24549
24550 hpux*)
24551 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
24552 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
24553 # sets the default TLS model and affects inlining.
24554 case $host_cpu in
24555 hppa*64*)
24556 # +Z the default
24557 ;;
24558 *)
24559 lt_prog_compiler_pic_F77='-fPIC'
24560 ;;
24561 esac
24562 ;;
24563
24564 interix[3-9]*)
24565 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24566 # Instead, we relocate shared libraries at runtime.
24567 ;;
24568
24569 msdosdjgpp*)
24570 # Just because we use GCC doesn't mean we suddenly get shared libraries
24571 # on systems that don't support them.
24572 lt_prog_compiler_can_build_shared_F77=no
24573 enable_shared=no
24574 ;;
24575
24576 *nto* | *qnx*)
24577 # QNX uses GNU C++, but need to define -shared option too, otherwise
24578 # it will coredump.
24579 lt_prog_compiler_pic_F77='-fPIC -shared'
24580 ;;
24581
24582 sysv4*MP*)
24583 if test -d /usr/nec; then
24584 lt_prog_compiler_pic_F77=-Kconform_pic
24585 fi
24586 ;;
24587
24588 *)
24589 lt_prog_compiler_pic_F77='-fPIC'
24590 ;;
24591 esac
24592
24593 case $cc_basename in
24594 nvcc*) # Cuda Compiler Driver 2.2
24595 lt_prog_compiler_wl_F77='-Xlinker '
24596 if test -n "$lt_prog_compiler_pic_F77"; then
24597 lt_prog_compiler_pic_F77="-Xcompiler $lt_prog_compiler_pic_F77"
24598 fi
24599 ;;
24600 esac
24601 else
24602 # PORTME Check for flag to pass linker flags through the system compiler.
24603 case $host_os in
24604 aix*)
24605 lt_prog_compiler_wl_F77='-Wl,'
24606 if test ia64 = "$host_cpu"; then
24607 # AIX 5 now supports IA64 processor
24608 lt_prog_compiler_static_F77='-Bstatic'
24609 else
24610 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
24611 fi
24612 ;;
24613
24614 darwin* | rhapsody*)
24615 # PIC is the default on this platform
24616 # Common symbols not allowed in MH_DYLIB files
24617 lt_prog_compiler_pic_F77='-fno-common'
24618 case $cc_basename in
24619 nagfor*)
24620 # NAG Fortran compiler
24621 lt_prog_compiler_wl_F77='-Wl,-Wl,,'
24622 lt_prog_compiler_pic_F77='-PIC'
24623 lt_prog_compiler_static_F77='-Bstatic'
24624 ;;
24625 esac
24626 ;;
24627
24628 mingw* | cygwin* | pw32* | os2* | cegcc*)
24629 # This hack is so that the source file can tell whether it is being
24630 # built for inclusion in a dll (and should export symbols for example).
24631 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
24632 case $host_os in
24633 os2*)
24634 lt_prog_compiler_static_F77='$wl-static'
24635 ;;
24636 esac
24637 ;;
24638
24639 hpux9* | hpux10* | hpux11*)
24640 lt_prog_compiler_wl_F77='-Wl,'
24641 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24642 # not for PA HP-UX.
24643 case $host_cpu in
24644 hppa*64*|ia64*)
24645 # +Z the default
24646 ;;
24647 *)
24648 lt_prog_compiler_pic_F77='+Z'
24649 ;;
24650 esac
24651 # Is there a better lt_prog_compiler_static that works with the bundled CC?
24652 lt_prog_compiler_static_F77='$wl-a ${wl}archive'
24653 ;;
24654
24655 irix5* | irix6* | nonstopux*)
24656 lt_prog_compiler_wl_F77='-Wl,'
24657 # PIC (with -KPIC) is the default.
24658 lt_prog_compiler_static_F77='-non_shared'
24659 ;;
24660
24661 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
24662 case $cc_basename in
24663 # old Intel for x86_64, which still supported -KPIC.
24664 ecc*)
24665 lt_prog_compiler_wl_F77='-Wl,'
24666 lt_prog_compiler_pic_F77='-KPIC'
24667 lt_prog_compiler_static_F77='-static'
24668 ;;
24669 # icc used to be incompatible with GCC.
24670 # ICC 10 doesn't accept -KPIC any more.
24671 icc* | ifort*)
24672 lt_prog_compiler_wl_F77='-Wl,'
24673 lt_prog_compiler_pic_F77='-fPIC'
24674 lt_prog_compiler_static_F77='-static'
24675 ;;
24676 # Lahey Fortran 8.1.
24677 lf95*)
24678 lt_prog_compiler_wl_F77='-Wl,'
24679 lt_prog_compiler_pic_F77='--shared'
24680 lt_prog_compiler_static_F77='--static'
24681 ;;
24682 nagfor*)
24683 # NAG Fortran compiler
24684 lt_prog_compiler_wl_F77='-Wl,-Wl,,'
24685 lt_prog_compiler_pic_F77='-PIC'
24686 lt_prog_compiler_static_F77='-Bstatic'
24687 ;;
24688 tcc*)
24689 # Fabrice Bellard et al's Tiny C Compiler
24690 lt_prog_compiler_wl_F77='-Wl,'
24691 lt_prog_compiler_pic_F77='-fPIC'
24692 lt_prog_compiler_static_F77='-static'
24693 ;;
24694 # Catch both prefix and suffix variants: armflang, amdflang, flang<number>
24695 *flang*)
24696 # Flang compiler
24697 lt_prog_compiler_wl_F77='-Wl,'
24698 lt_prog_compiler_pic_F77='-fPIC -DPIC'
24699 lt_prog_compiler_static_F77='-static'
24700 ;;
24701 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran* | nvc* | nvfortran*)
24702 # NVIDIA HPC Compilers
24703 lt_prog_compiler_wl_F77='-Wl,'
24704 lt_prog_compiler_pic_F77='-fpic'
24705 lt_prog_compiler_static_F77='-Bstatic'
24706 ;;
24707 ccc*)
24708 lt_prog_compiler_wl_F77='-Wl,'
24709 # All Alpha code is PIC.
24710 lt_prog_compiler_static_F77='-non_shared'
24711 ;;
24712 xl* | bgxl* | bgf* | mpixl*)
24713 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
24714 lt_prog_compiler_wl_F77='-Wl,'
24715 lt_prog_compiler_pic_F77='-qpic'
24716 lt_prog_compiler_static_F77='-qstaticlink'
24717 ;;
24718 *ncc* | *nfort*)
24719 # NEC Vector Engine compiler suite
24720 lt_prog_compiler_wl_F77='-Wl,'
24721 lt_prog_compiler_pic_F77='-fPIC'
24722 lt_prog_compiler_static_F77='-static'
24723 ;;
24724 *)
24725 case `$CC -V 2>&1``$CC -v 2>&1` in
24726 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
24727 # Sun Fortran 8.3 passes all unrecognized flags to the linker
24728 lt_prog_compiler_pic_F77='-KPIC'
24729 lt_prog_compiler_static_F77='-Bstatic'
24730 lt_prog_compiler_wl_F77=''
24731 ;;
24732 *Sun\ F* | *Sun*Fortran*)
24733 lt_prog_compiler_pic_F77='-KPIC'
24734 lt_prog_compiler_static_F77='-Bstatic'
24735 lt_prog_compiler_wl_F77='-Qoption ld '
24736 ;;
24737 *Sun\ C*)
24738 # Sun C 5.9
24739 lt_prog_compiler_pic_F77='-KPIC'
24740 lt_prog_compiler_static_F77='-Bstatic'
24741 lt_prog_compiler_wl_F77='-Wl,'
24742 ;;
24743 *Intel*\ [CF]*Compiler*)
24744 lt_prog_compiler_wl_F77='-Wl,'
24745 lt_prog_compiler_pic_F77='-fPIC'
24746 lt_prog_compiler_static_F77='-static'
24747 ;;
24748 *Cray\ Fortran* | *Cray\ C*)
24749 lt_prog_compiler_wl_F77='-Wl,'
24750 lt_prog_compiler_pic_F77='-hpic'
24751 lt_prog_compiler_static_F77='-static'
24752 ;;
24753 *Portland\ Group* | *NVIDIA\ Compilers* | *PGI\ Compilers*)
24754 lt_prog_compiler_wl_F77='-Wl,'
24755 lt_prog_compiler_pic_F77='-fpic'
24756 lt_prog_compiler_static_F77='-Bstatic'
24757 ;;
24758 *Fujitsu*)
24759 lt_prog_compiler_wl_F77='-Wl,'
24760 lt_prog_compiler_pic_F77='-Kpic'
24761 lt_prog_compiler_static_F77='-Bstatic'
24762 ;;
24763 *xlf*)
24764 lt_prog_compiler_wl_F77='-Wl,'
24765 lt_prog_compiler_pic_F77='-qpic'
24766 lt_prog_compiler_static_F77='-qstaticlink'
24767 ;;
24768 # Not sure if `flang version` exists, but honor vendor prefix like 'AMD '
24769 *clang\ version* | *flang\ version* | *flang-new\ version* | *flang-classic\ version*)
24770 lt_prog_compiler_wl_F77='-Wl,'
24771 lt_prog_compiler_pic_F77='-fPIC -DPIC'
24772 lt_prog_compiler_static_F77='-static'
24773 ;;
24774 esac
24775 ;;
24776 esac
24777 ;;
24778
24779 newsos6)
24780 lt_prog_compiler_pic_F77='-KPIC'
24781 lt_prog_compiler_static_F77='-Bstatic'
24782 ;;
24783
24784 *nto* | *qnx*)
24785 # QNX uses GNU C++, but need to define -shared option too, otherwise
24786 # it will coredump.
24787 lt_prog_compiler_pic_F77='-fPIC -shared'
24788 ;;
24789
24790 osf3* | osf4* | osf5*)
24791 lt_prog_compiler_wl_F77='-Wl,'
24792 # All OSF/1 code is PIC.
24793 lt_prog_compiler_static_F77='-non_shared'
24794 ;;
24795
24796 rdos*)
24797 lt_prog_compiler_static_F77='-non_shared'
24798 ;;
24799
24800 solaris*)
24801 lt_prog_compiler_pic_F77='-KPIC'
24802 lt_prog_compiler_static_F77='-Bstatic'
24803 case $cc_basename in
24804 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
24805 lt_prog_compiler_wl_F77='-Qoption ld ';;
24806 *)
24807 lt_prog_compiler_wl_F77='-Wl,';;
24808 esac
24809 ;;
24810
24811 sunos4*)
24812 lt_prog_compiler_wl_F77='-Qoption ld '
24813 lt_prog_compiler_pic_F77='-PIC'
24814 lt_prog_compiler_static_F77='-Bstatic'
24815 ;;
24816
24817 sysv4 | sysv4.2uw2* | sysv4.3*)
24818 lt_prog_compiler_wl_F77='-Wl,'
24819 lt_prog_compiler_pic_F77='-KPIC'
24820 lt_prog_compiler_static_F77='-Bstatic'
24821 ;;
24822
24823 sysv4*MP*)
24824 if test -d /usr/nec; then
24825 lt_prog_compiler_pic_F77='-Kconform_pic'
24826 lt_prog_compiler_static_F77='-Bstatic'
24827 fi
24828 ;;
24829
24830 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24831 lt_prog_compiler_wl_F77='-Wl,'
24832 lt_prog_compiler_pic_F77='-KPIC'
24833 lt_prog_compiler_static_F77='-Bstatic'
24834 ;;
24835
24836 unicos*)
24837 lt_prog_compiler_wl_F77='-Wl,'
24838 lt_prog_compiler_can_build_shared_F77=no
24839 ;;
24840
24841 uts4*)
24842 lt_prog_compiler_pic_F77='-pic'
24843 lt_prog_compiler_static_F77='-Bstatic'
24844 ;;
24845
24846 *)
24847 lt_prog_compiler_can_build_shared_F77=no
24848 ;;
24849 esac
24850 fi
24851
24852 case $host_os in
24853 # For platforms that do not support PIC, -DPIC is meaningless:
24854 *djgpp*)
24855 lt_prog_compiler_pic_F77=
24856 ;;
24857 *)
24858 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
24859 ;;
24860 esac
24861
24862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
24863 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
24864 if ${lt_cv_prog_compiler_pic_F77+:} false; then :
24865 $as_echo_n "(cached) " >&6
24866 else
24867 lt_cv_prog_compiler_pic_F77=$lt_prog_compiler_pic_F77
24868 fi
24869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_F77" >&5
24870 case "$lt_cv_prog_compiler_pic_F77" in #(
24871 yes|ok|yes[\ ,]*) :
24872 $as_echo "${as__grn}$lt_cv_prog_compiler_pic_F77${as__std}" >&6 ;; #(
24873 no|failed|unsupported|no[\ ,]*) :
24874 $as_echo "${as__red}$lt_cv_prog_compiler_pic_F77${as__std}" >&6 ;; #(
24875 *) :
24876 $as_echo "${as__blu}$lt_cv_prog_compiler_pic_F77${as__std}" >&6 ;;
24877 esac; }
24878 lt_prog_compiler_pic_F77=$lt_cv_prog_compiler_pic_F77
24879
24880 #
24881 # Check to make sure the PIC flag actually works.
24882 #
24883 if test -n "$lt_prog_compiler_pic_F77"; then
24884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
24885 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
24886 if ${lt_cv_prog_compiler_pic_works_F77+:} false; then :
24887 $as_echo_n "(cached) " >&6
24888 else
24889 lt_cv_prog_compiler_pic_works_F77=no
24890 ac_outfile=conftest.$ac_objext
24891 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
24892 lt_compiler_flag="$lt_prog_compiler_pic_F77" ## exclude from sc_useless_quotes_in_assignment
24893 # Insert the option either (1) after the last *FLAGS variable, or
24894 # (2) before a word containing "conftest.", or (3) at the end.
24895 # Note that $ac_compile itself does not contain backslashes and begins
24896 # with a dollar sign (not a hyphen), so the echo should work correctly.
24897 # The option is referenced via a variable to avoid confusing sed.
24898 lt_compile=`echo "$ac_compile" | $SED \
24899 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24900 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24901 -e 's:$: $lt_compiler_flag:'`
24902 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
24903 (eval "$lt_compile" 2>conftest.err)
24904 ac_status=$?
24905 cat conftest.err >&5
24906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24907 if (exit $ac_status) && test -s "$ac_outfile"; then
24908 # The compiler can only warn and ignore the option if not recognized
24909 # So say no if there are warnings other than the usual output.
24910 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
24911 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24912 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24913 lt_cv_prog_compiler_pic_works_F77=yes
24914 fi
24915 fi
24916 $RM conftest*
24917
24918 fi
24919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5
24920 case "$lt_cv_prog_compiler_pic_works_F77" in #(
24921 yes|ok|yes[\ ,]*) :
24922 $as_echo "${as__grn}$lt_cv_prog_compiler_pic_works_F77${as__std}" >&6 ;; #(
24923 no|failed|unsupported|no[\ ,]*) :
24924 $as_echo "${as__red}$lt_cv_prog_compiler_pic_works_F77${as__std}" >&6 ;; #(
24925 *) :
24926 $as_echo "${as__blu}$lt_cv_prog_compiler_pic_works_F77${as__std}" >&6 ;;
24927 esac; }
24928
24929 if test yes = "$lt_cv_prog_compiler_pic_works_F77"; then
24930 case $lt_prog_compiler_pic_F77 in
24931 "" | " "*) ;;
24932 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
24933 esac
24934 else
24935 lt_prog_compiler_pic_F77=
24936 lt_prog_compiler_can_build_shared_F77=no
24937 fi
24938
24939 fi
24940
24941
24942
24943
24944
24945 #
24946 # Check to make sure the static flag actually works.
24947 #
24948 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
24949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24950 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
24951 if ${lt_cv_prog_compiler_static_works_F77+:} false; then :
24952 $as_echo_n "(cached) " >&6
24953 else
24954 lt_cv_prog_compiler_static_works_F77=no
24955 save_LDFLAGS=$LDFLAGS
24956 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24957 echo "$lt_simple_link_test_code" > conftest.$ac_ext
24958 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24959 # The linker can only warn and ignore the option if not recognized
24960 # So say no if there are warnings
24961 if test -s conftest.err; then
24962 # Append any errors to the config.log.
24963 cat conftest.err 1>&5
24964 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
24965 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24966 if diff conftest.exp conftest.er2 >/dev/null; then
24967 lt_cv_prog_compiler_static_works_F77=yes
24968 fi
24969 else
24970 lt_cv_prog_compiler_static_works_F77=yes
24971 fi
24972 fi
24973 $RM -r conftest*
24974 LDFLAGS=$save_LDFLAGS
24975
24976 fi
24977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5
24978 case "$lt_cv_prog_compiler_static_works_F77" in #(
24979 yes|ok|yes[\ ,]*) :
24980 $as_echo "${as__grn}$lt_cv_prog_compiler_static_works_F77${as__std}" >&6 ;; #(
24981 no|failed|unsupported|no[\ ,]*) :
24982 $as_echo "${as__red}$lt_cv_prog_compiler_static_works_F77${as__std}" >&6 ;; #(
24983 *) :
24984 $as_echo "${as__blu}$lt_cv_prog_compiler_static_works_F77${as__std}" >&6 ;;
24985 esac; }
24986
24987 if test yes = "$lt_cv_prog_compiler_static_works_F77"; then
24988 :
24989 else
24990 lt_prog_compiler_static_F77=
24991 fi
24992
24993
24994
24995
24996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
24997 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
24998 if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
24999 $as_echo_n "(cached) " >&6
25000 else
25001 lt_cv_prog_compiler_c_o_F77=no
25002 $RM -r conftest 2>/dev/null
25003 mkdir conftest
25004 cd conftest
25005 mkdir out
25006 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
25007
25008 lt_compiler_flag="-o out/conftest2.$ac_objext"
25009 # Insert the option either (1) after the last *FLAGS variable, or
25010 # (2) before a word containing "conftest.", or (3) at the end.
25011 # Note that $ac_compile itself does not contain backslashes and begins
25012 # with a dollar sign (not a hyphen), so the echo should work correctly.
25013 lt_compile=`echo "$ac_compile" | $SED \
25014 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
25015 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
25016 -e 's:$: $lt_compiler_flag:'`
25017 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
25018 (eval "$lt_compile" 2>out/conftest.err)
25019 ac_status=$?
25020 cat out/conftest.err >&5
25021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25022 if (exit $ac_status) && test -s out/conftest2.$ac_objext
25023 then
25024 # The compiler can only warn and ignore the option if not recognized
25025 # So say no if there are warnings
25026 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
25027 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
25028 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
25029 lt_cv_prog_compiler_c_o_F77=yes
25030 fi
25031 fi
25032 chmod u+w . 2>&5
25033 $RM conftest*
25034 # SGI C++ compiler will create directory out/ii_files/ for
25035 # template instantiation
25036 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
25037 $RM out/* && rmdir out
25038 cd ..
25039 $RM -r conftest
25040 $RM conftest*
25041
25042 fi
25043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
25044 case "$lt_cv_prog_compiler_c_o_F77" in #(
25045 yes|ok|yes[\ ,]*) :
25046 $as_echo "${as__grn}$lt_cv_prog_compiler_c_o_F77${as__std}" >&6 ;; #(
25047 no|failed|unsupported|no[\ ,]*) :
25048 $as_echo "${as__red}$lt_cv_prog_compiler_c_o_F77${as__std}" >&6 ;; #(
25049 *) :
25050 $as_echo "${as__blu}$lt_cv_prog_compiler_c_o_F77${as__std}" >&6 ;;
25051 esac; }
25052
25053
25054
25055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
25056 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
25057 if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
25058 $as_echo_n "(cached) " >&6
25059 else
25060 lt_cv_prog_compiler_c_o_F77=no
25061 $RM -r conftest 2>/dev/null
25062 mkdir conftest
25063 cd conftest
25064 mkdir out
25065 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
25066
25067 lt_compiler_flag="-o out/conftest2.$ac_objext"
25068 # Insert the option either (1) after the last *FLAGS variable, or
25069 # (2) before a word containing "conftest.", or (3) at the end.
25070 # Note that $ac_compile itself does not contain backslashes and begins
25071 # with a dollar sign (not a hyphen), so the echo should work correctly.
25072 lt_compile=`echo "$ac_compile" | $SED \
25073 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
25074 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
25075 -e 's:$: $lt_compiler_flag:'`
25076 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
25077 (eval "$lt_compile" 2>out/conftest.err)
25078 ac_status=$?
25079 cat out/conftest.err >&5
25080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25081 if (exit $ac_status) && test -s out/conftest2.$ac_objext
25082 then
25083 # The compiler can only warn and ignore the option if not recognized
25084 # So say no if there are warnings
25085 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
25086 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
25087 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
25088 lt_cv_prog_compiler_c_o_F77=yes
25089 fi
25090 fi
25091 chmod u+w . 2>&5
25092 $RM conftest*
25093 # SGI C++ compiler will create directory out/ii_files/ for
25094 # template instantiation
25095 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
25096 $RM out/* && rmdir out
25097 cd ..
25098 $RM -r conftest
25099 $RM conftest*
25100
25101 fi
25102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
25103 case "$lt_cv_prog_compiler_c_o_F77" in #(
25104 yes|ok|yes[\ ,]*) :
25105 $as_echo "${as__grn}$lt_cv_prog_compiler_c_o_F77${as__std}" >&6 ;; #(
25106 no|failed|unsupported|no[\ ,]*) :
25107 $as_echo "${as__red}$lt_cv_prog_compiler_c_o_F77${as__std}" >&6 ;; #(
25108 *) :
25109 $as_echo "${as__blu}$lt_cv_prog_compiler_c_o_F77${as__std}" >&6 ;;
25110 esac; }
25111
25112
25113
25114
25115 hard_links=nottested
25116 if test no = "$lt_cv_prog_compiler_c_o_F77" && test no != "$need_locks"; then
25117 # do not overwrite the value of need_locks provided by the user
25118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
25119 $as_echo_n "checking if we can lock with hard links... " >&6; }
25120 hard_links=yes
25121 $RM conftest*
25122 ln conftest.a conftest.b 2>/dev/null && hard_links=no
25123 touch conftest.a
25124 ln conftest.a conftest.b 2>&5 || hard_links=no
25125 ln conftest.a conftest.b 2>/dev/null && hard_links=no
25126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
25127 case "$hard_links" in #(
25128 yes|ok|yes[\ ,]*) :
25129 $as_echo "${as__grn}$hard_links${as__std}" >&6 ;; #(
25130 no|failed|unsupported|no[\ ,]*) :
25131 $as_echo "${as__red}$hard_links${as__std}" >&6 ;; #(
25132 *) :
25133 $as_echo "${as__blu}$hard_links${as__std}" >&6 ;;
25134 esac; }
25135 if test no = "$hard_links"; then
25136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
25137 $as_echo "$as_me: ${as__yel}WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe${as__std}" >&2;}
25138 need_locks=warn
25139 fi
25140 else
25141 need_locks=no
25142 fi
25143
25144
25145
25146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
25147 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
25148
25149 runpath_var=
25150 allow_undefined_flag_F77=
25151 always_export_symbols_F77=no
25152 archive_cmds_F77=
25153 archive_expsym_cmds_F77=
25154 compiler_needs_object_F77=no
25155 enable_shared_with_static_runtimes_F77=no
25156 export_dynamic_flag_spec_F77=
25157 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
25158 hardcode_automatic_F77=no
25159 hardcode_direct_F77=no
25160 hardcode_direct_absolute_F77=no
25161 hardcode_libdir_flag_spec_F77=
25162 hardcode_libdir_separator_F77=
25163 hardcode_minus_L_F77=no
25164 hardcode_shlibpath_var_F77=unsupported
25165 inherit_rpath_F77=no
25166 link_all_deplibs_F77=unknown
25167 module_cmds_F77=
25168 module_expsym_cmds_F77=
25169 old_archive_from_new_cmds_F77=
25170 old_archive_from_expsyms_cmds_F77=
25171 thread_safe_flag_spec_F77=
25172 whole_archive_flag_spec_F77=
25173 # include_expsyms should be a list of space-separated symbols to be *always*
25174 # included in the symbol list
25175 include_expsyms_F77=
25176 # exclude_expsyms can be an extended regexp of symbols to exclude
25177 # it will be wrapped by ' (' and ')$', so one must not match beginning or
25178 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
25179 # as well as any symbol that contains 'd'.
25180 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
25181 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
25182 # platforms (ab)use it in PIC code, but their linkers get confused if
25183 # the symbol is explicitly referenced. Since portable code cannot
25184 # rely on this symbol name, it's probably fine to never include it in
25185 # preloaded symbol tables.
25186 # Exclude shared library initialization/finalization symbols.
25187 extract_expsyms_cmds=
25188
25189 case $host_os in
25190 cygwin* | mingw* | pw32* | cegcc*)
25191 # FIXME: the MSVC++ port hasn't been tested in a loooong time
25192 # When not using gcc, we currently assume that we are using
25193 # Microsoft Visual C++.
25194 if test yes != "$GCC"; then
25195 with_gnu_ld=no
25196 fi
25197 ;;
25198 interix*)
25199 # we just hope/assume this is gcc and not c89 (= MSVC++)
25200 with_gnu_ld=yes
25201 ;;
25202 openbsd* | bitrig*)
25203 with_gnu_ld=no
25204 ;;
25205 esac
25206
25207 ld_shlibs_F77=yes
25208
25209 # On some targets, GNU ld is compatible enough with the native linker
25210 # that we're better off using the native interface for both.
25211 lt_use_gnu_ld_interface=no
25212 if test yes = "$with_gnu_ld"; then
25213 case $host_os in
25214 aix*)
25215 # The AIX port of GNU ld has always aspired to compatibility
25216 # with the native linker. However, as the warning in the GNU ld
25217 # block says, versions before 2.19.5* couldn't really create working
25218 # shared libraries, regardless of the interface used.
25219 case `$LD -v 2>&1` in
25220 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
25221 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
25222 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
25223 *)
25224 lt_use_gnu_ld_interface=yes
25225 ;;
25226 esac
25227 ;;
25228 *)
25229 lt_use_gnu_ld_interface=yes
25230 ;;
25231 esac
25232 fi
25233
25234 if test yes = "$lt_use_gnu_ld_interface"; then
25235 # If archive_cmds runs LD, not CC, wlarc should be empty
25236 wlarc='$wl'
25237
25238 # Set some defaults for GNU ld with shared library support. These
25239 # are reset later if shared libraries are not supported. Putting them
25240 # here allows them to be overridden if necessary.
25241 runpath_var=LD_RUN_PATH
25242 hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir'
25243 export_dynamic_flag_spec_F77='$wl--export-dynamic'
25244 # ancient GNU ld didn't support --whole-archive et. al.
25245 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
25246 whole_archive_flag_spec_F77=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
25247 else
25248 whole_archive_flag_spec_F77=
25249 fi
25250 supports_anon_versioning=no
25251 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
25252 *GNU\ gold*) supports_anon_versioning=yes ;;
25253 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
25254 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
25255 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
25256 *\ 2.11.*) ;; # other 2.11 versions
25257 *) supports_anon_versioning=yes ;;
25258 esac
25259
25260 # See if GNU ld supports shared libraries.
25261 case $host_os in
25262 aix[3-9]*)
25263 # On AIX/PPC, the GNU linker is very broken
25264 if test ia64 != "$host_cpu"; then
25265 ld_shlibs_F77=no
25266 cat <<_LT_EOF 1>&2
25267
25268 *** Warning: the GNU linker, at least up to release 2.19, is reported
25269 *** to be unable to reliably create shared libraries on AIX.
25270 *** Therefore, libtool is disabling shared libraries support. If you
25271 *** really care for shared libraries, you may want to install binutils
25272 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
25273 *** You will then need to restart the configuration process.
25274
25275 _LT_EOF
25276 fi
25277 ;;
25278
25279 amigaos*)
25280 case $host_cpu in
25281 powerpc)
25282 # see comment about AmigaOS4 .so support
25283 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
25284 archive_expsym_cmds_F77=''
25285 ;;
25286 m68k)
25287 archive_cmds_F77='$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)'
25288 hardcode_libdir_flag_spec_F77='-L$libdir'
25289 hardcode_minus_L_F77=yes
25290 ;;
25291 esac
25292 ;;
25293
25294 beos*)
25295 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
25296 allow_undefined_flag_F77=unsupported
25297 # Joseph Beckenbach <[email protected]> says some releases of gcc
25298 # support --undefined. This deserves some investigation. FIXME
25299 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
25300 else
25301 ld_shlibs_F77=no
25302 fi
25303 ;;
25304
25305 cygwin* | mingw* | pw32* | cegcc*)
25306 # _LT_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
25307 # as there is no search path for DLLs.
25308 hardcode_libdir_flag_spec_F77='-L$libdir'
25309 export_dynamic_flag_spec_F77='$wl--export-all-symbols'
25310 allow_undefined_flag_F77=unsupported
25311 always_export_symbols_F77=no
25312 enable_shared_with_static_runtimes_F77=yes
25313 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
25314 exclude_expsyms_F77='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
25315
25316 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
25317 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
25318 # If the export-symbols file already is a .def file, use it as
25319 # is; otherwise, prepend EXPORTS...
25320 archive_expsym_cmds_F77='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
25321 cp $export_symbols $output_objdir/$soname.def;
25322 else
25323 echo EXPORTS > $output_objdir/$soname.def;
25324 cat $export_symbols >> $output_objdir/$soname.def;
25325 fi~
25326 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
25327 else
25328 ld_shlibs_F77=no
25329 fi
25330 ;;
25331
25332 haiku*)
25333 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
25334 link_all_deplibs_F77=yes
25335 ;;
25336
25337 os2*)
25338 hardcode_libdir_flag_spec_F77='-L$libdir'
25339 hardcode_minus_L_F77=yes
25340 allow_undefined_flag_F77=unsupported
25341 shrext_cmds=.dll
25342 archive_cmds_F77='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
25343 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
25344 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
25345 $ECHO EXPORTS >> $output_objdir/$libname.def~
25346 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
25347 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
25348 emximp -o $lib $output_objdir/$libname.def'
25349 archive_expsym_cmds_F77='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
25350 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
25351 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
25352 $ECHO EXPORTS >> $output_objdir/$libname.def~
25353 prefix_cmds="$SED"~
25354 if test EXPORTS = "`$SED 1q $export_symbols`"; then
25355 prefix_cmds="$prefix_cmds -e 1d";
25356 fi~
25357 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
25358 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
25359 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
25360 emximp -o $lib $output_objdir/$libname.def'
25361 old_archive_From_new_cmds_F77='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
25362 enable_shared_with_static_runtimes_F77=yes
25363 ;;
25364
25365 interix[3-9]*)
25366 hardcode_direct_F77=no
25367 hardcode_shlibpath_var_F77=no
25368 hardcode_libdir_flag_spec_F77='$wl-rpath,$libdir'
25369 export_dynamic_flag_spec_F77='$wl-E'
25370 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
25371 # Instead, shared libraries are loaded at an image base (0x10000000 by
25372 # default) and relocated if they conflict, which is a slow very memory
25373 # consuming and fragmenting process. To avoid this, we pick a random,
25374 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
25375 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
25376 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
25377 archive_expsym_cmds_F77='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'
25378 ;;
25379
25380 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
25381 tmp_diet=no
25382 if test linux-dietlibc = "$host_os"; then
25383 case $cc_basename in
25384 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
25385 esac
25386 fi
25387 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
25388 && test no = "$tmp_diet"
25389 then
25390 tmp_addflag=' $pic_flag'
25391 tmp_sharedflag='-shared'
25392 case $cc_basename,$host_cpu in
25393 pgcc* | nvc*) # NVIDIA HPC C compiler
25394 whole_archive_flag_spec_F77='$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'
25395 tmp_addflag=' $pic_flag'
25396 ;;
25397 pgCC* | pgcpp* | pgc++* | nvc++*) # NVIDIA HPC C++ compiler
25398 whole_archive_flag_spec_F77='${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'
25399 tmp_addflag=' $pic_flag'
25400 ;;
25401 pgf77* | pgf90* | pgf95* | pgfortran* | nvfortran*)
25402 # NVIDIA HPC Fortran compiler
25403 whole_archive_flag_spec_F77='$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'
25404 tmp_addflag=' $pic_flag -Mnomain' ;;
25405 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
25406 tmp_addflag=' -i_dynamic' ;;
25407 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
25408 tmp_addflag=' -i_dynamic -nofor_main' ;;
25409 ifc* | ifort*) # Intel Fortran compiler
25410 tmp_addflag=' -nofor_main' ;;
25411 lf95*) # Lahey Fortran 8.1
25412 whole_archive_flag_spec_F77=
25413 tmp_sharedflag='--shared' ;;
25414 nagfor*) # NAGFOR 5.3
25415 tmp_sharedflag='-Wl,-shared' ;;
25416 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC
25417 tmp_sharedflag='-qmkshrobj'
25418 tmp_addflag= ;;
25419 xlf* | mpixlf*) # IBM xlf since version 13 knows about -qmkshrobj, see also below
25420 xlf_version=`$CC -qversion=verbose 2>&1 | sed -n 2p | sed -e "s/^Version: //" | cut -d'.' -f 1`
25421 if test $xlf_version -ge 13; then
25422 tmp_sharedflag='-qmkshrobj'
25423 tmp_addflag=
25424 fi
25425 ;;
25426 nvcc*) # Cuda Compiler Driver 2.2
25427 whole_archive_flag_spec_F77='$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'
25428 compiler_needs_object_F77=yes
25429 ;;
25430 *ncc* | *nfort*)
25431 # NEC Vector Engine Compiler Suite
25432 whole_archive_flag_spec_F77='${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'
25433 tmp_sharedflag='-shared'
25434 tmp_addflag=' $pic_flag'
25435 ;;
25436 *)
25437 case `$CC -V 2>&1 | sed 5q` in
25438 *Sun\ C*) # Sun C 5.9
25439 whole_archive_flag_spec_F77='$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'
25440 compiler_needs_object_F77=yes
25441 tmp_sharedflag='-G' ;;
25442 *Sun\ F*) # Sun Fortran 8.3
25443 tmp_sharedflag='-G' ;;
25444 *xlc*) # IBM XL C
25445 tmp_sharedflag='-qmkshrobj'
25446 tmp_addflag= ;;
25447 *xlf*) # IBM xlf since version 13 knows about -qmkshrobj
25448 xlf_version=`$CC -qversion=verbose 2>&1 | sed -n 2p | sed -e "s/^Version: //" | cut -d'.' -f 1`
25449 if test $xlf_version -ge 13; then
25450 tmp_sharedflag='-qmkshrobj'
25451 tmp_addflag=
25452 fi
25453 ;;
25454 esac
25455 esac
25456 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
25457
25458 if test yes = "$supports_anon_versioning"; then
25459 archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
25460 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
25461 echo "local: *; };" >> $output_objdir/$libname.ver~
25462 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
25463 fi
25464
25465 case $cc_basename in
25466 tcc*)
25467 export_dynamic_flag_spec_F77='-rdynamic'
25468 ;;
25469 xlf* | mpixlf*) # IBM xlf since version 13 knows about -qmkshrobj, see also above
25470 xlf_version=`$CC -qversion=verbose 2>&1 | sed -n 2p | sed -e "s/^Version: //" | cut -d'.' -f 1`
25471 if test $xlf_version -lt 13; then
25472 whole_archive_flag_spec_F77='--whole-archive$convenience --no-whole-archive'
25473 hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir'
25474 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
25475 if test yes = "$supports_anon_versioning"; then
25476 archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
25477 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
25478 echo "local: *; };" >> $output_objdir/$libname.ver~
25479 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
25480 fi
25481 fi
25482 ;;
25483 bgf* | bgxlf*)
25484 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
25485 whole_archive_flag_spec_F77='--whole-archive$convenience --no-whole-archive'
25486 hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir'
25487 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
25488 if test yes = "$supports_anon_versioning"; then
25489 archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
25490 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
25491 echo "local: *; };" >> $output_objdir/$libname.ver~
25492 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
25493 fi
25494 ;;
25495 esac
25496 case `$CC -V 2>&1 | sed 5q` in
25497 *Cray\ C* | *Cray\ Fortran*) # Cray C/C++/Fortran
25498 whole_archive_flag_spec_F77='$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'
25499 compiler_needs_object_F77=yes
25500 archive_cmds_need_lc_F77='no'
25501 archive_cmds_F77='save_STRIP=$STRIP; unset STRIP; $CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib; ret=\$?; STRIP=\$save_STRIP; export STRIP; (exit \$ret)'
25502 ;;
25503 esac
25504 else
25505 ld_shlibs_F77=no
25506 fi
25507 ;;
25508
25509 netbsd*)
25510 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
25511 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
25512 wlarc=
25513 else
25514 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
25515 archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
25516 fi
25517 ;;
25518
25519 solaris*)
25520 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
25521 ld_shlibs_F77=no
25522 cat <<_LT_EOF 1>&2
25523
25524 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
25525 *** create shared libraries on Solaris systems. Therefore, libtool
25526 *** is disabling shared libraries support. We urge you to upgrade GNU
25527 *** binutils to release 2.9.1 or newer. Another option is to modify
25528 *** your PATH or compiler configuration so that the native linker is
25529 *** used, and then restart.
25530
25531 _LT_EOF
25532 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
25533 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
25534 archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
25535 else
25536 ld_shlibs_F77=no
25537 fi
25538 ;;
25539
25540 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
25541 case `$LD -v 2>&1` in
25542 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
25543 ld_shlibs_F77=no
25544 cat <<_LT_EOF 1>&2
25545
25546 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
25547 *** reliably create shared libraries on SCO systems. Therefore, libtool
25548 *** is disabling shared libraries support. We urge you to upgrade GNU
25549 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
25550 *** your PATH or compiler configuration so that the native linker is
25551 *** used, and then restart.
25552
25553 _LT_EOF
25554 ;;
25555 *)
25556 # For security reasons, it is highly recommended that you always
25557 # use absolute paths for naming shared libraries, and exclude the
25558 # DT_RUNPATH tag from executables and libraries. But doing so
25559 # requires that you compile everything twice, which is a pain.
25560 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
25561 hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir'
25562 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
25563 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
25564 else
25565 ld_shlibs_F77=no
25566 fi
25567 ;;
25568 esac
25569 ;;
25570
25571 sunos4*)
25572 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25573 wlarc=
25574 hardcode_direct_F77=yes
25575 hardcode_shlibpath_var_F77=no
25576 ;;
25577
25578 *)
25579 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
25580 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
25581 archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
25582 else
25583 ld_shlibs_F77=no
25584 fi
25585 ;;
25586 esac
25587
25588 if test no = "$ld_shlibs_F77"; then
25589 runpath_var=
25590 hardcode_libdir_flag_spec_F77=
25591 export_dynamic_flag_spec_F77=
25592 whole_archive_flag_spec_F77=
25593 fi
25594 else
25595 # PORTME fill in a description of your system's linker (not GNU ld)
25596 case $host_os in
25597 aix3*)
25598 allow_undefined_flag_F77=unsupported
25599 always_export_symbols_F77=yes
25600 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
25601 # Note: this linker hardcodes the directories in LIBPATH if there
25602 # are no directories specified by -L.
25603 hardcode_minus_L_F77=yes
25604 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
25605 # Neither direct hardcoding nor static linking is supported with a
25606 # broken collect2.
25607 hardcode_direct_F77=unsupported
25608 fi
25609 ;;
25610
25611 aix[4-9]*)
25612 if test ia64 = "$host_cpu"; then
25613 # On IA64, the linker does run time linking by default, so we don't
25614 # have to do anything special.
25615 aix_use_runtimelinking=no
25616 exp_sym_flag='-Bexport'
25617 no_entry_flag=
25618 else
25619 # If we're using GNU nm, then we don't want the "-C" option.
25620 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
25621 # Without the "-l" option, or with the "-B" option, AIX nm treats
25622 # weak defined symbols like other global defined symbols, whereas
25623 # GNU nm marks them as "W".
25624 # While the 'weak' keyword is ignored in the Export File, we need
25625 # it in the Import File for the 'aix-soname' feature, so we have
25626 # to replace the "-B" option with "-P" for AIX nm.
25627 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
25628 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
25629 else
25630 export_symbols_cmds_F77='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
25631 fi
25632 aix_use_runtimelinking=no
25633
25634 # Test if we are trying to use run time linking or normal
25635 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
25636 # have runtime linking enabled, and use it for executables.
25637 # For shared libraries, we enable/disable runtime linking
25638 # depending on the kind of the shared library created -
25639 # when "with_aix_soname,aix_use_runtimelinking" is:
25640 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
25641 # "aix,yes" lib.so shared, rtl:yes, for executables
25642 # lib.a static archive
25643 # "both,no" lib.so.V(shr.o) shared, rtl:yes
25644 # lib.a(lib.so.V) shared, rtl:no, for executables
25645 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
25646 # lib.a(lib.so.V) shared, rtl:no
25647 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
25648 # lib.a static archive
25649 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
25650 for ld_flag in $LDFLAGS; do
25651 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
25652 aix_use_runtimelinking=yes
25653 break
25654 fi
25655 done
25656 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
25657 # With aix-soname=svr4, we create the lib.so.V shared archives only,
25658 # so we don't have lib.a shared libs to link our executables.
25659 # We have to force runtime linking in this case.
25660 aix_use_runtimelinking=yes
25661 LDFLAGS="$LDFLAGS -Wl,-brtl"
25662 fi
25663 ;;
25664 esac
25665
25666 exp_sym_flag='-bexport'
25667 no_entry_flag='-bnoentry'
25668 fi
25669
25670 # When large executables or shared objects are built, AIX ld can
25671 # have problems creating the table of contents. If linking a library
25672 # or program results in "error TOC overflow" add -mminimal-toc to
25673 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
25674 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
25675
25676 archive_cmds_F77=''
25677 hardcode_direct_F77=yes
25678 hardcode_direct_absolute_F77=yes
25679 hardcode_libdir_separator_F77=':'
25680 link_all_deplibs_F77=yes
25681 file_list_spec_F77='$wl-f,'
25682 case $with_aix_soname,$aix_use_runtimelinking in
25683 aix,*) ;; # traditional, no import file
25684 svr4,* | *,yes) # use import file
25685 # The Import File defines what to hardcode.
25686 hardcode_direct_F77=no
25687 hardcode_direct_absolute_F77=no
25688 ;;
25689 esac
25690
25691 if test yes = "$GCC"; then
25692 case $host_os in aix4.[012]|aix4.[012].*)
25693 # We only want to do this on AIX 4.2 and lower, the check
25694 # below for broken collect2 doesn't work under 4.3+
25695 collect2name=`$CC -print-prog-name=collect2`
25696 if test -f "$collect2name" &&
25697 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
25698 then
25699 # We have reworked collect2
25700 :
25701 else
25702 # We have old collect2
25703 hardcode_direct_F77=unsupported
25704 # It fails to find uninstalled libraries when the uninstalled
25705 # path is not listed in the libpath. Setting hardcode_minus_L
25706 # to unsupported forces relinking
25707 hardcode_minus_L_F77=yes
25708 hardcode_libdir_flag_spec_F77='-L$libdir'
25709 hardcode_libdir_separator_F77=
25710 fi
25711 ;;
25712 esac
25713 shared_flag='-shared'
25714 if test yes = "$aix_use_runtimelinking"; then
25715 shared_flag="$shared_flag "'$wl-G'
25716 fi
25717 # Need to ensure runtime linking is disabled for the traditional
25718 # shared library, or the linker may eventually find shared libraries
25719 # /with/ Import File - we do not want to mix them.
25720 shared_flag_aix='-shared'
25721 shared_flag_svr4='-shared $wl-G'
25722 else
25723 # not using gcc
25724 if test ia64 = "$host_cpu"; then
25725 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
25726 # chokes on -Wl,-G. The following line is correct:
25727 shared_flag='-G'
25728 else
25729 if test yes = "$aix_use_runtimelinking"; then
25730 shared_flag='$wl-G'
25731 else
25732 shared_flag='$wl-bM:SRE'
25733 fi
25734 shared_flag_aix='$wl-bM:SRE'
25735 shared_flag_svr4='$wl-G'
25736 fi
25737 fi
25738
25739 export_dynamic_flag_spec_F77='$wl-bexpall'
25740 # It seems that -bexpall does not export symbols beginning with
25741 # underscore (_), so it is better to generate a list of symbols to export.
25742 always_export_symbols_F77=yes
25743 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
25744 # Warning - without using the other runtime loading flags (-brtl),
25745 # -berok will link without error, but may produce a broken library.
25746 allow_undefined_flag_F77='-berok'
25747 # Determine the default libpath from the value encoded in an
25748 # empty executable.
25749 if test set = "${lt_cv_aix_libpath+set}"; then
25750 aix_libpath=$lt_cv_aix_libpath
25751 else
25752 if ${lt_cv_aix_libpath__F77+:} false; then :
25753 $as_echo_n "(cached) " >&6
25754 else
25755 cat > conftest.$ac_ext <<_ACEOF
25756 program main
25757
25758 end
25759 _ACEOF
25760 if ac_fn_f77_try_link "$LINENO"; then :
25761
25762 lt_aix_libpath_sed='
25763 /Import File Strings/,/^$/ {
25764 /^0/ {
25765 s/^0 *\([^ ]*\) *$/\1/
25766 p
25767 }
25768 }'
25769 lt_cv_aix_libpath__F77=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
25770 # Check for a 64-bit object if we didn't find anything.
25771 if test -z "$lt_cv_aix_libpath__F77"; then
25772 lt_cv_aix_libpath__F77=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
25773 fi
25774 fi
25775 rm -f core conftest.err conftest.$ac_objext \
25776 conftest$ac_exeext conftest.$ac_ext
25777 if test -z "$lt_cv_aix_libpath__F77"; then
25778 lt_cv_aix_libpath__F77=/usr/lib:/lib
25779 fi
25780
25781 fi
25782
25783 aix_libpath=$lt_cv_aix_libpath__F77
25784 fi
25785
25786 hardcode_libdir_flag_spec_F77='$wl-blibpath:$libdir:'"$aix_libpath"
25787 archive_expsym_cmds_F77='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
25788 else
25789 if test ia64 = "$host_cpu"; then
25790 hardcode_libdir_flag_spec_F77='$wl-R $libdir:/usr/lib:/lib'
25791 allow_undefined_flag_F77="-z nodefs"
25792 archive_expsym_cmds_F77="\$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"
25793 else
25794 # Determine the default libpath from the value encoded in an
25795 # empty executable.
25796 if test set = "${lt_cv_aix_libpath+set}"; then
25797 aix_libpath=$lt_cv_aix_libpath
25798 else
25799 if ${lt_cv_aix_libpath__F77+:} false; then :
25800 $as_echo_n "(cached) " >&6
25801 else
25802 cat > conftest.$ac_ext <<_ACEOF
25803 program main
25804
25805 end
25806 _ACEOF
25807 if ac_fn_f77_try_link "$LINENO"; then :
25808
25809 lt_aix_libpath_sed='
25810 /Import File Strings/,/^$/ {
25811 /^0/ {
25812 s/^0 *\([^ ]*\) *$/\1/
25813 p
25814 }
25815 }'
25816 lt_cv_aix_libpath__F77=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
25817 # Check for a 64-bit object if we didn't find anything.
25818 if test -z "$lt_cv_aix_libpath__F77"; then
25819 lt_cv_aix_libpath__F77=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
25820 fi
25821 fi
25822 rm -f core conftest.err conftest.$ac_objext \
25823 conftest$ac_exeext conftest.$ac_ext
25824 if test -z "$lt_cv_aix_libpath__F77"; then
25825 lt_cv_aix_libpath__F77=/usr/lib:/lib
25826 fi
25827
25828 fi
25829
25830 aix_libpath=$lt_cv_aix_libpath__F77
25831 fi
25832
25833 hardcode_libdir_flag_spec_F77='$wl-blibpath:$libdir:'"$aix_libpath"
25834 # Warning - without using the other run time loading flags,
25835 # -berok will link without error, but may produce a broken library.
25836 no_undefined_flag_F77=' $wl-bernotok'
25837 allow_undefined_flag_F77=' $wl-berok'
25838 if test yes = "$with_gnu_ld"; then
25839 # We only use this code for GNU lds that support --whole-archive.
25840 whole_archive_flag_spec_F77='$wl--whole-archive$convenience $wl--no-whole-archive'
25841 else
25842 # Exported symbols can be pulled into shared objects from archives
25843 whole_archive_flag_spec_F77='$convenience'
25844 fi
25845 archive_cmds_need_lc_F77=yes
25846 archive_expsym_cmds_F77='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
25847 # -brtl affects multiple linker settings, -berok does not and is overridden later
25848 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
25849 if test svr4 != "$with_aix_soname"; then
25850 # This is similar to how AIX traditionally builds its shared libraries.
25851 archive_expsym_cmds_F77="$archive_expsym_cmds_F77"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
25852 fi
25853 if test aix != "$with_aix_soname"; then
25854 archive_expsym_cmds_F77="$archive_expsym_cmds_F77"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
25855 else
25856 # used by -dlpreopen to get the symbols
25857 archive_expsym_cmds_F77="$archive_expsym_cmds_F77"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
25858 fi
25859 archive_expsym_cmds_F77="$archive_expsym_cmds_F77"'~$RM -r $output_objdir/$realname.d'
25860 fi
25861 fi
25862 ;;
25863
25864 amigaos*)
25865 case $host_cpu in
25866 powerpc)
25867 # see comment about AmigaOS4 .so support
25868 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
25869 archive_expsym_cmds_F77=''
25870 ;;
25871 m68k)
25872 archive_cmds_F77='$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)'
25873 hardcode_libdir_flag_spec_F77='-L$libdir'
25874 hardcode_minus_L_F77=yes
25875 ;;
25876 esac
25877 ;;
25878
25879 bsdi[45]*)
25880 export_dynamic_flag_spec_F77=-rdynamic
25881 ;;
25882
25883 cygwin* | mingw* | pw32* | cegcc*)
25884 # When not using gcc, we currently assume that we are using
25885 # Microsoft Visual C++.
25886 # hardcode_libdir_flag_spec is actually meaningless, as there is
25887 # no search path for DLLs.
25888 case $cc_basename in
25889 cl*)
25890 # Native MSVC
25891 hardcode_libdir_flag_spec_F77=' '
25892 allow_undefined_flag_F77=unsupported
25893 always_export_symbols_F77=yes
25894 file_list_spec_F77='@'
25895 # Tell ltmain to make .lib files, not .a files.
25896 libext=lib
25897 # Tell ltmain to make .dll files, not .so files.
25898 shrext_cmds=.dll
25899 # FIXME: Setting linknames here is a bad hack.
25900 archive_cmds_F77='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
25901 archive_expsym_cmds_F77='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
25902 cp "$export_symbols" "$output_objdir/$soname.def";
25903 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
25904 else
25905 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
25906 fi~
25907 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
25908 linknames='
25909 # The linker will not automatically build a static lib if we build a DLL.
25910 # _LT_TAGVAR(old_archive_from_new_cmds, F77)='true'
25911 enable_shared_with_static_runtimes_F77=yes
25912 exclude_expsyms_F77='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
25913 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
25914 # Don't use ranlib
25915 old_postinstall_cmds_F77='chmod 644 $oldlib'
25916 postlink_cmds_F77='lt_outputfile="@OUTPUT@"~
25917 lt_tool_outputfile="@TOOL_OUTPUT@"~
25918 case $lt_outputfile in
25919 *.exe|*.EXE) ;;
25920 *)
25921 lt_outputfile=$lt_outputfile.exe
25922 lt_tool_outputfile=$lt_tool_outputfile.exe
25923 ;;
25924 esac~
25925 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
25926 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
25927 $RM "$lt_outputfile.manifest";
25928 fi'
25929 ;;
25930 *)
25931 # Assume MSVC wrapper
25932 hardcode_libdir_flag_spec_F77=' '
25933 allow_undefined_flag_F77=unsupported
25934 # Tell ltmain to make .lib files, not .a files.
25935 libext=lib
25936 # Tell ltmain to make .dll files, not .so files.
25937 shrext_cmds=.dll
25938 # FIXME: Setting linknames here is a bad hack.
25939 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
25940 # The linker will automatically build a .lib file if we build a DLL.
25941 old_archive_from_new_cmds_F77='true'
25942 # FIXME: Should let the user specify the lib program.
25943 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
25944 enable_shared_with_static_runtimes_F77=yes
25945 ;;
25946 esac
25947 ;;
25948
25949 darwin* | rhapsody*)
25950
25951
25952 archive_cmds_need_lc_F77=no
25953 hardcode_direct_F77=no
25954 hardcode_automatic_F77=yes
25955 hardcode_shlibpath_var_F77=unsupported
25956 if test yes = "$lt_cv_ld_force_load"; then
25957 whole_archive_flag_spec_F77='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
25958 compiler_needs_object_F77=yes
25959 else
25960 whole_archive_flag_spec_F77=''
25961 fi
25962 link_all_deplibs_F77=yes
25963 allow_undefined_flag_F77=$_lt_dar_allow_undefined
25964 case $cc_basename in
25965 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
25966 *) _lt_dar_can_shared=$GCC ;;
25967 esac
25968 if test yes = "$_lt_dar_can_shared"; then
25969 output_verbose_link_cmd=func_echo_all
25970 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
25971 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
25972 archive_expsym_cmds_F77="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"
25973 module_expsym_cmds_F77="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"
25974
25975 else
25976 ld_shlibs_F77=no
25977 fi
25978
25979 ;;
25980
25981 dgux*)
25982 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25983 hardcode_libdir_flag_spec_F77='-L$libdir'
25984 hardcode_shlibpath_var_F77=no
25985 ;;
25986
25987 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25988 # support. Future versions do this automatically, but an explicit c++rt0.o
25989 # does not break anything, and helps significantly (at the cost of a little
25990 # extra space).
25991 freebsd2.2*)
25992 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25993 hardcode_libdir_flag_spec_F77='-R$libdir'
25994 hardcode_direct_F77=yes
25995 hardcode_shlibpath_var_F77=no
25996 ;;
25997
25998 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25999 freebsd2.*)
26000 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
26001 hardcode_direct_F77=yes
26002 hardcode_minus_L_F77=yes
26003 hardcode_shlibpath_var_F77=no
26004 ;;
26005
26006 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
26007 freebsd* | dragonfly*)
26008 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
26009 hardcode_libdir_flag_spec_F77='-R$libdir'
26010 hardcode_direct_F77=yes
26011 hardcode_shlibpath_var_F77=no
26012 ;;
26013
26014 hpux9*)
26015 if test yes = "$GCC"; then
26016 archive_cmds_F77='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
26017 else
26018 archive_cmds_F77='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
26019 fi
26020 hardcode_libdir_flag_spec_F77='$wl+b $wl$libdir'
26021 hardcode_libdir_separator_F77=:
26022 hardcode_direct_F77=yes
26023
26024 # hardcode_minus_L: Not really in the search PATH,
26025 # but as the default location of the library.
26026 hardcode_minus_L_F77=yes
26027 export_dynamic_flag_spec_F77='$wl-E'
26028 ;;
26029
26030 hpux10*)
26031 if test yes,no = "$GCC,$with_gnu_ld"; then
26032 archive_cmds_F77='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
26033 else
26034 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
26035 fi
26036 if test no = "$with_gnu_ld"; then
26037 hardcode_libdir_flag_spec_F77='$wl+b $wl$libdir'
26038 hardcode_libdir_separator_F77=:
26039 hardcode_direct_F77=yes
26040 hardcode_direct_absolute_F77=yes
26041 export_dynamic_flag_spec_F77='$wl-E'
26042 # hardcode_minus_L: Not really in the search PATH,
26043 # but as the default location of the library.
26044 hardcode_minus_L_F77=yes
26045 fi
26046 ;;
26047
26048 hpux11*)
26049 if test yes,no = "$GCC,$with_gnu_ld"; then
26050 case $host_cpu in
26051 hppa*64*)
26052 archive_cmds_F77='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
26053 ;;
26054 ia64*)
26055 archive_cmds_F77='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
26056 ;;
26057 *)
26058 archive_cmds_F77='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
26059 ;;
26060 esac
26061 else
26062 case $host_cpu in
26063 hppa*64*)
26064 archive_cmds_F77='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
26065 ;;
26066 ia64*)
26067 archive_cmds_F77='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
26068 ;;
26069 *)
26070 archive_cmds_F77='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
26071 ;;
26072 esac
26073 fi
26074 if test no = "$with_gnu_ld"; then
26075 hardcode_libdir_flag_spec_F77='$wl+b $wl$libdir'
26076 hardcode_libdir_separator_F77=:
26077
26078 case $host_cpu in
26079 hppa*64*|ia64*)
26080 hardcode_direct_F77=no
26081 hardcode_shlibpath_var_F77=no
26082 ;;
26083 *)
26084 hardcode_direct_F77=yes
26085 hardcode_direct_absolute_F77=yes
26086 export_dynamic_flag_spec_F77='$wl-E'
26087
26088 # hardcode_minus_L: Not really in the search PATH,
26089 # but as the default location of the library.
26090 hardcode_minus_L_F77=yes
26091 ;;
26092 esac
26093 fi
26094 ;;
26095
26096 irix5* | irix6* | nonstopux*)
26097 if test yes = "$GCC"; then
26098 archive_cmds_F77='$CC -shared $pic_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'
26099 # Try to use the -exported_symbol ld option, if it does not
26100 # work, assume that -exports_file does not work either and
26101 # implicitly export all symbols.
26102 # This should be the same for all languages, so no per-tag cache variable.
26103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
26104 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
26105 if ${lt_cv_irix_exported_symbol+:} false; then :
26106 $as_echo_n "(cached) " >&6
26107 else
26108 save_LDFLAGS=$LDFLAGS
26109 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
26110 cat > conftest.$ac_ext <<_ACEOF
26111
26112 subroutine foo
26113 end
26114 _ACEOF
26115 if ac_fn_f77_try_link "$LINENO"; then :
26116 lt_cv_irix_exported_symbol=yes
26117 else
26118 lt_cv_irix_exported_symbol=no
26119 fi
26120 rm -f core conftest.err conftest.$ac_objext \
26121 conftest$ac_exeext conftest.$ac_ext
26122 LDFLAGS=$save_LDFLAGS
26123 fi
26124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
26125 case "$lt_cv_irix_exported_symbol" in #(
26126 yes|ok|yes[\ ,]*) :
26127 $as_echo "${as__grn}$lt_cv_irix_exported_symbol${as__std}" >&6 ;; #(
26128 no|failed|unsupported|no[\ ,]*) :
26129 $as_echo "${as__red}$lt_cv_irix_exported_symbol${as__std}" >&6 ;; #(
26130 *) :
26131 $as_echo "${as__blu}$lt_cv_irix_exported_symbol${as__std}" >&6 ;;
26132 esac; }
26133 if test yes = "$lt_cv_irix_exported_symbol"; then
26134 archive_expsym_cmds_F77='$CC -shared $pic_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 $wl-exports_file $wl$export_symbols -o $lib'
26135 fi
26136 else
26137 archive_cmds_F77='$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'
26138 archive_expsym_cmds_F77='$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'
26139 fi
26140 archive_cmds_need_lc_F77='no'
26141 hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir'
26142 hardcode_libdir_separator_F77=:
26143 inherit_rpath_F77=yes
26144 link_all_deplibs_F77=yes
26145 ;;
26146
26147 linux*)
26148 case $cc_basename in
26149 tcc*)
26150 # Fabrice Bellard et al's Tiny C Compiler
26151 ld_shlibs_F77=yes
26152 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
26153 ;;
26154 esac
26155 case `$CC -V 2>&1 | sed 5q` in
26156 *Cray\ C* | *Cray\ Fortran*) # Cray C/C++/Fortran
26157 whole_archive_flag_spec_F77='$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'
26158 compiler_needs_object_F77=yes
26159 archive_cmds_F77='save_STRIP=$STRIP; unset STRIP; $CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib; ret=\$?; STRIP=\$save_STRIP; export STRIP; (exit \$ret)'
26160 ;;
26161 *)
26162 ld_shlibs_F77=no
26163 ;;
26164 esac
26165 ;;
26166
26167 netbsd*)
26168 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
26169 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
26170 else
26171 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
26172 fi
26173 hardcode_libdir_flag_spec_F77='-R$libdir'
26174 hardcode_direct_F77=yes
26175 hardcode_shlibpath_var_F77=no
26176 ;;
26177
26178 newsos6)
26179 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
26180 hardcode_direct_F77=yes
26181 hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir'
26182 hardcode_libdir_separator_F77=:
26183 hardcode_shlibpath_var_F77=no
26184 ;;
26185
26186 *nto* | *qnx*)
26187 ;;
26188
26189 openbsd* | bitrig*)
26190 if test -f /usr/libexec/ld.so; then
26191 hardcode_direct_F77=yes
26192 hardcode_shlibpath_var_F77=no
26193 hardcode_direct_absolute_F77=yes
26194 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
26195 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
26196 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
26197 hardcode_libdir_flag_spec_F77='$wl-rpath,$libdir'
26198 export_dynamic_flag_spec_F77='$wl-E'
26199 else
26200 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
26201 hardcode_libdir_flag_spec_F77='$wl-rpath,$libdir'
26202 fi
26203 else
26204 ld_shlibs_F77=no
26205 fi
26206 ;;
26207
26208 os2*)
26209 hardcode_libdir_flag_spec_F77='-L$libdir'
26210 hardcode_minus_L_F77=yes
26211 allow_undefined_flag_F77=unsupported
26212 shrext_cmds=.dll
26213 archive_cmds_F77='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
26214 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
26215 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
26216 $ECHO EXPORTS >> $output_objdir/$libname.def~
26217 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
26218 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
26219 emximp -o $lib $output_objdir/$libname.def'
26220 archive_expsym_cmds_F77='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
26221 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
26222 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
26223 $ECHO EXPORTS >> $output_objdir/$libname.def~
26224 prefix_cmds="$SED"~
26225 if test EXPORTS = "`$SED 1q $export_symbols`"; then
26226 prefix_cmds="$prefix_cmds -e 1d";
26227 fi~
26228 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
26229 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
26230 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
26231 emximp -o $lib $output_objdir/$libname.def'
26232 old_archive_From_new_cmds_F77='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
26233 enable_shared_with_static_runtimes_F77=yes
26234 ;;
26235
26236 osf3*)
26237 if test yes = "$GCC"; then
26238 allow_undefined_flag_F77=' $wl-expect_unresolved $wl\*'
26239 archive_cmds_F77='$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'
26240 else
26241 allow_undefined_flag_F77=' -expect_unresolved \*'
26242 archive_cmds_F77='$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'
26243 fi
26244 archive_cmds_need_lc_F77='no'
26245 hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir'
26246 hardcode_libdir_separator_F77=:
26247 ;;
26248
26249 osf4* | osf5*) # as osf3* with the addition of -msym flag
26250 if test yes = "$GCC"; then
26251 allow_undefined_flag_F77=' $wl-expect_unresolved $wl\*'
26252 archive_cmds_F77='$CC -shared$allow_undefined_flag $pic_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'
26253 hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir'
26254 else
26255 allow_undefined_flag_F77=' -expect_unresolved \*'
26256 archive_cmds_F77='$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'
26257 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
26258 $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'
26259
26260 # Both c and cxx compiler support -rpath directly
26261 hardcode_libdir_flag_spec_F77='-rpath $libdir'
26262 fi
26263 archive_cmds_need_lc_F77='no'
26264 hardcode_libdir_separator_F77=:
26265 ;;
26266
26267 solaris*)
26268 no_undefined_flag_F77=' -z defs'
26269 if test yes = "$GCC"; then
26270 wlarc='$wl'
26271 archive_cmds_F77='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
26272 archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
26273 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
26274 else
26275 case `$CC -V 2>&1` in
26276 *"Compilers 5.0"*)
26277 wlarc=''
26278 archive_cmds_F77='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
26279 archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
26280 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
26281 ;;
26282 *)
26283 wlarc='$wl'
26284 archive_cmds_F77='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
26285 archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
26286 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
26287 ;;
26288 esac
26289 fi
26290 hardcode_libdir_flag_spec_F77='-R$libdir'
26291 hardcode_shlibpath_var_F77=no
26292 case $host_os in
26293 solaris2.[0-5] | solaris2.[0-5].*) ;;
26294 *)
26295 # The compiler driver will combine and reorder linker options,
26296 # but understands '-z linker_flag'. GCC discards it without '$wl',
26297 # but is careful enough not to reorder.
26298 # Supported since Solaris 2.6 (maybe 2.5.1?)
26299 if test yes = "$GCC"; then
26300 whole_archive_flag_spec_F77='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
26301 else
26302 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
26303 fi
26304 ;;
26305 esac
26306 link_all_deplibs_F77=yes
26307 ;;
26308
26309 sunos4*)
26310 if test sequent = "$host_vendor"; then
26311 # Use $CC to link under sequent, because it throws in some extra .o
26312 # files that make .init and .fini sections work.
26313 archive_cmds_F77='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
26314 else
26315 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
26316 fi
26317 hardcode_libdir_flag_spec_F77='-L$libdir'
26318 hardcode_direct_F77=yes
26319 hardcode_minus_L_F77=yes
26320 hardcode_shlibpath_var_F77=no
26321 ;;
26322
26323 sysv4)
26324 case $host_vendor in
26325 sni)
26326 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
26327 hardcode_direct_F77=yes # is this really true???
26328 ;;
26329 siemens)
26330 ## LD is ld it makes a PLAMLIB
26331 ## CC just makes a GrossModule.
26332 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
26333 reload_cmds_F77='$CC -r -o $output$reload_objs'
26334 hardcode_direct_F77=no
26335 ;;
26336 motorola)
26337 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
26338 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
26339 ;;
26340 esac
26341 runpath_var='LD_RUN_PATH'
26342 hardcode_shlibpath_var_F77=no
26343 ;;
26344
26345 sysv4.3*)
26346 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
26347 hardcode_shlibpath_var_F77=no
26348 export_dynamic_flag_spec_F77='-Bexport'
26349 ;;
26350
26351 sysv4*MP*)
26352 if test -d /usr/nec; then
26353 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
26354 hardcode_shlibpath_var_F77=no
26355 runpath_var=LD_RUN_PATH
26356 hardcode_runpath_var=yes
26357 ld_shlibs_F77=yes
26358 fi
26359 ;;
26360
26361 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
26362 no_undefined_flag_F77='$wl-z,text'
26363 archive_cmds_need_lc_F77=no
26364 hardcode_shlibpath_var_F77=no
26365 runpath_var='LD_RUN_PATH'
26366
26367 if test yes = "$GCC"; then
26368 archive_cmds_F77='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
26369 archive_expsym_cmds_F77='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
26370 else
26371 archive_cmds_F77='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
26372 archive_expsym_cmds_F77='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
26373 fi
26374 ;;
26375
26376 sysv5* | sco3.2v5* | sco5v6*)
26377 # Note: We CANNOT use -z defs as we might desire, because we do not
26378 # link with -lc, and that would cause any symbols used from libc to
26379 # always be unresolved, which means just about no library would
26380 # ever link correctly. If we're not using GNU ld we use -z text
26381 # though, which does catch some bad symbols but isn't as heavy-handed
26382 # as -z defs.
26383 no_undefined_flag_F77='$wl-z,text'
26384 allow_undefined_flag_F77='$wl-z,nodefs'
26385 archive_cmds_need_lc_F77=no
26386 hardcode_shlibpath_var_F77=no
26387 hardcode_libdir_flag_spec_F77='$wl-R,$libdir'
26388 hardcode_libdir_separator_F77=':'
26389 link_all_deplibs_F77=yes
26390 export_dynamic_flag_spec_F77='$wl-Bexport'
26391 runpath_var='LD_RUN_PATH'
26392
26393 if test yes = "$GCC"; then
26394 archive_cmds_F77='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
26395 archive_expsym_cmds_F77='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
26396 else
26397 archive_cmds_F77='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
26398 archive_expsym_cmds_F77='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
26399 fi
26400 ;;
26401
26402 uts4*)
26403 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
26404 hardcode_libdir_flag_spec_F77='-L$libdir'
26405 hardcode_shlibpath_var_F77=no
26406 ;;
26407
26408 *)
26409 ld_shlibs_F77=no
26410 ;;
26411 esac
26412
26413 if test sni = "$host_vendor"; then
26414 case $host in
26415 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
26416 export_dynamic_flag_spec_F77='$wl-Blargedynsym'
26417 ;;
26418 esac
26419 fi
26420 fi
26421
26422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
26423 case "$ld_shlibs_F77" in #(
26424 yes|ok|yes[\ ,]*) :
26425 $as_echo "${as__grn}$ld_shlibs_F77${as__std}" >&6 ;; #(
26426 no|failed|unsupported|no[\ ,]*) :
26427 $as_echo "${as__red}$ld_shlibs_F77${as__std}" >&6 ;; #(
26428 *) :
26429 $as_echo "${as__blu}$ld_shlibs_F77${as__std}" >&6 ;;
26430 esac; }
26431 test no = "$ld_shlibs_F77" && can_build_shared=no
26432
26433 with_gnu_ld_F77=$with_gnu_ld
26434
26435
26436
26437
26438
26439
26440 #
26441 # Do we need to explicitly link libc?
26442 #
26443 case "x$archive_cmds_need_lc_F77" in
26444 x|xyes)
26445 # Assume -lc should be added
26446 archive_cmds_need_lc_F77=yes
26447
26448 if test yes,yes = "$GCC,$enable_shared"; then
26449 case $archive_cmds_F77 in
26450 *'~'*)
26451 # FIXME: we may have to deal with multi-command sequences.
26452 ;;
26453 '$CC '*)
26454 # Test whether the compiler implicitly links with -lc since on some
26455 # systems, -lgcc has to come before -lc. If gcc already passes -lc
26456 # to ld, don't add -lc before -lgcc.
26457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
26458 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
26459 if ${lt_cv_archive_cmds_need_lc_F77+:} false; then :
26460 $as_echo_n "(cached) " >&6
26461 else
26462 $RM conftest*
26463 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
26464
26465 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
26466 (eval $ac_compile) 2>&5
26467 ac_status=$?
26468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26469 test $ac_status = 0; } 2>conftest.err; then
26470 soname=conftest
26471 lib=conftest
26472 libobjs=conftest.$ac_objext
26473 deplibs=
26474 wl=$lt_prog_compiler_wl_F77
26475 pic_flag=$lt_prog_compiler_pic_F77
26476 compiler_flags=-v
26477 linker_flags=-v
26478 verstring=
26479 output_objdir=.
26480 libname=conftest
26481 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
26482 allow_undefined_flag_F77=
26483 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
26484 (eval $archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
26485 ac_status=$?
26486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26487 test $ac_status = 0; }
26488 then
26489 lt_cv_archive_cmds_need_lc_F77=no
26490 else
26491 lt_cv_archive_cmds_need_lc_F77=yes
26492 fi
26493 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
26494 else
26495 cat conftest.err 1>&5
26496 fi
26497 $RM conftest*
26498
26499 fi
26500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_F77" >&5
26501 case "$lt_cv_archive_cmds_need_lc_F77" in #(
26502 yes|ok|yes[\ ,]*) :
26503 $as_echo "${as__grn}$lt_cv_archive_cmds_need_lc_F77${as__std}" >&6 ;; #(
26504 no|failed|unsupported|no[\ ,]*) :
26505 $as_echo "${as__red}$lt_cv_archive_cmds_need_lc_F77${as__std}" >&6 ;; #(
26506 *) :
26507 $as_echo "${as__blu}$lt_cv_archive_cmds_need_lc_F77${as__std}" >&6 ;;
26508 esac; }
26509 archive_cmds_need_lc_F77=$lt_cv_archive_cmds_need_lc_F77
26510 ;;
26511 esac
26512 fi
26513 ;;
26514 esac
26515
26516
26517
26518
26519
26520
26521
26522
26523
26524
26525
26526
26527
26528
26529
26530
26531
26532
26533
26534
26535
26536
26537
26538
26539
26540
26541
26542
26543
26544
26545
26546
26547
26548
26549
26550
26551
26552
26553
26554
26555
26556
26557
26558
26559
26560
26561
26562
26563
26564
26565
26566
26567
26568
26569
26570
26571
26572
26573
26574
26575
26576
26577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
26578 $as_echo_n "checking dynamic linker characteristics... " >&6; }
26579
26580 library_names_spec=
26581 libname_spec='lib$name'
26582 soname_spec=
26583 shrext_cmds=.so
26584 postinstall_cmds=
26585 postuninstall_cmds=
26586 finish_cmds=
26587 finish_eval=
26588 shlibpath_var=
26589 shlibpath_overrides_runpath=unknown
26590 version_type=none
26591 dynamic_linker="$host_os ld.so"
26592 sys_lib_dlsearch_path_spec="/lib /usr/lib"
26593 need_lib_prefix=unknown
26594 hardcode_into_libs=no
26595
26596 # when you set need_version to no, make sure it does not cause -set_version
26597 # flags to be left without arguments
26598 need_version=unknown
26599
26600
26601
26602 case $host_os in
26603 aix3*)
26604 version_type=linux # correct to gnu/linux during the next big refactor
26605 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
26606 shlibpath_var=LIBPATH
26607
26608 # AIX 3 has no versioning support, so we append a major version to the name.
26609 soname_spec='$libname$release$shared_ext$major'
26610 ;;
26611
26612 aix[4-9]*)
26613 version_type=linux # correct to gnu/linux during the next big refactor
26614 need_lib_prefix=no
26615 need_version=no
26616 hardcode_into_libs=yes
26617 if test ia64 = "$host_cpu"; then
26618 # AIX 5 supports IA64
26619 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
26620 shlibpath_var=LD_LIBRARY_PATH
26621 else
26622 # With GCC up to 2.95.x, collect2 would create an import file
26623 # for dependence libraries. The import file would start with
26624 # the line '#! .'. This would cause the generated library to
26625 # depend on '.', always an invalid library. This was fixed in
26626 # development snapshots of GCC prior to 3.0.
26627 case $host_os in
26628 aix4 | aix4.[01] | aix4.[01].*)
26629 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
26630 echo ' yes '
26631 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
26632 :
26633 else
26634 can_build_shared=no
26635 fi
26636 ;;
26637 esac
26638 # Using Import Files as archive members, it is possible to support
26639 # filename-based versioning of shared library archives on AIX. While
26640 # this would work for both with and without runtime linking, it will
26641 # prevent static linking of such archives. So we do filename-based
26642 # shared library versioning with .so extension only, which is used
26643 # when both runtime linking and shared linking is enabled.
26644 # Unfortunately, runtime linking may impact performance, so we do
26645 # not want this to be the default eventually. Also, we use the
26646 # versioned .so libs for executables only if there is the -brtl
26647 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
26648 # To allow for filename-based versioning support, we need to create
26649 # libNAME.so.V as an archive file, containing:
26650 # *) an Import File, referring to the versioned filename of the
26651 # archive as well as the shared archive member, telling the
26652 # bitwidth (32 or 64) of that shared object, and providing the
26653 # list of exported symbols of that shared object, eventually
26654 # decorated with the 'weak' keyword
26655 # *) the shared object with the F_LOADONLY flag set, to really avoid
26656 # it being seen by the linker.
26657 # At run time we better use the real file rather than another symlink,
26658 # but for link time we create the symlink libNAME.so -> libNAME.so.V
26659
26660 case $with_aix_soname,$aix_use_runtimelinking in
26661 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
26662 # soname into executable. Probably we can add versioning support to
26663 # collect2, so additional links can be useful in future.
26664 aix,yes) # traditional libtool
26665 dynamic_linker='AIX unversionable lib.so'
26666 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
26667 # instead of lib<name>.a to let people know that these are not
26668 # typical AIX shared libraries.
26669 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
26670 ;;
26671 aix,no) # traditional AIX only
26672 dynamic_linker='AIX lib.a(lib.so.V)'
26673 # We preserve .a as extension for shared libraries through AIX4.2
26674 # and later when we are not doing run time linking.
26675 library_names_spec='$libname$release.a $libname.a'
26676 soname_spec='$libname$release$shared_ext$major'
26677 ;;
26678 svr4,*) # full svr4 only
26679 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
26680 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
26681 # We do not specify a path in Import Files, so LIBPATH fires.
26682 shlibpath_overrides_runpath=yes
26683 ;;
26684 *,yes) # both, prefer svr4
26685 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
26686 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
26687 # unpreferred sharedlib libNAME.a needs extra handling
26688 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
26689 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
26690 # We do not specify a path in Import Files, so LIBPATH fires.
26691 shlibpath_overrides_runpath=yes
26692 ;;
26693 *,no) # both, prefer aix
26694 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
26695 library_names_spec='$libname$release.a $libname.a'
26696 soname_spec='$libname$release$shared_ext$major'
26697 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
26698 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
26699 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
26700 ;;
26701 esac
26702 shlibpath_var=LIBPATH
26703 fi
26704 ;;
26705
26706 amigaos*)
26707 case $host_cpu in
26708 powerpc)
26709 # Since July 2007 AmigaOS4 officially supports .so libraries.
26710 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
26711 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
26712 ;;
26713 m68k)
26714 library_names_spec='$libname.ixlibrary $libname.a'
26715 # Create ${libname}_ixlibrary.a entries in /sys/libs.
26716 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
26717 ;;
26718 esac
26719 ;;
26720
26721 beos*)
26722 library_names_spec='$libname$shared_ext'
26723 dynamic_linker="$host_os ld.so"
26724 shlibpath_var=LIBRARY_PATH
26725 ;;
26726
26727 bsdi[45]*)
26728 version_type=linux # correct to gnu/linux during the next big refactor
26729 need_version=no
26730 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
26731 soname_spec='$libname$release$shared_ext$major'
26732 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
26733 shlibpath_var=LD_LIBRARY_PATH
26734 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
26735 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
26736 # the default ld.so.conf also contains /usr/contrib/lib and
26737 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
26738 # libtool to hard-code these into programs
26739 ;;
26740
26741 cygwin* | mingw* | pw32* | cegcc*)
26742 version_type=windows
26743 shrext_cmds=.dll
26744 need_version=no
26745 need_lib_prefix=no
26746
26747 case $GCC,$cc_basename in
26748 yes,*)
26749 # gcc
26750 library_names_spec='$libname.dll.a'
26751 # DLL is installed to $(libdir)/../bin by postinstall_cmds
26752 postinstall_cmds='base_file=`basename \$file`~
26753 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
26754 dldir=$destdir/`dirname \$dlpath`~
26755 test -d \$dldir || mkdir -p \$dldir~
26756 $install_prog $dir/$dlname \$dldir/$dlname~
26757 chmod a+x \$dldir/$dlname~
26758 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
26759 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
26760 fi'
26761 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
26762 dlpath=$dir/\$dldll~
26763 $RM \$dlpath'
26764 shlibpath_overrides_runpath=yes
26765
26766 case $host_os in
26767 cygwin*)
26768 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
26769 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
26770
26771 ;;
26772 mingw* | cegcc*)
26773 # MinGW DLLs use traditional 'lib' prefix
26774 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
26775 ;;
26776 pw32*)
26777 # pw32 DLLs use 'pw' prefix rather than 'lib'
26778 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
26779 ;;
26780 esac
26781 dynamic_linker='Win32 ld.exe'
26782 ;;
26783
26784 *,cl*)
26785 # Native MSVC
26786 libname_spec='$name'
26787 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
26788 library_names_spec='$libname.dll.lib'
26789
26790 case $build_os in
26791 mingw*)
26792 sys_lib_search_path_spec=
26793 lt_save_ifs=$IFS
26794 IFS=';'
26795 for lt_path in $LIB
26796 do
26797 IFS=$lt_save_ifs
26798 # Let DOS variable expansion print the short 8.3 style file name.
26799 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
26800 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
26801 done
26802 IFS=$lt_save_ifs
26803 # Convert to MSYS style.
26804 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
26805 ;;
26806 cygwin*)
26807 # Convert to unix form, then to dos form, then back to unix form
26808 # but this time dos style (no spaces!) so that the unix form looks
26809 # like /cygdrive/c/PROGRA~1:/cygdr...
26810 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
26811 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
26812 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
26813 ;;
26814 *)
26815 sys_lib_search_path_spec=$LIB
26816 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
26817 # It is most probably a Windows format PATH.
26818 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
26819 else
26820 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
26821 fi
26822 # FIXME: find the short name or the path components, as spaces are
26823 # common. (e.g. "Program Files" -> "PROGRA~1")
26824 ;;
26825 esac
26826
26827 # DLL is installed to $(libdir)/../bin by postinstall_cmds
26828 postinstall_cmds='base_file=`basename \$file`~
26829 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
26830 dldir=$destdir/`dirname \$dlpath`~
26831 test -d \$dldir || mkdir -p \$dldir~
26832 $install_prog $dir/$dlname \$dldir/$dlname'
26833 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
26834 dlpath=$dir/\$dldll~
26835 $RM \$dlpath'
26836 shlibpath_overrides_runpath=yes
26837 dynamic_linker='Win32 link.exe'
26838 ;;
26839
26840 *)
26841 # Assume MSVC wrapper
26842 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
26843 dynamic_linker='Win32 ld.exe'
26844 ;;
26845 esac
26846 # FIXME: first we should search . and the directory the executable is in
26847 shlibpath_var=PATH
26848 ;;
26849
26850 darwin* | rhapsody*)
26851 dynamic_linker="$host_os dyld"
26852 version_type=darwin
26853 need_lib_prefix=no
26854 need_version=no
26855 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
26856 soname_spec='$libname$release$major$shared_ext'
26857 shlibpath_overrides_runpath=yes
26858 shlibpath_var=DYLD_LIBRARY_PATH
26859 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
26860
26861 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
26862 ;;
26863
26864 dgux*)
26865 version_type=linux # correct to gnu/linux during the next big refactor
26866 need_lib_prefix=no
26867 need_version=no
26868 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
26869 soname_spec='$libname$release$shared_ext$major'
26870 shlibpath_var=LD_LIBRARY_PATH
26871 ;;
26872
26873 freebsd* | dragonfly*)
26874 # DragonFly does not have aout. When/if they implement a new
26875 # versioning mechanism, adjust this.
26876 if test -x /usr/bin/objformat; then
26877 objformat=`/usr/bin/objformat`
26878 else
26879 case $host_os in
26880 freebsd[23].*) objformat=aout ;;
26881 *) objformat=elf ;;
26882 esac
26883 fi
26884 version_type=freebsd-$objformat
26885 case $version_type in
26886 freebsd-elf*)
26887 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
26888 soname_spec='$libname$release$shared_ext$major'
26889 need_version=no
26890 need_lib_prefix=no
26891 ;;
26892 freebsd-*)
26893 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
26894 need_version=yes
26895 ;;
26896 esac
26897 shlibpath_var=LD_LIBRARY_PATH
26898 case $host_os in
26899 freebsd2.*)
26900 shlibpath_overrides_runpath=yes
26901 ;;
26902 freebsd3.[01]* | freebsdelf3.[01]*)
26903 shlibpath_overrides_runpath=yes
26904 hardcode_into_libs=yes
26905 ;;
26906 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
26907 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
26908 shlibpath_overrides_runpath=no
26909 hardcode_into_libs=yes
26910 ;;
26911 *) # from 4.6 on, and DragonFly
26912 shlibpath_overrides_runpath=yes
26913 hardcode_into_libs=yes
26914 ;;
26915 esac
26916 ;;
26917
26918 haiku*)
26919 version_type=linux # correct to gnu/linux during the next big refactor
26920 need_lib_prefix=no
26921 need_version=no
26922 dynamic_linker="$host_os runtime_loader"
26923 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
26924 soname_spec='$libname$release$shared_ext$major'
26925 shlibpath_var=LIBRARY_PATH
26926 shlibpath_overrides_runpath=no
26927 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
26928 hardcode_into_libs=yes
26929 ;;
26930
26931 hpux9* | hpux10* | hpux11*)
26932 # Give a soname corresponding to the major version so that dld.sl refuses to
26933 # link against other versions.
26934 version_type=sunos
26935 need_lib_prefix=no
26936 need_version=no
26937 case $host_cpu in
26938 ia64*)
26939 shrext_cmds='.so'
26940 hardcode_into_libs=yes
26941 dynamic_linker="$host_os dld.so"
26942 shlibpath_var=LD_LIBRARY_PATH
26943 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
26944 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
26945 soname_spec='$libname$release$shared_ext$major'
26946 if test 32 = "$HPUX_IA64_MODE"; then
26947 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
26948 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
26949 else
26950 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
26951 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
26952 fi
26953 ;;
26954 hppa*64*)
26955 shrext_cmds='.sl'
26956 hardcode_into_libs=yes
26957 dynamic_linker="$host_os dld.sl"
26958 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
26959 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
26960 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
26961 soname_spec='$libname$release$shared_ext$major'
26962 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
26963 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
26964 ;;
26965 *)
26966 shrext_cmds='.sl'
26967 dynamic_linker="$host_os dld.sl"
26968 shlibpath_var=SHLIB_PATH
26969 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
26970 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
26971 soname_spec='$libname$release$shared_ext$major'
26972 ;;
26973 esac
26974 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
26975 postinstall_cmds='chmod 555 $lib'
26976 # or fails outright, so override atomically:
26977 install_override_mode=555
26978 ;;
26979
26980 interix[3-9]*)
26981 version_type=linux # correct to gnu/linux during the next big refactor
26982 need_lib_prefix=no
26983 need_version=no
26984 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
26985 soname_spec='$libname$release$shared_ext$major'
26986 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
26987 shlibpath_var=LD_LIBRARY_PATH
26988 shlibpath_overrides_runpath=no
26989 hardcode_into_libs=yes
26990 ;;
26991
26992 irix5* | irix6* | nonstopux*)
26993 case $host_os in
26994 nonstopux*) version_type=nonstopux ;;
26995 *)
26996 if test yes = "$lt_cv_prog_gnu_ld"; then
26997 version_type=linux # correct to gnu/linux during the next big refactor
26998 else
26999 version_type=irix
27000 fi ;;
27001 esac
27002 need_lib_prefix=no
27003 need_version=no
27004 soname_spec='$libname$release$shared_ext$major'
27005 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
27006 case $host_os in
27007 irix5* | nonstopux*)
27008 libsuff= shlibsuff=
27009 ;;
27010 *)
27011 case $LD in # libtool.m4 will add one of these switches to LD
27012 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
27013 libsuff= shlibsuff= libmagic=32-bit;;
27014 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
27015 libsuff=32 shlibsuff=N32 libmagic=N32;;
27016 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
27017 libsuff=64 shlibsuff=64 libmagic=64-bit;;
27018 *) libsuff= shlibsuff= libmagic=never-match;;
27019 esac
27020 ;;
27021 esac
27022 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
27023 shlibpath_overrides_runpath=no
27024 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
27025 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
27026 hardcode_into_libs=yes
27027 ;;
27028
27029 # No shared lib support for Linux oldld, aout, or coff.
27030 linux*oldld* | linux*aout* | linux*coff*)
27031 dynamic_linker=no
27032 ;;
27033
27034 linux*android*)
27035 version_type=none # Android doesn't support versioned libraries.
27036 need_lib_prefix=no
27037 need_version=no
27038 library_names_spec='$libname$release$shared_ext'
27039 soname_spec='$libname$release$shared_ext'
27040 finish_cmds=
27041 shlibpath_var=LD_LIBRARY_PATH
27042 shlibpath_overrides_runpath=yes
27043
27044 # This implies no fast_install, which is unacceptable.
27045 # Some rework will be needed to allow for fast_install
27046 # before this can be enabled.
27047 hardcode_into_libs=yes
27048
27049 dynamic_linker='Android linker'
27050 # Don't embed -rpath directories since the linker doesn't support them.
27051 hardcode_libdir_flag_spec_F77='-L$libdir'
27052 ;;
27053
27054 # This must be glibc/ELF.
27055 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
27056 version_type=linux # correct to gnu/linux during the next big refactor
27057 need_lib_prefix=no
27058 need_version=no
27059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
27060 soname_spec='$libname$release$shared_ext$major'
27061 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
27062 shlibpath_var=LD_LIBRARY_PATH
27063 shlibpath_overrides_runpath=no
27064
27065 # Some binutils ld are patched to set DT_RUNPATH
27066 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
27067 $as_echo_n "(cached) " >&6
27068 else
27069 lt_cv_shlibpath_overrides_runpath=no
27070 save_LDFLAGS=$LDFLAGS
27071 save_libdir=$libdir
27072 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_F77\"; \
27073 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_F77\""
27074 cat > conftest.$ac_ext <<_ACEOF
27075 program main
27076
27077 end
27078 _ACEOF
27079 if ac_fn_f77_try_link "$LINENO"; then :
27080 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
27081 lt_cv_shlibpath_overrides_runpath=yes
27082 fi
27083 fi
27084 rm -f core conftest.err conftest.$ac_objext \
27085 conftest$ac_exeext conftest.$ac_ext
27086 LDFLAGS=$save_LDFLAGS
27087 libdir=$save_libdir
27088
27089 fi
27090
27091 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
27092
27093 # This implies no fast_install, which is unacceptable.
27094 # Some rework will be needed to allow for fast_install
27095 # before this can be enabled.
27096 hardcode_into_libs=yes
27097
27098 # Ideally, we could use ldconfig to report *all* directores which are
27099 # searched for libraries, however this is still not possible. Aside from not
27100 # being certain /sbin/ldconfig is available, command
27101 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
27102 # even though it is searched at run-time. Try to do the best guess by
27103 # appending ld.so.conf contents (and includes) to the search path.
27104 if test -f /etc/ld.so.conf; then
27105 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' ' '`
27106 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
27107 fi
27108
27109 # We used to test for /lib/ld.so.1 and disable shared libraries on
27110 # powerpc, because MkLinux only supported shared libraries with the
27111 # GNU dynamic linker. Since this was broken with cross compilers,
27112 # most powerpc-linux boxes support dynamic linking these days and
27113 # people can always --disable-shared, the test was removed, and we
27114 # assume the GNU/Linux dynamic linker is in use.
27115 dynamic_linker='GNU/Linux ld.so'
27116 ;;
27117
27118 netbsd*)
27119 version_type=sunos
27120 need_lib_prefix=no
27121 need_version=no
27122 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
27123 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
27124 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
27125 dynamic_linker='NetBSD (a.out) ld.so'
27126 else
27127 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
27128 soname_spec='$libname$release$shared_ext$major'
27129 dynamic_linker='NetBSD ld.elf_so'
27130 fi
27131 shlibpath_var=LD_LIBRARY_PATH
27132 shlibpath_overrides_runpath=yes
27133 hardcode_into_libs=yes
27134 ;;
27135
27136 newsos6)
27137 version_type=linux # correct to gnu/linux during the next big refactor
27138 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
27139 shlibpath_var=LD_LIBRARY_PATH
27140 shlibpath_overrides_runpath=yes
27141 ;;
27142
27143 *nto* | *qnx*)
27144 version_type=qnx
27145 need_lib_prefix=no
27146 need_version=no
27147 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
27148 soname_spec='$libname$release$shared_ext$major'
27149 shlibpath_var=LD_LIBRARY_PATH
27150 shlibpath_overrides_runpath=no
27151 hardcode_into_libs=yes
27152 dynamic_linker='ldqnx.so'
27153 ;;
27154
27155 openbsd* | bitrig*)
27156 version_type=sunos
27157 sys_lib_dlsearch_path_spec=/usr/lib
27158 need_lib_prefix=no
27159 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
27160 need_version=no
27161 else
27162 need_version=yes
27163 fi
27164 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
27165 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
27166 shlibpath_var=LD_LIBRARY_PATH
27167 shlibpath_overrides_runpath=yes
27168 ;;
27169
27170 os2*)
27171 libname_spec='$name'
27172 version_type=windows
27173 shrext_cmds=.dll
27174 need_version=no
27175 need_lib_prefix=no
27176 # OS/2 can only load a DLL with a base name of 8 characters or less.
27177 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
27178 v=$($ECHO $release$versuffix | tr -d .-);
27179 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
27180 $ECHO $n$v`$shared_ext'
27181 library_names_spec='${libname}_dll.$libext'
27182 dynamic_linker='OS/2 ld.exe'
27183 shlibpath_var=BEGINLIBPATH
27184 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
27185 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
27186 postinstall_cmds='base_file=`basename \$file`~
27187 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
27188 dldir=$destdir/`dirname \$dlpath`~
27189 test -d \$dldir || mkdir -p \$dldir~
27190 $install_prog $dir/$dlname \$dldir/$dlname~
27191 chmod a+x \$dldir/$dlname~
27192 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
27193 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
27194 fi'
27195 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
27196 dlpath=$dir/\$dldll~
27197 $RM \$dlpath'
27198 ;;
27199
27200 osf3* | osf4* | osf5*)
27201 version_type=osf
27202 need_lib_prefix=no
27203 need_version=no
27204 soname_spec='$libname$release$shared_ext$major'
27205 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
27206 shlibpath_var=LD_LIBRARY_PATH
27207 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
27208 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
27209 ;;
27210
27211 rdos*)
27212 dynamic_linker=no
27213 ;;
27214
27215 solaris*)
27216 version_type=linux # correct to gnu/linux during the next big refactor
27217 need_lib_prefix=no
27218 need_version=no
27219 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
27220 soname_spec='$libname$release$shared_ext$major'
27221 shlibpath_var=LD_LIBRARY_PATH
27222 shlibpath_overrides_runpath=yes
27223 hardcode_into_libs=yes
27224 # ldd complains unless libraries are executable
27225 postinstall_cmds='chmod +x $lib'
27226 ;;
27227
27228 sunos4*)
27229 version_type=sunos
27230 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
27231 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
27232 shlibpath_var=LD_LIBRARY_PATH
27233 shlibpath_overrides_runpath=yes
27234 if test yes = "$with_gnu_ld"; then
27235 need_lib_prefix=no
27236 fi
27237 need_version=yes
27238 ;;
27239
27240 sysv4 | sysv4.3*)
27241 version_type=linux # correct to gnu/linux during the next big refactor
27242 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
27243 soname_spec='$libname$release$shared_ext$major'
27244 shlibpath_var=LD_LIBRARY_PATH
27245 case $host_vendor in
27246 sni)
27247 shlibpath_overrides_runpath=no
27248 need_lib_prefix=no
27249 runpath_var=LD_RUN_PATH
27250 ;;
27251 siemens)
27252 need_lib_prefix=no
27253 ;;
27254 motorola)
27255 need_lib_prefix=no
27256 need_version=no
27257 shlibpath_overrides_runpath=no
27258 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
27259 ;;
27260 esac
27261 ;;
27262
27263 sysv4*MP*)
27264 if test -d /usr/nec; then
27265 version_type=linux # correct to gnu/linux during the next big refactor
27266 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
27267 soname_spec='$libname$shared_ext.$major'
27268 shlibpath_var=LD_LIBRARY_PATH
27269 fi
27270 ;;
27271
27272 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
27273 version_type=sco
27274 need_lib_prefix=no
27275 need_version=no
27276 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
27277 soname_spec='$libname$release$shared_ext$major'
27278 shlibpath_var=LD_LIBRARY_PATH
27279 shlibpath_overrides_runpath=yes
27280 hardcode_into_libs=yes
27281 if test yes = "$with_gnu_ld"; then
27282 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
27283 else
27284 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
27285 case $host_os in
27286 sco3.2v5*)
27287 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
27288 ;;
27289 esac
27290 fi
27291 sys_lib_dlsearch_path_spec='/usr/lib'
27292 ;;
27293
27294 tpf*)
27295 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
27296 version_type=linux # correct to gnu/linux during the next big refactor
27297 need_lib_prefix=no
27298 need_version=no
27299 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
27300 shlibpath_var=LD_LIBRARY_PATH
27301 shlibpath_overrides_runpath=no
27302 hardcode_into_libs=yes
27303 ;;
27304
27305 uts4*)
27306 version_type=linux # correct to gnu/linux during the next big refactor
27307 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
27308 soname_spec='$libname$release$shared_ext$major'
27309 shlibpath_var=LD_LIBRARY_PATH
27310 ;;
27311
27312 *)
27313 dynamic_linker=no
27314 ;;
27315 esac
27316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
27317 case "$dynamic_linker" in #(
27318 yes|ok|yes[\ ,]*) :
27319 $as_echo "${as__grn}$dynamic_linker${as__std}" >&6 ;; #(
27320 no|failed|unsupported|no[\ ,]*) :
27321 $as_echo "${as__red}$dynamic_linker${as__std}" >&6 ;; #(
27322 *) :
27323 $as_echo "${as__blu}$dynamic_linker${as__std}" >&6 ;;
27324 esac; }
27325 test no = "$dynamic_linker" && can_build_shared=no
27326
27327 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
27328 if test yes = "$GCC"; then
27329 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
27330 fi
27331
27332 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
27333 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
27334 fi
27335
27336 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
27337 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
27338 fi
27339
27340 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
27341 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
27342
27343 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
27344 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
27345
27346 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
27347 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
27348
27349
27350
27351
27352
27353
27354
27355
27356
27357
27358
27359
27360
27361
27362
27363
27364
27365
27366
27367
27368
27369
27370
27371
27372
27373
27374
27375
27376
27377
27378
27379
27380
27381
27382
27383
27384
27385
27386
27387
27388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
27389 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
27390 hardcode_action_F77=
27391 if test -n "$hardcode_libdir_flag_spec_F77" ||
27392 test -n "$runpath_var_F77" ||
27393 test yes = "$hardcode_automatic_F77"; then
27394
27395 # We can hardcode non-existent directories.
27396 if test no != "$hardcode_direct_F77" &&
27397 # If the only mechanism to avoid hardcoding is shlibpath_var, we
27398 # have to relink, otherwise we might link with an installed library
27399 # when we should be linking with a yet-to-be-installed one
27400 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, F77)" &&
27401 test no != "$hardcode_minus_L_F77"; then
27402 # Linking always hardcodes the temporary library directory.
27403 hardcode_action_F77=relink
27404 else
27405 # We can link without hardcoding, and we can hardcode nonexisting dirs.
27406 hardcode_action_F77=immediate
27407 fi
27408 else
27409 # We cannot hardcode anything, or else we can only hardcode existing
27410 # directories.
27411 hardcode_action_F77=unsupported
27412 fi
27413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
27414 case "$hardcode_action_F77" in #(
27415 yes|ok|yes[\ ,]*) :
27416 $as_echo "${as__grn}$hardcode_action_F77${as__std}" >&6 ;; #(
27417 no|failed|unsupported|no[\ ,]*) :
27418 $as_echo "${as__red}$hardcode_action_F77${as__std}" >&6 ;; #(
27419 *) :
27420 $as_echo "${as__blu}$hardcode_action_F77${as__std}" >&6 ;;
27421 esac; }
27422
27423 if test relink = "$hardcode_action_F77" ||
27424 test yes = "$inherit_rpath_F77"; then
27425 # Fast installation is not supported
27426 enable_fast_install=no
27427 elif test yes = "$shlibpath_overrides_runpath" ||
27428 test no = "$enable_shared"; then
27429 # Fast installation is not necessary
27430 enable_fast_install=needless
27431 fi
27432
27433
27434
27435
27436
27437
27438
27439 fi # test -n "$compiler"
27440
27441 GCC=$lt_save_GCC
27442 CC=$lt_save_CC
27443 CFLAGS=$lt_save_CFLAGS
27444 fi # test yes != "$_lt_disable_F77"
27445
27446 ac_ext=c
27447 ac_cpp='$CPP $CPPFLAGS'
27448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27451
27452
27453
27454 ac_ext=${ac_fc_srcext-f}
27455 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
27456 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
27457 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
27458
27459
27460 if test -z "$FC" || test no = "$FC"; then
27461 _lt_disable_FC=yes
27462 fi
27463
27464 archive_cmds_need_lc_FC=no
27465 allow_undefined_flag_FC=
27466 always_export_symbols_FC=no
27467 archive_expsym_cmds_FC=
27468 export_dynamic_flag_spec_FC=
27469 hardcode_direct_FC=no
27470 hardcode_direct_absolute_FC=no
27471 hardcode_libdir_flag_spec_FC=
27472 hardcode_libdir_separator_FC=
27473 hardcode_minus_L_FC=no
27474 hardcode_automatic_FC=no
27475 inherit_rpath_FC=no
27476 module_cmds_FC=
27477 module_expsym_cmds_FC=
27478 link_all_deplibs_FC=unknown
27479 old_archive_cmds_FC=$old_archive_cmds
27480 reload_flag_FC=$reload_flag
27481 reload_cmds_FC=$reload_cmds
27482 no_undefined_flag_FC=
27483 whole_archive_flag_spec_FC=
27484 enable_shared_with_static_runtimes_FC=no
27485
27486 # Source file extension for fc test sources.
27487 ac_ext=${ac_fc_srcext-f}
27488
27489 # Object file extension for compiled fc test sources.
27490 objext=o
27491 objext_FC=$objext
27492
27493 # No sense in running all these tests if we already determined that
27494 # the FC compiler isn't working. Some variables (like enable_shared)
27495 # are currently assumed to apply to all compilers on this platform,
27496 # and will be corrupted by setting them based on a non-working compiler.
27497 if test yes != "$_lt_disable_FC"; then
27498 # Code to be used in simple compile tests
27499 lt_simple_compile_test_code="\
27500 subroutine t
27501 return
27502 end
27503 "
27504
27505 # Code to be used in simple link tests
27506 lt_simple_link_test_code="\
27507 program t
27508 end
27509 "
27510
27511 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
27512
27513
27514
27515
27516
27517
27518 # If no C compiler was specified, use CC.
27519 LTCC=${LTCC-"$CC"}
27520
27521 # If no C compiler flags were specified, use CFLAGS.
27522 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
27523
27524 # Allow CC to be a program name with arguments.
27525 compiler=$CC
27526
27527
27528 # save warnings/boilerplate of simple test code
27529 ac_outfile=conftest.$ac_objext
27530 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
27531 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
27532 _lt_compiler_boilerplate=`cat conftest.err`
27533 $RM conftest*
27534
27535 ac_outfile=conftest.$ac_objext
27536 echo "$lt_simple_link_test_code" >conftest.$ac_ext
27537 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
27538 _lt_linker_boilerplate=`cat conftest.err`
27539 $RM -r conftest*
27540
27541
27542 # Allow CC to be a program name with arguments.
27543 lt_save_CC=$CC
27544 lt_save_GCC=$GCC
27545 lt_save_CFLAGS=$CFLAGS
27546 CC=${FC-"f95"}
27547 CFLAGS=$FCFLAGS
27548 compiler=$CC
27549 GCC=$ac_cv_fc_compiler_gnu
27550
27551 compiler_FC=$CC
27552 func_cc_basename $compiler
27553 cc_basename=$func_cc_basename_result
27554
27555
27556 if test -n "$compiler"; then
27557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
27558 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
27559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
27560 case "$can_build_shared" in #(
27561 yes|ok|yes[\ ,]*) :
27562 $as_echo "${as__grn}$can_build_shared${as__std}" >&6 ;; #(
27563 no|failed|unsupported|no[\ ,]*) :
27564 $as_echo "${as__red}$can_build_shared${as__std}" >&6 ;; #(
27565 *) :
27566 $as_echo "${as__blu}$can_build_shared${as__std}" >&6 ;;
27567 esac; }
27568
27569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
27570 $as_echo_n "checking whether to build shared libraries... " >&6; }
27571 test no = "$can_build_shared" && enable_shared=no
27572
27573 # On AIX, shared libraries and static libraries use the same namespace, and
27574 # are all built from PIC.
27575 case $host_os in
27576 aix3*)
27577 test yes = "$enable_shared" && enable_static=no
27578 if test -n "$RANLIB"; then
27579 archive_cmds="$archive_cmds~\$RANLIB \$lib"
27580 postinstall_cmds='$RANLIB $lib'
27581 fi
27582 ;;
27583 aix[4-9]*)
27584 if test ia64 != "$host_cpu"; then
27585 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
27586 yes,aix,yes) ;; # shared object as lib.so file only
27587 yes,svr4,*) ;; # shared object as lib.so archive member only
27588 yes,*) enable_static=no ;; # shared object in lib.a archive as well
27589 esac
27590 fi
27591 ;;
27592 esac
27593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
27594 case "$enable_shared" in #(
27595 yes|ok|yes[\ ,]*) :
27596 $as_echo "${as__grn}$enable_shared${as__std}" >&6 ;; #(
27597 no|failed|unsupported|no[\ ,]*) :
27598 $as_echo "${as__red}$enable_shared${as__std}" >&6 ;; #(
27599 *) :
27600 $as_echo "${as__blu}$enable_shared${as__std}" >&6 ;;
27601 esac; }
27602
27603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
27604 $as_echo_n "checking whether to build static libraries... " >&6; }
27605 # Make sure either enable_shared or enable_static is yes.
27606 test yes = "$enable_shared" || enable_static=yes
27607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
27608 case "$enable_static" in #(
27609 yes|ok|yes[\ ,]*) :
27610 $as_echo "${as__grn}$enable_static${as__std}" >&6 ;; #(
27611 no|failed|unsupported|no[\ ,]*) :
27612 $as_echo "${as__red}$enable_static${as__std}" >&6 ;; #(
27613 *) :
27614 $as_echo "${as__blu}$enable_static${as__std}" >&6 ;;
27615 esac; }
27616
27617 GCC_FC=$ac_cv_fc_compiler_gnu
27618 LD_FC=$LD
27619
27620 ## CAVEAT EMPTOR:
27621 ## There is no encapsulation within the following macros, do not change
27622 ## the running order or otherwise move them around unless you know exactly
27623 ## what you are doing...
27624 # Dependencies to place before and after the object being linked:
27625 predep_objects_FC=
27626 postdep_objects_FC=
27627 predeps_FC=
27628 postdeps_FC=
27629 compiler_lib_search_path_FC=
27630
27631 cat > conftest.$ac_ext <<_LT_EOF
27632 subroutine foo
27633 implicit none
27634 integer a
27635 a=0
27636 return
27637 end
27638 _LT_EOF
27639
27640
27641 _lt_libdeps_save_CFLAGS=$CFLAGS
27642 case "$CC $CFLAGS " in #(
27643 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
27644 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
27645 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
27646 esac
27647
27648 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
27649 (eval $ac_compile) 2>&5
27650 ac_status=$?
27651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27652 test $ac_status = 0; }; then
27653 # Parse the compiler output and extract the necessary
27654 # objects, libraries and library flags.
27655
27656 # Sentinel used to keep track of whether or not we are before
27657 # the conftest object file.
27658 pre_test_object_deps_done=no
27659
27660 for p in `eval "$output_verbose_link_cmd"`; do
27661 case $prev$p in
27662
27663 -L* | -R* | -l*)
27664 # Some compilers place space between "-{L,R}" and the path.
27665 # Remove the space.
27666 if test x-L = "$p" ||
27667 test x-R = "$p"; then
27668 prev=$p
27669 continue
27670 fi
27671
27672 # Expand the sysroot to ease extracting the directories later.
27673 if test -z "$prev"; then
27674 case $p in
27675 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
27676 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
27677 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
27678 esac
27679 fi
27680 case $p in
27681 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
27682 esac
27683 if test no = "$pre_test_object_deps_done"; then
27684 case $prev in
27685 -L | -R)
27686 # Internal compiler library paths should come after those
27687 # provided the user. The postdeps already come after the
27688 # user supplied libs so there is no need to process them.
27689 if test -z "$compiler_lib_search_path_FC"; then
27690 compiler_lib_search_path_FC=$prev$p
27691 else
27692 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} $prev$p"
27693 fi
27694 ;;
27695 # The "-l" case would never come before the object being
27696 # linked, so don't bother handling this case.
27697 esac
27698 else
27699 if test -z "$postdeps_FC"; then
27700 postdeps_FC=$prev$p
27701 else
27702 postdeps_FC="${postdeps_FC} $prev$p"
27703 fi
27704 fi
27705 prev=
27706 ;;
27707
27708 -*)
27709 # Ignore all other options starting with a dash
27710 # (e.g., "-mIPOPT_obj_output_file_name=<tmp_obj>" used by Intel compiler)
27711 ;;
27712
27713 *.lto.$objext) ;; # Ignore GCC LTO objects
27714 *.$objext)
27715 # This assumes that the test object file only shows up
27716 # once in the compiler output.
27717 if test "$p" = "conftest.$objext"; then
27718 pre_test_object_deps_done=yes
27719 continue
27720 fi
27721
27722 if test no = "$pre_test_object_deps_done"; then
27723 if test -z "$predep_objects_FC"; then
27724 predep_objects_FC=$p
27725 else
27726 predep_objects_FC="$predep_objects_FC $p"
27727 fi
27728 else
27729 if test -z "$postdep_objects_FC"; then
27730 postdep_objects_FC=$p
27731 else
27732 postdep_objects_FC="$postdep_objects_FC $p"
27733 fi
27734 fi
27735 ;;
27736
27737 *) ;; # Ignore the rest.
27738
27739 esac
27740 done
27741
27742 # Clean up.
27743 rm -f a.out a.exe
27744 else
27745 echo "libtool.m4: error: problem compiling FC test program"
27746 fi
27747
27748 $RM -f confest.$objext
27749 CFLAGS=$_lt_libdeps_save_CFLAGS
27750
27751 # PORTME: override above test on systems where it is broken
27752
27753
27754 case " $postdeps_FC " in
27755 *" -lc "*) archive_cmds_need_lc_FC=no ;;
27756 esac
27757 compiler_lib_search_dirs_FC=
27758 if test -n "${compiler_lib_search_path_FC}"; then
27759 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | $SED -e 's! -L! !g' -e 's!^ !!'`
27760 fi
27761
27762
27763
27764
27765
27766
27767
27768
27769
27770
27771
27772
27773
27774 lt_prog_compiler_wl_FC=
27775 lt_prog_compiler_pic_FC=
27776 lt_prog_compiler_static_FC=
27777
27778
27779 if test yes = "$GCC"; then
27780 lt_prog_compiler_wl_FC='-Wl,'
27781 lt_prog_compiler_static_FC='-static'
27782
27783 case $host_os in
27784 aix*)
27785 # All AIX code is PIC.
27786 if test ia64 = "$host_cpu"; then
27787 # AIX 5 now supports IA64 processor
27788 lt_prog_compiler_static_FC='-Bstatic'
27789 fi
27790 lt_prog_compiler_pic_FC='-fPIC'
27791 ;;
27792
27793 amigaos*)
27794 case $host_cpu in
27795 powerpc)
27796 # see comment about AmigaOS4 .so support
27797 lt_prog_compiler_pic_FC='-fPIC'
27798 ;;
27799 m68k)
27800 # FIXME: we need at least 68020 code to build shared libraries, but
27801 # adding the '-m68020' flag to GCC prevents building anything better,
27802 # like '-m68040'.
27803 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
27804 ;;
27805 esac
27806 ;;
27807
27808 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
27809 # PIC is the default for these OSes.
27810 ;;
27811
27812 mingw* | cygwin* | pw32* | os2* | cegcc*)
27813 # This hack is so that the source file can tell whether it is being
27814 # built for inclusion in a dll (and should export symbols for example).
27815 # Although the cygwin gcc ignores -fPIC, still need this for old-style
27816 # (--disable-auto-import) libraries
27817 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
27818 case $host_os in
27819 os2*)
27820 lt_prog_compiler_static_FC='$wl-static'
27821 ;;
27822 esac
27823 ;;
27824
27825 darwin* | rhapsody*)
27826 # PIC is the default on this platform
27827 # Common symbols not allowed in MH_DYLIB files
27828 lt_prog_compiler_pic_FC='-fno-common'
27829 ;;
27830
27831 haiku*)
27832 # PIC is the default for Haiku.
27833 # The "-static" flag exists, but is broken.
27834 lt_prog_compiler_static_FC=
27835 ;;
27836
27837 hpux*)
27838 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
27839 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
27840 # sets the default TLS model and affects inlining.
27841 case $host_cpu in
27842 hppa*64*)
27843 # +Z the default
27844 ;;
27845 *)
27846 lt_prog_compiler_pic_FC='-fPIC'
27847 ;;
27848 esac
27849 ;;
27850
27851 interix[3-9]*)
27852 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
27853 # Instead, we relocate shared libraries at runtime.
27854 ;;
27855
27856 msdosdjgpp*)
27857 # Just because we use GCC doesn't mean we suddenly get shared libraries
27858 # on systems that don't support them.
27859 lt_prog_compiler_can_build_shared_FC=no
27860 enable_shared=no
27861 ;;
27862
27863 *nto* | *qnx*)
27864 # QNX uses GNU C++, but need to define -shared option too, otherwise
27865 # it will coredump.
27866 lt_prog_compiler_pic_FC='-fPIC -shared'
27867 ;;
27868
27869 sysv4*MP*)
27870 if test -d /usr/nec; then
27871 lt_prog_compiler_pic_FC=-Kconform_pic
27872 fi
27873 ;;
27874
27875 *)
27876 lt_prog_compiler_pic_FC='-fPIC'
27877 ;;
27878 esac
27879
27880 case $cc_basename in
27881 nvcc*) # Cuda Compiler Driver 2.2
27882 lt_prog_compiler_wl_FC='-Xlinker '
27883 if test -n "$lt_prog_compiler_pic_FC"; then
27884 lt_prog_compiler_pic_FC="-Xcompiler $lt_prog_compiler_pic_FC"
27885 fi
27886 ;;
27887 esac
27888 else
27889 # PORTME Check for flag to pass linker flags through the system compiler.
27890 case $host_os in
27891 aix*)
27892 lt_prog_compiler_wl_FC='-Wl,'
27893 if test ia64 = "$host_cpu"; then
27894 # AIX 5 now supports IA64 processor
27895 lt_prog_compiler_static_FC='-Bstatic'
27896 else
27897 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
27898 fi
27899 ;;
27900
27901 darwin* | rhapsody*)
27902 # PIC is the default on this platform
27903 # Common symbols not allowed in MH_DYLIB files
27904 lt_prog_compiler_pic_FC='-fno-common'
27905 case $cc_basename in
27906 nagfor*)
27907 # NAG Fortran compiler
27908 lt_prog_compiler_wl_FC='-Wl,-Wl,,'
27909 lt_prog_compiler_pic_FC='-PIC'
27910 lt_prog_compiler_static_FC='-Bstatic'
27911 ;;
27912 esac
27913 ;;
27914
27915 mingw* | cygwin* | pw32* | os2* | cegcc*)
27916 # This hack is so that the source file can tell whether it is being
27917 # built for inclusion in a dll (and should export symbols for example).
27918 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
27919 case $host_os in
27920 os2*)
27921 lt_prog_compiler_static_FC='$wl-static'
27922 ;;
27923 esac
27924 ;;
27925
27926 hpux9* | hpux10* | hpux11*)
27927 lt_prog_compiler_wl_FC='-Wl,'
27928 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
27929 # not for PA HP-UX.
27930 case $host_cpu in
27931 hppa*64*|ia64*)
27932 # +Z the default
27933 ;;
27934 *)
27935 lt_prog_compiler_pic_FC='+Z'
27936 ;;
27937 esac
27938 # Is there a better lt_prog_compiler_static that works with the bundled CC?
27939 lt_prog_compiler_static_FC='$wl-a ${wl}archive'
27940 ;;
27941
27942 irix5* | irix6* | nonstopux*)
27943 lt_prog_compiler_wl_FC='-Wl,'
27944 # PIC (with -KPIC) is the default.
27945 lt_prog_compiler_static_FC='-non_shared'
27946 ;;
27947
27948 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
27949 case $cc_basename in
27950 # old Intel for x86_64, which still supported -KPIC.
27951 ecc*)
27952 lt_prog_compiler_wl_FC='-Wl,'
27953 lt_prog_compiler_pic_FC='-KPIC'
27954 lt_prog_compiler_static_FC='-static'
27955 ;;
27956 # icc used to be incompatible with GCC.
27957 # ICC 10 doesn't accept -KPIC any more.
27958 icc* | ifort*)
27959 lt_prog_compiler_wl_FC='-Wl,'
27960 lt_prog_compiler_pic_FC='-fPIC'
27961 lt_prog_compiler_static_FC='-static'
27962 ;;
27963 # Lahey Fortran 8.1.
27964 lf95*)
27965 lt_prog_compiler_wl_FC='-Wl,'
27966 lt_prog_compiler_pic_FC='--shared'
27967 lt_prog_compiler_static_FC='--static'
27968 ;;
27969 nagfor*)
27970 # NAG Fortran compiler
27971 lt_prog_compiler_wl_FC='-Wl,-Wl,,'
27972 lt_prog_compiler_pic_FC='-PIC'
27973 lt_prog_compiler_static_FC='-Bstatic'
27974 ;;
27975 tcc*)
27976 # Fabrice Bellard et al's Tiny C Compiler
27977 lt_prog_compiler_wl_FC='-Wl,'
27978 lt_prog_compiler_pic_FC='-fPIC'
27979 lt_prog_compiler_static_FC='-static'
27980 ;;
27981 # Catch both prefix and suffix variants: armflang, amdflang, flang<number>
27982 *flang*)
27983 # Flang compiler
27984 lt_prog_compiler_wl_FC='-Wl,'
27985 lt_prog_compiler_pic_FC='-fPIC -DPIC'
27986 lt_prog_compiler_static_FC='-static'
27987 ;;
27988 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran* | nvc* | nvfortran*)
27989 # NVIDIA HPC Compilers
27990 lt_prog_compiler_wl_FC='-Wl,'
27991 lt_prog_compiler_pic_FC='-fpic'
27992 lt_prog_compiler_static_FC='-Bstatic'
27993 ;;
27994 ccc*)
27995 lt_prog_compiler_wl_FC='-Wl,'
27996 # All Alpha code is PIC.
27997 lt_prog_compiler_static_FC='-non_shared'
27998 ;;
27999 xl* | bgxl* | bgf* | mpixl*)
28000 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
28001 lt_prog_compiler_wl_FC='-Wl,'
28002 lt_prog_compiler_pic_FC='-qpic'
28003 lt_prog_compiler_static_FC='-qstaticlink'
28004 ;;
28005 *ncc* | *nfort*)
28006 # NEC Vector Engine compiler suite
28007 lt_prog_compiler_wl_FC='-Wl,'
28008 lt_prog_compiler_pic_FC='-fPIC'
28009 lt_prog_compiler_static_FC='-static'
28010 ;;
28011 *)
28012 case `$CC -V 2>&1``$CC -v 2>&1` in
28013 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
28014 # Sun Fortran 8.3 passes all unrecognized flags to the linker
28015 lt_prog_compiler_pic_FC='-KPIC'
28016 lt_prog_compiler_static_FC='-Bstatic'
28017 lt_prog_compiler_wl_FC=''
28018 ;;
28019 *Sun\ F* | *Sun*Fortran*)
28020 lt_prog_compiler_pic_FC='-KPIC'
28021 lt_prog_compiler_static_FC='-Bstatic'
28022 lt_prog_compiler_wl_FC='-Qoption ld '
28023 ;;
28024 *Sun\ C*)
28025 # Sun C 5.9
28026 lt_prog_compiler_pic_FC='-KPIC'
28027 lt_prog_compiler_static_FC='-Bstatic'
28028 lt_prog_compiler_wl_FC='-Wl,'
28029 ;;
28030 *Intel*\ [CF]*Compiler*)
28031 lt_prog_compiler_wl_FC='-Wl,'
28032 lt_prog_compiler_pic_FC='-fPIC'
28033 lt_prog_compiler_static_FC='-static'
28034 ;;
28035 *Cray\ Fortran* | *Cray\ C*)
28036 lt_prog_compiler_wl_FC='-Wl,'
28037 lt_prog_compiler_pic_FC='-hpic'
28038 lt_prog_compiler_static_FC='-static'
28039 ;;
28040 *Portland\ Group* | *NVIDIA\ Compilers* | *PGI\ Compilers*)
28041 lt_prog_compiler_wl_FC='-Wl,'
28042 lt_prog_compiler_pic_FC='-fpic'
28043 lt_prog_compiler_static_FC='-Bstatic'
28044 ;;
28045 *Fujitsu*)
28046 lt_prog_compiler_wl_FC='-Wl,'
28047 lt_prog_compiler_pic_FC='-Kpic'
28048 lt_prog_compiler_static_FC='-Bstatic'
28049 ;;
28050 *xlf*)
28051 lt_prog_compiler_wl_FC='-Wl,'
28052 lt_prog_compiler_pic_FC='-qpic'
28053 lt_prog_compiler_static_FC='-qstaticlink'
28054 ;;
28055 # Not sure if `flang version` exists, but honor vendor prefix like 'AMD '
28056 *clang\ version* | *flang\ version* | *flang-new\ version* | *flang-classic\ version*)
28057 lt_prog_compiler_wl_FC='-Wl,'
28058 lt_prog_compiler_pic_FC='-fPIC -DPIC'
28059 lt_prog_compiler_static_FC='-static'
28060 ;;
28061 esac
28062 ;;
28063 esac
28064 ;;
28065
28066 newsos6)
28067 lt_prog_compiler_pic_FC='-KPIC'
28068 lt_prog_compiler_static_FC='-Bstatic'
28069 ;;
28070
28071 *nto* | *qnx*)
28072 # QNX uses GNU C++, but need to define -shared option too, otherwise
28073 # it will coredump.
28074 lt_prog_compiler_pic_FC='-fPIC -shared'
28075 ;;
28076
28077 osf3* | osf4* | osf5*)
28078 lt_prog_compiler_wl_FC='-Wl,'
28079 # All OSF/1 code is PIC.
28080 lt_prog_compiler_static_FC='-non_shared'
28081 ;;
28082
28083 rdos*)
28084 lt_prog_compiler_static_FC='-non_shared'
28085 ;;
28086
28087 solaris*)
28088 lt_prog_compiler_pic_FC='-KPIC'
28089 lt_prog_compiler_static_FC='-Bstatic'
28090 case $cc_basename in
28091 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
28092 lt_prog_compiler_wl_FC='-Qoption ld ';;
28093 *)
28094 lt_prog_compiler_wl_FC='-Wl,';;
28095 esac
28096 ;;
28097
28098 sunos4*)
28099 lt_prog_compiler_wl_FC='-Qoption ld '
28100 lt_prog_compiler_pic_FC='-PIC'
28101 lt_prog_compiler_static_FC='-Bstatic'
28102 ;;
28103
28104 sysv4 | sysv4.2uw2* | sysv4.3*)
28105 lt_prog_compiler_wl_FC='-Wl,'
28106 lt_prog_compiler_pic_FC='-KPIC'
28107 lt_prog_compiler_static_FC='-Bstatic'
28108 ;;
28109
28110 sysv4*MP*)
28111 if test -d /usr/nec; then
28112 lt_prog_compiler_pic_FC='-Kconform_pic'
28113 lt_prog_compiler_static_FC='-Bstatic'
28114 fi
28115 ;;
28116
28117 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
28118 lt_prog_compiler_wl_FC='-Wl,'
28119 lt_prog_compiler_pic_FC='-KPIC'
28120 lt_prog_compiler_static_FC='-Bstatic'
28121 ;;
28122
28123 unicos*)
28124 lt_prog_compiler_wl_FC='-Wl,'
28125 lt_prog_compiler_can_build_shared_FC=no
28126 ;;
28127
28128 uts4*)
28129 lt_prog_compiler_pic_FC='-pic'
28130 lt_prog_compiler_static_FC='-Bstatic'
28131 ;;
28132
28133 *)
28134 lt_prog_compiler_can_build_shared_FC=no
28135 ;;
28136 esac
28137 fi
28138
28139 case $host_os in
28140 # For platforms that do not support PIC, -DPIC is meaningless:
28141 *djgpp*)
28142 lt_prog_compiler_pic_FC=
28143 ;;
28144 *)
28145 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
28146 ;;
28147 esac
28148
28149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
28150 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
28151 if ${lt_cv_prog_compiler_pic_FC+:} false; then :
28152 $as_echo_n "(cached) " >&6
28153 else
28154 lt_cv_prog_compiler_pic_FC=$lt_prog_compiler_pic_FC
28155 fi
28156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_FC" >&5
28157 case "$lt_cv_prog_compiler_pic_FC" in #(
28158 yes|ok|yes[\ ,]*) :
28159 $as_echo "${as__grn}$lt_cv_prog_compiler_pic_FC${as__std}" >&6 ;; #(
28160 no|failed|unsupported|no[\ ,]*) :
28161 $as_echo "${as__red}$lt_cv_prog_compiler_pic_FC${as__std}" >&6 ;; #(
28162 *) :
28163 $as_echo "${as__blu}$lt_cv_prog_compiler_pic_FC${as__std}" >&6 ;;
28164 esac; }
28165 lt_prog_compiler_pic_FC=$lt_cv_prog_compiler_pic_FC
28166
28167 #
28168 # Check to make sure the PIC flag actually works.
28169 #
28170 if test -n "$lt_prog_compiler_pic_FC"; then
28171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
28172 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
28173 if ${lt_cv_prog_compiler_pic_works_FC+:} false; then :
28174 $as_echo_n "(cached) " >&6
28175 else
28176 lt_cv_prog_compiler_pic_works_FC=no
28177 ac_outfile=conftest.$ac_objext
28178 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
28179 lt_compiler_flag="$lt_prog_compiler_pic_FC" ## exclude from sc_useless_quotes_in_assignment
28180 # Insert the option either (1) after the last *FLAGS variable, or
28181 # (2) before a word containing "conftest.", or (3) at the end.
28182 # Note that $ac_compile itself does not contain backslashes and begins
28183 # with a dollar sign (not a hyphen), so the echo should work correctly.
28184 # The option is referenced via a variable to avoid confusing sed.
28185 lt_compile=`echo "$ac_compile" | $SED \
28186 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
28187 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
28188 -e 's:$: $lt_compiler_flag:'`
28189 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
28190 (eval "$lt_compile" 2>conftest.err)
28191 ac_status=$?
28192 cat conftest.err >&5
28193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28194 if (exit $ac_status) && test -s "$ac_outfile"; then
28195 # The compiler can only warn and ignore the option if not recognized
28196 # So say no if there are warnings other than the usual output.
28197 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
28198 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
28199 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
28200 lt_cv_prog_compiler_pic_works_FC=yes
28201 fi
28202 fi
28203 $RM conftest*
28204
28205 fi
28206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
28207 case "$lt_cv_prog_compiler_pic_works_FC" in #(
28208 yes|ok|yes[\ ,]*) :
28209 $as_echo "${as__grn}$lt_cv_prog_compiler_pic_works_FC${as__std}" >&6 ;; #(
28210 no|failed|unsupported|no[\ ,]*) :
28211 $as_echo "${as__red}$lt_cv_prog_compiler_pic_works_FC${as__std}" >&6 ;; #(
28212 *) :
28213 $as_echo "${as__blu}$lt_cv_prog_compiler_pic_works_FC${as__std}" >&6 ;;
28214 esac; }
28215
28216 if test yes = "$lt_cv_prog_compiler_pic_works_FC"; then
28217 case $lt_prog_compiler_pic_FC in
28218 "" | " "*) ;;
28219 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
28220 esac
28221 else
28222 lt_prog_compiler_pic_FC=
28223 lt_prog_compiler_can_build_shared_FC=no
28224 fi
28225
28226 fi
28227
28228
28229
28230
28231
28232 #
28233 # Check to make sure the static flag actually works.
28234 #
28235 wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
28236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
28237 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
28238 if ${lt_cv_prog_compiler_static_works_FC+:} false; then :
28239 $as_echo_n "(cached) " >&6
28240 else
28241 lt_cv_prog_compiler_static_works_FC=no
28242 save_LDFLAGS=$LDFLAGS
28243 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
28244 echo "$lt_simple_link_test_code" > conftest.$ac_ext
28245 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
28246 # The linker can only warn and ignore the option if not recognized
28247 # So say no if there are warnings
28248 if test -s conftest.err; then
28249 # Append any errors to the config.log.
28250 cat conftest.err 1>&5
28251 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
28252 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
28253 if diff conftest.exp conftest.er2 >/dev/null; then
28254 lt_cv_prog_compiler_static_works_FC=yes
28255 fi
28256 else
28257 lt_cv_prog_compiler_static_works_FC=yes
28258 fi
28259 fi
28260 $RM -r conftest*
28261 LDFLAGS=$save_LDFLAGS
28262
28263 fi
28264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
28265 case "$lt_cv_prog_compiler_static_works_FC" in #(
28266 yes|ok|yes[\ ,]*) :
28267 $as_echo "${as__grn}$lt_cv_prog_compiler_static_works_FC${as__std}" >&6 ;; #(
28268 no|failed|unsupported|no[\ ,]*) :
28269 $as_echo "${as__red}$lt_cv_prog_compiler_static_works_FC${as__std}" >&6 ;; #(
28270 *) :
28271 $as_echo "${as__blu}$lt_cv_prog_compiler_static_works_FC${as__std}" >&6 ;;
28272 esac; }
28273
28274 if test yes = "$lt_cv_prog_compiler_static_works_FC"; then
28275 :
28276 else
28277 lt_prog_compiler_static_FC=
28278 fi
28279
28280
28281
28282
28283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
28284 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
28285 if ${lt_cv_prog_compiler_c_o_FC+:} false; then :
28286 $as_echo_n "(cached) " >&6
28287 else
28288 lt_cv_prog_compiler_c_o_FC=no
28289 $RM -r conftest 2>/dev/null
28290 mkdir conftest
28291 cd conftest
28292 mkdir out
28293 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
28294
28295 lt_compiler_flag="-o out/conftest2.$ac_objext"
28296 # Insert the option either (1) after the last *FLAGS variable, or
28297 # (2) before a word containing "conftest.", or (3) at the end.
28298 # Note that $ac_compile itself does not contain backslashes and begins
28299 # with a dollar sign (not a hyphen), so the echo should work correctly.
28300 lt_compile=`echo "$ac_compile" | $SED \
28301 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
28302 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
28303 -e 's:$: $lt_compiler_flag:'`
28304 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
28305 (eval "$lt_compile" 2>out/conftest.err)
28306 ac_status=$?
28307 cat out/conftest.err >&5
28308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28309 if (exit $ac_status) && test -s out/conftest2.$ac_objext
28310 then
28311 # The compiler can only warn and ignore the option if not recognized
28312 # So say no if there are warnings
28313 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
28314 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
28315 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
28316 lt_cv_prog_compiler_c_o_FC=yes
28317 fi
28318 fi
28319 chmod u+w . 2>&5
28320 $RM conftest*
28321 # SGI C++ compiler will create directory out/ii_files/ for
28322 # template instantiation
28323 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
28324 $RM out/* && rmdir out
28325 cd ..
28326 $RM -r conftest
28327 $RM conftest*
28328
28329 fi
28330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
28331 case "$lt_cv_prog_compiler_c_o_FC" in #(
28332 yes|ok|yes[\ ,]*) :
28333 $as_echo "${as__grn}$lt_cv_prog_compiler_c_o_FC${as__std}" >&6 ;; #(
28334 no|failed|unsupported|no[\ ,]*) :
28335 $as_echo "${as__red}$lt_cv_prog_compiler_c_o_FC${as__std}" >&6 ;; #(
28336 *) :
28337 $as_echo "${as__blu}$lt_cv_prog_compiler_c_o_FC${as__std}" >&6 ;;
28338 esac; }
28339
28340
28341
28342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
28343 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
28344 if ${lt_cv_prog_compiler_c_o_FC+:} false; then :
28345 $as_echo_n "(cached) " >&6
28346 else
28347 lt_cv_prog_compiler_c_o_FC=no
28348 $RM -r conftest 2>/dev/null
28349 mkdir conftest
28350 cd conftest
28351 mkdir out
28352 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
28353
28354 lt_compiler_flag="-o out/conftest2.$ac_objext"
28355 # Insert the option either (1) after the last *FLAGS variable, or
28356 # (2) before a word containing "conftest.", or (3) at the end.
28357 # Note that $ac_compile itself does not contain backslashes and begins
28358 # with a dollar sign (not a hyphen), so the echo should work correctly.
28359 lt_compile=`echo "$ac_compile" | $SED \
28360 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
28361 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
28362 -e 's:$: $lt_compiler_flag:'`
28363 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
28364 (eval "$lt_compile" 2>out/conftest.err)
28365 ac_status=$?
28366 cat out/conftest.err >&5
28367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28368 if (exit $ac_status) && test -s out/conftest2.$ac_objext
28369 then
28370 # The compiler can only warn and ignore the option if not recognized
28371 # So say no if there are warnings
28372 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
28373 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
28374 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
28375 lt_cv_prog_compiler_c_o_FC=yes
28376 fi
28377 fi
28378 chmod u+w . 2>&5
28379 $RM conftest*
28380 # SGI C++ compiler will create directory out/ii_files/ for
28381 # template instantiation
28382 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
28383 $RM out/* && rmdir out
28384 cd ..
28385 $RM -r conftest
28386 $RM conftest*
28387
28388 fi
28389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
28390 case "$lt_cv_prog_compiler_c_o_FC" in #(
28391 yes|ok|yes[\ ,]*) :
28392 $as_echo "${as__grn}$lt_cv_prog_compiler_c_o_FC${as__std}" >&6 ;; #(
28393 no|failed|unsupported|no[\ ,]*) :
28394 $as_echo "${as__red}$lt_cv_prog_compiler_c_o_FC${as__std}" >&6 ;; #(
28395 *) :
28396 $as_echo "${as__blu}$lt_cv_prog_compiler_c_o_FC${as__std}" >&6 ;;
28397 esac; }
28398
28399
28400
28401
28402 hard_links=nottested
28403 if test no = "$lt_cv_prog_compiler_c_o_FC" && test no != "$need_locks"; then
28404 # do not overwrite the value of need_locks provided by the user
28405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
28406 $as_echo_n "checking if we can lock with hard links... " >&6; }
28407 hard_links=yes
28408 $RM conftest*
28409 ln conftest.a conftest.b 2>/dev/null && hard_links=no
28410 touch conftest.a
28411 ln conftest.a conftest.b 2>&5 || hard_links=no
28412 ln conftest.a conftest.b 2>/dev/null && hard_links=no
28413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
28414 case "$hard_links" in #(
28415 yes|ok|yes[\ ,]*) :
28416 $as_echo "${as__grn}$hard_links${as__std}" >&6 ;; #(
28417 no|failed|unsupported|no[\ ,]*) :
28418 $as_echo "${as__red}$hard_links${as__std}" >&6 ;; #(
28419 *) :
28420 $as_echo "${as__blu}$hard_links${as__std}" >&6 ;;
28421 esac; }
28422 if test no = "$hard_links"; then
28423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
28424 $as_echo "$as_me: ${as__yel}WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe${as__std}" >&2;}
28425 need_locks=warn
28426 fi
28427 else
28428 need_locks=no
28429 fi
28430
28431
28432
28433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
28434 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
28435
28436 runpath_var=
28437 allow_undefined_flag_FC=
28438 always_export_symbols_FC=no
28439 archive_cmds_FC=
28440 archive_expsym_cmds_FC=
28441 compiler_needs_object_FC=no
28442 enable_shared_with_static_runtimes_FC=no
28443 export_dynamic_flag_spec_FC=
28444 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
28445 hardcode_automatic_FC=no
28446 hardcode_direct_FC=no
28447 hardcode_direct_absolute_FC=no
28448 hardcode_libdir_flag_spec_FC=
28449 hardcode_libdir_separator_FC=
28450 hardcode_minus_L_FC=no
28451 hardcode_shlibpath_var_FC=unsupported
28452 inherit_rpath_FC=no
28453 link_all_deplibs_FC=unknown
28454 module_cmds_FC=
28455 module_expsym_cmds_FC=
28456 old_archive_from_new_cmds_FC=
28457 old_archive_from_expsyms_cmds_FC=
28458 thread_safe_flag_spec_FC=
28459 whole_archive_flag_spec_FC=
28460 # include_expsyms should be a list of space-separated symbols to be *always*
28461 # included in the symbol list
28462 include_expsyms_FC=
28463 # exclude_expsyms can be an extended regexp of symbols to exclude
28464 # it will be wrapped by ' (' and ')$', so one must not match beginning or
28465 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
28466 # as well as any symbol that contains 'd'.
28467 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
28468 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
28469 # platforms (ab)use it in PIC code, but their linkers get confused if
28470 # the symbol is explicitly referenced. Since portable code cannot
28471 # rely on this symbol name, it's probably fine to never include it in
28472 # preloaded symbol tables.
28473 # Exclude shared library initialization/finalization symbols.
28474 extract_expsyms_cmds=
28475
28476 case $host_os in
28477 cygwin* | mingw* | pw32* | cegcc*)
28478 # FIXME: the MSVC++ port hasn't been tested in a loooong time
28479 # When not using gcc, we currently assume that we are using
28480 # Microsoft Visual C++.
28481 if test yes != "$GCC"; then
28482 with_gnu_ld=no
28483 fi
28484 ;;
28485 interix*)
28486 # we just hope/assume this is gcc and not c89 (= MSVC++)
28487 with_gnu_ld=yes
28488 ;;
28489 openbsd* | bitrig*)
28490 with_gnu_ld=no
28491 ;;
28492 esac
28493
28494 ld_shlibs_FC=yes
28495
28496 # On some targets, GNU ld is compatible enough with the native linker
28497 # that we're better off using the native interface for both.
28498 lt_use_gnu_ld_interface=no
28499 if test yes = "$with_gnu_ld"; then
28500 case $host_os in
28501 aix*)
28502 # The AIX port of GNU ld has always aspired to compatibility
28503 # with the native linker. However, as the warning in the GNU ld
28504 # block says, versions before 2.19.5* couldn't really create working
28505 # shared libraries, regardless of the interface used.
28506 case `$LD -v 2>&1` in
28507 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
28508 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
28509 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
28510 *)
28511 lt_use_gnu_ld_interface=yes
28512 ;;
28513 esac
28514 ;;
28515 *)
28516 lt_use_gnu_ld_interface=yes
28517 ;;
28518 esac
28519 fi
28520
28521 if test yes = "$lt_use_gnu_ld_interface"; then
28522 # If archive_cmds runs LD, not CC, wlarc should be empty
28523 wlarc='$wl'
28524
28525 # Set some defaults for GNU ld with shared library support. These
28526 # are reset later if shared libraries are not supported. Putting them
28527 # here allows them to be overridden if necessary.
28528 runpath_var=LD_RUN_PATH
28529 hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir'
28530 export_dynamic_flag_spec_FC='$wl--export-dynamic'
28531 # ancient GNU ld didn't support --whole-archive et. al.
28532 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
28533 whole_archive_flag_spec_FC=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
28534 else
28535 whole_archive_flag_spec_FC=
28536 fi
28537 supports_anon_versioning=no
28538 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
28539 *GNU\ gold*) supports_anon_versioning=yes ;;
28540 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
28541 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
28542 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
28543 *\ 2.11.*) ;; # other 2.11 versions
28544 *) supports_anon_versioning=yes ;;
28545 esac
28546
28547 # See if GNU ld supports shared libraries.
28548 case $host_os in
28549 aix[3-9]*)
28550 # On AIX/PPC, the GNU linker is very broken
28551 if test ia64 != "$host_cpu"; then
28552 ld_shlibs_FC=no
28553 cat <<_LT_EOF 1>&2
28554
28555 *** Warning: the GNU linker, at least up to release 2.19, is reported
28556 *** to be unable to reliably create shared libraries on AIX.
28557 *** Therefore, libtool is disabling shared libraries support. If you
28558 *** really care for shared libraries, you may want to install binutils
28559 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
28560 *** You will then need to restart the configuration process.
28561
28562 _LT_EOF
28563 fi
28564 ;;
28565
28566 amigaos*)
28567 case $host_cpu in
28568 powerpc)
28569 # see comment about AmigaOS4 .so support
28570 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
28571 archive_expsym_cmds_FC=''
28572 ;;
28573 m68k)
28574 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)'
28575 hardcode_libdir_flag_spec_FC='-L$libdir'
28576 hardcode_minus_L_FC=yes
28577 ;;
28578 esac
28579 ;;
28580
28581 beos*)
28582 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
28583 allow_undefined_flag_FC=unsupported
28584 # Joseph Beckenbach <[email protected]> says some releases of gcc
28585 # support --undefined. This deserves some investigation. FIXME
28586 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
28587 else
28588 ld_shlibs_FC=no
28589 fi
28590 ;;
28591
28592 cygwin* | mingw* | pw32* | cegcc*)
28593 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
28594 # as there is no search path for DLLs.
28595 hardcode_libdir_flag_spec_FC='-L$libdir'
28596 export_dynamic_flag_spec_FC='$wl--export-all-symbols'
28597 allow_undefined_flag_FC=unsupported
28598 always_export_symbols_FC=no
28599 enable_shared_with_static_runtimes_FC=yes
28600 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
28601 exclude_expsyms_FC='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
28602
28603 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
28604 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
28605 # If the export-symbols file already is a .def file, use it as
28606 # is; otherwise, prepend EXPORTS...
28607 archive_expsym_cmds_FC='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
28608 cp $export_symbols $output_objdir/$soname.def;
28609 else
28610 echo EXPORTS > $output_objdir/$soname.def;
28611 cat $export_symbols >> $output_objdir/$soname.def;
28612 fi~
28613 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
28614 else
28615 ld_shlibs_FC=no
28616 fi
28617 ;;
28618
28619 haiku*)
28620 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
28621 link_all_deplibs_FC=yes
28622 ;;
28623
28624 os2*)
28625 hardcode_libdir_flag_spec_FC='-L$libdir'
28626 hardcode_minus_L_FC=yes
28627 allow_undefined_flag_FC=unsupported
28628 shrext_cmds=.dll
28629 archive_cmds_FC='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
28630 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
28631 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
28632 $ECHO EXPORTS >> $output_objdir/$libname.def~
28633 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
28634 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
28635 emximp -o $lib $output_objdir/$libname.def'
28636 archive_expsym_cmds_FC='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
28637 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
28638 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
28639 $ECHO EXPORTS >> $output_objdir/$libname.def~
28640 prefix_cmds="$SED"~
28641 if test EXPORTS = "`$SED 1q $export_symbols`"; then
28642 prefix_cmds="$prefix_cmds -e 1d";
28643 fi~
28644 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
28645 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
28646 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
28647 emximp -o $lib $output_objdir/$libname.def'
28648 old_archive_From_new_cmds_FC='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
28649 enable_shared_with_static_runtimes_FC=yes
28650 ;;
28651
28652 interix[3-9]*)
28653 hardcode_direct_FC=no
28654 hardcode_shlibpath_var_FC=no
28655 hardcode_libdir_flag_spec_FC='$wl-rpath,$libdir'
28656 export_dynamic_flag_spec_FC='$wl-E'
28657 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
28658 # Instead, shared libraries are loaded at an image base (0x10000000 by
28659 # default) and relocated if they conflict, which is a slow very memory
28660 # consuming and fragmenting process. To avoid this, we pick a random,
28661 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
28662 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
28663 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'
28664 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'
28665 ;;
28666
28667 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
28668 tmp_diet=no
28669 if test linux-dietlibc = "$host_os"; then
28670 case $cc_basename in
28671 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
28672 esac
28673 fi
28674 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
28675 && test no = "$tmp_diet"
28676 then
28677 tmp_addflag=' $pic_flag'
28678 tmp_sharedflag='-shared'
28679 case $cc_basename,$host_cpu in
28680 pgcc* | nvc*) # NVIDIA HPC C compiler
28681 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'
28682 tmp_addflag=' $pic_flag'
28683 ;;
28684 pgCC* | pgcpp* | pgc++* | nvc++*) # NVIDIA HPC C++ compiler
28685 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'
28686 tmp_addflag=' $pic_flag'
28687 ;;
28688 pgf77* | pgf90* | pgf95* | pgfortran* | nvfortran*)
28689 # NVIDIA HPC Fortran compiler
28690 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'
28691 tmp_addflag=' $pic_flag -Mnomain' ;;
28692 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
28693 tmp_addflag=' -i_dynamic' ;;
28694 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
28695 tmp_addflag=' -i_dynamic -nofor_main' ;;
28696 ifc* | ifort*) # Intel Fortran compiler
28697 tmp_addflag=' -nofor_main' ;;
28698 lf95*) # Lahey Fortran 8.1
28699 whole_archive_flag_spec_FC=
28700 tmp_sharedflag='--shared' ;;
28701 nagfor*) # NAGFOR 5.3
28702 tmp_sharedflag='-Wl,-shared' ;;
28703 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC
28704 tmp_sharedflag='-qmkshrobj'
28705 tmp_addflag= ;;
28706 xlf* | mpixlf*) # IBM xlf since version 13 knows about -qmkshrobj, see also below
28707 xlf_version=`$CC -qversion=verbose 2>&1 | sed -n 2p | sed -e "s/^Version: //" | cut -d'.' -f 1`
28708 if test $xlf_version -ge 13; then
28709 tmp_sharedflag='-qmkshrobj'
28710 tmp_addflag=
28711 fi
28712 ;;
28713 nvcc*) # Cuda Compiler Driver 2.2
28714 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'
28715 compiler_needs_object_FC=yes
28716 ;;
28717 *ncc* | *nfort*)
28718 # NEC Vector Engine Compiler Suite
28719 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'
28720 tmp_sharedflag='-shared'
28721 tmp_addflag=' $pic_flag'
28722 ;;
28723 *)
28724 case `$CC -V 2>&1 | sed 5q` in
28725 *Sun\ C*) # Sun C 5.9
28726 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'
28727 compiler_needs_object_FC=yes
28728 tmp_sharedflag='-G' ;;
28729 *Sun\ F*) # Sun Fortran 8.3
28730 tmp_sharedflag='-G' ;;
28731 *xlc*) # IBM XL C
28732 tmp_sharedflag='-qmkshrobj'
28733 tmp_addflag= ;;
28734 *xlf*) # IBM xlf since version 13 knows about -qmkshrobj
28735 xlf_version=`$CC -qversion=verbose 2>&1 | sed -n 2p | sed -e "s/^Version: //" | cut -d'.' -f 1`
28736 if test $xlf_version -ge 13; then
28737 tmp_sharedflag='-qmkshrobj'
28738 tmp_addflag=
28739 fi
28740 ;;
28741 esac
28742 esac
28743 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
28744
28745 if test yes = "$supports_anon_versioning"; then
28746 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
28747 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
28748 echo "local: *; };" >> $output_objdir/$libname.ver~
28749 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
28750 fi
28751
28752 case $cc_basename in
28753 tcc*)
28754 export_dynamic_flag_spec_FC='-rdynamic'
28755 ;;
28756 xlf* | mpixlf*) # IBM xlf since version 13 knows about -qmkshrobj, see also above
28757 xlf_version=`$CC -qversion=verbose 2>&1 | sed -n 2p | sed -e "s/^Version: //" | cut -d'.' -f 1`
28758 if test $xlf_version -lt 13; then
28759 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
28760 hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir'
28761 archive_cmds_FC='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
28762 if test yes = "$supports_anon_versioning"; then
28763 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
28764 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
28765 echo "local: *; };" >> $output_objdir/$libname.ver~
28766 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
28767 fi
28768 fi
28769 ;;
28770 bgf* | bgxlf*)
28771 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
28772 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
28773 hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir'
28774 archive_cmds_FC='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
28775 if test yes = "$supports_anon_versioning"; then
28776 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
28777 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
28778 echo "local: *; };" >> $output_objdir/$libname.ver~
28779 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
28780 fi
28781 ;;
28782 esac
28783 case `$CC -V 2>&1 | sed 5q` in
28784 *Cray\ C* | *Cray\ Fortran*) # Cray C/C++/Fortran
28785 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'
28786 compiler_needs_object_FC=yes
28787 archive_cmds_need_lc_FC='no'
28788 archive_cmds_FC='save_STRIP=$STRIP; unset STRIP; $CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib; ret=\$?; STRIP=\$save_STRIP; export STRIP; (exit \$ret)'
28789 ;;
28790 esac
28791 else
28792 ld_shlibs_FC=no
28793 fi
28794 ;;
28795
28796 netbsd*)
28797 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
28798 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
28799 wlarc=
28800 else
28801 archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
28802 archive_expsym_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
28803 fi
28804 ;;
28805
28806 solaris*)
28807 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
28808 ld_shlibs_FC=no
28809 cat <<_LT_EOF 1>&2
28810
28811 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
28812 *** create shared libraries on Solaris systems. Therefore, libtool
28813 *** is disabling shared libraries support. We urge you to upgrade GNU
28814 *** binutils to release 2.9.1 or newer. Another option is to modify
28815 *** your PATH or compiler configuration so that the native linker is
28816 *** used, and then restart.
28817
28818 _LT_EOF
28819 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
28820 archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
28821 archive_expsym_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
28822 else
28823 ld_shlibs_FC=no
28824 fi
28825 ;;
28826
28827 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
28828 case `$LD -v 2>&1` in
28829 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
28830 ld_shlibs_FC=no
28831 cat <<_LT_EOF 1>&2
28832
28833 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
28834 *** reliably create shared libraries on SCO systems. Therefore, libtool
28835 *** is disabling shared libraries support. We urge you to upgrade GNU
28836 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
28837 *** your PATH or compiler configuration so that the native linker is
28838 *** used, and then restart.
28839
28840 _LT_EOF
28841 ;;
28842 *)
28843 # For security reasons, it is highly recommended that you always
28844 # use absolute paths for naming shared libraries, and exclude the
28845 # DT_RUNPATH tag from executables and libraries. But doing so
28846 # requires that you compile everything twice, which is a pain.
28847 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
28848 hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir'
28849 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
28850 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
28851 else
28852 ld_shlibs_FC=no
28853 fi
28854 ;;
28855 esac
28856 ;;
28857
28858 sunos4*)
28859 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
28860 wlarc=
28861 hardcode_direct_FC=yes
28862 hardcode_shlibpath_var_FC=no
28863 ;;
28864
28865 *)
28866 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
28867 archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
28868 archive_expsym_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
28869 else
28870 ld_shlibs_FC=no
28871 fi
28872 ;;
28873 esac
28874
28875 if test no = "$ld_shlibs_FC"; then
28876 runpath_var=
28877 hardcode_libdir_flag_spec_FC=
28878 export_dynamic_flag_spec_FC=
28879 whole_archive_flag_spec_FC=
28880 fi
28881 else
28882 # PORTME fill in a description of your system's linker (not GNU ld)
28883 case $host_os in
28884 aix3*)
28885 allow_undefined_flag_FC=unsupported
28886 always_export_symbols_FC=yes
28887 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'
28888 # Note: this linker hardcodes the directories in LIBPATH if there
28889 # are no directories specified by -L.
28890 hardcode_minus_L_FC=yes
28891 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
28892 # Neither direct hardcoding nor static linking is supported with a
28893 # broken collect2.
28894 hardcode_direct_FC=unsupported
28895 fi
28896 ;;
28897
28898 aix[4-9]*)
28899 if test ia64 = "$host_cpu"; then
28900 # On IA64, the linker does run time linking by default, so we don't
28901 # have to do anything special.
28902 aix_use_runtimelinking=no
28903 exp_sym_flag='-Bexport'
28904 no_entry_flag=
28905 else
28906 # If we're using GNU nm, then we don't want the "-C" option.
28907 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
28908 # Without the "-l" option, or with the "-B" option, AIX nm treats
28909 # weak defined symbols like other global defined symbols, whereas
28910 # GNU nm marks them as "W".
28911 # While the 'weak' keyword is ignored in the Export File, we need
28912 # it in the Import File for the 'aix-soname' feature, so we have
28913 # to replace the "-B" option with "-P" for AIX nm.
28914 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
28915 export_symbols_cmds_FC='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
28916 else
28917 export_symbols_cmds_FC='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
28918 fi
28919 aix_use_runtimelinking=no
28920
28921 # Test if we are trying to use run time linking or normal
28922 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
28923 # have runtime linking enabled, and use it for executables.
28924 # For shared libraries, we enable/disable runtime linking
28925 # depending on the kind of the shared library created -
28926 # when "with_aix_soname,aix_use_runtimelinking" is:
28927 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
28928 # "aix,yes" lib.so shared, rtl:yes, for executables
28929 # lib.a static archive
28930 # "both,no" lib.so.V(shr.o) shared, rtl:yes
28931 # lib.a(lib.so.V) shared, rtl:no, for executables
28932 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
28933 # lib.a(lib.so.V) shared, rtl:no
28934 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
28935 # lib.a static archive
28936 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
28937 for ld_flag in $LDFLAGS; do
28938 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
28939 aix_use_runtimelinking=yes
28940 break
28941 fi
28942 done
28943 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
28944 # With aix-soname=svr4, we create the lib.so.V shared archives only,
28945 # so we don't have lib.a shared libs to link our executables.
28946 # We have to force runtime linking in this case.
28947 aix_use_runtimelinking=yes
28948 LDFLAGS="$LDFLAGS -Wl,-brtl"
28949 fi
28950 ;;
28951 esac
28952
28953 exp_sym_flag='-bexport'
28954 no_entry_flag='-bnoentry'
28955 fi
28956
28957 # When large executables or shared objects are built, AIX ld can
28958 # have problems creating the table of contents. If linking a library
28959 # or program results in "error TOC overflow" add -mminimal-toc to
28960 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
28961 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
28962
28963 archive_cmds_FC=''
28964 hardcode_direct_FC=yes
28965 hardcode_direct_absolute_FC=yes
28966 hardcode_libdir_separator_FC=':'
28967 link_all_deplibs_FC=yes
28968 file_list_spec_FC='$wl-f,'
28969 case $with_aix_soname,$aix_use_runtimelinking in
28970 aix,*) ;; # traditional, no import file
28971 svr4,* | *,yes) # use import file
28972 # The Import File defines what to hardcode.
28973 hardcode_direct_FC=no
28974 hardcode_direct_absolute_FC=no
28975 ;;
28976 esac
28977
28978 if test yes = "$GCC"; then
28979 case $host_os in aix4.[012]|aix4.[012].*)
28980 # We only want to do this on AIX 4.2 and lower, the check
28981 # below for broken collect2 doesn't work under 4.3+
28982 collect2name=`$CC -print-prog-name=collect2`
28983 if test -f "$collect2name" &&
28984 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
28985 then
28986 # We have reworked collect2
28987 :
28988 else
28989 # We have old collect2
28990 hardcode_direct_FC=unsupported
28991 # It fails to find uninstalled libraries when the uninstalled
28992 # path is not listed in the libpath. Setting hardcode_minus_L
28993 # to unsupported forces relinking
28994 hardcode_minus_L_FC=yes
28995 hardcode_libdir_flag_spec_FC='-L$libdir'
28996 hardcode_libdir_separator_FC=
28997 fi
28998 ;;
28999 esac
29000 shared_flag='-shared'
29001 if test yes = "$aix_use_runtimelinking"; then
29002 shared_flag="$shared_flag "'$wl-G'
29003 fi
29004 # Need to ensure runtime linking is disabled for the traditional
29005 # shared library, or the linker may eventually find shared libraries
29006 # /with/ Import File - we do not want to mix them.
29007 shared_flag_aix='-shared'
29008 shared_flag_svr4='-shared $wl-G'
29009 else
29010 # not using gcc
29011 if test ia64 = "$host_cpu"; then
29012 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
29013 # chokes on -Wl,-G. The following line is correct:
29014 shared_flag='-G'
29015 else
29016 if test yes = "$aix_use_runtimelinking"; then
29017 shared_flag='$wl-G'
29018 else
29019 shared_flag='$wl-bM:SRE'
29020 fi
29021 shared_flag_aix='$wl-bM:SRE'
29022 shared_flag_svr4='$wl-G'
29023 fi
29024 fi
29025
29026 export_dynamic_flag_spec_FC='$wl-bexpall'
29027 # It seems that -bexpall does not export symbols beginning with
29028 # underscore (_), so it is better to generate a list of symbols to export.
29029 always_export_symbols_FC=yes
29030 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
29031 # Warning - without using the other runtime loading flags (-brtl),
29032 # -berok will link without error, but may produce a broken library.
29033 allow_undefined_flag_FC='-berok'
29034 # Determine the default libpath from the value encoded in an
29035 # empty executable.
29036 if test set = "${lt_cv_aix_libpath+set}"; then
29037 aix_libpath=$lt_cv_aix_libpath
29038 else
29039 if ${lt_cv_aix_libpath__FC+:} false; then :
29040 $as_echo_n "(cached) " >&6
29041 else
29042 cat > conftest.$ac_ext <<_ACEOF
29043 program main
29044
29045 end
29046 _ACEOF
29047 if ac_fn_fc_try_link "$LINENO"; then :
29048
29049 lt_aix_libpath_sed='
29050 /Import File Strings/,/^$/ {
29051 /^0/ {
29052 s/^0 *\([^ ]*\) *$/\1/
29053 p
29054 }
29055 }'
29056 lt_cv_aix_libpath__FC=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
29057 # Check for a 64-bit object if we didn't find anything.
29058 if test -z "$lt_cv_aix_libpath__FC"; then
29059 lt_cv_aix_libpath__FC=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
29060 fi
29061 fi
29062 rm -f core conftest.err conftest.$ac_objext \
29063 conftest$ac_exeext conftest.$ac_ext
29064 if test -z "$lt_cv_aix_libpath__FC"; then
29065 lt_cv_aix_libpath__FC=/usr/lib:/lib
29066 fi
29067
29068 fi
29069
29070 aix_libpath=$lt_cv_aix_libpath__FC
29071 fi
29072
29073 hardcode_libdir_flag_spec_FC='$wl-blibpath:$libdir:'"$aix_libpath"
29074 archive_expsym_cmds_FC='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
29075 else
29076 if test ia64 = "$host_cpu"; then
29077 hardcode_libdir_flag_spec_FC='$wl-R $libdir:/usr/lib:/lib'
29078 allow_undefined_flag_FC="-z nodefs"
29079 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"
29080 else
29081 # Determine the default libpath from the value encoded in an
29082 # empty executable.
29083 if test set = "${lt_cv_aix_libpath+set}"; then
29084 aix_libpath=$lt_cv_aix_libpath
29085 else
29086 if ${lt_cv_aix_libpath__FC+:} false; then :
29087 $as_echo_n "(cached) " >&6
29088 else
29089 cat > conftest.$ac_ext <<_ACEOF
29090 program main
29091
29092 end
29093 _ACEOF
29094 if ac_fn_fc_try_link "$LINENO"; then :
29095
29096 lt_aix_libpath_sed='
29097 /Import File Strings/,/^$/ {
29098 /^0/ {
29099 s/^0 *\([^ ]*\) *$/\1/
29100 p
29101 }
29102 }'
29103 lt_cv_aix_libpath__FC=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
29104 # Check for a 64-bit object if we didn't find anything.
29105 if test -z "$lt_cv_aix_libpath__FC"; then
29106 lt_cv_aix_libpath__FC=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
29107 fi
29108 fi
29109 rm -f core conftest.err conftest.$ac_objext \
29110 conftest$ac_exeext conftest.$ac_ext
29111 if test -z "$lt_cv_aix_libpath__FC"; then
29112 lt_cv_aix_libpath__FC=/usr/lib:/lib
29113 fi
29114
29115 fi
29116
29117 aix_libpath=$lt_cv_aix_libpath__FC
29118 fi
29119
29120 hardcode_libdir_flag_spec_FC='$wl-blibpath:$libdir:'"$aix_libpath"
29121 # Warning - without using the other run time loading flags,
29122 # -berok will link without error, but may produce a broken library.
29123 no_undefined_flag_FC=' $wl-bernotok'
29124 allow_undefined_flag_FC=' $wl-berok'
29125 if test yes = "$with_gnu_ld"; then
29126 # We only use this code for GNU lds that support --whole-archive.
29127 whole_archive_flag_spec_FC='$wl--whole-archive$convenience $wl--no-whole-archive'
29128 else
29129 # Exported symbols can be pulled into shared objects from archives
29130 whole_archive_flag_spec_FC='$convenience'
29131 fi
29132 archive_cmds_need_lc_FC=yes
29133 archive_expsym_cmds_FC='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
29134 # -brtl affects multiple linker settings, -berok does not and is overridden later
29135 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
29136 if test svr4 != "$with_aix_soname"; then
29137 # This is similar to how AIX traditionally builds its shared libraries.
29138 archive_expsym_cmds_FC="$archive_expsym_cmds_FC"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
29139 fi
29140 if test aix != "$with_aix_soname"; then
29141 archive_expsym_cmds_FC="$archive_expsym_cmds_FC"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
29142 else
29143 # used by -dlpreopen to get the symbols
29144 archive_expsym_cmds_FC="$archive_expsym_cmds_FC"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
29145 fi
29146 archive_expsym_cmds_FC="$archive_expsym_cmds_FC"'~$RM -r $output_objdir/$realname.d'
29147 fi
29148 fi
29149 ;;
29150
29151 amigaos*)
29152 case $host_cpu in
29153 powerpc)
29154 # see comment about AmigaOS4 .so support
29155 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
29156 archive_expsym_cmds_FC=''
29157 ;;
29158 m68k)
29159 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)'
29160 hardcode_libdir_flag_spec_FC='-L$libdir'
29161 hardcode_minus_L_FC=yes
29162 ;;
29163 esac
29164 ;;
29165
29166 bsdi[45]*)
29167 export_dynamic_flag_spec_FC=-rdynamic
29168 ;;
29169
29170 cygwin* | mingw* | pw32* | cegcc*)
29171 # When not using gcc, we currently assume that we are using
29172 # Microsoft Visual C++.
29173 # hardcode_libdir_flag_spec is actually meaningless, as there is
29174 # no search path for DLLs.
29175 case $cc_basename in
29176 cl*)
29177 # Native MSVC
29178 hardcode_libdir_flag_spec_FC=' '
29179 allow_undefined_flag_FC=unsupported
29180 always_export_symbols_FC=yes
29181 file_list_spec_FC='@'
29182 # Tell ltmain to make .lib files, not .a files.
29183 libext=lib
29184 # Tell ltmain to make .dll files, not .so files.
29185 shrext_cmds=.dll
29186 # FIXME: Setting linknames here is a bad hack.
29187 archive_cmds_FC='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
29188 archive_expsym_cmds_FC='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
29189 cp "$export_symbols" "$output_objdir/$soname.def";
29190 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
29191 else
29192 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
29193 fi~
29194 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
29195 linknames='
29196 # The linker will not automatically build a static lib if we build a DLL.
29197 # _LT_TAGVAR(old_archive_from_new_cmds, FC)='true'
29198 enable_shared_with_static_runtimes_FC=yes
29199 exclude_expsyms_FC='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
29200 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
29201 # Don't use ranlib
29202 old_postinstall_cmds_FC='chmod 644 $oldlib'
29203 postlink_cmds_FC='lt_outputfile="@OUTPUT@"~
29204 lt_tool_outputfile="@TOOL_OUTPUT@"~
29205 case $lt_outputfile in
29206 *.exe|*.EXE) ;;
29207 *)
29208 lt_outputfile=$lt_outputfile.exe
29209 lt_tool_outputfile=$lt_tool_outputfile.exe
29210 ;;
29211 esac~
29212 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
29213 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
29214 $RM "$lt_outputfile.manifest";
29215 fi'
29216 ;;
29217 *)
29218 # Assume MSVC wrapper
29219 hardcode_libdir_flag_spec_FC=' '
29220 allow_undefined_flag_FC=unsupported
29221 # Tell ltmain to make .lib files, not .a files.
29222 libext=lib
29223 # Tell ltmain to make .dll files, not .so files.
29224 shrext_cmds=.dll
29225 # FIXME: Setting linknames here is a bad hack.
29226 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
29227 # The linker will automatically build a .lib file if we build a DLL.
29228 old_archive_from_new_cmds_FC='true'
29229 # FIXME: Should let the user specify the lib program.
29230 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
29231 enable_shared_with_static_runtimes_FC=yes
29232 ;;
29233 esac
29234 ;;
29235
29236 darwin* | rhapsody*)
29237
29238
29239 archive_cmds_need_lc_FC=no
29240 hardcode_direct_FC=no
29241 hardcode_automatic_FC=yes
29242 hardcode_shlibpath_var_FC=unsupported
29243 if test yes = "$lt_cv_ld_force_load"; then
29244 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\"`'
29245 compiler_needs_object_FC=yes
29246 else
29247 whole_archive_flag_spec_FC=''
29248 fi
29249 link_all_deplibs_FC=yes
29250 allow_undefined_flag_FC=$_lt_dar_allow_undefined
29251 case $cc_basename in
29252 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
29253 *) _lt_dar_can_shared=$GCC ;;
29254 esac
29255 if test yes = "$_lt_dar_can_shared"; then
29256 output_verbose_link_cmd=func_echo_all
29257 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"
29258 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
29259 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"
29260 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"
29261
29262 else
29263 ld_shlibs_FC=no
29264 fi
29265
29266 ;;
29267
29268 dgux*)
29269 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
29270 hardcode_libdir_flag_spec_FC='-L$libdir'
29271 hardcode_shlibpath_var_FC=no
29272 ;;
29273
29274 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
29275 # support. Future versions do this automatically, but an explicit c++rt0.o
29276 # does not break anything, and helps significantly (at the cost of a little
29277 # extra space).
29278 freebsd2.2*)
29279 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
29280 hardcode_libdir_flag_spec_FC='-R$libdir'
29281 hardcode_direct_FC=yes
29282 hardcode_shlibpath_var_FC=no
29283 ;;
29284
29285 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
29286 freebsd2.*)
29287 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
29288 hardcode_direct_FC=yes
29289 hardcode_minus_L_FC=yes
29290 hardcode_shlibpath_var_FC=no
29291 ;;
29292
29293 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
29294 freebsd* | dragonfly*)
29295 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
29296 hardcode_libdir_flag_spec_FC='-R$libdir'
29297 hardcode_direct_FC=yes
29298 hardcode_shlibpath_var_FC=no
29299 ;;
29300
29301 hpux9*)
29302 if test yes = "$GCC"; then
29303 archive_cmds_FC='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
29304 else
29305 archive_cmds_FC='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
29306 fi
29307 hardcode_libdir_flag_spec_FC='$wl+b $wl$libdir'
29308 hardcode_libdir_separator_FC=:
29309 hardcode_direct_FC=yes
29310
29311 # hardcode_minus_L: Not really in the search PATH,
29312 # but as the default location of the library.
29313 hardcode_minus_L_FC=yes
29314 export_dynamic_flag_spec_FC='$wl-E'
29315 ;;
29316
29317 hpux10*)
29318 if test yes,no = "$GCC,$with_gnu_ld"; then
29319 archive_cmds_FC='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
29320 else
29321 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
29322 fi
29323 if test no = "$with_gnu_ld"; then
29324 hardcode_libdir_flag_spec_FC='$wl+b $wl$libdir'
29325 hardcode_libdir_separator_FC=:
29326 hardcode_direct_FC=yes
29327 hardcode_direct_absolute_FC=yes
29328 export_dynamic_flag_spec_FC='$wl-E'
29329 # hardcode_minus_L: Not really in the search PATH,
29330 # but as the default location of the library.
29331 hardcode_minus_L_FC=yes
29332 fi
29333 ;;
29334
29335 hpux11*)
29336 if test yes,no = "$GCC,$with_gnu_ld"; then
29337 case $host_cpu in
29338 hppa*64*)
29339 archive_cmds_FC='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
29340 ;;
29341 ia64*)
29342 archive_cmds_FC='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
29343 ;;
29344 *)
29345 archive_cmds_FC='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
29346 ;;
29347 esac
29348 else
29349 case $host_cpu in
29350 hppa*64*)
29351 archive_cmds_FC='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
29352 ;;
29353 ia64*)
29354 archive_cmds_FC='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
29355 ;;
29356 *)
29357 archive_cmds_FC='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
29358 ;;
29359 esac
29360 fi
29361 if test no = "$with_gnu_ld"; then
29362 hardcode_libdir_flag_spec_FC='$wl+b $wl$libdir'
29363 hardcode_libdir_separator_FC=:
29364
29365 case $host_cpu in
29366 hppa*64*|ia64*)
29367 hardcode_direct_FC=no
29368 hardcode_shlibpath_var_FC=no
29369 ;;
29370 *)
29371 hardcode_direct_FC=yes
29372 hardcode_direct_absolute_FC=yes
29373 export_dynamic_flag_spec_FC='$wl-E'
29374
29375 # hardcode_minus_L: Not really in the search PATH,
29376 # but as the default location of the library.
29377 hardcode_minus_L_FC=yes
29378 ;;
29379 esac
29380 fi
29381 ;;
29382
29383 irix5* | irix6* | nonstopux*)
29384 if test yes = "$GCC"; then
29385 archive_cmds_FC='$CC -shared $pic_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'
29386 # Try to use the -exported_symbol ld option, if it does not
29387 # work, assume that -exports_file does not work either and
29388 # implicitly export all symbols.
29389 # This should be the same for all languages, so no per-tag cache variable.
29390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
29391 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
29392 if ${lt_cv_irix_exported_symbol+:} false; then :
29393 $as_echo_n "(cached) " >&6
29394 else
29395 save_LDFLAGS=$LDFLAGS
29396 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
29397 cat > conftest.$ac_ext <<_ACEOF
29398
29399 subroutine foo
29400 end
29401 _ACEOF
29402 if ac_fn_fc_try_link "$LINENO"; then :
29403 lt_cv_irix_exported_symbol=yes
29404 else
29405 lt_cv_irix_exported_symbol=no
29406 fi
29407 rm -f core conftest.err conftest.$ac_objext \
29408 conftest$ac_exeext conftest.$ac_ext
29409 LDFLAGS=$save_LDFLAGS
29410 fi
29411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
29412 case "$lt_cv_irix_exported_symbol" in #(
29413 yes|ok|yes[\ ,]*) :
29414 $as_echo "${as__grn}$lt_cv_irix_exported_symbol${as__std}" >&6 ;; #(
29415 no|failed|unsupported|no[\ ,]*) :
29416 $as_echo "${as__red}$lt_cv_irix_exported_symbol${as__std}" >&6 ;; #(
29417 *) :
29418 $as_echo "${as__blu}$lt_cv_irix_exported_symbol${as__std}" >&6 ;;
29419 esac; }
29420 if test yes = "$lt_cv_irix_exported_symbol"; then
29421 archive_expsym_cmds_FC='$CC -shared $pic_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 $wl-exports_file $wl$export_symbols -o $lib'
29422 fi
29423 else
29424 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'
29425 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'
29426 fi
29427 archive_cmds_need_lc_FC='no'
29428 hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir'
29429 hardcode_libdir_separator_FC=:
29430 inherit_rpath_FC=yes
29431 link_all_deplibs_FC=yes
29432 ;;
29433
29434 linux*)
29435 case $cc_basename in
29436 tcc*)
29437 # Fabrice Bellard et al's Tiny C Compiler
29438 ld_shlibs_FC=yes
29439 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
29440 ;;
29441 esac
29442 case `$CC -V 2>&1 | sed 5q` in
29443 *Cray\ C* | *Cray\ Fortran*) # Cray C/C++/Fortran
29444 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'
29445 compiler_needs_object_FC=yes
29446 archive_cmds_FC='save_STRIP=$STRIP; unset STRIP; $CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib; ret=\$?; STRIP=\$save_STRIP; export STRIP; (exit \$ret)'
29447 ;;
29448 *)
29449 ld_shlibs_FC=no
29450 ;;
29451 esac
29452 ;;
29453
29454 netbsd*)
29455 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
29456 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
29457 else
29458 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
29459 fi
29460 hardcode_libdir_flag_spec_FC='-R$libdir'
29461 hardcode_direct_FC=yes
29462 hardcode_shlibpath_var_FC=no
29463 ;;
29464
29465 newsos6)
29466 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
29467 hardcode_direct_FC=yes
29468 hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir'
29469 hardcode_libdir_separator_FC=:
29470 hardcode_shlibpath_var_FC=no
29471 ;;
29472
29473 *nto* | *qnx*)
29474 ;;
29475
29476 openbsd* | bitrig*)
29477 if test -f /usr/libexec/ld.so; then
29478 hardcode_direct_FC=yes
29479 hardcode_shlibpath_var_FC=no
29480 hardcode_direct_absolute_FC=yes
29481 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
29482 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
29483 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
29484 hardcode_libdir_flag_spec_FC='$wl-rpath,$libdir'
29485 export_dynamic_flag_spec_FC='$wl-E'
29486 else
29487 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
29488 hardcode_libdir_flag_spec_FC='$wl-rpath,$libdir'
29489 fi
29490 else
29491 ld_shlibs_FC=no
29492 fi
29493 ;;
29494
29495 os2*)
29496 hardcode_libdir_flag_spec_FC='-L$libdir'
29497 hardcode_minus_L_FC=yes
29498 allow_undefined_flag_FC=unsupported
29499 shrext_cmds=.dll
29500 archive_cmds_FC='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
29501 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
29502 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
29503 $ECHO EXPORTS >> $output_objdir/$libname.def~
29504 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
29505 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
29506 emximp -o $lib $output_objdir/$libname.def'
29507 archive_expsym_cmds_FC='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
29508 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
29509 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
29510 $ECHO EXPORTS >> $output_objdir/$libname.def~
29511 prefix_cmds="$SED"~
29512 if test EXPORTS = "`$SED 1q $export_symbols`"; then
29513 prefix_cmds="$prefix_cmds -e 1d";
29514 fi~
29515 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
29516 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
29517 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
29518 emximp -o $lib $output_objdir/$libname.def'
29519 old_archive_From_new_cmds_FC='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
29520 enable_shared_with_static_runtimes_FC=yes
29521 ;;
29522
29523 osf3*)
29524 if test yes = "$GCC"; then
29525 allow_undefined_flag_FC=' $wl-expect_unresolved $wl\*'
29526 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'
29527 else
29528 allow_undefined_flag_FC=' -expect_unresolved \*'
29529 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'
29530 fi
29531 archive_cmds_need_lc_FC='no'
29532 hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir'
29533 hardcode_libdir_separator_FC=:
29534 ;;
29535
29536 osf4* | osf5*) # as osf3* with the addition of -msym flag
29537 if test yes = "$GCC"; then
29538 allow_undefined_flag_FC=' $wl-expect_unresolved $wl\*'
29539 archive_cmds_FC='$CC -shared$allow_undefined_flag $pic_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'
29540 hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir'
29541 else
29542 allow_undefined_flag_FC=' -expect_unresolved \*'
29543 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'
29544 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~
29545 $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'
29546
29547 # Both c and cxx compiler support -rpath directly
29548 hardcode_libdir_flag_spec_FC='-rpath $libdir'
29549 fi
29550 archive_cmds_need_lc_FC='no'
29551 hardcode_libdir_separator_FC=:
29552 ;;
29553
29554 solaris*)
29555 no_undefined_flag_FC=' -z defs'
29556 if test yes = "$GCC"; then
29557 wlarc='$wl'
29558 archive_cmds_FC='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
29559 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
29560 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
29561 else
29562 case `$CC -V 2>&1` in
29563 *"Compilers 5.0"*)
29564 wlarc=''
29565 archive_cmds_FC='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
29566 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
29567 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
29568 ;;
29569 *)
29570 wlarc='$wl'
29571 archive_cmds_FC='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
29572 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
29573 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
29574 ;;
29575 esac
29576 fi
29577 hardcode_libdir_flag_spec_FC='-R$libdir'
29578 hardcode_shlibpath_var_FC=no
29579 case $host_os in
29580 solaris2.[0-5] | solaris2.[0-5].*) ;;
29581 *)
29582 # The compiler driver will combine and reorder linker options,
29583 # but understands '-z linker_flag'. GCC discards it without '$wl',
29584 # but is careful enough not to reorder.
29585 # Supported since Solaris 2.6 (maybe 2.5.1?)
29586 if test yes = "$GCC"; then
29587 whole_archive_flag_spec_FC='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
29588 else
29589 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
29590 fi
29591 ;;
29592 esac
29593 link_all_deplibs_FC=yes
29594 ;;
29595
29596 sunos4*)
29597 if test sequent = "$host_vendor"; then
29598 # Use $CC to link under sequent, because it throws in some extra .o
29599 # files that make .init and .fini sections work.
29600 archive_cmds_FC='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
29601 else
29602 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
29603 fi
29604 hardcode_libdir_flag_spec_FC='-L$libdir'
29605 hardcode_direct_FC=yes
29606 hardcode_minus_L_FC=yes
29607 hardcode_shlibpath_var_FC=no
29608 ;;
29609
29610 sysv4)
29611 case $host_vendor in
29612 sni)
29613 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
29614 hardcode_direct_FC=yes # is this really true???
29615 ;;
29616 siemens)
29617 ## LD is ld it makes a PLAMLIB
29618 ## CC just makes a GrossModule.
29619 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
29620 reload_cmds_FC='$CC -r -o $output$reload_objs'
29621 hardcode_direct_FC=no
29622 ;;
29623 motorola)
29624 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
29625 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
29626 ;;
29627 esac
29628 runpath_var='LD_RUN_PATH'
29629 hardcode_shlibpath_var_FC=no
29630 ;;
29631
29632 sysv4.3*)
29633 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
29634 hardcode_shlibpath_var_FC=no
29635 export_dynamic_flag_spec_FC='-Bexport'
29636 ;;
29637
29638 sysv4*MP*)
29639 if test -d /usr/nec; then
29640 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
29641 hardcode_shlibpath_var_FC=no
29642 runpath_var=LD_RUN_PATH
29643 hardcode_runpath_var=yes
29644 ld_shlibs_FC=yes
29645 fi
29646 ;;
29647
29648 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
29649 no_undefined_flag_FC='$wl-z,text'
29650 archive_cmds_need_lc_FC=no
29651 hardcode_shlibpath_var_FC=no
29652 runpath_var='LD_RUN_PATH'
29653
29654 if test yes = "$GCC"; then
29655 archive_cmds_FC='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
29656 archive_expsym_cmds_FC='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
29657 else
29658 archive_cmds_FC='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
29659 archive_expsym_cmds_FC='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
29660 fi
29661 ;;
29662
29663 sysv5* | sco3.2v5* | sco5v6*)
29664 # Note: We CANNOT use -z defs as we might desire, because we do not
29665 # link with -lc, and that would cause any symbols used from libc to
29666 # always be unresolved, which means just about no library would
29667 # ever link correctly. If we're not using GNU ld we use -z text
29668 # though, which does catch some bad symbols but isn't as heavy-handed
29669 # as -z defs.
29670 no_undefined_flag_FC='$wl-z,text'
29671 allow_undefined_flag_FC='$wl-z,nodefs'
29672 archive_cmds_need_lc_FC=no
29673 hardcode_shlibpath_var_FC=no
29674 hardcode_libdir_flag_spec_FC='$wl-R,$libdir'
29675 hardcode_libdir_separator_FC=':'
29676 link_all_deplibs_FC=yes
29677 export_dynamic_flag_spec_FC='$wl-Bexport'
29678 runpath_var='LD_RUN_PATH'
29679
29680 if test yes = "$GCC"; then
29681 archive_cmds_FC='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
29682 archive_expsym_cmds_FC='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
29683 else
29684 archive_cmds_FC='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
29685 archive_expsym_cmds_FC='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
29686 fi
29687 ;;
29688
29689 uts4*)
29690 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
29691 hardcode_libdir_flag_spec_FC='-L$libdir'
29692 hardcode_shlibpath_var_FC=no
29693 ;;
29694
29695 *)
29696 ld_shlibs_FC=no
29697 ;;
29698 esac
29699
29700 if test sni = "$host_vendor"; then
29701 case $host in
29702 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
29703 export_dynamic_flag_spec_FC='$wl-Blargedynsym'
29704 ;;
29705 esac
29706 fi
29707 fi
29708
29709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
29710 case "$ld_shlibs_FC" in #(
29711 yes|ok|yes[\ ,]*) :
29712 $as_echo "${as__grn}$ld_shlibs_FC${as__std}" >&6 ;; #(
29713 no|failed|unsupported|no[\ ,]*) :
29714 $as_echo "${as__red}$ld_shlibs_FC${as__std}" >&6 ;; #(
29715 *) :
29716 $as_echo "${as__blu}$ld_shlibs_FC${as__std}" >&6 ;;
29717 esac; }
29718 test no = "$ld_shlibs_FC" && can_build_shared=no
29719
29720 with_gnu_ld_FC=$with_gnu_ld
29721
29722
29723
29724
29725
29726
29727 #
29728 # Do we need to explicitly link libc?
29729 #
29730 case "x$archive_cmds_need_lc_FC" in
29731 x|xyes)
29732 # Assume -lc should be added
29733 archive_cmds_need_lc_FC=yes
29734
29735 if test yes,yes = "$GCC,$enable_shared"; then
29736 case $archive_cmds_FC in
29737 *'~'*)
29738 # FIXME: we may have to deal with multi-command sequences.
29739 ;;
29740 '$CC '*)
29741 # Test whether the compiler implicitly links with -lc since on some
29742 # systems, -lgcc has to come before -lc. If gcc already passes -lc
29743 # to ld, don't add -lc before -lgcc.
29744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
29745 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
29746 if ${lt_cv_archive_cmds_need_lc_FC+:} false; then :
29747 $as_echo_n "(cached) " >&6
29748 else
29749 $RM conftest*
29750 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
29751
29752 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
29753 (eval $ac_compile) 2>&5
29754 ac_status=$?
29755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29756 test $ac_status = 0; } 2>conftest.err; then
29757 soname=conftest
29758 lib=conftest
29759 libobjs=conftest.$ac_objext
29760 deplibs=
29761 wl=$lt_prog_compiler_wl_FC
29762 pic_flag=$lt_prog_compiler_pic_FC
29763 compiler_flags=-v
29764 linker_flags=-v
29765 verstring=
29766 output_objdir=.
29767 libname=conftest
29768 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
29769 allow_undefined_flag_FC=
29770 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
29771 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
29772 ac_status=$?
29773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29774 test $ac_status = 0; }
29775 then
29776 lt_cv_archive_cmds_need_lc_FC=no
29777 else
29778 lt_cv_archive_cmds_need_lc_FC=yes
29779 fi
29780 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
29781 else
29782 cat conftest.err 1>&5
29783 fi
29784 $RM conftest*
29785
29786 fi
29787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
29788 case "$lt_cv_archive_cmds_need_lc_FC" in #(
29789 yes|ok|yes[\ ,]*) :
29790 $as_echo "${as__grn}$lt_cv_archive_cmds_need_lc_FC${as__std}" >&6 ;; #(
29791 no|failed|unsupported|no[\ ,]*) :
29792 $as_echo "${as__red}$lt_cv_archive_cmds_need_lc_FC${as__std}" >&6 ;; #(
29793 *) :
29794 $as_echo "${as__blu}$lt_cv_archive_cmds_need_lc_FC${as__std}" >&6 ;;
29795 esac; }
29796 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
29797 ;;
29798 esac
29799 fi
29800 ;;
29801 esac
29802
29803
29804
29805
29806
29807
29808
29809
29810
29811
29812
29813
29814
29815
29816
29817
29818
29819
29820
29821
29822
29823
29824
29825
29826
29827
29828
29829
29830
29831
29832
29833
29834
29835
29836
29837
29838
29839
29840
29841
29842
29843
29844
29845
29846
29847
29848
29849
29850
29851
29852
29853
29854
29855
29856
29857
29858
29859
29860
29861
29862
29863
29864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
29865 $as_echo_n "checking dynamic linker characteristics... " >&6; }
29866
29867 library_names_spec=
29868 libname_spec='lib$name'
29869 soname_spec=
29870 shrext_cmds=.so
29871 postinstall_cmds=
29872 postuninstall_cmds=
29873 finish_cmds=
29874 finish_eval=
29875 shlibpath_var=
29876 shlibpath_overrides_runpath=unknown
29877 version_type=none
29878 dynamic_linker="$host_os ld.so"
29879 sys_lib_dlsearch_path_spec="/lib /usr/lib"
29880 need_lib_prefix=unknown
29881 hardcode_into_libs=no
29882
29883 # when you set need_version to no, make sure it does not cause -set_version
29884 # flags to be left without arguments
29885 need_version=unknown
29886
29887
29888
29889 case $host_os in
29890 aix3*)
29891 version_type=linux # correct to gnu/linux during the next big refactor
29892 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
29893 shlibpath_var=LIBPATH
29894
29895 # AIX 3 has no versioning support, so we append a major version to the name.
29896 soname_spec='$libname$release$shared_ext$major'
29897 ;;
29898
29899 aix[4-9]*)
29900 version_type=linux # correct to gnu/linux during the next big refactor
29901 need_lib_prefix=no
29902 need_version=no
29903 hardcode_into_libs=yes
29904 if test ia64 = "$host_cpu"; then
29905 # AIX 5 supports IA64
29906 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
29907 shlibpath_var=LD_LIBRARY_PATH
29908 else
29909 # With GCC up to 2.95.x, collect2 would create an import file
29910 # for dependence libraries. The import file would start with
29911 # the line '#! .'. This would cause the generated library to
29912 # depend on '.', always an invalid library. This was fixed in
29913 # development snapshots of GCC prior to 3.0.
29914 case $host_os in
29915 aix4 | aix4.[01] | aix4.[01].*)
29916 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
29917 echo ' yes '
29918 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
29919 :
29920 else
29921 can_build_shared=no
29922 fi
29923 ;;
29924 esac
29925 # Using Import Files as archive members, it is possible to support
29926 # filename-based versioning of shared library archives on AIX. While
29927 # this would work for both with and without runtime linking, it will
29928 # prevent static linking of such archives. So we do filename-based
29929 # shared library versioning with .so extension only, which is used
29930 # when both runtime linking and shared linking is enabled.
29931 # Unfortunately, runtime linking may impact performance, so we do
29932 # not want this to be the default eventually. Also, we use the
29933 # versioned .so libs for executables only if there is the -brtl
29934 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
29935 # To allow for filename-based versioning support, we need to create
29936 # libNAME.so.V as an archive file, containing:
29937 # *) an Import File, referring to the versioned filename of the
29938 # archive as well as the shared archive member, telling the
29939 # bitwidth (32 or 64) of that shared object, and providing the
29940 # list of exported symbols of that shared object, eventually
29941 # decorated with the 'weak' keyword
29942 # *) the shared object with the F_LOADONLY flag set, to really avoid
29943 # it being seen by the linker.
29944 # At run time we better use the real file rather than another symlink,
29945 # but for link time we create the symlink libNAME.so -> libNAME.so.V
29946
29947 case $with_aix_soname,$aix_use_runtimelinking in
29948 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
29949 # soname into executable. Probably we can add versioning support to
29950 # collect2, so additional links can be useful in future.
29951 aix,yes) # traditional libtool
29952 dynamic_linker='AIX unversionable lib.so'
29953 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
29954 # instead of lib<name>.a to let people know that these are not
29955 # typical AIX shared libraries.
29956 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
29957 ;;
29958 aix,no) # traditional AIX only
29959 dynamic_linker='AIX lib.a(lib.so.V)'
29960 # We preserve .a as extension for shared libraries through AIX4.2
29961 # and later when we are not doing run time linking.
29962 library_names_spec='$libname$release.a $libname.a'
29963 soname_spec='$libname$release$shared_ext$major'
29964 ;;
29965 svr4,*) # full svr4 only
29966 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
29967 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
29968 # We do not specify a path in Import Files, so LIBPATH fires.
29969 shlibpath_overrides_runpath=yes
29970 ;;
29971 *,yes) # both, prefer svr4
29972 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
29973 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
29974 # unpreferred sharedlib libNAME.a needs extra handling
29975 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
29976 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
29977 # We do not specify a path in Import Files, so LIBPATH fires.
29978 shlibpath_overrides_runpath=yes
29979 ;;
29980 *,no) # both, prefer aix
29981 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
29982 library_names_spec='$libname$release.a $libname.a'
29983 soname_spec='$libname$release$shared_ext$major'
29984 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
29985 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
29986 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
29987 ;;
29988 esac
29989 shlibpath_var=LIBPATH
29990 fi
29991 ;;
29992
29993 amigaos*)
29994 case $host_cpu in
29995 powerpc)
29996 # Since July 2007 AmigaOS4 officially supports .so libraries.
29997 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
29998 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
29999 ;;
30000 m68k)
30001 library_names_spec='$libname.ixlibrary $libname.a'
30002 # Create ${libname}_ixlibrary.a entries in /sys/libs.
30003 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
30004 ;;
30005 esac
30006 ;;
30007
30008 beos*)
30009 library_names_spec='$libname$shared_ext'
30010 dynamic_linker="$host_os ld.so"
30011 shlibpath_var=LIBRARY_PATH
30012 ;;
30013
30014 bsdi[45]*)
30015 version_type=linux # correct to gnu/linux during the next big refactor
30016 need_version=no
30017 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
30018 soname_spec='$libname$release$shared_ext$major'
30019 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
30020 shlibpath_var=LD_LIBRARY_PATH
30021 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
30022 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
30023 # the default ld.so.conf also contains /usr/contrib/lib and
30024 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
30025 # libtool to hard-code these into programs
30026 ;;
30027
30028 cygwin* | mingw* | pw32* | cegcc*)
30029 version_type=windows
30030 shrext_cmds=.dll
30031 need_version=no
30032 need_lib_prefix=no
30033
30034 case $GCC,$cc_basename in
30035 yes,*)
30036 # gcc
30037 library_names_spec='$libname.dll.a'
30038 # DLL is installed to $(libdir)/../bin by postinstall_cmds
30039 postinstall_cmds='base_file=`basename \$file`~
30040 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
30041 dldir=$destdir/`dirname \$dlpath`~
30042 test -d \$dldir || mkdir -p \$dldir~
30043 $install_prog $dir/$dlname \$dldir/$dlname~
30044 chmod a+x \$dldir/$dlname~
30045 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
30046 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
30047 fi'
30048 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
30049 dlpath=$dir/\$dldll~
30050 $RM \$dlpath'
30051 shlibpath_overrides_runpath=yes
30052
30053 case $host_os in
30054 cygwin*)
30055 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
30056 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
30057
30058 ;;
30059 mingw* | cegcc*)
30060 # MinGW DLLs use traditional 'lib' prefix
30061 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
30062 ;;
30063 pw32*)
30064 # pw32 DLLs use 'pw' prefix rather than 'lib'
30065 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
30066 ;;
30067 esac
30068 dynamic_linker='Win32 ld.exe'
30069 ;;
30070
30071 *,cl*)
30072 # Native MSVC
30073 libname_spec='$name'
30074 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
30075 library_names_spec='$libname.dll.lib'
30076
30077 case $build_os in
30078 mingw*)
30079 sys_lib_search_path_spec=
30080 lt_save_ifs=$IFS
30081 IFS=';'
30082 for lt_path in $LIB
30083 do
30084 IFS=$lt_save_ifs
30085 # Let DOS variable expansion print the short 8.3 style file name.
30086 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
30087 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
30088 done
30089 IFS=$lt_save_ifs
30090 # Convert to MSYS style.
30091 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
30092 ;;
30093 cygwin*)
30094 # Convert to unix form, then to dos form, then back to unix form
30095 # but this time dos style (no spaces!) so that the unix form looks
30096 # like /cygdrive/c/PROGRA~1:/cygdr...
30097 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
30098 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
30099 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
30100 ;;
30101 *)
30102 sys_lib_search_path_spec=$LIB
30103 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
30104 # It is most probably a Windows format PATH.
30105 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
30106 else
30107 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
30108 fi
30109 # FIXME: find the short name or the path components, as spaces are
30110 # common. (e.g. "Program Files" -> "PROGRA~1")
30111 ;;
30112 esac
30113
30114 # DLL is installed to $(libdir)/../bin by postinstall_cmds
30115 postinstall_cmds='base_file=`basename \$file`~
30116 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
30117 dldir=$destdir/`dirname \$dlpath`~
30118 test -d \$dldir || mkdir -p \$dldir~
30119 $install_prog $dir/$dlname \$dldir/$dlname'
30120 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
30121 dlpath=$dir/\$dldll~
30122 $RM \$dlpath'
30123 shlibpath_overrides_runpath=yes
30124 dynamic_linker='Win32 link.exe'
30125 ;;
30126
30127 *)
30128 # Assume MSVC wrapper
30129 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
30130 dynamic_linker='Win32 ld.exe'
30131 ;;
30132 esac
30133 # FIXME: first we should search . and the directory the executable is in
30134 shlibpath_var=PATH
30135 ;;
30136
30137 darwin* | rhapsody*)
30138 dynamic_linker="$host_os dyld"
30139 version_type=darwin
30140 need_lib_prefix=no
30141 need_version=no
30142 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
30143 soname_spec='$libname$release$major$shared_ext'
30144 shlibpath_overrides_runpath=yes
30145 shlibpath_var=DYLD_LIBRARY_PATH
30146 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
30147
30148 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
30149 ;;
30150
30151 dgux*)
30152 version_type=linux # correct to gnu/linux during the next big refactor
30153 need_lib_prefix=no
30154 need_version=no
30155 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
30156 soname_spec='$libname$release$shared_ext$major'
30157 shlibpath_var=LD_LIBRARY_PATH
30158 ;;
30159
30160 freebsd* | dragonfly*)
30161 # DragonFly does not have aout. When/if they implement a new
30162 # versioning mechanism, adjust this.
30163 if test -x /usr/bin/objformat; then
30164 objformat=`/usr/bin/objformat`
30165 else
30166 case $host_os in
30167 freebsd[23].*) objformat=aout ;;
30168 *) objformat=elf ;;
30169 esac
30170 fi
30171 version_type=freebsd-$objformat
30172 case $version_type in
30173 freebsd-elf*)
30174 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
30175 soname_spec='$libname$release$shared_ext$major'
30176 need_version=no
30177 need_lib_prefix=no
30178 ;;
30179 freebsd-*)
30180 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
30181 need_version=yes
30182 ;;
30183 esac
30184 shlibpath_var=LD_LIBRARY_PATH
30185 case $host_os in
30186 freebsd2.*)
30187 shlibpath_overrides_runpath=yes
30188 ;;
30189 freebsd3.[01]* | freebsdelf3.[01]*)
30190 shlibpath_overrides_runpath=yes
30191 hardcode_into_libs=yes
30192 ;;
30193 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
30194 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
30195 shlibpath_overrides_runpath=no
30196 hardcode_into_libs=yes
30197 ;;
30198 *) # from 4.6 on, and DragonFly
30199 shlibpath_overrides_runpath=yes
30200 hardcode_into_libs=yes
30201 ;;
30202 esac
30203 ;;
30204
30205 haiku*)
30206 version_type=linux # correct to gnu/linux during the next big refactor
30207 need_lib_prefix=no
30208 need_version=no
30209 dynamic_linker="$host_os runtime_loader"
30210 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
30211 soname_spec='$libname$release$shared_ext$major'
30212 shlibpath_var=LIBRARY_PATH
30213 shlibpath_overrides_runpath=no
30214 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
30215 hardcode_into_libs=yes
30216 ;;
30217
30218 hpux9* | hpux10* | hpux11*)
30219 # Give a soname corresponding to the major version so that dld.sl refuses to
30220 # link against other versions.
30221 version_type=sunos
30222 need_lib_prefix=no
30223 need_version=no
30224 case $host_cpu in
30225 ia64*)
30226 shrext_cmds='.so'
30227 hardcode_into_libs=yes
30228 dynamic_linker="$host_os dld.so"
30229 shlibpath_var=LD_LIBRARY_PATH
30230 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
30231 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
30232 soname_spec='$libname$release$shared_ext$major'
30233 if test 32 = "$HPUX_IA64_MODE"; then
30234 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
30235 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
30236 else
30237 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
30238 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
30239 fi
30240 ;;
30241 hppa*64*)
30242 shrext_cmds='.sl'
30243 hardcode_into_libs=yes
30244 dynamic_linker="$host_os dld.sl"
30245 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
30246 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
30247 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
30248 soname_spec='$libname$release$shared_ext$major'
30249 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
30250 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
30251 ;;
30252 *)
30253 shrext_cmds='.sl'
30254 dynamic_linker="$host_os dld.sl"
30255 shlibpath_var=SHLIB_PATH
30256 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
30257 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
30258 soname_spec='$libname$release$shared_ext$major'
30259 ;;
30260 esac
30261 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
30262 postinstall_cmds='chmod 555 $lib'
30263 # or fails outright, so override atomically:
30264 install_override_mode=555
30265 ;;
30266
30267 interix[3-9]*)
30268 version_type=linux # correct to gnu/linux during the next big refactor
30269 need_lib_prefix=no
30270 need_version=no
30271 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
30272 soname_spec='$libname$release$shared_ext$major'
30273 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
30274 shlibpath_var=LD_LIBRARY_PATH
30275 shlibpath_overrides_runpath=no
30276 hardcode_into_libs=yes
30277 ;;
30278
30279 irix5* | irix6* | nonstopux*)
30280 case $host_os in
30281 nonstopux*) version_type=nonstopux ;;
30282 *)
30283 if test yes = "$lt_cv_prog_gnu_ld"; then
30284 version_type=linux # correct to gnu/linux during the next big refactor
30285 else
30286 version_type=irix
30287 fi ;;
30288 esac
30289 need_lib_prefix=no
30290 need_version=no
30291 soname_spec='$libname$release$shared_ext$major'
30292 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
30293 case $host_os in
30294 irix5* | nonstopux*)
30295 libsuff= shlibsuff=
30296 ;;
30297 *)
30298 case $LD in # libtool.m4 will add one of these switches to LD
30299 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
30300 libsuff= shlibsuff= libmagic=32-bit;;
30301 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
30302 libsuff=32 shlibsuff=N32 libmagic=N32;;
30303 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
30304 libsuff=64 shlibsuff=64 libmagic=64-bit;;
30305 *) libsuff= shlibsuff= libmagic=never-match;;
30306 esac
30307 ;;
30308 esac
30309 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
30310 shlibpath_overrides_runpath=no
30311 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
30312 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
30313 hardcode_into_libs=yes
30314 ;;
30315
30316 # No shared lib support for Linux oldld, aout, or coff.
30317 linux*oldld* | linux*aout* | linux*coff*)
30318 dynamic_linker=no
30319 ;;
30320
30321 linux*android*)
30322 version_type=none # Android doesn't support versioned libraries.
30323 need_lib_prefix=no
30324 need_version=no
30325 library_names_spec='$libname$release$shared_ext'
30326 soname_spec='$libname$release$shared_ext'
30327 finish_cmds=
30328 shlibpath_var=LD_LIBRARY_PATH
30329 shlibpath_overrides_runpath=yes
30330
30331 # This implies no fast_install, which is unacceptable.
30332 # Some rework will be needed to allow for fast_install
30333 # before this can be enabled.
30334 hardcode_into_libs=yes
30335
30336 dynamic_linker='Android linker'
30337 # Don't embed -rpath directories since the linker doesn't support them.
30338 hardcode_libdir_flag_spec_FC='-L$libdir'
30339 ;;
30340
30341 # This must be glibc/ELF.
30342 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
30343 version_type=linux # correct to gnu/linux during the next big refactor
30344 need_lib_prefix=no
30345 need_version=no
30346 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
30347 soname_spec='$libname$release$shared_ext$major'
30348 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
30349 shlibpath_var=LD_LIBRARY_PATH
30350 shlibpath_overrides_runpath=no
30351
30352 # Some binutils ld are patched to set DT_RUNPATH
30353 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
30354 $as_echo_n "(cached) " >&6
30355 else
30356 lt_cv_shlibpath_overrides_runpath=no
30357 save_LDFLAGS=$LDFLAGS
30358 save_libdir=$libdir
30359 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
30360 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
30361 cat > conftest.$ac_ext <<_ACEOF
30362 program main
30363
30364 end
30365 _ACEOF
30366 if ac_fn_fc_try_link "$LINENO"; then :
30367 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
30368 lt_cv_shlibpath_overrides_runpath=yes
30369 fi
30370 fi
30371 rm -f core conftest.err conftest.$ac_objext \
30372 conftest$ac_exeext conftest.$ac_ext
30373 LDFLAGS=$save_LDFLAGS
30374 libdir=$save_libdir
30375
30376 fi
30377
30378 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
30379
30380 # This implies no fast_install, which is unacceptable.
30381 # Some rework will be needed to allow for fast_install
30382 # before this can be enabled.
30383 hardcode_into_libs=yes
30384
30385 # Ideally, we could use ldconfig to report *all* directores which are
30386 # searched for libraries, however this is still not possible. Aside from not
30387 # being certain /sbin/ldconfig is available, command
30388 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
30389 # even though it is searched at run-time. Try to do the best guess by
30390 # appending ld.so.conf contents (and includes) to the search path.
30391 if test -f /etc/ld.so.conf; then
30392 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' ' '`
30393 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
30394 fi
30395
30396 # We used to test for /lib/ld.so.1 and disable shared libraries on
30397 # powerpc, because MkLinux only supported shared libraries with the
30398 # GNU dynamic linker. Since this was broken with cross compilers,
30399 # most powerpc-linux boxes support dynamic linking these days and
30400 # people can always --disable-shared, the test was removed, and we
30401 # assume the GNU/Linux dynamic linker is in use.
30402 dynamic_linker='GNU/Linux ld.so'
30403 ;;
30404
30405 netbsd*)
30406 version_type=sunos
30407 need_lib_prefix=no
30408 need_version=no
30409 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
30410 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
30411 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
30412 dynamic_linker='NetBSD (a.out) ld.so'
30413 else
30414 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
30415 soname_spec='$libname$release$shared_ext$major'
30416 dynamic_linker='NetBSD ld.elf_so'
30417 fi
30418 shlibpath_var=LD_LIBRARY_PATH
30419 shlibpath_overrides_runpath=yes
30420 hardcode_into_libs=yes
30421 ;;
30422
30423 newsos6)
30424 version_type=linux # correct to gnu/linux during the next big refactor
30425 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
30426 shlibpath_var=LD_LIBRARY_PATH
30427 shlibpath_overrides_runpath=yes
30428 ;;
30429
30430 *nto* | *qnx*)
30431 version_type=qnx
30432 need_lib_prefix=no
30433 need_version=no
30434 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
30435 soname_spec='$libname$release$shared_ext$major'
30436 shlibpath_var=LD_LIBRARY_PATH
30437 shlibpath_overrides_runpath=no
30438 hardcode_into_libs=yes
30439 dynamic_linker='ldqnx.so'
30440 ;;
30441
30442 openbsd* | bitrig*)
30443 version_type=sunos
30444 sys_lib_dlsearch_path_spec=/usr/lib
30445 need_lib_prefix=no
30446 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
30447 need_version=no
30448 else
30449 need_version=yes
30450 fi
30451 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
30452 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
30453 shlibpath_var=LD_LIBRARY_PATH
30454 shlibpath_overrides_runpath=yes
30455 ;;
30456
30457 os2*)
30458 libname_spec='$name'
30459 version_type=windows
30460 shrext_cmds=.dll
30461 need_version=no
30462 need_lib_prefix=no
30463 # OS/2 can only load a DLL with a base name of 8 characters or less.
30464 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
30465 v=$($ECHO $release$versuffix | tr -d .-);
30466 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
30467 $ECHO $n$v`$shared_ext'
30468 library_names_spec='${libname}_dll.$libext'
30469 dynamic_linker='OS/2 ld.exe'
30470 shlibpath_var=BEGINLIBPATH
30471 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
30472 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
30473 postinstall_cmds='base_file=`basename \$file`~
30474 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
30475 dldir=$destdir/`dirname \$dlpath`~
30476 test -d \$dldir || mkdir -p \$dldir~
30477 $install_prog $dir/$dlname \$dldir/$dlname~
30478 chmod a+x \$dldir/$dlname~
30479 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
30480 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
30481 fi'
30482 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
30483 dlpath=$dir/\$dldll~
30484 $RM \$dlpath'
30485 ;;
30486
30487 osf3* | osf4* | osf5*)
30488 version_type=osf
30489 need_lib_prefix=no
30490 need_version=no
30491 soname_spec='$libname$release$shared_ext$major'
30492 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
30493 shlibpath_var=LD_LIBRARY_PATH
30494 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
30495 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
30496 ;;
30497
30498 rdos*)
30499 dynamic_linker=no
30500 ;;
30501
30502 solaris*)
30503 version_type=linux # correct to gnu/linux during the next big refactor
30504 need_lib_prefix=no
30505 need_version=no
30506 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
30507 soname_spec='$libname$release$shared_ext$major'
30508 shlibpath_var=LD_LIBRARY_PATH
30509 shlibpath_overrides_runpath=yes
30510 hardcode_into_libs=yes
30511 # ldd complains unless libraries are executable
30512 postinstall_cmds='chmod +x $lib'
30513 ;;
30514
30515 sunos4*)
30516 version_type=sunos
30517 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
30518 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
30519 shlibpath_var=LD_LIBRARY_PATH
30520 shlibpath_overrides_runpath=yes
30521 if test yes = "$with_gnu_ld"; then
30522 need_lib_prefix=no
30523 fi
30524 need_version=yes
30525 ;;
30526
30527 sysv4 | sysv4.3*)
30528 version_type=linux # correct to gnu/linux during the next big refactor
30529 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
30530 soname_spec='$libname$release$shared_ext$major'
30531 shlibpath_var=LD_LIBRARY_PATH
30532 case $host_vendor in
30533 sni)
30534 shlibpath_overrides_runpath=no
30535 need_lib_prefix=no
30536 runpath_var=LD_RUN_PATH
30537 ;;
30538 siemens)
30539 need_lib_prefix=no
30540 ;;
30541 motorola)
30542 need_lib_prefix=no
30543 need_version=no
30544 shlibpath_overrides_runpath=no
30545 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
30546 ;;
30547 esac
30548 ;;
30549
30550 sysv4*MP*)
30551 if test -d /usr/nec; then
30552 version_type=linux # correct to gnu/linux during the next big refactor
30553 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
30554 soname_spec='$libname$shared_ext.$major'
30555 shlibpath_var=LD_LIBRARY_PATH
30556 fi
30557 ;;
30558
30559 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
30560 version_type=sco
30561 need_lib_prefix=no
30562 need_version=no
30563 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
30564 soname_spec='$libname$release$shared_ext$major'
30565 shlibpath_var=LD_LIBRARY_PATH
30566 shlibpath_overrides_runpath=yes
30567 hardcode_into_libs=yes
30568 if test yes = "$with_gnu_ld"; then
30569 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
30570 else
30571 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
30572 case $host_os in
30573 sco3.2v5*)
30574 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
30575 ;;
30576 esac
30577 fi
30578 sys_lib_dlsearch_path_spec='/usr/lib'
30579 ;;
30580
30581 tpf*)
30582 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
30583 version_type=linux # correct to gnu/linux during the next big refactor
30584 need_lib_prefix=no
30585 need_version=no
30586 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
30587 shlibpath_var=LD_LIBRARY_PATH
30588 shlibpath_overrides_runpath=no
30589 hardcode_into_libs=yes
30590 ;;
30591
30592 uts4*)
30593 version_type=linux # correct to gnu/linux during the next big refactor
30594 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
30595 soname_spec='$libname$release$shared_ext$major'
30596 shlibpath_var=LD_LIBRARY_PATH
30597 ;;
30598
30599 *)
30600 dynamic_linker=no
30601 ;;
30602 esac
30603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
30604 case "$dynamic_linker" in #(
30605 yes|ok|yes[\ ,]*) :
30606 $as_echo "${as__grn}$dynamic_linker${as__std}" >&6 ;; #(
30607 no|failed|unsupported|no[\ ,]*) :
30608 $as_echo "${as__red}$dynamic_linker${as__std}" >&6 ;; #(
30609 *) :
30610 $as_echo "${as__blu}$dynamic_linker${as__std}" >&6 ;;
30611 esac; }
30612 test no = "$dynamic_linker" && can_build_shared=no
30613
30614 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
30615 if test yes = "$GCC"; then
30616 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
30617 fi
30618
30619 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
30620 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
30621 fi
30622
30623 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
30624 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
30625 fi
30626
30627 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
30628 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
30629
30630 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
30631 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
30632
30633 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
30634 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
30635
30636
30637
30638
30639
30640
30641
30642
30643
30644
30645
30646
30647
30648
30649
30650
30651
30652
30653
30654
30655
30656
30657
30658
30659
30660
30661
30662
30663
30664
30665
30666
30667
30668
30669
30670
30671
30672
30673
30674
30675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
30676 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
30677 hardcode_action_FC=
30678 if test -n "$hardcode_libdir_flag_spec_FC" ||
30679 test -n "$runpath_var_FC" ||
30680 test yes = "$hardcode_automatic_FC"; then
30681
30682 # We can hardcode non-existent directories.
30683 if test no != "$hardcode_direct_FC" &&
30684 # If the only mechanism to avoid hardcoding is shlibpath_var, we
30685 # have to relink, otherwise we might link with an installed library
30686 # when we should be linking with a yet-to-be-installed one
30687 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" &&
30688 test no != "$hardcode_minus_L_FC"; then
30689 # Linking always hardcodes the temporary library directory.
30690 hardcode_action_FC=relink
30691 else
30692 # We can link without hardcoding, and we can hardcode nonexisting dirs.
30693 hardcode_action_FC=immediate
30694 fi
30695 else
30696 # We cannot hardcode anything, or else we can only hardcode existing
30697 # directories.
30698 hardcode_action_FC=unsupported
30699 fi
30700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
30701 case "$hardcode_action_FC" in #(
30702 yes|ok|yes[\ ,]*) :
30703 $as_echo "${as__grn}$hardcode_action_FC${as__std}" >&6 ;; #(
30704 no|failed|unsupported|no[\ ,]*) :
30705 $as_echo "${as__red}$hardcode_action_FC${as__std}" >&6 ;; #(
30706 *) :
30707 $as_echo "${as__blu}$hardcode_action_FC${as__std}" >&6 ;;
30708 esac; }
30709
30710 if test relink = "$hardcode_action_FC" ||
30711 test yes = "$inherit_rpath_FC"; then
30712 # Fast installation is not supported
30713 enable_fast_install=no
30714 elif test yes = "$shlibpath_overrides_runpath" ||
30715 test no = "$enable_shared"; then
30716 # Fast installation is not necessary
30717 enable_fast_install=needless
30718 fi
30719
30720
30721
30722
30723
30724
30725
30726 fi # test -n "$compiler"
30727
30728 GCC=$lt_save_GCC
30729 CC=$lt_save_CC
30730 CFLAGS=$lt_save_CFLAGS
30731 fi # test yes != "$_lt_disable_FC"
30732
30733 ac_ext=c
30734 ac_cpp='$CPP $CPPFLAGS'
30735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30738
30739
30740
30741
30742
30743
30744
30745
30746
30747
30748
30749 ac_config_commands="$ac_config_commands libtool"
30750
30751
30752
30753
30754 # Only expand once:
30755
30756
30757
30758
30759 _lcl_receval="${libexecdir}"
30760 LIBEXECDIR=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
30761 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
30762 _lcl_receval_old=''
30763 while test "$_lcl_receval_old" != "$_lcl_receval"; do
30764 _lcl_receval_old="$_lcl_receval"
30765 eval _lcl_receval="\"$_lcl_receval\""
30766 done
30767 echo "$_lcl_receval")`
30768 LIBEXECDIR=${LIBEXECDIR}
30769
30770
30771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readlink" >&5
30772 $as_echo_n "checking for readlink... " >&6; }
30773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30774 /* end confdefs.h. */
30775
30776 #include <unistd.h>
30777 #include <stdio.h>
30778 int main()
30779 {
30780 char buffer[BUFSIZ];
30781 readlink("/proc/self/exe", buffer, BUFSIZ);
30782 printf("%s\n", buffer);
30783 return 0;
30784 }
30785
30786 _ACEOF
30787 if ac_fn_c_try_link "$LINENO"; then :
30788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30789 $as_echo "${as__grn}yes${as__std}" >&6; };
30790
30791 $as_echo "#define HAVE_READLINK 1" >>confdefs.h
30792
30793 else
30794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30795 $as_echo "${as__red}no${as__std}" >&6; }
30796 fi
30797 rm -f core conftest.err conftest.$ac_objext \
30798 conftest$ac_exeext conftest.$ac_ext
30799
30800 ac_config_files="$ac_config_files Makefile"
30801
30802 ac_config_files="$ac_config_files ../test/jacobi_c_test.sh"
30803
30804 ac_config_files="$ac_config_files ../test/jacobi_c++_test.sh"
30805
30806 ac_config_files="$ac_config_files ../test/jacobi_f90_test.sh"
30807
30808 ac_config_files="$ac_config_files ../test/jacobi_f77_test.sh"
30809
30810 ac_config_files="$ac_config_files ../doc/example/openmp/Makefile"
30811
30812 ac_config_files="$ac_config_files ../doc/example/pomp/Makefile"
30813
30814 ac_config_files="$ac_config_files ../src/opari2_config_tool_frontend.h:../src/opari/opari2_config_tool_frontend.h.in"
30815
30816
30817 cat >confcache <<\_ACEOF
30818 # This file is a shell script that caches the results of configure
30819 # tests run on this system so they can be shared between configure
30820 # scripts and configure runs, see configure's option --config-cache.
30821 # It is not useful on other systems. If it contains results you don't
30822 # want to keep, you may remove or edit it.
30823 #
30824 # config.status only pays attention to the cache file if you give it
30825 # the --recheck option to rerun configure.
30826 #
30827 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30828 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30829 # following values.
30830
30831 _ACEOF
30832
30833 # The following way of writing the cache mishandles newlines in values,
30834 # but we know of no workaround that is simple, portable, and efficient.
30835 # So, we kill variables containing newlines.
30836 # Ultrix sh set writes to stderr and can't be redirected directly,
30837 # and sets the high bit in the cache file unless we assign to the vars.
30838 (
30839 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30840 eval ac_val=\$$ac_var
30841 case $ac_val in #(
30842 *${as_nl}*)
30843 case $ac_var in #(
30844 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30845 $as_echo "$as_me: ${as__yel}WARNING: cache variable $ac_var contains a newline${as__std}" >&2;} ;;
30846 esac
30847 case $ac_var in #(
30848 _ | IFS | as_nl) ;; #(
30849 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30850 *) { eval $ac_var=; unset $ac_var;} ;;
30851 esac ;;
30852 esac
30853 done
30854
30855 (set) 2>&1 |
30856 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30857 *${as_nl}ac_space=\ *)
30858 # `set' does not quote correctly, so add quotes: double-quote
30859 # substitution turns \\\\ into \\, and sed turns \\ into \.
30860 sed -n \
30861 "s/'/'\\\\''/g;
30862 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30863 ;; #(
30864 *)
30865 # `set' quotes correctly as required by POSIX, so do not add quotes.
30866 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30867 ;;
30868 esac |
30869 sort
30870 ) |
30871 sed '
30872 /^ac_cv_env_/b end
30873 t clear
30874 :clear
30875 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30876 t end
30877 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30878 :end' >>confcache
30879 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30880 if test -w "$cache_file"; then
30881 if test "x$cache_file" != "x/dev/null"; then
30882 { $as_echo "$as_me:${as_lineno-$LINENO}: info: updating cache $cache_file" >&5
30883 $as_echo "$as_me: ${as__blu}info: updating cache $cache_file${as__std}" >&2;}
30884 if test ! -f "$cache_file" || test -h "$cache_file"; then
30885 cat confcache >"$cache_file"
30886 else
30887 case $cache_file in #(
30888 */* | ?:*)
30889 mv -f confcache "$cache_file"$$ &&
30890 mv -f "$cache_file"$$ "$cache_file" ;; #(
30891 *)
30892 mv -f confcache "$cache_file" ;;
30893 esac
30894 fi
30895 fi
30896 else
30897 { $as_echo "$as_me:${as_lineno-$LINENO}: info: not updating unwritable cache $cache_file" >&5
30898 $as_echo "$as_me: ${as__blu}info: not updating unwritable cache $cache_file${as__std}" >&2;}
30899 fi
30900 fi
30901 rm -f confcache
30902
30903 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30904 # Let make expand exec_prefix.
30905 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30906
30907 DEFS=-DHAVE_CONFIG_H
30908
30909 ac_libobjs=
30910 ac_ltlibobjs=
30911 U=
30912 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30913 # 1. Remove the extension, and $U if already installed.
30914 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30915 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30916 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30917 # will be set to the directory where LIBOBJS objects are built.
30918 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30919 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
30920 done
30921 LIBOBJS=$ac_libobjs
30922
30923 LTLIBOBJS=$ac_ltlibobjs
30924
30925
30926 if test -z "${GIT_CONTROLLED_TRUE}" && test -z "${GIT_CONTROLLED_FALSE}"; then
30927 as_fn_error $? "conditional \"GIT_CONTROLLED\" was never defined.
30928 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30929 fi
30930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
30931 $as_echo_n "checking that generated files are newer than configure... " >&6; }
30932 if test -n "$am_sleep_pid"; then
30933 # Hide warnings about reused PIDs.
30934 wait $am_sleep_pid 2>/dev/null
30935 fi
30936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
30937 case "done" in #(
30938 yes|ok|yes[\ ,]*) :
30939 $as_echo "${as__grn}done${as__std}" >&6 ;; #(
30940 no|failed|unsupported|no[\ ,]*) :
30941 $as_echo "${as__red}done${as__std}" >&6 ;; #(
30942 *) :
30943 $as_echo "${as__blu}done${as__std}" >&6 ;;
30944 esac; }
30945 if test -n "$EXEEXT"; then
30946 am__EXEEXT_TRUE=
30947 am__EXEEXT_FALSE='#'
30948 else
30949 am__EXEEXT_TRUE='#'
30950 am__EXEEXT_FALSE=
30951 fi
30952
30953 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
30954 as_fn_error $? "conditional \"AMDEP\" was never defined.
30955 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30956 fi
30957 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30958 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
30959 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30960 fi
30961 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
30962 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
30963 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30964 fi
30965 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
30966 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
30967 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30968 fi
30969 if test -z "${BUILD_TESTS_TRUE}" && test -z "${BUILD_TESTS_FALSE}"; then
30970 as_fn_error $? "conditional \"BUILD_TESTS\" was never defined.
30971 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30972 fi
30973 if test -z "${PLATFORM_ALTIX_TRUE}" && test -z "${PLATFORM_ALTIX_FALSE}"; then
30974 as_fn_error $? "conditional \"PLATFORM_ALTIX\" was never defined.
30975 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30976 fi
30977 if test -z "${PLATFORM_AIX_TRUE}" && test -z "${PLATFORM_AIX_FALSE}"; then
30978 as_fn_error $? "conditional \"PLATFORM_AIX\" was never defined.
30979 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30980 fi
30981 if test -z "${PLATFORM_BGL_TRUE}" && test -z "${PLATFORM_BGL_FALSE}"; then
30982 as_fn_error $? "conditional \"PLATFORM_BGL\" was never defined.
30983 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30984 fi
30985 if test -z "${PLATFORM_BGP_TRUE}" && test -z "${PLATFORM_BGP_FALSE}"; then
30986 as_fn_error $? "conditional \"PLATFORM_BGP\" was never defined.
30987 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30988 fi
30989 if test -z "${PLATFORM_BGQ_TRUE}" && test -z "${PLATFORM_BGQ_FALSE}"; then
30990 as_fn_error $? "conditional \"PLATFORM_BGQ\" was never defined.
30991 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30992 fi
30993 if test -z "${PLATFORM_CRAYXT_TRUE}" && test -z "${PLATFORM_CRAYXT_FALSE}"; then
30994 as_fn_error $? "conditional \"PLATFORM_CRAYXT\" was never defined.
30995 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30996 fi
30997 if test -z "${PLATFORM_CRAYXE_TRUE}" && test -z "${PLATFORM_CRAYXE_FALSE}"; then
30998 as_fn_error $? "conditional \"PLATFORM_CRAYXE\" was never defined.
30999 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31000 fi
31001 if test -z "${PLATFORM_CRAYXK_TRUE}" && test -z "${PLATFORM_CRAYXK_FALSE}"; then
31002 as_fn_error $? "conditional \"PLATFORM_CRAYXK\" was never defined.
31003 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31004 fi
31005 if test -z "${PLATFORM_CRAYXC_TRUE}" && test -z "${PLATFORM_CRAYXC_FALSE}"; then
31006 as_fn_error $? "conditional \"PLATFORM_CRAYXC\" was never defined.
31007 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31008 fi
31009 if test -z "${PLATFORM_CRAYGENERIC_TRUE}" && test -z "${PLATFORM_CRAYGENERIC_FALSE}"; then
31010 as_fn_error $? "conditional \"PLATFORM_CRAYGENERIC\" was never defined.
31011 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31012 fi
31013 if test -z "${PLATFORM_LINUX_TRUE}" && test -z "${PLATFORM_LINUX_FALSE}"; then
31014 as_fn_error $? "conditional \"PLATFORM_LINUX\" was never defined.
31015 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31016 fi
31017 if test -z "${PLATFORM_SOLARIS_TRUE}" && test -z "${PLATFORM_SOLARIS_FALSE}"; then
31018 as_fn_error $? "conditional \"PLATFORM_SOLARIS\" was never defined.
31019 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31020 fi
31021 if test -z "${PLATFORM_MAC_TRUE}" && test -z "${PLATFORM_MAC_FALSE}"; then
31022 as_fn_error $? "conditional \"PLATFORM_MAC\" was never defined.
31023 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31024 fi
31025 if test -z "${PLATFORM_MIC_TRUE}" && test -z "${PLATFORM_MIC_FALSE}"; then
31026 as_fn_error $? "conditional \"PLATFORM_MIC\" was never defined.
31027 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31028 fi
31029 if test -z "${PLATFORM_MINGW_TRUE}" && test -z "${PLATFORM_MINGW_FALSE}"; then
31030 as_fn_error $? "conditional \"PLATFORM_MINGW\" was never defined.
31031 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31032 fi
31033 if test -z "${PLATFORM_K_TRUE}" && test -z "${PLATFORM_K_FALSE}"; then
31034 as_fn_error $? "conditional \"PLATFORM_K\" was never defined.
31035 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31036 fi
31037 if test -z "${PLATFORM_FX10_TRUE}" && test -z "${PLATFORM_FX10_FALSE}"; then
31038 as_fn_error $? "conditional \"PLATFORM_FX10\" was never defined.
31039 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31040 fi
31041 if test -z "${PLATFORM_FX100_TRUE}" && test -z "${PLATFORM_FX100_FALSE}"; then
31042 as_fn_error $? "conditional \"PLATFORM_FX100\" was never defined.
31043 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31044 fi
31045 if test -z "${PLATFORM_CRAY_TRUE}" && test -z "${PLATFORM_CRAY_FALSE}"; then
31046 as_fn_error $? "conditional \"PLATFORM_CRAY\" was never defined.
31047 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31048 fi
31049 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
31050 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
31051 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31052 fi
31053 if test -z "${SCOREP_HAVE_FC_TRUE}" && test -z "${SCOREP_HAVE_FC_FALSE}"; then
31054 as_fn_error $? "conditional \"SCOREP_HAVE_FC\" was never defined.
31055 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31056 fi
31057 if test -z "${SCOREP_HAVE_F77_TRUE}" && test -z "${SCOREP_HAVE_F77_FALSE}"; then
31058 as_fn_error $? "conditional \"SCOREP_HAVE_F77\" was never defined.
31059 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31060 fi
31061 if test -z "${HAVE_OPENMP_SUPPORT_TRUE}" && test -z "${HAVE_OPENMP_SUPPORT_FALSE}"; then
31062 as_fn_error $? "conditional \"HAVE_OPENMP_SUPPORT\" was never defined.
31063 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31064 fi
31065 if test -z "${FORTRAN_SUPPORT_ALLOCATABLE_TRUE}" && test -z "${FORTRAN_SUPPORT_ALLOCATABLE_FALSE}"; then
31066 as_fn_error $? "conditional \"FORTRAN_SUPPORT_ALLOCATABLE\" was never defined.
31067 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31068 fi
31069
31070 : "${CONFIG_STATUS=./config.status}"
31071 ac_write_fail=0
31072 ac_clean_files_save=$ac_clean_files
31073 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31074 { $as_echo "$as_me:${as_lineno-$LINENO}: info: creating $CONFIG_STATUS" >&5
31075 $as_echo "$as_me: ${as__blu}info: creating $CONFIG_STATUS${as__std}" >&2;}
31076 as_write_fail=0
31077 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
31078 #! $SHELL
31079 # Generated by $as_me.
31080 # Run this file to recreate the current configuration.
31081 # Compiler output produced by configure, useful for debugging
31082 # configure, is in config.log if it exists.
31083
31084 debug=false
31085 ac_cs_recheck=false
31086 ac_cs_silent=false
31087
31088 SHELL=\${CONFIG_SHELL-$SHELL}
31089 export SHELL
31090 _ASEOF
31091 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
31092 ## -------------------- ##
31093 ## M4sh Initialization. ##
31094 ## -------------------- ##
31095
31096 # Be more Bourne compatible
31097 DUALCASE=1; export DUALCASE # for MKS sh
31098 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
31099 emulate sh
31100 NULLCMD=:
31101 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
31102 # is contrary to our usage. Disable this feature.
31103 alias -g '${1+"$@"}'='"$@"'
31104 setopt NO_GLOB_SUBST
31105 else
31106 case `(set -o) 2>/dev/null` in #(
31107 *posix*) :
31108 set -o posix ;; #(
31109 *) :
31110 ;;
31111 esac
31112 fi
31113
31114
31115 as_nl='
31116 '
31117 export as_nl
31118 # Printing a long string crashes Solaris 7 /usr/bin/printf.
31119 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
31120 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
31121 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
31122 # Prefer a ksh shell builtin over an external printf program on Solaris,
31123 # but without wasting forks for bash or zsh.
31124 if test -z "$BASH_VERSION$ZSH_VERSION" \
31125 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
31126 as_echo='print -r --'
31127 as_echo_n='print -rn --'
31128 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
31129 as_echo='printf %s\n'
31130 as_echo_n='printf %s'
31131 else
31132 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
31133 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
31134 as_echo_n='/usr/ucb/echo -n'
31135 else
31136 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
31137 as_echo_n_body='eval
31138 arg=$1;
31139 case $arg in #(
31140 *"$as_nl"*)
31141 expr "X$arg" : "X\\(.*\\)$as_nl";
31142 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
31143 esac;
31144 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
31145 '
31146 export as_echo_n_body
31147 as_echo_n='sh -c $as_echo_n_body as_echo'
31148 fi
31149 export as_echo_body
31150 as_echo='sh -c $as_echo_body as_echo'
31151 fi
31152
31153 # The user is always right.
31154 if test "${PATH_SEPARATOR+set}" != set; then
31155 PATH_SEPARATOR=:
31156 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
31157 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31158 PATH_SEPARATOR=';'
31159 }
31160 fi
31161
31162
31163 # need to catch these variables, before unsetting them later
31164 : ${AS_COLOR:=$CLICOLOR}; export AS_COLOR
31165 : ${AS_COLOR_FORCE:=$CLICOLOR_FORCE}; export AS_COLOR_FORCE
31166
31167 as__red=
31168 as__grn=
31169 as__yel=
31170 as__blu=
31171 as__mag=
31172 as__cya=
31173 as__gry=
31174 as__std=
31175 as__color=no
31176 if test "X$AS_COLOR_FORCE" = X0; then
31177 as__color=no;
31178 elif test "X$AS_COLOR_FORCE" = X1; then
31179 as__color=yes
31180 elif { test "X$TERM" != Xdumb || test "X$AS_COLOR" = X1; } && { test -t 1; } 2>/dev/null; then
31181 as__color=yes
31182 fi
31183 if test $as__color = yes; then
31184 as__red=''
31185 as__grn=''
31186 as__yel=''
31187 as__blu=''
31188 as__mag=''
31189 as__cya=''
31190 as__gry=''
31191 as__std=''
31192 fi
31193
31194 # IFS
31195 # We need space, tab and new line, in precisely that order. Quoting is
31196 # there to prevent editors from complaining about space-tab.
31197 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
31198 # splitting by setting IFS to empty value.)
31199 IFS=" "" $as_nl"
31200
31201 # Find who we are. Look in the path if we contain no directory separator.
31202 as_myself=
31203 case $0 in #((
31204 *[\\/]* ) as_myself=$0 ;;
31205 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31206 for as_dir in $PATH
31207 do
31208 IFS=$as_save_IFS
31209 test -z "$as_dir" && as_dir=.
31210 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31211 done
31212 IFS=$as_save_IFS
31213
31214 ;;
31215 esac
31216 # We did not find ourselves, most probably we were run as `sh COMMAND'
31217 # in which case we are not to be found in the path.
31218 if test "x$as_myself" = x; then
31219 as_myself=$0
31220 fi
31221 if test ! -f "$as_myself"; then
31222 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
31223 exit 1
31224 fi
31225
31226 # Unset variables that we do not need and which cause bugs (e.g. in
31227 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
31228 # suppresses any "Segmentation fault" message there. '((' could
31229 # trigger a bug in pdksh 5.2.14.
31230 for as_var in BASH_ENV ENV MAIL MAILPATH
31231 do eval test x\${$as_var+set} = xset \
31232 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
31233 done
31234 PS1='$ '
31235 PS2='> '
31236 PS4='+ '
31237
31238 # NLS nuisances.
31239 LC_ALL=C
31240 export LC_ALL
31241 LANGUAGE=C
31242 export LANGUAGE
31243
31244 # CDPATH.
31245 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31246
31247
31248 # as_fn_error STATUS ERROR [LINENO LOG_FD]
31249 # ----------------------------------------
31250 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
31251 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
31252 # script with STATUS, using 1 if that was 0.
31253 as_fn_error ()
31254 {
31255 as_status=$1; test $as_status -eq 0 && as_status=1
31256 if test "$4"; then
31257 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
31258 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
31259 fi
31260 $as_echo "$as_me: ${as__red}error: $2${as__std}" >&2
31261 as_fn_exit $as_status
31262 } # as_fn_error
31263
31264
31265 # as_fn_set_status STATUS
31266 # -----------------------
31267 # Set $? to STATUS, without forking.
31268 as_fn_set_status ()
31269 {
31270 return $1
31271 } # as_fn_set_status
31272
31273 # as_fn_exit STATUS
31274 # -----------------
31275 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31276 as_fn_exit ()
31277 {
31278 set +e
31279 as_fn_set_status $1
31280 exit $1
31281 } # as_fn_exit
31282
31283 # as_fn_unset VAR
31284 # ---------------
31285 # Portably unset VAR.
31286 as_fn_unset ()
31287 {
31288 { eval $1=; unset $1;}
31289 }
31290 as_unset=as_fn_unset
31291 # as_fn_append VAR VALUE
31292 # ----------------------
31293 # Append the text in VALUE to the end of the definition contained in VAR. Take
31294 # advantage of any shell optimizations that allow amortized linear growth over
31295 # repeated appends, instead of the typical quadratic growth present in naive
31296 # implementations.
31297 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
31298 eval 'as_fn_append ()
31299 {
31300 eval $1+=\$2
31301 }'
31302 else
31303 as_fn_append ()
31304 {
31305 eval $1=\$$1\$2
31306 }
31307 fi # as_fn_append
31308
31309 # as_fn_arith ARG...
31310 # ------------------
31311 # Perform arithmetic evaluation on the ARGs, and store the result in the
31312 # global $as_val. Take advantage of shells that can avoid forks. The arguments
31313 # must be portable across $(()) and expr.
31314 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
31315 eval 'as_fn_arith ()
31316 {
31317 as_val=$(( $* ))
31318 }'
31319 else
31320 as_fn_arith ()
31321 {
31322 as_val=`expr "$@" || test $? -eq 1`
31323 }
31324 fi # as_fn_arith
31325
31326
31327 if expr a : '\(a\)' >/dev/null 2>&1 &&
31328 test "X`expr 00001 : '.*\(...\)'`" = X001; then
31329 as_expr=expr
31330 else
31331 as_expr=false
31332 fi
31333
31334 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31335 as_basename=basename
31336 else
31337 as_basename=false
31338 fi
31339
31340 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31341 as_dirname=dirname
31342 else
31343 as_dirname=false
31344 fi
31345
31346 as_me=`$as_basename -- "$0" ||
31347 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31348 X"$0" : 'X\(//\)$' \| \
31349 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31350 $as_echo X/"$0" |
31351 sed '/^.*\/\([^/][^/]*\)\/*$/{
31352 s//\1/
31353 q
31354 }
31355 /^X\/\(\/\/\)$/{
31356 s//\1/
31357 q
31358 }
31359 /^X\/\(\/\).*/{
31360 s//\1/
31361 q
31362 }
31363 s/.*/./; q'`
31364
31365 # Avoid depending upon Character Ranges.
31366 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31367 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31368 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31369 as_cr_digits='0123456789'
31370 as_cr_alnum=$as_cr_Letters$as_cr_digits
31371
31372 ECHO_C= ECHO_N= ECHO_T=
31373 case `echo -n x` in #(((((
31374 -n*)
31375 case `echo 'xy\c'` in
31376 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
31377 xy) ECHO_C='\c';;
31378 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
31379 ECHO_T=' ';;
31380 esac;;
31381 *)
31382 ECHO_N='-n';;
31383 esac
31384
31385 rm -f conf$$ conf$$.exe conf$$.file
31386 if test -d conf$$.dir; then
31387 rm -f conf$$.dir/conf$$.file
31388 else
31389 rm -f conf$$.dir
31390 mkdir conf$$.dir 2>/dev/null
31391 fi
31392 if (echo >conf$$.file) 2>/dev/null; then
31393 if ln -s conf$$.file conf$$ 2>/dev/null; then
31394 as_ln_s='ln -s'
31395 # ... but there are two gotchas:
31396 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31397 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31398 # In both cases, we have to default to `cp -pR'.
31399 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31400 as_ln_s='cp -pR'
31401 elif ln conf$$.file conf$$ 2>/dev/null; then
31402 as_ln_s=ln
31403 else
31404 as_ln_s='cp -pR'
31405 fi
31406 else
31407 as_ln_s='cp -pR'
31408 fi
31409 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31410 rmdir conf$$.dir 2>/dev/null
31411
31412
31413 # as_fn_mkdir_p
31414 # -------------
31415 # Create "$as_dir" as a directory, including parents if necessary.
31416 as_fn_mkdir_p ()
31417 {
31418
31419 case $as_dir in #(
31420 -*) as_dir=./$as_dir;;
31421 esac
31422 test -d "$as_dir" || eval $as_mkdir_p || {
31423 as_dirs=
31424 while :; do
31425 case $as_dir in #(
31426 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31427 *) as_qdir=$as_dir;;
31428 esac
31429 as_dirs="'$as_qdir' $as_dirs"
31430 as_dir=`$as_dirname -- "$as_dir" ||
31431 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31432 X"$as_dir" : 'X\(//\)[^/]' \| \
31433 X"$as_dir" : 'X\(//\)$' \| \
31434 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31435 $as_echo X"$as_dir" |
31436 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31437 s//\1/
31438 q
31439 }
31440 /^X\(\/\/\)[^/].*/{
31441 s//\1/
31442 q
31443 }
31444 /^X\(\/\/\)$/{
31445 s//\1/
31446 q
31447 }
31448 /^X\(\/\).*/{
31449 s//\1/
31450 q
31451 }
31452 s/.*/./; q'`
31453 test -d "$as_dir" && break
31454 done
31455 test -z "$as_dirs" || eval "mkdir $as_dirs"
31456 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
31457
31458
31459 } # as_fn_mkdir_p
31460 if mkdir -p . 2>/dev/null; then
31461 as_mkdir_p='mkdir -p "$as_dir"'
31462 else
31463 test -d ./-p && rmdir ./-p
31464 as_mkdir_p=false
31465 fi
31466
31467
31468 # as_fn_executable_p FILE
31469 # -----------------------
31470 # Test if FILE is an executable regular file.
31471 as_fn_executable_p ()
31472 {
31473 test -f "$1" && test -x "$1"
31474 } # as_fn_executable_p
31475 as_test_x='test -x'
31476 as_executable_p=as_fn_executable_p
31477
31478 # Sed expression to map a string onto a valid CPP name.
31479 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31480
31481 # Sed expression to map a string onto a valid variable name.
31482 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31483
31484
31485 exec 6>&1
31486 ## ----------------------------------- ##
31487 ## Main body of $CONFIG_STATUS script. ##
31488 ## ----------------------------------- ##
31489 _ASEOF
31490 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
31491
31492 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31493 # Save the log message, to keep $0 and so on meaningful, and to
31494 # report actual input values of CONFIG_FILES etc. instead of their
31495 # values after options handling.
31496 ac_log="
31497 This file was extended by OPARI2 $as_me 2.0.9, which was
31498 generated by GNU Autoconf 2.69. Invocation command line was
31499
31500 CONFIG_FILES = $CONFIG_FILES
31501 CONFIG_HEADERS = $CONFIG_HEADERS
31502 CONFIG_LINKS = $CONFIG_LINKS
31503 CONFIG_COMMANDS = $CONFIG_COMMANDS
31504 $ $0 $@
31505
31506 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31507 "
31508
31509 _ACEOF
31510
31511 case $ac_config_files in *"
31512 "*) set x $ac_config_files; shift; ac_config_files=$*;;
31513 esac
31514
31515 case $ac_config_headers in *"
31516 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31517 esac
31518
31519
31520 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31521 # Files that config.status was made for.
31522 config_files="$ac_config_files"
31523 config_headers="$ac_config_headers"
31524 config_commands="$ac_config_commands"
31525
31526 _ACEOF
31527
31528 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31529 ac_cs_usage="\
31530 \`$as_me' instantiates files and other configuration actions
31531 from templates according to the current configuration. Unless the files
31532 and actions are specified as TAGs, all are instantiated by default.
31533
31534 Usage: $0 [OPTION]... [TAG]...
31535
31536 -h, --help print this help, then exit
31537 -V, --version print version number and configuration settings, then exit
31538 --config print configuration, then exit
31539 -q, --quiet, --silent
31540 do not print progress messages
31541 -d, --debug don't remove temporary files
31542 --recheck update $as_me by reconfiguring in the same conditions
31543 --file=FILE[:TEMPLATE]
31544 instantiate the configuration file FILE
31545 --header=FILE[:TEMPLATE]
31546 instantiate the configuration header FILE
31547
31548 Configuration files:
31549 $config_files
31550
31551 Configuration headers:
31552 $config_headers
31553
31554 Configuration commands:
31555 $config_commands
31556
31557 Report bugs to <[email protected]>."
31558
31559 _ACEOF
31560 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31561 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31562 ac_cs_version="\\
31563 OPARI2 config.status 2.0.9
31564 configured by $0, generated by GNU Autoconf 2.69,
31565 with options \\"\$ac_cs_config\\"
31566
31567 Copyright (C) 2012 Free Software Foundation, Inc.
31568 This config.status script is free software; the Free Software Foundation
31569 gives unlimited permission to copy, distribute and modify it."
31570
31571 ac_pwd='$ac_pwd'
31572 srcdir='$srcdir'
31573 INSTALL='$INSTALL'
31574 MKDIR_P='$MKDIR_P'
31575 AWK='$AWK'
31576 test -n "\$AWK" || AWK=awk
31577 _ACEOF
31578
31579 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31580 # The default lists apply if the user does not specify any file.
31581 ac_need_defaults=:
31582 while test $# != 0
31583 do
31584 case $1 in
31585 --*=?*)
31586 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31587 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31588 ac_shift=:
31589 ;;
31590 --*=)
31591 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31592 ac_optarg=
31593 ac_shift=:
31594 ;;
31595 *)
31596 ac_option=$1
31597 ac_optarg=$2
31598 ac_shift=shift
31599 ;;
31600 esac
31601
31602 case $ac_option in
31603 # Handling of the options.
31604 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31605 ac_cs_recheck=: ;;
31606 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31607 $as_echo "$ac_cs_version"; exit ;;
31608 --config | --confi | --conf | --con | --co | --c )
31609 $as_echo "$ac_cs_config"; exit ;;
31610 --debug | --debu | --deb | --de | --d | -d )
31611 debug=: ;;
31612 --file | --fil | --fi | --f )
31613 $ac_shift
31614 case $ac_optarg in
31615 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31616 '') as_fn_error $? "missing file argument" ;;
31617 esac
31618 as_fn_append CONFIG_FILES " '$ac_optarg'"
31619 ac_need_defaults=false;;
31620 --header | --heade | --head | --hea )
31621 $ac_shift
31622 case $ac_optarg in
31623 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31624 esac
31625 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
31626 ac_need_defaults=false;;
31627 --he | --h)
31628 # Conflict between --help and --header
31629 as_fn_error $? "ambiguous option: \`$1'
31630 Try \`$0 --help' for more information.";;
31631 --help | --hel | -h )
31632 $as_echo "$ac_cs_usage"; exit ;;
31633 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31634 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31635 ac_cs_silent=: ;;
31636
31637 # This is an error.
31638 -*) as_fn_error $? "unrecognized option: \`$1'
31639 Try \`$0 --help' for more information." ;;
31640
31641 *) as_fn_append ac_config_targets " $1"
31642 ac_need_defaults=false ;;
31643
31644 esac
31645 shift
31646 done
31647
31648 ac_configure_extra_args=
31649
31650 if $ac_cs_silent; then
31651 exec 6>/dev/null
31652 ac_configure_extra_args="$ac_configure_extra_args --silent"
31653 fi
31654
31655 _ACEOF
31656 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31657 if \$ac_cs_recheck; then
31658 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31659 shift
31660 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31661 CONFIG_SHELL='$SHELL'
31662 export CONFIG_SHELL
31663 exec "\$@"
31664 fi
31665
31666 _ACEOF
31667 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31668 exec 5>>config.log
31669 {
31670 echo
31671 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31672 ## Running $as_me. ##
31673 _ASBOX
31674 $as_echo "$ac_log"
31675 } >&5
31676
31677 _ACEOF
31678 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31679 #
31680 # INIT-COMMANDS
31681 #
31682 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
31683
31684
31685 # The HP-UX ksh and POSIX shell print the target directory to stdout
31686 # if CDPATH is set.
31687 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31688
31689 sed_quote_subst='$sed_quote_subst'
31690 double_quote_subst='$double_quote_subst'
31691 delay_variable_subst='$delay_variable_subst'
31692 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
31693 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
31694 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
31695 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
31696 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
31697 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
31698 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
31699 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
31700 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
31701 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
31702 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
31703 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
31704 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
31705 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
31706 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
31707 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
31708 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
31709 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
31710 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
31711 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
31712 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
31713 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
31714 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
31715 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
31716 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
31717 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
31718 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
31719 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
31720 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
31721 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
31722 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
31723 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
31724 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
31725 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
31726 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
31727 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
31728 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
31729 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
31730 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
31731 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
31732 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
31733 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
31734 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
31735 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
31736 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
31737 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
31738 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
31739 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31740 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31741 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
31742 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
31743 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
31744 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
31745 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
31746 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
31747 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
31748 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
31749 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
31750 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
31751 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"`'
31752 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
31753 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
31754 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
31755 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
31756 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
31757 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
31758 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
31759 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
31760 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
31761 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
31762 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
31763 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
31764 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
31765 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
31766 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
31767 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
31768 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
31769 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
31770 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
31771 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
31772 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31773 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
31774 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
31775 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
31776 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
31777 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
31778 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
31779 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31780 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
31781 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31782 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
31783 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31784 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
31785 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
31786 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
31787 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
31788 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
31789 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
31790 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
31791 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
31792 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
31793 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
31794 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
31795 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
31796 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
31797 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
31798 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
31799 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
31800 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
31801 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
31802 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
31803 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
31804 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
31805 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
31806 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
31807 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
31808 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
31809 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
31810 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
31811 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
31812 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
31813 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
31814 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31815 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31816 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
31817 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
31818 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
31819 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
31820 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
31821 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
31822 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
31823 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
31824 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
31825 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
31826 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
31827 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
31828 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
31829 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
31830 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
31831 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
31832 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
31833 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
31834 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
31835 LD_F77='`$ECHO "$LD_F77" | $SED "$delay_single_quote_subst"`'
31836 LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
31837 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
31838 reload_flag_F77='`$ECHO "$reload_flag_F77" | $SED "$delay_single_quote_subst"`'
31839 reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
31840 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31841 reload_cmds_F77='`$ECHO "$reload_cmds_F77" | $SED "$delay_single_quote_subst"`'
31842 reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
31843 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31844 old_archive_cmds_F77='`$ECHO "$old_archive_cmds_F77" | $SED "$delay_single_quote_subst"`'
31845 old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
31846 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
31847 compiler_F77='`$ECHO "$compiler_F77" | $SED "$delay_single_quote_subst"`'
31848 compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
31849 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
31850 GCC_F77='`$ECHO "$GCC_F77" | $SED "$delay_single_quote_subst"`'
31851 GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
31852 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
31853 lt_prog_compiler_no_builtin_flag_F77='`$ECHO "$lt_prog_compiler_no_builtin_flag_F77" | $SED "$delay_single_quote_subst"`'
31854 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
31855 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
31856 lt_prog_compiler_pic_F77='`$ECHO "$lt_prog_compiler_pic_F77" | $SED "$delay_single_quote_subst"`'
31857 lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
31858 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
31859 lt_prog_compiler_wl_F77='`$ECHO "$lt_prog_compiler_wl_F77" | $SED "$delay_single_quote_subst"`'
31860 lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
31861 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
31862 lt_prog_compiler_static_F77='`$ECHO "$lt_prog_compiler_static_F77" | $SED "$delay_single_quote_subst"`'
31863 lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
31864 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
31865 lt_cv_prog_compiler_c_o_F77='`$ECHO "$lt_cv_prog_compiler_c_o_F77" | $SED "$delay_single_quote_subst"`'
31866 lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
31867 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
31868 archive_cmds_need_lc_F77='`$ECHO "$archive_cmds_need_lc_F77" | $SED "$delay_single_quote_subst"`'
31869 archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
31870 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
31871 enable_shared_with_static_runtimes_F77='`$ECHO "$enable_shared_with_static_runtimes_F77" | $SED "$delay_single_quote_subst"`'
31872 enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
31873 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31874 export_dynamic_flag_spec_F77='`$ECHO "$export_dynamic_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
31875 export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
31876 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31877 whole_archive_flag_spec_F77='`$ECHO "$whole_archive_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
31878 whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
31879 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
31880 compiler_needs_object_F77='`$ECHO "$compiler_needs_object_F77" | $SED "$delay_single_quote_subst"`'
31881 compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
31882 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31883 old_archive_from_new_cmds_F77='`$ECHO "$old_archive_from_new_cmds_F77" | $SED "$delay_single_quote_subst"`'
31884 old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
31885 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31886 old_archive_from_expsyms_cmds_F77='`$ECHO "$old_archive_from_expsyms_cmds_F77" | $SED "$delay_single_quote_subst"`'
31887 old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
31888 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31889 archive_cmds_F77='`$ECHO "$archive_cmds_F77" | $SED "$delay_single_quote_subst"`'
31890 archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
31891 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31892 archive_expsym_cmds_F77='`$ECHO "$archive_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`'
31893 archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
31894 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31895 module_cmds_F77='`$ECHO "$module_cmds_F77" | $SED "$delay_single_quote_subst"`'
31896 module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
31897 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31898 module_expsym_cmds_F77='`$ECHO "$module_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`'
31899 module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
31900 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
31901 with_gnu_ld_F77='`$ECHO "$with_gnu_ld_F77" | $SED "$delay_single_quote_subst"`'
31902 with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
31903 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31904 allow_undefined_flag_F77='`$ECHO "$allow_undefined_flag_F77" | $SED "$delay_single_quote_subst"`'
31905 allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
31906 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31907 no_undefined_flag_F77='`$ECHO "$no_undefined_flag_F77" | $SED "$delay_single_quote_subst"`'
31908 no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
31909 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31910 hardcode_libdir_flag_spec_F77='`$ECHO "$hardcode_libdir_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
31911 hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
31912 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
31913 hardcode_libdir_separator_F77='`$ECHO "$hardcode_libdir_separator_F77" | $SED "$delay_single_quote_subst"`'
31914 hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
31915 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
31916 hardcode_direct_F77='`$ECHO "$hardcode_direct_F77" | $SED "$delay_single_quote_subst"`'
31917 hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
31918 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
31919 hardcode_direct_absolute_F77='`$ECHO "$hardcode_direct_absolute_F77" | $SED "$delay_single_quote_subst"`'
31920 hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
31921 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
31922 hardcode_minus_L_F77='`$ECHO "$hardcode_minus_L_F77" | $SED "$delay_single_quote_subst"`'
31923 hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
31924 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
31925 hardcode_shlibpath_var_F77='`$ECHO "$hardcode_shlibpath_var_F77" | $SED "$delay_single_quote_subst"`'
31926 hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
31927 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
31928 hardcode_automatic_F77='`$ECHO "$hardcode_automatic_F77" | $SED "$delay_single_quote_subst"`'
31929 hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
31930 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
31931 inherit_rpath_F77='`$ECHO "$inherit_rpath_F77" | $SED "$delay_single_quote_subst"`'
31932 inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
31933 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
31934 link_all_deplibs_F77='`$ECHO "$link_all_deplibs_F77" | $SED "$delay_single_quote_subst"`'
31935 link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
31936 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
31937 always_export_symbols_F77='`$ECHO "$always_export_symbols_F77" | $SED "$delay_single_quote_subst"`'
31938 always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
31939 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31940 export_symbols_cmds_F77='`$ECHO "$export_symbols_cmds_F77" | $SED "$delay_single_quote_subst"`'
31941 export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
31942 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31943 exclude_expsyms_F77='`$ECHO "$exclude_expsyms_F77" | $SED "$delay_single_quote_subst"`'
31944 exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
31945 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31946 include_expsyms_F77='`$ECHO "$include_expsyms_F77" | $SED "$delay_single_quote_subst"`'
31947 include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
31948 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31949 prelink_cmds_F77='`$ECHO "$prelink_cmds_F77" | $SED "$delay_single_quote_subst"`'
31950 prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
31951 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31952 postlink_cmds_F77='`$ECHO "$postlink_cmds_F77" | $SED "$delay_single_quote_subst"`'
31953 postlink_cmds_FC='`$ECHO "$postlink_cmds_FC" | $SED "$delay_single_quote_subst"`'
31954 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
31955 file_list_spec_F77='`$ECHO "$file_list_spec_F77" | $SED "$delay_single_quote_subst"`'
31956 file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
31957 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
31958 hardcode_action_F77='`$ECHO "$hardcode_action_F77" | $SED "$delay_single_quote_subst"`'
31959 hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
31960 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
31961 compiler_lib_search_dirs_F77='`$ECHO "$compiler_lib_search_dirs_F77" | $SED "$delay_single_quote_subst"`'
31962 compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
31963 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31964 predep_objects_F77='`$ECHO "$predep_objects_F77" | $SED "$delay_single_quote_subst"`'
31965 predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
31966 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31967 postdep_objects_F77='`$ECHO "$postdep_objects_F77" | $SED "$delay_single_quote_subst"`'
31968 postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
31969 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
31970 predeps_F77='`$ECHO "$predeps_F77" | $SED "$delay_single_quote_subst"`'
31971 predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
31972 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
31973 postdeps_F77='`$ECHO "$postdeps_F77" | $SED "$delay_single_quote_subst"`'
31974 postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
31975 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
31976 compiler_lib_search_path_F77='`$ECHO "$compiler_lib_search_path_F77" | $SED "$delay_single_quote_subst"`'
31977 compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
31978
31979 LTCC='$LTCC'
31980 LTCFLAGS='$LTCFLAGS'
31981 compiler='$compiler_DEFAULT'
31982
31983 # A function that is used when there is no print builtin or printf.
31984 func_fallback_echo ()
31985 {
31986 eval 'cat <<_LTECHO_EOF
31987 \$1
31988 _LTECHO_EOF'
31989 }
31990
31991 # Quote evaled strings.
31992 for var in SHELL \
31993 ECHO \
31994 PATH_SEPARATOR \
31995 SED \
31996 GREP \
31997 EGREP \
31998 FGREP \
31999 LD \
32000 NM \
32001 LN_S \
32002 lt_SP2NL \
32003 lt_NL2SP \
32004 reload_flag \
32005 OBJDUMP \
32006 deplibs_check_method \
32007 file_magic_cmd \
32008 file_magic_glob \
32009 want_nocaseglob \
32010 DLLTOOL \
32011 sharedlib_from_linklib_cmd \
32012 AR \
32013 archiver_list_spec \
32014 STRIP \
32015 RANLIB \
32016 CC \
32017 CFLAGS \
32018 compiler \
32019 lt_cv_sys_global_symbol_pipe \
32020 lt_cv_sys_global_symbol_to_cdecl \
32021 lt_cv_sys_global_symbol_to_import \
32022 lt_cv_sys_global_symbol_to_c_name_address \
32023 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
32024 lt_cv_nm_interface \
32025 nm_file_list_spec \
32026 lt_cv_truncate_bin \
32027 lt_prog_compiler_no_builtin_flag \
32028 lt_prog_compiler_pic \
32029 lt_prog_compiler_wl \
32030 lt_prog_compiler_static \
32031 lt_cv_prog_compiler_c_o \
32032 need_locks \
32033 MANIFEST_TOOL \
32034 DSYMUTIL \
32035 NMEDIT \
32036 LIPO \
32037 OTOOL \
32038 OTOOL64 \
32039 shrext_cmds \
32040 export_dynamic_flag_spec \
32041 whole_archive_flag_spec \
32042 compiler_needs_object \
32043 with_gnu_ld \
32044 allow_undefined_flag \
32045 no_undefined_flag \
32046 hardcode_libdir_flag_spec \
32047 hardcode_libdir_separator \
32048 exclude_expsyms \
32049 include_expsyms \
32050 file_list_spec \
32051 variables_saved_for_relink \
32052 libname_spec \
32053 library_names_spec \
32054 soname_spec \
32055 install_override_mode \
32056 finish_eval \
32057 old_striplib \
32058 striplib \
32059 compiler_lib_search_dirs \
32060 predep_objects \
32061 postdep_objects \
32062 predeps \
32063 postdeps \
32064 compiler_lib_search_path \
32065 LD_CXX \
32066 LD_F77 \
32067 LD_FC \
32068 reload_flag_CXX \
32069 reload_flag_F77 \
32070 reload_flag_FC \
32071 compiler_CXX \
32072 compiler_F77 \
32073 compiler_FC \
32074 lt_prog_compiler_no_builtin_flag_CXX \
32075 lt_prog_compiler_no_builtin_flag_F77 \
32076 lt_prog_compiler_no_builtin_flag_FC \
32077 lt_prog_compiler_pic_CXX \
32078 lt_prog_compiler_pic_F77 \
32079 lt_prog_compiler_pic_FC \
32080 lt_prog_compiler_wl_CXX \
32081 lt_prog_compiler_wl_F77 \
32082 lt_prog_compiler_wl_FC \
32083 lt_prog_compiler_static_CXX \
32084 lt_prog_compiler_static_F77 \
32085 lt_prog_compiler_static_FC \
32086 lt_cv_prog_compiler_c_o_CXX \
32087 lt_cv_prog_compiler_c_o_F77 \
32088 lt_cv_prog_compiler_c_o_FC \
32089 export_dynamic_flag_spec_CXX \
32090 export_dynamic_flag_spec_F77 \
32091 export_dynamic_flag_spec_FC \
32092 whole_archive_flag_spec_CXX \
32093 whole_archive_flag_spec_F77 \
32094 whole_archive_flag_spec_FC \
32095 compiler_needs_object_CXX \
32096 compiler_needs_object_F77 \
32097 compiler_needs_object_FC \
32098 with_gnu_ld_CXX \
32099 with_gnu_ld_F77 \
32100 with_gnu_ld_FC \
32101 allow_undefined_flag_CXX \
32102 allow_undefined_flag_F77 \
32103 allow_undefined_flag_FC \
32104 no_undefined_flag_CXX \
32105 no_undefined_flag_F77 \
32106 no_undefined_flag_FC \
32107 hardcode_libdir_flag_spec_CXX \
32108 hardcode_libdir_flag_spec_F77 \
32109 hardcode_libdir_flag_spec_FC \
32110 hardcode_libdir_separator_CXX \
32111 hardcode_libdir_separator_F77 \
32112 hardcode_libdir_separator_FC \
32113 exclude_expsyms_CXX \
32114 exclude_expsyms_F77 \
32115 exclude_expsyms_FC \
32116 include_expsyms_CXX \
32117 include_expsyms_F77 \
32118 include_expsyms_FC \
32119 file_list_spec_CXX \
32120 file_list_spec_F77 \
32121 file_list_spec_FC \
32122 compiler_lib_search_dirs_CXX \
32123 compiler_lib_search_dirs_F77 \
32124 compiler_lib_search_dirs_FC \
32125 predep_objects_CXX \
32126 predep_objects_F77 \
32127 predep_objects_FC \
32128 postdep_objects_CXX \
32129 postdep_objects_F77 \
32130 postdep_objects_FC \
32131 predeps_CXX \
32132 predeps_F77 \
32133 predeps_FC \
32134 postdeps_CXX \
32135 postdeps_F77 \
32136 postdeps_FC \
32137 compiler_lib_search_path_CXX \
32138 compiler_lib_search_path_F77 \
32139 compiler_lib_search_path_FC; do
32140 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
32141 *[\\\\\\\`\\"\\\$]*)
32142 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
32143 ;;
32144 *)
32145 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
32146 ;;
32147 esac
32148 done
32149
32150 # Double-quote double-evaled strings.
32151 for var in reload_cmds \
32152 old_postinstall_cmds \
32153 old_postuninstall_cmds \
32154 old_archive_cmds \
32155 extract_expsyms_cmds \
32156 old_archive_from_new_cmds \
32157 old_archive_from_expsyms_cmds \
32158 archive_cmds \
32159 archive_expsym_cmds \
32160 module_cmds \
32161 module_expsym_cmds \
32162 export_symbols_cmds \
32163 prelink_cmds \
32164 postlink_cmds \
32165 postinstall_cmds \
32166 postuninstall_cmds \
32167 finish_cmds \
32168 sys_lib_search_path_spec \
32169 configure_time_dlsearch_path \
32170 configure_time_lt_sys_library_path \
32171 reload_cmds_CXX \
32172 reload_cmds_F77 \
32173 reload_cmds_FC \
32174 old_archive_cmds_CXX \
32175 old_archive_cmds_F77 \
32176 old_archive_cmds_FC \
32177 old_archive_from_new_cmds_CXX \
32178 old_archive_from_new_cmds_F77 \
32179 old_archive_from_new_cmds_FC \
32180 old_archive_from_expsyms_cmds_CXX \
32181 old_archive_from_expsyms_cmds_F77 \
32182 old_archive_from_expsyms_cmds_FC \
32183 archive_cmds_CXX \
32184 archive_cmds_F77 \
32185 archive_cmds_FC \
32186 archive_expsym_cmds_CXX \
32187 archive_expsym_cmds_F77 \
32188 archive_expsym_cmds_FC \
32189 module_cmds_CXX \
32190 module_cmds_F77 \
32191 module_cmds_FC \
32192 module_expsym_cmds_CXX \
32193 module_expsym_cmds_F77 \
32194 module_expsym_cmds_FC \
32195 export_symbols_cmds_CXX \
32196 export_symbols_cmds_F77 \
32197 export_symbols_cmds_FC \
32198 prelink_cmds_CXX \
32199 prelink_cmds_F77 \
32200 prelink_cmds_FC \
32201 postlink_cmds_CXX \
32202 postlink_cmds_F77 \
32203 postlink_cmds_FC; do
32204 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
32205 *[\\\\\\\`\\"\\\$]*)
32206 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
32207 ;;
32208 *)
32209 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
32210 ;;
32211 esac
32212 done
32213
32214 ac_aux_dir='$ac_aux_dir'
32215
32216 # See if we are running on zsh, and set the options that allow our
32217 # commands through without removal of \ escapes INIT.
32218 if test -n "\${ZSH_VERSION+set}"; then
32219 setopt NO_GLOB_SUBST
32220 fi
32221
32222
32223 PACKAGE='$PACKAGE'
32224 VERSION='$VERSION'
32225 RM='$RM'
32226 ofile='$ofile'
32227
32228
32229
32230
32231
32232
32233
32234
32235
32236
32237 _ACEOF
32238
32239 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32240
32241 # Handling of arguments.
32242 for ac_config_target in $ac_config_targets
32243 do
32244 case $ac_config_target in
32245 "../src/config-frontend.h") CONFIG_HEADERS="$CONFIG_HEADERS ../src/config-frontend.h" ;;
32246 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
32247 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
32248 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
32249 "../test/jacobi_c_test.sh") CONFIG_FILES="$CONFIG_FILES ../test/jacobi_c_test.sh" ;;
32250 "../test/jacobi_c++_test.sh") CONFIG_FILES="$CONFIG_FILES ../test/jacobi_c++_test.sh" ;;
32251 "../test/jacobi_f90_test.sh") CONFIG_FILES="$CONFIG_FILES ../test/jacobi_f90_test.sh" ;;
32252 "../test/jacobi_f77_test.sh") CONFIG_FILES="$CONFIG_FILES ../test/jacobi_f77_test.sh" ;;
32253 "../doc/example/openmp/Makefile") CONFIG_FILES="$CONFIG_FILES ../doc/example/openmp/Makefile" ;;
32254 "../doc/example/pomp/Makefile") CONFIG_FILES="$CONFIG_FILES ../doc/example/pomp/Makefile" ;;
32255 "../src/opari2_config_tool_frontend.h") CONFIG_FILES="$CONFIG_FILES ../src/opari2_config_tool_frontend.h:../src/opari/opari2_config_tool_frontend.h.in" ;;
32256
32257 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
32258 esac
32259 done
32260
32261
32262 # If the user did not use the arguments to specify the items to instantiate,
32263 # then the envvar interface is used. Set only those that are not.
32264 # We use the long form for the default assignment because of an extremely
32265 # bizarre bug on SunOS 4.1.3.
32266 if $ac_need_defaults; then
32267 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32268 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32269 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32270 fi
32271
32272 # Have a temporary directory for convenience. Make it in the build tree
32273 # simply because there is no reason against having it here, and in addition,
32274 # creating and moving files from /tmp can sometimes cause problems.
32275 # Hook for its removal unless debugging.
32276 # Note that there is a small window in which the directory will not be cleaned:
32277 # after its creation but before its name has been assigned to `$tmp'.
32278 $debug ||
32279 {
32280 tmp= ac_tmp=
32281 trap 'exit_status=$?
32282 : "${ac_tmp:=$tmp}"
32283 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
32284 ' 0
32285 trap 'as_fn_exit 1' 1 2 13 15
32286 }
32287 # Create a (secure) tmp directory for tmp files.
32288
32289 {
32290 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32291 test -d "$tmp"
32292 } ||
32293 {
32294 tmp=./conf$$-$RANDOM
32295 (umask 077 && mkdir "$tmp")
32296 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
32297 ac_tmp=$tmp
32298
32299 # Set up the scripts for CONFIG_FILES section.
32300 # No need to generate them if there are no CONFIG_FILES.
32301 # This happens for instance with `./config.status config.h'.
32302 if test -n "$CONFIG_FILES"; then
32303
32304
32305 ac_cr=`echo X | tr X '\015'`
32306 # On cygwin, bash can eat \r inside `` if the user requested igncr.
32307 # But we know of no other shell where ac_cr would be empty at this
32308 # point, so we can use a bashism as a fallback.
32309 if test "x$ac_cr" = x; then
32310 eval ac_cr=\$\'\\r\'
32311 fi
32312 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32313 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
32314 ac_cs_awk_cr='\\r'
32315 else
32316 ac_cs_awk_cr=$ac_cr
32317 fi
32318
32319 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
32320 _ACEOF
32321
32322
32323 {
32324 echo "cat >conf$$subs.awk <<_ACEOF" &&
32325 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32326 echo "_ACEOF"
32327 } >conf$$subs.sh ||
32328 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32329 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
32330 ac_delim='%!_!# '
32331 for ac_last_try in false false false false false :; do
32332 . ./conf$$subs.sh ||
32333 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32334
32335 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
32336 if test $ac_delim_n = $ac_delim_num; then
32337 break
32338 elif $ac_last_try; then
32339 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32340 else
32341 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32342 fi
32343 done
32344 rm -f conf$$subs.sh
32345
32346 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32347 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
32348 _ACEOF
32349 sed -n '
32350 h
32351 s/^/S["/; s/!.*/"]=/
32352 p
32353 g
32354 s/^[^!]*!//
32355 :repl
32356 t repl
32357 s/'"$ac_delim"'$//
32358 t delim
32359 :nl
32360 h
32361 s/\(.\{148\}\)..*/\1/
32362 t more1
32363 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
32364 p
32365 n
32366 b repl
32367 :more1
32368 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32369 p
32370 g
32371 s/.\{148\}//
32372 t nl
32373 :delim
32374 h
32375 s/\(.\{148\}\)..*/\1/
32376 t more2
32377 s/["\\]/\\&/g; s/^/"/; s/$/"/
32378 p
32379 b
32380 :more2
32381 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32382 p
32383 g
32384 s/.\{148\}//
32385 t delim
32386 ' <conf$$subs.awk | sed '
32387 /^[^""]/{
32388 N
32389 s/\n//
32390 }
32391 ' >>$CONFIG_STATUS || ac_write_fail=1
32392 rm -f conf$$subs.awk
32393 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32394 _ACAWK
32395 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
32396 for (key in S) S_is_set[key] = 1
32397 FS = ""
32398
32399 }
32400 {
32401 line = $ 0
32402 nfields = split(line, field, "@")
32403 substed = 0
32404 len = length(field[1])
32405 for (i = 2; i < nfields; i++) {
32406 key = field[i]
32407 keylen = length(key)
32408 if (S_is_set[key]) {
32409 value = S[key]
32410 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32411 len += length(value) + length(field[++i])
32412 substed = 1
32413 } else
32414 len += 1 + keylen
32415 }
32416
32417 print line
32418 }
32419
32420 _ACAWK
32421 _ACEOF
32422 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32423 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32424 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
32425 else
32426 cat
32427 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
32428 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
32429 _ACEOF
32430
32431 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
32432 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
32433 # trailing colons and then remove the whole line if VPATH becomes empty
32434 # (actually we leave an empty line to preserve line numbers).
32435 if test "x$srcdir" = x.; then
32436 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
32437 h
32438 s///
32439 s/^/:/
32440 s/[ ]*$/:/
32441 s/:\$(srcdir):/:/g
32442 s/:\${srcdir}:/:/g
32443 s/:@srcdir@:/:/g
32444 s/^:*//
32445 s/:*$//
32446 x
32447 s/\(=[ ]*\).*/\1/
32448 G
32449 s/\n//
32450 s/^[^=]*=[ ]*$//
32451 }'
32452 fi
32453
32454 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32455 fi # test -n "$CONFIG_FILES"
32456
32457 # Set up the scripts for CONFIG_HEADERS section.
32458 # No need to generate them if there are no CONFIG_HEADERS.
32459 # This happens for instance with `./config.status Makefile'.
32460 if test -n "$CONFIG_HEADERS"; then
32461 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
32462 BEGIN {
32463 _ACEOF
32464
32465 # Transform confdefs.h into an awk script `defines.awk', embedded as
32466 # here-document in config.status, that substitutes the proper values into
32467 # config.h.in to produce config.h.
32468
32469 # Create a delimiter string that does not exist in confdefs.h, to ease
32470 # handling of long lines.
32471 ac_delim='%!_!# '
32472 for ac_last_try in false false :; do
32473 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
32474 if test -z "$ac_tt"; then
32475 break
32476 elif $ac_last_try; then
32477 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
32478 else
32479 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32480 fi
32481 done
32482
32483 # For the awk script, D is an array of macro values keyed by name,
32484 # likewise P contains macro parameters if any. Preserve backslash
32485 # newline sequences.
32486
32487 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32488 sed -n '
32489 s/.\{148\}/&'"$ac_delim"'/g
32490 t rset
32491 :rset
32492 s/^[ ]*#[ ]*define[ ][ ]*/ /
32493 t def
32494 d
32495 :def
32496 s/\\$//
32497 t bsnl
32498 s/["\\]/\\&/g
32499 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32500 D["\1"]=" \3"/p
32501 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
32502 d
32503 :bsnl
32504 s/["\\]/\\&/g
32505 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32506 D["\1"]=" \3\\\\\\n"\\/p
32507 t cont
32508 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
32509 t cont
32510 d
32511 :cont
32512 n
32513 s/.\{148\}/&'"$ac_delim"'/g
32514 t clear
32515 :clear
32516 s/\\$//
32517 t bsnlc
32518 s/["\\]/\\&/g; s/^/"/; s/$/"/p
32519 d
32520 :bsnlc
32521 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
32522 b cont
32523 ' <confdefs.h | sed '
32524 s/'"$ac_delim"'/"\\\
32525 "/g' >>$CONFIG_STATUS || ac_write_fail=1
32526
32527 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32528 for (key in D) D_is_set[key] = 1
32529 FS = ""
32530 }
32531 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32532 line = \$ 0
32533 split(line, arg, " ")
32534 if (arg[1] == "#") {
32535 defundef = arg[2]
32536 mac1 = arg[3]
32537 } else {
32538 defundef = substr(arg[1], 2)
32539 mac1 = arg[2]
32540 }
32541 split(mac1, mac2, "(") #)
32542 macro = mac2[1]
32543 prefix = substr(line, 1, index(line, defundef) - 1)
32544 if (D_is_set[macro]) {
32545 # Preserve the white space surrounding the "#".
32546 print prefix "define", macro P[macro] D[macro]
32547 next
32548 } else {
32549 # Replace #undef with comments. This is necessary, for example,
32550 # in the case of _POSIX_SOURCE, which is predefined and required
32551 # on some systems where configure will not decide to define it.
32552 if (defundef == "undef") {
32553 print "/*", prefix defundef, macro, "*/"
32554 next
32555 }
32556 }
32557 }
32558 { print }
32559 _ACAWK
32560 _ACEOF
32561 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32562 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
32563 fi # test -n "$CONFIG_HEADERS"
32564
32565
32566 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
32567 shift
32568 for ac_tag
32569 do
32570 case $ac_tag in
32571 :[FHLC]) ac_mode=$ac_tag; continue;;
32572 esac
32573 case $ac_mode$ac_tag in
32574 :[FHL]*:*);;
32575 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
32576 :[FH]-) ac_tag=-:-;;
32577 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32578 esac
32579 ac_save_IFS=$IFS
32580 IFS=:
32581 set x $ac_tag
32582 IFS=$ac_save_IFS
32583 shift
32584 ac_file=$1
32585 shift
32586
32587 case $ac_mode in
32588 :L) ac_source=$1;;
32589 :[FH])
32590 ac_file_inputs=
32591 for ac_f
32592 do
32593 case $ac_f in
32594 -) ac_f="$ac_tmp/stdin";;
32595 *) # Look for the file first in the build tree, then in the source tree
32596 # (if the path is not absolute). The absolute path cannot be DOS-style,
32597 # because $ac_f cannot contain `:'.
32598 test -f "$ac_f" ||
32599 case $ac_f in
32600 [\\/$]*) false;;
32601 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32602 esac ||
32603 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
32604 esac
32605 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32606 as_fn_append ac_file_inputs " '$ac_f'"
32607 done
32608
32609 # Let's still pretend it is `configure' which instantiates (i.e., don't
32610 # use $as_me), people would be surprised to read:
32611 # /* config.h. Generated by config.status. */
32612 configure_input='Generated from '`
32613 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32614 `' by configure.'
32615 if test x"$ac_file" != x-; then
32616 configure_input="$ac_file. $configure_input"
32617 { $as_echo "$as_me:${as_lineno-$LINENO}: info: creating $ac_file" >&5
32618 $as_echo "$as_me: ${as__blu}info: creating $ac_file${as__std}" >&2;}
32619 fi
32620 # Neutralize special characters interpreted by sed in replacement strings.
32621 case $configure_input in #(
32622 *\&* | *\|* | *\\* )
32623 ac_sed_conf_input=`$as_echo "$configure_input" |
32624 sed 's/[\\\\&|]/\\\\&/g'`;; #(
32625 *) ac_sed_conf_input=$configure_input;;
32626 esac
32627
32628 case $ac_tag in
32629 *:-:* | *:-) cat >"$ac_tmp/stdin" \
32630 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
32631 esac
32632 ;;
32633 esac
32634
32635 ac_dir=`$as_dirname -- "$ac_file" ||
32636 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32637 X"$ac_file" : 'X\(//\)[^/]' \| \
32638 X"$ac_file" : 'X\(//\)$' \| \
32639 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32640 $as_echo X"$ac_file" |
32641 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32642 s//\1/
32643 q
32644 }
32645 /^X\(\/\/\)[^/].*/{
32646 s//\1/
32647 q
32648 }
32649 /^X\(\/\/\)$/{
32650 s//\1/
32651 q
32652 }
32653 /^X\(\/\).*/{
32654 s//\1/
32655 q
32656 }
32657 s/.*/./; q'`
32658 as_dir="$ac_dir"; as_fn_mkdir_p
32659 ac_builddir=.
32660
32661 case "$ac_dir" in
32662 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32663 *)
32664 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32665 # A ".." for each directory in $ac_dir_suffix.
32666 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32667 case $ac_top_builddir_sub in
32668 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32669 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32670 esac ;;
32671 esac
32672 ac_abs_top_builddir=$ac_pwd
32673 ac_abs_builddir=$ac_pwd$ac_dir_suffix
32674 # for backward compatibility:
32675 ac_top_builddir=$ac_top_build_prefix
32676
32677 case $srcdir in
32678 .) # We are building in place.
32679 ac_srcdir=.
32680 ac_top_srcdir=$ac_top_builddir_sub
32681 ac_abs_top_srcdir=$ac_pwd ;;
32682 [\\/]* | ?:[\\/]* ) # Absolute name.
32683 ac_srcdir=$srcdir$ac_dir_suffix;
32684 ac_top_srcdir=$srcdir
32685 ac_abs_top_srcdir=$srcdir ;;
32686 *) # Relative name.
32687 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32688 ac_top_srcdir=$ac_top_build_prefix$srcdir
32689 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32690 esac
32691 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32692
32693
32694 case $ac_mode in
32695 :F)
32696 #
32697 # CONFIG_FILE
32698 #
32699
32700 case $INSTALL in
32701 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32702 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32703 esac
32704 ac_MKDIR_P=$MKDIR_P
32705 case $MKDIR_P in
32706 [\\/$]* | ?:[\\/]* ) ;;
32707 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
32708 esac
32709 _ACEOF
32710
32711 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32712 # If the template does not know about datarootdir, expand it.
32713 # FIXME: This hack should be removed a few years after 2.60.
32714 ac_datarootdir_hack=; ac_datarootdir_seen=
32715 ac_sed_dataroot='
32716 /datarootdir/ {
32717 p
32718 q
32719 }
32720 /@datadir@/p
32721 /@docdir@/p
32722 /@infodir@/p
32723 /@localedir@/p
32724 /@mandir@/p'
32725 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32726 *datarootdir*) ac_datarootdir_seen=yes;;
32727 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32729 $as_echo "$as_me: ${as__yel}WARNING: $ac_file_inputs seems to ignore the --datarootdir setting${as__std}" >&2;}
32730 _ACEOF
32731 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32732 ac_datarootdir_hack='
32733 s&@datadir@&$datadir&g
32734 s&@docdir@&$docdir&g
32735 s&@infodir@&$infodir&g
32736 s&@localedir@&$localedir&g
32737 s&@mandir@&$mandir&g
32738 s&\\\${datarootdir}&$datarootdir&g' ;;
32739 esac
32740 _ACEOF
32741
32742 # Neutralize VPATH when `$srcdir' = `.'.
32743 # Shell code in configure.ac might set extrasub.
32744 # FIXME: do we really want to maintain this feature?
32745 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32746 ac_sed_extra="$ac_vpsub
32747 $extrasub
32748 _ACEOF
32749 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32750 :t
32751 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32752 s|@configure_input@|$ac_sed_conf_input|;t t
32753 s&@top_builddir@&$ac_top_builddir_sub&;t t
32754 s&@top_build_prefix@&$ac_top_build_prefix&;t t
32755 s&@srcdir@&$ac_srcdir&;t t
32756 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32757 s&@top_srcdir@&$ac_top_srcdir&;t t
32758 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32759 s&@builddir@&$ac_builddir&;t t
32760 s&@abs_builddir@&$ac_abs_builddir&;t t
32761 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32762 s&@INSTALL@&$ac_INSTALL&;t t
32763 s&@MKDIR_P@&$ac_MKDIR_P&;t t
32764 $ac_datarootdir_hack
32765 "
32766 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
32767 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32768
32769 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32770 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
32771 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
32772 "$ac_tmp/out"`; test -z "$ac_out"; } &&
32773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32774 which seems to be undefined. Please make sure it is defined" >&5
32775 $as_echo "$as_me: ${as__yel}WARNING: $ac_file contains a reference to the variable \`datarootdir'
32776 which seems to be undefined. Please make sure it is defined${as__std}" >&2;}
32777
32778 rm -f "$ac_tmp/stdin"
32779 case $ac_file in
32780 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
32781 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
32782 esac \
32783 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32784 ;;
32785 :H)
32786 #
32787 # CONFIG_HEADER
32788 #
32789 if test x"$ac_file" != x-; then
32790 {
32791 $as_echo "/* $configure_input */" \
32792 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
32793 } >"$ac_tmp/config.h" \
32794 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32795 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
32796 { $as_echo "$as_me:${as_lineno-$LINENO}: info: $ac_file is unchanged" >&5
32797 $as_echo "$as_me: ${as__blu}info: $ac_file is unchanged${as__std}" >&2;}
32798 else
32799 rm -f "$ac_file"
32800 mv "$ac_tmp/config.h" "$ac_file" \
32801 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32802 fi
32803 else
32804 $as_echo "/* $configure_input */" \
32805 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
32806 || as_fn_error $? "could not create -" "$LINENO" 5
32807 fi
32808 # Compute "$ac_file"'s index in $config_headers.
32809 _am_arg="$ac_file"
32810 _am_stamp_count=1
32811 for _am_header in $config_headers :; do
32812 case $_am_header in
32813 $_am_arg | $_am_arg:* )
32814 break ;;
32815 * )
32816 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
32817 esac
32818 done
32819 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
32820 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32821 X"$_am_arg" : 'X\(//\)[^/]' \| \
32822 X"$_am_arg" : 'X\(//\)$' \| \
32823 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
32824 $as_echo X"$_am_arg" |
32825 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32826 s//\1/
32827 q
32828 }
32829 /^X\(\/\/\)[^/].*/{
32830 s//\1/
32831 q
32832 }
32833 /^X\(\/\/\)$/{
32834 s//\1/
32835 q
32836 }
32837 /^X\(\/\).*/{
32838 s//\1/
32839 q
32840 }
32841 s/.*/./; q'`/stamp-h$_am_stamp_count
32842 ;;
32843
32844 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: info: executing $ac_file commands" >&5
32845 $as_echo "$as_me: ${as__blu}info: executing $ac_file commands${as__std}" >&2;}
32846 ;;
32847 esac
32848
32849
32850 case $ac_file$ac_mode in
32851 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
32852 # Older Autoconf quotes --file arguments for eval, but not when files
32853 # are listed without --file. Let's play safe and only enable the eval
32854 # if we detect the quoting.
32855 case $CONFIG_FILES in
32856 *\'*) eval set x "$CONFIG_FILES" ;;
32857 *) set x $CONFIG_FILES ;;
32858 esac
32859 shift
32860 for mf
32861 do
32862 # Strip MF so we end up with the name of the file.
32863 mf=`echo "$mf" | sed -e 's/:.*$//'`
32864 # Check whether this is an Automake generated Makefile or not.
32865 # We used to match only the files named 'Makefile.in', but
32866 # some people rename them; so instead we look at the file content.
32867 # Grep'ing the first line is not enough: some people post-process
32868 # each Makefile.in and add a new line on top of each file to say so.
32869 # Grep'ing the whole file is not good either: AIX grep has a line
32870 # limit of 2048, but all sed's we know have understand at least 4000.
32871 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
32872 dirpart=`$as_dirname -- "$mf" ||
32873 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32874 X"$mf" : 'X\(//\)[^/]' \| \
32875 X"$mf" : 'X\(//\)$' \| \
32876 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
32877 $as_echo X"$mf" |
32878 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32879 s//\1/
32880 q
32881 }
32882 /^X\(\/\/\)[^/].*/{
32883 s//\1/
32884 q
32885 }
32886 /^X\(\/\/\)$/{
32887 s//\1/
32888 q
32889 }
32890 /^X\(\/\).*/{
32891 s//\1/
32892 q
32893 }
32894 s/.*/./; q'`
32895 else
32896 continue
32897 fi
32898 # Extract the definition of DEPDIR, am__include, and am__quote
32899 # from the Makefile without running 'make'.
32900 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
32901 test -z "$DEPDIR" && continue
32902 am__include=`sed -n 's/^am__include = //p' < "$mf"`
32903 test -z "$am__include" && continue
32904 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
32905 # Find all dependency output files, they are included files with
32906 # $(DEPDIR) in their names. We invoke sed twice because it is the
32907 # simplest approach to changing $(DEPDIR) to its actual value in the
32908 # expansion.
32909 for file in `sed -n "
32910 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
32911 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
32912 # Make sure the directory exists.
32913 test -f "$dirpart/$file" && continue
32914 fdir=`$as_dirname -- "$file" ||
32915 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32916 X"$file" : 'X\(//\)[^/]' \| \
32917 X"$file" : 'X\(//\)$' \| \
32918 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
32919 $as_echo X"$file" |
32920 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32921 s//\1/
32922 q
32923 }
32924 /^X\(\/\/\)[^/].*/{
32925 s//\1/
32926 q
32927 }
32928 /^X\(\/\/\)$/{
32929 s//\1/
32930 q
32931 }
32932 /^X\(\/\).*/{
32933 s//\1/
32934 q
32935 }
32936 s/.*/./; q'`
32937 as_dir=$dirpart/$fdir; as_fn_mkdir_p
32938 # echo "creating $dirpart/$file"
32939 echo '# dummy' > "$dirpart/$file"
32940 done
32941 done
32942 }
32943 ;;
32944 "libtool":C)
32945
32946 # See if we are running on zsh, and set the options that allow our
32947 # commands through without removal of \ escapes.
32948 if test -n "${ZSH_VERSION+set}"; then
32949 setopt NO_GLOB_SUBST
32950 fi
32951
32952 cfgfile=${ofile}T
32953 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
32954 $RM "$cfgfile"
32955
32956 cat <<_LT_EOF >> "$cfgfile"
32957 #! $SHELL
32958 # Generated automatically by $as_me ($PACKAGE) $VERSION
32959 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
32960 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
32961
32962 # Provide generalized library-building support services.
32963 # Written by Gordon Matzigkeit, 1996
32964
32965 # Copyright (C) 2014 Free Software Foundation, Inc.
32966 # This is free software; see the source for copying conditions. There is NO
32967 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
32968
32969 # GNU Libtool is free software; you can redistribute it and/or modify
32970 # it under the terms of the GNU General Public License as published by
32971 # the Free Software Foundation; either version 2 of of the License, or
32972 # (at your option) any later version.
32973 #
32974 # As a special exception to the GNU General Public License, if you
32975 # distribute this file as part of a program or library that is built
32976 # using GNU Libtool, you may include this file under the same
32977 # distribution terms that you use for the rest of that program.
32978 #
32979 # GNU Libtool is distributed in the hope that it will be useful, but
32980 # WITHOUT ANY WARRANTY; without even the implied warranty of
32981 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32982 # GNU General Public License for more details.
32983 #
32984 # You should have received a copy of the GNU General Public License
32985 # along with this program. If not, see <http://www.gnu.org/licenses/>.
32986
32987
32988 # The names of the tagged configurations supported by this script.
32989 available_tags='CXX F77 FC '
32990
32991 # Configured defaults for sys_lib_dlsearch_path munging.
32992 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
32993
32994 # ### BEGIN LIBTOOL CONFIG
32995
32996 # Which release of libtool.m4 was used?
32997 macro_version=$macro_version
32998 macro_revision=$macro_revision
32999
33000 # Whether or not to build shared libraries.
33001 build_libtool_libs=$enable_shared
33002
33003 # Whether or not to build static libraries.
33004 build_old_libs=$enable_static
33005
33006 # What type of objects to build.
33007 pic_mode=$pic_mode
33008
33009 # Whether or not to optimize for fast installation.
33010 fast_install=$enable_fast_install
33011
33012 # Shared archive member basename,for filename based shared library versioning on AIX.
33013 shared_archive_member_spec=$shared_archive_member_spec
33014
33015 # Shell to use when invoking shell scripts.
33016 SHELL=$lt_SHELL
33017
33018 # An echo program that protects backslashes.
33019 ECHO=$lt_ECHO
33020
33021 # The PATH separator for the build system.
33022 PATH_SEPARATOR=$lt_PATH_SEPARATOR
33023
33024 # The host system.
33025 host_alias=$host_alias
33026 host=$host
33027 host_os=$host_os
33028
33029 # The build system.
33030 build_alias=$build_alias
33031 build=$build
33032 build_os=$build_os
33033
33034 # A sed program that does not truncate output.
33035 SED=$lt_SED
33036
33037 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
33038 Xsed="\$SED -e 1s/^X//"
33039
33040 # A grep program that handles long lines.
33041 GREP=$lt_GREP
33042
33043 # An ERE matcher.
33044 EGREP=$lt_EGREP
33045
33046 # A literal string matcher.
33047 FGREP=$lt_FGREP
33048
33049 # A BSD- or MS-compatible name lister.
33050 NM=$lt_NM
33051
33052 # Whether we need soft or hard links.
33053 LN_S=$lt_LN_S
33054
33055 # What is the maximum length of a command?
33056 max_cmd_len=$max_cmd_len
33057
33058 # Object file suffix (normally "o").
33059 objext=$ac_objext
33060
33061 # Executable file suffix (normally "").
33062 exeext=$exeext
33063
33064 # whether the shell understands "unset".
33065 lt_unset=$lt_unset
33066
33067 # turn spaces into newlines.
33068 SP2NL=$lt_lt_SP2NL
33069
33070 # turn newlines into spaces.
33071 NL2SP=$lt_lt_NL2SP
33072
33073 # convert \$build file names to \$host format.
33074 to_host_file_cmd=$lt_cv_to_host_file_cmd
33075
33076 # convert \$build files to toolchain format.
33077 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
33078
33079 # An object symbol dumper.
33080 OBJDUMP=$lt_OBJDUMP
33081
33082 # Method to check whether dependent libraries are shared objects.
33083 deplibs_check_method=$lt_deplibs_check_method
33084
33085 # Command to use when deplibs_check_method = "file_magic".
33086 file_magic_cmd=$lt_file_magic_cmd
33087
33088 # How to find potential files when deplibs_check_method = "file_magic".
33089 file_magic_glob=$lt_file_magic_glob
33090
33091 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
33092 want_nocaseglob=$lt_want_nocaseglob
33093
33094 # DLL creation program.
33095 DLLTOOL=$lt_DLLTOOL
33096
33097 # Command to associate shared and link libraries.
33098 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
33099
33100 # The archiver.
33101 AR=$lt_AR
33102
33103 # Flags to create an archive (by configure).
33104 lt_ar_flags=$lt_ar_flags
33105
33106 # Flags to create an archive.
33107 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
33108
33109 # How to feed a file listing to the archiver.
33110 archiver_list_spec=$lt_archiver_list_spec
33111
33112 # A symbol stripping program.
33113 STRIP=$lt_STRIP
33114
33115 # Commands used to install an old-style archive.
33116 RANLIB=$lt_RANLIB
33117 old_postinstall_cmds=$lt_old_postinstall_cmds
33118 old_postuninstall_cmds=$lt_old_postuninstall_cmds
33119
33120 # Whether to use a lock for old archive extraction.
33121 lock_old_archive_extraction=$lock_old_archive_extraction
33122
33123 # A C compiler.
33124 LTCC=$lt_CC
33125
33126 # LTCC compiler flags.
33127 LTCFLAGS=$lt_CFLAGS
33128
33129 # Take the output of nm and produce a listing of raw symbols and C names.
33130 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
33131
33132 # Transform the output of nm in a proper C declaration.
33133 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
33134
33135 # Transform the output of nm into a list of symbols to manually relocate.
33136 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
33137
33138 # Transform the output of nm in a C name address pair.
33139 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
33140
33141 # Transform the output of nm in a C name address pair when lib prefix is needed.
33142 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
33143
33144 # The name lister interface.
33145 nm_interface=$lt_lt_cv_nm_interface
33146
33147 # Specify filename containing input files for \$NM.
33148 nm_file_list_spec=$lt_nm_file_list_spec
33149
33150 # The root where to search for dependent libraries,and where our libraries should be installed.
33151 lt_sysroot=$lt_sysroot
33152
33153 # Command to truncate a binary pipe.
33154 lt_truncate_bin=$lt_lt_cv_truncate_bin
33155
33156 # The name of the directory that contains temporary libtool files.
33157 objdir=$objdir
33158
33159 # Used to examine libraries when file_magic_cmd begins with "file".
33160 MAGIC_CMD=$MAGIC_CMD
33161
33162 # Must we lock files when doing compilation?
33163 need_locks=$lt_need_locks
33164
33165 # Manifest tool.
33166 MANIFEST_TOOL=$lt_MANIFEST_TOOL
33167
33168 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
33169 DSYMUTIL=$lt_DSYMUTIL
33170
33171 # Tool to change global to local symbols on Mac OS X.
33172 NMEDIT=$lt_NMEDIT
33173
33174 # Tool to manipulate fat objects and archives on Mac OS X.
33175 LIPO=$lt_LIPO
33176
33177 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
33178 OTOOL=$lt_OTOOL
33179
33180 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
33181 OTOOL64=$lt_OTOOL64
33182
33183 # Old archive suffix (normally "a").
33184 libext=$libext
33185
33186 # Shared library suffix (normally ".so").
33187 shrext_cmds=$lt_shrext_cmds
33188
33189 # The commands to extract the exported symbol list from a shared archive.
33190 extract_expsyms_cmds=$lt_extract_expsyms_cmds
33191
33192 # Variables whose values should be saved in libtool wrapper scripts and
33193 # restored at link time.
33194 variables_saved_for_relink=$lt_variables_saved_for_relink
33195
33196 # Do we need the "lib" prefix for modules?
33197 need_lib_prefix=$need_lib_prefix
33198
33199 # Do we need a version for libraries?
33200 need_version=$need_version
33201
33202 # Library versioning type.
33203 version_type=$version_type
33204
33205 # Shared library runtime path variable.
33206 runpath_var=$runpath_var
33207
33208 # Shared library path variable.
33209 shlibpath_var=$shlibpath_var
33210
33211 # Is shlibpath searched before the hard-coded library search path?
33212 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
33213
33214 # Format of library name prefix.
33215 libname_spec=$lt_libname_spec
33216
33217 # List of archive names. First name is the real one, the rest are links.
33218 # The last name is the one that the linker finds with -lNAME
33219 library_names_spec=$lt_library_names_spec
33220
33221 # The coded name of the library, if different from the real name.
33222 soname_spec=$lt_soname_spec
33223
33224 # Permission mode override for installation of shared libraries.
33225 install_override_mode=$lt_install_override_mode
33226
33227 # Command to use after installation of a shared archive.
33228 postinstall_cmds=$lt_postinstall_cmds
33229
33230 # Command to use after uninstallation of a shared archive.
33231 postuninstall_cmds=$lt_postuninstall_cmds
33232
33233 # Commands used to finish a libtool library installation in a directory.
33234 finish_cmds=$lt_finish_cmds
33235
33236 # As "finish_cmds", except a single script fragment to be evaled but
33237 # not shown.
33238 finish_eval=$lt_finish_eval
33239
33240 # Whether we should hardcode library paths into libraries.
33241 hardcode_into_libs=$hardcode_into_libs
33242
33243 # Compile-time system search path for libraries.
33244 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
33245
33246 # Detected run-time system search path for libraries.
33247 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
33248
33249 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
33250 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
33251
33252 # Whether dlopen is supported.
33253 dlopen_support=$enable_dlopen
33254
33255 # Whether dlopen of programs is supported.
33256 dlopen_self=$enable_dlopen_self
33257
33258 # Whether dlopen of statically linked programs is supported.
33259 dlopen_self_static=$enable_dlopen_self_static
33260
33261 # Commands to strip libraries.
33262 old_striplib=$lt_old_striplib
33263 striplib=$lt_striplib
33264
33265
33266 # The linker used to build libraries.
33267 LD=$lt_LD
33268
33269 # How to create reloadable object files.
33270 reload_flag=$lt_reload_flag
33271 reload_cmds=$lt_reload_cmds
33272
33273 # Commands used to build an old-style archive.
33274 old_archive_cmds=$lt_old_archive_cmds
33275
33276 # A language specific compiler.
33277 CC=$lt_compiler
33278
33279 # Is the compiler the GNU compiler?
33280 with_gcc=$GCC
33281
33282 # Compiler flag to turn off builtin functions.
33283 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
33284
33285 # Additional compiler flags for building library objects.
33286 pic_flag=$lt_lt_prog_compiler_pic
33287
33288 # How to pass a linker flag through the compiler.
33289 wl=$lt_lt_prog_compiler_wl
33290
33291 # Compiler flag to prevent dynamic linking.
33292 link_static_flag=$lt_lt_prog_compiler_static
33293
33294 # Does compiler simultaneously support -c and -o options?
33295 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
33296
33297 # Whether or not to add -lc for building shared libraries.
33298 build_libtool_need_lc=$archive_cmds_need_lc
33299
33300 # Whether or not to disallow shared libs when runtime libs are static.
33301 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
33302
33303 # Compiler flag to allow reflexive dlopens.
33304 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
33305
33306 # Compiler flag to generate shared objects directly from archives.
33307 whole_archive_flag_spec=$lt_whole_archive_flag_spec
33308
33309 # Whether the compiler copes with passing no objects directly.
33310 compiler_needs_object=$lt_compiler_needs_object
33311
33312 # Create an old-style archive from a shared archive.
33313 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
33314
33315 # Create a temporary old-style archive to link instead of a shared archive.
33316 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
33317
33318 # Commands used to build a shared archive.
33319 archive_cmds=$lt_archive_cmds
33320 archive_expsym_cmds=$lt_archive_expsym_cmds
33321
33322 # Commands used to build a loadable module if different from building
33323 # a shared archive.
33324 module_cmds=$lt_module_cmds
33325 module_expsym_cmds=$lt_module_expsym_cmds
33326
33327 # Whether we are building with GNU ld or not.
33328 with_gnu_ld=$lt_with_gnu_ld
33329
33330 # Flag that allows shared libraries with undefined symbols to be built.
33331 allow_undefined_flag=$lt_allow_undefined_flag
33332
33333 # Flag that enforces no undefined symbols.
33334 no_undefined_flag=$lt_no_undefined_flag
33335
33336 # Flag to hardcode \$libdir into a binary during linking.
33337 # This must work even if \$libdir does not exist
33338 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
33339
33340 # Whether we need a single "-rpath" flag with a separated argument.
33341 hardcode_libdir_separator=$lt_hardcode_libdir_separator
33342
33343 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
33344 # DIR into the resulting binary.
33345 hardcode_direct=$hardcode_direct
33346
33347 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
33348 # DIR into the resulting binary and the resulting library dependency is
33349 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
33350 # library is relocated.
33351 hardcode_direct_absolute=$hardcode_direct_absolute
33352
33353 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33354 # into the resulting binary.
33355 hardcode_minus_L=$hardcode_minus_L
33356
33357 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33358 # into the resulting binary.
33359 hardcode_shlibpath_var=$hardcode_shlibpath_var
33360
33361 # Set to "yes" if building a shared library automatically hardcodes DIR
33362 # into the library and all subsequent libraries and executables linked
33363 # against it.
33364 hardcode_automatic=$hardcode_automatic
33365
33366 # Set to yes if linker adds runtime paths of dependent libraries
33367 # to runtime path list.
33368 inherit_rpath=$inherit_rpath
33369
33370 # Whether libtool must link a program against all its dependency libraries.
33371 link_all_deplibs=$link_all_deplibs
33372
33373 # Set to "yes" if exported symbols are required.
33374 always_export_symbols=$always_export_symbols
33375
33376 # The commands to list exported symbols.
33377 export_symbols_cmds=$lt_export_symbols_cmds
33378
33379 # Symbols that should not be listed in the preloaded symbols.
33380 exclude_expsyms=$lt_exclude_expsyms
33381
33382 # Symbols that must always be exported.
33383 include_expsyms=$lt_include_expsyms
33384
33385 # Commands necessary for linking programs (against libraries) with templates.
33386 prelink_cmds=$lt_prelink_cmds
33387
33388 # Commands necessary for finishing linking programs.
33389 postlink_cmds=$lt_postlink_cmds
33390
33391 # Specify filename containing input files.
33392 file_list_spec=$lt_file_list_spec
33393
33394 # How to hardcode a shared library path into an executable.
33395 hardcode_action=$hardcode_action
33396
33397 # The directories searched by this compiler when creating a shared library.
33398 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
33399
33400 # Dependencies to place before and after the objects being linked to
33401 # create a shared library.
33402 predep_objects=$lt_predep_objects
33403 postdep_objects=$lt_postdep_objects
33404 predeps=$lt_predeps
33405 postdeps=$lt_postdeps
33406
33407 # The library search path used internally by the compiler when linking
33408 # a shared library.
33409 compiler_lib_search_path=$lt_compiler_lib_search_path
33410
33411 # ### END LIBTOOL CONFIG
33412
33413 _LT_EOF
33414
33415 cat <<'_LT_EOF' >> "$cfgfile"
33416
33417 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
33418
33419 # func_munge_path_list VARIABLE PATH
33420 # -----------------------------------
33421 # VARIABLE is name of variable containing _space_ separated list of
33422 # directories to be munged by the contents of PATH, which is string
33423 # having a format:
33424 # "DIR[:DIR]:"
33425 # string "DIR[ DIR]" will be prepended to VARIABLE
33426 # ":DIR[:DIR]"
33427 # string "DIR[ DIR]" will be appended to VARIABLE
33428 # "DIRP[:DIRP]::[DIRA:]DIRA"
33429 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
33430 # "DIRA[ DIRA]" will be appended to VARIABLE
33431 # "DIR[:DIR]"
33432 # VARIABLE will be replaced by "DIR[ DIR]"
33433 func_munge_path_list ()
33434 {
33435 case x$2 in
33436 x)
33437 ;;
33438 *:)
33439 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
33440 ;;
33441 x:*)
33442 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
33443 ;;
33444 *::*)
33445 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
33446 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
33447 ;;
33448 *)
33449 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
33450 ;;
33451 esac
33452 }
33453
33454
33455 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
33456 func_cc_basename ()
33457 {
33458 for cc_temp in $*""; do
33459 case $cc_temp in
33460 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
33461 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
33462 \-*) ;;
33463 *) break;;
33464 esac
33465 done
33466 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
33467 }
33468
33469
33470 # ### END FUNCTIONS SHARED WITH CONFIGURE
33471
33472 _LT_EOF
33473
33474 case $host_os in
33475 aix3*)
33476 cat <<\_LT_EOF >> "$cfgfile"
33477 # AIX sometimes has problems with the GCC collect2 program. For some
33478 # reason, if we set the COLLECT_NAMES environment variable, the problems
33479 # vanish in a puff of smoke.
33480 if test set != "${COLLECT_NAMES+set}"; then
33481 COLLECT_NAMES=
33482 export COLLECT_NAMES
33483 fi
33484 _LT_EOF
33485 ;;
33486 esac
33487
33488
33489 ltmain=$ac_aux_dir/ltmain.sh
33490
33491
33492 # We use sed instead of cat because bash on DJGPP gets confused if
33493 # if finds mixed CR/LF and LF-only lines. Since sed operates in
33494 # text mode, it properly converts lines to CR/LF. This bash problem
33495 # is reportedly fixed, but why not run on old versions too?
33496 sed '$q' "$ltmain" >> "$cfgfile" \
33497 || (rm -f "$cfgfile"; exit 1)
33498
33499 mv -f "$cfgfile" "$ofile" ||
33500 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
33501 chmod +x "$ofile"
33502
33503
33504 cat <<_LT_EOF >> "$ofile"
33505
33506 # ### BEGIN LIBTOOL TAG CONFIG: CXX
33507
33508 # The linker used to build libraries.
33509 LD=$lt_LD_CXX
33510
33511 # How to create reloadable object files.
33512 reload_flag=$lt_reload_flag_CXX
33513 reload_cmds=$lt_reload_cmds_CXX
33514
33515 # Commands used to build an old-style archive.
33516 old_archive_cmds=$lt_old_archive_cmds_CXX
33517
33518 # A language specific compiler.
33519 CC=$lt_compiler_CXX
33520
33521 # Is the compiler the GNU compiler?
33522 with_gcc=$GCC_CXX
33523
33524 # Compiler flag to turn off builtin functions.
33525 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
33526
33527 # Additional compiler flags for building library objects.
33528 pic_flag=$lt_lt_prog_compiler_pic_CXX
33529
33530 # How to pass a linker flag through the compiler.
33531 wl=$lt_lt_prog_compiler_wl_CXX
33532
33533 # Compiler flag to prevent dynamic linking.
33534 link_static_flag=$lt_lt_prog_compiler_static_CXX
33535
33536 # Does compiler simultaneously support -c and -o options?
33537 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
33538
33539 # Whether or not to add -lc for building shared libraries.
33540 build_libtool_need_lc=$archive_cmds_need_lc_CXX
33541
33542 # Whether or not to disallow shared libs when runtime libs are static.
33543 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
33544
33545 # Compiler flag to allow reflexive dlopens.
33546 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
33547
33548 # Compiler flag to generate shared objects directly from archives.
33549 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
33550
33551 # Whether the compiler copes with passing no objects directly.
33552 compiler_needs_object=$lt_compiler_needs_object_CXX
33553
33554 # Create an old-style archive from a shared archive.
33555 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
33556
33557 # Create a temporary old-style archive to link instead of a shared archive.
33558 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
33559
33560 # Commands used to build a shared archive.
33561 archive_cmds=$lt_archive_cmds_CXX
33562 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
33563
33564 # Commands used to build a loadable module if different from building
33565 # a shared archive.
33566 module_cmds=$lt_module_cmds_CXX
33567 module_expsym_cmds=$lt_module_expsym_cmds_CXX
33568
33569 # Whether we are building with GNU ld or not.
33570 with_gnu_ld=$lt_with_gnu_ld_CXX
33571
33572 # Flag that allows shared libraries with undefined symbols to be built.
33573 allow_undefined_flag=$lt_allow_undefined_flag_CXX
33574
33575 # Flag that enforces no undefined symbols.
33576 no_undefined_flag=$lt_no_undefined_flag_CXX
33577
33578 # Flag to hardcode \$libdir into a binary during linking.
33579 # This must work even if \$libdir does not exist
33580 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
33581
33582 # Whether we need a single "-rpath" flag with a separated argument.
33583 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
33584
33585 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
33586 # DIR into the resulting binary.
33587 hardcode_direct=$hardcode_direct_CXX
33588
33589 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
33590 # DIR into the resulting binary and the resulting library dependency is
33591 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
33592 # library is relocated.
33593 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
33594
33595 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33596 # into the resulting binary.
33597 hardcode_minus_L=$hardcode_minus_L_CXX
33598
33599 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33600 # into the resulting binary.
33601 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
33602
33603 # Set to "yes" if building a shared library automatically hardcodes DIR
33604 # into the library and all subsequent libraries and executables linked
33605 # against it.
33606 hardcode_automatic=$hardcode_automatic_CXX
33607
33608 # Set to yes if linker adds runtime paths of dependent libraries
33609 # to runtime path list.
33610 inherit_rpath=$inherit_rpath_CXX
33611
33612 # Whether libtool must link a program against all its dependency libraries.
33613 link_all_deplibs=$link_all_deplibs_CXX
33614
33615 # Set to "yes" if exported symbols are required.
33616 always_export_symbols=$always_export_symbols_CXX
33617
33618 # The commands to list exported symbols.
33619 export_symbols_cmds=$lt_export_symbols_cmds_CXX
33620
33621 # Symbols that should not be listed in the preloaded symbols.
33622 exclude_expsyms=$lt_exclude_expsyms_CXX
33623
33624 # Symbols that must always be exported.
33625 include_expsyms=$lt_include_expsyms_CXX
33626
33627 # Commands necessary for linking programs (against libraries) with templates.
33628 prelink_cmds=$lt_prelink_cmds_CXX
33629
33630 # Commands necessary for finishing linking programs.
33631 postlink_cmds=$lt_postlink_cmds_CXX
33632
33633 # Specify filename containing input files.
33634 file_list_spec=$lt_file_list_spec_CXX
33635
33636 # How to hardcode a shared library path into an executable.
33637 hardcode_action=$hardcode_action_CXX
33638
33639 # The directories searched by this compiler when creating a shared library.
33640 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
33641
33642 # Dependencies to place before and after the objects being linked to
33643 # create a shared library.
33644 predep_objects=$lt_predep_objects_CXX
33645 postdep_objects=$lt_postdep_objects_CXX
33646 predeps=$lt_predeps_CXX
33647 postdeps=$lt_postdeps_CXX
33648
33649 # The library search path used internally by the compiler when linking
33650 # a shared library.
33651 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
33652
33653 # ### END LIBTOOL TAG CONFIG: CXX
33654 _LT_EOF
33655
33656
33657 cat <<_LT_EOF >> "$ofile"
33658
33659 # ### BEGIN LIBTOOL TAG CONFIG: F77
33660
33661 # The linker used to build libraries.
33662 LD=$lt_LD_F77
33663
33664 # How to create reloadable object files.
33665 reload_flag=$lt_reload_flag_F77
33666 reload_cmds=$lt_reload_cmds_F77
33667
33668 # Commands used to build an old-style archive.
33669 old_archive_cmds=$lt_old_archive_cmds_F77
33670
33671 # A language specific compiler.
33672 CC=$lt_compiler_F77
33673
33674 # Is the compiler the GNU compiler?
33675 with_gcc=$GCC_F77
33676
33677 # Compiler flag to turn off builtin functions.
33678 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
33679
33680 # Additional compiler flags for building library objects.
33681 pic_flag=$lt_lt_prog_compiler_pic_F77
33682
33683 # How to pass a linker flag through the compiler.
33684 wl=$lt_lt_prog_compiler_wl_F77
33685
33686 # Compiler flag to prevent dynamic linking.
33687 link_static_flag=$lt_lt_prog_compiler_static_F77
33688
33689 # Does compiler simultaneously support -c and -o options?
33690 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
33691
33692 # Whether or not to add -lc for building shared libraries.
33693 build_libtool_need_lc=$archive_cmds_need_lc_F77
33694
33695 # Whether or not to disallow shared libs when runtime libs are static.
33696 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
33697
33698 # Compiler flag to allow reflexive dlopens.
33699 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
33700
33701 # Compiler flag to generate shared objects directly from archives.
33702 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
33703
33704 # Whether the compiler copes with passing no objects directly.
33705 compiler_needs_object=$lt_compiler_needs_object_F77
33706
33707 # Create an old-style archive from a shared archive.
33708 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
33709
33710 # Create a temporary old-style archive to link instead of a shared archive.
33711 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
33712
33713 # Commands used to build a shared archive.
33714 archive_cmds=$lt_archive_cmds_F77
33715 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
33716
33717 # Commands used to build a loadable module if different from building
33718 # a shared archive.
33719 module_cmds=$lt_module_cmds_F77
33720 module_expsym_cmds=$lt_module_expsym_cmds_F77
33721
33722 # Whether we are building with GNU ld or not.
33723 with_gnu_ld=$lt_with_gnu_ld_F77
33724
33725 # Flag that allows shared libraries with undefined symbols to be built.
33726 allow_undefined_flag=$lt_allow_undefined_flag_F77
33727
33728 # Flag that enforces no undefined symbols.
33729 no_undefined_flag=$lt_no_undefined_flag_F77
33730
33731 # Flag to hardcode \$libdir into a binary during linking.
33732 # This must work even if \$libdir does not exist
33733 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
33734
33735 # Whether we need a single "-rpath" flag with a separated argument.
33736 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
33737
33738 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
33739 # DIR into the resulting binary.
33740 hardcode_direct=$hardcode_direct_F77
33741
33742 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
33743 # DIR into the resulting binary and the resulting library dependency is
33744 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
33745 # library is relocated.
33746 hardcode_direct_absolute=$hardcode_direct_absolute_F77
33747
33748 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33749 # into the resulting binary.
33750 hardcode_minus_L=$hardcode_minus_L_F77
33751
33752 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33753 # into the resulting binary.
33754 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
33755
33756 # Set to "yes" if building a shared library automatically hardcodes DIR
33757 # into the library and all subsequent libraries and executables linked
33758 # against it.
33759 hardcode_automatic=$hardcode_automatic_F77
33760
33761 # Set to yes if linker adds runtime paths of dependent libraries
33762 # to runtime path list.
33763 inherit_rpath=$inherit_rpath_F77
33764
33765 # Whether libtool must link a program against all its dependency libraries.
33766 link_all_deplibs=$link_all_deplibs_F77
33767
33768 # Set to "yes" if exported symbols are required.
33769 always_export_symbols=$always_export_symbols_F77
33770
33771 # The commands to list exported symbols.
33772 export_symbols_cmds=$lt_export_symbols_cmds_F77
33773
33774 # Symbols that should not be listed in the preloaded symbols.
33775 exclude_expsyms=$lt_exclude_expsyms_F77
33776
33777 # Symbols that must always be exported.
33778 include_expsyms=$lt_include_expsyms_F77
33779
33780 # Commands necessary for linking programs (against libraries) with templates.
33781 prelink_cmds=$lt_prelink_cmds_F77
33782
33783 # Commands necessary for finishing linking programs.
33784 postlink_cmds=$lt_postlink_cmds_F77
33785
33786 # Specify filename containing input files.
33787 file_list_spec=$lt_file_list_spec_F77
33788
33789 # How to hardcode a shared library path into an executable.
33790 hardcode_action=$hardcode_action_F77
33791
33792 # The directories searched by this compiler when creating a shared library.
33793 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
33794
33795 # Dependencies to place before and after the objects being linked to
33796 # create a shared library.
33797 predep_objects=$lt_predep_objects_F77
33798 postdep_objects=$lt_postdep_objects_F77
33799 predeps=$lt_predeps_F77
33800 postdeps=$lt_postdeps_F77
33801
33802 # The library search path used internally by the compiler when linking
33803 # a shared library.
33804 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
33805
33806 # ### END LIBTOOL TAG CONFIG: F77
33807 _LT_EOF
33808
33809
33810 cat <<_LT_EOF >> "$ofile"
33811
33812 # ### BEGIN LIBTOOL TAG CONFIG: FC
33813
33814 # The linker used to build libraries.
33815 LD=$lt_LD_FC
33816
33817 # How to create reloadable object files.
33818 reload_flag=$lt_reload_flag_FC
33819 reload_cmds=$lt_reload_cmds_FC
33820
33821 # Commands used to build an old-style archive.
33822 old_archive_cmds=$lt_old_archive_cmds_FC
33823
33824 # A language specific compiler.
33825 CC=$lt_compiler_FC
33826
33827 # Is the compiler the GNU compiler?
33828 with_gcc=$GCC_FC
33829
33830 # Compiler flag to turn off builtin functions.
33831 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
33832
33833 # Additional compiler flags for building library objects.
33834 pic_flag=$lt_lt_prog_compiler_pic_FC
33835
33836 # How to pass a linker flag through the compiler.
33837 wl=$lt_lt_prog_compiler_wl_FC
33838
33839 # Compiler flag to prevent dynamic linking.
33840 link_static_flag=$lt_lt_prog_compiler_static_FC
33841
33842 # Does compiler simultaneously support -c and -o options?
33843 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
33844
33845 # Whether or not to add -lc for building shared libraries.
33846 build_libtool_need_lc=$archive_cmds_need_lc_FC
33847
33848 # Whether or not to disallow shared libs when runtime libs are static.
33849 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
33850
33851 # Compiler flag to allow reflexive dlopens.
33852 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
33853
33854 # Compiler flag to generate shared objects directly from archives.
33855 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
33856
33857 # Whether the compiler copes with passing no objects directly.
33858 compiler_needs_object=$lt_compiler_needs_object_FC
33859
33860 # Create an old-style archive from a shared archive.
33861 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
33862
33863 # Create a temporary old-style archive to link instead of a shared archive.
33864 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
33865
33866 # Commands used to build a shared archive.
33867 archive_cmds=$lt_archive_cmds_FC
33868 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
33869
33870 # Commands used to build a loadable module if different from building
33871 # a shared archive.
33872 module_cmds=$lt_module_cmds_FC
33873 module_expsym_cmds=$lt_module_expsym_cmds_FC
33874
33875 # Whether we are building with GNU ld or not.
33876 with_gnu_ld=$lt_with_gnu_ld_FC
33877
33878 # Flag that allows shared libraries with undefined symbols to be built.
33879 allow_undefined_flag=$lt_allow_undefined_flag_FC
33880
33881 # Flag that enforces no undefined symbols.
33882 no_undefined_flag=$lt_no_undefined_flag_FC
33883
33884 # Flag to hardcode \$libdir into a binary during linking.
33885 # This must work even if \$libdir does not exist
33886 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
33887
33888 # Whether we need a single "-rpath" flag with a separated argument.
33889 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
33890
33891 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
33892 # DIR into the resulting binary.
33893 hardcode_direct=$hardcode_direct_FC
33894
33895 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
33896 # DIR into the resulting binary and the resulting library dependency is
33897 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
33898 # library is relocated.
33899 hardcode_direct_absolute=$hardcode_direct_absolute_FC
33900
33901 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33902 # into the resulting binary.
33903 hardcode_minus_L=$hardcode_minus_L_FC
33904
33905 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33906 # into the resulting binary.
33907 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
33908
33909 # Set to "yes" if building a shared library automatically hardcodes DIR
33910 # into the library and all subsequent libraries and executables linked
33911 # against it.
33912 hardcode_automatic=$hardcode_automatic_FC
33913
33914 # Set to yes if linker adds runtime paths of dependent libraries
33915 # to runtime path list.
33916 inherit_rpath=$inherit_rpath_FC
33917
33918 # Whether libtool must link a program against all its dependency libraries.
33919 link_all_deplibs=$link_all_deplibs_FC
33920
33921 # Set to "yes" if exported symbols are required.
33922 always_export_symbols=$always_export_symbols_FC
33923
33924 # The commands to list exported symbols.
33925 export_symbols_cmds=$lt_export_symbols_cmds_FC
33926
33927 # Symbols that should not be listed in the preloaded symbols.
33928 exclude_expsyms=$lt_exclude_expsyms_FC
33929
33930 # Symbols that must always be exported.
33931 include_expsyms=$lt_include_expsyms_FC
33932
33933 # Commands necessary for linking programs (against libraries) with templates.
33934 prelink_cmds=$lt_prelink_cmds_FC
33935
33936 # Commands necessary for finishing linking programs.
33937 postlink_cmds=$lt_postlink_cmds_FC
33938
33939 # Specify filename containing input files.
33940 file_list_spec=$lt_file_list_spec_FC
33941
33942 # How to hardcode a shared library path into an executable.
33943 hardcode_action=$hardcode_action_FC
33944
33945 # The directories searched by this compiler when creating a shared library.
33946 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
33947
33948 # Dependencies to place before and after the objects being linked to
33949 # create a shared library.
33950 predep_objects=$lt_predep_objects_FC
33951 postdep_objects=$lt_postdep_objects_FC
33952 predeps=$lt_predeps_FC
33953 postdeps=$lt_postdeps_FC
33954
33955 # The library search path used internally by the compiler when linking
33956 # a shared library.
33957 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
33958
33959 # ### END LIBTOOL TAG CONFIG: FC
33960 _LT_EOF
33961
33962 ;;
33963 "../test/jacobi_c_test.sh":F) chmod +x ../test/jacobi_c_test.sh ;;
33964 "../test/jacobi_c++_test.sh":F) chmod +x ../test/jacobi_c++_test.sh ;;
33965 "../test/jacobi_f90_test.sh":F) chmod +x ../test/jacobi_f90_test.sh ;;
33966 "../test/jacobi_f77_test.sh":F) chmod +x ../test/jacobi_f77_test.sh ;;
33967
33968 esac
33969 done # for ac_tag
33970
33971
33972 as_fn_exit 0
33973 _ACEOF
33974 ac_clean_files=$ac_clean_files_save
33975
33976 test $ac_write_fail = 0 ||
33977 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33978
33979
33980 # configure is writing to config.log, and then calls config.status.
33981 # config.status does its own redirection, appending to config.log.
33982 # Unfortunately, on DOS this fails, as config.log is still kept open
33983 # by configure, so config.status won't be able to write to it; its
33984 # output is simply discarded. So we exec the FD to /dev/null,
33985 # effectively closing config.log, so it can be properly (re)opened and
33986 # appended to by config.status. When coming back to configure, we
33987 # need to make the FD available again.
33988 if test "$no_create" != yes; then
33989 ac_cs_success=:
33990 ac_config_status_args=
33991 test "$silent" = yes &&
33992 ac_config_status_args="$ac_config_status_args --quiet"
33993 exec 5>/dev/null
33994 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33995 exec 5>>config.log
33996 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33997 # would make configure fail if this is the last instruction.
33998 $ac_cs_success || as_fn_exit 1
33999 fi
34000 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
34001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
34002 $as_echo "$as_me: ${as__yel}WARNING: unrecognized options: $ac_unrecognized_opts${as__std}" >&2;}
34003 fi
34004