Debian Codegraph @

rsbtest/configure

raw symbols SCIP
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for rsbtest 0.0.
4 #
5 # Report bugs to <michelemartone_AT_users_DOT_sourceforge_DOT_net>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 #
15 # Copyright (c) 2017-2022, Michele Martone
16 ## -------------------- ##
17 ## M4sh Initialization. ##
18 ## -------------------- ##
19
20 # Be more Bourne compatible
21 DUALCASE=1; export DUALCASE # for MKS sh
22 as_nop=:
23 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
24 then :
25 emulate sh
26 NULLCMD=:
27 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28 # is contrary to our usage. Disable this feature.
29 alias -g '${1+"$@"}'='"$@"'
30 setopt NO_GLOB_SUBST
31 else $as_nop
32 case `(set -o) 2>/dev/null` in #(
33 *posix*) :
34 set -o posix ;; #(
35 *) :
36 ;;
37 esac
38 fi
39
40
41
42 # Reset variables that may have inherited troublesome values from
43 # the environment.
44
45 # IFS needs to be set, to space, tab, and newline, in precisely that order.
46 # (If _AS_PATH_WALK were called with IFS unset, it would have the
47 # side effect of setting IFS to empty, thus disabling word splitting.)
48 # Quoting is to prevent editors from complaining about space-tab.
49 as_nl='
50 '
51 export as_nl
52 IFS=" "" $as_nl"
53
54 PS1='$ '
55 PS2='> '
56 PS4='+ '
57
58 # Ensure predictable behavior from utilities with locale-dependent output.
59 LC_ALL=C
60 export LC_ALL
61 LANGUAGE=C
62 export LANGUAGE
63
64 # We cannot yet rely on "unset" to work, but we need these variables
65 # to be unset--not just set to an empty or harmless value--now, to
66 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
67 # also avoids known problems related to "unset" and subshell syntax
68 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
69 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
70 do eval test \${$as_var+y} \
71 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
72 done
73
74 # Ensure that fds 0, 1, and 2 are open.
75 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
76 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
77 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
78
79 # The user is always right.
80 if ${PATH_SEPARATOR+false} :; then
81 PATH_SEPARATOR=:
82 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
83 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
84 PATH_SEPARATOR=';'
85 }
86 fi
87
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 case $as_dir in #(((
98 '') as_dir=./ ;;
99 */) ;;
100 *) as_dir=$as_dir/ ;;
101 esac
102 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
103 done
104 IFS=$as_save_IFS
105
106 ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116 fi
117
118
119 # Use a proper internal environment variable to ensure we don't fall
120 # into an infinite loop, continuously re-executing ourselves.
121 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
122 _as_can_reexec=no; export _as_can_reexec;
123 # We cannot yet assume a decent shell, so we have to provide a
124 # neutralization value for shells without unset; and this also
125 # works around shells that cannot unset nonexistent variables.
126 # Preserve -v and -x to the replacement shell.
127 BASH_ENV=/dev/null
128 ENV=/dev/null
129 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
130 case $- in # ((((
131 *v*x* | *x*v* ) as_opts=-vx ;;
132 *v* ) as_opts=-v ;;
133 *x* ) as_opts=-x ;;
134 * ) as_opts= ;;
135 esac
136 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
137 # Admittedly, this is quite paranoid, since all the known shells bail
138 # out after a failed `exec'.
139 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
140 exit 255
141 fi
142 # We don't want this to propagate to other subprocesses.
143 { _as_can_reexec=; unset _as_can_reexec;}
144 if test "x$CONFIG_SHELL" = x; then
145 as_bourne_compatible="as_nop=:
146 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
147 then :
148 emulate sh
149 NULLCMD=:
150 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
151 # is contrary to our usage. Disable this feature.
152 alias -g '\${1+\"\$@\"}'='\"\$@\"'
153 setopt NO_GLOB_SUBST
154 else \$as_nop
155 case \`(set -o) 2>/dev/null\` in #(
156 *posix*) :
157 set -o posix ;; #(
158 *) :
159 ;;
160 esac
161 fi
162 "
163 as_required="as_fn_return () { (exit \$1); }
164 as_fn_success () { as_fn_return 0; }
165 as_fn_failure () { as_fn_return 1; }
166 as_fn_ret_success () { return 0; }
167 as_fn_ret_failure () { return 1; }
168
169 exitcode=0
170 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
171 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
172 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
173 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
174 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
175 then :
176
177 else \$as_nop
178 exitcode=1; echo positional parameters were not saved.
179 fi
180 test x\$exitcode = x0 || exit 1
181 blah=\$(echo \$(echo blah))
182 test x\"\$blah\" = xblah || exit 1
183 test -x / || exit 1"
184 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
185 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
186 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
187 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
188
189 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
190 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
192 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
193 PATH=/empty FPATH=/empty; export PATH FPATH
194 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
195 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
196 test \$(( 1 + 1 )) = 2 || exit 1"
197 if (eval "$as_required") 2>/dev/null
198 then :
199 as_have_required=yes
200 else $as_nop
201 as_have_required=no
202 fi
203 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
204 then :
205
206 else $as_nop
207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
208 as_found=false
209 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
210 do
211 IFS=$as_save_IFS
212 case $as_dir in #(((
213 '') as_dir=./ ;;
214 */) ;;
215 *) as_dir=$as_dir/ ;;
216 esac
217 as_found=:
218 case $as_dir in #(
219 /*)
220 for as_base in sh bash ksh sh5; do
221 # Try only shells that exist, to save several forks.
222 as_shell=$as_dir$as_base
223 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
224 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
225 then :
226 CONFIG_SHELL=$as_shell as_have_required=yes
227 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
228 then :
229 break 2
230 fi
231 fi
232 done;;
233 esac
234 as_found=false
235 done
236 IFS=$as_save_IFS
237 if $as_found
238 then :
239
240 else $as_nop
241 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
243 then :
244 CONFIG_SHELL=$SHELL as_have_required=yes
245 fi
246 fi
247
248
249 if test "x$CONFIG_SHELL" != x
250 then :
251 export CONFIG_SHELL
252 # We cannot yet assume a decent shell, so we have to provide a
253 # neutralization value for shells without unset; and this also
254 # works around shells that cannot unset nonexistent variables.
255 # Preserve -v and -x to the replacement shell.
256 BASH_ENV=/dev/null
257 ENV=/dev/null
258 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
259 case $- in # ((((
260 *v*x* | *x*v* ) as_opts=-vx ;;
261 *v* ) as_opts=-v ;;
262 *x* ) as_opts=-x ;;
263 * ) as_opts= ;;
264 esac
265 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
266 # Admittedly, this is quite paranoid, since all the known shells bail
267 # out after a failed `exec'.
268 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
269 exit 255
270 fi
271
272 if test x$as_have_required = xno
273 then :
274 printf "%s\n" "$0: This script requires a shell more modern than all"
275 printf "%s\n" "$0: the shells that I found on your system."
276 if test ${ZSH_VERSION+y} ; then
277 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
278 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
279 else
280 printf "%s\n" "$0: Please tell [email protected] and
281 $0: michelemartone_AT_users_DOT_sourceforge_DOT_net about
282 $0: your system, including any error possibly output before
283 $0: this message. Then install a modern shell, or manually
284 $0: run the script under such a shell if you do have one."
285 fi
286 exit 1
287 fi
288 fi
289 fi
290 SHELL=${CONFIG_SHELL-/bin/sh}
291 export SHELL
292 # Unset more variables known to interfere with behavior of common tools.
293 CLICOLOR_FORCE= GREP_OPTIONS=
294 unset CLICOLOR_FORCE GREP_OPTIONS
295
296 ## --------------------- ##
297 ## M4sh Shell Functions. ##
298 ## --------------------- ##
299 # as_fn_unset VAR
300 # ---------------
301 # Portably unset VAR.
302 as_fn_unset ()
303 {
304 { eval $1=; unset $1;}
305 }
306 as_unset=as_fn_unset
307
308
309 # as_fn_set_status STATUS
310 # -----------------------
311 # Set $? to STATUS, without forking.
312 as_fn_set_status ()
313 {
314 return $1
315 } # as_fn_set_status
316
317 # as_fn_exit STATUS
318 # -----------------
319 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
320 as_fn_exit ()
321 {
322 set +e
323 as_fn_set_status $1
324 exit $1
325 } # as_fn_exit
326 # as_fn_nop
327 # ---------
328 # Do nothing but, unlike ":", preserve the value of $?.
329 as_fn_nop ()
330 {
331 return $?
332 }
333 as_nop=as_fn_nop
334
335 # as_fn_mkdir_p
336 # -------------
337 # Create "$as_dir" as a directory, including parents if necessary.
338 as_fn_mkdir_p ()
339 {
340
341 case $as_dir in #(
342 -*) as_dir=./$as_dir;;
343 esac
344 test -d "$as_dir" || eval $as_mkdir_p || {
345 as_dirs=
346 while :; do
347 case $as_dir in #(
348 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
349 *) as_qdir=$as_dir;;
350 esac
351 as_dirs="'$as_qdir' $as_dirs"
352 as_dir=`$as_dirname -- "$as_dir" ||
353 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
354 X"$as_dir" : 'X\(//\)[^/]' \| \
355 X"$as_dir" : 'X\(//\)$' \| \
356 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
357 printf "%s\n" X"$as_dir" |
358 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
359 s//\1/
360 q
361 }
362 /^X\(\/\/\)[^/].*/{
363 s//\1/
364 q
365 }
366 /^X\(\/\/\)$/{
367 s//\1/
368 q
369 }
370 /^X\(\/\).*/{
371 s//\1/
372 q
373 }
374 s/.*/./; q'`
375 test -d "$as_dir" && break
376 done
377 test -z "$as_dirs" || eval "mkdir $as_dirs"
378 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
379
380
381 } # as_fn_mkdir_p
382
383 # as_fn_executable_p FILE
384 # -----------------------
385 # Test if FILE is an executable regular file.
386 as_fn_executable_p ()
387 {
388 test -f "$1" && test -x "$1"
389 } # as_fn_executable_p
390 # as_fn_append VAR VALUE
391 # ----------------------
392 # Append the text in VALUE to the end of the definition contained in VAR. Take
393 # advantage of any shell optimizations that allow amortized linear growth over
394 # repeated appends, instead of the typical quadratic growth present in naive
395 # implementations.
396 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
397 then :
398 eval 'as_fn_append ()
399 {
400 eval $1+=\$2
401 }'
402 else $as_nop
403 as_fn_append ()
404 {
405 eval $1=\$$1\$2
406 }
407 fi # as_fn_append
408
409 # as_fn_arith ARG...
410 # ------------------
411 # Perform arithmetic evaluation on the ARGs, and store the result in the
412 # global $as_val. Take advantage of shells that can avoid forks. The arguments
413 # must be portable across $(()) and expr.
414 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
415 then :
416 eval 'as_fn_arith ()
417 {
418 as_val=$(( $* ))
419 }'
420 else $as_nop
421 as_fn_arith ()
422 {
423 as_val=`expr "$@" || test $? -eq 1`
424 }
425 fi # as_fn_arith
426
427 # as_fn_nop
428 # ---------
429 # Do nothing but, unlike ":", preserve the value of $?.
430 as_fn_nop ()
431 {
432 return $?
433 }
434 as_nop=as_fn_nop
435
436 # as_fn_error STATUS ERROR [LINENO LOG_FD]
437 # ----------------------------------------
438 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
439 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
440 # script with STATUS, using 1 if that was 0.
441 as_fn_error ()
442 {
443 as_status=$1; test $as_status -eq 0 && as_status=1
444 if test "$4"; then
445 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
446 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
447 fi
448 printf "%s\n" "$as_me: error: $2" >&2
449 as_fn_exit $as_status
450 } # as_fn_error
451
452 if expr a : '\(a\)' >/dev/null 2>&1 &&
453 test "X`expr 00001 : '.*\(...\)'`" = X001; then
454 as_expr=expr
455 else
456 as_expr=false
457 fi
458
459 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
460 as_basename=basename
461 else
462 as_basename=false
463 fi
464
465 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
466 as_dirname=dirname
467 else
468 as_dirname=false
469 fi
470
471 as_me=`$as_basename -- "$0" ||
472 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
473 X"$0" : 'X\(//\)$' \| \
474 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
475 printf "%s\n" X/"$0" |
476 sed '/^.*\/\([^/][^/]*\)\/*$/{
477 s//\1/
478 q
479 }
480 /^X\/\(\/\/\)$/{
481 s//\1/
482 q
483 }
484 /^X\/\(\/\).*/{
485 s//\1/
486 q
487 }
488 s/.*/./; q'`
489
490 # Avoid depending upon Character Ranges.
491 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
492 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
493 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
494 as_cr_digits='0123456789'
495 as_cr_alnum=$as_cr_Letters$as_cr_digits
496
497
498 as_lineno_1=$LINENO as_lineno_1a=$LINENO
499 as_lineno_2=$LINENO as_lineno_2a=$LINENO
500 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
501 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
502 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
503 sed -n '
504 p
505 /[$]LINENO/=
506 ' <$as_myself |
507 sed '
508 s/[$]LINENO.*/&-/
509 t lineno
510 b
511 :lineno
512 N
513 :loop
514 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
515 t loop
516 s/-\n.*//
517 ' >$as_me.lineno &&
518 chmod +x "$as_me.lineno" ||
519 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
520
521 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
522 # already done that, so ensure we don't try to do so again and fall
523 # in an infinite loop. This has already happened in practice.
524 _as_can_reexec=no; export _as_can_reexec
525 # Don't try to exec as it changes $[0], causing all sort of problems
526 # (the dirname of $[0] is not the place where we might find the
527 # original and so on. Autoconf is especially sensitive to this).
528 . "./$as_me.lineno"
529 # Exit status is that of the last command.
530 exit
531 }
532
533
534 # Determine whether it's possible to make 'echo' print without a newline.
535 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
536 # for compatibility with existing Makefiles.
537 ECHO_C= ECHO_N= ECHO_T=
538 case `echo -n x` in #(((((
539 -n*)
540 case `echo 'xy\c'` in
541 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
542 xy) ECHO_C='\c';;
543 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
544 ECHO_T=' ';;
545 esac;;
546 *)
547 ECHO_N='-n';;
548 esac
549
550 # For backward compatibility with old third-party macros, we provide
551 # the shell variables $as_echo and $as_echo_n. New code should use
552 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
553 as_echo='printf %s\n'
554 as_echo_n='printf %s'
555
556
557 rm -f conf$$ conf$$.exe conf$$.file
558 if test -d conf$$.dir; then
559 rm -f conf$$.dir/conf$$.file
560 else
561 rm -f conf$$.dir
562 mkdir conf$$.dir 2>/dev/null
563 fi
564 if (echo >conf$$.file) 2>/dev/null; then
565 if ln -s conf$$.file conf$$ 2>/dev/null; then
566 as_ln_s='ln -s'
567 # ... but there are two gotchas:
568 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
569 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
570 # In both cases, we have to default to `cp -pR'.
571 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
572 as_ln_s='cp -pR'
573 elif ln conf$$.file conf$$ 2>/dev/null; then
574 as_ln_s=ln
575 else
576 as_ln_s='cp -pR'
577 fi
578 else
579 as_ln_s='cp -pR'
580 fi
581 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
582 rmdir conf$$.dir 2>/dev/null
583
584 if mkdir -p . 2>/dev/null; then
585 as_mkdir_p='mkdir -p "$as_dir"'
586 else
587 test -d ./-p && rmdir ./-p
588 as_mkdir_p=false
589 fi
590
591 as_test_x='test -x'
592 as_executable_p=as_fn_executable_p
593
594 # Sed expression to map a string onto a valid CPP name.
595 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
596
597 # Sed expression to map a string onto a valid variable name.
598 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
599
600 SHELL=${CONFIG_SHELL-/bin/sh}
601
602
603 test -n "$DJDIR" || exec 7<&0 </dev/null
604 exec 6>&1
605
606 # Name of the host.
607 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
608 # so uname gets run too.
609 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
610
611 #
612 # Initializations.
613 #
614 ac_default_prefix=/usr/local
615 ac_clean_files=
616 ac_config_libobj_dir=.
617 LIBOBJS=
618 cross_compiling=no
619 subdirs=
620 MFLAGS=
621 MAKEFLAGS=
622
623 # Identity of this package.
624 PACKAGE_NAME='rsbtest'
625 PACKAGE_TARNAME='rsbtest'
626 PACKAGE_VERSION='0.0'
627 PACKAGE_STRING='rsbtest 0.0'
628 PACKAGE_BUGREPORT='michelemartone_AT_users_DOT_sourceforge_DOT_net'
629 PACKAGE_URL=''
630
631 # Factoring default headers for most tests.
632 ac_includes_default="\
633 #include <stddef.h>
634 #ifdef HAVE_STDIO_H
635 # include <stdio.h>
636 #endif
637 #ifdef HAVE_STDLIB_H
638 # include <stdlib.h>
639 #endif
640 #ifdef HAVE_STRING_H
641 # include <string.h>
642 #endif
643 #ifdef HAVE_INTTYPES_H
644 # include <inttypes.h>
645 #endif
646 #ifdef HAVE_STDINT_H
647 # include <stdint.h>
648 #endif
649 #ifdef HAVE_STRINGS_H
650 # include <strings.h>
651 #endif
652 #ifdef HAVE_SYS_TYPES_H
653 # include <sys/types.h>
654 #endif
655 #ifdef HAVE_SYS_STAT_H
656 # include <sys/stat.h>
657 #endif
658 #ifdef HAVE_UNISTD_H
659 # include <unistd.h>
660 #endif"
661
662 ac_header_c_list=
663 ac_subst_vars='am__EXEEXT_FALSE
664 am__EXEEXT_TRUE
665 LTLIBOBJS
666 LIBOBJS
667 HAVE_TIMEOUT_FALSE
668 HAVE_TIMEOUT_TRUE
669 HAVE_WHICH_FALSE
670 HAVE_WHICH_TRUE
671 HAVE_FULL_DD_FALSE
672 HAVE_FULL_DD_TRUE
673 HAVE_DD_FALSE
674 HAVE_DD_TRUE
675 have_dd
676 HAVE_RUNNABLE_TESTS_FALSE
677 HAVE_RUNNABLE_TESTS_TRUE
678 HAVE_DEV_NULL_FALSE
679 HAVE_DEV_NULL_TRUE
680 HAVE_RSB_HPP_FALSE
681 HAVE_RSB_HPP_TRUE
682 HAVE_RSBPP_HPP_FALSE
683 HAVE_RSBPP_HPP_TRUE
684 WITH_CXX17_FILESYSTEM_FALSE
685 WITH_CXX17_FILESYSTEM_TRUE
686 WANT_CUSTOM_NUMERICAL_TYPES_FALSE
687 WANT_CUSTOM_NUMERICAL_TYPES_TRUE
688 WANT_PROGRAMS_FALSE
689 WANT_PROGRAMS_TRUE
690 WANT_MINIMAL_LIBRSBPP_FALSE
691 WANT_MINIMAL_LIBRSBPP_TRUE
692 USE_MKL_SPBLAS_FALSE
693 USE_MKL_SPBLAS_TRUE
694 HAVE_LIBRSB_CONFIG
695 RSBTEST_CPPFLAGS
696 LIBRSB_CONFIG
697 WITH_RSBTEST_FALSE
698 WITH_RSBTEST_TRUE
699 LIBRSB_LOCAL_LIBS
700 LIBRSB__BASE_DIR
701 LATEX
702 OPENMP_CXXFLAGS
703 CXXCPP
704 am__fastdepCXX_FALSE
705 am__fastdepCXX_TRUE
706 CXXDEPMODE
707 ac_ct_CXX
708 CXXFLAGS
709 CXX
710 LT_SYS_LIBRARY_PATH
711 OTOOL64
712 OTOOL
713 LIPO
714 NMEDIT
715 DSYMUTIL
716 MANIFEST_TOOL
717 RANLIB
718 ac_ct_AR
719 AR
720 DLLTOOL
721 OBJDUMP
722 FILECMD
723 LN_S
724 NM
725 ac_ct_DUMPBIN
726 DUMPBIN
727 LD
728 FGREP
729 EGREP
730 GREP
731 SED
732 am__fastdepCC_FALSE
733 am__fastdepCC_TRUE
734 CCDEPMODE
735 am__nodep
736 AMDEPBACKSLASH
737 AMDEP_FALSE
738 AMDEP_TRUE
739 am__include
740 DEPDIR
741 OBJEXT
742 EXEEXT
743 ac_ct_CC
744 CPPFLAGS
745 LDFLAGS
746 CFLAGS
747 CC
748 host_os
749 host_vendor
750 host_cpu
751 host
752 build_os
753 build_vendor
754 build_cpu
755 build
756 LIBTOOL
757 AM_BACKSLASH
758 AM_DEFAULT_VERBOSITY
759 AM_DEFAULT_V
760 AM_V
761 CSCOPE
762 ETAGS
763 CTAGS
764 am__untar
765 am__tar
766 AMTAR
767 am__leading_dot
768 SET_MAKE
769 AWK
770 mkdir_p
771 MKDIR_P
772 INSTALL_STRIP_PROGRAM
773 STRIP
774 install_sh
775 MAKEINFO
776 AUTOHEADER
777 AUTOMAKE
778 AUTOCONF
779 ACLOCAL
780 VERSION
781 PACKAGE
782 CYGPATH_W
783 am__isrc
784 INSTALL_DATA
785 INSTALL_SCRIPT
786 INSTALL_PROGRAM
787 target_alias
788 host_alias
789 build_alias
790 LIBS
791 ECHO_T
792 ECHO_N
793 ECHO_C
794 DEFS
795 mandir
796 localedir
797 libdir
798 psdir
799 pdfdir
800 dvidir
801 htmldir
802 infodir
803 docdir
804 oldincludedir
805 includedir
806 runstatedir
807 localstatedir
808 sharedstatedir
809 sysconfdir
810 datadir
811 datarootdir
812 libexecdir
813 sbindir
814 bindir
815 program_transform_name
816 prefix
817 exec_prefix
818 PACKAGE_URL
819 PACKAGE_BUGREPORT
820 PACKAGE_STRING
821 PACKAGE_VERSION
822 PACKAGE_TARNAME
823 PACKAGE_NAME
824 PATH_SEPARATOR
825 SHELL
826 am__quote'
827 ac_subst_files=''
828 ac_user_opts='
829 enable_option_checking
830 enable_silent_rules
831 enable_shared
832 enable_static
833 with_pic
834 enable_fast_install
835 with_aix_soname
836 enable_dependency_tracking
837 with_gnu_ld
838 with_sysroot
839 enable_libtool_lock
840 enable_openmp
841 with_librsbpp
842 with_rsbtest
843 enable_long_indices
844 enable_preset
845 with_mkl
846 enable_minimal_librsbpp
847 enable_matrix_types
848 enable_programs
849 '
850 ac_precious_vars='build_alias
851 host_alias
852 target_alias
853 CC
854 CFLAGS
855 LDFLAGS
856 LIBS
857 CPPFLAGS
858 LT_SYS_LIBRARY_PATH
859 CXX
860 CXXFLAGS
861 CCC
862 CXXCPP
863 LIBRSB__BASE_DIR
864 LIBRSB_CONFIG
865 RSBTEST_CPPFLAGS'
866
867
868 # Initialize some variables set by options.
869 ac_init_help=
870 ac_init_version=false
871 ac_unrecognized_opts=
872 ac_unrecognized_sep=
873 # The variables have the same names as the options, with
874 # dashes changed to underlines.
875 cache_file=/dev/null
876 exec_prefix=NONE
877 no_create=
878 no_recursion=
879 prefix=NONE
880 program_prefix=NONE
881 program_suffix=NONE
882 program_transform_name=s,x,x,
883 silent=
884 site=
885 srcdir=
886 verbose=
887 x_includes=NONE
888 x_libraries=NONE
889
890 # Installation directory options.
891 # These are left unexpanded so users can "make install exec_prefix=/foo"
892 # and all the variables that are supposed to be based on exec_prefix
893 # by default will actually change.
894 # Use braces instead of parens because sh, perl, etc. also accept them.
895 # (The list follows the same order as the GNU Coding Standards.)
896 bindir='${exec_prefix}/bin'
897 sbindir='${exec_prefix}/sbin'
898 libexecdir='${exec_prefix}/libexec'
899 datarootdir='${prefix}/share'
900 datadir='${datarootdir}'
901 sysconfdir='${prefix}/etc'
902 sharedstatedir='${prefix}/com'
903 localstatedir='${prefix}/var'
904 runstatedir='${localstatedir}/run'
905 includedir='${prefix}/include'
906 oldincludedir='/usr/include'
907 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
908 infodir='${datarootdir}/info'
909 htmldir='${docdir}'
910 dvidir='${docdir}'
911 pdfdir='${docdir}'
912 psdir='${docdir}'
913 libdir='${exec_prefix}/lib'
914 localedir='${datarootdir}/locale'
915 mandir='${datarootdir}/man'
916
917 ac_prev=
918 ac_dashdash=
919 for ac_option
920 do
921 # If the previous option needs an argument, assign it.
922 if test -n "$ac_prev"; then
923 eval $ac_prev=\$ac_option
924 ac_prev=
925 continue
926 fi
927
928 case $ac_option in
929 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
930 *=) ac_optarg= ;;
931 *) ac_optarg=yes ;;
932 esac
933
934 case $ac_dashdash$ac_option in
935 --)
936 ac_dashdash=yes ;;
937
938 -bindir | --bindir | --bindi | --bind | --bin | --bi)
939 ac_prev=bindir ;;
940 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
941 bindir=$ac_optarg ;;
942
943 -build | --build | --buil | --bui | --bu)
944 ac_prev=build_alias ;;
945 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
946 build_alias=$ac_optarg ;;
947
948 -cache-file | --cache-file | --cache-fil | --cache-fi \
949 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
950 ac_prev=cache_file ;;
951 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
952 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
953 cache_file=$ac_optarg ;;
954
955 --config-cache | -C)
956 cache_file=config.cache ;;
957
958 -datadir | --datadir | --datadi | --datad)
959 ac_prev=datadir ;;
960 -datadir=* | --datadir=* | --datadi=* | --datad=*)
961 datadir=$ac_optarg ;;
962
963 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
964 | --dataroo | --dataro | --datar)
965 ac_prev=datarootdir ;;
966 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
967 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
968 datarootdir=$ac_optarg ;;
969
970 -disable-* | --disable-*)
971 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
972 # Reject names that are not valid shell variable names.
973 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
974 as_fn_error $? "invalid feature name: \`$ac_useropt'"
975 ac_useropt_orig=$ac_useropt
976 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
977 case $ac_user_opts in
978 *"
979 "enable_$ac_useropt"
980 "*) ;;
981 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
982 ac_unrecognized_sep=', ';;
983 esac
984 eval enable_$ac_useropt=no ;;
985
986 -docdir | --docdir | --docdi | --doc | --do)
987 ac_prev=docdir ;;
988 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
989 docdir=$ac_optarg ;;
990
991 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
992 ac_prev=dvidir ;;
993 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
994 dvidir=$ac_optarg ;;
995
996 -enable-* | --enable-*)
997 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
998 # Reject names that are not valid shell variable names.
999 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1000 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1001 ac_useropt_orig=$ac_useropt
1002 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1003 case $ac_user_opts in
1004 *"
1005 "enable_$ac_useropt"
1006 "*) ;;
1007 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1008 ac_unrecognized_sep=', ';;
1009 esac
1010 eval enable_$ac_useropt=\$ac_optarg ;;
1011
1012 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1013 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1014 | --exec | --exe | --ex)
1015 ac_prev=exec_prefix ;;
1016 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1017 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1018 | --exec=* | --exe=* | --ex=*)
1019 exec_prefix=$ac_optarg ;;
1020
1021 -gas | --gas | --ga | --g)
1022 # Obsolete; use --with-gas.
1023 with_gas=yes ;;
1024
1025 -help | --help | --hel | --he | -h)
1026 ac_init_help=long ;;
1027 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1028 ac_init_help=recursive ;;
1029 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1030 ac_init_help=short ;;
1031
1032 -host | --host | --hos | --ho)
1033 ac_prev=host_alias ;;
1034 -host=* | --host=* | --hos=* | --ho=*)
1035 host_alias=$ac_optarg ;;
1036
1037 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1038 ac_prev=htmldir ;;
1039 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1040 | --ht=*)
1041 htmldir=$ac_optarg ;;
1042
1043 -includedir | --includedir | --includedi | --included | --include \
1044 | --includ | --inclu | --incl | --inc)
1045 ac_prev=includedir ;;
1046 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1047 | --includ=* | --inclu=* | --incl=* | --inc=*)
1048 includedir=$ac_optarg ;;
1049
1050 -infodir | --infodir | --infodi | --infod | --info | --inf)
1051 ac_prev=infodir ;;
1052 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1053 infodir=$ac_optarg ;;
1054
1055 -libdir | --libdir | --libdi | --libd)
1056 ac_prev=libdir ;;
1057 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1058 libdir=$ac_optarg ;;
1059
1060 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1061 | --libexe | --libex | --libe)
1062 ac_prev=libexecdir ;;
1063 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1064 | --libexe=* | --libex=* | --libe=*)
1065 libexecdir=$ac_optarg ;;
1066
1067 -localedir | --localedir | --localedi | --localed | --locale)
1068 ac_prev=localedir ;;
1069 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1070 localedir=$ac_optarg ;;
1071
1072 -localstatedir | --localstatedir | --localstatedi | --localstated \
1073 | --localstate | --localstat | --localsta | --localst | --locals)
1074 ac_prev=localstatedir ;;
1075 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1076 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1077 localstatedir=$ac_optarg ;;
1078
1079 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1080 ac_prev=mandir ;;
1081 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1082 mandir=$ac_optarg ;;
1083
1084 -nfp | --nfp | --nf)
1085 # Obsolete; use --without-fp.
1086 with_fp=no ;;
1087
1088 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1089 | --no-cr | --no-c | -n)
1090 no_create=yes ;;
1091
1092 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1093 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1094 no_recursion=yes ;;
1095
1096 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1097 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1098 | --oldin | --oldi | --old | --ol | --o)
1099 ac_prev=oldincludedir ;;
1100 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1101 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1102 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1103 oldincludedir=$ac_optarg ;;
1104
1105 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1106 ac_prev=prefix ;;
1107 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1108 prefix=$ac_optarg ;;
1109
1110 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1111 | --program-pre | --program-pr | --program-p)
1112 ac_prev=program_prefix ;;
1113 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1114 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1115 program_prefix=$ac_optarg ;;
1116
1117 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1118 | --program-suf | --program-su | --program-s)
1119 ac_prev=program_suffix ;;
1120 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1121 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1122 program_suffix=$ac_optarg ;;
1123
1124 -program-transform-name | --program-transform-name \
1125 | --program-transform-nam | --program-transform-na \
1126 | --program-transform-n | --program-transform- \
1127 | --program-transform | --program-transfor \
1128 | --program-transfo | --program-transf \
1129 | --program-trans | --program-tran \
1130 | --progr-tra | --program-tr | --program-t)
1131 ac_prev=program_transform_name ;;
1132 -program-transform-name=* | --program-transform-name=* \
1133 | --program-transform-nam=* | --program-transform-na=* \
1134 | --program-transform-n=* | --program-transform-=* \
1135 | --program-transform=* | --program-transfor=* \
1136 | --program-transfo=* | --program-transf=* \
1137 | --program-trans=* | --program-tran=* \
1138 | --progr-tra=* | --program-tr=* | --program-t=*)
1139 program_transform_name=$ac_optarg ;;
1140
1141 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1142 ac_prev=pdfdir ;;
1143 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1144 pdfdir=$ac_optarg ;;
1145
1146 -psdir | --psdir | --psdi | --psd | --ps)
1147 ac_prev=psdir ;;
1148 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1149 psdir=$ac_optarg ;;
1150
1151 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1152 | -silent | --silent | --silen | --sile | --sil)
1153 silent=yes ;;
1154
1155 -runstatedir | --runstatedir | --runstatedi | --runstated \
1156 | --runstate | --runstat | --runsta | --runst | --runs \
1157 | --run | --ru | --r)
1158 ac_prev=runstatedir ;;
1159 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1160 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1161 | --run=* | --ru=* | --r=*)
1162 runstatedir=$ac_optarg ;;
1163
1164 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1165 ac_prev=sbindir ;;
1166 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1167 | --sbi=* | --sb=*)
1168 sbindir=$ac_optarg ;;
1169
1170 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1171 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1172 | --sharedst | --shareds | --shared | --share | --shar \
1173 | --sha | --sh)
1174 ac_prev=sharedstatedir ;;
1175 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1176 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1177 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1178 | --sha=* | --sh=*)
1179 sharedstatedir=$ac_optarg ;;
1180
1181 -site | --site | --sit)
1182 ac_prev=site ;;
1183 -site=* | --site=* | --sit=*)
1184 site=$ac_optarg ;;
1185
1186 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1187 ac_prev=srcdir ;;
1188 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1189 srcdir=$ac_optarg ;;
1190
1191 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1192 | --syscon | --sysco | --sysc | --sys | --sy)
1193 ac_prev=sysconfdir ;;
1194 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1195 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1196 sysconfdir=$ac_optarg ;;
1197
1198 -target | --target | --targe | --targ | --tar | --ta | --t)
1199 ac_prev=target_alias ;;
1200 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1201 target_alias=$ac_optarg ;;
1202
1203 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1204 verbose=yes ;;
1205
1206 -version | --version | --versio | --versi | --vers | -V)
1207 ac_init_version=: ;;
1208
1209 -with-* | --with-*)
1210 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1211 # Reject names that are not valid shell variable names.
1212 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1213 as_fn_error $? "invalid package name: \`$ac_useropt'"
1214 ac_useropt_orig=$ac_useropt
1215 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1216 case $ac_user_opts in
1217 *"
1218 "with_$ac_useropt"
1219 "*) ;;
1220 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1221 ac_unrecognized_sep=', ';;
1222 esac
1223 eval with_$ac_useropt=\$ac_optarg ;;
1224
1225 -without-* | --without-*)
1226 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1227 # Reject names that are not valid shell variable names.
1228 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1229 as_fn_error $? "invalid package name: \`$ac_useropt'"
1230 ac_useropt_orig=$ac_useropt
1231 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1232 case $ac_user_opts in
1233 *"
1234 "with_$ac_useropt"
1235 "*) ;;
1236 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1237 ac_unrecognized_sep=', ';;
1238 esac
1239 eval with_$ac_useropt=no ;;
1240
1241 --x)
1242 # Obsolete; use --with-x.
1243 with_x=yes ;;
1244
1245 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1246 | --x-incl | --x-inc | --x-in | --x-i)
1247 ac_prev=x_includes ;;
1248 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1249 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1250 x_includes=$ac_optarg ;;
1251
1252 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1253 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1254 ac_prev=x_libraries ;;
1255 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1256 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1257 x_libraries=$ac_optarg ;;
1258
1259 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1260 Try \`$0 --help' for more information"
1261 ;;
1262
1263 *=*)
1264 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1265 # Reject names that are not valid shell variable names.
1266 case $ac_envvar in #(
1267 '' | [0-9]* | *[!_$as_cr_alnum]* )
1268 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1269 esac
1270 eval $ac_envvar=\$ac_optarg
1271 export $ac_envvar ;;
1272
1273 *)
1274 # FIXME: should be removed in autoconf 3.0.
1275 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1276 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1277 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1278 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1279 ;;
1280
1281 esac
1282 done
1283
1284 if test -n "$ac_prev"; then
1285 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1286 as_fn_error $? "missing argument to $ac_option"
1287 fi
1288
1289 if test -n "$ac_unrecognized_opts"; then
1290 case $enable_option_checking in
1291 no) ;;
1292 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1293 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1294 esac
1295 fi
1296
1297 # Check all directory arguments for consistency.
1298 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1299 datadir sysconfdir sharedstatedir localstatedir includedir \
1300 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1301 libdir localedir mandir runstatedir
1302 do
1303 eval ac_val=\$$ac_var
1304 # Remove trailing slashes.
1305 case $ac_val in
1306 */ )
1307 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1308 eval $ac_var=\$ac_val;;
1309 esac
1310 # Be sure to have absolute directory names.
1311 case $ac_val in
1312 [\\/$]* | ?:[\\/]* ) continue;;
1313 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1314 esac
1315 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1316 done
1317
1318 # There might be people who depend on the old broken behavior: `$host'
1319 # used to hold the argument of --host etc.
1320 # FIXME: To remove some day.
1321 build=$build_alias
1322 host=$host_alias
1323 target=$target_alias
1324
1325 # FIXME: To remove some day.
1326 if test "x$host_alias" != x; then
1327 if test "x$build_alias" = x; then
1328 cross_compiling=maybe
1329 elif test "x$build_alias" != "x$host_alias"; then
1330 cross_compiling=yes
1331 fi
1332 fi
1333
1334 ac_tool_prefix=
1335 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1336
1337 test "$silent" = yes && exec 6>/dev/null
1338
1339
1340 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1341 ac_ls_di=`ls -di .` &&
1342 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1343 as_fn_error $? "working directory cannot be determined"
1344 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1345 as_fn_error $? "pwd does not report name of working directory"
1346
1347
1348 # Find the source files, if location was not specified.
1349 if test -z "$srcdir"; then
1350 ac_srcdir_defaulted=yes
1351 # Try the directory containing this script, then the parent directory.
1352 ac_confdir=`$as_dirname -- "$as_myself" ||
1353 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1354 X"$as_myself" : 'X\(//\)[^/]' \| \
1355 X"$as_myself" : 'X\(//\)$' \| \
1356 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1357 printf "%s\n" X"$as_myself" |
1358 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1359 s//\1/
1360 q
1361 }
1362 /^X\(\/\/\)[^/].*/{
1363 s//\1/
1364 q
1365 }
1366 /^X\(\/\/\)$/{
1367 s//\1/
1368 q
1369 }
1370 /^X\(\/\).*/{
1371 s//\1/
1372 q
1373 }
1374 s/.*/./; q'`
1375 srcdir=$ac_confdir
1376 if test ! -r "$srcdir/$ac_unique_file"; then
1377 srcdir=..
1378 fi
1379 else
1380 ac_srcdir_defaulted=no
1381 fi
1382 if test ! -r "$srcdir/$ac_unique_file"; then
1383 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1384 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1385 fi
1386 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1387 ac_abs_confdir=`(
1388 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1389 pwd)`
1390 # When building in place, set srcdir=.
1391 if test "$ac_abs_confdir" = "$ac_pwd"; then
1392 srcdir=.
1393 fi
1394 # Remove unnecessary trailing slashes from srcdir.
1395 # Double slashes in file names in object file debugging info
1396 # mess up M-x gdb in Emacs.
1397 case $srcdir in
1398 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1399 esac
1400 for ac_var in $ac_precious_vars; do
1401 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1402 eval ac_env_${ac_var}_value=\$${ac_var}
1403 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1404 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1405 done
1406
1407 #
1408 # Report the --help message.
1409 #
1410 if test "$ac_init_help" = "long"; then
1411 # Omit some internal or obsolete options to make the list less imposing.
1412 # This message is too long to be a string in the A/UX 3.1 sh.
1413 cat <<_ACEOF
1414 \`configure' configures rsbtest 0.0 to adapt to many kinds of systems.
1415
1416 Usage: $0 [OPTION]... [VAR=VALUE]...
1417
1418 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1419 VAR=VALUE. See below for descriptions of some of the useful variables.
1420
1421 Defaults for the options are specified in brackets.
1422
1423 Configuration:
1424 -h, --help display this help and exit
1425 --help=short display options specific to this package
1426 --help=recursive display the short help of all the included packages
1427 -V, --version display version information and exit
1428 -q, --quiet, --silent do not print \`checking ...' messages
1429 --cache-file=FILE cache test results in FILE [disabled]
1430 -C, --config-cache alias for \`--cache-file=config.cache'
1431 -n, --no-create do not create output files
1432 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1433
1434 Installation directories:
1435 --prefix=PREFIX install architecture-independent files in PREFIX
1436 [$ac_default_prefix]
1437 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1438 [PREFIX]
1439
1440 By default, \`make install' will install all the files in
1441 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1442 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1443 for instance \`--prefix=\$HOME'.
1444
1445 For better control, use the options below.
1446
1447 Fine tuning of the installation directories:
1448 --bindir=DIR user executables [EPREFIX/bin]
1449 --sbindir=DIR system admin executables [EPREFIX/sbin]
1450 --libexecdir=DIR program executables [EPREFIX/libexec]
1451 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1452 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1453 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1454 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1455 --libdir=DIR object code libraries [EPREFIX/lib]
1456 --includedir=DIR C header files [PREFIX/include]
1457 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1458 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1459 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1460 --infodir=DIR info documentation [DATAROOTDIR/info]
1461 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1462 --mandir=DIR man documentation [DATAROOTDIR/man]
1463 --docdir=DIR documentation root [DATAROOTDIR/doc/rsbtest]
1464 --htmldir=DIR html documentation [DOCDIR]
1465 --dvidir=DIR dvi documentation [DOCDIR]
1466 --pdfdir=DIR pdf documentation [DOCDIR]
1467 --psdir=DIR ps documentation [DOCDIR]
1468 _ACEOF
1469
1470 cat <<\_ACEOF
1471
1472 Program names:
1473 --program-prefix=PREFIX prepend PREFIX to installed program names
1474 --program-suffix=SUFFIX append SUFFIX to installed program names
1475 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1476
1477 System types:
1478 --build=BUILD configure for building on BUILD [guessed]
1479 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1480 _ACEOF
1481 fi
1482
1483 if test -n "$ac_init_help"; then
1484 case $ac_init_help in
1485 short | recursive ) echo "Configuration of rsbtest 0.0:";;
1486 esac
1487 cat <<\_ACEOF
1488
1489 Optional Features:
1490 --disable-option-checking ignore unrecognized --enable/--with options
1491 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1492 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1493 --enable-silent-rules less verbose build output (undo: "make V=1")
1494 --disable-silent-rules verbose build output (undo: "make V=0")
1495 --enable-shared[=PKGS] build shared libraries [default=yes]
1496 --enable-static[=PKGS] build static libraries [default=yes]
1497 --enable-fast-install[=PKGS]
1498 optimize for fast installation [default=yes]
1499 --enable-dependency-tracking
1500 do not reject slow dependency extractors
1501 --disable-dependency-tracking
1502 speeds up one-time build
1503 --disable-libtool-lock avoid locking (might break parallel builds)
1504 --disable-openmp do not use OpenMP
1505 --enable-long-indices Enable long (64 bit) indices for rsb_coo_idx_t and
1506 rsb_nnz_idx_t (EXPERIMENTAL).
1507 --enable-preset Compile with preset options (developer only)
1508 --enable-minimal-librsbpp
1509 Enable only minimal librsbpp (EXPERIMENTAL).
1510 --enable-matrix-types Alias of the librsb equivalent option.
1511 --enable-programs Install rsbtest.
1512
1513 Optional Packages:
1514 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1515 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1516 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1517 both]
1518 --with-aix-soname=aix|svr4|both
1519 shared library versioning (aka "SONAME") variant to
1520 provide on AIX, [default=aix].
1521 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1522 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1523 compiler's sysroot if not specified).
1524 --with-librsbpp Link to librsb/librsbpp build dir when building in a
1525 subdir (EXPERIMENTAL, developer only).
1526 --with-rsbtest Link to librsb build dir when building in a subdir
1527 (EXPERIMENTAL, developer only).
1528 --with-mkl Specify if MKL shall be used if detected
1529 (--without-mkl to disable).
1530
1531 Some influential environment variables:
1532 CC C compiler command
1533 CFLAGS C compiler flags
1534 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1535 nonstandard directory <lib dir>
1536 LIBS libraries to pass to the linker, e.g. -l<library>
1537 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1538 you have headers in a nonstandard directory <include dir>
1539 LT_SYS_LIBRARY_PATH
1540 User-defined run-time library search path.
1541 CXX C++ compiler command
1542 CXXFLAGS C++ compiler flags
1543 CXXCPP C++ preprocessor
1544 LIBRSB__BASE_DIR
1545 Reserved for use by librsb subpackages: do not set this.
1546 LIBRSB_CONFIG
1547 Path to a librsb-config of a valid librsb installation.
1548 RSBTEST_CPPFLAGS
1549 Specific CPPFLAGS.
1550
1551 Use these variables to override the choices made by `configure' or to help
1552 it to find libraries and programs with nonstandard names/locations.
1553
1554 Report bugs to <michelemartone_AT_users_DOT_sourceforge_DOT_net>.
1555 _ACEOF
1556 ac_status=$?
1557 fi
1558
1559 if test "$ac_init_help" = "recursive"; then
1560 # If there are subdirs, report their specific --help.
1561 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1562 test -d "$ac_dir" ||
1563 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1564 continue
1565 ac_builddir=.
1566
1567 case "$ac_dir" in
1568 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1569 *)
1570 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1571 # A ".." for each directory in $ac_dir_suffix.
1572 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1573 case $ac_top_builddir_sub in
1574 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1575 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1576 esac ;;
1577 esac
1578 ac_abs_top_builddir=$ac_pwd
1579 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1580 # for backward compatibility:
1581 ac_top_builddir=$ac_top_build_prefix
1582
1583 case $srcdir in
1584 .) # We are building in place.
1585 ac_srcdir=.
1586 ac_top_srcdir=$ac_top_builddir_sub
1587 ac_abs_top_srcdir=$ac_pwd ;;
1588 [\\/]* | ?:[\\/]* ) # Absolute name.
1589 ac_srcdir=$srcdir$ac_dir_suffix;
1590 ac_top_srcdir=$srcdir
1591 ac_abs_top_srcdir=$srcdir ;;
1592 *) # Relative name.
1593 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1594 ac_top_srcdir=$ac_top_build_prefix$srcdir
1595 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1596 esac
1597 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1598
1599 cd "$ac_dir" || { ac_status=$?; continue; }
1600 # Check for configure.gnu first; this name is used for a wrapper for
1601 # Metaconfig's "Configure" on case-insensitive file systems.
1602 if test -f "$ac_srcdir/configure.gnu"; then
1603 echo &&
1604 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1605 elif test -f "$ac_srcdir/configure"; then
1606 echo &&
1607 $SHELL "$ac_srcdir/configure" --help=recursive
1608 else
1609 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1610 fi || ac_status=$?
1611 cd "$ac_pwd" || { ac_status=$?; break; }
1612 done
1613 fi
1614
1615 test -n "$ac_init_help" && exit $ac_status
1616 if $ac_init_version; then
1617 cat <<\_ACEOF
1618 rsbtest configure 0.0
1619 generated by GNU Autoconf 2.71
1620
1621 Copyright (C) 2021 Free Software Foundation, Inc.
1622 This configure script is free software; the Free Software Foundation
1623 gives unlimited permission to copy, distribute and modify it.
1624
1625 Copyright (c) 2017-2022, Michele Martone
1626 _ACEOF
1627 exit
1628 fi
1629
1630 ## ------------------------ ##
1631 ## Autoconf initialization. ##
1632 ## ------------------------ ##
1633
1634 # ac_fn_c_try_compile LINENO
1635 # --------------------------
1636 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1637 ac_fn_c_try_compile ()
1638 {
1639 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1640 rm -f conftest.$ac_objext conftest.beam
1641 if { { ac_try="$ac_compile"
1642 case "(($ac_try" in
1643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1644 *) ac_try_echo=$ac_try;;
1645 esac
1646 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1647 printf "%s\n" "$ac_try_echo"; } >&5
1648 (eval "$ac_compile") 2>conftest.err
1649 ac_status=$?
1650 if test -s conftest.err; then
1651 grep -v '^ *+' conftest.err >conftest.er1
1652 cat conftest.er1 >&5
1653 mv -f conftest.er1 conftest.err
1654 fi
1655 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1656 test $ac_status = 0; } && {
1657 test -z "$ac_c_werror_flag" ||
1658 test ! -s conftest.err
1659 } && test -s conftest.$ac_objext
1660 then :
1661 ac_retval=0
1662 else $as_nop
1663 printf "%s\n" "$as_me: failed program was:" >&5
1664 sed 's/^/| /' conftest.$ac_ext >&5
1665
1666 ac_retval=1
1667 fi
1668 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1669 as_fn_set_status $ac_retval
1670
1671 } # ac_fn_c_try_compile
1672
1673 # ac_fn_c_try_link LINENO
1674 # -----------------------
1675 # Try to link conftest.$ac_ext, and return whether this succeeded.
1676 ac_fn_c_try_link ()
1677 {
1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1680 if { { ac_try="$ac_link"
1681 case "(($ac_try" in
1682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683 *) ac_try_echo=$ac_try;;
1684 esac
1685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686 printf "%s\n" "$ac_try_echo"; } >&5
1687 (eval "$ac_link") 2>conftest.err
1688 ac_status=$?
1689 if test -s conftest.err; then
1690 grep -v '^ *+' conftest.err >conftest.er1
1691 cat conftest.er1 >&5
1692 mv -f conftest.er1 conftest.err
1693 fi
1694 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695 test $ac_status = 0; } && {
1696 test -z "$ac_c_werror_flag" ||
1697 test ! -s conftest.err
1698 } && test -s conftest$ac_exeext && {
1699 test "$cross_compiling" = yes ||
1700 test -x conftest$ac_exeext
1701 }
1702 then :
1703 ac_retval=0
1704 else $as_nop
1705 printf "%s\n" "$as_me: failed program was:" >&5
1706 sed 's/^/| /' conftest.$ac_ext >&5
1707
1708 ac_retval=1
1709 fi
1710 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1711 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1712 # interfere with the next link command; also delete a directory that is
1713 # left behind by Apple's compiler. We do this before executing the actions.
1714 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1715 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1716 as_fn_set_status $ac_retval
1717
1718 } # ac_fn_c_try_link
1719
1720 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1721 # -------------------------------------------------------
1722 # Tests whether HEADER exists and can be compiled using the include files in
1723 # INCLUDES, setting the cache variable VAR accordingly.
1724 ac_fn_c_check_header_compile ()
1725 {
1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1728 printf %s "checking for $2... " >&6; }
1729 if eval test \${$3+y}
1730 then :
1731 printf %s "(cached) " >&6
1732 else $as_nop
1733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1734 /* end confdefs.h. */
1735 $4
1736 #include <$2>
1737 _ACEOF
1738 if ac_fn_c_try_compile "$LINENO"
1739 then :
1740 eval "$3=yes"
1741 else $as_nop
1742 eval "$3=no"
1743 fi
1744 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1745 fi
1746 eval ac_res=\$$3
1747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1748 printf "%s\n" "$ac_res" >&6; }
1749 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1750
1751 } # ac_fn_c_check_header_compile
1752
1753 # ac_fn_c_check_func LINENO FUNC VAR
1754 # ----------------------------------
1755 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1756 ac_fn_c_check_func ()
1757 {
1758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1760 printf %s "checking for $2... " >&6; }
1761 if eval test \${$3+y}
1762 then :
1763 printf %s "(cached) " >&6
1764 else $as_nop
1765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1766 /* end confdefs.h. */
1767 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1768 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1769 #define $2 innocuous_$2
1770
1771 /* System header to define __stub macros and hopefully few prototypes,
1772 which can conflict with char $2 (); below. */
1773
1774 #include <limits.h>
1775 #undef $2
1776
1777 /* Override any GCC internal prototype to avoid an error.
1778 Use char because int might match the return type of a GCC
1779 builtin and then its argument prototype would still apply. */
1780 #ifdef __cplusplus
1781 extern "C"
1782 #endif
1783 char $2 ();
1784 /* The GNU C library defines this for functions which it implements
1785 to always fail with ENOSYS. Some functions are actually named
1786 something starting with __ and the normal name is an alias. */
1787 #if defined __stub_$2 || defined __stub___$2
1788 choke me
1789 #endif
1790
1791 int
1792 main (void)
1793 {
1794 return $2 ();
1795 ;
1796 return 0;
1797 }
1798 _ACEOF
1799 if ac_fn_c_try_link "$LINENO"
1800 then :
1801 eval "$3=yes"
1802 else $as_nop
1803 eval "$3=no"
1804 fi
1805 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1806 conftest$ac_exeext conftest.$ac_ext
1807 fi
1808 eval ac_res=\$$3
1809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1810 printf "%s\n" "$ac_res" >&6; }
1811 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1812
1813 } # ac_fn_c_check_func
1814
1815 # ac_fn_cxx_try_compile LINENO
1816 # ----------------------------
1817 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1818 ac_fn_cxx_try_compile ()
1819 {
1820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821 rm -f conftest.$ac_objext conftest.beam
1822 if { { ac_try="$ac_compile"
1823 case "(($ac_try" in
1824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1825 *) ac_try_echo=$ac_try;;
1826 esac
1827 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1828 printf "%s\n" "$ac_try_echo"; } >&5
1829 (eval "$ac_compile") 2>conftest.err
1830 ac_status=$?
1831 if test -s conftest.err; then
1832 grep -v '^ *+' conftest.err >conftest.er1
1833 cat conftest.er1 >&5
1834 mv -f conftest.er1 conftest.err
1835 fi
1836 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1837 test $ac_status = 0; } && {
1838 test -z "$ac_cxx_werror_flag" ||
1839 test ! -s conftest.err
1840 } && test -s conftest.$ac_objext
1841 then :
1842 ac_retval=0
1843 else $as_nop
1844 printf "%s\n" "$as_me: failed program was:" >&5
1845 sed 's/^/| /' conftest.$ac_ext >&5
1846
1847 ac_retval=1
1848 fi
1849 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1850 as_fn_set_status $ac_retval
1851
1852 } # ac_fn_cxx_try_compile
1853
1854 # ac_fn_cxx_try_cpp LINENO
1855 # ------------------------
1856 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1857 ac_fn_cxx_try_cpp ()
1858 {
1859 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1860 if { { ac_try="$ac_cpp conftest.$ac_ext"
1861 case "(($ac_try" in
1862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1863 *) ac_try_echo=$ac_try;;
1864 esac
1865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1866 printf "%s\n" "$ac_try_echo"; } >&5
1867 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1868 ac_status=$?
1869 if test -s conftest.err; then
1870 grep -v '^ *+' conftest.err >conftest.er1
1871 cat conftest.er1 >&5
1872 mv -f conftest.er1 conftest.err
1873 fi
1874 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1875 test $ac_status = 0; } > conftest.i && {
1876 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1877 test ! -s conftest.err
1878 }
1879 then :
1880 ac_retval=0
1881 else $as_nop
1882 printf "%s\n" "$as_me: failed program was:" >&5
1883 sed 's/^/| /' conftest.$ac_ext >&5
1884
1885 ac_retval=1
1886 fi
1887 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1888 as_fn_set_status $ac_retval
1889
1890 } # ac_fn_cxx_try_cpp
1891
1892 # ac_fn_cxx_try_link LINENO
1893 # -------------------------
1894 # Try to link conftest.$ac_ext, and return whether this succeeded.
1895 ac_fn_cxx_try_link ()
1896 {
1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1899 if { { ac_try="$ac_link"
1900 case "(($ac_try" in
1901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1902 *) ac_try_echo=$ac_try;;
1903 esac
1904 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1905 printf "%s\n" "$ac_try_echo"; } >&5
1906 (eval "$ac_link") 2>conftest.err
1907 ac_status=$?
1908 if test -s conftest.err; then
1909 grep -v '^ *+' conftest.err >conftest.er1
1910 cat conftest.er1 >&5
1911 mv -f conftest.er1 conftest.err
1912 fi
1913 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1914 test $ac_status = 0; } && {
1915 test -z "$ac_cxx_werror_flag" ||
1916 test ! -s conftest.err
1917 } && test -s conftest$ac_exeext && {
1918 test "$cross_compiling" = yes ||
1919 test -x conftest$ac_exeext
1920 }
1921 then :
1922 ac_retval=0
1923 else $as_nop
1924 printf "%s\n" "$as_me: failed program was:" >&5
1925 sed 's/^/| /' conftest.$ac_ext >&5
1926
1927 ac_retval=1
1928 fi
1929 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1930 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1931 # interfere with the next link command; also delete a directory that is
1932 # left behind by Apple's compiler. We do this before executing the actions.
1933 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1934 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935 as_fn_set_status $ac_retval
1936
1937 } # ac_fn_cxx_try_link
1938
1939 # ac_fn_cxx_try_run LINENO
1940 # ------------------------
1941 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1942 # executables *can* be run.
1943 ac_fn_cxx_try_run ()
1944 {
1945 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1946 if { { ac_try="$ac_link"
1947 case "(($ac_try" in
1948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1949 *) ac_try_echo=$ac_try;;
1950 esac
1951 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1952 printf "%s\n" "$ac_try_echo"; } >&5
1953 (eval "$ac_link") 2>&5
1954 ac_status=$?
1955 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1956 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1957 { { case "(($ac_try" in
1958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1959 *) ac_try_echo=$ac_try;;
1960 esac
1961 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1962 printf "%s\n" "$ac_try_echo"; } >&5
1963 (eval "$ac_try") 2>&5
1964 ac_status=$?
1965 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1966 test $ac_status = 0; }; }
1967 then :
1968 ac_retval=0
1969 else $as_nop
1970 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1971 printf "%s\n" "$as_me: failed program was:" >&5
1972 sed 's/^/| /' conftest.$ac_ext >&5
1973
1974 ac_retval=$ac_status
1975 fi
1976 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1977 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1978 as_fn_set_status $ac_retval
1979
1980 } # ac_fn_cxx_try_run
1981
1982 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1983 # ---------------------------------------------------------
1984 # Tests whether HEADER exists and can be compiled using the include files in
1985 # INCLUDES, setting the cache variable VAR accordingly.
1986 ac_fn_cxx_check_header_compile ()
1987 {
1988 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1990 printf %s "checking for $2... " >&6; }
1991 if eval test \${$3+y}
1992 then :
1993 printf %s "(cached) " >&6
1994 else $as_nop
1995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1996 /* end confdefs.h. */
1997 $4
1998 #include <$2>
1999 _ACEOF
2000 if ac_fn_cxx_try_compile "$LINENO"
2001 then :
2002 eval "$3=yes"
2003 else $as_nop
2004 eval "$3=no"
2005 fi
2006 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2007 fi
2008 eval ac_res=\$$3
2009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2010 printf "%s\n" "$ac_res" >&6; }
2011 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2012
2013 } # ac_fn_cxx_check_header_compile
2014
2015 # ac_fn_cxx_check_func LINENO FUNC VAR
2016 # ------------------------------------
2017 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2018 ac_fn_cxx_check_func ()
2019 {
2020 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2022 printf %s "checking for $2... " >&6; }
2023 if eval test \${$3+y}
2024 then :
2025 printf %s "(cached) " >&6
2026 else $as_nop
2027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h. */
2029 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2030 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2031 #define $2 innocuous_$2
2032
2033 /* System header to define __stub macros and hopefully few prototypes,
2034 which can conflict with char $2 (); below. */
2035
2036 #include <limits.h>
2037 #undef $2
2038
2039 /* Override any GCC internal prototype to avoid an error.
2040 Use char because int might match the return type of a GCC
2041 builtin and then its argument prototype would still apply. */
2042 #ifdef __cplusplus
2043 extern "C"
2044 #endif
2045 char $2 ();
2046 /* The GNU C library defines this for functions which it implements
2047 to always fail with ENOSYS. Some functions are actually named
2048 something starting with __ and the normal name is an alias. */
2049 #if defined __stub_$2 || defined __stub___$2
2050 choke me
2051 #endif
2052
2053 int
2054 main (void)
2055 {
2056 return $2 ();
2057 ;
2058 return 0;
2059 }
2060 _ACEOF
2061 if ac_fn_cxx_try_link "$LINENO"
2062 then :
2063 eval "$3=yes"
2064 else $as_nop
2065 eval "$3=no"
2066 fi
2067 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2068 conftest$ac_exeext conftest.$ac_ext
2069 fi
2070 eval ac_res=\$$3
2071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2072 printf "%s\n" "$ac_res" >&6; }
2073 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2074
2075 } # ac_fn_cxx_check_func
2076 ac_configure_args_raw=
2077 for ac_arg
2078 do
2079 case $ac_arg in
2080 *\'*)
2081 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2082 esac
2083 as_fn_append ac_configure_args_raw " '$ac_arg'"
2084 done
2085
2086 case $ac_configure_args_raw in
2087 *$as_nl*)
2088 ac_safe_unquote= ;;
2089 *)
2090 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2091 ac_unsafe_a="$ac_unsafe_z#~"
2092 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2093 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2094 esac
2095
2096 cat >config.log <<_ACEOF
2097 This file contains any messages produced by compilers while
2098 running configure, to aid debugging if configure makes a mistake.
2099
2100 It was created by rsbtest $as_me 0.0, which was
2101 generated by GNU Autoconf 2.71. Invocation command line was
2102
2103 $ $0$ac_configure_args_raw
2104
2105 _ACEOF
2106 exec 5>>config.log
2107 {
2108 cat <<_ASUNAME
2109 ## --------- ##
2110 ## Platform. ##
2111 ## --------- ##
2112
2113 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2114 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2115 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2116 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2117 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2118
2119 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2120 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2121
2122 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2123 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2124 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2125 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2126 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2127 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2128 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2129
2130 _ASUNAME
2131
2132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2133 for as_dir in $PATH
2134 do
2135 IFS=$as_save_IFS
2136 case $as_dir in #(((
2137 '') as_dir=./ ;;
2138 */) ;;
2139 *) as_dir=$as_dir/ ;;
2140 esac
2141 printf "%s\n" "PATH: $as_dir"
2142 done
2143 IFS=$as_save_IFS
2144
2145 } >&5
2146
2147 cat >&5 <<_ACEOF
2148
2149
2150 ## ----------- ##
2151 ## Core tests. ##
2152 ## ----------- ##
2153
2154 _ACEOF
2155
2156
2157 # Keep a trace of the command line.
2158 # Strip out --no-create and --no-recursion so they do not pile up.
2159 # Strip out --silent because we don't want to record it for future runs.
2160 # Also quote any args containing shell meta-characters.
2161 # Make two passes to allow for proper duplicate-argument suppression.
2162 ac_configure_args=
2163 ac_configure_args0=
2164 ac_configure_args1=
2165 ac_must_keep_next=false
2166 for ac_pass in 1 2
2167 do
2168 for ac_arg
2169 do
2170 case $ac_arg in
2171 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2172 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2173 | -silent | --silent | --silen | --sile | --sil)
2174 continue ;;
2175 *\'*)
2176 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2177 esac
2178 case $ac_pass in
2179 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2180 2)
2181 as_fn_append ac_configure_args1 " '$ac_arg'"
2182 if test $ac_must_keep_next = true; then
2183 ac_must_keep_next=false # Got value, back to normal.
2184 else
2185 case $ac_arg in
2186 *=* | --config-cache | -C | -disable-* | --disable-* \
2187 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2188 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2189 | -with-* | --with-* | -without-* | --without-* | --x)
2190 case "$ac_configure_args0 " in
2191 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2192 esac
2193 ;;
2194 -* ) ac_must_keep_next=true ;;
2195 esac
2196 fi
2197 as_fn_append ac_configure_args " '$ac_arg'"
2198 ;;
2199 esac
2200 done
2201 done
2202 { ac_configure_args0=; unset ac_configure_args0;}
2203 { ac_configure_args1=; unset ac_configure_args1;}
2204
2205 # When interrupted or exit'd, cleanup temporary files, and complete
2206 # config.log. We remove comments because anyway the quotes in there
2207 # would cause problems or look ugly.
2208 # WARNING: Use '\'' to represent an apostrophe within the trap.
2209 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2210 trap 'exit_status=$?
2211 # Sanitize IFS.
2212 IFS=" "" $as_nl"
2213 # Save into config.log some information that might help in debugging.
2214 {
2215 echo
2216
2217 printf "%s\n" "## ---------------- ##
2218 ## Cache variables. ##
2219 ## ---------------- ##"
2220 echo
2221 # The following way of writing the cache mishandles newlines in values,
2222 (
2223 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2224 eval ac_val=\$$ac_var
2225 case $ac_val in #(
2226 *${as_nl}*)
2227 case $ac_var in #(
2228 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2229 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2230 esac
2231 case $ac_var in #(
2232 _ | IFS | as_nl) ;; #(
2233 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2234 *) { eval $ac_var=; unset $ac_var;} ;;
2235 esac ;;
2236 esac
2237 done
2238 (set) 2>&1 |
2239 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2240 *${as_nl}ac_space=\ *)
2241 sed -n \
2242 "s/'\''/'\''\\\\'\'''\''/g;
2243 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2244 ;; #(
2245 *)
2246 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2247 ;;
2248 esac |
2249 sort
2250 )
2251 echo
2252
2253 printf "%s\n" "## ----------------- ##
2254 ## Output variables. ##
2255 ## ----------------- ##"
2256 echo
2257 for ac_var in $ac_subst_vars
2258 do
2259 eval ac_val=\$$ac_var
2260 case $ac_val in
2261 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2262 esac
2263 printf "%s\n" "$ac_var='\''$ac_val'\''"
2264 done | sort
2265 echo
2266
2267 if test -n "$ac_subst_files"; then
2268 printf "%s\n" "## ------------------- ##
2269 ## File substitutions. ##
2270 ## ------------------- ##"
2271 echo
2272 for ac_var in $ac_subst_files
2273 do
2274 eval ac_val=\$$ac_var
2275 case $ac_val in
2276 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2277 esac
2278 printf "%s\n" "$ac_var='\''$ac_val'\''"
2279 done | sort
2280 echo
2281 fi
2282
2283 if test -s confdefs.h; then
2284 printf "%s\n" "## ----------- ##
2285 ## confdefs.h. ##
2286 ## ----------- ##"
2287 echo
2288 cat confdefs.h
2289 echo
2290 fi
2291 test "$ac_signal" != 0 &&
2292 printf "%s\n" "$as_me: caught signal $ac_signal"
2293 printf "%s\n" "$as_me: exit $exit_status"
2294 } >&5
2295 rm -f core *.core core.conftest.* &&
2296 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2297 exit $exit_status
2298 ' 0
2299 for ac_signal in 1 2 13 15; do
2300 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2301 done
2302 ac_signal=0
2303
2304 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2305 rm -f -r conftest* confdefs.h
2306
2307 printf "%s\n" "/* confdefs.h */" > confdefs.h
2308
2309 # Predefined preprocessor variables.
2310
2311 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2312
2313 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2314
2315 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2316
2317 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2318
2319 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2320
2321 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2322
2323
2324 # Let the site file select an alternate cache file if it wants to.
2325 # Prefer an explicitly selected file to automatically selected ones.
2326 if test -n "$CONFIG_SITE"; then
2327 ac_site_files="$CONFIG_SITE"
2328 elif test "x$prefix" != xNONE; then
2329 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2330 else
2331 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2332 fi
2333
2334 for ac_site_file in $ac_site_files
2335 do
2336 case $ac_site_file in #(
2337 */*) :
2338 ;; #(
2339 *) :
2340 ac_site_file=./$ac_site_file ;;
2341 esac
2342 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2344 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2345 sed 's/^/| /' "$ac_site_file" >&5
2346 . "$ac_site_file" \
2347 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2348 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2349 as_fn_error $? "failed to load site script $ac_site_file
2350 See \`config.log' for more details" "$LINENO" 5; }
2351 fi
2352 done
2353
2354 if test -r "$cache_file"; then
2355 # Some versions of bash will fail to source /dev/null (special files
2356 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2357 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2359 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2360 case $cache_file in
2361 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2362 *) . "./$cache_file";;
2363 esac
2364 fi
2365 else
2366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2367 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2368 >$cache_file
2369 fi
2370
2371 # Test code for whether the C compiler supports C89 (global declarations)
2372 ac_c_conftest_c89_globals='
2373 /* Does the compiler advertise C89 conformance?
2374 Do not test the value of __STDC__, because some compilers set it to 0
2375 while being otherwise adequately conformant. */
2376 #if !defined __STDC__
2377 # error "Compiler does not advertise C89 conformance"
2378 #endif
2379
2380 #include <stddef.h>
2381 #include <stdarg.h>
2382 struct stat;
2383 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2384 struct buf { int x; };
2385 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2386 static char *e (p, i)
2387 char **p;
2388 int i;
2389 {
2390 return p[i];
2391 }
2392 static char *f (char * (*g) (char **, int), char **p, ...)
2393 {
2394 char *s;
2395 va_list v;
2396 va_start (v,p);
2397 s = g (p, va_arg (v,int));
2398 va_end (v);
2399 return s;
2400 }
2401
2402 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2403 function prototypes and stuff, but not \xHH hex character constants.
2404 These do not provoke an error unfortunately, instead are silently treated
2405 as an "x". The following induces an error, until -std is added to get
2406 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2407 array size at least. It is necessary to write \x00 == 0 to get something
2408 that is true only with -std. */
2409 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2410
2411 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2412 inside strings and character constants. */
2413 #define FOO(x) '\''x'\''
2414 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2415
2416 int test (int i, double x);
2417 struct s1 {int (*f) (int a);};
2418 struct s2 {int (*f) (double a);};
2419 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2420 int, int);'
2421
2422 # Test code for whether the C compiler supports C89 (body of main).
2423 ac_c_conftest_c89_main='
2424 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2425 '
2426
2427 # Test code for whether the C compiler supports C99 (global declarations)
2428 ac_c_conftest_c99_globals='
2429 // Does the compiler advertise C99 conformance?
2430 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2431 # error "Compiler does not advertise C99 conformance"
2432 #endif
2433
2434 #include <stdbool.h>
2435 extern int puts (const char *);
2436 extern int printf (const char *, ...);
2437 extern int dprintf (int, const char *, ...);
2438 extern void *malloc (size_t);
2439
2440 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2441 // dprintf is used instead of fprintf to avoid needing to declare
2442 // FILE and stderr.
2443 #define debug(...) dprintf (2, __VA_ARGS__)
2444 #define showlist(...) puts (#__VA_ARGS__)
2445 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2446 static void
2447 test_varargs_macros (void)
2448 {
2449 int x = 1234;
2450 int y = 5678;
2451 debug ("Flag");
2452 debug ("X = %d\n", x);
2453 showlist (The first, second, and third items.);
2454 report (x>y, "x is %d but y is %d", x, y);
2455 }
2456
2457 // Check long long types.
2458 #define BIG64 18446744073709551615ull
2459 #define BIG32 4294967295ul
2460 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2461 #if !BIG_OK
2462 #error "your preprocessor is broken"
2463 #endif
2464 #if BIG_OK
2465 #else
2466 #error "your preprocessor is broken"
2467 #endif
2468 static long long int bignum = -9223372036854775807LL;
2469 static unsigned long long int ubignum = BIG64;
2470
2471 struct incomplete_array
2472 {
2473 int datasize;
2474 double data[];
2475 };
2476
2477 struct named_init {
2478 int number;
2479 const wchar_t *name;
2480 double average;
2481 };
2482
2483 typedef const char *ccp;
2484
2485 static inline int
2486 test_restrict (ccp restrict text)
2487 {
2488 // See if C++-style comments work.
2489 // Iterate through items via the restricted pointer.
2490 // Also check for declarations in for loops.
2491 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2492 continue;
2493 return 0;
2494 }
2495
2496 // Check varargs and va_copy.
2497 static bool
2498 test_varargs (const char *format, ...)
2499 {
2500 va_list args;
2501 va_start (args, format);
2502 va_list args_copy;
2503 va_copy (args_copy, args);
2504
2505 const char *str = "";
2506 int number = 0;
2507 float fnumber = 0;
2508
2509 while (*format)
2510 {
2511 switch (*format++)
2512 {
2513 case '\''s'\'': // string
2514 str = va_arg (args_copy, const char *);
2515 break;
2516 case '\''d'\'': // int
2517 number = va_arg (args_copy, int);
2518 break;
2519 case '\''f'\'': // float
2520 fnumber = va_arg (args_copy, double);
2521 break;
2522 default:
2523 break;
2524 }
2525 }
2526 va_end (args_copy);
2527 va_end (args);
2528
2529 return *str && number && fnumber;
2530 }
2531 '
2532
2533 # Test code for whether the C compiler supports C99 (body of main).
2534 ac_c_conftest_c99_main='
2535 // Check bool.
2536 _Bool success = false;
2537 success |= (argc != 0);
2538
2539 // Check restrict.
2540 if (test_restrict ("String literal") == 0)
2541 success = true;
2542 char *restrict newvar = "Another string";
2543
2544 // Check varargs.
2545 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2546 test_varargs_macros ();
2547
2548 // Check flexible array members.
2549 struct incomplete_array *ia =
2550 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2551 ia->datasize = 10;
2552 for (int i = 0; i < ia->datasize; ++i)
2553 ia->data[i] = i * 1.234;
2554
2555 // Check named initializers.
2556 struct named_init ni = {
2557 .number = 34,
2558 .name = L"Test wide string",
2559 .average = 543.34343,
2560 };
2561
2562 ni.number = 58;
2563
2564 int dynamic_array[ni.number];
2565 dynamic_array[0] = argv[0][0];
2566 dynamic_array[ni.number - 1] = 543;
2567
2568 // work around unused variable warnings
2569 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2570 || dynamic_array[ni.number - 1] != 543);
2571 '
2572
2573 # Test code for whether the C compiler supports C11 (global declarations)
2574 ac_c_conftest_c11_globals='
2575 // Does the compiler advertise C11 conformance?
2576 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2577 # error "Compiler does not advertise C11 conformance"
2578 #endif
2579
2580 // Check _Alignas.
2581 char _Alignas (double) aligned_as_double;
2582 char _Alignas (0) no_special_alignment;
2583 extern char aligned_as_int;
2584 char _Alignas (0) _Alignas (int) aligned_as_int;
2585
2586 // Check _Alignof.
2587 enum
2588 {
2589 int_alignment = _Alignof (int),
2590 int_array_alignment = _Alignof (int[100]),
2591 char_alignment = _Alignof (char)
2592 };
2593 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2594
2595 // Check _Noreturn.
2596 int _Noreturn does_not_return (void) { for (;;) continue; }
2597
2598 // Check _Static_assert.
2599 struct test_static_assert
2600 {
2601 int x;
2602 _Static_assert (sizeof (int) <= sizeof (long int),
2603 "_Static_assert does not work in struct");
2604 long int y;
2605 };
2606
2607 // Check UTF-8 literals.
2608 #define u8 syntax error!
2609 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2610
2611 // Check duplicate typedefs.
2612 typedef long *long_ptr;
2613 typedef long int *long_ptr;
2614 typedef long_ptr long_ptr;
2615
2616 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2617 struct anonymous
2618 {
2619 union {
2620 struct { int i; int j; };
2621 struct { int k; long int l; } w;
2622 };
2623 int m;
2624 } v1;
2625 '
2626
2627 # Test code for whether the C compiler supports C11 (body of main).
2628 ac_c_conftest_c11_main='
2629 _Static_assert ((offsetof (struct anonymous, i)
2630 == offsetof (struct anonymous, w.k)),
2631 "Anonymous union alignment botch");
2632 v1.i = 2;
2633 v1.w.k = 5;
2634 ok |= v1.i != 5;
2635 '
2636
2637 # Test code for whether the C compiler supports C11 (complete).
2638 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2639 ${ac_c_conftest_c99_globals}
2640 ${ac_c_conftest_c11_globals}
2641
2642 int
2643 main (int argc, char **argv)
2644 {
2645 int ok = 0;
2646 ${ac_c_conftest_c89_main}
2647 ${ac_c_conftest_c99_main}
2648 ${ac_c_conftest_c11_main}
2649 return ok;
2650 }
2651 "
2652
2653 # Test code for whether the C compiler supports C99 (complete).
2654 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2655 ${ac_c_conftest_c99_globals}
2656
2657 int
2658 main (int argc, char **argv)
2659 {
2660 int ok = 0;
2661 ${ac_c_conftest_c89_main}
2662 ${ac_c_conftest_c99_main}
2663 return ok;
2664 }
2665 "
2666
2667 # Test code for whether the C compiler supports C89 (complete).
2668 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2669
2670 int
2671 main (int argc, char **argv)
2672 {
2673 int ok = 0;
2674 ${ac_c_conftest_c89_main}
2675 return ok;
2676 }
2677 "
2678
2679 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2680 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2681 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2682 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2683 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2684 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2685 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2686 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2687 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2688 # Test code for whether the C++ compiler supports C++98 (global declarations)
2689 ac_cxx_conftest_cxx98_globals='
2690 // Does the compiler advertise C++98 conformance?
2691 #if !defined __cplusplus || __cplusplus < 199711L
2692 # error "Compiler does not advertise C++98 conformance"
2693 #endif
2694
2695 // These inclusions are to reject old compilers that
2696 // lack the unsuffixed header files.
2697 #include <cstdlib>
2698 #include <exception>
2699
2700 // <cassert> and <cstring> are *not* freestanding headers in C++98.
2701 extern void assert (int);
2702 namespace std {
2703 extern int strcmp (const char *, const char *);
2704 }
2705
2706 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
2707 using std::exception;
2708 using std::strcmp;
2709
2710 namespace {
2711
2712 void test_exception_syntax()
2713 {
2714 try {
2715 throw "test";
2716 } catch (const char *s) {
2717 // Extra parentheses suppress a warning when building autoconf itself,
2718 // due to lint rules shared with more typical C programs.
2719 assert (!(strcmp) (s, "test"));
2720 }
2721 }
2722
2723 template <typename T> struct test_template
2724 {
2725 T const val;
2726 explicit test_template(T t) : val(t) {}
2727 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2728 };
2729
2730 } // anonymous namespace
2731 '
2732
2733 # Test code for whether the C++ compiler supports C++98 (body of main)
2734 ac_cxx_conftest_cxx98_main='
2735 assert (argc);
2736 assert (! argv[0]);
2737 {
2738 test_exception_syntax ();
2739 test_template<double> tt (2.0);
2740 assert (tt.add (4) == 6.0);
2741 assert (true && !false);
2742 }
2743 '
2744
2745 # Test code for whether the C++ compiler supports C++11 (global declarations)
2746 ac_cxx_conftest_cxx11_globals='
2747 // Does the compiler advertise C++ 2011 conformance?
2748 #if !defined __cplusplus || __cplusplus < 201103L
2749 # error "Compiler does not advertise C++11 conformance"
2750 #endif
2751
2752 namespace cxx11test
2753 {
2754 constexpr int get_val() { return 20; }
2755
2756 struct testinit
2757 {
2758 int i;
2759 double d;
2760 };
2761
2762 class delegate
2763 {
2764 public:
2765 delegate(int n) : n(n) {}
2766 delegate(): delegate(2354) {}
2767
2768 virtual int getval() { return this->n; };
2769 protected:
2770 int n;
2771 };
2772
2773 class overridden : public delegate
2774 {
2775 public:
2776 overridden(int n): delegate(n) {}
2777 virtual int getval() override final { return this->n * 2; }
2778 };
2779
2780 class nocopy
2781 {
2782 public:
2783 nocopy(int i): i(i) {}
2784 nocopy() = default;
2785 nocopy(const nocopy&) = delete;
2786 nocopy & operator=(const nocopy&) = delete;
2787 private:
2788 int i;
2789 };
2790
2791 // for testing lambda expressions
2792 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2793 {
2794 return f(v);
2795 }
2796
2797 // for testing variadic templates and trailing return types
2798 template <typename V> auto sum(V first) -> V
2799 {
2800 return first;
2801 }
2802 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2803 {
2804 return first + sum(rest...);
2805 }
2806 }
2807 '
2808
2809 # Test code for whether the C++ compiler supports C++11 (body of main)
2810 ac_cxx_conftest_cxx11_main='
2811 {
2812 // Test auto and decltype
2813 auto a1 = 6538;
2814 auto a2 = 48573953.4;
2815 auto a3 = "String literal";
2816
2817 int total = 0;
2818 for (auto i = a3; *i; ++i) { total += *i; }
2819
2820 decltype(a2) a4 = 34895.034;
2821 }
2822 {
2823 // Test constexpr
2824 short sa[cxx11test::get_val()] = { 0 };
2825 }
2826 {
2827 // Test initializer lists
2828 cxx11test::testinit il = { 4323, 435234.23544 };
2829 }
2830 {
2831 // Test range-based for
2832 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2833 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2834 for (auto &x : array) { x += 23; }
2835 }
2836 {
2837 // Test lambda expressions
2838 using cxx11test::eval;
2839 assert (eval ([](int x) { return x*2; }, 21) == 42);
2840 double d = 2.0;
2841 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2842 assert (d == 5.0);
2843 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2844 assert (d == 5.0);
2845 }
2846 {
2847 // Test use of variadic templates
2848 using cxx11test::sum;
2849 auto a = sum(1);
2850 auto b = sum(1, 2);
2851 auto c = sum(1.0, 2.0, 3.0);
2852 }
2853 {
2854 // Test constructor delegation
2855 cxx11test::delegate d1;
2856 cxx11test::delegate d2();
2857 cxx11test::delegate d3(45);
2858 }
2859 {
2860 // Test override and final
2861 cxx11test::overridden o1(55464);
2862 }
2863 {
2864 // Test nullptr
2865 char *c = nullptr;
2866 }
2867 {
2868 // Test template brackets
2869 test_template<::test_template<int>> v(test_template<int>(12));
2870 }
2871 {
2872 // Unicode literals
2873 char const *utf8 = u8"UTF-8 string \u2500";
2874 char16_t const *utf16 = u"UTF-8 string \u2500";
2875 char32_t const *utf32 = U"UTF-32 string \u2500";
2876 }
2877 '
2878
2879 # Test code for whether the C compiler supports C++11 (complete).
2880 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2881 ${ac_cxx_conftest_cxx11_globals}
2882
2883 int
2884 main (int argc, char **argv)
2885 {
2886 int ok = 0;
2887 ${ac_cxx_conftest_cxx98_main}
2888 ${ac_cxx_conftest_cxx11_main}
2889 return ok;
2890 }
2891 "
2892
2893 # Test code for whether the C compiler supports C++98 (complete).
2894 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2895 int
2896 main (int argc, char **argv)
2897 {
2898 int ok = 0;
2899 ${ac_cxx_conftest_cxx98_main}
2900 return ok;
2901 }
2902 "
2903
2904
2905 # Auxiliary files required by this configure script.
2906 ac_aux_files="compile config.guess config.sub ltmain.sh missing install-sh"
2907
2908 # Locations in which to look for auxiliary files.
2909 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2910
2911 # Search for a directory containing all of the required auxiliary files,
2912 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2913 # If we don't find one directory that contains all the files we need,
2914 # we report the set of missing files from the *first* directory in
2915 # $ac_aux_dir_candidates and give up.
2916 ac_missing_aux_files=""
2917 ac_first_candidate=:
2918 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920 as_found=false
2921 for as_dir in $ac_aux_dir_candidates
2922 do
2923 IFS=$as_save_IFS
2924 case $as_dir in #(((
2925 '') as_dir=./ ;;
2926 */) ;;
2927 *) as_dir=$as_dir/ ;;
2928 esac
2929 as_found=:
2930
2931 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2932 ac_aux_dir_found=yes
2933 ac_install_sh=
2934 for ac_aux in $ac_aux_files
2935 do
2936 # As a special case, if "install-sh" is required, that requirement
2937 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2938 # and $ac_install_sh is set appropriately for whichever one is found.
2939 if test x"$ac_aux" = x"install-sh"
2940 then
2941 if test -f "${as_dir}install-sh"; then
2942 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2943 ac_install_sh="${as_dir}install-sh -c"
2944 elif test -f "${as_dir}install.sh"; then
2945 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2946 ac_install_sh="${as_dir}install.sh -c"
2947 elif test -f "${as_dir}shtool"; then
2948 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2949 ac_install_sh="${as_dir}shtool install -c"
2950 else
2951 ac_aux_dir_found=no
2952 if $ac_first_candidate; then
2953 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2954 else
2955 break
2956 fi
2957 fi
2958 else
2959 if test -f "${as_dir}${ac_aux}"; then
2960 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2961 else
2962 ac_aux_dir_found=no
2963 if $ac_first_candidate; then
2964 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2965 else
2966 break
2967 fi
2968 fi
2969 fi
2970 done
2971 if test "$ac_aux_dir_found" = yes; then
2972 ac_aux_dir="$as_dir"
2973 break
2974 fi
2975 ac_first_candidate=false
2976
2977 as_found=false
2978 done
2979 IFS=$as_save_IFS
2980 if $as_found
2981 then :
2982
2983 else $as_nop
2984 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2985 fi
2986
2987
2988 # These three variables are undocumented and unsupported,
2989 # and are intended to be withdrawn in a future Autoconf release.
2990 # They can cause serious problems if a builder's source tree is in a directory
2991 # whose full name contains unusual characters.
2992 if test -f "${ac_aux_dir}config.guess"; then
2993 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2994 fi
2995 if test -f "${ac_aux_dir}config.sub"; then
2996 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2997 fi
2998 if test -f "$ac_aux_dir/configure"; then
2999 ac_configure="$SHELL ${ac_aux_dir}configure"
3000 fi
3001
3002 # Check that the precious variables saved in the cache have kept the same
3003 # value.
3004 ac_cache_corrupted=false
3005 for ac_var in $ac_precious_vars; do
3006 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3007 eval ac_new_set=\$ac_env_${ac_var}_set
3008 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3009 eval ac_new_val=\$ac_env_${ac_var}_value
3010 case $ac_old_set,$ac_new_set in
3011 set,)
3012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3013 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3014 ac_cache_corrupted=: ;;
3015 ,set)
3016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3017 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3018 ac_cache_corrupted=: ;;
3019 ,);;
3020 *)
3021 if test "x$ac_old_val" != "x$ac_new_val"; then
3022 # differences in whitespace do not lead to failure.
3023 ac_old_val_w=`echo x $ac_old_val`
3024 ac_new_val_w=`echo x $ac_new_val`
3025 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3027 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3028 ac_cache_corrupted=:
3029 else
3030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3031 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3032 eval $ac_var=\$ac_old_val
3033 fi
3034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3035 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
3036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3037 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
3038 fi;;
3039 esac
3040 # Pass precious variables to config.status.
3041 if test "$ac_new_set" = set; then
3042 case $ac_new_val in
3043 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3044 *) ac_arg=$ac_var=$ac_new_val ;;
3045 esac
3046 case " $ac_configure_args " in
3047 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3048 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3049 esac
3050 fi
3051 done
3052 if $ac_cache_corrupted; then
3053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3054 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3056 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3057 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3058 and start over" "$LINENO" 5
3059 fi
3060 ## -------------------- ##
3061 ## Main body of script. ##
3062 ## -------------------- ##
3063
3064 ac_ext=c
3065 ac_cpp='$CPP $CPPFLAGS'
3066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3069
3070
3071
3072 am__api_version='1.16'
3073
3074
3075
3076 # Find a good install program. We prefer a C program (faster),
3077 # so one script is as good as another. But avoid the broken or
3078 # incompatible versions:
3079 # SysV /etc/install, /usr/sbin/install
3080 # SunOS /usr/etc/install
3081 # IRIX /sbin/install
3082 # AIX /bin/install
3083 # AmigaOS /C/install, which installs bootblocks on floppy discs
3084 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3085 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3086 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3087 # OS/2's system install, which has a completely different semantic
3088 # ./install, which can be erroneously created by make from ./install.sh.
3089 # Reject install programs that cannot install multiple files.
3090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3091 printf %s "checking for a BSD-compatible install... " >&6; }
3092 if test -z "$INSTALL"; then
3093 if test ${ac_cv_path_install+y}
3094 then :
3095 printf %s "(cached) " >&6
3096 else $as_nop
3097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3098 for as_dir in $PATH
3099 do
3100 IFS=$as_save_IFS
3101 case $as_dir in #(((
3102 '') as_dir=./ ;;
3103 */) ;;
3104 *) as_dir=$as_dir/ ;;
3105 esac
3106 # Account for fact that we put trailing slashes in our PATH walk.
3107 case $as_dir in #((
3108 ./ | /[cC]/* | \
3109 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3110 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3111 /usr/ucb/* ) ;;
3112 *)
3113 # OSF1 and SCO ODT 3.0 have their own names for install.
3114 # Don't use installbsd from OSF since it installs stuff as root
3115 # by default.
3116 for ac_prog in ginstall scoinst install; do
3117 for ac_exec_ext in '' $ac_executable_extensions; do
3118 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3119 if test $ac_prog = install &&
3120 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3121 # AIX install. It has an incompatible calling convention.
3122 :
3123 elif test $ac_prog = install &&
3124 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3125 # program-specific install script used by HP pwplus--don't use.
3126 :
3127 else
3128 rm -rf conftest.one conftest.two conftest.dir
3129 echo one > conftest.one
3130 echo two > conftest.two
3131 mkdir conftest.dir
3132 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3133 test -s conftest.one && test -s conftest.two &&
3134 test -s conftest.dir/conftest.one &&
3135 test -s conftest.dir/conftest.two
3136 then
3137 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3138 break 3
3139 fi
3140 fi
3141 fi
3142 done
3143 done
3144 ;;
3145 esac
3146
3147 done
3148 IFS=$as_save_IFS
3149
3150 rm -rf conftest.one conftest.two conftest.dir
3151
3152 fi
3153 if test ${ac_cv_path_install+y}; then
3154 INSTALL=$ac_cv_path_install
3155 else
3156 # As a last resort, use the slow shell script. Don't cache a
3157 # value for INSTALL within a source directory, because that will
3158 # break other packages using the cache if that directory is
3159 # removed, or if the value is a relative name.
3160 INSTALL=$ac_install_sh
3161 fi
3162 fi
3163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3164 printf "%s\n" "$INSTALL" >&6; }
3165
3166 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3167 # It thinks the first close brace ends the variable substitution.
3168 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3169
3170 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3171
3172 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3173
3174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3175 printf %s "checking whether build environment is sane... " >&6; }
3176 # Reject unsafe characters in $srcdir or the absolute working directory
3177 # name. Accept space and tab only in the latter.
3178 am_lf='
3179 '
3180 case `pwd` in
3181 *[\\\"\#\$\&\'\`$am_lf]*)
3182 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3183 esac
3184 case $srcdir in
3185 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3186 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3187 esac
3188
3189 # Do 'set' in a subshell so we don't clobber the current shell's
3190 # arguments. Must try -L first in case configure is actually a
3191 # symlink; some systems play weird games with the mod time of symlinks
3192 # (eg FreeBSD returns the mod time of the symlink's containing
3193 # directory).
3194 if (
3195 am_has_slept=no
3196 for am_try in 1 2; do
3197 echo "timestamp, slept: $am_has_slept" > conftest.file
3198 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3199 if test "$*" = "X"; then
3200 # -L didn't work.
3201 set X `ls -t "$srcdir/configure" conftest.file`
3202 fi
3203 if test "$*" != "X $srcdir/configure conftest.file" \
3204 && test "$*" != "X conftest.file $srcdir/configure"; then
3205
3206 # If neither matched, then we have a broken ls. This can happen
3207 # if, for instance, CONFIG_SHELL is bash and it inherits a
3208 # broken ls alias from the environment. This has actually
3209 # happened. Such a system could not be considered "sane".
3210 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3211 alias in your environment" "$LINENO" 5
3212 fi
3213 if test "$2" = conftest.file || test $am_try -eq 2; then
3214 break
3215 fi
3216 # Just in case.
3217 sleep 1
3218 am_has_slept=yes
3219 done
3220 test "$2" = conftest.file
3221 )
3222 then
3223 # Ok.
3224 :
3225 else
3226 as_fn_error $? "newly created file is older than distributed files!
3227 Check your system clock" "$LINENO" 5
3228 fi
3229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3230 printf "%s\n" "yes" >&6; }
3231 # If we didn't sleep, we still need to ensure time stamps of config.status and
3232 # generated files are strictly newer.
3233 am_sleep_pid=
3234 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3235 ( sleep 1 ) &
3236 am_sleep_pid=$!
3237 fi
3238
3239 rm -f conftest.file
3240
3241 test "$program_prefix" != NONE &&
3242 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3243 # Use a double $ so make ignores it.
3244 test "$program_suffix" != NONE &&
3245 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3246 # Double any \ or $.
3247 # By default was `s,x,x', remove it if useless.
3248 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3249 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3250
3251
3252 # Expand $ac_aux_dir to an absolute path.
3253 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3254
3255
3256 if test x"${MISSING+set}" != xset; then
3257 MISSING="\${SHELL} '$am_aux_dir/missing'"
3258 fi
3259 # Use eval to expand $SHELL
3260 if eval "$MISSING --is-lightweight"; then
3261 am_missing_run="$MISSING "
3262 else
3263 am_missing_run=
3264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3265 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3266 fi
3267
3268 if test x"${install_sh+set}" != xset; then
3269 case $am_aux_dir in
3270 *\ * | *\ *)
3271 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3272 *)
3273 install_sh="\${SHELL} $am_aux_dir/install-sh"
3274 esac
3275 fi
3276
3277 # Installed binaries are usually stripped using 'strip' when the user
3278 # run "make install-strip". However 'strip' might not be the right
3279 # tool to use in cross-compilation environments, therefore Automake
3280 # will honor the 'STRIP' environment variable to overrule this program.
3281 if test "$cross_compiling" != no; then
3282 if test -n "$ac_tool_prefix"; then
3283 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3284 set dummy ${ac_tool_prefix}strip; ac_word=$2
3285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3286 printf %s "checking for $ac_word... " >&6; }
3287 if test ${ac_cv_prog_STRIP+y}
3288 then :
3289 printf %s "(cached) " >&6
3290 else $as_nop
3291 if test -n "$STRIP"; then
3292 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3293 else
3294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3295 for as_dir in $PATH
3296 do
3297 IFS=$as_save_IFS
3298 case $as_dir in #(((
3299 '') as_dir=./ ;;
3300 */) ;;
3301 *) as_dir=$as_dir/ ;;
3302 esac
3303 for ac_exec_ext in '' $ac_executable_extensions; do
3304 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3305 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3306 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3307 break 2
3308 fi
3309 done
3310 done
3311 IFS=$as_save_IFS
3312
3313 fi
3314 fi
3315 STRIP=$ac_cv_prog_STRIP
3316 if test -n "$STRIP"; then
3317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3318 printf "%s\n" "$STRIP" >&6; }
3319 else
3320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3321 printf "%s\n" "no" >&6; }
3322 fi
3323
3324
3325 fi
3326 if test -z "$ac_cv_prog_STRIP"; then
3327 ac_ct_STRIP=$STRIP
3328 # Extract the first word of "strip", so it can be a program name with args.
3329 set dummy strip; ac_word=$2
3330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3331 printf %s "checking for $ac_word... " >&6; }
3332 if test ${ac_cv_prog_ac_ct_STRIP+y}
3333 then :
3334 printf %s "(cached) " >&6
3335 else $as_nop
3336 if test -n "$ac_ct_STRIP"; then
3337 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3338 else
3339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3340 for as_dir in $PATH
3341 do
3342 IFS=$as_save_IFS
3343 case $as_dir in #(((
3344 '') as_dir=./ ;;
3345 */) ;;
3346 *) as_dir=$as_dir/ ;;
3347 esac
3348 for ac_exec_ext in '' $ac_executable_extensions; do
3349 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3350 ac_cv_prog_ac_ct_STRIP="strip"
3351 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3352 break 2
3353 fi
3354 done
3355 done
3356 IFS=$as_save_IFS
3357
3358 fi
3359 fi
3360 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3361 if test -n "$ac_ct_STRIP"; then
3362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3363 printf "%s\n" "$ac_ct_STRIP" >&6; }
3364 else
3365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3366 printf "%s\n" "no" >&6; }
3367 fi
3368
3369 if test "x$ac_ct_STRIP" = x; then
3370 STRIP=":"
3371 else
3372 case $cross_compiling:$ac_tool_warned in
3373 yes:)
3374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3375 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3376 ac_tool_warned=yes ;;
3377 esac
3378 STRIP=$ac_ct_STRIP
3379 fi
3380 else
3381 STRIP="$ac_cv_prog_STRIP"
3382 fi
3383
3384 fi
3385 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3386
3387
3388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3389 printf %s "checking for a race-free mkdir -p... " >&6; }
3390 if test -z "$MKDIR_P"; then
3391 if test ${ac_cv_path_mkdir+y}
3392 then :
3393 printf %s "(cached) " >&6
3394 else $as_nop
3395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3396 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3397 do
3398 IFS=$as_save_IFS
3399 case $as_dir in #(((
3400 '') as_dir=./ ;;
3401 */) ;;
3402 *) as_dir=$as_dir/ ;;
3403 esac
3404 for ac_prog in mkdir gmkdir; do
3405 for ac_exec_ext in '' $ac_executable_extensions; do
3406 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3407 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3408 'mkdir ('*'coreutils) '* | \
3409 'BusyBox '* | \
3410 'mkdir (fileutils) '4.1*)
3411 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3412 break 3;;
3413 esac
3414 done
3415 done
3416 done
3417 IFS=$as_save_IFS
3418
3419 fi
3420
3421 test -d ./--version && rmdir ./--version
3422 if test ${ac_cv_path_mkdir+y}; then
3423 MKDIR_P="$ac_cv_path_mkdir -p"
3424 else
3425 # As a last resort, use the slow shell script. Don't cache a
3426 # value for MKDIR_P within a source directory, because that will
3427 # break other packages using the cache if that directory is
3428 # removed, or if the value is a relative name.
3429 MKDIR_P="$ac_install_sh -d"
3430 fi
3431 fi
3432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3433 printf "%s\n" "$MKDIR_P" >&6; }
3434
3435 for ac_prog in gawk mawk nawk awk
3436 do
3437 # Extract the first word of "$ac_prog", so it can be a program name with args.
3438 set dummy $ac_prog; ac_word=$2
3439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3440 printf %s "checking for $ac_word... " >&6; }
3441 if test ${ac_cv_prog_AWK+y}
3442 then :
3443 printf %s "(cached) " >&6
3444 else $as_nop
3445 if test -n "$AWK"; then
3446 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3447 else
3448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3449 for as_dir in $PATH
3450 do
3451 IFS=$as_save_IFS
3452 case $as_dir in #(((
3453 '') as_dir=./ ;;
3454 */) ;;
3455 *) as_dir=$as_dir/ ;;
3456 esac
3457 for ac_exec_ext in '' $ac_executable_extensions; do
3458 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3459 ac_cv_prog_AWK="$ac_prog"
3460 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3461 break 2
3462 fi
3463 done
3464 done
3465 IFS=$as_save_IFS
3466
3467 fi
3468 fi
3469 AWK=$ac_cv_prog_AWK
3470 if test -n "$AWK"; then
3471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3472 printf "%s\n" "$AWK" >&6; }
3473 else
3474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3475 printf "%s\n" "no" >&6; }
3476 fi
3477
3478
3479 test -n "$AWK" && break
3480 done
3481
3482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3483 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3484 set x ${MAKE-make}
3485 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3486 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3487 then :
3488 printf %s "(cached) " >&6
3489 else $as_nop
3490 cat >conftest.make <<\_ACEOF
3491 SHELL = /bin/sh
3492 all:
3493 @echo '@@@%%%=$(MAKE)=@@@%%%'
3494 _ACEOF
3495 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3496 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3497 *@@@%%%=?*=@@@%%%*)
3498 eval ac_cv_prog_make_${ac_make}_set=yes;;
3499 *)
3500 eval ac_cv_prog_make_${ac_make}_set=no;;
3501 esac
3502 rm -f conftest.make
3503 fi
3504 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3506 printf "%s\n" "yes" >&6; }
3507 SET_MAKE=
3508 else
3509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3510 printf "%s\n" "no" >&6; }
3511 SET_MAKE="MAKE=${MAKE-make}"
3512 fi
3513
3514 rm -rf .tst 2>/dev/null
3515 mkdir .tst 2>/dev/null
3516 if test -d .tst; then
3517 am__leading_dot=.
3518 else
3519 am__leading_dot=_
3520 fi
3521 rmdir .tst 2>/dev/null
3522
3523 # Check whether --enable-silent-rules was given.
3524 if test ${enable_silent_rules+y}
3525 then :
3526 enableval=$enable_silent_rules;
3527 fi
3528
3529 case $enable_silent_rules in # (((
3530 yes) AM_DEFAULT_VERBOSITY=0;;
3531 no) AM_DEFAULT_VERBOSITY=1;;
3532 *) AM_DEFAULT_VERBOSITY=1;;
3533 esac
3534 am_make=${MAKE-make}
3535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3536 printf %s "checking whether $am_make supports nested variables... " >&6; }
3537 if test ${am_cv_make_support_nested_variables+y}
3538 then :
3539 printf %s "(cached) " >&6
3540 else $as_nop
3541 if printf "%s\n" 'TRUE=$(BAR$(V))
3542 BAR0=false
3543 BAR1=true
3544 V=1
3545 am__doit:
3546 @$(TRUE)
3547 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3548 am_cv_make_support_nested_variables=yes
3549 else
3550 am_cv_make_support_nested_variables=no
3551 fi
3552 fi
3553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3554 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3555 if test $am_cv_make_support_nested_variables = yes; then
3556 AM_V='$(V)'
3557 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3558 else
3559 AM_V=$AM_DEFAULT_VERBOSITY
3560 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3561 fi
3562 AM_BACKSLASH='\'
3563
3564 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3565 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3566 # is not polluted with repeated "-I."
3567 am__isrc=' -I$(srcdir)'
3568 # test to see if srcdir already configured
3569 if test -f $srcdir/config.status; then
3570 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3571 fi
3572 fi
3573
3574 # test whether we have cygpath
3575 if test -z "$CYGPATH_W"; then
3576 if (cygpath --version) >/dev/null 2>/dev/null; then
3577 CYGPATH_W='cygpath -w'
3578 else
3579 CYGPATH_W=echo
3580 fi
3581 fi
3582
3583
3584 # Define the identity of the package.
3585 PACKAGE='rsbtest'
3586 VERSION='0.0'
3587
3588
3589 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3590
3591
3592 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3593
3594 # Some tools Automake needs.
3595
3596 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3597
3598
3599 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3600
3601
3602 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3603
3604
3605 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3606
3607
3608 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3609
3610 # For better backward compatibility. To be removed once Automake 1.9.x
3611 # dies out for good. For more background, see:
3612 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3613 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3614 mkdir_p='$(MKDIR_P)'
3615
3616 # We need awk for the "check" target (and possibly the TAP driver). The
3617 # system "awk" is bad on some platforms.
3618 # Always define AMTAR for backward compatibility. Yes, it's still used
3619 # in the wild :-( We should find a proper way to deprecate it ...
3620 AMTAR='$${TAR-tar}'
3621
3622
3623 # We'll loop over all known methods to create a tar archive until one works.
3624 _am_tools='gnutar pax cpio none'
3625
3626 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3627
3628
3629
3630
3631
3632 # Variables for tags utilities; see am/tags.am
3633 if test -z "$CTAGS"; then
3634 CTAGS=ctags
3635 fi
3636
3637 if test -z "$ETAGS"; then
3638 ETAGS=etags
3639 fi
3640
3641 if test -z "$CSCOPE"; then
3642 CSCOPE=cscope
3643 fi
3644
3645
3646
3647 # POSIX will say in a future version that running "rm -f" with no argument
3648 # is OK; and we want to be able to make that assumption in our Makefile
3649 # recipes. So use an aggressive probe to check that the usage we want is
3650 # actually supported "in the wild" to an acceptable degree.
3651 # See automake bug#10828.
3652 # To make any issue more visible, cause the running configure to be aborted
3653 # by default if the 'rm' program in use doesn't match our expectations; the
3654 # user can still override this though.
3655 if rm -f && rm -fr && rm -rf; then : OK; else
3656 cat >&2 <<'END'
3657 Oops!
3658
3659 Your 'rm' program seems unable to run without file operands specified
3660 on the command line, even when the '-f' option is present. This is contrary
3661 to the behaviour of most rm programs out there, and not conforming with
3662 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3663
3664 Please tell [email protected] about your system, including the value
3665 of your $PATH and any error possibly output before this message. This
3666 can help us improve future automake versions.
3667
3668 END
3669 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3670 echo 'Configuration will proceed anyway, since you have set the' >&2
3671 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3672 echo >&2
3673 else
3674 cat >&2 <<'END'
3675 Aborting the configuration process, to ensure you take notice of the issue.
3676
3677 You can download and install GNU coreutils to get an 'rm' implementation
3678 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3679
3680 If you want to complete the configuration process using your problematic
3681 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3682 to "yes", and re-run configure.
3683
3684 END
3685 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3686 fi
3687 fi
3688
3689 case `pwd` in
3690 *\ * | *\ *)
3691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3692 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3693 esac
3694
3695
3696
3697 macro_version='2.4.7'
3698 macro_revision='2.4.7'
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713 ltmain=$ac_aux_dir/ltmain.sh
3714
3715
3716
3717 # Make sure we can run config.sub.
3718 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3719 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3720
3721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3722 printf %s "checking build system type... " >&6; }
3723 if test ${ac_cv_build+y}
3724 then :
3725 printf %s "(cached) " >&6
3726 else $as_nop
3727 ac_build_alias=$build_alias
3728 test "x$ac_build_alias" = x &&
3729 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3730 test "x$ac_build_alias" = x &&
3731 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3732 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3733 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3734
3735 fi
3736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3737 printf "%s\n" "$ac_cv_build" >&6; }
3738 case $ac_cv_build in
3739 *-*-*) ;;
3740 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3741 esac
3742 build=$ac_cv_build
3743 ac_save_IFS=$IFS; IFS='-'
3744 set x $ac_cv_build
3745 shift
3746 build_cpu=$1
3747 build_vendor=$2
3748 shift; shift
3749 # Remember, the first character of IFS is used to create $*,
3750 # except with old shells:
3751 build_os=$*
3752 IFS=$ac_save_IFS
3753 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3754
3755
3756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3757 printf %s "checking host system type... " >&6; }
3758 if test ${ac_cv_host+y}
3759 then :
3760 printf %s "(cached) " >&6
3761 else $as_nop
3762 if test "x$host_alias" = x; then
3763 ac_cv_host=$ac_cv_build
3764 else
3765 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3766 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3767 fi
3768
3769 fi
3770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3771 printf "%s\n" "$ac_cv_host" >&6; }
3772 case $ac_cv_host in
3773 *-*-*) ;;
3774 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3775 esac
3776 host=$ac_cv_host
3777 ac_save_IFS=$IFS; IFS='-'
3778 set x $ac_cv_host
3779 shift
3780 host_cpu=$1
3781 host_vendor=$2
3782 shift; shift
3783 # Remember, the first character of IFS is used to create $*,
3784 # except with old shells:
3785 host_os=$*
3786 IFS=$ac_save_IFS
3787 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3788
3789
3790 # Backslashify metacharacters that are still active within
3791 # double-quoted strings.
3792 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3793
3794 # Same as above, but do not quote variable references.
3795 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3796
3797 # Sed substitution to delay expansion of an escaped shell variable in a
3798 # double_quote_subst'ed string.
3799 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3800
3801 # Sed substitution to delay expansion of an escaped single quote.
3802 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3803
3804 # Sed substitution to avoid accidental globbing in evaled expressions
3805 no_glob_subst='s/\*/\\\*/g'
3806
3807 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3808 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3809 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3810
3811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3812 printf %s "checking how to print strings... " >&6; }
3813 # Test print first, because it will be a builtin if present.
3814 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3815 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3816 ECHO='print -r --'
3817 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3818 ECHO='printf %s\n'
3819 else
3820 # Use this function as a fallback that always works.
3821 func_fallback_echo ()
3822 {
3823 eval 'cat <<_LTECHO_EOF
3824 $1
3825 _LTECHO_EOF'
3826 }
3827 ECHO='func_fallback_echo'
3828 fi
3829
3830 # func_echo_all arg...
3831 # Invoke $ECHO with all args, space-separated.
3832 func_echo_all ()
3833 {
3834 $ECHO ""
3835 }
3836
3837 case $ECHO in
3838 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3839 printf "%s\n" "printf" >&6; } ;;
3840 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3841 printf "%s\n" "print -r" >&6; } ;;
3842 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3843 printf "%s\n" "cat" >&6; } ;;
3844 esac
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868 DEPDIR="${am__leading_dot}deps"
3869
3870 ac_config_commands="$ac_config_commands depfiles"
3871
3872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3873 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3874 cat > confinc.mk << 'END'
3875 am__doit:
3876 @echo this is the am__doit target >confinc.out
3877 .PHONY: am__doit
3878 END
3879 am__include="#"
3880 am__quote=
3881 # BSD make does it like this.
3882 echo '.include "confinc.mk" # ignored' > confmf.BSD
3883 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3884 echo 'include confinc.mk # ignored' > confmf.GNU
3885 _am_result=no
3886 for s in GNU BSD; do
3887 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3888 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3889 ac_status=$?
3890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3891 (exit $ac_status); }
3892 case $?:`cat confinc.out 2>/dev/null` in #(
3893 '0:this is the am__doit target') :
3894 case $s in #(
3895 BSD) :
3896 am__include='.include' am__quote='"' ;; #(
3897 *) :
3898 am__include='include' am__quote='' ;;
3899 esac ;; #(
3900 *) :
3901 ;;
3902 esac
3903 if test "$am__include" != "#"; then
3904 _am_result="yes ($s style)"
3905 break
3906 fi
3907 done
3908 rm -f confinc.* confmf.*
3909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3910 printf "%s\n" "${_am_result}" >&6; }
3911
3912 # Check whether --enable-dependency-tracking was given.
3913 if test ${enable_dependency_tracking+y}
3914 then :
3915 enableval=$enable_dependency_tracking;
3916 fi
3917
3918 if test "x$enable_dependency_tracking" != xno; then
3919 am_depcomp="$ac_aux_dir/depcomp"
3920 AMDEPBACKSLASH='\'
3921 am__nodep='_no'
3922 fi
3923 if test "x$enable_dependency_tracking" != xno; then
3924 AMDEP_TRUE=
3925 AMDEP_FALSE='#'
3926 else
3927 AMDEP_TRUE='#'
3928 AMDEP_FALSE=
3929 fi
3930
3931
3932 ac_ext=c
3933 ac_cpp='$CPP $CPPFLAGS'
3934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3937 if test -n "$ac_tool_prefix"; then
3938 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3939 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3941 printf %s "checking for $ac_word... " >&6; }
3942 if test ${ac_cv_prog_CC+y}
3943 then :
3944 printf %s "(cached) " >&6
3945 else $as_nop
3946 if test -n "$CC"; then
3947 ac_cv_prog_CC="$CC" # Let the user override the test.
3948 else
3949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3950 for as_dir in $PATH
3951 do
3952 IFS=$as_save_IFS
3953 case $as_dir in #(((
3954 '') as_dir=./ ;;
3955 */) ;;
3956 *) as_dir=$as_dir/ ;;
3957 esac
3958 for ac_exec_ext in '' $ac_executable_extensions; do
3959 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3960 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3961 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3962 break 2
3963 fi
3964 done
3965 done
3966 IFS=$as_save_IFS
3967
3968 fi
3969 fi
3970 CC=$ac_cv_prog_CC
3971 if test -n "$CC"; then
3972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3973 printf "%s\n" "$CC" >&6; }
3974 else
3975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3976 printf "%s\n" "no" >&6; }
3977 fi
3978
3979
3980 fi
3981 if test -z "$ac_cv_prog_CC"; then
3982 ac_ct_CC=$CC
3983 # Extract the first word of "gcc", so it can be a program name with args.
3984 set dummy gcc; ac_word=$2
3985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3986 printf %s "checking for $ac_word... " >&6; }
3987 if test ${ac_cv_prog_ac_ct_CC+y}
3988 then :
3989 printf %s "(cached) " >&6
3990 else $as_nop
3991 if test -n "$ac_ct_CC"; then
3992 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3993 else
3994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3995 for as_dir in $PATH
3996 do
3997 IFS=$as_save_IFS
3998 case $as_dir in #(((
3999 '') as_dir=./ ;;
4000 */) ;;
4001 *) as_dir=$as_dir/ ;;
4002 esac
4003 for ac_exec_ext in '' $ac_executable_extensions; do
4004 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4005 ac_cv_prog_ac_ct_CC="gcc"
4006 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4007 break 2
4008 fi
4009 done
4010 done
4011 IFS=$as_save_IFS
4012
4013 fi
4014 fi
4015 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4016 if test -n "$ac_ct_CC"; then
4017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4018 printf "%s\n" "$ac_ct_CC" >&6; }
4019 else
4020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4021 printf "%s\n" "no" >&6; }
4022 fi
4023
4024 if test "x$ac_ct_CC" = x; then
4025 CC=""
4026 else
4027 case $cross_compiling:$ac_tool_warned in
4028 yes:)
4029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4030 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4031 ac_tool_warned=yes ;;
4032 esac
4033 CC=$ac_ct_CC
4034 fi
4035 else
4036 CC="$ac_cv_prog_CC"
4037 fi
4038
4039 if test -z "$CC"; then
4040 if test -n "$ac_tool_prefix"; then
4041 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4042 set dummy ${ac_tool_prefix}cc; ac_word=$2
4043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4044 printf %s "checking for $ac_word... " >&6; }
4045 if test ${ac_cv_prog_CC+y}
4046 then :
4047 printf %s "(cached) " >&6
4048 else $as_nop
4049 if test -n "$CC"; then
4050 ac_cv_prog_CC="$CC" # Let the user override the test.
4051 else
4052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4053 for as_dir in $PATH
4054 do
4055 IFS=$as_save_IFS
4056 case $as_dir in #(((
4057 '') as_dir=./ ;;
4058 */) ;;
4059 *) as_dir=$as_dir/ ;;
4060 esac
4061 for ac_exec_ext in '' $ac_executable_extensions; do
4062 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4063 ac_cv_prog_CC="${ac_tool_prefix}cc"
4064 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4065 break 2
4066 fi
4067 done
4068 done
4069 IFS=$as_save_IFS
4070
4071 fi
4072 fi
4073 CC=$ac_cv_prog_CC
4074 if test -n "$CC"; then
4075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4076 printf "%s\n" "$CC" >&6; }
4077 else
4078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4079 printf "%s\n" "no" >&6; }
4080 fi
4081
4082
4083 fi
4084 fi
4085 if test -z "$CC"; then
4086 # Extract the first word of "cc", so it can be a program name with args.
4087 set dummy cc; ac_word=$2
4088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4089 printf %s "checking for $ac_word... " >&6; }
4090 if test ${ac_cv_prog_CC+y}
4091 then :
4092 printf %s "(cached) " >&6
4093 else $as_nop
4094 if test -n "$CC"; then
4095 ac_cv_prog_CC="$CC" # Let the user override the test.
4096 else
4097 ac_prog_rejected=no
4098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4099 for as_dir in $PATH
4100 do
4101 IFS=$as_save_IFS
4102 case $as_dir in #(((
4103 '') as_dir=./ ;;
4104 */) ;;
4105 *) as_dir=$as_dir/ ;;
4106 esac
4107 for ac_exec_ext in '' $ac_executable_extensions; do
4108 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4109 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4110 ac_prog_rejected=yes
4111 continue
4112 fi
4113 ac_cv_prog_CC="cc"
4114 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4115 break 2
4116 fi
4117 done
4118 done
4119 IFS=$as_save_IFS
4120
4121 if test $ac_prog_rejected = yes; then
4122 # We found a bogon in the path, so make sure we never use it.
4123 set dummy $ac_cv_prog_CC
4124 shift
4125 if test $# != 0; then
4126 # We chose a different compiler from the bogus one.
4127 # However, it has the same basename, so the bogon will be chosen
4128 # first if we set CC to just the basename; use the full file name.
4129 shift
4130 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4131 fi
4132 fi
4133 fi
4134 fi
4135 CC=$ac_cv_prog_CC
4136 if test -n "$CC"; then
4137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4138 printf "%s\n" "$CC" >&6; }
4139 else
4140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4141 printf "%s\n" "no" >&6; }
4142 fi
4143
4144
4145 fi
4146 if test -z "$CC"; then
4147 if test -n "$ac_tool_prefix"; then
4148 for ac_prog in cl.exe
4149 do
4150 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4151 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4153 printf %s "checking for $ac_word... " >&6; }
4154 if test ${ac_cv_prog_CC+y}
4155 then :
4156 printf %s "(cached) " >&6
4157 else $as_nop
4158 if test -n "$CC"; then
4159 ac_cv_prog_CC="$CC" # Let the user override the test.
4160 else
4161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4162 for as_dir in $PATH
4163 do
4164 IFS=$as_save_IFS
4165 case $as_dir in #(((
4166 '') as_dir=./ ;;
4167 */) ;;
4168 *) as_dir=$as_dir/ ;;
4169 esac
4170 for ac_exec_ext in '' $ac_executable_extensions; do
4171 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4172 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4173 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4174 break 2
4175 fi
4176 done
4177 done
4178 IFS=$as_save_IFS
4179
4180 fi
4181 fi
4182 CC=$ac_cv_prog_CC
4183 if test -n "$CC"; then
4184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4185 printf "%s\n" "$CC" >&6; }
4186 else
4187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4188 printf "%s\n" "no" >&6; }
4189 fi
4190
4191
4192 test -n "$CC" && break
4193 done
4194 fi
4195 if test -z "$CC"; then
4196 ac_ct_CC=$CC
4197 for ac_prog in cl.exe
4198 do
4199 # Extract the first word of "$ac_prog", so it can be a program name with args.
4200 set dummy $ac_prog; ac_word=$2
4201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4202 printf %s "checking for $ac_word... " >&6; }
4203 if test ${ac_cv_prog_ac_ct_CC+y}
4204 then :
4205 printf %s "(cached) " >&6
4206 else $as_nop
4207 if test -n "$ac_ct_CC"; then
4208 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4209 else
4210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4211 for as_dir in $PATH
4212 do
4213 IFS=$as_save_IFS
4214 case $as_dir in #(((
4215 '') as_dir=./ ;;
4216 */) ;;
4217 *) as_dir=$as_dir/ ;;
4218 esac
4219 for ac_exec_ext in '' $ac_executable_extensions; do
4220 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4221 ac_cv_prog_ac_ct_CC="$ac_prog"
4222 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4223 break 2
4224 fi
4225 done
4226 done
4227 IFS=$as_save_IFS
4228
4229 fi
4230 fi
4231 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4232 if test -n "$ac_ct_CC"; then
4233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4234 printf "%s\n" "$ac_ct_CC" >&6; }
4235 else
4236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4237 printf "%s\n" "no" >&6; }
4238 fi
4239
4240
4241 test -n "$ac_ct_CC" && break
4242 done
4243
4244 if test "x$ac_ct_CC" = x; then
4245 CC=""
4246 else
4247 case $cross_compiling:$ac_tool_warned in
4248 yes:)
4249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4250 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4251 ac_tool_warned=yes ;;
4252 esac
4253 CC=$ac_ct_CC
4254 fi
4255 fi
4256
4257 fi
4258 if test -z "$CC"; then
4259 if test -n "$ac_tool_prefix"; then
4260 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4261 set dummy ${ac_tool_prefix}clang; ac_word=$2
4262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4263 printf %s "checking for $ac_word... " >&6; }
4264 if test ${ac_cv_prog_CC+y}
4265 then :
4266 printf %s "(cached) " >&6
4267 else $as_nop
4268 if test -n "$CC"; then
4269 ac_cv_prog_CC="$CC" # Let the user override the test.
4270 else
4271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4272 for as_dir in $PATH
4273 do
4274 IFS=$as_save_IFS
4275 case $as_dir in #(((
4276 '') as_dir=./ ;;
4277 */) ;;
4278 *) as_dir=$as_dir/ ;;
4279 esac
4280 for ac_exec_ext in '' $ac_executable_extensions; do
4281 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4282 ac_cv_prog_CC="${ac_tool_prefix}clang"
4283 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4284 break 2
4285 fi
4286 done
4287 done
4288 IFS=$as_save_IFS
4289
4290 fi
4291 fi
4292 CC=$ac_cv_prog_CC
4293 if test -n "$CC"; then
4294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4295 printf "%s\n" "$CC" >&6; }
4296 else
4297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4298 printf "%s\n" "no" >&6; }
4299 fi
4300
4301
4302 fi
4303 if test -z "$ac_cv_prog_CC"; then
4304 ac_ct_CC=$CC
4305 # Extract the first word of "clang", so it can be a program name with args.
4306 set dummy clang; ac_word=$2
4307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4308 printf %s "checking for $ac_word... " >&6; }
4309 if test ${ac_cv_prog_ac_ct_CC+y}
4310 then :
4311 printf %s "(cached) " >&6
4312 else $as_nop
4313 if test -n "$ac_ct_CC"; then
4314 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4315 else
4316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4317 for as_dir in $PATH
4318 do
4319 IFS=$as_save_IFS
4320 case $as_dir in #(((
4321 '') as_dir=./ ;;
4322 */) ;;
4323 *) as_dir=$as_dir/ ;;
4324 esac
4325 for ac_exec_ext in '' $ac_executable_extensions; do
4326 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4327 ac_cv_prog_ac_ct_CC="clang"
4328 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4329 break 2
4330 fi
4331 done
4332 done
4333 IFS=$as_save_IFS
4334
4335 fi
4336 fi
4337 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4338 if test -n "$ac_ct_CC"; then
4339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4340 printf "%s\n" "$ac_ct_CC" >&6; }
4341 else
4342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4343 printf "%s\n" "no" >&6; }
4344 fi
4345
4346 if test "x$ac_ct_CC" = x; then
4347 CC=""
4348 else
4349 case $cross_compiling:$ac_tool_warned in
4350 yes:)
4351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4352 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4353 ac_tool_warned=yes ;;
4354 esac
4355 CC=$ac_ct_CC
4356 fi
4357 else
4358 CC="$ac_cv_prog_CC"
4359 fi
4360
4361 fi
4362
4363
4364 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4365 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4366 as_fn_error $? "no acceptable C compiler found in \$PATH
4367 See \`config.log' for more details" "$LINENO" 5; }
4368
4369 # Provide some information about the compiler.
4370 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4371 set X $ac_compile
4372 ac_compiler=$2
4373 for ac_option in --version -v -V -qversion -version; do
4374 { { ac_try="$ac_compiler $ac_option >&5"
4375 case "(($ac_try" in
4376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4377 *) ac_try_echo=$ac_try;;
4378 esac
4379 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4380 printf "%s\n" "$ac_try_echo"; } >&5
4381 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4382 ac_status=$?
4383 if test -s conftest.err; then
4384 sed '10a\
4385 ... rest of stderr output deleted ...
4386 10q' conftest.err >conftest.er1
4387 cat conftest.er1 >&5
4388 fi
4389 rm -f conftest.er1 conftest.err
4390 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4391 test $ac_status = 0; }
4392 done
4393
4394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4395 /* end confdefs.h. */
4396
4397 int
4398 main (void)
4399 {
4400
4401 ;
4402 return 0;
4403 }
4404 _ACEOF
4405 ac_clean_files_save=$ac_clean_files
4406 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4407 # Try to create an executable without -o first, disregard a.out.
4408 # It will help us diagnose broken compilers, and finding out an intuition
4409 # of exeext.
4410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4411 printf %s "checking whether the C compiler works... " >&6; }
4412 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4413
4414 # The possible output files:
4415 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4416
4417 ac_rmfiles=
4418 for ac_file in $ac_files
4419 do
4420 case $ac_file in
4421 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4422 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4423 esac
4424 done
4425 rm -f $ac_rmfiles
4426
4427 if { { ac_try="$ac_link_default"
4428 case "(($ac_try" in
4429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4430 *) ac_try_echo=$ac_try;;
4431 esac
4432 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4433 printf "%s\n" "$ac_try_echo"; } >&5
4434 (eval "$ac_link_default") 2>&5
4435 ac_status=$?
4436 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4437 test $ac_status = 0; }
4438 then :
4439 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4440 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4441 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4442 # so that the user can short-circuit this test for compilers unknown to
4443 # Autoconf.
4444 for ac_file in $ac_files ''
4445 do
4446 test -f "$ac_file" || continue
4447 case $ac_file in
4448 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4449 ;;
4450 [ab].out )
4451 # We found the default executable, but exeext='' is most
4452 # certainly right.
4453 break;;
4454 *.* )
4455 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4456 then :; else
4457 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4458 fi
4459 # We set ac_cv_exeext here because the later test for it is not
4460 # safe: cross compilers may not add the suffix if given an `-o'
4461 # argument, so we may need to know it at that point already.
4462 # Even if this section looks crufty: it has the advantage of
4463 # actually working.
4464 break;;
4465 * )
4466 break;;
4467 esac
4468 done
4469 test "$ac_cv_exeext" = no && ac_cv_exeext=
4470
4471 else $as_nop
4472 ac_file=''
4473 fi
4474 if test -z "$ac_file"
4475 then :
4476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4477 printf "%s\n" "no" >&6; }
4478 printf "%s\n" "$as_me: failed program was:" >&5
4479 sed 's/^/| /' conftest.$ac_ext >&5
4480
4481 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4482 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4483 as_fn_error 77 "C compiler cannot create executables
4484 See \`config.log' for more details" "$LINENO" 5; }
4485 else $as_nop
4486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4487 printf "%s\n" "yes" >&6; }
4488 fi
4489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4490 printf %s "checking for C compiler default output file name... " >&6; }
4491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4492 printf "%s\n" "$ac_file" >&6; }
4493 ac_exeext=$ac_cv_exeext
4494
4495 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4496 ac_clean_files=$ac_clean_files_save
4497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4498 printf %s "checking for suffix of executables... " >&6; }
4499 if { { ac_try="$ac_link"
4500 case "(($ac_try" in
4501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4502 *) ac_try_echo=$ac_try;;
4503 esac
4504 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4505 printf "%s\n" "$ac_try_echo"; } >&5
4506 (eval "$ac_link") 2>&5
4507 ac_status=$?
4508 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4509 test $ac_status = 0; }
4510 then :
4511 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4512 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4513 # work properly (i.e., refer to `conftest.exe'), while it won't with
4514 # `rm'.
4515 for ac_file in conftest.exe conftest conftest.*; do
4516 test -f "$ac_file" || continue
4517 case $ac_file in
4518 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4519 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4520 break;;
4521 * ) break;;
4522 esac
4523 done
4524 else $as_nop
4525 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4526 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4527 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4528 See \`config.log' for more details" "$LINENO" 5; }
4529 fi
4530 rm -f conftest conftest$ac_cv_exeext
4531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4532 printf "%s\n" "$ac_cv_exeext" >&6; }
4533
4534 rm -f conftest.$ac_ext
4535 EXEEXT=$ac_cv_exeext
4536 ac_exeext=$EXEEXT
4537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4538 /* end confdefs.h. */
4539 #include <stdio.h>
4540 int
4541 main (void)
4542 {
4543 FILE *f = fopen ("conftest.out", "w");
4544 return ferror (f) || fclose (f) != 0;
4545
4546 ;
4547 return 0;
4548 }
4549 _ACEOF
4550 ac_clean_files="$ac_clean_files conftest.out"
4551 # Check that the compiler produces executables we can run. If not, either
4552 # the compiler is broken, or we cross compile.
4553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4554 printf %s "checking whether we are cross compiling... " >&6; }
4555 if test "$cross_compiling" != yes; then
4556 { { ac_try="$ac_link"
4557 case "(($ac_try" in
4558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4559 *) ac_try_echo=$ac_try;;
4560 esac
4561 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4562 printf "%s\n" "$ac_try_echo"; } >&5
4563 (eval "$ac_link") 2>&5
4564 ac_status=$?
4565 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4566 test $ac_status = 0; }
4567 if { ac_try='./conftest$ac_cv_exeext'
4568 { { case "(($ac_try" in
4569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4570 *) ac_try_echo=$ac_try;;
4571 esac
4572 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4573 printf "%s\n" "$ac_try_echo"; } >&5
4574 (eval "$ac_try") 2>&5
4575 ac_status=$?
4576 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4577 test $ac_status = 0; }; }; then
4578 cross_compiling=no
4579 else
4580 if test "$cross_compiling" = maybe; then
4581 cross_compiling=yes
4582 else
4583 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4584 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4585 as_fn_error 77 "cannot run C compiled programs.
4586 If you meant to cross compile, use \`--host'.
4587 See \`config.log' for more details" "$LINENO" 5; }
4588 fi
4589 fi
4590 fi
4591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4592 printf "%s\n" "$cross_compiling" >&6; }
4593
4594 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4595 ac_clean_files=$ac_clean_files_save
4596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4597 printf %s "checking for suffix of object files... " >&6; }
4598 if test ${ac_cv_objext+y}
4599 then :
4600 printf %s "(cached) " >&6
4601 else $as_nop
4602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4603 /* end confdefs.h. */
4604
4605 int
4606 main (void)
4607 {
4608
4609 ;
4610 return 0;
4611 }
4612 _ACEOF
4613 rm -f conftest.o conftest.obj
4614 if { { ac_try="$ac_compile"
4615 case "(($ac_try" in
4616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4617 *) ac_try_echo=$ac_try;;
4618 esac
4619 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4620 printf "%s\n" "$ac_try_echo"; } >&5
4621 (eval "$ac_compile") 2>&5
4622 ac_status=$?
4623 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4624 test $ac_status = 0; }
4625 then :
4626 for ac_file in conftest.o conftest.obj conftest.*; do
4627 test -f "$ac_file" || continue;
4628 case $ac_file in
4629 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4630 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4631 break;;
4632 esac
4633 done
4634 else $as_nop
4635 printf "%s\n" "$as_me: failed program was:" >&5
4636 sed 's/^/| /' conftest.$ac_ext >&5
4637
4638 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4639 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4640 as_fn_error $? "cannot compute suffix of object files: cannot compile
4641 See \`config.log' for more details" "$LINENO" 5; }
4642 fi
4643 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4644 fi
4645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4646 printf "%s\n" "$ac_cv_objext" >&6; }
4647 OBJEXT=$ac_cv_objext
4648 ac_objext=$OBJEXT
4649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4650 printf %s "checking whether the compiler supports GNU C... " >&6; }
4651 if test ${ac_cv_c_compiler_gnu+y}
4652 then :
4653 printf %s "(cached) " >&6
4654 else $as_nop
4655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4656 /* end confdefs.h. */
4657
4658 int
4659 main (void)
4660 {
4661 #ifndef __GNUC__
4662 choke me
4663 #endif
4664
4665 ;
4666 return 0;
4667 }
4668 _ACEOF
4669 if ac_fn_c_try_compile "$LINENO"
4670 then :
4671 ac_compiler_gnu=yes
4672 else $as_nop
4673 ac_compiler_gnu=no
4674 fi
4675 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4676 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4677
4678 fi
4679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4680 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4681 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4682
4683 if test $ac_compiler_gnu = yes; then
4684 GCC=yes
4685 else
4686 GCC=
4687 fi
4688 ac_test_CFLAGS=${CFLAGS+y}
4689 ac_save_CFLAGS=$CFLAGS
4690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4691 printf %s "checking whether $CC accepts -g... " >&6; }
4692 if test ${ac_cv_prog_cc_g+y}
4693 then :
4694 printf %s "(cached) " >&6
4695 else $as_nop
4696 ac_save_c_werror_flag=$ac_c_werror_flag
4697 ac_c_werror_flag=yes
4698 ac_cv_prog_cc_g=no
4699 CFLAGS="-g"
4700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4701 /* end confdefs.h. */
4702
4703 int
4704 main (void)
4705 {
4706
4707 ;
4708 return 0;
4709 }
4710 _ACEOF
4711 if ac_fn_c_try_compile "$LINENO"
4712 then :
4713 ac_cv_prog_cc_g=yes
4714 else $as_nop
4715 CFLAGS=""
4716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4717 /* end confdefs.h. */
4718
4719 int
4720 main (void)
4721 {
4722
4723 ;
4724 return 0;
4725 }
4726 _ACEOF
4727 if ac_fn_c_try_compile "$LINENO"
4728 then :
4729
4730 else $as_nop
4731 ac_c_werror_flag=$ac_save_c_werror_flag
4732 CFLAGS="-g"
4733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4734 /* end confdefs.h. */
4735
4736 int
4737 main (void)
4738 {
4739
4740 ;
4741 return 0;
4742 }
4743 _ACEOF
4744 if ac_fn_c_try_compile "$LINENO"
4745 then :
4746 ac_cv_prog_cc_g=yes
4747 fi
4748 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4749 fi
4750 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4751 fi
4752 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4753 ac_c_werror_flag=$ac_save_c_werror_flag
4754 fi
4755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4756 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4757 if test $ac_test_CFLAGS; then
4758 CFLAGS=$ac_save_CFLAGS
4759 elif test $ac_cv_prog_cc_g = yes; then
4760 if test "$GCC" = yes; then
4761 CFLAGS="-g -O2"
4762 else
4763 CFLAGS="-g"
4764 fi
4765 else
4766 if test "$GCC" = yes; then
4767 CFLAGS="-O2"
4768 else
4769 CFLAGS=
4770 fi
4771 fi
4772 ac_prog_cc_stdc=no
4773 if test x$ac_prog_cc_stdc = xno
4774 then :
4775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4776 printf %s "checking for $CC option to enable C11 features... " >&6; }
4777 if test ${ac_cv_prog_cc_c11+y}
4778 then :
4779 printf %s "(cached) " >&6
4780 else $as_nop
4781 ac_cv_prog_cc_c11=no
4782 ac_save_CC=$CC
4783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4784 /* end confdefs.h. */
4785 $ac_c_conftest_c11_program
4786 _ACEOF
4787 for ac_arg in '' -std=gnu11
4788 do
4789 CC="$ac_save_CC $ac_arg"
4790 if ac_fn_c_try_compile "$LINENO"
4791 then :
4792 ac_cv_prog_cc_c11=$ac_arg
4793 fi
4794 rm -f core conftest.err conftest.$ac_objext conftest.beam
4795 test "x$ac_cv_prog_cc_c11" != "xno" && break
4796 done
4797 rm -f conftest.$ac_ext
4798 CC=$ac_save_CC
4799 fi
4800
4801 if test "x$ac_cv_prog_cc_c11" = xno
4802 then :
4803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4804 printf "%s\n" "unsupported" >&6; }
4805 else $as_nop
4806 if test "x$ac_cv_prog_cc_c11" = x
4807 then :
4808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4809 printf "%s\n" "none needed" >&6; }
4810 else $as_nop
4811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4812 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4813 CC="$CC $ac_cv_prog_cc_c11"
4814 fi
4815 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4816 ac_prog_cc_stdc=c11
4817 fi
4818 fi
4819 if test x$ac_prog_cc_stdc = xno
4820 then :
4821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4822 printf %s "checking for $CC option to enable C99 features... " >&6; }
4823 if test ${ac_cv_prog_cc_c99+y}
4824 then :
4825 printf %s "(cached) " >&6
4826 else $as_nop
4827 ac_cv_prog_cc_c99=no
4828 ac_save_CC=$CC
4829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4830 /* end confdefs.h. */
4831 $ac_c_conftest_c99_program
4832 _ACEOF
4833 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4834 do
4835 CC="$ac_save_CC $ac_arg"
4836 if ac_fn_c_try_compile "$LINENO"
4837 then :
4838 ac_cv_prog_cc_c99=$ac_arg
4839 fi
4840 rm -f core conftest.err conftest.$ac_objext conftest.beam
4841 test "x$ac_cv_prog_cc_c99" != "xno" && break
4842 done
4843 rm -f conftest.$ac_ext
4844 CC=$ac_save_CC
4845 fi
4846
4847 if test "x$ac_cv_prog_cc_c99" = xno
4848 then :
4849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4850 printf "%s\n" "unsupported" >&6; }
4851 else $as_nop
4852 if test "x$ac_cv_prog_cc_c99" = x
4853 then :
4854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4855 printf "%s\n" "none needed" >&6; }
4856 else $as_nop
4857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4858 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4859 CC="$CC $ac_cv_prog_cc_c99"
4860 fi
4861 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4862 ac_prog_cc_stdc=c99
4863 fi
4864 fi
4865 if test x$ac_prog_cc_stdc = xno
4866 then :
4867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4868 printf %s "checking for $CC option to enable C89 features... " >&6; }
4869 if test ${ac_cv_prog_cc_c89+y}
4870 then :
4871 printf %s "(cached) " >&6
4872 else $as_nop
4873 ac_cv_prog_cc_c89=no
4874 ac_save_CC=$CC
4875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4876 /* end confdefs.h. */
4877 $ac_c_conftest_c89_program
4878 _ACEOF
4879 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4880 do
4881 CC="$ac_save_CC $ac_arg"
4882 if ac_fn_c_try_compile "$LINENO"
4883 then :
4884 ac_cv_prog_cc_c89=$ac_arg
4885 fi
4886 rm -f core conftest.err conftest.$ac_objext conftest.beam
4887 test "x$ac_cv_prog_cc_c89" != "xno" && break
4888 done
4889 rm -f conftest.$ac_ext
4890 CC=$ac_save_CC
4891 fi
4892
4893 if test "x$ac_cv_prog_cc_c89" = xno
4894 then :
4895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4896 printf "%s\n" "unsupported" >&6; }
4897 else $as_nop
4898 if test "x$ac_cv_prog_cc_c89" = x
4899 then :
4900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4901 printf "%s\n" "none needed" >&6; }
4902 else $as_nop
4903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4904 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4905 CC="$CC $ac_cv_prog_cc_c89"
4906 fi
4907 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4908 ac_prog_cc_stdc=c89
4909 fi
4910 fi
4911
4912 ac_ext=c
4913 ac_cpp='$CPP $CPPFLAGS'
4914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4917
4918
4919 ac_ext=c
4920 ac_cpp='$CPP $CPPFLAGS'
4921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4925 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4926 if test ${am_cv_prog_cc_c_o+y}
4927 then :
4928 printf %s "(cached) " >&6
4929 else $as_nop
4930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4931 /* end confdefs.h. */
4932
4933 int
4934 main (void)
4935 {
4936
4937 ;
4938 return 0;
4939 }
4940 _ACEOF
4941 # Make sure it works both with $CC and with simple cc.
4942 # Following AC_PROG_CC_C_O, we do the test twice because some
4943 # compilers refuse to overwrite an existing .o file with -o,
4944 # though they will create one.
4945 am_cv_prog_cc_c_o=yes
4946 for am_i in 1 2; do
4947 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4948 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4949 ac_status=$?
4950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951 (exit $ac_status); } \
4952 && test -f conftest2.$ac_objext; then
4953 : OK
4954 else
4955 am_cv_prog_cc_c_o=no
4956 break
4957 fi
4958 done
4959 rm -f core conftest*
4960 unset am_i
4961 fi
4962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4963 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4964 if test "$am_cv_prog_cc_c_o" != yes; then
4965 # Losing compiler, so override with the script.
4966 # FIXME: It is wrong to rewrite CC.
4967 # But if we don't then we get into trouble of one sort or another.
4968 # A longer-term fix would be to have automake use am__CC in this case,
4969 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4970 CC="$am_aux_dir/compile $CC"
4971 fi
4972 ac_ext=c
4973 ac_cpp='$CPP $CPPFLAGS'
4974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4977
4978
4979 depcc="$CC" am_compiler_list=
4980
4981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4982 printf %s "checking dependency style of $depcc... " >&6; }
4983 if test ${am_cv_CC_dependencies_compiler_type+y}
4984 then :
4985 printf %s "(cached) " >&6
4986 else $as_nop
4987 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4988 # We make a subdir and do the tests there. Otherwise we can end up
4989 # making bogus files that we don't know about and never remove. For
4990 # instance it was reported that on HP-UX the gcc test will end up
4991 # making a dummy file named 'D' -- because '-MD' means "put the output
4992 # in D".
4993 rm -rf conftest.dir
4994 mkdir conftest.dir
4995 # Copy depcomp to subdir because otherwise we won't find it if we're
4996 # using a relative directory.
4997 cp "$am_depcomp" conftest.dir
4998 cd conftest.dir
4999 # We will build objects and dependencies in a subdirectory because
5000 # it helps to detect inapplicable dependency modes. For instance
5001 # both Tru64's cc and ICC support -MD to output dependencies as a
5002 # side effect of compilation, but ICC will put the dependencies in
5003 # the current directory while Tru64 will put them in the object
5004 # directory.
5005 mkdir sub
5006
5007 am_cv_CC_dependencies_compiler_type=none
5008 if test "$am_compiler_list" = ""; then
5009 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5010 fi
5011 am__universal=false
5012 case " $depcc " in #(
5013 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5014 esac
5015
5016 for depmode in $am_compiler_list; do
5017 # Setup a source with many dependencies, because some compilers
5018 # like to wrap large dependency lists on column 80 (with \), and
5019 # we should not choose a depcomp mode which is confused by this.
5020 #
5021 # We need to recreate these files for each test, as the compiler may
5022 # overwrite some of them when testing with obscure command lines.
5023 # This happens at least with the AIX C compiler.
5024 : > sub/conftest.c
5025 for i in 1 2 3 4 5 6; do
5026 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5027 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5028 # Solaris 10 /bin/sh.
5029 echo '/* dummy */' > sub/conftst$i.h
5030 done
5031 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5032
5033 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5034 # mode. It turns out that the SunPro C++ compiler does not properly
5035 # handle '-M -o', and we need to detect this. Also, some Intel
5036 # versions had trouble with output in subdirs.
5037 am__obj=sub/conftest.${OBJEXT-o}
5038 am__minus_obj="-o $am__obj"
5039 case $depmode in
5040 gcc)
5041 # This depmode causes a compiler race in universal mode.
5042 test "$am__universal" = false || continue
5043 ;;
5044 nosideeffect)
5045 # After this tag, mechanisms are not by side-effect, so they'll
5046 # only be used when explicitly requested.
5047 if test "x$enable_dependency_tracking" = xyes; then
5048 continue
5049 else
5050 break
5051 fi
5052 ;;
5053 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5054 # This compiler won't grok '-c -o', but also, the minuso test has
5055 # not run yet. These depmodes are late enough in the game, and
5056 # so weak that their functioning should not be impacted.
5057 am__obj=conftest.${OBJEXT-o}
5058 am__minus_obj=
5059 ;;
5060 none) break ;;
5061 esac
5062 if depmode=$depmode \
5063 source=sub/conftest.c object=$am__obj \
5064 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5065 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5066 >/dev/null 2>conftest.err &&
5067 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5068 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5069 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5070 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5071 # icc doesn't choke on unknown options, it will just issue warnings
5072 # or remarks (even with -Werror). So we grep stderr for any message
5073 # that says an option was ignored or not supported.
5074 # When given -MP, icc 7.0 and 7.1 complain thusly:
5075 # icc: Command line warning: ignoring option '-M'; no argument required
5076 # The diagnosis changed in icc 8.0:
5077 # icc: Command line remark: option '-MP' not supported
5078 if (grep 'ignoring option' conftest.err ||
5079 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5080 am_cv_CC_dependencies_compiler_type=$depmode
5081 break
5082 fi
5083 fi
5084 done
5085
5086 cd ..
5087 rm -rf conftest.dir
5088 else
5089 am_cv_CC_dependencies_compiler_type=none
5090 fi
5091
5092 fi
5093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5094 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5095 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5096
5097 if
5098 test "x$enable_dependency_tracking" != xno \
5099 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5100 am__fastdepCC_TRUE=
5101 am__fastdepCC_FALSE='#'
5102 else
5103 am__fastdepCC_TRUE='#'
5104 am__fastdepCC_FALSE=
5105 fi
5106
5107
5108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5109 printf %s "checking for a sed that does not truncate output... " >&6; }
5110 if test ${ac_cv_path_SED+y}
5111 then :
5112 printf %s "(cached) " >&6
5113 else $as_nop
5114 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5115 for ac_i in 1 2 3 4 5 6 7; do
5116 ac_script="$ac_script$as_nl$ac_script"
5117 done
5118 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5119 { ac_script=; unset ac_script;}
5120 if test -z "$SED"; then
5121 ac_path_SED_found=false
5122 # Loop through the user's path and test for each of PROGNAME-LIST
5123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5124 for as_dir in $PATH
5125 do
5126 IFS=$as_save_IFS
5127 case $as_dir in #(((
5128 '') as_dir=./ ;;
5129 */) ;;
5130 *) as_dir=$as_dir/ ;;
5131 esac
5132 for ac_prog in sed gsed
5133 do
5134 for ac_exec_ext in '' $ac_executable_extensions; do
5135 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5136 as_fn_executable_p "$ac_path_SED" || continue
5137 # Check for GNU ac_path_SED and select it if it is found.
5138 # Check for GNU $ac_path_SED
5139 case `"$ac_path_SED" --version 2>&1` in
5140 *GNU*)
5141 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5142 *)
5143 ac_count=0
5144 printf %s 0123456789 >"conftest.in"
5145 while :
5146 do
5147 cat "conftest.in" "conftest.in" >"conftest.tmp"
5148 mv "conftest.tmp" "conftest.in"
5149 cp "conftest.in" "conftest.nl"
5150 printf "%s\n" '' >> "conftest.nl"
5151 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5152 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5153 as_fn_arith $ac_count + 1 && ac_count=$as_val
5154 if test $ac_count -gt ${ac_path_SED_max-0}; then
5155 # Best one so far, save it but keep looking for a better one
5156 ac_cv_path_SED="$ac_path_SED"
5157 ac_path_SED_max=$ac_count
5158 fi
5159 # 10*(2^10) chars as input seems more than enough
5160 test $ac_count -gt 10 && break
5161 done
5162 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5163 esac
5164
5165 $ac_path_SED_found && break 3
5166 done
5167 done
5168 done
5169 IFS=$as_save_IFS
5170 if test -z "$ac_cv_path_SED"; then
5171 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5172 fi
5173 else
5174 ac_cv_path_SED=$SED
5175 fi
5176
5177 fi
5178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5179 printf "%s\n" "$ac_cv_path_SED" >&6; }
5180 SED="$ac_cv_path_SED"
5181 rm -f conftest.sed
5182
5183 test -z "$SED" && SED=sed
5184 Xsed="$SED -e 1s/^X//"
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5197 printf %s "checking for grep that handles long lines and -e... " >&6; }
5198 if test ${ac_cv_path_GREP+y}
5199 then :
5200 printf %s "(cached) " >&6
5201 else $as_nop
5202 if test -z "$GREP"; then
5203 ac_path_GREP_found=false
5204 # Loop through the user's path and test for each of PROGNAME-LIST
5205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5206 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5207 do
5208 IFS=$as_save_IFS
5209 case $as_dir in #(((
5210 '') as_dir=./ ;;
5211 */) ;;
5212 *) as_dir=$as_dir/ ;;
5213 esac
5214 for ac_prog in grep ggrep
5215 do
5216 for ac_exec_ext in '' $ac_executable_extensions; do
5217 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5218 as_fn_executable_p "$ac_path_GREP" || continue
5219 # Check for GNU ac_path_GREP and select it if it is found.
5220 # Check for GNU $ac_path_GREP
5221 case `"$ac_path_GREP" --version 2>&1` in
5222 *GNU*)
5223 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5224 *)
5225 ac_count=0
5226 printf %s 0123456789 >"conftest.in"
5227 while :
5228 do
5229 cat "conftest.in" "conftest.in" >"conftest.tmp"
5230 mv "conftest.tmp" "conftest.in"
5231 cp "conftest.in" "conftest.nl"
5232 printf "%s\n" 'GREP' >> "conftest.nl"
5233 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5234 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5235 as_fn_arith $ac_count + 1 && ac_count=$as_val
5236 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5237 # Best one so far, save it but keep looking for a better one
5238 ac_cv_path_GREP="$ac_path_GREP"
5239 ac_path_GREP_max=$ac_count
5240 fi
5241 # 10*(2^10) chars as input seems more than enough
5242 test $ac_count -gt 10 && break
5243 done
5244 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5245 esac
5246
5247 $ac_path_GREP_found && break 3
5248 done
5249 done
5250 done
5251 IFS=$as_save_IFS
5252 if test -z "$ac_cv_path_GREP"; then
5253 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5254 fi
5255 else
5256 ac_cv_path_GREP=$GREP
5257 fi
5258
5259 fi
5260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5261 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5262 GREP="$ac_cv_path_GREP"
5263
5264
5265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5266 printf %s "checking for egrep... " >&6; }
5267 if test ${ac_cv_path_EGREP+y}
5268 then :
5269 printf %s "(cached) " >&6
5270 else $as_nop
5271 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5272 then ac_cv_path_EGREP="$GREP -E"
5273 else
5274 if test -z "$EGREP"; then
5275 ac_path_EGREP_found=false
5276 # Loop through the user's path and test for each of PROGNAME-LIST
5277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5278 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5279 do
5280 IFS=$as_save_IFS
5281 case $as_dir in #(((
5282 '') as_dir=./ ;;
5283 */) ;;
5284 *) as_dir=$as_dir/ ;;
5285 esac
5286 for ac_prog in egrep
5287 do
5288 for ac_exec_ext in '' $ac_executable_extensions; do
5289 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5290 as_fn_executable_p "$ac_path_EGREP" || continue
5291 # Check for GNU ac_path_EGREP and select it if it is found.
5292 # Check for GNU $ac_path_EGREP
5293 case `"$ac_path_EGREP" --version 2>&1` in
5294 *GNU*)
5295 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5296 *)
5297 ac_count=0
5298 printf %s 0123456789 >"conftest.in"
5299 while :
5300 do
5301 cat "conftest.in" "conftest.in" >"conftest.tmp"
5302 mv "conftest.tmp" "conftest.in"
5303 cp "conftest.in" "conftest.nl"
5304 printf "%s\n" 'EGREP' >> "conftest.nl"
5305 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5306 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5307 as_fn_arith $ac_count + 1 && ac_count=$as_val
5308 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5309 # Best one so far, save it but keep looking for a better one
5310 ac_cv_path_EGREP="$ac_path_EGREP"
5311 ac_path_EGREP_max=$ac_count
5312 fi
5313 # 10*(2^10) chars as input seems more than enough
5314 test $ac_count -gt 10 && break
5315 done
5316 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5317 esac
5318
5319 $ac_path_EGREP_found && break 3
5320 done
5321 done
5322 done
5323 IFS=$as_save_IFS
5324 if test -z "$ac_cv_path_EGREP"; then
5325 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5326 fi
5327 else
5328 ac_cv_path_EGREP=$EGREP
5329 fi
5330
5331 fi
5332 fi
5333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5334 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5335 EGREP="$ac_cv_path_EGREP"
5336
5337
5338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5339 printf %s "checking for fgrep... " >&6; }
5340 if test ${ac_cv_path_FGREP+y}
5341 then :
5342 printf %s "(cached) " >&6
5343 else $as_nop
5344 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5345 then ac_cv_path_FGREP="$GREP -F"
5346 else
5347 if test -z "$FGREP"; then
5348 ac_path_FGREP_found=false
5349 # Loop through the user's path and test for each of PROGNAME-LIST
5350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5351 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5352 do
5353 IFS=$as_save_IFS
5354 case $as_dir in #(((
5355 '') as_dir=./ ;;
5356 */) ;;
5357 *) as_dir=$as_dir/ ;;
5358 esac
5359 for ac_prog in fgrep
5360 do
5361 for ac_exec_ext in '' $ac_executable_extensions; do
5362 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5363 as_fn_executable_p "$ac_path_FGREP" || continue
5364 # Check for GNU ac_path_FGREP and select it if it is found.
5365 # Check for GNU $ac_path_FGREP
5366 case `"$ac_path_FGREP" --version 2>&1` in
5367 *GNU*)
5368 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5369 *)
5370 ac_count=0
5371 printf %s 0123456789 >"conftest.in"
5372 while :
5373 do
5374 cat "conftest.in" "conftest.in" >"conftest.tmp"
5375 mv "conftest.tmp" "conftest.in"
5376 cp "conftest.in" "conftest.nl"
5377 printf "%s\n" 'FGREP' >> "conftest.nl"
5378 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5379 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5380 as_fn_arith $ac_count + 1 && ac_count=$as_val
5381 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5382 # Best one so far, save it but keep looking for a better one
5383 ac_cv_path_FGREP="$ac_path_FGREP"
5384 ac_path_FGREP_max=$ac_count
5385 fi
5386 # 10*(2^10) chars as input seems more than enough
5387 test $ac_count -gt 10 && break
5388 done
5389 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5390 esac
5391
5392 $ac_path_FGREP_found && break 3
5393 done
5394 done
5395 done
5396 IFS=$as_save_IFS
5397 if test -z "$ac_cv_path_FGREP"; then
5398 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5399 fi
5400 else
5401 ac_cv_path_FGREP=$FGREP
5402 fi
5403
5404 fi
5405 fi
5406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5407 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5408 FGREP="$ac_cv_path_FGREP"
5409
5410
5411 test -z "$GREP" && GREP=grep
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431 # Check whether --with-gnu-ld was given.
5432 if test ${with_gnu_ld+y}
5433 then :
5434 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5435 else $as_nop
5436 with_gnu_ld=no
5437 fi
5438
5439 ac_prog=ld
5440 if test yes = "$GCC"; then
5441 # Check if gcc -print-prog-name=ld gives a path.
5442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5443 printf %s "checking for ld used by $CC... " >&6; }
5444 case $host in
5445 *-*-mingw*)
5446 # gcc leaves a trailing carriage return, which upsets mingw
5447 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5448 *)
5449 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5450 esac
5451 case $ac_prog in
5452 # Accept absolute paths.
5453 [\\/]* | ?:[\\/]*)
5454 re_direlt='/[^/][^/]*/\.\./'
5455 # Canonicalize the pathname of ld
5456 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5457 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5458 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5459 done
5460 test -z "$LD" && LD=$ac_prog
5461 ;;
5462 "")
5463 # If it fails, then pretend we aren't using GCC.
5464 ac_prog=ld
5465 ;;
5466 *)
5467 # If it is relative, then search for the first ld in PATH.
5468 with_gnu_ld=unknown
5469 ;;
5470 esac
5471 elif test yes = "$with_gnu_ld"; then
5472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5473 printf %s "checking for GNU ld... " >&6; }
5474 else
5475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5476 printf %s "checking for non-GNU ld... " >&6; }
5477 fi
5478 if test ${lt_cv_path_LD+y}
5479 then :
5480 printf %s "(cached) " >&6
5481 else $as_nop
5482 if test -z "$LD"; then
5483 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5484 for ac_dir in $PATH; do
5485 IFS=$lt_save_ifs
5486 test -z "$ac_dir" && ac_dir=.
5487 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5488 lt_cv_path_LD=$ac_dir/$ac_prog
5489 # Check to see if the program is GNU ld. I'd rather use --version,
5490 # but apparently some variants of GNU ld only accept -v.
5491 # Break only if it was the GNU/non-GNU ld that we prefer.
5492 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5493 *GNU* | *'with BFD'*)
5494 test no != "$with_gnu_ld" && break
5495 ;;
5496 *)
5497 test yes != "$with_gnu_ld" && break
5498 ;;
5499 esac
5500 fi
5501 done
5502 IFS=$lt_save_ifs
5503 else
5504 lt_cv_path_LD=$LD # Let the user override the test with a path.
5505 fi
5506 fi
5507
5508 LD=$lt_cv_path_LD
5509 if test -n "$LD"; then
5510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5511 printf "%s\n" "$LD" >&6; }
5512 else
5513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5514 printf "%s\n" "no" >&6; }
5515 fi
5516 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5518 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5519 if test ${lt_cv_prog_gnu_ld+y}
5520 then :
5521 printf %s "(cached) " >&6
5522 else $as_nop
5523 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5524 case `$LD -v 2>&1 </dev/null` in
5525 *GNU* | *'with BFD'*)
5526 lt_cv_prog_gnu_ld=yes
5527 ;;
5528 *)
5529 lt_cv_prog_gnu_ld=no
5530 ;;
5531 esac
5532 fi
5533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5534 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5535 with_gnu_ld=$lt_cv_prog_gnu_ld
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5546 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5547 if test ${lt_cv_path_NM+y}
5548 then :
5549 printf %s "(cached) " >&6
5550 else $as_nop
5551 if test -n "$NM"; then
5552 # Let the user override the test.
5553 lt_cv_path_NM=$NM
5554 else
5555 lt_nm_to_check=${ac_tool_prefix}nm
5556 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5557 lt_nm_to_check="$lt_nm_to_check nm"
5558 fi
5559 for lt_tmp_nm in $lt_nm_to_check; do
5560 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5561 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5562 IFS=$lt_save_ifs
5563 test -z "$ac_dir" && ac_dir=.
5564 tmp_nm=$ac_dir/$lt_tmp_nm
5565 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5566 # Check to see if the nm accepts a BSD-compat flag.
5567 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5568 # nm: unknown option "B" ignored
5569 # Tru64's nm complains that /dev/null is an invalid object file
5570 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5571 case $build_os in
5572 mingw*) lt_bad_file=conftest.nm/nofile ;;
5573 *) lt_bad_file=/dev/null ;;
5574 esac
5575 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5576 *$lt_bad_file* | *'Invalid file or object type'*)
5577 lt_cv_path_NM="$tmp_nm -B"
5578 break 2
5579 ;;
5580 *)
5581 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5582 */dev/null*)
5583 lt_cv_path_NM="$tmp_nm -p"
5584 break 2
5585 ;;
5586 *)
5587 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5588 continue # so that we can try to find one that supports BSD flags
5589 ;;
5590 esac
5591 ;;
5592 esac
5593 fi
5594 done
5595 IFS=$lt_save_ifs
5596 done
5597 : ${lt_cv_path_NM=no}
5598 fi
5599 fi
5600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5601 printf "%s\n" "$lt_cv_path_NM" >&6; }
5602 if test no != "$lt_cv_path_NM"; then
5603 NM=$lt_cv_path_NM
5604 else
5605 # Didn't find any BSD compatible name lister, look for dumpbin.
5606 if test -n "$DUMPBIN"; then :
5607 # Let the user override the test.
5608 else
5609 if test -n "$ac_tool_prefix"; then
5610 for ac_prog in dumpbin "link -dump"
5611 do
5612 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5613 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5615 printf %s "checking for $ac_word... " >&6; }
5616 if test ${ac_cv_prog_DUMPBIN+y}
5617 then :
5618 printf %s "(cached) " >&6
5619 else $as_nop
5620 if test -n "$DUMPBIN"; then
5621 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5622 else
5623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5624 for as_dir in $PATH
5625 do
5626 IFS=$as_save_IFS
5627 case $as_dir in #(((
5628 '') as_dir=./ ;;
5629 */) ;;
5630 *) as_dir=$as_dir/ ;;
5631 esac
5632 for ac_exec_ext in '' $ac_executable_extensions; do
5633 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5634 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5635 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5636 break 2
5637 fi
5638 done
5639 done
5640 IFS=$as_save_IFS
5641
5642 fi
5643 fi
5644 DUMPBIN=$ac_cv_prog_DUMPBIN
5645 if test -n "$DUMPBIN"; then
5646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5647 printf "%s\n" "$DUMPBIN" >&6; }
5648 else
5649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5650 printf "%s\n" "no" >&6; }
5651 fi
5652
5653
5654 test -n "$DUMPBIN" && break
5655 done
5656 fi
5657 if test -z "$DUMPBIN"; then
5658 ac_ct_DUMPBIN=$DUMPBIN
5659 for ac_prog in dumpbin "link -dump"
5660 do
5661 # Extract the first word of "$ac_prog", so it can be a program name with args.
5662 set dummy $ac_prog; ac_word=$2
5663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5664 printf %s "checking for $ac_word... " >&6; }
5665 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5666 then :
5667 printf %s "(cached) " >&6
5668 else $as_nop
5669 if test -n "$ac_ct_DUMPBIN"; then
5670 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5671 else
5672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5673 for as_dir in $PATH
5674 do
5675 IFS=$as_save_IFS
5676 case $as_dir in #(((
5677 '') as_dir=./ ;;
5678 */) ;;
5679 *) as_dir=$as_dir/ ;;
5680 esac
5681 for ac_exec_ext in '' $ac_executable_extensions; do
5682 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5683 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5684 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5685 break 2
5686 fi
5687 done
5688 done
5689 IFS=$as_save_IFS
5690
5691 fi
5692 fi
5693 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5694 if test -n "$ac_ct_DUMPBIN"; then
5695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5696 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5697 else
5698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5699 printf "%s\n" "no" >&6; }
5700 fi
5701
5702
5703 test -n "$ac_ct_DUMPBIN" && break
5704 done
5705
5706 if test "x$ac_ct_DUMPBIN" = x; then
5707 DUMPBIN=":"
5708 else
5709 case $cross_compiling:$ac_tool_warned in
5710 yes:)
5711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5712 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5713 ac_tool_warned=yes ;;
5714 esac
5715 DUMPBIN=$ac_ct_DUMPBIN
5716 fi
5717 fi
5718
5719 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5720 *COFF*)
5721 DUMPBIN="$DUMPBIN -symbols -headers"
5722 ;;
5723 *)
5724 DUMPBIN=:
5725 ;;
5726 esac
5727 fi
5728
5729 if test : != "$DUMPBIN"; then
5730 NM=$DUMPBIN
5731 fi
5732 fi
5733 test -z "$NM" && NM=nm
5734
5735
5736
5737
5738
5739
5740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5741 printf %s "checking the name lister ($NM) interface... " >&6; }
5742 if test ${lt_cv_nm_interface+y}
5743 then :
5744 printf %s "(cached) " >&6
5745 else $as_nop
5746 lt_cv_nm_interface="BSD nm"
5747 echo "int some_variable = 0;" > conftest.$ac_ext
5748 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5749 (eval "$ac_compile" 2>conftest.err)
5750 cat conftest.err >&5
5751 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5752 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5753 cat conftest.err >&5
5754 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5755 cat conftest.out >&5
5756 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5757 lt_cv_nm_interface="MS dumpbin"
5758 fi
5759 rm -f conftest*
5760 fi
5761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5762 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5763
5764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5765 printf %s "checking whether ln -s works... " >&6; }
5766 LN_S=$as_ln_s
5767 if test "$LN_S" = "ln -s"; then
5768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5769 printf "%s\n" "yes" >&6; }
5770 else
5771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5772 printf "%s\n" "no, using $LN_S" >&6; }
5773 fi
5774
5775 # find the maximum length of command line arguments
5776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5777 printf %s "checking the maximum length of command line arguments... " >&6; }
5778 if test ${lt_cv_sys_max_cmd_len+y}
5779 then :
5780 printf %s "(cached) " >&6
5781 else $as_nop
5782 i=0
5783 teststring=ABCD
5784
5785 case $build_os in
5786 msdosdjgpp*)
5787 # On DJGPP, this test can blow up pretty badly due to problems in libc
5788 # (any single argument exceeding 2000 bytes causes a buffer overrun
5789 # during glob expansion). Even if it were fixed, the result of this
5790 # check would be larger than it should be.
5791 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5792 ;;
5793
5794 gnu*)
5795 # Under GNU Hurd, this test is not required because there is
5796 # no limit to the length of command line arguments.
5797 # Libtool will interpret -1 as no limit whatsoever
5798 lt_cv_sys_max_cmd_len=-1;
5799 ;;
5800
5801 cygwin* | mingw* | cegcc*)
5802 # On Win9x/ME, this test blows up -- it succeeds, but takes
5803 # about 5 minutes as the teststring grows exponentially.
5804 # Worse, since 9x/ME are not pre-emptively multitasking,
5805 # you end up with a "frozen" computer, even though with patience
5806 # the test eventually succeeds (with a max line length of 256k).
5807 # Instead, let's just punt: use the minimum linelength reported by
5808 # all of the supported platforms: 8192 (on NT/2K/XP).
5809 lt_cv_sys_max_cmd_len=8192;
5810 ;;
5811
5812 mint*)
5813 # On MiNT this can take a long time and run out of memory.
5814 lt_cv_sys_max_cmd_len=8192;
5815 ;;
5816
5817 amigaos*)
5818 # On AmigaOS with pdksh, this test takes hours, literally.
5819 # So we just punt and use a minimum line length of 8192.
5820 lt_cv_sys_max_cmd_len=8192;
5821 ;;
5822
5823 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5824 # This has been around since 386BSD, at least. Likely further.
5825 if test -x /sbin/sysctl; then
5826 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5827 elif test -x /usr/sbin/sysctl; then
5828 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5829 else
5830 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5831 fi
5832 # And add a safety zone
5833 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5834 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5835 ;;
5836
5837 interix*)
5838 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5839 lt_cv_sys_max_cmd_len=196608
5840 ;;
5841
5842 os2*)
5843 # The test takes a long time on OS/2.
5844 lt_cv_sys_max_cmd_len=8192
5845 ;;
5846
5847 osf*)
5848 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5849 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5850 # nice to cause kernel panics so lets avoid the loop below.
5851 # First set a reasonable default.
5852 lt_cv_sys_max_cmd_len=16384
5853 #
5854 if test -x /sbin/sysconfig; then
5855 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5856 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5857 esac
5858 fi
5859 ;;
5860 sco3.2v5*)
5861 lt_cv_sys_max_cmd_len=102400
5862 ;;
5863 sysv5* | sco5v6* | sysv4.2uw2*)
5864 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5865 if test -n "$kargmax"; then
5866 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5867 else
5868 lt_cv_sys_max_cmd_len=32768
5869 fi
5870 ;;
5871 *)
5872 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5873 if test -n "$lt_cv_sys_max_cmd_len" && \
5874 test undefined != "$lt_cv_sys_max_cmd_len"; then
5875 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5876 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5877 else
5878 # Make teststring a little bigger before we do anything with it.
5879 # a 1K string should be a reasonable start.
5880 for i in 1 2 3 4 5 6 7 8; do
5881 teststring=$teststring$teststring
5882 done
5883 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5884 # If test is not a shell built-in, we'll probably end up computing a
5885 # maximum length that is only half of the actual maximum length, but
5886 # we can't tell.
5887 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5888 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5889 test 17 != "$i" # 1/2 MB should be enough
5890 do
5891 i=`expr $i + 1`
5892 teststring=$teststring$teststring
5893 done
5894 # Only check the string length outside the loop.
5895 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5896 teststring=
5897 # Add a significant safety factor because C++ compilers can tack on
5898 # massive amounts of additional arguments before passing them to the
5899 # linker. It appears as though 1/2 is a usable value.
5900 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5901 fi
5902 ;;
5903 esac
5904
5905 fi
5906
5907 if test -n "$lt_cv_sys_max_cmd_len"; then
5908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5909 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5910 else
5911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5912 printf "%s\n" "none" >&6; }
5913 fi
5914 max_cmd_len=$lt_cv_sys_max_cmd_len
5915
5916
5917
5918
5919
5920
5921 : ${CP="cp -f"}
5922 : ${MV="mv -f"}
5923 : ${RM="rm -f"}
5924
5925 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5926 lt_unset=unset
5927 else
5928 lt_unset=false
5929 fi
5930
5931
5932
5933
5934
5935 # test EBCDIC or ASCII
5936 case `echo X|tr X '\101'` in
5937 A) # ASCII based system
5938 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5939 lt_SP2NL='tr \040 \012'
5940 lt_NL2SP='tr \015\012 \040\040'
5941 ;;
5942 *) # EBCDIC based system
5943 lt_SP2NL='tr \100 \n'
5944 lt_NL2SP='tr \r\n \100\100'
5945 ;;
5946 esac
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5957 printf %s "checking how to convert $build file names to $host format... " >&6; }
5958 if test ${lt_cv_to_host_file_cmd+y}
5959 then :
5960 printf %s "(cached) " >&6
5961 else $as_nop
5962 case $host in
5963 *-*-mingw* )
5964 case $build in
5965 *-*-mingw* ) # actually msys
5966 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5967 ;;
5968 *-*-cygwin* )
5969 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5970 ;;
5971 * ) # otherwise, assume *nix
5972 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5973 ;;
5974 esac
5975 ;;
5976 *-*-cygwin* )
5977 case $build in
5978 *-*-mingw* ) # actually msys
5979 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5980 ;;
5981 *-*-cygwin* )
5982 lt_cv_to_host_file_cmd=func_convert_file_noop
5983 ;;
5984 * ) # otherwise, assume *nix
5985 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5986 ;;
5987 esac
5988 ;;
5989 * ) # unhandled hosts (and "normal" native builds)
5990 lt_cv_to_host_file_cmd=func_convert_file_noop
5991 ;;
5992 esac
5993
5994 fi
5995
5996 to_host_file_cmd=$lt_cv_to_host_file_cmd
5997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5998 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5999
6000
6001
6002
6003
6004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6005 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6006 if test ${lt_cv_to_tool_file_cmd+y}
6007 then :
6008 printf %s "(cached) " >&6
6009 else $as_nop
6010 #assume ordinary cross tools, or native build.
6011 lt_cv_to_tool_file_cmd=func_convert_file_noop
6012 case $host in
6013 *-*-mingw* )
6014 case $build in
6015 *-*-mingw* ) # actually msys
6016 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6017 ;;
6018 esac
6019 ;;
6020 esac
6021
6022 fi
6023
6024 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6026 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6027
6028
6029
6030
6031
6032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6033 printf %s "checking for $LD option to reload object files... " >&6; }
6034 if test ${lt_cv_ld_reload_flag+y}
6035 then :
6036 printf %s "(cached) " >&6
6037 else $as_nop
6038 lt_cv_ld_reload_flag='-r'
6039 fi
6040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6041 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6042 reload_flag=$lt_cv_ld_reload_flag
6043 case $reload_flag in
6044 "" | " "*) ;;
6045 *) reload_flag=" $reload_flag" ;;
6046 esac
6047 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6048 case $host_os in
6049 cygwin* | mingw* | pw32* | cegcc*)
6050 if test yes != "$GCC"; then
6051 reload_cmds=false
6052 fi
6053 ;;
6054 darwin*)
6055 if test yes = "$GCC"; then
6056 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6057 else
6058 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6059 fi
6060 ;;
6061 esac
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071 if test -n "$ac_tool_prefix"; then
6072 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
6073 set dummy ${ac_tool_prefix}file; ac_word=$2
6074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6075 printf %s "checking for $ac_word... " >&6; }
6076 if test ${ac_cv_prog_FILECMD+y}
6077 then :
6078 printf %s "(cached) " >&6
6079 else $as_nop
6080 if test -n "$FILECMD"; then
6081 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6082 else
6083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6084 for as_dir in $PATH
6085 do
6086 IFS=$as_save_IFS
6087 case $as_dir in #(((
6088 '') as_dir=./ ;;
6089 */) ;;
6090 *) as_dir=$as_dir/ ;;
6091 esac
6092 for ac_exec_ext in '' $ac_executable_extensions; do
6093 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6094 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
6095 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6096 break 2
6097 fi
6098 done
6099 done
6100 IFS=$as_save_IFS
6101
6102 fi
6103 fi
6104 FILECMD=$ac_cv_prog_FILECMD
6105 if test -n "$FILECMD"; then
6106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6107 printf "%s\n" "$FILECMD" >&6; }
6108 else
6109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6110 printf "%s\n" "no" >&6; }
6111 fi
6112
6113
6114 fi
6115 if test -z "$ac_cv_prog_FILECMD"; then
6116 ac_ct_FILECMD=$FILECMD
6117 # Extract the first word of "file", so it can be a program name with args.
6118 set dummy file; ac_word=$2
6119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6120 printf %s "checking for $ac_word... " >&6; }
6121 if test ${ac_cv_prog_ac_ct_FILECMD+y}
6122 then :
6123 printf %s "(cached) " >&6
6124 else $as_nop
6125 if test -n "$ac_ct_FILECMD"; then
6126 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
6127 else
6128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6129 for as_dir in $PATH
6130 do
6131 IFS=$as_save_IFS
6132 case $as_dir in #(((
6133 '') as_dir=./ ;;
6134 */) ;;
6135 *) as_dir=$as_dir/ ;;
6136 esac
6137 for ac_exec_ext in '' $ac_executable_extensions; do
6138 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6139 ac_cv_prog_ac_ct_FILECMD="file"
6140 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6141 break 2
6142 fi
6143 done
6144 done
6145 IFS=$as_save_IFS
6146
6147 fi
6148 fi
6149 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
6150 if test -n "$ac_ct_FILECMD"; then
6151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
6152 printf "%s\n" "$ac_ct_FILECMD" >&6; }
6153 else
6154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6155 printf "%s\n" "no" >&6; }
6156 fi
6157
6158 if test "x$ac_ct_FILECMD" = x; then
6159 FILECMD=":"
6160 else
6161 case $cross_compiling:$ac_tool_warned in
6162 yes:)
6163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6164 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6165 ac_tool_warned=yes ;;
6166 esac
6167 FILECMD=$ac_ct_FILECMD
6168 fi
6169 else
6170 FILECMD="$ac_cv_prog_FILECMD"
6171 fi
6172
6173
6174
6175
6176
6177
6178
6179 if test -n "$ac_tool_prefix"; then
6180 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6181 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6183 printf %s "checking for $ac_word... " >&6; }
6184 if test ${ac_cv_prog_OBJDUMP+y}
6185 then :
6186 printf %s "(cached) " >&6
6187 else $as_nop
6188 if test -n "$OBJDUMP"; then
6189 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6190 else
6191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6192 for as_dir in $PATH
6193 do
6194 IFS=$as_save_IFS
6195 case $as_dir in #(((
6196 '') as_dir=./ ;;
6197 */) ;;
6198 *) as_dir=$as_dir/ ;;
6199 esac
6200 for ac_exec_ext in '' $ac_executable_extensions; do
6201 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6202 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6203 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6204 break 2
6205 fi
6206 done
6207 done
6208 IFS=$as_save_IFS
6209
6210 fi
6211 fi
6212 OBJDUMP=$ac_cv_prog_OBJDUMP
6213 if test -n "$OBJDUMP"; then
6214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6215 printf "%s\n" "$OBJDUMP" >&6; }
6216 else
6217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6218 printf "%s\n" "no" >&6; }
6219 fi
6220
6221
6222 fi
6223 if test -z "$ac_cv_prog_OBJDUMP"; then
6224 ac_ct_OBJDUMP=$OBJDUMP
6225 # Extract the first word of "objdump", so it can be a program name with args.
6226 set dummy objdump; ac_word=$2
6227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6228 printf %s "checking for $ac_word... " >&6; }
6229 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6230 then :
6231 printf %s "(cached) " >&6
6232 else $as_nop
6233 if test -n "$ac_ct_OBJDUMP"; then
6234 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6235 else
6236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6237 for as_dir in $PATH
6238 do
6239 IFS=$as_save_IFS
6240 case $as_dir in #(((
6241 '') as_dir=./ ;;
6242 */) ;;
6243 *) as_dir=$as_dir/ ;;
6244 esac
6245 for ac_exec_ext in '' $ac_executable_extensions; do
6246 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6247 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6248 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6249 break 2
6250 fi
6251 done
6252 done
6253 IFS=$as_save_IFS
6254
6255 fi
6256 fi
6257 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6258 if test -n "$ac_ct_OBJDUMP"; then
6259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6260 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6261 else
6262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6263 printf "%s\n" "no" >&6; }
6264 fi
6265
6266 if test "x$ac_ct_OBJDUMP" = x; then
6267 OBJDUMP="false"
6268 else
6269 case $cross_compiling:$ac_tool_warned in
6270 yes:)
6271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6272 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6273 ac_tool_warned=yes ;;
6274 esac
6275 OBJDUMP=$ac_ct_OBJDUMP
6276 fi
6277 else
6278 OBJDUMP="$ac_cv_prog_OBJDUMP"
6279 fi
6280
6281 test -z "$OBJDUMP" && OBJDUMP=objdump
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6292 printf %s "checking how to recognize dependent libraries... " >&6; }
6293 if test ${lt_cv_deplibs_check_method+y}
6294 then :
6295 printf %s "(cached) " >&6
6296 else $as_nop
6297 lt_cv_file_magic_cmd='$MAGIC_CMD'
6298 lt_cv_file_magic_test_file=
6299 lt_cv_deplibs_check_method='unknown'
6300 # Need to set the preceding variable on all platforms that support
6301 # interlibrary dependencies.
6302 # 'none' -- dependencies not supported.
6303 # 'unknown' -- same as none, but documents that we really don't know.
6304 # 'pass_all' -- all dependencies passed with no checks.
6305 # 'test_compile' -- check by making test program.
6306 # 'file_magic [[regex]]' -- check by looking for files in library path
6307 # that responds to the $file_magic_cmd with a given extended regex.
6308 # If you have 'file' or equivalent on your system and you're not sure
6309 # whether 'pass_all' will *always* work, you probably want this one.
6310
6311 case $host_os in
6312 aix[4-9]*)
6313 lt_cv_deplibs_check_method=pass_all
6314 ;;
6315
6316 beos*)
6317 lt_cv_deplibs_check_method=pass_all
6318 ;;
6319
6320 bsdi[45]*)
6321 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6322 lt_cv_file_magic_cmd='$FILECMD -L'
6323 lt_cv_file_magic_test_file=/shlib/libc.so
6324 ;;
6325
6326 cygwin*)
6327 # func_win32_libid is a shell function defined in ltmain.sh
6328 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6329 lt_cv_file_magic_cmd='func_win32_libid'
6330 ;;
6331
6332 mingw* | pw32*)
6333 # Base MSYS/MinGW do not provide the 'file' command needed by
6334 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6335 # unless we find 'file', for example because we are cross-compiling.
6336 if ( file / ) >/dev/null 2>&1; then
6337 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6338 lt_cv_file_magic_cmd='func_win32_libid'
6339 else
6340 # Keep this pattern in sync with the one in func_win32_libid.
6341 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6342 lt_cv_file_magic_cmd='$OBJDUMP -f'
6343 fi
6344 ;;
6345
6346 cegcc*)
6347 # use the weaker test based on 'objdump'. See mingw*.
6348 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6349 lt_cv_file_magic_cmd='$OBJDUMP -f'
6350 ;;
6351
6352 darwin* | rhapsody*)
6353 lt_cv_deplibs_check_method=pass_all
6354 ;;
6355
6356 freebsd* | dragonfly* | midnightbsd*)
6357 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6358 case $host_cpu in
6359 i*86 )
6360 # Not sure whether the presence of OpenBSD here was a mistake.
6361 # Let's accept both of them until this is cleared up.
6362 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6363 lt_cv_file_magic_cmd=$FILECMD
6364 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6365 ;;
6366 esac
6367 else
6368 lt_cv_deplibs_check_method=pass_all
6369 fi
6370 ;;
6371
6372 haiku*)
6373 lt_cv_deplibs_check_method=pass_all
6374 ;;
6375
6376 hpux10.20* | hpux11*)
6377 lt_cv_file_magic_cmd=$FILECMD
6378 case $host_cpu in
6379 ia64*)
6380 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6381 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6382 ;;
6383 hppa*64*)
6384 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]'
6385 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6386 ;;
6387 *)
6388 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6389 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6390 ;;
6391 esac
6392 ;;
6393
6394 interix[3-9]*)
6395 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6396 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6397 ;;
6398
6399 irix5* | irix6* | nonstopux*)
6400 case $LD in
6401 *-32|*"-32 ") libmagic=32-bit;;
6402 *-n32|*"-n32 ") libmagic=N32;;
6403 *-64|*"-64 ") libmagic=64-bit;;
6404 *) libmagic=never-match;;
6405 esac
6406 lt_cv_deplibs_check_method=pass_all
6407 ;;
6408
6409 # This must be glibc/ELF.
6410 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6411 lt_cv_deplibs_check_method=pass_all
6412 ;;
6413
6414 netbsd* | netbsdelf*-gnu)
6415 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6416 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6417 else
6418 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6419 fi
6420 ;;
6421
6422 newos6*)
6423 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6424 lt_cv_file_magic_cmd=$FILECMD
6425 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6426 ;;
6427
6428 *nto* | *qnx*)
6429 lt_cv_deplibs_check_method=pass_all
6430 ;;
6431
6432 openbsd* | bitrig*)
6433 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6434 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6435 else
6436 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6437 fi
6438 ;;
6439
6440 osf3* | osf4* | osf5*)
6441 lt_cv_deplibs_check_method=pass_all
6442 ;;
6443
6444 rdos*)
6445 lt_cv_deplibs_check_method=pass_all
6446 ;;
6447
6448 solaris*)
6449 lt_cv_deplibs_check_method=pass_all
6450 ;;
6451
6452 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6453 lt_cv_deplibs_check_method=pass_all
6454 ;;
6455
6456 sysv4 | sysv4.3*)
6457 case $host_vendor in
6458 motorola)
6459 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]'
6460 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6461 ;;
6462 ncr)
6463 lt_cv_deplibs_check_method=pass_all
6464 ;;
6465 sequent)
6466 lt_cv_file_magic_cmd='/bin/file'
6467 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6468 ;;
6469 sni)
6470 lt_cv_file_magic_cmd='/bin/file'
6471 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6472 lt_cv_file_magic_test_file=/lib/libc.so
6473 ;;
6474 siemens)
6475 lt_cv_deplibs_check_method=pass_all
6476 ;;
6477 pc)
6478 lt_cv_deplibs_check_method=pass_all
6479 ;;
6480 esac
6481 ;;
6482
6483 tpf*)
6484 lt_cv_deplibs_check_method=pass_all
6485 ;;
6486 os2*)
6487 lt_cv_deplibs_check_method=pass_all
6488 ;;
6489 esac
6490
6491 fi
6492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6493 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6494
6495 file_magic_glob=
6496 want_nocaseglob=no
6497 if test "$build" = "$host"; then
6498 case $host_os in
6499 mingw* | pw32*)
6500 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6501 want_nocaseglob=yes
6502 else
6503 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6504 fi
6505 ;;
6506 esac
6507 fi
6508
6509 file_magic_cmd=$lt_cv_file_magic_cmd
6510 deplibs_check_method=$lt_cv_deplibs_check_method
6511 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534 if test -n "$ac_tool_prefix"; then
6535 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6536 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6538 printf %s "checking for $ac_word... " >&6; }
6539 if test ${ac_cv_prog_DLLTOOL+y}
6540 then :
6541 printf %s "(cached) " >&6
6542 else $as_nop
6543 if test -n "$DLLTOOL"; then
6544 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6545 else
6546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6547 for as_dir in $PATH
6548 do
6549 IFS=$as_save_IFS
6550 case $as_dir in #(((
6551 '') as_dir=./ ;;
6552 */) ;;
6553 *) as_dir=$as_dir/ ;;
6554 esac
6555 for ac_exec_ext in '' $ac_executable_extensions; do
6556 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6557 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6558 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6559 break 2
6560 fi
6561 done
6562 done
6563 IFS=$as_save_IFS
6564
6565 fi
6566 fi
6567 DLLTOOL=$ac_cv_prog_DLLTOOL
6568 if test -n "$DLLTOOL"; then
6569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6570 printf "%s\n" "$DLLTOOL" >&6; }
6571 else
6572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6573 printf "%s\n" "no" >&6; }
6574 fi
6575
6576
6577 fi
6578 if test -z "$ac_cv_prog_DLLTOOL"; then
6579 ac_ct_DLLTOOL=$DLLTOOL
6580 # Extract the first word of "dlltool", so it can be a program name with args.
6581 set dummy dlltool; ac_word=$2
6582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6583 printf %s "checking for $ac_word... " >&6; }
6584 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6585 then :
6586 printf %s "(cached) " >&6
6587 else $as_nop
6588 if test -n "$ac_ct_DLLTOOL"; then
6589 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6590 else
6591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6592 for as_dir in $PATH
6593 do
6594 IFS=$as_save_IFS
6595 case $as_dir in #(((
6596 '') as_dir=./ ;;
6597 */) ;;
6598 *) as_dir=$as_dir/ ;;
6599 esac
6600 for ac_exec_ext in '' $ac_executable_extensions; do
6601 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6602 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6603 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6604 break 2
6605 fi
6606 done
6607 done
6608 IFS=$as_save_IFS
6609
6610 fi
6611 fi
6612 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6613 if test -n "$ac_ct_DLLTOOL"; then
6614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6615 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6616 else
6617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6618 printf "%s\n" "no" >&6; }
6619 fi
6620
6621 if test "x$ac_ct_DLLTOOL" = x; then
6622 DLLTOOL="false"
6623 else
6624 case $cross_compiling:$ac_tool_warned in
6625 yes:)
6626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6627 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6628 ac_tool_warned=yes ;;
6629 esac
6630 DLLTOOL=$ac_ct_DLLTOOL
6631 fi
6632 else
6633 DLLTOOL="$ac_cv_prog_DLLTOOL"
6634 fi
6635
6636 test -z "$DLLTOOL" && DLLTOOL=dlltool
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6648 printf %s "checking how to associate runtime and link libraries... " >&6; }
6649 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6650 then :
6651 printf %s "(cached) " >&6
6652 else $as_nop
6653 lt_cv_sharedlib_from_linklib_cmd='unknown'
6654
6655 case $host_os in
6656 cygwin* | mingw* | pw32* | cegcc*)
6657 # two different shell functions defined in ltmain.sh;
6658 # decide which one to use based on capabilities of $DLLTOOL
6659 case `$DLLTOOL --help 2>&1` in
6660 *--identify-strict*)
6661 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6662 ;;
6663 *)
6664 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6665 ;;
6666 esac
6667 ;;
6668 *)
6669 # fallback: assume linklib IS sharedlib
6670 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6671 ;;
6672 esac
6673
6674 fi
6675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6676 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6677 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6678 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6679
6680
6681
6682
6683
6684
6685
6686
6687 if test -n "$ac_tool_prefix"; then
6688 for ac_prog in ar
6689 do
6690 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6691 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6693 printf %s "checking for $ac_word... " >&6; }
6694 if test ${ac_cv_prog_AR+y}
6695 then :
6696 printf %s "(cached) " >&6
6697 else $as_nop
6698 if test -n "$AR"; then
6699 ac_cv_prog_AR="$AR" # Let the user override the test.
6700 else
6701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6702 for as_dir in $PATH
6703 do
6704 IFS=$as_save_IFS
6705 case $as_dir in #(((
6706 '') as_dir=./ ;;
6707 */) ;;
6708 *) as_dir=$as_dir/ ;;
6709 esac
6710 for ac_exec_ext in '' $ac_executable_extensions; do
6711 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6712 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6713 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6714 break 2
6715 fi
6716 done
6717 done
6718 IFS=$as_save_IFS
6719
6720 fi
6721 fi
6722 AR=$ac_cv_prog_AR
6723 if test -n "$AR"; then
6724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6725 printf "%s\n" "$AR" >&6; }
6726 else
6727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6728 printf "%s\n" "no" >&6; }
6729 fi
6730
6731
6732 test -n "$AR" && break
6733 done
6734 fi
6735 if test -z "$AR"; then
6736 ac_ct_AR=$AR
6737 for ac_prog in ar
6738 do
6739 # Extract the first word of "$ac_prog", so it can be a program name with args.
6740 set dummy $ac_prog; ac_word=$2
6741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6742 printf %s "checking for $ac_word... " >&6; }
6743 if test ${ac_cv_prog_ac_ct_AR+y}
6744 then :
6745 printf %s "(cached) " >&6
6746 else $as_nop
6747 if test -n "$ac_ct_AR"; then
6748 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6749 else
6750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6751 for as_dir in $PATH
6752 do
6753 IFS=$as_save_IFS
6754 case $as_dir in #(((
6755 '') as_dir=./ ;;
6756 */) ;;
6757 *) as_dir=$as_dir/ ;;
6758 esac
6759 for ac_exec_ext in '' $ac_executable_extensions; do
6760 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6761 ac_cv_prog_ac_ct_AR="$ac_prog"
6762 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6763 break 2
6764 fi
6765 done
6766 done
6767 IFS=$as_save_IFS
6768
6769 fi
6770 fi
6771 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6772 if test -n "$ac_ct_AR"; then
6773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6774 printf "%s\n" "$ac_ct_AR" >&6; }
6775 else
6776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6777 printf "%s\n" "no" >&6; }
6778 fi
6779
6780
6781 test -n "$ac_ct_AR" && break
6782 done
6783
6784 if test "x$ac_ct_AR" = x; then
6785 AR="false"
6786 else
6787 case $cross_compiling:$ac_tool_warned in
6788 yes:)
6789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6790 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6791 ac_tool_warned=yes ;;
6792 esac
6793 AR=$ac_ct_AR
6794 fi
6795 fi
6796
6797 : ${AR=ar}
6798
6799
6800
6801
6802
6803
6804 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6805 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6806 # higher priority because thats what people were doing historically (setting
6807 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6808 # variable obsoleted/removed.
6809
6810 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6811 lt_ar_flags=$AR_FLAGS
6812
6813
6814
6815
6816
6817
6818 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6819 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6820
6821
6822
6823
6824
6825
6826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6827 printf %s "checking for archiver @FILE support... " >&6; }
6828 if test ${lt_cv_ar_at_file+y}
6829 then :
6830 printf %s "(cached) " >&6
6831 else $as_nop
6832 lt_cv_ar_at_file=no
6833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6834 /* end confdefs.h. */
6835
6836 int
6837 main (void)
6838 {
6839
6840 ;
6841 return 0;
6842 }
6843 _ACEOF
6844 if ac_fn_c_try_compile "$LINENO"
6845 then :
6846 echo conftest.$ac_objext > conftest.lst
6847 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6848 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6849 (eval $lt_ar_try) 2>&5
6850 ac_status=$?
6851 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6852 test $ac_status = 0; }
6853 if test 0 -eq "$ac_status"; then
6854 # Ensure the archiver fails upon bogus file names.
6855 rm -f conftest.$ac_objext libconftest.a
6856 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6857 (eval $lt_ar_try) 2>&5
6858 ac_status=$?
6859 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6860 test $ac_status = 0; }
6861 if test 0 -ne "$ac_status"; then
6862 lt_cv_ar_at_file=@
6863 fi
6864 fi
6865 rm -f conftest.* libconftest.a
6866
6867 fi
6868 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6869
6870 fi
6871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6872 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6873
6874 if test no = "$lt_cv_ar_at_file"; then
6875 archiver_list_spec=
6876 else
6877 archiver_list_spec=$lt_cv_ar_at_file
6878 fi
6879
6880
6881
6882
6883
6884
6885
6886 if test -n "$ac_tool_prefix"; then
6887 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6888 set dummy ${ac_tool_prefix}strip; ac_word=$2
6889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6890 printf %s "checking for $ac_word... " >&6; }
6891 if test ${ac_cv_prog_STRIP+y}
6892 then :
6893 printf %s "(cached) " >&6
6894 else $as_nop
6895 if test -n "$STRIP"; then
6896 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6897 else
6898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6899 for as_dir in $PATH
6900 do
6901 IFS=$as_save_IFS
6902 case $as_dir in #(((
6903 '') as_dir=./ ;;
6904 */) ;;
6905 *) as_dir=$as_dir/ ;;
6906 esac
6907 for ac_exec_ext in '' $ac_executable_extensions; do
6908 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6909 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6910 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6911 break 2
6912 fi
6913 done
6914 done
6915 IFS=$as_save_IFS
6916
6917 fi
6918 fi
6919 STRIP=$ac_cv_prog_STRIP
6920 if test -n "$STRIP"; then
6921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6922 printf "%s\n" "$STRIP" >&6; }
6923 else
6924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6925 printf "%s\n" "no" >&6; }
6926 fi
6927
6928
6929 fi
6930 if test -z "$ac_cv_prog_STRIP"; then
6931 ac_ct_STRIP=$STRIP
6932 # Extract the first word of "strip", so it can be a program name with args.
6933 set dummy strip; ac_word=$2
6934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6935 printf %s "checking for $ac_word... " >&6; }
6936 if test ${ac_cv_prog_ac_ct_STRIP+y}
6937 then :
6938 printf %s "(cached) " >&6
6939 else $as_nop
6940 if test -n "$ac_ct_STRIP"; then
6941 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6942 else
6943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6944 for as_dir in $PATH
6945 do
6946 IFS=$as_save_IFS
6947 case $as_dir in #(((
6948 '') as_dir=./ ;;
6949 */) ;;
6950 *) as_dir=$as_dir/ ;;
6951 esac
6952 for ac_exec_ext in '' $ac_executable_extensions; do
6953 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6954 ac_cv_prog_ac_ct_STRIP="strip"
6955 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6956 break 2
6957 fi
6958 done
6959 done
6960 IFS=$as_save_IFS
6961
6962 fi
6963 fi
6964 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6965 if test -n "$ac_ct_STRIP"; then
6966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6967 printf "%s\n" "$ac_ct_STRIP" >&6; }
6968 else
6969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6970 printf "%s\n" "no" >&6; }
6971 fi
6972
6973 if test "x$ac_ct_STRIP" = x; then
6974 STRIP=":"
6975 else
6976 case $cross_compiling:$ac_tool_warned in
6977 yes:)
6978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6979 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6980 ac_tool_warned=yes ;;
6981 esac
6982 STRIP=$ac_ct_STRIP
6983 fi
6984 else
6985 STRIP="$ac_cv_prog_STRIP"
6986 fi
6987
6988 test -z "$STRIP" && STRIP=:
6989
6990
6991
6992
6993
6994
6995 if test -n "$ac_tool_prefix"; then
6996 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6997 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6999 printf %s "checking for $ac_word... " >&6; }
7000 if test ${ac_cv_prog_RANLIB+y}
7001 then :
7002 printf %s "(cached) " >&6
7003 else $as_nop
7004 if test -n "$RANLIB"; then
7005 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7006 else
7007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7008 for as_dir in $PATH
7009 do
7010 IFS=$as_save_IFS
7011 case $as_dir in #(((
7012 '') as_dir=./ ;;
7013 */) ;;
7014 *) as_dir=$as_dir/ ;;
7015 esac
7016 for ac_exec_ext in '' $ac_executable_extensions; do
7017 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7018 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7019 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7020 break 2
7021 fi
7022 done
7023 done
7024 IFS=$as_save_IFS
7025
7026 fi
7027 fi
7028 RANLIB=$ac_cv_prog_RANLIB
7029 if test -n "$RANLIB"; then
7030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7031 printf "%s\n" "$RANLIB" >&6; }
7032 else
7033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7034 printf "%s\n" "no" >&6; }
7035 fi
7036
7037
7038 fi
7039 if test -z "$ac_cv_prog_RANLIB"; then
7040 ac_ct_RANLIB=$RANLIB
7041 # Extract the first word of "ranlib", so it can be a program name with args.
7042 set dummy ranlib; ac_word=$2
7043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7044 printf %s "checking for $ac_word... " >&6; }
7045 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7046 then :
7047 printf %s "(cached) " >&6
7048 else $as_nop
7049 if test -n "$ac_ct_RANLIB"; then
7050 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7051 else
7052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7053 for as_dir in $PATH
7054 do
7055 IFS=$as_save_IFS
7056 case $as_dir in #(((
7057 '') as_dir=./ ;;
7058 */) ;;
7059 *) as_dir=$as_dir/ ;;
7060 esac
7061 for ac_exec_ext in '' $ac_executable_extensions; do
7062 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7063 ac_cv_prog_ac_ct_RANLIB="ranlib"
7064 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7065 break 2
7066 fi
7067 done
7068 done
7069 IFS=$as_save_IFS
7070
7071 fi
7072 fi
7073 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7074 if test -n "$ac_ct_RANLIB"; then
7075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7076 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7077 else
7078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7079 printf "%s\n" "no" >&6; }
7080 fi
7081
7082 if test "x$ac_ct_RANLIB" = x; then
7083 RANLIB=":"
7084 else
7085 case $cross_compiling:$ac_tool_warned in
7086 yes:)
7087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7088 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7089 ac_tool_warned=yes ;;
7090 esac
7091 RANLIB=$ac_ct_RANLIB
7092 fi
7093 else
7094 RANLIB="$ac_cv_prog_RANLIB"
7095 fi
7096
7097 test -z "$RANLIB" && RANLIB=:
7098
7099
7100
7101
7102
7103
7104 # Determine commands to create old-style static archives.
7105 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7106 old_postinstall_cmds='chmod 644 $oldlib'
7107 old_postuninstall_cmds=
7108
7109 if test -n "$RANLIB"; then
7110 case $host_os in
7111 bitrig* | openbsd*)
7112 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7113 ;;
7114 *)
7115 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7116 ;;
7117 esac
7118 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7119 fi
7120
7121 case $host_os in
7122 darwin*)
7123 lock_old_archive_extraction=yes ;;
7124 *)
7125 lock_old_archive_extraction=no ;;
7126 esac
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166 # If no C compiler was specified, use CC.
7167 LTCC=${LTCC-"$CC"}
7168
7169 # If no C compiler flags were specified, use CFLAGS.
7170 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7171
7172 # Allow CC to be a program name with arguments.
7173 compiler=$CC
7174
7175
7176 # Check for command to grab the raw symbol name followed by C symbol from nm.
7177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7178 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7179 if test ${lt_cv_sys_global_symbol_pipe+y}
7180 then :
7181 printf %s "(cached) " >&6
7182 else $as_nop
7183
7184 # These are sane defaults that work on at least a few old systems.
7185 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7186
7187 # Character class describing NM global symbol codes.
7188 symcode='[BCDEGRST]'
7189
7190 # Regexp to match symbols that can be accessed directly from C.
7191 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7192
7193 # Define system-specific variables.
7194 case $host_os in
7195 aix*)
7196 symcode='[BCDT]'
7197 ;;
7198 cygwin* | mingw* | pw32* | cegcc*)
7199 symcode='[ABCDGISTW]'
7200 ;;
7201 hpux*)
7202 if test ia64 = "$host_cpu"; then
7203 symcode='[ABCDEGRST]'
7204 fi
7205 ;;
7206 irix* | nonstopux*)
7207 symcode='[BCDEGRST]'
7208 ;;
7209 osf*)
7210 symcode='[BCDEGQRST]'
7211 ;;
7212 solaris*)
7213 symcode='[BDRT]'
7214 ;;
7215 sco3.2v5*)
7216 symcode='[DT]'
7217 ;;
7218 sysv4.2uw2*)
7219 symcode='[DT]'
7220 ;;
7221 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7222 symcode='[ABDT]'
7223 ;;
7224 sysv4)
7225 symcode='[DFNSTU]'
7226 ;;
7227 esac
7228
7229 # If we're using GNU nm, then use its standard symbol codes.
7230 case `$NM -V 2>&1` in
7231 *GNU* | *'with BFD'*)
7232 symcode='[ABCDGIRSTW]' ;;
7233 esac
7234
7235 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7236 # Gets list of data symbols to import.
7237 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7238 # Adjust the below global symbol transforms to fixup imported variables.
7239 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7240 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7241 lt_c_name_lib_hook="\
7242 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7243 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7244 else
7245 # Disable hooks by default.
7246 lt_cv_sys_global_symbol_to_import=
7247 lt_cdecl_hook=
7248 lt_c_name_hook=
7249 lt_c_name_lib_hook=
7250 fi
7251
7252 # Transform an extracted symbol line into a proper C declaration.
7253 # Some systems (esp. on ia64) link data and code symbols differently,
7254 # so use this general approach.
7255 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7256 $lt_cdecl_hook\
7257 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7258 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7259
7260 # Transform an extracted symbol line into symbol name and symbol address
7261 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7262 $lt_c_name_hook\
7263 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7264 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7265
7266 # Transform an extracted symbol line into symbol name with lib prefix and
7267 # symbol address.
7268 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7269 $lt_c_name_lib_hook\
7270 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7271 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7272 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7273
7274 # Handle CRLF in mingw tool chain
7275 opt_cr=
7276 case $build_os in
7277 mingw*)
7278 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7279 ;;
7280 esac
7281
7282 # Try without a prefix underscore, then with it.
7283 for ac_symprfx in "" "_"; do
7284
7285 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7286 symxfrm="\\1 $ac_symprfx\\2 \\2"
7287
7288 # Write the raw and C identifiers.
7289 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7290 # Fake it for dumpbin and say T for any non-static function,
7291 # D for any global variable and I for any imported variable.
7292 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7293 # which start with @ or ?.
7294 lt_cv_sys_global_symbol_pipe="$AWK '"\
7295 " {last_section=section; section=\$ 3};"\
7296 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7297 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7298 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7299 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7300 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7301 " \$ 0!~/External *\|/{next};"\
7302 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7303 " {if(hide[section]) next};"\
7304 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7305 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7306 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7307 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7308 " ' prfx=^$ac_symprfx"
7309 else
7310 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7311 fi
7312 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7313
7314 # Check to see that the pipe works correctly.
7315 pipe_works=no
7316
7317 rm -f conftest*
7318 cat > conftest.$ac_ext <<_LT_EOF
7319 #ifdef __cplusplus
7320 extern "C" {
7321 #endif
7322 char nm_test_var;
7323 void nm_test_func(void);
7324 void nm_test_func(void){}
7325 #ifdef __cplusplus
7326 }
7327 #endif
7328 int main(){nm_test_var='a';nm_test_func();return(0);}
7329 _LT_EOF
7330
7331 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7332 (eval $ac_compile) 2>&5
7333 ac_status=$?
7334 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7335 test $ac_status = 0; }; then
7336 # Now try to grab the symbols.
7337 nlist=conftest.nm
7338 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7339 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7340 # Try sorting and uniquifying the output.
7341 if sort "$nlist" | uniq > "$nlist"T; then
7342 mv -f "$nlist"T "$nlist"
7343 else
7344 rm -f "$nlist"T
7345 fi
7346
7347 # Make sure that we snagged all the symbols we need.
7348 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7349 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7350 cat <<_LT_EOF > conftest.$ac_ext
7351 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7352 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7353 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7354 relocations are performed -- see ld's documentation on pseudo-relocs. */
7355 # define LT_DLSYM_CONST
7356 #elif defined __osf__
7357 /* This system does not cope well with relocations in const data. */
7358 # define LT_DLSYM_CONST
7359 #else
7360 # define LT_DLSYM_CONST const
7361 #endif
7362
7363 #ifdef __cplusplus
7364 extern "C" {
7365 #endif
7366
7367 _LT_EOF
7368 # Now generate the symbol file.
7369 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7370
7371 cat <<_LT_EOF >> conftest.$ac_ext
7372
7373 /* The mapping between symbol names and symbols. */
7374 LT_DLSYM_CONST struct {
7375 const char *name;
7376 void *address;
7377 }
7378 lt__PROGRAM__LTX_preloaded_symbols[] =
7379 {
7380 { "@PROGRAM@", (void *) 0 },
7381 _LT_EOF
7382 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7383 cat <<\_LT_EOF >> conftest.$ac_ext
7384 {0, (void *) 0}
7385 };
7386
7387 /* This works around a problem in FreeBSD linker */
7388 #ifdef FREEBSD_WORKAROUND
7389 static const void *lt_preloaded_setup() {
7390 return lt__PROGRAM__LTX_preloaded_symbols;
7391 }
7392 #endif
7393
7394 #ifdef __cplusplus
7395 }
7396 #endif
7397 _LT_EOF
7398 # Now try linking the two files.
7399 mv conftest.$ac_objext conftstm.$ac_objext
7400 lt_globsym_save_LIBS=$LIBS
7401 lt_globsym_save_CFLAGS=$CFLAGS
7402 LIBS=conftstm.$ac_objext
7403 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7404 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7405 (eval $ac_link) 2>&5
7406 ac_status=$?
7407 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7408 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7409 pipe_works=yes
7410 fi
7411 LIBS=$lt_globsym_save_LIBS
7412 CFLAGS=$lt_globsym_save_CFLAGS
7413 else
7414 echo "cannot find nm_test_func in $nlist" >&5
7415 fi
7416 else
7417 echo "cannot find nm_test_var in $nlist" >&5
7418 fi
7419 else
7420 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7421 fi
7422 else
7423 echo "$progname: failed program was:" >&5
7424 cat conftest.$ac_ext >&5
7425 fi
7426 rm -rf conftest* conftst*
7427
7428 # Do not use the global_symbol_pipe unless it works.
7429 if test yes = "$pipe_works"; then
7430 break
7431 else
7432 lt_cv_sys_global_symbol_pipe=
7433 fi
7434 done
7435
7436 fi
7437
7438 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7439 lt_cv_sys_global_symbol_to_cdecl=
7440 fi
7441 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7443 printf "%s\n" "failed" >&6; }
7444 else
7445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7446 printf "%s\n" "ok" >&6; }
7447 fi
7448
7449 # Response file support.
7450 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7451 nm_file_list_spec='@'
7452 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7453 nm_file_list_spec='@'
7454 fi
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7493 printf %s "checking for sysroot... " >&6; }
7494
7495 # Check whether --with-sysroot was given.
7496 if test ${with_sysroot+y}
7497 then :
7498 withval=$with_sysroot;
7499 else $as_nop
7500 with_sysroot=no
7501 fi
7502
7503
7504 lt_sysroot=
7505 case $with_sysroot in #(
7506 yes)
7507 if test yes = "$GCC"; then
7508 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7509 fi
7510 ;; #(
7511 /*)
7512 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7513 ;; #(
7514 no|'')
7515 ;; #(
7516 *)
7517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7518 printf "%s\n" "$with_sysroot" >&6; }
7519 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7520 ;;
7521 esac
7522
7523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7524 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7525
7526
7527
7528
7529
7530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7531 printf %s "checking for a working dd... " >&6; }
7532 if test ${ac_cv_path_lt_DD+y}
7533 then :
7534 printf %s "(cached) " >&6
7535 else $as_nop
7536 printf 0123456789abcdef0123456789abcdef >conftest.i
7537 cat conftest.i conftest.i >conftest2.i
7538 : ${lt_DD:=$DD}
7539 if test -z "$lt_DD"; then
7540 ac_path_lt_DD_found=false
7541 # Loop through the user's path and test for each of PROGNAME-LIST
7542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7543 for as_dir in $PATH
7544 do
7545 IFS=$as_save_IFS
7546 case $as_dir in #(((
7547 '') as_dir=./ ;;
7548 */) ;;
7549 *) as_dir=$as_dir/ ;;
7550 esac
7551 for ac_prog in dd
7552 do
7553 for ac_exec_ext in '' $ac_executable_extensions; do
7554 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7555 as_fn_executable_p "$ac_path_lt_DD" || continue
7556 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7557 cmp -s conftest.i conftest.out \
7558 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7559 fi
7560 $ac_path_lt_DD_found && break 3
7561 done
7562 done
7563 done
7564 IFS=$as_save_IFS
7565 if test -z "$ac_cv_path_lt_DD"; then
7566 :
7567 fi
7568 else
7569 ac_cv_path_lt_DD=$lt_DD
7570 fi
7571
7572 rm -f conftest.i conftest2.i conftest.out
7573 fi
7574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7575 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7576
7577
7578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7579 printf %s "checking how to truncate binary pipes... " >&6; }
7580 if test ${lt_cv_truncate_bin+y}
7581 then :
7582 printf %s "(cached) " >&6
7583 else $as_nop
7584 printf 0123456789abcdef0123456789abcdef >conftest.i
7585 cat conftest.i conftest.i >conftest2.i
7586 lt_cv_truncate_bin=
7587 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7588 cmp -s conftest.i conftest.out \
7589 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7590 fi
7591 rm -f conftest.i conftest2.i conftest.out
7592 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7593 fi
7594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7595 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7596
7597
7598
7599
7600
7601
7602
7603 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7604 func_cc_basename ()
7605 {
7606 for cc_temp in $*""; do
7607 case $cc_temp in
7608 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7609 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7610 \-*) ;;
7611 *) break;;
7612 esac
7613 done
7614 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7615 }
7616
7617 # Check whether --enable-libtool-lock was given.
7618 if test ${enable_libtool_lock+y}
7619 then :
7620 enableval=$enable_libtool_lock;
7621 fi
7622
7623 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7624
7625 # Some flags need to be propagated to the compiler or linker for good
7626 # libtool support.
7627 case $host in
7628 ia64-*-hpux*)
7629 # Find out what ABI is being produced by ac_compile, and set mode
7630 # options accordingly.
7631 echo 'int i;' > conftest.$ac_ext
7632 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7633 (eval $ac_compile) 2>&5
7634 ac_status=$?
7635 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7636 test $ac_status = 0; }; then
7637 case `$FILECMD conftest.$ac_objext` in
7638 *ELF-32*)
7639 HPUX_IA64_MODE=32
7640 ;;
7641 *ELF-64*)
7642 HPUX_IA64_MODE=64
7643 ;;
7644 esac
7645 fi
7646 rm -rf conftest*
7647 ;;
7648 *-*-irix6*)
7649 # Find out what ABI is being produced by ac_compile, and set linker
7650 # options accordingly.
7651 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7652 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7653 (eval $ac_compile) 2>&5
7654 ac_status=$?
7655 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7656 test $ac_status = 0; }; then
7657 if test yes = "$lt_cv_prog_gnu_ld"; then
7658 case `$FILECMD conftest.$ac_objext` in
7659 *32-bit*)
7660 LD="${LD-ld} -melf32bsmip"
7661 ;;
7662 *N32*)
7663 LD="${LD-ld} -melf32bmipn32"
7664 ;;
7665 *64-bit*)
7666 LD="${LD-ld} -melf64bmip"
7667 ;;
7668 esac
7669 else
7670 case `$FILECMD conftest.$ac_objext` in
7671 *32-bit*)
7672 LD="${LD-ld} -32"
7673 ;;
7674 *N32*)
7675 LD="${LD-ld} -n32"
7676 ;;
7677 *64-bit*)
7678 LD="${LD-ld} -64"
7679 ;;
7680 esac
7681 fi
7682 fi
7683 rm -rf conftest*
7684 ;;
7685
7686 mips64*-*linux*)
7687 # Find out what ABI is being produced by ac_compile, and set linker
7688 # options accordingly.
7689 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7690 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7691 (eval $ac_compile) 2>&5
7692 ac_status=$?
7693 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7694 test $ac_status = 0; }; then
7695 emul=elf
7696 case `$FILECMD conftest.$ac_objext` in
7697 *32-bit*)
7698 emul="${emul}32"
7699 ;;
7700 *64-bit*)
7701 emul="${emul}64"
7702 ;;
7703 esac
7704 case `$FILECMD conftest.$ac_objext` in
7705 *MSB*)
7706 emul="${emul}btsmip"
7707 ;;
7708 *LSB*)
7709 emul="${emul}ltsmip"
7710 ;;
7711 esac
7712 case `$FILECMD conftest.$ac_objext` in
7713 *N32*)
7714 emul="${emul}n32"
7715 ;;
7716 esac
7717 LD="${LD-ld} -m $emul"
7718 fi
7719 rm -rf conftest*
7720 ;;
7721
7722 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7723 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7724 # Find out what ABI is being produced by ac_compile, and set linker
7725 # options accordingly. Note that the listed cases only cover the
7726 # situations where additional linker options are needed (such as when
7727 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7728 # vice versa); the common cases where no linker options are needed do
7729 # not appear in the list.
7730 echo 'int i;' > conftest.$ac_ext
7731 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7732 (eval $ac_compile) 2>&5
7733 ac_status=$?
7734 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7735 test $ac_status = 0; }; then
7736 case `$FILECMD conftest.o` in
7737 *32-bit*)
7738 case $host in
7739 x86_64-*kfreebsd*-gnu)
7740 LD="${LD-ld} -m elf_i386_fbsd"
7741 ;;
7742 x86_64-*linux*)
7743 case `$FILECMD conftest.o` in
7744 *x86-64*)
7745 LD="${LD-ld} -m elf32_x86_64"
7746 ;;
7747 *)
7748 LD="${LD-ld} -m elf_i386"
7749 ;;
7750 esac
7751 ;;
7752 powerpc64le-*linux*)
7753 LD="${LD-ld} -m elf32lppclinux"
7754 ;;
7755 powerpc64-*linux*)
7756 LD="${LD-ld} -m elf32ppclinux"
7757 ;;
7758 s390x-*linux*)
7759 LD="${LD-ld} -m elf_s390"
7760 ;;
7761 sparc64-*linux*)
7762 LD="${LD-ld} -m elf32_sparc"
7763 ;;
7764 esac
7765 ;;
7766 *64-bit*)
7767 case $host in
7768 x86_64-*kfreebsd*-gnu)
7769 LD="${LD-ld} -m elf_x86_64_fbsd"
7770 ;;
7771 x86_64-*linux*)
7772 LD="${LD-ld} -m elf_x86_64"
7773 ;;
7774 powerpcle-*linux*)
7775 LD="${LD-ld} -m elf64lppc"
7776 ;;
7777 powerpc-*linux*)
7778 LD="${LD-ld} -m elf64ppc"
7779 ;;
7780 s390*-*linux*|s390*-*tpf*)
7781 LD="${LD-ld} -m elf64_s390"
7782 ;;
7783 sparc*-*linux*)
7784 LD="${LD-ld} -m elf64_sparc"
7785 ;;
7786 esac
7787 ;;
7788 esac
7789 fi
7790 rm -rf conftest*
7791 ;;
7792
7793 *-*-sco3.2v5*)
7794 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7795 SAVE_CFLAGS=$CFLAGS
7796 CFLAGS="$CFLAGS -belf"
7797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7798 printf %s "checking whether the C compiler needs -belf... " >&6; }
7799 if test ${lt_cv_cc_needs_belf+y}
7800 then :
7801 printf %s "(cached) " >&6
7802 else $as_nop
7803 ac_ext=c
7804 ac_cpp='$CPP $CPPFLAGS'
7805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7808
7809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7810 /* end confdefs.h. */
7811
7812 int
7813 main (void)
7814 {
7815
7816 ;
7817 return 0;
7818 }
7819 _ACEOF
7820 if ac_fn_c_try_link "$LINENO"
7821 then :
7822 lt_cv_cc_needs_belf=yes
7823 else $as_nop
7824 lt_cv_cc_needs_belf=no
7825 fi
7826 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7827 conftest$ac_exeext conftest.$ac_ext
7828 ac_ext=c
7829 ac_cpp='$CPP $CPPFLAGS'
7830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7833
7834 fi
7835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7836 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7837 if test yes != "$lt_cv_cc_needs_belf"; then
7838 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7839 CFLAGS=$SAVE_CFLAGS
7840 fi
7841 ;;
7842 *-*solaris*)
7843 # Find out what ABI is being produced by ac_compile, and set linker
7844 # options accordingly.
7845 echo 'int i;' > conftest.$ac_ext
7846 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7847 (eval $ac_compile) 2>&5
7848 ac_status=$?
7849 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7850 test $ac_status = 0; }; then
7851 case `$FILECMD conftest.o` in
7852 *64-bit*)
7853 case $lt_cv_prog_gnu_ld in
7854 yes*)
7855 case $host in
7856 i?86-*-solaris*|x86_64-*-solaris*)
7857 LD="${LD-ld} -m elf_x86_64"
7858 ;;
7859 sparc*-*-solaris*)
7860 LD="${LD-ld} -m elf64_sparc"
7861 ;;
7862 esac
7863 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7864 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7865 LD=${LD-ld}_sol2
7866 fi
7867 ;;
7868 *)
7869 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7870 LD="${LD-ld} -64"
7871 fi
7872 ;;
7873 esac
7874 ;;
7875 esac
7876 fi
7877 rm -rf conftest*
7878 ;;
7879 esac
7880
7881 need_locks=$enable_libtool_lock
7882
7883 if test -n "$ac_tool_prefix"; then
7884 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7885 set dummy ${ac_tool_prefix}mt; ac_word=$2
7886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7887 printf %s "checking for $ac_word... " >&6; }
7888 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7889 then :
7890 printf %s "(cached) " >&6
7891 else $as_nop
7892 if test -n "$MANIFEST_TOOL"; then
7893 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7894 else
7895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7896 for as_dir in $PATH
7897 do
7898 IFS=$as_save_IFS
7899 case $as_dir in #(((
7900 '') as_dir=./ ;;
7901 */) ;;
7902 *) as_dir=$as_dir/ ;;
7903 esac
7904 for ac_exec_ext in '' $ac_executable_extensions; do
7905 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7906 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7907 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7908 break 2
7909 fi
7910 done
7911 done
7912 IFS=$as_save_IFS
7913
7914 fi
7915 fi
7916 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7917 if test -n "$MANIFEST_TOOL"; then
7918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7919 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7920 else
7921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7922 printf "%s\n" "no" >&6; }
7923 fi
7924
7925
7926 fi
7927 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7928 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7929 # Extract the first word of "mt", so it can be a program name with args.
7930 set dummy mt; ac_word=$2
7931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7932 printf %s "checking for $ac_word... " >&6; }
7933 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7934 then :
7935 printf %s "(cached) " >&6
7936 else $as_nop
7937 if test -n "$ac_ct_MANIFEST_TOOL"; then
7938 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7939 else
7940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7941 for as_dir in $PATH
7942 do
7943 IFS=$as_save_IFS
7944 case $as_dir in #(((
7945 '') as_dir=./ ;;
7946 */) ;;
7947 *) as_dir=$as_dir/ ;;
7948 esac
7949 for ac_exec_ext in '' $ac_executable_extensions; do
7950 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7951 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7952 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7953 break 2
7954 fi
7955 done
7956 done
7957 IFS=$as_save_IFS
7958
7959 fi
7960 fi
7961 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7962 if test -n "$ac_ct_MANIFEST_TOOL"; then
7963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7964 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7965 else
7966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7967 printf "%s\n" "no" >&6; }
7968 fi
7969
7970 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7971 MANIFEST_TOOL=":"
7972 else
7973 case $cross_compiling:$ac_tool_warned in
7974 yes:)
7975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7976 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7977 ac_tool_warned=yes ;;
7978 esac
7979 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7980 fi
7981 else
7982 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7983 fi
7984
7985 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7987 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7988 if test ${lt_cv_path_mainfest_tool+y}
7989 then :
7990 printf %s "(cached) " >&6
7991 else $as_nop
7992 lt_cv_path_mainfest_tool=no
7993 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7994 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7995 cat conftest.err >&5
7996 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7997 lt_cv_path_mainfest_tool=yes
7998 fi
7999 rm -f conftest*
8000 fi
8001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8002 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
8003 if test yes != "$lt_cv_path_mainfest_tool"; then
8004 MANIFEST_TOOL=:
8005 fi
8006
8007
8008
8009
8010
8011
8012 case $host_os in
8013 rhapsody* | darwin*)
8014 if test -n "$ac_tool_prefix"; then
8015 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8016 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8018 printf %s "checking for $ac_word... " >&6; }
8019 if test ${ac_cv_prog_DSYMUTIL+y}
8020 then :
8021 printf %s "(cached) " >&6
8022 else $as_nop
8023 if test -n "$DSYMUTIL"; then
8024 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8025 else
8026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8027 for as_dir in $PATH
8028 do
8029 IFS=$as_save_IFS
8030 case $as_dir in #(((
8031 '') as_dir=./ ;;
8032 */) ;;
8033 *) as_dir=$as_dir/ ;;
8034 esac
8035 for ac_exec_ext in '' $ac_executable_extensions; do
8036 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8037 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8038 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8039 break 2
8040 fi
8041 done
8042 done
8043 IFS=$as_save_IFS
8044
8045 fi
8046 fi
8047 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8048 if test -n "$DSYMUTIL"; then
8049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8050 printf "%s\n" "$DSYMUTIL" >&6; }
8051 else
8052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8053 printf "%s\n" "no" >&6; }
8054 fi
8055
8056
8057 fi
8058 if test -z "$ac_cv_prog_DSYMUTIL"; then
8059 ac_ct_DSYMUTIL=$DSYMUTIL
8060 # Extract the first word of "dsymutil", so it can be a program name with args.
8061 set dummy dsymutil; ac_word=$2
8062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8063 printf %s "checking for $ac_word... " >&6; }
8064 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8065 then :
8066 printf %s "(cached) " >&6
8067 else $as_nop
8068 if test -n "$ac_ct_DSYMUTIL"; then
8069 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8070 else
8071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8072 for as_dir in $PATH
8073 do
8074 IFS=$as_save_IFS
8075 case $as_dir in #(((
8076 '') as_dir=./ ;;
8077 */) ;;
8078 *) as_dir=$as_dir/ ;;
8079 esac
8080 for ac_exec_ext in '' $ac_executable_extensions; do
8081 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8082 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8083 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8084 break 2
8085 fi
8086 done
8087 done
8088 IFS=$as_save_IFS
8089
8090 fi
8091 fi
8092 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8093 if test -n "$ac_ct_DSYMUTIL"; then
8094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8095 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8096 else
8097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8098 printf "%s\n" "no" >&6; }
8099 fi
8100
8101 if test "x$ac_ct_DSYMUTIL" = x; then
8102 DSYMUTIL=":"
8103 else
8104 case $cross_compiling:$ac_tool_warned in
8105 yes:)
8106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8107 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8108 ac_tool_warned=yes ;;
8109 esac
8110 DSYMUTIL=$ac_ct_DSYMUTIL
8111 fi
8112 else
8113 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8114 fi
8115
8116 if test -n "$ac_tool_prefix"; then
8117 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8118 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8120 printf %s "checking for $ac_word... " >&6; }
8121 if test ${ac_cv_prog_NMEDIT+y}
8122 then :
8123 printf %s "(cached) " >&6
8124 else $as_nop
8125 if test -n "$NMEDIT"; then
8126 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8127 else
8128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8129 for as_dir in $PATH
8130 do
8131 IFS=$as_save_IFS
8132 case $as_dir in #(((
8133 '') as_dir=./ ;;
8134 */) ;;
8135 *) as_dir=$as_dir/ ;;
8136 esac
8137 for ac_exec_ext in '' $ac_executable_extensions; do
8138 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8139 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8140 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8141 break 2
8142 fi
8143 done
8144 done
8145 IFS=$as_save_IFS
8146
8147 fi
8148 fi
8149 NMEDIT=$ac_cv_prog_NMEDIT
8150 if test -n "$NMEDIT"; then
8151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8152 printf "%s\n" "$NMEDIT" >&6; }
8153 else
8154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8155 printf "%s\n" "no" >&6; }
8156 fi
8157
8158
8159 fi
8160 if test -z "$ac_cv_prog_NMEDIT"; then
8161 ac_ct_NMEDIT=$NMEDIT
8162 # Extract the first word of "nmedit", so it can be a program name with args.
8163 set dummy nmedit; ac_word=$2
8164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8165 printf %s "checking for $ac_word... " >&6; }
8166 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8167 then :
8168 printf %s "(cached) " >&6
8169 else $as_nop
8170 if test -n "$ac_ct_NMEDIT"; then
8171 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8172 else
8173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8174 for as_dir in $PATH
8175 do
8176 IFS=$as_save_IFS
8177 case $as_dir in #(((
8178 '') as_dir=./ ;;
8179 */) ;;
8180 *) as_dir=$as_dir/ ;;
8181 esac
8182 for ac_exec_ext in '' $ac_executable_extensions; do
8183 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8184 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8185 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8186 break 2
8187 fi
8188 done
8189 done
8190 IFS=$as_save_IFS
8191
8192 fi
8193 fi
8194 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8195 if test -n "$ac_ct_NMEDIT"; then
8196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8197 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8198 else
8199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8200 printf "%s\n" "no" >&6; }
8201 fi
8202
8203 if test "x$ac_ct_NMEDIT" = x; then
8204 NMEDIT=":"
8205 else
8206 case $cross_compiling:$ac_tool_warned in
8207 yes:)
8208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8209 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8210 ac_tool_warned=yes ;;
8211 esac
8212 NMEDIT=$ac_ct_NMEDIT
8213 fi
8214 else
8215 NMEDIT="$ac_cv_prog_NMEDIT"
8216 fi
8217
8218 if test -n "$ac_tool_prefix"; then
8219 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8220 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8222 printf %s "checking for $ac_word... " >&6; }
8223 if test ${ac_cv_prog_LIPO+y}
8224 then :
8225 printf %s "(cached) " >&6
8226 else $as_nop
8227 if test -n "$LIPO"; then
8228 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8229 else
8230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8231 for as_dir in $PATH
8232 do
8233 IFS=$as_save_IFS
8234 case $as_dir in #(((
8235 '') as_dir=./ ;;
8236 */) ;;
8237 *) as_dir=$as_dir/ ;;
8238 esac
8239 for ac_exec_ext in '' $ac_executable_extensions; do
8240 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8241 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8242 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8243 break 2
8244 fi
8245 done
8246 done
8247 IFS=$as_save_IFS
8248
8249 fi
8250 fi
8251 LIPO=$ac_cv_prog_LIPO
8252 if test -n "$LIPO"; then
8253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8254 printf "%s\n" "$LIPO" >&6; }
8255 else
8256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8257 printf "%s\n" "no" >&6; }
8258 fi
8259
8260
8261 fi
8262 if test -z "$ac_cv_prog_LIPO"; then
8263 ac_ct_LIPO=$LIPO
8264 # Extract the first word of "lipo", so it can be a program name with args.
8265 set dummy lipo; ac_word=$2
8266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8267 printf %s "checking for $ac_word... " >&6; }
8268 if test ${ac_cv_prog_ac_ct_LIPO+y}
8269 then :
8270 printf %s "(cached) " >&6
8271 else $as_nop
8272 if test -n "$ac_ct_LIPO"; then
8273 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8274 else
8275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8276 for as_dir in $PATH
8277 do
8278 IFS=$as_save_IFS
8279 case $as_dir in #(((
8280 '') as_dir=./ ;;
8281 */) ;;
8282 *) as_dir=$as_dir/ ;;
8283 esac
8284 for ac_exec_ext in '' $ac_executable_extensions; do
8285 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8286 ac_cv_prog_ac_ct_LIPO="lipo"
8287 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8288 break 2
8289 fi
8290 done
8291 done
8292 IFS=$as_save_IFS
8293
8294 fi
8295 fi
8296 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8297 if test -n "$ac_ct_LIPO"; then
8298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8299 printf "%s\n" "$ac_ct_LIPO" >&6; }
8300 else
8301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8302 printf "%s\n" "no" >&6; }
8303 fi
8304
8305 if test "x$ac_ct_LIPO" = x; then
8306 LIPO=":"
8307 else
8308 case $cross_compiling:$ac_tool_warned in
8309 yes:)
8310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8311 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8312 ac_tool_warned=yes ;;
8313 esac
8314 LIPO=$ac_ct_LIPO
8315 fi
8316 else
8317 LIPO="$ac_cv_prog_LIPO"
8318 fi
8319
8320 if test -n "$ac_tool_prefix"; then
8321 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8322 set dummy ${ac_tool_prefix}otool; ac_word=$2
8323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8324 printf %s "checking for $ac_word... " >&6; }
8325 if test ${ac_cv_prog_OTOOL+y}
8326 then :
8327 printf %s "(cached) " >&6
8328 else $as_nop
8329 if test -n "$OTOOL"; then
8330 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8331 else
8332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8333 for as_dir in $PATH
8334 do
8335 IFS=$as_save_IFS
8336 case $as_dir in #(((
8337 '') as_dir=./ ;;
8338 */) ;;
8339 *) as_dir=$as_dir/ ;;
8340 esac
8341 for ac_exec_ext in '' $ac_executable_extensions; do
8342 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8343 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8344 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8345 break 2
8346 fi
8347 done
8348 done
8349 IFS=$as_save_IFS
8350
8351 fi
8352 fi
8353 OTOOL=$ac_cv_prog_OTOOL
8354 if test -n "$OTOOL"; then
8355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8356 printf "%s\n" "$OTOOL" >&6; }
8357 else
8358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8359 printf "%s\n" "no" >&6; }
8360 fi
8361
8362
8363 fi
8364 if test -z "$ac_cv_prog_OTOOL"; then
8365 ac_ct_OTOOL=$OTOOL
8366 # Extract the first word of "otool", so it can be a program name with args.
8367 set dummy otool; ac_word=$2
8368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8369 printf %s "checking for $ac_word... " >&6; }
8370 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8371 then :
8372 printf %s "(cached) " >&6
8373 else $as_nop
8374 if test -n "$ac_ct_OTOOL"; then
8375 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8376 else
8377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8378 for as_dir in $PATH
8379 do
8380 IFS=$as_save_IFS
8381 case $as_dir in #(((
8382 '') as_dir=./ ;;
8383 */) ;;
8384 *) as_dir=$as_dir/ ;;
8385 esac
8386 for ac_exec_ext in '' $ac_executable_extensions; do
8387 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8388 ac_cv_prog_ac_ct_OTOOL="otool"
8389 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8390 break 2
8391 fi
8392 done
8393 done
8394 IFS=$as_save_IFS
8395
8396 fi
8397 fi
8398 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8399 if test -n "$ac_ct_OTOOL"; then
8400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8401 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8402 else
8403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8404 printf "%s\n" "no" >&6; }
8405 fi
8406
8407 if test "x$ac_ct_OTOOL" = x; then
8408 OTOOL=":"
8409 else
8410 case $cross_compiling:$ac_tool_warned in
8411 yes:)
8412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8413 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8414 ac_tool_warned=yes ;;
8415 esac
8416 OTOOL=$ac_ct_OTOOL
8417 fi
8418 else
8419 OTOOL="$ac_cv_prog_OTOOL"
8420 fi
8421
8422 if test -n "$ac_tool_prefix"; then
8423 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8424 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8426 printf %s "checking for $ac_word... " >&6; }
8427 if test ${ac_cv_prog_OTOOL64+y}
8428 then :
8429 printf %s "(cached) " >&6
8430 else $as_nop
8431 if test -n "$OTOOL64"; then
8432 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8433 else
8434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8435 for as_dir in $PATH
8436 do
8437 IFS=$as_save_IFS
8438 case $as_dir in #(((
8439 '') as_dir=./ ;;
8440 */) ;;
8441 *) as_dir=$as_dir/ ;;
8442 esac
8443 for ac_exec_ext in '' $ac_executable_extensions; do
8444 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8445 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8446 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8447 break 2
8448 fi
8449 done
8450 done
8451 IFS=$as_save_IFS
8452
8453 fi
8454 fi
8455 OTOOL64=$ac_cv_prog_OTOOL64
8456 if test -n "$OTOOL64"; then
8457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8458 printf "%s\n" "$OTOOL64" >&6; }
8459 else
8460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8461 printf "%s\n" "no" >&6; }
8462 fi
8463
8464
8465 fi
8466 if test -z "$ac_cv_prog_OTOOL64"; then
8467 ac_ct_OTOOL64=$OTOOL64
8468 # Extract the first word of "otool64", so it can be a program name with args.
8469 set dummy otool64; ac_word=$2
8470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8471 printf %s "checking for $ac_word... " >&6; }
8472 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8473 then :
8474 printf %s "(cached) " >&6
8475 else $as_nop
8476 if test -n "$ac_ct_OTOOL64"; then
8477 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8478 else
8479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8480 for as_dir in $PATH
8481 do
8482 IFS=$as_save_IFS
8483 case $as_dir in #(((
8484 '') as_dir=./ ;;
8485 */) ;;
8486 *) as_dir=$as_dir/ ;;
8487 esac
8488 for ac_exec_ext in '' $ac_executable_extensions; do
8489 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8490 ac_cv_prog_ac_ct_OTOOL64="otool64"
8491 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8492 break 2
8493 fi
8494 done
8495 done
8496 IFS=$as_save_IFS
8497
8498 fi
8499 fi
8500 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8501 if test -n "$ac_ct_OTOOL64"; then
8502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8503 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8504 else
8505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8506 printf "%s\n" "no" >&6; }
8507 fi
8508
8509 if test "x$ac_ct_OTOOL64" = x; then
8510 OTOOL64=":"
8511 else
8512 case $cross_compiling:$ac_tool_warned in
8513 yes:)
8514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8515 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8516 ac_tool_warned=yes ;;
8517 esac
8518 OTOOL64=$ac_ct_OTOOL64
8519 fi
8520 else
8521 OTOOL64="$ac_cv_prog_OTOOL64"
8522 fi
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8551 printf %s "checking for -single_module linker flag... " >&6; }
8552 if test ${lt_cv_apple_cc_single_mod+y}
8553 then :
8554 printf %s "(cached) " >&6
8555 else $as_nop
8556 lt_cv_apple_cc_single_mod=no
8557 if test -z "$LT_MULTI_MODULE"; then
8558 # By default we will add the -single_module flag. You can override
8559 # by either setting the environment variable LT_MULTI_MODULE
8560 # non-empty at configure time, or by adding -multi_module to the
8561 # link flags.
8562 rm -rf libconftest.dylib*
8563 echo "int foo(void){return 1;}" > conftest.c
8564 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8565 -dynamiclib -Wl,-single_module conftest.c" >&5
8566 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8567 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8568 _lt_result=$?
8569 # If there is a non-empty error log, and "single_module"
8570 # appears in it, assume the flag caused a linker warning
8571 if test -s conftest.err && $GREP single_module conftest.err; then
8572 cat conftest.err >&5
8573 # Otherwise, if the output was created with a 0 exit code from
8574 # the compiler, it worked.
8575 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8576 lt_cv_apple_cc_single_mod=yes
8577 else
8578 cat conftest.err >&5
8579 fi
8580 rm -rf libconftest.dylib*
8581 rm -f conftest.*
8582 fi
8583 fi
8584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8585 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8586
8587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8588 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8589 if test ${lt_cv_ld_exported_symbols_list+y}
8590 then :
8591 printf %s "(cached) " >&6
8592 else $as_nop
8593 lt_cv_ld_exported_symbols_list=no
8594 save_LDFLAGS=$LDFLAGS
8595 echo "_main" > conftest.sym
8596 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8598 /* end confdefs.h. */
8599
8600 int
8601 main (void)
8602 {
8603
8604 ;
8605 return 0;
8606 }
8607 _ACEOF
8608 if ac_fn_c_try_link "$LINENO"
8609 then :
8610 lt_cv_ld_exported_symbols_list=yes
8611 else $as_nop
8612 lt_cv_ld_exported_symbols_list=no
8613 fi
8614 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8615 conftest$ac_exeext conftest.$ac_ext
8616 LDFLAGS=$save_LDFLAGS
8617
8618 fi
8619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8620 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8621
8622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8623 printf %s "checking for -force_load linker flag... " >&6; }
8624 if test ${lt_cv_ld_force_load+y}
8625 then :
8626 printf %s "(cached) " >&6
8627 else $as_nop
8628 lt_cv_ld_force_load=no
8629 cat > conftest.c << _LT_EOF
8630 int forced_loaded() { return 2;}
8631 _LT_EOF
8632 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8633 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8634 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8635 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8636 echo "$RANLIB libconftest.a" >&5
8637 $RANLIB libconftest.a 2>&5
8638 cat > conftest.c << _LT_EOF
8639 int main() { return 0;}
8640 _LT_EOF
8641 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8642 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8643 _lt_result=$?
8644 if test -s conftest.err && $GREP force_load conftest.err; then
8645 cat conftest.err >&5
8646 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8647 lt_cv_ld_force_load=yes
8648 else
8649 cat conftest.err >&5
8650 fi
8651 rm -f conftest.err libconftest.a conftest conftest.c
8652 rm -rf conftest.dSYM
8653
8654 fi
8655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8656 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8657 case $host_os in
8658 rhapsody* | darwin1.[012])
8659 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8660 darwin1.*)
8661 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8662 darwin*)
8663 case $MACOSX_DEPLOYMENT_TARGET,$host in
8664 10.[012],*|,*powerpc*-darwin[5-8]*)
8665 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8666 *)
8667 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8668 esac
8669 ;;
8670 esac
8671 if test yes = "$lt_cv_apple_cc_single_mod"; then
8672 _lt_dar_single_mod='$single_module'
8673 fi
8674 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8675 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8676 else
8677 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8678 fi
8679 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8680 _lt_dsymutil='~$DSYMUTIL $lib || :'
8681 else
8682 _lt_dsymutil=
8683 fi
8684 ;;
8685 esac
8686
8687 # func_munge_path_list VARIABLE PATH
8688 # -----------------------------------
8689 # VARIABLE is name of variable containing _space_ separated list of
8690 # directories to be munged by the contents of PATH, which is string
8691 # having a format:
8692 # "DIR[:DIR]:"
8693 # string "DIR[ DIR]" will be prepended to VARIABLE
8694 # ":DIR[:DIR]"
8695 # string "DIR[ DIR]" will be appended to VARIABLE
8696 # "DIRP[:DIRP]::[DIRA:]DIRA"
8697 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8698 # "DIRA[ DIRA]" will be appended to VARIABLE
8699 # "DIR[:DIR]"
8700 # VARIABLE will be replaced by "DIR[ DIR]"
8701 func_munge_path_list ()
8702 {
8703 case x$2 in
8704 x)
8705 ;;
8706 *:)
8707 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8708 ;;
8709 x:*)
8710 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8711 ;;
8712 *::*)
8713 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8714 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8715 ;;
8716 *)
8717 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8718 ;;
8719 esac
8720 }
8721
8722 ac_header= ac_cache=
8723 for ac_item in $ac_header_c_list
8724 do
8725 if test $ac_cache; then
8726 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8727 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8728 printf "%s\n" "#define $ac_item 1" >> confdefs.h
8729 fi
8730 ac_header= ac_cache=
8731 elif test $ac_header; then
8732 ac_cache=$ac_item
8733 else
8734 ac_header=$ac_item
8735 fi
8736 done
8737
8738
8739
8740
8741
8742
8743
8744
8745 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8746 then :
8747
8748 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8749
8750 fi
8751 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8752 "
8753 if test "x$ac_cv_header_dlfcn_h" = xyes
8754 then :
8755 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8756
8757 fi
8758
8759
8760
8761
8762
8763 # Set options
8764
8765
8766
8767 enable_dlopen=no
8768
8769
8770 enable_win32_dll=no
8771
8772
8773 # Check whether --enable-shared was given.
8774 if test ${enable_shared+y}
8775 then :
8776 enableval=$enable_shared; p=${PACKAGE-default}
8777 case $enableval in
8778 yes) enable_shared=yes ;;
8779 no) enable_shared=no ;;
8780 *)
8781 enable_shared=no
8782 # Look at the argument we got. We use all the common list separators.
8783 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8784 for pkg in $enableval; do
8785 IFS=$lt_save_ifs
8786 if test "X$pkg" = "X$p"; then
8787 enable_shared=yes
8788 fi
8789 done
8790 IFS=$lt_save_ifs
8791 ;;
8792 esac
8793 else $as_nop
8794 enable_shared=yes
8795 fi
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805 # Check whether --enable-static was given.
8806 if test ${enable_static+y}
8807 then :
8808 enableval=$enable_static; p=${PACKAGE-default}
8809 case $enableval in
8810 yes) enable_static=yes ;;
8811 no) enable_static=no ;;
8812 *)
8813 enable_static=no
8814 # Look at the argument we got. We use all the common list separators.
8815 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8816 for pkg in $enableval; do
8817 IFS=$lt_save_ifs
8818 if test "X$pkg" = "X$p"; then
8819 enable_static=yes
8820 fi
8821 done
8822 IFS=$lt_save_ifs
8823 ;;
8824 esac
8825 else $as_nop
8826 enable_static=yes
8827 fi
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838 # Check whether --with-pic was given.
8839 if test ${with_pic+y}
8840 then :
8841 withval=$with_pic; lt_p=${PACKAGE-default}
8842 case $withval in
8843 yes|no) pic_mode=$withval ;;
8844 *)
8845 pic_mode=default
8846 # Look at the argument we got. We use all the common list separators.
8847 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8848 for lt_pkg in $withval; do
8849 IFS=$lt_save_ifs
8850 if test "X$lt_pkg" = "X$lt_p"; then
8851 pic_mode=yes
8852 fi
8853 done
8854 IFS=$lt_save_ifs
8855 ;;
8856 esac
8857 else $as_nop
8858 pic_mode=default
8859 fi
8860
8861
8862
8863
8864
8865
8866
8867
8868 # Check whether --enable-fast-install was given.
8869 if test ${enable_fast_install+y}
8870 then :
8871 enableval=$enable_fast_install; p=${PACKAGE-default}
8872 case $enableval in
8873 yes) enable_fast_install=yes ;;
8874 no) enable_fast_install=no ;;
8875 *)
8876 enable_fast_install=no
8877 # Look at the argument we got. We use all the common list separators.
8878 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8879 for pkg in $enableval; do
8880 IFS=$lt_save_ifs
8881 if test "X$pkg" = "X$p"; then
8882 enable_fast_install=yes
8883 fi
8884 done
8885 IFS=$lt_save_ifs
8886 ;;
8887 esac
8888 else $as_nop
8889 enable_fast_install=yes
8890 fi
8891
8892
8893
8894
8895
8896
8897
8898
8899 shared_archive_member_spec=
8900 case $host,$enable_shared in
8901 power*-*-aix[5-9]*,yes)
8902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8903 printf %s "checking which variant of shared library versioning to provide... " >&6; }
8904
8905 # Check whether --with-aix-soname was given.
8906 if test ${with_aix_soname+y}
8907 then :
8908 withval=$with_aix_soname; case $withval in
8909 aix|svr4|both)
8910 ;;
8911 *)
8912 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8913 ;;
8914 esac
8915 lt_cv_with_aix_soname=$with_aix_soname
8916 else $as_nop
8917 if test ${lt_cv_with_aix_soname+y}
8918 then :
8919 printf %s "(cached) " >&6
8920 else $as_nop
8921 lt_cv_with_aix_soname=aix
8922 fi
8923
8924 with_aix_soname=$lt_cv_with_aix_soname
8925 fi
8926
8927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8928 printf "%s\n" "$with_aix_soname" >&6; }
8929 if test aix != "$with_aix_soname"; then
8930 # For the AIX way of multilib, we name the shared archive member
8931 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8932 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8933 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8934 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8935 if test 64 = "${OBJECT_MODE-32}"; then
8936 shared_archive_member_spec=shr_64
8937 else
8938 shared_archive_member_spec=shr
8939 fi
8940 fi
8941 ;;
8942 *)
8943 with_aix_soname=aix
8944 ;;
8945 esac
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956 # This can be used to rebuild libtool when needed
8957 LIBTOOL_DEPS=$ltmain
8958
8959 # Always use our own libtool.
8960 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991 test -z "$LN_S" && LN_S="ln -s"
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006 if test -n "${ZSH_VERSION+set}"; then
9007 setopt NO_GLOB_SUBST
9008 fi
9009
9010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9011 printf %s "checking for objdir... " >&6; }
9012 if test ${lt_cv_objdir+y}
9013 then :
9014 printf %s "(cached) " >&6
9015 else $as_nop
9016 rm -f .libs 2>/dev/null
9017 mkdir .libs 2>/dev/null
9018 if test -d .libs; then
9019 lt_cv_objdir=.libs
9020 else
9021 # MS-DOS does not allow filenames that begin with a dot.
9022 lt_cv_objdir=_libs
9023 fi
9024 rmdir .libs 2>/dev/null
9025 fi
9026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9027 printf "%s\n" "$lt_cv_objdir" >&6; }
9028 objdir=$lt_cv_objdir
9029
9030
9031
9032
9033
9034 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9035
9036
9037
9038
9039 case $host_os in
9040 aix3*)
9041 # AIX sometimes has problems with the GCC collect2 program. For some
9042 # reason, if we set the COLLECT_NAMES environment variable, the problems
9043 # vanish in a puff of smoke.
9044 if test set != "${COLLECT_NAMES+set}"; then
9045 COLLECT_NAMES=
9046 export COLLECT_NAMES
9047 fi
9048 ;;
9049 esac
9050
9051 # Global variables:
9052 ofile=libtool
9053 can_build_shared=yes
9054
9055 # All known linkers require a '.a' archive for static linking (except MSVC and
9056 # ICC, which need '.lib').
9057 libext=a
9058
9059 with_gnu_ld=$lt_cv_prog_gnu_ld
9060
9061 old_CC=$CC
9062 old_CFLAGS=$CFLAGS
9063
9064 # Set sane defaults for various variables
9065 test -z "$CC" && CC=cc
9066 test -z "$LTCC" && LTCC=$CC
9067 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9068 test -z "$LD" && LD=ld
9069 test -z "$ac_objext" && ac_objext=o
9070
9071 func_cc_basename $compiler
9072 cc_basename=$func_cc_basename_result
9073
9074
9075 # Only perform the check for file, if the check method requires it
9076 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9077 case $deplibs_check_method in
9078 file_magic*)
9079 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9081 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9082 if test ${lt_cv_path_MAGIC_CMD+y}
9083 then :
9084 printf %s "(cached) " >&6
9085 else $as_nop
9086 case $MAGIC_CMD in
9087 [\\/*] | ?:[\\/]*)
9088 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9089 ;;
9090 *)
9091 lt_save_MAGIC_CMD=$MAGIC_CMD
9092 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9093 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9094 for ac_dir in $ac_dummy; do
9095 IFS=$lt_save_ifs
9096 test -z "$ac_dir" && ac_dir=.
9097 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9098 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9099 if test -n "$file_magic_test_file"; then
9100 case $deplibs_check_method in
9101 "file_magic "*)
9102 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9103 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9104 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9105 $EGREP "$file_magic_regex" > /dev/null; then
9106 :
9107 else
9108 cat <<_LT_EOF 1>&2
9109
9110 *** Warning: the command libtool uses to detect shared libraries,
9111 *** $file_magic_cmd, produces output that libtool cannot recognize.
9112 *** The result is that libtool may fail to recognize shared libraries
9113 *** as such. This will affect the creation of libtool libraries that
9114 *** depend on shared libraries, but programs linked with such libtool
9115 *** libraries will work regardless of this problem. Nevertheless, you
9116 *** may want to report the problem to your system manager and/or to
9117 *** [email protected]
9118
9119 _LT_EOF
9120 fi ;;
9121 esac
9122 fi
9123 break
9124 fi
9125 done
9126 IFS=$lt_save_ifs
9127 MAGIC_CMD=$lt_save_MAGIC_CMD
9128 ;;
9129 esac
9130 fi
9131
9132 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9133 if test -n "$MAGIC_CMD"; then
9134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9135 printf "%s\n" "$MAGIC_CMD" >&6; }
9136 else
9137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9138 printf "%s\n" "no" >&6; }
9139 fi
9140
9141
9142
9143
9144
9145 if test -z "$lt_cv_path_MAGIC_CMD"; then
9146 if test -n "$ac_tool_prefix"; then
9147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9148 printf %s "checking for file... " >&6; }
9149 if test ${lt_cv_path_MAGIC_CMD+y}
9150 then :
9151 printf %s "(cached) " >&6
9152 else $as_nop
9153 case $MAGIC_CMD in
9154 [\\/*] | ?:[\\/]*)
9155 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9156 ;;
9157 *)
9158 lt_save_MAGIC_CMD=$MAGIC_CMD
9159 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9160 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9161 for ac_dir in $ac_dummy; do
9162 IFS=$lt_save_ifs
9163 test -z "$ac_dir" && ac_dir=.
9164 if test -f "$ac_dir/file"; then
9165 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9166 if test -n "$file_magic_test_file"; then
9167 case $deplibs_check_method in
9168 "file_magic "*)
9169 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9170 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9171 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9172 $EGREP "$file_magic_regex" > /dev/null; then
9173 :
9174 else
9175 cat <<_LT_EOF 1>&2
9176
9177 *** Warning: the command libtool uses to detect shared libraries,
9178 *** $file_magic_cmd, produces output that libtool cannot recognize.
9179 *** The result is that libtool may fail to recognize shared libraries
9180 *** as such. This will affect the creation of libtool libraries that
9181 *** depend on shared libraries, but programs linked with such libtool
9182 *** libraries will work regardless of this problem. Nevertheless, you
9183 *** may want to report the problem to your system manager and/or to
9184 *** [email protected]
9185
9186 _LT_EOF
9187 fi ;;
9188 esac
9189 fi
9190 break
9191 fi
9192 done
9193 IFS=$lt_save_ifs
9194 MAGIC_CMD=$lt_save_MAGIC_CMD
9195 ;;
9196 esac
9197 fi
9198
9199 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9200 if test -n "$MAGIC_CMD"; then
9201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9202 printf "%s\n" "$MAGIC_CMD" >&6; }
9203 else
9204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9205 printf "%s\n" "no" >&6; }
9206 fi
9207
9208
9209 else
9210 MAGIC_CMD=:
9211 fi
9212 fi
9213
9214 fi
9215 ;;
9216 esac
9217
9218 # Use C for the default configuration in the libtool script
9219
9220 lt_save_CC=$CC
9221 ac_ext=c
9222 ac_cpp='$CPP $CPPFLAGS'
9223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9226
9227
9228 # Source file extension for C test sources.
9229 ac_ext=c
9230
9231 # Object file extension for compiled C test sources.
9232 objext=o
9233 objext=$objext
9234
9235 # Code to be used in simple compile tests
9236 lt_simple_compile_test_code="int some_variable = 0;"
9237
9238 # Code to be used in simple link tests
9239 lt_simple_link_test_code='int main(){return(0);}'
9240
9241
9242
9243
9244
9245
9246
9247 # If no C compiler was specified, use CC.
9248 LTCC=${LTCC-"$CC"}
9249
9250 # If no C compiler flags were specified, use CFLAGS.
9251 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9252
9253 # Allow CC to be a program name with arguments.
9254 compiler=$CC
9255
9256 # Save the default compiler, since it gets overwritten when the other
9257 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9258 compiler_DEFAULT=$CC
9259
9260 # save warnings/boilerplate of simple test code
9261 ac_outfile=conftest.$ac_objext
9262 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9263 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9264 _lt_compiler_boilerplate=`cat conftest.err`
9265 $RM conftest*
9266
9267 ac_outfile=conftest.$ac_objext
9268 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9269 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9270 _lt_linker_boilerplate=`cat conftest.err`
9271 $RM -r conftest*
9272
9273
9274 ## CAVEAT EMPTOR:
9275 ## There is no encapsulation within the following macros, do not change
9276 ## the running order or otherwise move them around unless you know exactly
9277 ## what you are doing...
9278 if test -n "$compiler"; then
9279
9280 lt_prog_compiler_no_builtin_flag=
9281
9282 if test yes = "$GCC"; then
9283 case $cc_basename in
9284 nvcc*)
9285 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9286 *)
9287 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9288 esac
9289
9290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9291 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9292 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9293 then :
9294 printf %s "(cached) " >&6
9295 else $as_nop
9296 lt_cv_prog_compiler_rtti_exceptions=no
9297 ac_outfile=conftest.$ac_objext
9298 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9299 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9300 # Insert the option either (1) after the last *FLAGS variable, or
9301 # (2) before a word containing "conftest.", or (3) at the end.
9302 # Note that $ac_compile itself does not contain backslashes and begins
9303 # with a dollar sign (not a hyphen), so the echo should work correctly.
9304 # The option is referenced via a variable to avoid confusing sed.
9305 lt_compile=`echo "$ac_compile" | $SED \
9306 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9307 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9308 -e 's:$: $lt_compiler_flag:'`
9309 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9310 (eval "$lt_compile" 2>conftest.err)
9311 ac_status=$?
9312 cat conftest.err >&5
9313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9314 if (exit $ac_status) && test -s "$ac_outfile"; then
9315 # The compiler can only warn and ignore the option if not recognized
9316 # So say no if there are warnings other than the usual output.
9317 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9318 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9319 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9320 lt_cv_prog_compiler_rtti_exceptions=yes
9321 fi
9322 fi
9323 $RM conftest*
9324
9325 fi
9326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9327 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9328
9329 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9330 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9331 else
9332 :
9333 fi
9334
9335 fi
9336
9337
9338
9339
9340
9341
9342 lt_prog_compiler_wl=
9343 lt_prog_compiler_pic=
9344 lt_prog_compiler_static=
9345
9346
9347 if test yes = "$GCC"; then
9348 lt_prog_compiler_wl='-Wl,'
9349 lt_prog_compiler_static='-static'
9350
9351 case $host_os in
9352 aix*)
9353 # All AIX code is PIC.
9354 if test ia64 = "$host_cpu"; then
9355 # AIX 5 now supports IA64 processor
9356 lt_prog_compiler_static='-Bstatic'
9357 fi
9358 lt_prog_compiler_pic='-fPIC'
9359 ;;
9360
9361 amigaos*)
9362 case $host_cpu in
9363 powerpc)
9364 # see comment about AmigaOS4 .so support
9365 lt_prog_compiler_pic='-fPIC'
9366 ;;
9367 m68k)
9368 # FIXME: we need at least 68020 code to build shared libraries, but
9369 # adding the '-m68020' flag to GCC prevents building anything better,
9370 # like '-m68040'.
9371 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9372 ;;
9373 esac
9374 ;;
9375
9376 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9377 # PIC is the default for these OSes.
9378 ;;
9379
9380 mingw* | cygwin* | pw32* | os2* | cegcc*)
9381 # This hack is so that the source file can tell whether it is being
9382 # built for inclusion in a dll (and should export symbols for example).
9383 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9384 # (--disable-auto-import) libraries
9385 lt_prog_compiler_pic='-DDLL_EXPORT'
9386 case $host_os in
9387 os2*)
9388 lt_prog_compiler_static='$wl-static'
9389 ;;
9390 esac
9391 ;;
9392
9393 darwin* | rhapsody*)
9394 # PIC is the default on this platform
9395 # Common symbols not allowed in MH_DYLIB files
9396 lt_prog_compiler_pic='-fno-common'
9397 ;;
9398
9399 haiku*)
9400 # PIC is the default for Haiku.
9401 # The "-static" flag exists, but is broken.
9402 lt_prog_compiler_static=
9403 ;;
9404
9405 hpux*)
9406 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9407 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9408 # sets the default TLS model and affects inlining.
9409 case $host_cpu in
9410 hppa*64*)
9411 # +Z the default
9412 ;;
9413 *)
9414 lt_prog_compiler_pic='-fPIC'
9415 ;;
9416 esac
9417 ;;
9418
9419 interix[3-9]*)
9420 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9421 # Instead, we relocate shared libraries at runtime.
9422 ;;
9423
9424 msdosdjgpp*)
9425 # Just because we use GCC doesn't mean we suddenly get shared libraries
9426 # on systems that don't support them.
9427 lt_prog_compiler_can_build_shared=no
9428 enable_shared=no
9429 ;;
9430
9431 *nto* | *qnx*)
9432 # QNX uses GNU C++, but need to define -shared option too, otherwise
9433 # it will coredump.
9434 lt_prog_compiler_pic='-fPIC -shared'
9435 ;;
9436
9437 sysv4*MP*)
9438 if test -d /usr/nec; then
9439 lt_prog_compiler_pic=-Kconform_pic
9440 fi
9441 ;;
9442
9443 *)
9444 lt_prog_compiler_pic='-fPIC'
9445 ;;
9446 esac
9447
9448 case $cc_basename in
9449 nvcc*) # Cuda Compiler Driver 2.2
9450 lt_prog_compiler_wl='-Xlinker '
9451 if test -n "$lt_prog_compiler_pic"; then
9452 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9453 fi
9454 ;;
9455 esac
9456 else
9457 # PORTME Check for flag to pass linker flags through the system compiler.
9458 case $host_os in
9459 aix*)
9460 lt_prog_compiler_wl='-Wl,'
9461 if test ia64 = "$host_cpu"; then
9462 # AIX 5 now supports IA64 processor
9463 lt_prog_compiler_static='-Bstatic'
9464 else
9465 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9466 fi
9467 ;;
9468
9469 darwin* | rhapsody*)
9470 # PIC is the default on this platform
9471 # Common symbols not allowed in MH_DYLIB files
9472 lt_prog_compiler_pic='-fno-common'
9473 case $cc_basename in
9474 nagfor*)
9475 # NAG Fortran compiler
9476 lt_prog_compiler_wl='-Wl,-Wl,,'
9477 lt_prog_compiler_pic='-PIC'
9478 lt_prog_compiler_static='-Bstatic'
9479 ;;
9480 esac
9481 ;;
9482
9483 mingw* | cygwin* | pw32* | os2* | cegcc*)
9484 # This hack is so that the source file can tell whether it is being
9485 # built for inclusion in a dll (and should export symbols for example).
9486 lt_prog_compiler_pic='-DDLL_EXPORT'
9487 case $host_os in
9488 os2*)
9489 lt_prog_compiler_static='$wl-static'
9490 ;;
9491 esac
9492 ;;
9493
9494 hpux9* | hpux10* | hpux11*)
9495 lt_prog_compiler_wl='-Wl,'
9496 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9497 # not for PA HP-UX.
9498 case $host_cpu in
9499 hppa*64*|ia64*)
9500 # +Z the default
9501 ;;
9502 *)
9503 lt_prog_compiler_pic='+Z'
9504 ;;
9505 esac
9506 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9507 lt_prog_compiler_static='$wl-a ${wl}archive'
9508 ;;
9509
9510 irix5* | irix6* | nonstopux*)
9511 lt_prog_compiler_wl='-Wl,'
9512 # PIC (with -KPIC) is the default.
9513 lt_prog_compiler_static='-non_shared'
9514 ;;
9515
9516 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9517 case $cc_basename in
9518 # old Intel for x86_64, which still supported -KPIC.
9519 ecc*)
9520 lt_prog_compiler_wl='-Wl,'
9521 lt_prog_compiler_pic='-KPIC'
9522 lt_prog_compiler_static='-static'
9523 ;;
9524 # flang / f18. f95 an alias for gfortran or flang on Debian
9525 flang* | f18* | f95*)
9526 lt_prog_compiler_wl='-Wl,'
9527 lt_prog_compiler_pic='-fPIC'
9528 lt_prog_compiler_static='-static'
9529 ;;
9530 # icc used to be incompatible with GCC.
9531 # ICC 10 doesn't accept -KPIC any more.
9532 icc* | ifort*)
9533 lt_prog_compiler_wl='-Wl,'
9534 lt_prog_compiler_pic='-fPIC'
9535 lt_prog_compiler_static='-static'
9536 ;;
9537 # Lahey Fortran 8.1.
9538 lf95*)
9539 lt_prog_compiler_wl='-Wl,'
9540 lt_prog_compiler_pic='--shared'
9541 lt_prog_compiler_static='--static'
9542 ;;
9543 nagfor*)
9544 # NAG Fortran compiler
9545 lt_prog_compiler_wl='-Wl,-Wl,,'
9546 lt_prog_compiler_pic='-PIC'
9547 lt_prog_compiler_static='-Bstatic'
9548 ;;
9549 tcc*)
9550 # Fabrice Bellard et al's Tiny C Compiler
9551 lt_prog_compiler_wl='-Wl,'
9552 lt_prog_compiler_pic='-fPIC'
9553 lt_prog_compiler_static='-static'
9554 ;;
9555 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9556 # Portland Group compilers (*not* the Pentium gcc compiler,
9557 # which looks to be a dead project)
9558 lt_prog_compiler_wl='-Wl,'
9559 lt_prog_compiler_pic='-fpic'
9560 lt_prog_compiler_static='-Bstatic'
9561 ;;
9562 ccc*)
9563 lt_prog_compiler_wl='-Wl,'
9564 # All Alpha code is PIC.
9565 lt_prog_compiler_static='-non_shared'
9566 ;;
9567 xl* | bgxl* | bgf* | mpixl*)
9568 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9569 lt_prog_compiler_wl='-Wl,'
9570 lt_prog_compiler_pic='-qpic'
9571 lt_prog_compiler_static='-qstaticlink'
9572 ;;
9573 *)
9574 case `$CC -V 2>&1 | $SED 5q` in
9575 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9576 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9577 lt_prog_compiler_pic='-KPIC'
9578 lt_prog_compiler_static='-Bstatic'
9579 lt_prog_compiler_wl=''
9580 ;;
9581 *Sun\ F* | *Sun*Fortran*)
9582 lt_prog_compiler_pic='-KPIC'
9583 lt_prog_compiler_static='-Bstatic'
9584 lt_prog_compiler_wl='-Qoption ld '
9585 ;;
9586 *Sun\ C*)
9587 # Sun C 5.9
9588 lt_prog_compiler_pic='-KPIC'
9589 lt_prog_compiler_static='-Bstatic'
9590 lt_prog_compiler_wl='-Wl,'
9591 ;;
9592 *Intel*\ [CF]*Compiler*)
9593 lt_prog_compiler_wl='-Wl,'
9594 lt_prog_compiler_pic='-fPIC'
9595 lt_prog_compiler_static='-static'
9596 ;;
9597 *Portland\ Group*)
9598 lt_prog_compiler_wl='-Wl,'
9599 lt_prog_compiler_pic='-fpic'
9600 lt_prog_compiler_static='-Bstatic'
9601 ;;
9602 esac
9603 ;;
9604 esac
9605 ;;
9606
9607 newsos6)
9608 lt_prog_compiler_pic='-KPIC'
9609 lt_prog_compiler_static='-Bstatic'
9610 ;;
9611
9612 *nto* | *qnx*)
9613 # QNX uses GNU C++, but need to define -shared option too, otherwise
9614 # it will coredump.
9615 lt_prog_compiler_pic='-fPIC -shared'
9616 ;;
9617
9618 osf3* | osf4* | osf5*)
9619 lt_prog_compiler_wl='-Wl,'
9620 # All OSF/1 code is PIC.
9621 lt_prog_compiler_static='-non_shared'
9622 ;;
9623
9624 rdos*)
9625 lt_prog_compiler_static='-non_shared'
9626 ;;
9627
9628 solaris*)
9629 lt_prog_compiler_pic='-KPIC'
9630 lt_prog_compiler_static='-Bstatic'
9631 case $cc_basename in
9632 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9633 lt_prog_compiler_wl='-Qoption ld ';;
9634 *)
9635 lt_prog_compiler_wl='-Wl,';;
9636 esac
9637 ;;
9638
9639 sunos4*)
9640 lt_prog_compiler_wl='-Qoption ld '
9641 lt_prog_compiler_pic='-PIC'
9642 lt_prog_compiler_static='-Bstatic'
9643 ;;
9644
9645 sysv4 | sysv4.2uw2* | sysv4.3*)
9646 lt_prog_compiler_wl='-Wl,'
9647 lt_prog_compiler_pic='-KPIC'
9648 lt_prog_compiler_static='-Bstatic'
9649 ;;
9650
9651 sysv4*MP*)
9652 if test -d /usr/nec; then
9653 lt_prog_compiler_pic='-Kconform_pic'
9654 lt_prog_compiler_static='-Bstatic'
9655 fi
9656 ;;
9657
9658 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9659 lt_prog_compiler_wl='-Wl,'
9660 lt_prog_compiler_pic='-KPIC'
9661 lt_prog_compiler_static='-Bstatic'
9662 ;;
9663
9664 unicos*)
9665 lt_prog_compiler_wl='-Wl,'
9666 lt_prog_compiler_can_build_shared=no
9667 ;;
9668
9669 uts4*)
9670 lt_prog_compiler_pic='-pic'
9671 lt_prog_compiler_static='-Bstatic'
9672 ;;
9673
9674 *)
9675 lt_prog_compiler_can_build_shared=no
9676 ;;
9677 esac
9678 fi
9679
9680 case $host_os in
9681 # For platforms that do not support PIC, -DPIC is meaningless:
9682 *djgpp*)
9683 lt_prog_compiler_pic=
9684 ;;
9685 *)
9686 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9687 ;;
9688 esac
9689
9690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9691 printf %s "checking for $compiler option to produce PIC... " >&6; }
9692 if test ${lt_cv_prog_compiler_pic+y}
9693 then :
9694 printf %s "(cached) " >&6
9695 else $as_nop
9696 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9697 fi
9698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9699 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9700 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9701
9702 #
9703 # Check to make sure the PIC flag actually works.
9704 #
9705 if test -n "$lt_prog_compiler_pic"; then
9706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9707 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9708 if test ${lt_cv_prog_compiler_pic_works+y}
9709 then :
9710 printf %s "(cached) " >&6
9711 else $as_nop
9712 lt_cv_prog_compiler_pic_works=no
9713 ac_outfile=conftest.$ac_objext
9714 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9715 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9716 # Insert the option either (1) after the last *FLAGS variable, or
9717 # (2) before a word containing "conftest.", or (3) at the end.
9718 # Note that $ac_compile itself does not contain backslashes and begins
9719 # with a dollar sign (not a hyphen), so the echo should work correctly.
9720 # The option is referenced via a variable to avoid confusing sed.
9721 lt_compile=`echo "$ac_compile" | $SED \
9722 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9723 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9724 -e 's:$: $lt_compiler_flag:'`
9725 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9726 (eval "$lt_compile" 2>conftest.err)
9727 ac_status=$?
9728 cat conftest.err >&5
9729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730 if (exit $ac_status) && test -s "$ac_outfile"; then
9731 # The compiler can only warn and ignore the option if not recognized
9732 # So say no if there are warnings other than the usual output.
9733 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9734 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9735 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9736 lt_cv_prog_compiler_pic_works=yes
9737 fi
9738 fi
9739 $RM conftest*
9740
9741 fi
9742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9743 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9744
9745 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9746 case $lt_prog_compiler_pic in
9747 "" | " "*) ;;
9748 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9749 esac
9750 else
9751 lt_prog_compiler_pic=
9752 lt_prog_compiler_can_build_shared=no
9753 fi
9754
9755 fi
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767 #
9768 # Check to make sure the static flag actually works.
9769 #
9770 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9772 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9773 if test ${lt_cv_prog_compiler_static_works+y}
9774 then :
9775 printf %s "(cached) " >&6
9776 else $as_nop
9777 lt_cv_prog_compiler_static_works=no
9778 save_LDFLAGS=$LDFLAGS
9779 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9780 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9781 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9782 # The linker can only warn and ignore the option if not recognized
9783 # So say no if there are warnings
9784 if test -s conftest.err; then
9785 # Append any errors to the config.log.
9786 cat conftest.err 1>&5
9787 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9788 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9789 if diff conftest.exp conftest.er2 >/dev/null; then
9790 lt_cv_prog_compiler_static_works=yes
9791 fi
9792 else
9793 lt_cv_prog_compiler_static_works=yes
9794 fi
9795 fi
9796 $RM -r conftest*
9797 LDFLAGS=$save_LDFLAGS
9798
9799 fi
9800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9801 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9802
9803 if test yes = "$lt_cv_prog_compiler_static_works"; then
9804 :
9805 else
9806 lt_prog_compiler_static=
9807 fi
9808
9809
9810
9811
9812
9813
9814
9815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9816 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9817 if test ${lt_cv_prog_compiler_c_o+y}
9818 then :
9819 printf %s "(cached) " >&6
9820 else $as_nop
9821 lt_cv_prog_compiler_c_o=no
9822 $RM -r conftest 2>/dev/null
9823 mkdir conftest
9824 cd conftest
9825 mkdir out
9826 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9827
9828 lt_compiler_flag="-o out/conftest2.$ac_objext"
9829 # Insert the option either (1) after the last *FLAGS variable, or
9830 # (2) before a word containing "conftest.", or (3) at the end.
9831 # Note that $ac_compile itself does not contain backslashes and begins
9832 # with a dollar sign (not a hyphen), so the echo should work correctly.
9833 lt_compile=`echo "$ac_compile" | $SED \
9834 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9835 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9836 -e 's:$: $lt_compiler_flag:'`
9837 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9838 (eval "$lt_compile" 2>out/conftest.err)
9839 ac_status=$?
9840 cat out/conftest.err >&5
9841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9843 then
9844 # The compiler can only warn and ignore the option if not recognized
9845 # So say no if there are warnings
9846 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9847 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9848 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9849 lt_cv_prog_compiler_c_o=yes
9850 fi
9851 fi
9852 chmod u+w . 2>&5
9853 $RM conftest*
9854 # SGI C++ compiler will create directory out/ii_files/ for
9855 # template instantiation
9856 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9857 $RM out/* && rmdir out
9858 cd ..
9859 $RM -r conftest
9860 $RM conftest*
9861
9862 fi
9863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9864 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9865
9866
9867
9868
9869
9870
9871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9872 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9873 if test ${lt_cv_prog_compiler_c_o+y}
9874 then :
9875 printf %s "(cached) " >&6
9876 else $as_nop
9877 lt_cv_prog_compiler_c_o=no
9878 $RM -r conftest 2>/dev/null
9879 mkdir conftest
9880 cd conftest
9881 mkdir out
9882 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9883
9884 lt_compiler_flag="-o out/conftest2.$ac_objext"
9885 # Insert the option either (1) after the last *FLAGS variable, or
9886 # (2) before a word containing "conftest.", or (3) at the end.
9887 # Note that $ac_compile itself does not contain backslashes and begins
9888 # with a dollar sign (not a hyphen), so the echo should work correctly.
9889 lt_compile=`echo "$ac_compile" | $SED \
9890 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9891 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9892 -e 's:$: $lt_compiler_flag:'`
9893 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9894 (eval "$lt_compile" 2>out/conftest.err)
9895 ac_status=$?
9896 cat out/conftest.err >&5
9897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9899 then
9900 # The compiler can only warn and ignore the option if not recognized
9901 # So say no if there are warnings
9902 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9903 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9904 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9905 lt_cv_prog_compiler_c_o=yes
9906 fi
9907 fi
9908 chmod u+w . 2>&5
9909 $RM conftest*
9910 # SGI C++ compiler will create directory out/ii_files/ for
9911 # template instantiation
9912 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9913 $RM out/* && rmdir out
9914 cd ..
9915 $RM -r conftest
9916 $RM conftest*
9917
9918 fi
9919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9920 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9921
9922
9923
9924
9925 hard_links=nottested
9926 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9927 # do not overwrite the value of need_locks provided by the user
9928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9929 printf %s "checking if we can lock with hard links... " >&6; }
9930 hard_links=yes
9931 $RM conftest*
9932 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9933 touch conftest.a
9934 ln conftest.a conftest.b 2>&5 || hard_links=no
9935 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9937 printf "%s\n" "$hard_links" >&6; }
9938 if test no = "$hard_links"; then
9939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9940 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9941 need_locks=warn
9942 fi
9943 else
9944 need_locks=no
9945 fi
9946
9947
9948
9949
9950
9951
9952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9953 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9954
9955 runpath_var=
9956 allow_undefined_flag=
9957 always_export_symbols=no
9958 archive_cmds=
9959 archive_expsym_cmds=
9960 compiler_needs_object=no
9961 enable_shared_with_static_runtimes=no
9962 export_dynamic_flag_spec=
9963 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9964 hardcode_automatic=no
9965 hardcode_direct=no
9966 hardcode_direct_absolute=no
9967 hardcode_libdir_flag_spec=
9968 hardcode_libdir_separator=
9969 hardcode_minus_L=no
9970 hardcode_shlibpath_var=unsupported
9971 inherit_rpath=no
9972 link_all_deplibs=unknown
9973 module_cmds=
9974 module_expsym_cmds=
9975 old_archive_from_new_cmds=
9976 old_archive_from_expsyms_cmds=
9977 thread_safe_flag_spec=
9978 whole_archive_flag_spec=
9979 # include_expsyms should be a list of space-separated symbols to be *always*
9980 # included in the symbol list
9981 include_expsyms=
9982 # exclude_expsyms can be an extended regexp of symbols to exclude
9983 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9984 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9985 # as well as any symbol that contains 'd'.
9986 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9987 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9988 # platforms (ab)use it in PIC code, but their linkers get confused if
9989 # the symbol is explicitly referenced. Since portable code cannot
9990 # rely on this symbol name, it's probably fine to never include it in
9991 # preloaded symbol tables.
9992 # Exclude shared library initialization/finalization symbols.
9993 extract_expsyms_cmds=
9994
9995 case $host_os in
9996 cygwin* | mingw* | pw32* | cegcc*)
9997 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9998 # When not using gcc, we currently assume that we are using
9999 # Microsoft Visual C++ or Intel C++ Compiler.
10000 if test yes != "$GCC"; then
10001 with_gnu_ld=no
10002 fi
10003 ;;
10004 interix*)
10005 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10006 with_gnu_ld=yes
10007 ;;
10008 openbsd* | bitrig*)
10009 with_gnu_ld=no
10010 ;;
10011 linux* | k*bsd*-gnu | gnu*)
10012 link_all_deplibs=no
10013 ;;
10014 esac
10015
10016 ld_shlibs=yes
10017
10018 # On some targets, GNU ld is compatible enough with the native linker
10019 # that we're better off using the native interface for both.
10020 lt_use_gnu_ld_interface=no
10021 if test yes = "$with_gnu_ld"; then
10022 case $host_os in
10023 aix*)
10024 # The AIX port of GNU ld has always aspired to compatibility
10025 # with the native linker. However, as the warning in the GNU ld
10026 # block says, versions before 2.19.5* couldn't really create working
10027 # shared libraries, regardless of the interface used.
10028 case `$LD -v 2>&1` in
10029 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10030 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10031 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10032 *)
10033 lt_use_gnu_ld_interface=yes
10034 ;;
10035 esac
10036 ;;
10037 *)
10038 lt_use_gnu_ld_interface=yes
10039 ;;
10040 esac
10041 fi
10042
10043 if test yes = "$lt_use_gnu_ld_interface"; then
10044 # If archive_cmds runs LD, not CC, wlarc should be empty
10045 wlarc='$wl'
10046
10047 # Set some defaults for GNU ld with shared library support. These
10048 # are reset later if shared libraries are not supported. Putting them
10049 # here allows them to be overridden if necessary.
10050 runpath_var=LD_RUN_PATH
10051 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10052 export_dynamic_flag_spec='$wl--export-dynamic'
10053 # ancient GNU ld didn't support --whole-archive et. al.
10054 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10055 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10056 else
10057 whole_archive_flag_spec=
10058 fi
10059 supports_anon_versioning=no
10060 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10061 *GNU\ gold*) supports_anon_versioning=yes ;;
10062 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10063 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10064 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10065 *\ 2.11.*) ;; # other 2.11 versions
10066 *) supports_anon_versioning=yes ;;
10067 esac
10068
10069 # See if GNU ld supports shared libraries.
10070 case $host_os in
10071 aix[3-9]*)
10072 # On AIX/PPC, the GNU linker is very broken
10073 if test ia64 != "$host_cpu"; then
10074 ld_shlibs=no
10075 cat <<_LT_EOF 1>&2
10076
10077 *** Warning: the GNU linker, at least up to release 2.19, is reported
10078 *** to be unable to reliably create shared libraries on AIX.
10079 *** Therefore, libtool is disabling shared libraries support. If you
10080 *** really care for shared libraries, you may want to install binutils
10081 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10082 *** You will then need to restart the configuration process.
10083
10084 _LT_EOF
10085 fi
10086 ;;
10087
10088 amigaos*)
10089 case $host_cpu in
10090 powerpc)
10091 # see comment about AmigaOS4 .so support
10092 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10093 archive_expsym_cmds=''
10094 ;;
10095 m68k)
10096 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)'
10097 hardcode_libdir_flag_spec='-L$libdir'
10098 hardcode_minus_L=yes
10099 ;;
10100 esac
10101 ;;
10102
10103 beos*)
10104 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10105 allow_undefined_flag=unsupported
10106 # Joseph Beckenbach <[email protected]> says some releases of gcc
10107 # support --undefined. This deserves some investigation. FIXME
10108 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10109 else
10110 ld_shlibs=no
10111 fi
10112 ;;
10113
10114 cygwin* | mingw* | pw32* | cegcc*)
10115 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10116 # as there is no search path for DLLs.
10117 hardcode_libdir_flag_spec='-L$libdir'
10118 export_dynamic_flag_spec='$wl--export-all-symbols'
10119 allow_undefined_flag=unsupported
10120 always_export_symbols=no
10121 enable_shared_with_static_runtimes=yes
10122 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'
10123 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10124
10125 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10126 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10127 # If the export-symbols file already is a .def file, use it as
10128 # is; otherwise, prepend EXPORTS...
10129 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10130 cp $export_symbols $output_objdir/$soname.def;
10131 else
10132 echo EXPORTS > $output_objdir/$soname.def;
10133 cat $export_symbols >> $output_objdir/$soname.def;
10134 fi~
10135 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10136 else
10137 ld_shlibs=no
10138 fi
10139 ;;
10140
10141 haiku*)
10142 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10143 link_all_deplibs=yes
10144 ;;
10145
10146 os2*)
10147 hardcode_libdir_flag_spec='-L$libdir'
10148 hardcode_minus_L=yes
10149 allow_undefined_flag=unsupported
10150 shrext_cmds=.dll
10151 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10152 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10153 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10154 $ECHO EXPORTS >> $output_objdir/$libname.def~
10155 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10156 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10157 emximp -o $lib $output_objdir/$libname.def'
10158 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10159 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10160 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10161 $ECHO EXPORTS >> $output_objdir/$libname.def~
10162 prefix_cmds="$SED"~
10163 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10164 prefix_cmds="$prefix_cmds -e 1d";
10165 fi~
10166 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10167 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10168 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10169 emximp -o $lib $output_objdir/$libname.def'
10170 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10171 enable_shared_with_static_runtimes=yes
10172 file_list_spec='@'
10173 ;;
10174
10175 interix[3-9]*)
10176 hardcode_direct=no
10177 hardcode_shlibpath_var=no
10178 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10179 export_dynamic_flag_spec='$wl-E'
10180 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10181 # Instead, shared libraries are loaded at an image base (0x10000000 by
10182 # default) and relocated if they conflict, which is a slow very memory
10183 # consuming and fragmenting process. To avoid this, we pick a random,
10184 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10185 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10186 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10187 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'
10188 ;;
10189
10190 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10191 tmp_diet=no
10192 if test linux-dietlibc = "$host_os"; then
10193 case $cc_basename in
10194 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10195 esac
10196 fi
10197 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10198 && test no = "$tmp_diet"
10199 then
10200 tmp_addflag=' $pic_flag'
10201 tmp_sharedflag='-shared'
10202 case $cc_basename,$host_cpu in
10203 pgcc*) # Portland Group C compiler
10204 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'
10205 tmp_addflag=' $pic_flag'
10206 ;;
10207 pgf77* | pgf90* | pgf95* | pgfortran*)
10208 # Portland Group f77 and f90 compilers
10209 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'
10210 tmp_addflag=' $pic_flag -Mnomain' ;;
10211 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10212 tmp_addflag=' -i_dynamic' ;;
10213 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10214 tmp_addflag=' -i_dynamic -nofor_main' ;;
10215 ifc* | ifort*) # Intel Fortran compiler
10216 tmp_addflag=' -nofor_main' ;;
10217 lf95*) # Lahey Fortran 8.1
10218 whole_archive_flag_spec=
10219 tmp_sharedflag='--shared' ;;
10220 nagfor*) # NAGFOR 5.3
10221 tmp_sharedflag='-Wl,-shared' ;;
10222 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10223 tmp_sharedflag='-qmkshrobj'
10224 tmp_addflag= ;;
10225 nvcc*) # Cuda Compiler Driver 2.2
10226 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'
10227 compiler_needs_object=yes
10228 ;;
10229 esac
10230 case `$CC -V 2>&1 | $SED 5q` in
10231 *Sun\ C*) # Sun C 5.9
10232 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'
10233 compiler_needs_object=yes
10234 tmp_sharedflag='-G' ;;
10235 *Sun\ F*) # Sun Fortran 8.3
10236 tmp_sharedflag='-G' ;;
10237 esac
10238 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10239
10240 if test yes = "$supports_anon_versioning"; then
10241 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10242 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10243 echo "local: *; };" >> $output_objdir/$libname.ver~
10244 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10245 fi
10246
10247 case $cc_basename in
10248 tcc*)
10249 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10250 export_dynamic_flag_spec='-rdynamic'
10251 ;;
10252 xlf* | bgf* | bgxlf* | mpixlf*)
10253 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10254 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10255 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10256 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10257 if test yes = "$supports_anon_versioning"; then
10258 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10259 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10260 echo "local: *; };" >> $output_objdir/$libname.ver~
10261 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10262 fi
10263 ;;
10264 esac
10265 else
10266 ld_shlibs=no
10267 fi
10268 ;;
10269
10270 netbsd* | netbsdelf*-gnu)
10271 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10272 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10273 wlarc=
10274 else
10275 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10276 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10277 fi
10278 ;;
10279
10280 solaris*)
10281 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10282 ld_shlibs=no
10283 cat <<_LT_EOF 1>&2
10284
10285 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10286 *** create shared libraries on Solaris systems. Therefore, libtool
10287 *** is disabling shared libraries support. We urge you to upgrade GNU
10288 *** binutils to release 2.9.1 or newer. Another option is to modify
10289 *** your PATH or compiler configuration so that the native linker is
10290 *** used, and then restart.
10291
10292 _LT_EOF
10293 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10294 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10295 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10296 else
10297 ld_shlibs=no
10298 fi
10299 ;;
10300
10301 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10302 case `$LD -v 2>&1` in
10303 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10304 ld_shlibs=no
10305 cat <<_LT_EOF 1>&2
10306
10307 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10308 *** reliably create shared libraries on SCO systems. Therefore, libtool
10309 *** is disabling shared libraries support. We urge you to upgrade GNU
10310 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10311 *** your PATH or compiler configuration so that the native linker is
10312 *** used, and then restart.
10313
10314 _LT_EOF
10315 ;;
10316 *)
10317 # For security reasons, it is highly recommended that you always
10318 # use absolute paths for naming shared libraries, and exclude the
10319 # DT_RUNPATH tag from executables and libraries. But doing so
10320 # requires that you compile everything twice, which is a pain.
10321 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10322 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10323 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10324 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10325 else
10326 ld_shlibs=no
10327 fi
10328 ;;
10329 esac
10330 ;;
10331
10332 sunos4*)
10333 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10334 wlarc=
10335 hardcode_direct=yes
10336 hardcode_shlibpath_var=no
10337 ;;
10338
10339 *)
10340 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10341 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10342 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10343 else
10344 ld_shlibs=no
10345 fi
10346 ;;
10347 esac
10348
10349 if test no = "$ld_shlibs"; then
10350 runpath_var=
10351 hardcode_libdir_flag_spec=
10352 export_dynamic_flag_spec=
10353 whole_archive_flag_spec=
10354 fi
10355 else
10356 # PORTME fill in a description of your system's linker (not GNU ld)
10357 case $host_os in
10358 aix3*)
10359 allow_undefined_flag=unsupported
10360 always_export_symbols=yes
10361 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'
10362 # Note: this linker hardcodes the directories in LIBPATH if there
10363 # are no directories specified by -L.
10364 hardcode_minus_L=yes
10365 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10366 # Neither direct hardcoding nor static linking is supported with a
10367 # broken collect2.
10368 hardcode_direct=unsupported
10369 fi
10370 ;;
10371
10372 aix[4-9]*)
10373 if test ia64 = "$host_cpu"; then
10374 # On IA64, the linker does run time linking by default, so we don't
10375 # have to do anything special.
10376 aix_use_runtimelinking=no
10377 exp_sym_flag='-Bexport'
10378 no_entry_flag=
10379 else
10380 # If we're using GNU nm, then we don't want the "-C" option.
10381 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10382 # Without the "-l" option, or with the "-B" option, AIX nm treats
10383 # weak defined symbols like other global defined symbols, whereas
10384 # GNU nm marks them as "W".
10385 # While the 'weak' keyword is ignored in the Export File, we need
10386 # it in the Import File for the 'aix-soname' feature, so we have
10387 # to replace the "-B" option with "-P" for AIX nm.
10388 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10389 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'
10390 else
10391 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 == "L") || (\$ 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'
10392 fi
10393 aix_use_runtimelinking=no
10394
10395 # Test if we are trying to use run time linking or normal
10396 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10397 # have runtime linking enabled, and use it for executables.
10398 # For shared libraries, we enable/disable runtime linking
10399 # depending on the kind of the shared library created -
10400 # when "with_aix_soname,aix_use_runtimelinking" is:
10401 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10402 # "aix,yes" lib.so shared, rtl:yes, for executables
10403 # lib.a static archive
10404 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10405 # lib.a(lib.so.V) shared, rtl:no, for executables
10406 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10407 # lib.a(lib.so.V) shared, rtl:no
10408 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10409 # lib.a static archive
10410 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10411 for ld_flag in $LDFLAGS; do
10412 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10413 aix_use_runtimelinking=yes
10414 break
10415 fi
10416 done
10417 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10418 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10419 # so we don't have lib.a shared libs to link our executables.
10420 # We have to force runtime linking in this case.
10421 aix_use_runtimelinking=yes
10422 LDFLAGS="$LDFLAGS -Wl,-brtl"
10423 fi
10424 ;;
10425 esac
10426
10427 exp_sym_flag='-bexport'
10428 no_entry_flag='-bnoentry'
10429 fi
10430
10431 # When large executables or shared objects are built, AIX ld can
10432 # have problems creating the table of contents. If linking a library
10433 # or program results in "error TOC overflow" add -mminimal-toc to
10434 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10435 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10436
10437 archive_cmds=''
10438 hardcode_direct=yes
10439 hardcode_direct_absolute=yes
10440 hardcode_libdir_separator=':'
10441 link_all_deplibs=yes
10442 file_list_spec='$wl-f,'
10443 case $with_aix_soname,$aix_use_runtimelinking in
10444 aix,*) ;; # traditional, no import file
10445 svr4,* | *,yes) # use import file
10446 # The Import File defines what to hardcode.
10447 hardcode_direct=no
10448 hardcode_direct_absolute=no
10449 ;;
10450 esac
10451
10452 if test yes = "$GCC"; then
10453 case $host_os in aix4.[012]|aix4.[012].*)
10454 # We only want to do this on AIX 4.2 and lower, the check
10455 # below for broken collect2 doesn't work under 4.3+
10456 collect2name=`$CC -print-prog-name=collect2`
10457 if test -f "$collect2name" &&
10458 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10459 then
10460 # We have reworked collect2
10461 :
10462 else
10463 # We have old collect2
10464 hardcode_direct=unsupported
10465 # It fails to find uninstalled libraries when the uninstalled
10466 # path is not listed in the libpath. Setting hardcode_minus_L
10467 # to unsupported forces relinking
10468 hardcode_minus_L=yes
10469 hardcode_libdir_flag_spec='-L$libdir'
10470 hardcode_libdir_separator=
10471 fi
10472 ;;
10473 esac
10474 shared_flag='-shared'
10475 if test yes = "$aix_use_runtimelinking"; then
10476 shared_flag="$shared_flag "'$wl-G'
10477 fi
10478 # Need to ensure runtime linking is disabled for the traditional
10479 # shared library, or the linker may eventually find shared libraries
10480 # /with/ Import File - we do not want to mix them.
10481 shared_flag_aix='-shared'
10482 shared_flag_svr4='-shared $wl-G'
10483 else
10484 # not using gcc
10485 if test ia64 = "$host_cpu"; then
10486 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10487 # chokes on -Wl,-G. The following line is correct:
10488 shared_flag='-G'
10489 else
10490 if test yes = "$aix_use_runtimelinking"; then
10491 shared_flag='$wl-G'
10492 else
10493 shared_flag='$wl-bM:SRE'
10494 fi
10495 shared_flag_aix='$wl-bM:SRE'
10496 shared_flag_svr4='$wl-G'
10497 fi
10498 fi
10499
10500 export_dynamic_flag_spec='$wl-bexpall'
10501 # It seems that -bexpall does not export symbols beginning with
10502 # underscore (_), so it is better to generate a list of symbols to export.
10503 always_export_symbols=yes
10504 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10505 # Warning - without using the other runtime loading flags (-brtl),
10506 # -berok will link without error, but may produce a broken library.
10507 allow_undefined_flag='-berok'
10508 # Determine the default libpath from the value encoded in an
10509 # empty executable.
10510 if test set = "${lt_cv_aix_libpath+set}"; then
10511 aix_libpath=$lt_cv_aix_libpath
10512 else
10513 if test ${lt_cv_aix_libpath_+y}
10514 then :
10515 printf %s "(cached) " >&6
10516 else $as_nop
10517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10518 /* end confdefs.h. */
10519
10520 int
10521 main (void)
10522 {
10523
10524 ;
10525 return 0;
10526 }
10527 _ACEOF
10528 if ac_fn_c_try_link "$LINENO"
10529 then :
10530
10531 lt_aix_libpath_sed='
10532 /Import File Strings/,/^$/ {
10533 /^0/ {
10534 s/^0 *\([^ ]*\) *$/\1/
10535 p
10536 }
10537 }'
10538 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10539 # Check for a 64-bit object if we didn't find anything.
10540 if test -z "$lt_cv_aix_libpath_"; then
10541 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10542 fi
10543 fi
10544 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10545 conftest$ac_exeext conftest.$ac_ext
10546 if test -z "$lt_cv_aix_libpath_"; then
10547 lt_cv_aix_libpath_=/usr/lib:/lib
10548 fi
10549
10550 fi
10551
10552 aix_libpath=$lt_cv_aix_libpath_
10553 fi
10554
10555 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10556 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
10557 else
10558 if test ia64 = "$host_cpu"; then
10559 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10560 allow_undefined_flag="-z nodefs"
10561 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"
10562 else
10563 # Determine the default libpath from the value encoded in an
10564 # empty executable.
10565 if test set = "${lt_cv_aix_libpath+set}"; then
10566 aix_libpath=$lt_cv_aix_libpath
10567 else
10568 if test ${lt_cv_aix_libpath_+y}
10569 then :
10570 printf %s "(cached) " >&6
10571 else $as_nop
10572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10573 /* end confdefs.h. */
10574
10575 int
10576 main (void)
10577 {
10578
10579 ;
10580 return 0;
10581 }
10582 _ACEOF
10583 if ac_fn_c_try_link "$LINENO"
10584 then :
10585
10586 lt_aix_libpath_sed='
10587 /Import File Strings/,/^$/ {
10588 /^0/ {
10589 s/^0 *\([^ ]*\) *$/\1/
10590 p
10591 }
10592 }'
10593 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10594 # Check for a 64-bit object if we didn't find anything.
10595 if test -z "$lt_cv_aix_libpath_"; then
10596 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10597 fi
10598 fi
10599 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10600 conftest$ac_exeext conftest.$ac_ext
10601 if test -z "$lt_cv_aix_libpath_"; then
10602 lt_cv_aix_libpath_=/usr/lib:/lib
10603 fi
10604
10605 fi
10606
10607 aix_libpath=$lt_cv_aix_libpath_
10608 fi
10609
10610 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10611 # Warning - without using the other run time loading flags,
10612 # -berok will link without error, but may produce a broken library.
10613 no_undefined_flag=' $wl-bernotok'
10614 allow_undefined_flag=' $wl-berok'
10615 if test yes = "$with_gnu_ld"; then
10616 # We only use this code for GNU lds that support --whole-archive.
10617 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10618 else
10619 # Exported symbols can be pulled into shared objects from archives
10620 whole_archive_flag_spec='$convenience'
10621 fi
10622 archive_cmds_need_lc=yes
10623 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10624 # -brtl affects multiple linker settings, -berok does not and is overridden later
10625 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10626 if test svr4 != "$with_aix_soname"; then
10627 # This is similar to how AIX traditionally builds its shared libraries.
10628 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'
10629 fi
10630 if test aix != "$with_aix_soname"; then
10631 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'
10632 else
10633 # used by -dlpreopen to get the symbols
10634 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10635 fi
10636 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10637 fi
10638 fi
10639 ;;
10640
10641 amigaos*)
10642 case $host_cpu in
10643 powerpc)
10644 # see comment about AmigaOS4 .so support
10645 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10646 archive_expsym_cmds=''
10647 ;;
10648 m68k)
10649 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)'
10650 hardcode_libdir_flag_spec='-L$libdir'
10651 hardcode_minus_L=yes
10652 ;;
10653 esac
10654 ;;
10655
10656 bsdi[45]*)
10657 export_dynamic_flag_spec=-rdynamic
10658 ;;
10659
10660 cygwin* | mingw* | pw32* | cegcc*)
10661 # When not using gcc, we currently assume that we are using
10662 # Microsoft Visual C++ or Intel C++ Compiler.
10663 # hardcode_libdir_flag_spec is actually meaningless, as there is
10664 # no search path for DLLs.
10665 case $cc_basename in
10666 cl* | icl*)
10667 # Native MSVC or ICC
10668 hardcode_libdir_flag_spec=' '
10669 allow_undefined_flag=unsupported
10670 always_export_symbols=yes
10671 file_list_spec='@'
10672 # Tell ltmain to make .lib files, not .a files.
10673 libext=lib
10674 # Tell ltmain to make .dll files, not .so files.
10675 shrext_cmds=.dll
10676 # FIXME: Setting linknames here is a bad hack.
10677 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10678 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10679 cp "$export_symbols" "$output_objdir/$soname.def";
10680 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10681 else
10682 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10683 fi~
10684 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10685 linknames='
10686 # The linker will not automatically build a static lib if we build a DLL.
10687 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10688 enable_shared_with_static_runtimes=yes
10689 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10690 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10691 # Don't use ranlib
10692 old_postinstall_cmds='chmod 644 $oldlib'
10693 postlink_cmds='lt_outputfile="@OUTPUT@"~
10694 lt_tool_outputfile="@TOOL_OUTPUT@"~
10695 case $lt_outputfile in
10696 *.exe|*.EXE) ;;
10697 *)
10698 lt_outputfile=$lt_outputfile.exe
10699 lt_tool_outputfile=$lt_tool_outputfile.exe
10700 ;;
10701 esac~
10702 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10703 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10704 $RM "$lt_outputfile.manifest";
10705 fi'
10706 ;;
10707 *)
10708 # Assume MSVC and ICC wrapper
10709 hardcode_libdir_flag_spec=' '
10710 allow_undefined_flag=unsupported
10711 # Tell ltmain to make .lib files, not .a files.
10712 libext=lib
10713 # Tell ltmain to make .dll files, not .so files.
10714 shrext_cmds=.dll
10715 # FIXME: Setting linknames here is a bad hack.
10716 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10717 # The linker will automatically build a .lib file if we build a DLL.
10718 old_archive_from_new_cmds='true'
10719 # FIXME: Should let the user specify the lib program.
10720 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10721 enable_shared_with_static_runtimes=yes
10722 ;;
10723 esac
10724 ;;
10725
10726 darwin* | rhapsody*)
10727
10728
10729 archive_cmds_need_lc=no
10730 hardcode_direct=no
10731 hardcode_automatic=yes
10732 hardcode_shlibpath_var=unsupported
10733 if test yes = "$lt_cv_ld_force_load"; then
10734 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\"`'
10735
10736 else
10737 whole_archive_flag_spec=''
10738 fi
10739 link_all_deplibs=yes
10740 allow_undefined_flag=$_lt_dar_allow_undefined
10741 case $cc_basename in
10742 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10743 *) _lt_dar_can_shared=$GCC ;;
10744 esac
10745 if test yes = "$_lt_dar_can_shared"; then
10746 output_verbose_link_cmd=func_echo_all
10747 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10748 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10749 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"
10750 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"
10751
10752 else
10753 ld_shlibs=no
10754 fi
10755
10756 ;;
10757
10758 dgux*)
10759 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10760 hardcode_libdir_flag_spec='-L$libdir'
10761 hardcode_shlibpath_var=no
10762 ;;
10763
10764 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10765 # support. Future versions do this automatically, but an explicit c++rt0.o
10766 # does not break anything, and helps significantly (at the cost of a little
10767 # extra space).
10768 freebsd2.2*)
10769 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10770 hardcode_libdir_flag_spec='-R$libdir'
10771 hardcode_direct=yes
10772 hardcode_shlibpath_var=no
10773 ;;
10774
10775 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10776 freebsd2.*)
10777 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10778 hardcode_direct=yes
10779 hardcode_minus_L=yes
10780 hardcode_shlibpath_var=no
10781 ;;
10782
10783 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10784 freebsd* | dragonfly* | midnightbsd*)
10785 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10786 hardcode_libdir_flag_spec='-R$libdir'
10787 hardcode_direct=yes
10788 hardcode_shlibpath_var=no
10789 ;;
10790
10791 hpux9*)
10792 if test yes = "$GCC"; then
10793 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'
10794 else
10795 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'
10796 fi
10797 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10798 hardcode_libdir_separator=:
10799 hardcode_direct=yes
10800
10801 # hardcode_minus_L: Not really in the search PATH,
10802 # but as the default location of the library.
10803 hardcode_minus_L=yes
10804 export_dynamic_flag_spec='$wl-E'
10805 ;;
10806
10807 hpux10*)
10808 if test yes,no = "$GCC,$with_gnu_ld"; then
10809 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10810 else
10811 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10812 fi
10813 if test no = "$with_gnu_ld"; then
10814 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10815 hardcode_libdir_separator=:
10816 hardcode_direct=yes
10817 hardcode_direct_absolute=yes
10818 export_dynamic_flag_spec='$wl-E'
10819 # hardcode_minus_L: Not really in the search PATH,
10820 # but as the default location of the library.
10821 hardcode_minus_L=yes
10822 fi
10823 ;;
10824
10825 hpux11*)
10826 if test yes,no = "$GCC,$with_gnu_ld"; then
10827 case $host_cpu in
10828 hppa*64*)
10829 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10830 ;;
10831 ia64*)
10832 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10833 ;;
10834 *)
10835 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10836 ;;
10837 esac
10838 else
10839 case $host_cpu in
10840 hppa*64*)
10841 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10842 ;;
10843 ia64*)
10844 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10845 ;;
10846 *)
10847
10848 # Older versions of the 11.00 compiler do not understand -b yet
10849 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10851 printf %s "checking if $CC understands -b... " >&6; }
10852 if test ${lt_cv_prog_compiler__b+y}
10853 then :
10854 printf %s "(cached) " >&6
10855 else $as_nop
10856 lt_cv_prog_compiler__b=no
10857 save_LDFLAGS=$LDFLAGS
10858 LDFLAGS="$LDFLAGS -b"
10859 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10860 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10861 # The linker can only warn and ignore the option if not recognized
10862 # So say no if there are warnings
10863 if test -s conftest.err; then
10864 # Append any errors to the config.log.
10865 cat conftest.err 1>&5
10866 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10867 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10868 if diff conftest.exp conftest.er2 >/dev/null; then
10869 lt_cv_prog_compiler__b=yes
10870 fi
10871 else
10872 lt_cv_prog_compiler__b=yes
10873 fi
10874 fi
10875 $RM -r conftest*
10876 LDFLAGS=$save_LDFLAGS
10877
10878 fi
10879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10880 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10881
10882 if test yes = "$lt_cv_prog_compiler__b"; then
10883 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10884 else
10885 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10886 fi
10887
10888 ;;
10889 esac
10890 fi
10891 if test no = "$with_gnu_ld"; then
10892 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10893 hardcode_libdir_separator=:
10894
10895 case $host_cpu in
10896 hppa*64*|ia64*)
10897 hardcode_direct=no
10898 hardcode_shlibpath_var=no
10899 ;;
10900 *)
10901 hardcode_direct=yes
10902 hardcode_direct_absolute=yes
10903 export_dynamic_flag_spec='$wl-E'
10904
10905 # hardcode_minus_L: Not really in the search PATH,
10906 # but as the default location of the library.
10907 hardcode_minus_L=yes
10908 ;;
10909 esac
10910 fi
10911 ;;
10912
10913 irix5* | irix6* | nonstopux*)
10914 if test yes = "$GCC"; then
10915 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'
10916 # Try to use the -exported_symbol ld option, if it does not
10917 # work, assume that -exports_file does not work either and
10918 # implicitly export all symbols.
10919 # This should be the same for all languages, so no per-tag cache variable.
10920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10921 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10922 if test ${lt_cv_irix_exported_symbol+y}
10923 then :
10924 printf %s "(cached) " >&6
10925 else $as_nop
10926 save_LDFLAGS=$LDFLAGS
10927 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10929 /* end confdefs.h. */
10930 int foo (void) { return 0; }
10931 _ACEOF
10932 if ac_fn_c_try_link "$LINENO"
10933 then :
10934 lt_cv_irix_exported_symbol=yes
10935 else $as_nop
10936 lt_cv_irix_exported_symbol=no
10937 fi
10938 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10939 conftest$ac_exeext conftest.$ac_ext
10940 LDFLAGS=$save_LDFLAGS
10941 fi
10942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10943 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10944 if test yes = "$lt_cv_irix_exported_symbol"; then
10945 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'
10946 fi
10947 link_all_deplibs=no
10948 else
10949 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'
10950 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'
10951 fi
10952 archive_cmds_need_lc='no'
10953 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10954 hardcode_libdir_separator=:
10955 inherit_rpath=yes
10956 link_all_deplibs=yes
10957 ;;
10958
10959 linux*)
10960 case $cc_basename in
10961 tcc*)
10962 # Fabrice Bellard et al's Tiny C Compiler
10963 ld_shlibs=yes
10964 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10965 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10966 ;;
10967 esac
10968 ;;
10969
10970 netbsd* | netbsdelf*-gnu)
10971 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10972 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10973 else
10974 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10975 fi
10976 hardcode_libdir_flag_spec='-R$libdir'
10977 hardcode_direct=yes
10978 hardcode_shlibpath_var=no
10979 ;;
10980
10981 newsos6)
10982 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10983 hardcode_direct=yes
10984 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10985 hardcode_libdir_separator=:
10986 hardcode_shlibpath_var=no
10987 ;;
10988
10989 *nto* | *qnx*)
10990 ;;
10991
10992 openbsd* | bitrig*)
10993 if test -f /usr/libexec/ld.so; then
10994 hardcode_direct=yes
10995 hardcode_shlibpath_var=no
10996 hardcode_direct_absolute=yes
10997 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10998 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10999 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11000 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11001 export_dynamic_flag_spec='$wl-E'
11002 else
11003 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11004 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11005 fi
11006 else
11007 ld_shlibs=no
11008 fi
11009 ;;
11010
11011 os2*)
11012 hardcode_libdir_flag_spec='-L$libdir'
11013 hardcode_minus_L=yes
11014 allow_undefined_flag=unsupported
11015 shrext_cmds=.dll
11016 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11017 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11018 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11019 $ECHO EXPORTS >> $output_objdir/$libname.def~
11020 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11021 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11022 emximp -o $lib $output_objdir/$libname.def'
11023 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11024 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11025 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11026 $ECHO EXPORTS >> $output_objdir/$libname.def~
11027 prefix_cmds="$SED"~
11028 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11029 prefix_cmds="$prefix_cmds -e 1d";
11030 fi~
11031 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11032 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11033 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11034 emximp -o $lib $output_objdir/$libname.def'
11035 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11036 enable_shared_with_static_runtimes=yes
11037 file_list_spec='@'
11038 ;;
11039
11040 osf3*)
11041 if test yes = "$GCC"; then
11042 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11043 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'
11044 else
11045 allow_undefined_flag=' -expect_unresolved \*'
11046 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'
11047 fi
11048 archive_cmds_need_lc='no'
11049 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11050 hardcode_libdir_separator=:
11051 ;;
11052
11053 osf4* | osf5*) # as osf3* with the addition of -msym flag
11054 if test yes = "$GCC"; then
11055 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11056 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'
11057 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11058 else
11059 allow_undefined_flag=' -expect_unresolved \*'
11060 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'
11061 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~
11062 $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'
11063
11064 # Both c and cxx compiler support -rpath directly
11065 hardcode_libdir_flag_spec='-rpath $libdir'
11066 fi
11067 archive_cmds_need_lc='no'
11068 hardcode_libdir_separator=:
11069 ;;
11070
11071 solaris*)
11072 no_undefined_flag=' -z defs'
11073 if test yes = "$GCC"; then
11074 wlarc='$wl'
11075 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11076 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11077 $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'
11078 else
11079 case `$CC -V 2>&1` in
11080 *"Compilers 5.0"*)
11081 wlarc=''
11082 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11083 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11084 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11085 ;;
11086 *)
11087 wlarc='$wl'
11088 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11089 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11090 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11091 ;;
11092 esac
11093 fi
11094 hardcode_libdir_flag_spec='-R$libdir'
11095 hardcode_shlibpath_var=no
11096 case $host_os in
11097 solaris2.[0-5] | solaris2.[0-5].*) ;;
11098 *)
11099 # The compiler driver will combine and reorder linker options,
11100 # but understands '-z linker_flag'. GCC discards it without '$wl',
11101 # but is careful enough not to reorder.
11102 # Supported since Solaris 2.6 (maybe 2.5.1?)
11103 if test yes = "$GCC"; then
11104 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11105 else
11106 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11107 fi
11108 ;;
11109 esac
11110 link_all_deplibs=yes
11111 ;;
11112
11113 sunos4*)
11114 if test sequent = "$host_vendor"; then
11115 # Use $CC to link under sequent, because it throws in some extra .o
11116 # files that make .init and .fini sections work.
11117 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11118 else
11119 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11120 fi
11121 hardcode_libdir_flag_spec='-L$libdir'
11122 hardcode_direct=yes
11123 hardcode_minus_L=yes
11124 hardcode_shlibpath_var=no
11125 ;;
11126
11127 sysv4)
11128 case $host_vendor in
11129 sni)
11130 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11131 hardcode_direct=yes # is this really true???
11132 ;;
11133 siemens)
11134 ## LD is ld it makes a PLAMLIB
11135 ## CC just makes a GrossModule.
11136 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11137 reload_cmds='$CC -r -o $output$reload_objs'
11138 hardcode_direct=no
11139 ;;
11140 motorola)
11141 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11142 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11143 ;;
11144 esac
11145 runpath_var='LD_RUN_PATH'
11146 hardcode_shlibpath_var=no
11147 ;;
11148
11149 sysv4.3*)
11150 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11151 hardcode_shlibpath_var=no
11152 export_dynamic_flag_spec='-Bexport'
11153 ;;
11154
11155 sysv4*MP*)
11156 if test -d /usr/nec; then
11157 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11158 hardcode_shlibpath_var=no
11159 runpath_var=LD_RUN_PATH
11160 hardcode_runpath_var=yes
11161 ld_shlibs=yes
11162 fi
11163 ;;
11164
11165 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11166 no_undefined_flag='$wl-z,text'
11167 archive_cmds_need_lc=no
11168 hardcode_shlibpath_var=no
11169 runpath_var='LD_RUN_PATH'
11170
11171 if test yes = "$GCC"; then
11172 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11173 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11174 else
11175 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11176 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11177 fi
11178 ;;
11179
11180 sysv5* | sco3.2v5* | sco5v6*)
11181 # Note: We CANNOT use -z defs as we might desire, because we do not
11182 # link with -lc, and that would cause any symbols used from libc to
11183 # always be unresolved, which means just about no library would
11184 # ever link correctly. If we're not using GNU ld we use -z text
11185 # though, which does catch some bad symbols but isn't as heavy-handed
11186 # as -z defs.
11187 no_undefined_flag='$wl-z,text'
11188 allow_undefined_flag='$wl-z,nodefs'
11189 archive_cmds_need_lc=no
11190 hardcode_shlibpath_var=no
11191 hardcode_libdir_flag_spec='$wl-R,$libdir'
11192 hardcode_libdir_separator=':'
11193 link_all_deplibs=yes
11194 export_dynamic_flag_spec='$wl-Bexport'
11195 runpath_var='LD_RUN_PATH'
11196
11197 if test yes = "$GCC"; then
11198 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11199 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11200 else
11201 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11202 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11203 fi
11204 ;;
11205
11206 uts4*)
11207 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11208 hardcode_libdir_flag_spec='-L$libdir'
11209 hardcode_shlibpath_var=no
11210 ;;
11211
11212 *)
11213 ld_shlibs=no
11214 ;;
11215 esac
11216
11217 if test sni = "$host_vendor"; then
11218 case $host in
11219 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11220 export_dynamic_flag_spec='$wl-Blargedynsym'
11221 ;;
11222 esac
11223 fi
11224 fi
11225
11226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11227 printf "%s\n" "$ld_shlibs" >&6; }
11228 test no = "$ld_shlibs" && can_build_shared=no
11229
11230 with_gnu_ld=$with_gnu_ld
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246 #
11247 # Do we need to explicitly link libc?
11248 #
11249 case "x$archive_cmds_need_lc" in
11250 x|xyes)
11251 # Assume -lc should be added
11252 archive_cmds_need_lc=yes
11253
11254 if test yes,yes = "$GCC,$enable_shared"; then
11255 case $archive_cmds in
11256 *'~'*)
11257 # FIXME: we may have to deal with multi-command sequences.
11258 ;;
11259 '$CC '*)
11260 # Test whether the compiler implicitly links with -lc since on some
11261 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11262 # to ld, don't add -lc before -lgcc.
11263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11264 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11265 if test ${lt_cv_archive_cmds_need_lc+y}
11266 then :
11267 printf %s "(cached) " >&6
11268 else $as_nop
11269 $RM conftest*
11270 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11271
11272 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11273 (eval $ac_compile) 2>&5
11274 ac_status=$?
11275 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11276 test $ac_status = 0; } 2>conftest.err; then
11277 soname=conftest
11278 lib=conftest
11279 libobjs=conftest.$ac_objext
11280 deplibs=
11281 wl=$lt_prog_compiler_wl
11282 pic_flag=$lt_prog_compiler_pic
11283 compiler_flags=-v
11284 linker_flags=-v
11285 verstring=
11286 output_objdir=.
11287 libname=conftest
11288 lt_save_allow_undefined_flag=$allow_undefined_flag
11289 allow_undefined_flag=
11290 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11291 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11292 ac_status=$?
11293 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11294 test $ac_status = 0; }
11295 then
11296 lt_cv_archive_cmds_need_lc=no
11297 else
11298 lt_cv_archive_cmds_need_lc=yes
11299 fi
11300 allow_undefined_flag=$lt_save_allow_undefined_flag
11301 else
11302 cat conftest.err 1>&5
11303 fi
11304 $RM conftest*
11305
11306 fi
11307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11308 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11309 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11310 ;;
11311 esac
11312 fi
11313 ;;
11314 esac
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11468 printf %s "checking dynamic linker characteristics... " >&6; }
11469
11470 if test yes = "$GCC"; then
11471 case $host_os in
11472 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11473 *) lt_awk_arg='/^libraries:/' ;;
11474 esac
11475 case $host_os in
11476 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11477 *) lt_sed_strip_eq='s|=/|/|g' ;;
11478 esac
11479 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11480 case $lt_search_path_spec in
11481 *\;*)
11482 # if the path contains ";" then we assume it to be the separator
11483 # otherwise default to the standard path separator (i.e. ":") - it is
11484 # assumed that no part of a normal pathname contains ";" but that should
11485 # okay in the real world where ";" in dirpaths is itself problematic.
11486 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11487 ;;
11488 *)
11489 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11490 ;;
11491 esac
11492 # Ok, now we have the path, separated by spaces, we can step through it
11493 # and add multilib dir if necessary...
11494 lt_tmp_lt_search_path_spec=
11495 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11496 # ...but if some path component already ends with the multilib dir we assume
11497 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11498 case "$lt_multi_os_dir; $lt_search_path_spec " in
11499 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11500 lt_multi_os_dir=
11501 ;;
11502 esac
11503 for lt_sys_path in $lt_search_path_spec; do
11504 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11505 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11506 elif test -n "$lt_multi_os_dir"; then
11507 test -d "$lt_sys_path" && \
11508 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11509 fi
11510 done
11511 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11512 BEGIN {RS = " "; FS = "/|\n";} {
11513 lt_foo = "";
11514 lt_count = 0;
11515 for (lt_i = NF; lt_i > 0; lt_i--) {
11516 if ($lt_i != "" && $lt_i != ".") {
11517 if ($lt_i == "..") {
11518 lt_count++;
11519 } else {
11520 if (lt_count == 0) {
11521 lt_foo = "/" $lt_i lt_foo;
11522 } else {
11523 lt_count--;
11524 }
11525 }
11526 }
11527 }
11528 if (lt_foo != "") { lt_freq[lt_foo]++; }
11529 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11530 }'`
11531 # AWK program above erroneously prepends '/' to C:/dos/paths
11532 # for these hosts.
11533 case $host_os in
11534 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11535 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11536 esac
11537 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11538 else
11539 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11540 fi
11541 library_names_spec=
11542 libname_spec='lib$name'
11543 soname_spec=
11544 shrext_cmds=.so
11545 postinstall_cmds=
11546 postuninstall_cmds=
11547 finish_cmds=
11548 finish_eval=
11549 shlibpath_var=
11550 shlibpath_overrides_runpath=unknown
11551 version_type=none
11552 dynamic_linker="$host_os ld.so"
11553 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11554 need_lib_prefix=unknown
11555 hardcode_into_libs=no
11556
11557 # when you set need_version to no, make sure it does not cause -set_version
11558 # flags to be left without arguments
11559 need_version=unknown
11560
11561
11562
11563 case $host_os in
11564 aix3*)
11565 version_type=linux # correct to gnu/linux during the next big refactor
11566 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11567 shlibpath_var=LIBPATH
11568
11569 # AIX 3 has no versioning support, so we append a major version to the name.
11570 soname_spec='$libname$release$shared_ext$major'
11571 ;;
11572
11573 aix[4-9]*)
11574 version_type=linux # correct to gnu/linux during the next big refactor
11575 need_lib_prefix=no
11576 need_version=no
11577 hardcode_into_libs=yes
11578 if test ia64 = "$host_cpu"; then
11579 # AIX 5 supports IA64
11580 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11581 shlibpath_var=LD_LIBRARY_PATH
11582 else
11583 # With GCC up to 2.95.x, collect2 would create an import file
11584 # for dependence libraries. The import file would start with
11585 # the line '#! .'. This would cause the generated library to
11586 # depend on '.', always an invalid library. This was fixed in
11587 # development snapshots of GCC prior to 3.0.
11588 case $host_os in
11589 aix4 | aix4.[01] | aix4.[01].*)
11590 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11591 echo ' yes '
11592 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11593 :
11594 else
11595 can_build_shared=no
11596 fi
11597 ;;
11598 esac
11599 # Using Import Files as archive members, it is possible to support
11600 # filename-based versioning of shared library archives on AIX. While
11601 # this would work for both with and without runtime linking, it will
11602 # prevent static linking of such archives. So we do filename-based
11603 # shared library versioning with .so extension only, which is used
11604 # when both runtime linking and shared linking is enabled.
11605 # Unfortunately, runtime linking may impact performance, so we do
11606 # not want this to be the default eventually. Also, we use the
11607 # versioned .so libs for executables only if there is the -brtl
11608 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11609 # To allow for filename-based versioning support, we need to create
11610 # libNAME.so.V as an archive file, containing:
11611 # *) an Import File, referring to the versioned filename of the
11612 # archive as well as the shared archive member, telling the
11613 # bitwidth (32 or 64) of that shared object, and providing the
11614 # list of exported symbols of that shared object, eventually
11615 # decorated with the 'weak' keyword
11616 # *) the shared object with the F_LOADONLY flag set, to really avoid
11617 # it being seen by the linker.
11618 # At run time we better use the real file rather than another symlink,
11619 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11620
11621 case $with_aix_soname,$aix_use_runtimelinking in
11622 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11623 # soname into executable. Probably we can add versioning support to
11624 # collect2, so additional links can be useful in future.
11625 aix,yes) # traditional libtool
11626 dynamic_linker='AIX unversionable lib.so'
11627 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11628 # instead of lib<name>.a to let people know that these are not
11629 # typical AIX shared libraries.
11630 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11631 ;;
11632 aix,no) # traditional AIX only
11633 dynamic_linker='AIX lib.a(lib.so.V)'
11634 # We preserve .a as extension for shared libraries through AIX4.2
11635 # and later when we are not doing run time linking.
11636 library_names_spec='$libname$release.a $libname.a'
11637 soname_spec='$libname$release$shared_ext$major'
11638 ;;
11639 svr4,*) # full svr4 only
11640 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11641 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11642 # We do not specify a path in Import Files, so LIBPATH fires.
11643 shlibpath_overrides_runpath=yes
11644 ;;
11645 *,yes) # both, prefer svr4
11646 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11647 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11648 # unpreferred sharedlib libNAME.a needs extra handling
11649 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"'
11650 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"'
11651 # We do not specify a path in Import Files, so LIBPATH fires.
11652 shlibpath_overrides_runpath=yes
11653 ;;
11654 *,no) # both, prefer aix
11655 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11656 library_names_spec='$libname$release.a $libname.a'
11657 soname_spec='$libname$release$shared_ext$major'
11658 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11659 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)'
11660 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"'
11661 ;;
11662 esac
11663 shlibpath_var=LIBPATH
11664 fi
11665 ;;
11666
11667 amigaos*)
11668 case $host_cpu in
11669 powerpc)
11670 # Since July 2007 AmigaOS4 officially supports .so libraries.
11671 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11672 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11673 ;;
11674 m68k)
11675 library_names_spec='$libname.ixlibrary $libname.a'
11676 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11677 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'
11678 ;;
11679 esac
11680 ;;
11681
11682 beos*)
11683 library_names_spec='$libname$shared_ext'
11684 dynamic_linker="$host_os ld.so"
11685 shlibpath_var=LIBRARY_PATH
11686 ;;
11687
11688 bsdi[45]*)
11689 version_type=linux # correct to gnu/linux during the next big refactor
11690 need_version=no
11691 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11692 soname_spec='$libname$release$shared_ext$major'
11693 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11694 shlibpath_var=LD_LIBRARY_PATH
11695 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11696 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11697 # the default ld.so.conf also contains /usr/contrib/lib and
11698 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11699 # libtool to hard-code these into programs
11700 ;;
11701
11702 cygwin* | mingw* | pw32* | cegcc*)
11703 version_type=windows
11704 shrext_cmds=.dll
11705 need_version=no
11706 need_lib_prefix=no
11707
11708 case $GCC,$cc_basename in
11709 yes,*)
11710 # gcc
11711 library_names_spec='$libname.dll.a'
11712 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11713 postinstall_cmds='base_file=`basename \$file`~
11714 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11715 dldir=$destdir/`dirname \$dlpath`~
11716 test -d \$dldir || mkdir -p \$dldir~
11717 $install_prog $dir/$dlname \$dldir/$dlname~
11718 chmod a+x \$dldir/$dlname~
11719 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11720 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11721 fi'
11722 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11723 dlpath=$dir/\$dldll~
11724 $RM \$dlpath'
11725 shlibpath_overrides_runpath=yes
11726
11727 case $host_os in
11728 cygwin*)
11729 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11730 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11731
11732 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11733 ;;
11734 mingw* | cegcc*)
11735 # MinGW DLLs use traditional 'lib' prefix
11736 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11737 ;;
11738 pw32*)
11739 # pw32 DLLs use 'pw' prefix rather than 'lib'
11740 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11741 ;;
11742 esac
11743 dynamic_linker='Win32 ld.exe'
11744 ;;
11745
11746 *,cl* | *,icl*)
11747 # Native MSVC or ICC
11748 libname_spec='$name'
11749 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11750 library_names_spec='$libname.dll.lib'
11751
11752 case $build_os in
11753 mingw*)
11754 sys_lib_search_path_spec=
11755 lt_save_ifs=$IFS
11756 IFS=';'
11757 for lt_path in $LIB
11758 do
11759 IFS=$lt_save_ifs
11760 # Let DOS variable expansion print the short 8.3 style file name.
11761 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11762 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11763 done
11764 IFS=$lt_save_ifs
11765 # Convert to MSYS style.
11766 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11767 ;;
11768 cygwin*)
11769 # Convert to unix form, then to dos form, then back to unix form
11770 # but this time dos style (no spaces!) so that the unix form looks
11771 # like /cygdrive/c/PROGRA~1:/cygdr...
11772 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11773 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11774 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11775 ;;
11776 *)
11777 sys_lib_search_path_spec=$LIB
11778 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11779 # It is most probably a Windows format PATH.
11780 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11781 else
11782 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11783 fi
11784 # FIXME: find the short name or the path components, as spaces are
11785 # common. (e.g. "Program Files" -> "PROGRA~1")
11786 ;;
11787 esac
11788
11789 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11790 postinstall_cmds='base_file=`basename \$file`~
11791 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11792 dldir=$destdir/`dirname \$dlpath`~
11793 test -d \$dldir || mkdir -p \$dldir~
11794 $install_prog $dir/$dlname \$dldir/$dlname'
11795 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11796 dlpath=$dir/\$dldll~
11797 $RM \$dlpath'
11798 shlibpath_overrides_runpath=yes
11799 dynamic_linker='Win32 link.exe'
11800 ;;
11801
11802 *)
11803 # Assume MSVC and ICC wrapper
11804 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11805 dynamic_linker='Win32 ld.exe'
11806 ;;
11807 esac
11808 # FIXME: first we should search . and the directory the executable is in
11809 shlibpath_var=PATH
11810 ;;
11811
11812 darwin* | rhapsody*)
11813 dynamic_linker="$host_os dyld"
11814 version_type=darwin
11815 need_lib_prefix=no
11816 need_version=no
11817 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11818 soname_spec='$libname$release$major$shared_ext'
11819 shlibpath_overrides_runpath=yes
11820 shlibpath_var=DYLD_LIBRARY_PATH
11821 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11822
11823 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11824 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11825 ;;
11826
11827 dgux*)
11828 version_type=linux # correct to gnu/linux during the next big refactor
11829 need_lib_prefix=no
11830 need_version=no
11831 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11832 soname_spec='$libname$release$shared_ext$major'
11833 shlibpath_var=LD_LIBRARY_PATH
11834 ;;
11835
11836 freebsd* | dragonfly* | midnightbsd*)
11837 # DragonFly does not have aout. When/if they implement a new
11838 # versioning mechanism, adjust this.
11839 if test -x /usr/bin/objformat; then
11840 objformat=`/usr/bin/objformat`
11841 else
11842 case $host_os in
11843 freebsd[23].*) objformat=aout ;;
11844 *) objformat=elf ;;
11845 esac
11846 fi
11847 version_type=freebsd-$objformat
11848 case $version_type in
11849 freebsd-elf*)
11850 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11851 soname_spec='$libname$release$shared_ext$major'
11852 need_version=no
11853 need_lib_prefix=no
11854 ;;
11855 freebsd-*)
11856 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11857 need_version=yes
11858 ;;
11859 esac
11860 shlibpath_var=LD_LIBRARY_PATH
11861 case $host_os in
11862 freebsd2.*)
11863 shlibpath_overrides_runpath=yes
11864 ;;
11865 freebsd3.[01]* | freebsdelf3.[01]*)
11866 shlibpath_overrides_runpath=yes
11867 hardcode_into_libs=yes
11868 ;;
11869 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11870 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11871 shlibpath_overrides_runpath=no
11872 hardcode_into_libs=yes
11873 ;;
11874 *) # from 4.6 on, and DragonFly
11875 shlibpath_overrides_runpath=yes
11876 hardcode_into_libs=yes
11877 ;;
11878 esac
11879 ;;
11880
11881 haiku*)
11882 version_type=linux # correct to gnu/linux during the next big refactor
11883 need_lib_prefix=no
11884 need_version=no
11885 dynamic_linker="$host_os runtime_loader"
11886 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11887 soname_spec='$libname$release$shared_ext$major'
11888 shlibpath_var=LIBRARY_PATH
11889 shlibpath_overrides_runpath=no
11890 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11891 hardcode_into_libs=yes
11892 ;;
11893
11894 hpux9* | hpux10* | hpux11*)
11895 # Give a soname corresponding to the major version so that dld.sl refuses to
11896 # link against other versions.
11897 version_type=sunos
11898 need_lib_prefix=no
11899 need_version=no
11900 case $host_cpu in
11901 ia64*)
11902 shrext_cmds='.so'
11903 hardcode_into_libs=yes
11904 dynamic_linker="$host_os dld.so"
11905 shlibpath_var=LD_LIBRARY_PATH
11906 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11907 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11908 soname_spec='$libname$release$shared_ext$major'
11909 if test 32 = "$HPUX_IA64_MODE"; then
11910 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11911 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11912 else
11913 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11914 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11915 fi
11916 ;;
11917 hppa*64*)
11918 shrext_cmds='.sl'
11919 hardcode_into_libs=yes
11920 dynamic_linker="$host_os dld.sl"
11921 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11922 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11923 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11924 soname_spec='$libname$release$shared_ext$major'
11925 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11926 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11927 ;;
11928 *)
11929 shrext_cmds='.sl'
11930 dynamic_linker="$host_os dld.sl"
11931 shlibpath_var=SHLIB_PATH
11932 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11933 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11934 soname_spec='$libname$release$shared_ext$major'
11935 ;;
11936 esac
11937 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11938 postinstall_cmds='chmod 555 $lib'
11939 # or fails outright, so override atomically:
11940 install_override_mode=555
11941 ;;
11942
11943 interix[3-9]*)
11944 version_type=linux # correct to gnu/linux during the next big refactor
11945 need_lib_prefix=no
11946 need_version=no
11947 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11948 soname_spec='$libname$release$shared_ext$major'
11949 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11950 shlibpath_var=LD_LIBRARY_PATH
11951 shlibpath_overrides_runpath=no
11952 hardcode_into_libs=yes
11953 ;;
11954
11955 irix5* | irix6* | nonstopux*)
11956 case $host_os in
11957 nonstopux*) version_type=nonstopux ;;
11958 *)
11959 if test yes = "$lt_cv_prog_gnu_ld"; then
11960 version_type=linux # correct to gnu/linux during the next big refactor
11961 else
11962 version_type=irix
11963 fi ;;
11964 esac
11965 need_lib_prefix=no
11966 need_version=no
11967 soname_spec='$libname$release$shared_ext$major'
11968 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11969 case $host_os in
11970 irix5* | nonstopux*)
11971 libsuff= shlibsuff=
11972 ;;
11973 *)
11974 case $LD in # libtool.m4 will add one of these switches to LD
11975 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11976 libsuff= shlibsuff= libmagic=32-bit;;
11977 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11978 libsuff=32 shlibsuff=N32 libmagic=N32;;
11979 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11980 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11981 *) libsuff= shlibsuff= libmagic=never-match;;
11982 esac
11983 ;;
11984 esac
11985 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11986 shlibpath_overrides_runpath=no
11987 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11988 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11989 hardcode_into_libs=yes
11990 ;;
11991
11992 # No shared lib support for Linux oldld, aout, or coff.
11993 linux*oldld* | linux*aout* | linux*coff*)
11994 dynamic_linker=no
11995 ;;
11996
11997 linux*android*)
11998 version_type=none # Android doesn't support versioned libraries.
11999 need_lib_prefix=no
12000 need_version=no
12001 library_names_spec='$libname$release$shared_ext'
12002 soname_spec='$libname$release$shared_ext'
12003 finish_cmds=
12004 shlibpath_var=LD_LIBRARY_PATH
12005 shlibpath_overrides_runpath=yes
12006
12007 # This implies no fast_install, which is unacceptable.
12008 # Some rework will be needed to allow for fast_install
12009 # before this can be enabled.
12010 hardcode_into_libs=yes
12011
12012 dynamic_linker='Android linker'
12013 # Don't embed -rpath directories since the linker doesn't support them.
12014 hardcode_libdir_flag_spec='-L$libdir'
12015 ;;
12016
12017 # This must be glibc/ELF.
12018 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12019 version_type=linux # correct to gnu/linux during the next big refactor
12020 need_lib_prefix=no
12021 need_version=no
12022 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12023 soname_spec='$libname$release$shared_ext$major'
12024 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12025 shlibpath_var=LD_LIBRARY_PATH
12026 shlibpath_overrides_runpath=no
12027
12028 # Some binutils ld are patched to set DT_RUNPATH
12029 if test ${lt_cv_shlibpath_overrides_runpath+y}
12030 then :
12031 printf %s "(cached) " >&6
12032 else $as_nop
12033 lt_cv_shlibpath_overrides_runpath=no
12034 save_LDFLAGS=$LDFLAGS
12035 save_libdir=$libdir
12036 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12037 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12039 /* end confdefs.h. */
12040
12041 int
12042 main (void)
12043 {
12044
12045 ;
12046 return 0;
12047 }
12048 _ACEOF
12049 if ac_fn_c_try_link "$LINENO"
12050 then :
12051 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12052 then :
12053 lt_cv_shlibpath_overrides_runpath=yes
12054 fi
12055 fi
12056 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12057 conftest$ac_exeext conftest.$ac_ext
12058 LDFLAGS=$save_LDFLAGS
12059 libdir=$save_libdir
12060
12061 fi
12062
12063 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12064
12065 # This implies no fast_install, which is unacceptable.
12066 # Some rework will be needed to allow for fast_install
12067 # before this can be enabled.
12068 hardcode_into_libs=yes
12069
12070 # Ideally, we could use ldconfig to report *all* directores which are
12071 # searched for libraries, however this is still not possible. Aside from not
12072 # being certain /sbin/ldconfig is available, command
12073 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12074 # even though it is searched at run-time. Try to do the best guess by
12075 # appending ld.so.conf contents (and includes) to the search path.
12076 if test -f /etc/ld.so.conf; then
12077 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' ' '`
12078 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12079 fi
12080
12081 # We used to test for /lib/ld.so.1 and disable shared libraries on
12082 # powerpc, because MkLinux only supported shared libraries with the
12083 # GNU dynamic linker. Since this was broken with cross compilers,
12084 # most powerpc-linux boxes support dynamic linking these days and
12085 # people can always --disable-shared, the test was removed, and we
12086 # assume the GNU/Linux dynamic linker is in use.
12087 dynamic_linker='GNU/Linux ld.so'
12088 ;;
12089
12090 netbsdelf*-gnu)
12091 version_type=linux
12092 need_lib_prefix=no
12093 need_version=no
12094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12095 soname_spec='${libname}${release}${shared_ext}$major'
12096 shlibpath_var=LD_LIBRARY_PATH
12097 shlibpath_overrides_runpath=no
12098 hardcode_into_libs=yes
12099 dynamic_linker='NetBSD ld.elf_so'
12100 ;;
12101
12102 netbsd*)
12103 version_type=sunos
12104 need_lib_prefix=no
12105 need_version=no
12106 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12107 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12108 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12109 dynamic_linker='NetBSD (a.out) ld.so'
12110 else
12111 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12112 soname_spec='$libname$release$shared_ext$major'
12113 dynamic_linker='NetBSD ld.elf_so'
12114 fi
12115 shlibpath_var=LD_LIBRARY_PATH
12116 shlibpath_overrides_runpath=yes
12117 hardcode_into_libs=yes
12118 ;;
12119
12120 newsos6)
12121 version_type=linux # correct to gnu/linux during the next big refactor
12122 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12123 shlibpath_var=LD_LIBRARY_PATH
12124 shlibpath_overrides_runpath=yes
12125 ;;
12126
12127 *nto* | *qnx*)
12128 version_type=qnx
12129 need_lib_prefix=no
12130 need_version=no
12131 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12132 soname_spec='$libname$release$shared_ext$major'
12133 shlibpath_var=LD_LIBRARY_PATH
12134 shlibpath_overrides_runpath=no
12135 hardcode_into_libs=yes
12136 dynamic_linker='ldqnx.so'
12137 ;;
12138
12139 openbsd* | bitrig*)
12140 version_type=sunos
12141 sys_lib_dlsearch_path_spec=/usr/lib
12142 need_lib_prefix=no
12143 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12144 need_version=no
12145 else
12146 need_version=yes
12147 fi
12148 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12149 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12150 shlibpath_var=LD_LIBRARY_PATH
12151 shlibpath_overrides_runpath=yes
12152 ;;
12153
12154 os2*)
12155 libname_spec='$name'
12156 version_type=windows
12157 shrext_cmds=.dll
12158 need_version=no
12159 need_lib_prefix=no
12160 # OS/2 can only load a DLL with a base name of 8 characters or less.
12161 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12162 v=$($ECHO $release$versuffix | tr -d .-);
12163 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12164 $ECHO $n$v`$shared_ext'
12165 library_names_spec='${libname}_dll.$libext'
12166 dynamic_linker='OS/2 ld.exe'
12167 shlibpath_var=BEGINLIBPATH
12168 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12169 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12170 postinstall_cmds='base_file=`basename \$file`~
12171 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12172 dldir=$destdir/`dirname \$dlpath`~
12173 test -d \$dldir || mkdir -p \$dldir~
12174 $install_prog $dir/$dlname \$dldir/$dlname~
12175 chmod a+x \$dldir/$dlname~
12176 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12177 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12178 fi'
12179 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12180 dlpath=$dir/\$dldll~
12181 $RM \$dlpath'
12182 ;;
12183
12184 osf3* | osf4* | osf5*)
12185 version_type=osf
12186 need_lib_prefix=no
12187 need_version=no
12188 soname_spec='$libname$release$shared_ext$major'
12189 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12190 shlibpath_var=LD_LIBRARY_PATH
12191 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12192 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12193 ;;
12194
12195 rdos*)
12196 dynamic_linker=no
12197 ;;
12198
12199 solaris*)
12200 version_type=linux # correct to gnu/linux during the next big refactor
12201 need_lib_prefix=no
12202 need_version=no
12203 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12204 soname_spec='$libname$release$shared_ext$major'
12205 shlibpath_var=LD_LIBRARY_PATH
12206 shlibpath_overrides_runpath=yes
12207 hardcode_into_libs=yes
12208 # ldd complains unless libraries are executable
12209 postinstall_cmds='chmod +x $lib'
12210 ;;
12211
12212 sunos4*)
12213 version_type=sunos
12214 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12215 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12216 shlibpath_var=LD_LIBRARY_PATH
12217 shlibpath_overrides_runpath=yes
12218 if test yes = "$with_gnu_ld"; then
12219 need_lib_prefix=no
12220 fi
12221 need_version=yes
12222 ;;
12223
12224 sysv4 | sysv4.3*)
12225 version_type=linux # correct to gnu/linux during the next big refactor
12226 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12227 soname_spec='$libname$release$shared_ext$major'
12228 shlibpath_var=LD_LIBRARY_PATH
12229 case $host_vendor in
12230 sni)
12231 shlibpath_overrides_runpath=no
12232 need_lib_prefix=no
12233 runpath_var=LD_RUN_PATH
12234 ;;
12235 siemens)
12236 need_lib_prefix=no
12237 ;;
12238 motorola)
12239 need_lib_prefix=no
12240 need_version=no
12241 shlibpath_overrides_runpath=no
12242 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12243 ;;
12244 esac
12245 ;;
12246
12247 sysv4*MP*)
12248 if test -d /usr/nec; then
12249 version_type=linux # correct to gnu/linux during the next big refactor
12250 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12251 soname_spec='$libname$shared_ext.$major'
12252 shlibpath_var=LD_LIBRARY_PATH
12253 fi
12254 ;;
12255
12256 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12257 version_type=sco
12258 need_lib_prefix=no
12259 need_version=no
12260 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12261 soname_spec='$libname$release$shared_ext$major'
12262 shlibpath_var=LD_LIBRARY_PATH
12263 shlibpath_overrides_runpath=yes
12264 hardcode_into_libs=yes
12265 if test yes = "$with_gnu_ld"; then
12266 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12267 else
12268 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12269 case $host_os in
12270 sco3.2v5*)
12271 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12272 ;;
12273 esac
12274 fi
12275 sys_lib_dlsearch_path_spec='/usr/lib'
12276 ;;
12277
12278 tpf*)
12279 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12280 version_type=linux # correct to gnu/linux during the next big refactor
12281 need_lib_prefix=no
12282 need_version=no
12283 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12284 shlibpath_var=LD_LIBRARY_PATH
12285 shlibpath_overrides_runpath=no
12286 hardcode_into_libs=yes
12287 ;;
12288
12289 uts4*)
12290 version_type=linux # correct to gnu/linux during the next big refactor
12291 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12292 soname_spec='$libname$release$shared_ext$major'
12293 shlibpath_var=LD_LIBRARY_PATH
12294 ;;
12295
12296 *)
12297 dynamic_linker=no
12298 ;;
12299 esac
12300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12301 printf "%s\n" "$dynamic_linker" >&6; }
12302 test no = "$dynamic_linker" && can_build_shared=no
12303
12304 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12305 if test yes = "$GCC"; then
12306 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12307 fi
12308
12309 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12310 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12311 fi
12312
12313 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12314 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12315 fi
12316
12317 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12318 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12319
12320 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12321 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12322
12323 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12324 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12423 printf %s "checking how to hardcode library paths into programs... " >&6; }
12424 hardcode_action=
12425 if test -n "$hardcode_libdir_flag_spec" ||
12426 test -n "$runpath_var" ||
12427 test yes = "$hardcode_automatic"; then
12428
12429 # We can hardcode non-existent directories.
12430 if test no != "$hardcode_direct" &&
12431 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12432 # have to relink, otherwise we might link with an installed library
12433 # when we should be linking with a yet-to-be-installed one
12434 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12435 test no != "$hardcode_minus_L"; then
12436 # Linking always hardcodes the temporary library directory.
12437 hardcode_action=relink
12438 else
12439 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12440 hardcode_action=immediate
12441 fi
12442 else
12443 # We cannot hardcode anything, or else we can only hardcode existing
12444 # directories.
12445 hardcode_action=unsupported
12446 fi
12447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12448 printf "%s\n" "$hardcode_action" >&6; }
12449
12450 if test relink = "$hardcode_action" ||
12451 test yes = "$inherit_rpath"; then
12452 # Fast installation is not supported
12453 enable_fast_install=no
12454 elif test yes = "$shlibpath_overrides_runpath" ||
12455 test no = "$enable_shared"; then
12456 # Fast installation is not necessary
12457 enable_fast_install=needless
12458 fi
12459
12460
12461
12462
12463
12464
12465 if test yes != "$enable_dlopen"; then
12466 enable_dlopen=unknown
12467 enable_dlopen_self=unknown
12468 enable_dlopen_self_static=unknown
12469 else
12470 lt_cv_dlopen=no
12471 lt_cv_dlopen_libs=
12472
12473 case $host_os in
12474 beos*)
12475 lt_cv_dlopen=load_add_on
12476 lt_cv_dlopen_libs=
12477 lt_cv_dlopen_self=yes
12478 ;;
12479
12480 mingw* | pw32* | cegcc*)
12481 lt_cv_dlopen=LoadLibrary
12482 lt_cv_dlopen_libs=
12483 ;;
12484
12485 cygwin*)
12486 lt_cv_dlopen=dlopen
12487 lt_cv_dlopen_libs=
12488 ;;
12489
12490 darwin*)
12491 # if libdl is installed we need to link against it
12492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12493 printf %s "checking for dlopen in -ldl... " >&6; }
12494 if test ${ac_cv_lib_dl_dlopen+y}
12495 then :
12496 printf %s "(cached) " >&6
12497 else $as_nop
12498 ac_check_lib_save_LIBS=$LIBS
12499 LIBS="-ldl $LIBS"
12500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12501 /* end confdefs.h. */
12502
12503 /* Override any GCC internal prototype to avoid an error.
12504 Use char because int might match the return type of a GCC
12505 builtin and then its argument prototype would still apply. */
12506 char dlopen ();
12507 int
12508 main (void)
12509 {
12510 return dlopen ();
12511 ;
12512 return 0;
12513 }
12514 _ACEOF
12515 if ac_fn_c_try_link "$LINENO"
12516 then :
12517 ac_cv_lib_dl_dlopen=yes
12518 else $as_nop
12519 ac_cv_lib_dl_dlopen=no
12520 fi
12521 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12522 conftest$ac_exeext conftest.$ac_ext
12523 LIBS=$ac_check_lib_save_LIBS
12524 fi
12525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12526 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12527 if test "x$ac_cv_lib_dl_dlopen" = xyes
12528 then :
12529 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12530 else $as_nop
12531
12532 lt_cv_dlopen=dyld
12533 lt_cv_dlopen_libs=
12534 lt_cv_dlopen_self=yes
12535
12536 fi
12537
12538 ;;
12539
12540 tpf*)
12541 # Don't try to run any link tests for TPF. We know it's impossible
12542 # because TPF is a cross-compiler, and we know how we open DSOs.
12543 lt_cv_dlopen=dlopen
12544 lt_cv_dlopen_libs=
12545 lt_cv_dlopen_self=no
12546 ;;
12547
12548 *)
12549 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12550 if test "x$ac_cv_func_shl_load" = xyes
12551 then :
12552 lt_cv_dlopen=shl_load
12553 else $as_nop
12554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12555 printf %s "checking for shl_load in -ldld... " >&6; }
12556 if test ${ac_cv_lib_dld_shl_load+y}
12557 then :
12558 printf %s "(cached) " >&6
12559 else $as_nop
12560 ac_check_lib_save_LIBS=$LIBS
12561 LIBS="-ldld $LIBS"
12562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12563 /* end confdefs.h. */
12564
12565 /* Override any GCC internal prototype to avoid an error.
12566 Use char because int might match the return type of a GCC
12567 builtin and then its argument prototype would still apply. */
12568 char shl_load ();
12569 int
12570 main (void)
12571 {
12572 return shl_load ();
12573 ;
12574 return 0;
12575 }
12576 _ACEOF
12577 if ac_fn_c_try_link "$LINENO"
12578 then :
12579 ac_cv_lib_dld_shl_load=yes
12580 else $as_nop
12581 ac_cv_lib_dld_shl_load=no
12582 fi
12583 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12584 conftest$ac_exeext conftest.$ac_ext
12585 LIBS=$ac_check_lib_save_LIBS
12586 fi
12587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12588 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12589 if test "x$ac_cv_lib_dld_shl_load" = xyes
12590 then :
12591 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12592 else $as_nop
12593 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12594 if test "x$ac_cv_func_dlopen" = xyes
12595 then :
12596 lt_cv_dlopen=dlopen
12597 else $as_nop
12598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12599 printf %s "checking for dlopen in -ldl... " >&6; }
12600 if test ${ac_cv_lib_dl_dlopen+y}
12601 then :
12602 printf %s "(cached) " >&6
12603 else $as_nop
12604 ac_check_lib_save_LIBS=$LIBS
12605 LIBS="-ldl $LIBS"
12606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12607 /* end confdefs.h. */
12608
12609 /* Override any GCC internal prototype to avoid an error.
12610 Use char because int might match the return type of a GCC
12611 builtin and then its argument prototype would still apply. */
12612 char dlopen ();
12613 int
12614 main (void)
12615 {
12616 return dlopen ();
12617 ;
12618 return 0;
12619 }
12620 _ACEOF
12621 if ac_fn_c_try_link "$LINENO"
12622 then :
12623 ac_cv_lib_dl_dlopen=yes
12624 else $as_nop
12625 ac_cv_lib_dl_dlopen=no
12626 fi
12627 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12628 conftest$ac_exeext conftest.$ac_ext
12629 LIBS=$ac_check_lib_save_LIBS
12630 fi
12631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12632 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12633 if test "x$ac_cv_lib_dl_dlopen" = xyes
12634 then :
12635 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12636 else $as_nop
12637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12638 printf %s "checking for dlopen in -lsvld... " >&6; }
12639 if test ${ac_cv_lib_svld_dlopen+y}
12640 then :
12641 printf %s "(cached) " >&6
12642 else $as_nop
12643 ac_check_lib_save_LIBS=$LIBS
12644 LIBS="-lsvld $LIBS"
12645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12646 /* end confdefs.h. */
12647
12648 /* Override any GCC internal prototype to avoid an error.
12649 Use char because int might match the return type of a GCC
12650 builtin and then its argument prototype would still apply. */
12651 char dlopen ();
12652 int
12653 main (void)
12654 {
12655 return dlopen ();
12656 ;
12657 return 0;
12658 }
12659 _ACEOF
12660 if ac_fn_c_try_link "$LINENO"
12661 then :
12662 ac_cv_lib_svld_dlopen=yes
12663 else $as_nop
12664 ac_cv_lib_svld_dlopen=no
12665 fi
12666 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12667 conftest$ac_exeext conftest.$ac_ext
12668 LIBS=$ac_check_lib_save_LIBS
12669 fi
12670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12671 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12672 if test "x$ac_cv_lib_svld_dlopen" = xyes
12673 then :
12674 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12675 else $as_nop
12676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12677 printf %s "checking for dld_link in -ldld... " >&6; }
12678 if test ${ac_cv_lib_dld_dld_link+y}
12679 then :
12680 printf %s "(cached) " >&6
12681 else $as_nop
12682 ac_check_lib_save_LIBS=$LIBS
12683 LIBS="-ldld $LIBS"
12684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12685 /* end confdefs.h. */
12686
12687 /* Override any GCC internal prototype to avoid an error.
12688 Use char because int might match the return type of a GCC
12689 builtin and then its argument prototype would still apply. */
12690 char dld_link ();
12691 int
12692 main (void)
12693 {
12694 return dld_link ();
12695 ;
12696 return 0;
12697 }
12698 _ACEOF
12699 if ac_fn_c_try_link "$LINENO"
12700 then :
12701 ac_cv_lib_dld_dld_link=yes
12702 else $as_nop
12703 ac_cv_lib_dld_dld_link=no
12704 fi
12705 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12706 conftest$ac_exeext conftest.$ac_ext
12707 LIBS=$ac_check_lib_save_LIBS
12708 fi
12709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12710 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12711 if test "x$ac_cv_lib_dld_dld_link" = xyes
12712 then :
12713 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12714 fi
12715
12716
12717 fi
12718
12719
12720 fi
12721
12722
12723 fi
12724
12725
12726 fi
12727
12728
12729 fi
12730
12731 ;;
12732 esac
12733
12734 if test no = "$lt_cv_dlopen"; then
12735 enable_dlopen=no
12736 else
12737 enable_dlopen=yes
12738 fi
12739
12740 case $lt_cv_dlopen in
12741 dlopen)
12742 save_CPPFLAGS=$CPPFLAGS
12743 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12744
12745 save_LDFLAGS=$LDFLAGS
12746 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12747
12748 save_LIBS=$LIBS
12749 LIBS="$lt_cv_dlopen_libs $LIBS"
12750
12751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12752 printf %s "checking whether a program can dlopen itself... " >&6; }
12753 if test ${lt_cv_dlopen_self+y}
12754 then :
12755 printf %s "(cached) " >&6
12756 else $as_nop
12757 if test yes = "$cross_compiling"; then :
12758 lt_cv_dlopen_self=cross
12759 else
12760 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12761 lt_status=$lt_dlunknown
12762 cat > conftest.$ac_ext <<_LT_EOF
12763 #line $LINENO "configure"
12764 #include "confdefs.h"
12765
12766 #if HAVE_DLFCN_H
12767 #include <dlfcn.h>
12768 #endif
12769
12770 #include <stdio.h>
12771
12772 #ifdef RTLD_GLOBAL
12773 # define LT_DLGLOBAL RTLD_GLOBAL
12774 #else
12775 # ifdef DL_GLOBAL
12776 # define LT_DLGLOBAL DL_GLOBAL
12777 # else
12778 # define LT_DLGLOBAL 0
12779 # endif
12780 #endif
12781
12782 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12783 find out it does not work in some platform. */
12784 #ifndef LT_DLLAZY_OR_NOW
12785 # ifdef RTLD_LAZY
12786 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12787 # else
12788 # ifdef DL_LAZY
12789 # define LT_DLLAZY_OR_NOW DL_LAZY
12790 # else
12791 # ifdef RTLD_NOW
12792 # define LT_DLLAZY_OR_NOW RTLD_NOW
12793 # else
12794 # ifdef DL_NOW
12795 # define LT_DLLAZY_OR_NOW DL_NOW
12796 # else
12797 # define LT_DLLAZY_OR_NOW 0
12798 # endif
12799 # endif
12800 # endif
12801 # endif
12802 #endif
12803
12804 /* When -fvisibility=hidden is used, assume the code has been annotated
12805 correspondingly for the symbols needed. */
12806 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12807 int fnord () __attribute__((visibility("default")));
12808 #endif
12809
12810 int fnord () { return 42; }
12811 int main ()
12812 {
12813 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12814 int status = $lt_dlunknown;
12815
12816 if (self)
12817 {
12818 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12819 else
12820 {
12821 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12822 else puts (dlerror ());
12823 }
12824 /* dlclose (self); */
12825 }
12826 else
12827 puts (dlerror ());
12828
12829 return status;
12830 }
12831 _LT_EOF
12832 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12833 (eval $ac_link) 2>&5
12834 ac_status=$?
12835 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12836 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12837 (./conftest; exit; ) >&5 2>/dev/null
12838 lt_status=$?
12839 case x$lt_status in
12840 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12841 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12842 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12843 esac
12844 else :
12845 # compilation failed
12846 lt_cv_dlopen_self=no
12847 fi
12848 fi
12849 rm -fr conftest*
12850
12851
12852 fi
12853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12854 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12855
12856 if test yes = "$lt_cv_dlopen_self"; then
12857 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12859 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12860 if test ${lt_cv_dlopen_self_static+y}
12861 then :
12862 printf %s "(cached) " >&6
12863 else $as_nop
12864 if test yes = "$cross_compiling"; then :
12865 lt_cv_dlopen_self_static=cross
12866 else
12867 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12868 lt_status=$lt_dlunknown
12869 cat > conftest.$ac_ext <<_LT_EOF
12870 #line $LINENO "configure"
12871 #include "confdefs.h"
12872
12873 #if HAVE_DLFCN_H
12874 #include <dlfcn.h>
12875 #endif
12876
12877 #include <stdio.h>
12878
12879 #ifdef RTLD_GLOBAL
12880 # define LT_DLGLOBAL RTLD_GLOBAL
12881 #else
12882 # ifdef DL_GLOBAL
12883 # define LT_DLGLOBAL DL_GLOBAL
12884 # else
12885 # define LT_DLGLOBAL 0
12886 # endif
12887 #endif
12888
12889 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12890 find out it does not work in some platform. */
12891 #ifndef LT_DLLAZY_OR_NOW
12892 # ifdef RTLD_LAZY
12893 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12894 # else
12895 # ifdef DL_LAZY
12896 # define LT_DLLAZY_OR_NOW DL_LAZY
12897 # else
12898 # ifdef RTLD_NOW
12899 # define LT_DLLAZY_OR_NOW RTLD_NOW
12900 # else
12901 # ifdef DL_NOW
12902 # define LT_DLLAZY_OR_NOW DL_NOW
12903 # else
12904 # define LT_DLLAZY_OR_NOW 0
12905 # endif
12906 # endif
12907 # endif
12908 # endif
12909 #endif
12910
12911 /* When -fvisibility=hidden is used, assume the code has been annotated
12912 correspondingly for the symbols needed. */
12913 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12914 int fnord () __attribute__((visibility("default")));
12915 #endif
12916
12917 int fnord () { return 42; }
12918 int main ()
12919 {
12920 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12921 int status = $lt_dlunknown;
12922
12923 if (self)
12924 {
12925 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12926 else
12927 {
12928 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12929 else puts (dlerror ());
12930 }
12931 /* dlclose (self); */
12932 }
12933 else
12934 puts (dlerror ());
12935
12936 return status;
12937 }
12938 _LT_EOF
12939 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12940 (eval $ac_link) 2>&5
12941 ac_status=$?
12942 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12943 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12944 (./conftest; exit; ) >&5 2>/dev/null
12945 lt_status=$?
12946 case x$lt_status in
12947 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12948 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12949 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12950 esac
12951 else :
12952 # compilation failed
12953 lt_cv_dlopen_self_static=no
12954 fi
12955 fi
12956 rm -fr conftest*
12957
12958
12959 fi
12960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12961 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12962 fi
12963
12964 CPPFLAGS=$save_CPPFLAGS
12965 LDFLAGS=$save_LDFLAGS
12966 LIBS=$save_LIBS
12967 ;;
12968 esac
12969
12970 case $lt_cv_dlopen_self in
12971 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12972 *) enable_dlopen_self=unknown ;;
12973 esac
12974
12975 case $lt_cv_dlopen_self_static in
12976 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12977 *) enable_dlopen_self_static=unknown ;;
12978 esac
12979 fi
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997 striplib=
12998 old_striplib=
12999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13000 printf %s "checking whether stripping libraries is possible... " >&6; }
13001 if test -z "$STRIP"; then
13002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13003 printf "%s\n" "no" >&6; }
13004 else
13005 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13006 old_striplib="$STRIP --strip-debug"
13007 striplib="$STRIP --strip-unneeded"
13008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13009 printf "%s\n" "yes" >&6; }
13010 else
13011 case $host_os in
13012 darwin*)
13013 # FIXME - insert some real tests, host_os isn't really good enough
13014 striplib="$STRIP -x"
13015 old_striplib="$STRIP -S"
13016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13017 printf "%s\n" "yes" >&6; }
13018 ;;
13019 freebsd*)
13020 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
13021 old_striplib="$STRIP --strip-debug"
13022 striplib="$STRIP --strip-unneeded"
13023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13024 printf "%s\n" "yes" >&6; }
13025 else
13026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13027 printf "%s\n" "no" >&6; }
13028 fi
13029 ;;
13030 *)
13031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13032 printf "%s\n" "no" >&6; }
13033 ;;
13034 esac
13035 fi
13036 fi
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049 # Report what library types will actually be built
13050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13051 printf %s "checking if libtool supports shared libraries... " >&6; }
13052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13053 printf "%s\n" "$can_build_shared" >&6; }
13054
13055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13056 printf %s "checking whether to build shared libraries... " >&6; }
13057 test no = "$can_build_shared" && enable_shared=no
13058
13059 # On AIX, shared libraries and static libraries use the same namespace, and
13060 # are all built from PIC.
13061 case $host_os in
13062 aix3*)
13063 test yes = "$enable_shared" && enable_static=no
13064 if test -n "$RANLIB"; then
13065 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13066 postinstall_cmds='$RANLIB $lib'
13067 fi
13068 ;;
13069
13070 aix[4-9]*)
13071 if test ia64 != "$host_cpu"; then
13072 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13073 yes,aix,yes) ;; # shared object as lib.so file only
13074 yes,svr4,*) ;; # shared object as lib.so archive member only
13075 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13076 esac
13077 fi
13078 ;;
13079 esac
13080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13081 printf "%s\n" "$enable_shared" >&6; }
13082
13083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13084 printf %s "checking whether to build static libraries... " >&6; }
13085 # Make sure either enable_shared or enable_static is yes.
13086 test yes = "$enable_shared" || enable_static=yes
13087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13088 printf "%s\n" "$enable_static" >&6; }
13089
13090
13091
13092
13093 fi
13094 ac_ext=c
13095 ac_cpp='$CPP $CPPFLAGS'
13096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13099
13100 CC=$lt_save_CC
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116 ac_config_commands="$ac_config_commands libtool"
13117
13118
13119
13120
13121 # Only expand once:
13122
13123
13124
13125 ac_ext=cpp
13126 ac_cpp='$CXXCPP $CPPFLAGS'
13127 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13128 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13129 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13130
13131
13132
13133
13134
13135
13136
13137 ac_ext=cpp
13138 ac_cpp='$CXXCPP $CPPFLAGS'
13139 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13140 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13141 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13142 if test -z "$CXX"; then
13143 if test -n "$CCC"; then
13144 CXX=$CCC
13145 else
13146 if test -n "$ac_tool_prefix"; then
13147 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
13148 do
13149 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13150 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13152 printf %s "checking for $ac_word... " >&6; }
13153 if test ${ac_cv_prog_CXX+y}
13154 then :
13155 printf %s "(cached) " >&6
13156 else $as_nop
13157 if test -n "$CXX"; then
13158 ac_cv_prog_CXX="$CXX" # Let the user override the test.
13159 else
13160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13161 for as_dir in $PATH
13162 do
13163 IFS=$as_save_IFS
13164 case $as_dir in #(((
13165 '') as_dir=./ ;;
13166 */) ;;
13167 *) as_dir=$as_dir/ ;;
13168 esac
13169 for ac_exec_ext in '' $ac_executable_extensions; do
13170 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13171 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13172 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13173 break 2
13174 fi
13175 done
13176 done
13177 IFS=$as_save_IFS
13178
13179 fi
13180 fi
13181 CXX=$ac_cv_prog_CXX
13182 if test -n "$CXX"; then
13183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
13184 printf "%s\n" "$CXX" >&6; }
13185 else
13186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13187 printf "%s\n" "no" >&6; }
13188 fi
13189
13190
13191 test -n "$CXX" && break
13192 done
13193 fi
13194 if test -z "$CXX"; then
13195 ac_ct_CXX=$CXX
13196 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
13197 do
13198 # Extract the first word of "$ac_prog", so it can be a program name with args.
13199 set dummy $ac_prog; ac_word=$2
13200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13201 printf %s "checking for $ac_word... " >&6; }
13202 if test ${ac_cv_prog_ac_ct_CXX+y}
13203 then :
13204 printf %s "(cached) " >&6
13205 else $as_nop
13206 if test -n "$ac_ct_CXX"; then
13207 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13208 else
13209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13210 for as_dir in $PATH
13211 do
13212 IFS=$as_save_IFS
13213 case $as_dir in #(((
13214 '') as_dir=./ ;;
13215 */) ;;
13216 *) as_dir=$as_dir/ ;;
13217 esac
13218 for ac_exec_ext in '' $ac_executable_extensions; do
13219 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13220 ac_cv_prog_ac_ct_CXX="$ac_prog"
13221 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13222 break 2
13223 fi
13224 done
13225 done
13226 IFS=$as_save_IFS
13227
13228 fi
13229 fi
13230 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13231 if test -n "$ac_ct_CXX"; then
13232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
13233 printf "%s\n" "$ac_ct_CXX" >&6; }
13234 else
13235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13236 printf "%s\n" "no" >&6; }
13237 fi
13238
13239
13240 test -n "$ac_ct_CXX" && break
13241 done
13242
13243 if test "x$ac_ct_CXX" = x; then
13244 CXX="g++"
13245 else
13246 case $cross_compiling:$ac_tool_warned in
13247 yes:)
13248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13249 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13250 ac_tool_warned=yes ;;
13251 esac
13252 CXX=$ac_ct_CXX
13253 fi
13254 fi
13255
13256 fi
13257 fi
13258 # Provide some information about the compiler.
13259 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
13260 set X $ac_compile
13261 ac_compiler=$2
13262 for ac_option in --version -v -V -qversion; do
13263 { { ac_try="$ac_compiler $ac_option >&5"
13264 case "(($ac_try" in
13265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13266 *) ac_try_echo=$ac_try;;
13267 esac
13268 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13269 printf "%s\n" "$ac_try_echo"; } >&5
13270 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13271 ac_status=$?
13272 if test -s conftest.err; then
13273 sed '10a\
13274 ... rest of stderr output deleted ...
13275 10q' conftest.err >conftest.er1
13276 cat conftest.er1 >&5
13277 fi
13278 rm -f conftest.er1 conftest.err
13279 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13280 test $ac_status = 0; }
13281 done
13282
13283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
13284 printf %s "checking whether the compiler supports GNU C++... " >&6; }
13285 if test ${ac_cv_cxx_compiler_gnu+y}
13286 then :
13287 printf %s "(cached) " >&6
13288 else $as_nop
13289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13290 /* end confdefs.h. */
13291
13292 int
13293 main (void)
13294 {
13295 #ifndef __GNUC__
13296 choke me
13297 #endif
13298
13299 ;
13300 return 0;
13301 }
13302 _ACEOF
13303 if ac_fn_cxx_try_compile "$LINENO"
13304 then :
13305 ac_compiler_gnu=yes
13306 else $as_nop
13307 ac_compiler_gnu=no
13308 fi
13309 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13310 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13311
13312 fi
13313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
13314 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
13315 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13316
13317 if test $ac_compiler_gnu = yes; then
13318 GXX=yes
13319 else
13320 GXX=
13321 fi
13322 ac_test_CXXFLAGS=${CXXFLAGS+y}
13323 ac_save_CXXFLAGS=$CXXFLAGS
13324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
13325 printf %s "checking whether $CXX accepts -g... " >&6; }
13326 if test ${ac_cv_prog_cxx_g+y}
13327 then :
13328 printf %s "(cached) " >&6
13329 else $as_nop
13330 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
13331 ac_cxx_werror_flag=yes
13332 ac_cv_prog_cxx_g=no
13333 CXXFLAGS="-g"
13334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13335 /* end confdefs.h. */
13336
13337 int
13338 main (void)
13339 {
13340
13341 ;
13342 return 0;
13343 }
13344 _ACEOF
13345 if ac_fn_cxx_try_compile "$LINENO"
13346 then :
13347 ac_cv_prog_cxx_g=yes
13348 else $as_nop
13349 CXXFLAGS=""
13350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13351 /* end confdefs.h. */
13352
13353 int
13354 main (void)
13355 {
13356
13357 ;
13358 return 0;
13359 }
13360 _ACEOF
13361 if ac_fn_cxx_try_compile "$LINENO"
13362 then :
13363
13364 else $as_nop
13365 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13366 CXXFLAGS="-g"
13367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13368 /* end confdefs.h. */
13369
13370 int
13371 main (void)
13372 {
13373
13374 ;
13375 return 0;
13376 }
13377 _ACEOF
13378 if ac_fn_cxx_try_compile "$LINENO"
13379 then :
13380 ac_cv_prog_cxx_g=yes
13381 fi
13382 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13383 fi
13384 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13385 fi
13386 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13387 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13388 fi
13389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
13390 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
13391 if test $ac_test_CXXFLAGS; then
13392 CXXFLAGS=$ac_save_CXXFLAGS
13393 elif test $ac_cv_prog_cxx_g = yes; then
13394 if test "$GXX" = yes; then
13395 CXXFLAGS="-g -O2"
13396 else
13397 CXXFLAGS="-g"
13398 fi
13399 else
13400 if test "$GXX" = yes; then
13401 CXXFLAGS="-O2"
13402 else
13403 CXXFLAGS=
13404 fi
13405 fi
13406 ac_prog_cxx_stdcxx=no
13407 if test x$ac_prog_cxx_stdcxx = xno
13408 then :
13409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
13410 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
13411 if test ${ac_cv_prog_cxx_cxx11+y}
13412 then :
13413 printf %s "(cached) " >&6
13414 else $as_nop
13415 ac_cv_prog_cxx_cxx11=no
13416 ac_save_CXX=$CXX
13417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13418 /* end confdefs.h. */
13419 $ac_cxx_conftest_cxx11_program
13420 _ACEOF
13421 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
13422 do
13423 CXX="$ac_save_CXX $ac_arg"
13424 if ac_fn_cxx_try_compile "$LINENO"
13425 then :
13426 ac_cv_prog_cxx_cxx11=$ac_arg
13427 fi
13428 rm -f core conftest.err conftest.$ac_objext conftest.beam
13429 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
13430 done
13431 rm -f conftest.$ac_ext
13432 CXX=$ac_save_CXX
13433 fi
13434
13435 if test "x$ac_cv_prog_cxx_cxx11" = xno
13436 then :
13437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13438 printf "%s\n" "unsupported" >&6; }
13439 else $as_nop
13440 if test "x$ac_cv_prog_cxx_cxx11" = x
13441 then :
13442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13443 printf "%s\n" "none needed" >&6; }
13444 else $as_nop
13445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
13446 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
13447 CXX="$CXX $ac_cv_prog_cxx_cxx11"
13448 fi
13449 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
13450 ac_prog_cxx_stdcxx=cxx11
13451 fi
13452 fi
13453 if test x$ac_prog_cxx_stdcxx = xno
13454 then :
13455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
13456 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
13457 if test ${ac_cv_prog_cxx_cxx98+y}
13458 then :
13459 printf %s "(cached) " >&6
13460 else $as_nop
13461 ac_cv_prog_cxx_cxx98=no
13462 ac_save_CXX=$CXX
13463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13464 /* end confdefs.h. */
13465 $ac_cxx_conftest_cxx98_program
13466 _ACEOF
13467 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
13468 do
13469 CXX="$ac_save_CXX $ac_arg"
13470 if ac_fn_cxx_try_compile "$LINENO"
13471 then :
13472 ac_cv_prog_cxx_cxx98=$ac_arg
13473 fi
13474 rm -f core conftest.err conftest.$ac_objext conftest.beam
13475 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
13476 done
13477 rm -f conftest.$ac_ext
13478 CXX=$ac_save_CXX
13479 fi
13480
13481 if test "x$ac_cv_prog_cxx_cxx98" = xno
13482 then :
13483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13484 printf "%s\n" "unsupported" >&6; }
13485 else $as_nop
13486 if test "x$ac_cv_prog_cxx_cxx98" = x
13487 then :
13488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13489 printf "%s\n" "none needed" >&6; }
13490 else $as_nop
13491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
13492 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
13493 CXX="$CXX $ac_cv_prog_cxx_cxx98"
13494 fi
13495 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
13496 ac_prog_cxx_stdcxx=cxx98
13497 fi
13498 fi
13499
13500 ac_ext=cpp
13501 ac_cpp='$CXXCPP $CPPFLAGS'
13502 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13503 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13504 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13505
13506 depcc="$CXX" am_compiler_list=
13507
13508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13509 printf %s "checking dependency style of $depcc... " >&6; }
13510 if test ${am_cv_CXX_dependencies_compiler_type+y}
13511 then :
13512 printf %s "(cached) " >&6
13513 else $as_nop
13514 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13515 # We make a subdir and do the tests there. Otherwise we can end up
13516 # making bogus files that we don't know about and never remove. For
13517 # instance it was reported that on HP-UX the gcc test will end up
13518 # making a dummy file named 'D' -- because '-MD' means "put the output
13519 # in D".
13520 rm -rf conftest.dir
13521 mkdir conftest.dir
13522 # Copy depcomp to subdir because otherwise we won't find it if we're
13523 # using a relative directory.
13524 cp "$am_depcomp" conftest.dir
13525 cd conftest.dir
13526 # We will build objects and dependencies in a subdirectory because
13527 # it helps to detect inapplicable dependency modes. For instance
13528 # both Tru64's cc and ICC support -MD to output dependencies as a
13529 # side effect of compilation, but ICC will put the dependencies in
13530 # the current directory while Tru64 will put them in the object
13531 # directory.
13532 mkdir sub
13533
13534 am_cv_CXX_dependencies_compiler_type=none
13535 if test "$am_compiler_list" = ""; then
13536 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13537 fi
13538 am__universal=false
13539 case " $depcc " in #(
13540 *\ -arch\ *\ -arch\ *) am__universal=true ;;
13541 esac
13542
13543 for depmode in $am_compiler_list; do
13544 # Setup a source with many dependencies, because some compilers
13545 # like to wrap large dependency lists on column 80 (with \), and
13546 # we should not choose a depcomp mode which is confused by this.
13547 #
13548 # We need to recreate these files for each test, as the compiler may
13549 # overwrite some of them when testing with obscure command lines.
13550 # This happens at least with the AIX C compiler.
13551 : > sub/conftest.c
13552 for i in 1 2 3 4 5 6; do
13553 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13554 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13555 # Solaris 10 /bin/sh.
13556 echo '/* dummy */' > sub/conftst$i.h
13557 done
13558 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13559
13560 # We check with '-c' and '-o' for the sake of the "dashmstdout"
13561 # mode. It turns out that the SunPro C++ compiler does not properly
13562 # handle '-M -o', and we need to detect this. Also, some Intel
13563 # versions had trouble with output in subdirs.
13564 am__obj=sub/conftest.${OBJEXT-o}
13565 am__minus_obj="-o $am__obj"
13566 case $depmode in
13567 gcc)
13568 # This depmode causes a compiler race in universal mode.
13569 test "$am__universal" = false || continue
13570 ;;
13571 nosideeffect)
13572 # After this tag, mechanisms are not by side-effect, so they'll
13573 # only be used when explicitly requested.
13574 if test "x$enable_dependency_tracking" = xyes; then
13575 continue
13576 else
13577 break
13578 fi
13579 ;;
13580 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13581 # This compiler won't grok '-c -o', but also, the minuso test has
13582 # not run yet. These depmodes are late enough in the game, and
13583 # so weak that their functioning should not be impacted.
13584 am__obj=conftest.${OBJEXT-o}
13585 am__minus_obj=
13586 ;;
13587 none) break ;;
13588 esac
13589 if depmode=$depmode \
13590 source=sub/conftest.c object=$am__obj \
13591 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13592 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13593 >/dev/null 2>conftest.err &&
13594 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13595 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13596 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13597 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13598 # icc doesn't choke on unknown options, it will just issue warnings
13599 # or remarks (even with -Werror). So we grep stderr for any message
13600 # that says an option was ignored or not supported.
13601 # When given -MP, icc 7.0 and 7.1 complain thusly:
13602 # icc: Command line warning: ignoring option '-M'; no argument required
13603 # The diagnosis changed in icc 8.0:
13604 # icc: Command line remark: option '-MP' not supported
13605 if (grep 'ignoring option' conftest.err ||
13606 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13607 am_cv_CXX_dependencies_compiler_type=$depmode
13608 break
13609 fi
13610 fi
13611 done
13612
13613 cd ..
13614 rm -rf conftest.dir
13615 else
13616 am_cv_CXX_dependencies_compiler_type=none
13617 fi
13618
13619 fi
13620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
13621 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
13622 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
13623
13624 if
13625 test "x$enable_dependency_tracking" != xno \
13626 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
13627 am__fastdepCXX_TRUE=
13628 am__fastdepCXX_FALSE='#'
13629 else
13630 am__fastdepCXX_TRUE='#'
13631 am__fastdepCXX_FALSE=
13632 fi
13633
13634
13635
13636
13637 func_stripname_cnf ()
13638 {
13639 case $2 in
13640 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
13641 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
13642 esac
13643 } # func_stripname_cnf
13644
13645 if test -n "$CXX" && ( test no != "$CXX" &&
13646 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
13647 (test g++ != "$CXX"))); then
13648 ac_ext=cpp
13649 ac_cpp='$CXXCPP $CPPFLAGS'
13650 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13651 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13652 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13654 printf %s "checking how to run the C++ preprocessor... " >&6; }
13655 if test -z "$CXXCPP"; then
13656 if test ${ac_cv_prog_CXXCPP+y}
13657 then :
13658 printf %s "(cached) " >&6
13659 else $as_nop
13660 # Double quotes because $CXX needs to be expanded
13661 for CXXCPP in "$CXX -E" cpp /lib/cpp
13662 do
13663 ac_preproc_ok=false
13664 for ac_cxx_preproc_warn_flag in '' yes
13665 do
13666 # Use a header file that comes with gcc, so configuring glibc
13667 # with a fresh cross-compiler works.
13668 # On the NeXT, cc -E runs the code through the compiler's parser,
13669 # not just through cpp. "Syntax error" is here to catch this case.
13670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13671 /* end confdefs.h. */
13672 #include <limits.h>
13673 Syntax error
13674 _ACEOF
13675 if ac_fn_cxx_try_cpp "$LINENO"
13676 then :
13677
13678 else $as_nop
13679 # Broken: fails on valid input.
13680 continue
13681 fi
13682 rm -f conftest.err conftest.i conftest.$ac_ext
13683
13684 # OK, works on sane cases. Now check whether nonexistent headers
13685 # can be detected and how.
13686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13687 /* end confdefs.h. */
13688 #include <ac_nonexistent.h>
13689 _ACEOF
13690 if ac_fn_cxx_try_cpp "$LINENO"
13691 then :
13692 # Broken: success on invalid input.
13693 continue
13694 else $as_nop
13695 # Passes both tests.
13696 ac_preproc_ok=:
13697 break
13698 fi
13699 rm -f conftest.err conftest.i conftest.$ac_ext
13700
13701 done
13702 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13703 rm -f conftest.i conftest.err conftest.$ac_ext
13704 if $ac_preproc_ok
13705 then :
13706 break
13707 fi
13708
13709 done
13710 ac_cv_prog_CXXCPP=$CXXCPP
13711
13712 fi
13713 CXXCPP=$ac_cv_prog_CXXCPP
13714 else
13715 ac_cv_prog_CXXCPP=$CXXCPP
13716 fi
13717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13718 printf "%s\n" "$CXXCPP" >&6; }
13719 ac_preproc_ok=false
13720 for ac_cxx_preproc_warn_flag in '' yes
13721 do
13722 # Use a header file that comes with gcc, so configuring glibc
13723 # with a fresh cross-compiler works.
13724 # On the NeXT, cc -E runs the code through the compiler's parser,
13725 # not just through cpp. "Syntax error" is here to catch this case.
13726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13727 /* end confdefs.h. */
13728 #include <limits.h>
13729 Syntax error
13730 _ACEOF
13731 if ac_fn_cxx_try_cpp "$LINENO"
13732 then :
13733
13734 else $as_nop
13735 # Broken: fails on valid input.
13736 continue
13737 fi
13738 rm -f conftest.err conftest.i conftest.$ac_ext
13739
13740 # OK, works on sane cases. Now check whether nonexistent headers
13741 # can be detected and how.
13742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13743 /* end confdefs.h. */
13744 #include <ac_nonexistent.h>
13745 _ACEOF
13746 if ac_fn_cxx_try_cpp "$LINENO"
13747 then :
13748 # Broken: success on invalid input.
13749 continue
13750 else $as_nop
13751 # Passes both tests.
13752 ac_preproc_ok=:
13753 break
13754 fi
13755 rm -f conftest.err conftest.i conftest.$ac_ext
13756
13757 done
13758 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13759 rm -f conftest.i conftest.err conftest.$ac_ext
13760 if $ac_preproc_ok
13761 then :
13762
13763 else $as_nop
13764 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13765 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13766 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13767 See \`config.log' for more details" "$LINENO" 5; }
13768 fi
13769
13770 ac_ext=cpp
13771 ac_cpp='$CXXCPP $CPPFLAGS'
13772 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13773 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13774 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13775
13776 else
13777 _lt_caught_CXX_error=yes
13778 fi
13779
13780 ac_ext=cpp
13781 ac_cpp='$CXXCPP $CPPFLAGS'
13782 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13783 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13784 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13785
13786 archive_cmds_need_lc_CXX=no
13787 allow_undefined_flag_CXX=
13788 always_export_symbols_CXX=no
13789 archive_expsym_cmds_CXX=
13790 compiler_needs_object_CXX=no
13791 export_dynamic_flag_spec_CXX=
13792 hardcode_direct_CXX=no
13793 hardcode_direct_absolute_CXX=no
13794 hardcode_libdir_flag_spec_CXX=
13795 hardcode_libdir_separator_CXX=
13796 hardcode_minus_L_CXX=no
13797 hardcode_shlibpath_var_CXX=unsupported
13798 hardcode_automatic_CXX=no
13799 inherit_rpath_CXX=no
13800 module_cmds_CXX=
13801 module_expsym_cmds_CXX=
13802 link_all_deplibs_CXX=unknown
13803 old_archive_cmds_CXX=$old_archive_cmds
13804 reload_flag_CXX=$reload_flag
13805 reload_cmds_CXX=$reload_cmds
13806 no_undefined_flag_CXX=
13807 whole_archive_flag_spec_CXX=
13808 enable_shared_with_static_runtimes_CXX=no
13809
13810 # Source file extension for C++ test sources.
13811 ac_ext=cpp
13812
13813 # Object file extension for compiled C++ test sources.
13814 objext=o
13815 objext_CXX=$objext
13816
13817 # No sense in running all these tests if we already determined that
13818 # the CXX compiler isn't working. Some variables (like enable_shared)
13819 # are currently assumed to apply to all compilers on this platform,
13820 # and will be corrupted by setting them based on a non-working compiler.
13821 if test yes != "$_lt_caught_CXX_error"; then
13822 # Code to be used in simple compile tests
13823 lt_simple_compile_test_code="int some_variable = 0;"
13824
13825 # Code to be used in simple link tests
13826 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13827
13828 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13829
13830
13831
13832
13833
13834
13835 # If no C compiler was specified, use CC.
13836 LTCC=${LTCC-"$CC"}
13837
13838 # If no C compiler flags were specified, use CFLAGS.
13839 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13840
13841 # Allow CC to be a program name with arguments.
13842 compiler=$CC
13843
13844
13845 # save warnings/boilerplate of simple test code
13846 ac_outfile=conftest.$ac_objext
13847 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13848 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13849 _lt_compiler_boilerplate=`cat conftest.err`
13850 $RM conftest*
13851
13852 ac_outfile=conftest.$ac_objext
13853 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13854 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13855 _lt_linker_boilerplate=`cat conftest.err`
13856 $RM -r conftest*
13857
13858
13859 # Allow CC to be a program name with arguments.
13860 lt_save_CC=$CC
13861 lt_save_CFLAGS=$CFLAGS
13862 lt_save_LD=$LD
13863 lt_save_GCC=$GCC
13864 GCC=$GXX
13865 lt_save_with_gnu_ld=$with_gnu_ld
13866 lt_save_path_LD=$lt_cv_path_LD
13867 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13868 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13869 else
13870 $as_unset lt_cv_prog_gnu_ld
13871 fi
13872 if test -n "${lt_cv_path_LDCXX+set}"; then
13873 lt_cv_path_LD=$lt_cv_path_LDCXX
13874 else
13875 $as_unset lt_cv_path_LD
13876 fi
13877 test -z "${LDCXX+set}" || LD=$LDCXX
13878 CC=${CXX-"c++"}
13879 CFLAGS=$CXXFLAGS
13880 compiler=$CC
13881 compiler_CXX=$CC
13882 func_cc_basename $compiler
13883 cc_basename=$func_cc_basename_result
13884
13885
13886 if test -n "$compiler"; then
13887 # We don't want -fno-exception when compiling C++ code, so set the
13888 # no_builtin_flag separately
13889 if test yes = "$GXX"; then
13890 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13891 else
13892 lt_prog_compiler_no_builtin_flag_CXX=
13893 fi
13894
13895 if test yes = "$GXX"; then
13896 # Set up default GNU C++ configuration
13897
13898
13899
13900 # Check whether --with-gnu-ld was given.
13901 if test ${with_gnu_ld+y}
13902 then :
13903 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
13904 else $as_nop
13905 with_gnu_ld=no
13906 fi
13907
13908 ac_prog=ld
13909 if test yes = "$GCC"; then
13910 # Check if gcc -print-prog-name=ld gives a path.
13911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13912 printf %s "checking for ld used by $CC... " >&6; }
13913 case $host in
13914 *-*-mingw*)
13915 # gcc leaves a trailing carriage return, which upsets mingw
13916 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13917 *)
13918 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13919 esac
13920 case $ac_prog in
13921 # Accept absolute paths.
13922 [\\/]* | ?:[\\/]*)
13923 re_direlt='/[^/][^/]*/\.\./'
13924 # Canonicalize the pathname of ld
13925 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13926 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13927 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13928 done
13929 test -z "$LD" && LD=$ac_prog
13930 ;;
13931 "")
13932 # If it fails, then pretend we aren't using GCC.
13933 ac_prog=ld
13934 ;;
13935 *)
13936 # If it is relative, then search for the first ld in PATH.
13937 with_gnu_ld=unknown
13938 ;;
13939 esac
13940 elif test yes = "$with_gnu_ld"; then
13941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13942 printf %s "checking for GNU ld... " >&6; }
13943 else
13944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13945 printf %s "checking for non-GNU ld... " >&6; }
13946 fi
13947 if test ${lt_cv_path_LD+y}
13948 then :
13949 printf %s "(cached) " >&6
13950 else $as_nop
13951 if test -z "$LD"; then
13952 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13953 for ac_dir in $PATH; do
13954 IFS=$lt_save_ifs
13955 test -z "$ac_dir" && ac_dir=.
13956 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13957 lt_cv_path_LD=$ac_dir/$ac_prog
13958 # Check to see if the program is GNU ld. I'd rather use --version,
13959 # but apparently some variants of GNU ld only accept -v.
13960 # Break only if it was the GNU/non-GNU ld that we prefer.
13961 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13962 *GNU* | *'with BFD'*)
13963 test no != "$with_gnu_ld" && break
13964 ;;
13965 *)
13966 test yes != "$with_gnu_ld" && break
13967 ;;
13968 esac
13969 fi
13970 done
13971 IFS=$lt_save_ifs
13972 else
13973 lt_cv_path_LD=$LD # Let the user override the test with a path.
13974 fi
13975 fi
13976
13977 LD=$lt_cv_path_LD
13978 if test -n "$LD"; then
13979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13980 printf "%s\n" "$LD" >&6; }
13981 else
13982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13983 printf "%s\n" "no" >&6; }
13984 fi
13985 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13987 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
13988 if test ${lt_cv_prog_gnu_ld+y}
13989 then :
13990 printf %s "(cached) " >&6
13991 else $as_nop
13992 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13993 case `$LD -v 2>&1 </dev/null` in
13994 *GNU* | *'with BFD'*)
13995 lt_cv_prog_gnu_ld=yes
13996 ;;
13997 *)
13998 lt_cv_prog_gnu_ld=no
13999 ;;
14000 esac
14001 fi
14002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14003 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
14004 with_gnu_ld=$lt_cv_prog_gnu_ld
14005
14006
14007
14008
14009
14010
14011
14012 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14013 # archiving commands below assume that GNU ld is being used.
14014 if test yes = "$with_gnu_ld"; then
14015 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14016 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'
14017
14018 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14019 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14020
14021 # If archive_cmds runs LD, not CC, wlarc should be empty
14022 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14023 # investigate it a little bit more. (MM)
14024 wlarc='$wl'
14025
14026 # ancient GNU ld didn't support --whole-archive et. al.
14027 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14028 $GREP 'no-whole-archive' > /dev/null; then
14029 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14030 else
14031 whole_archive_flag_spec_CXX=
14032 fi
14033 else
14034 with_gnu_ld=no
14035 wlarc=
14036
14037 # A generic and very simple default shared library creation
14038 # command for GNU C++ for the case where it uses the native
14039 # linker, instead of GNU ld. If possible, this setting should
14040 # overridden to take advantage of the native linker features on
14041 # the platform it is being used on.
14042 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14043 fi
14044
14045 # Commands to make compiler produce verbose output that lists
14046 # what "hidden" libraries, object files and flags are used when
14047 # linking a shared library.
14048 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
14049
14050 else
14051 GXX=no
14052 with_gnu_ld=no
14053 wlarc=
14054 fi
14055
14056 # PORTME: fill in a description of your system's C++ link characteristics
14057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14058 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14059 ld_shlibs_CXX=yes
14060 case $host_os in
14061 aix3*)
14062 # FIXME: insert proper C++ library support
14063 ld_shlibs_CXX=no
14064 ;;
14065 aix[4-9]*)
14066 if test ia64 = "$host_cpu"; then
14067 # On IA64, the linker does run time linking by default, so we don't
14068 # have to do anything special.
14069 aix_use_runtimelinking=no
14070 exp_sym_flag='-Bexport'
14071 no_entry_flag=
14072 else
14073 aix_use_runtimelinking=no
14074
14075 # Test if we are trying to use run time linking or normal
14076 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14077 # have runtime linking enabled, and use it for executables.
14078 # For shared libraries, we enable/disable runtime linking
14079 # depending on the kind of the shared library created -
14080 # when "with_aix_soname,aix_use_runtimelinking" is:
14081 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
14082 # "aix,yes" lib.so shared, rtl:yes, for executables
14083 # lib.a static archive
14084 # "both,no" lib.so.V(shr.o) shared, rtl:yes
14085 # lib.a(lib.so.V) shared, rtl:no, for executables
14086 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
14087 # lib.a(lib.so.V) shared, rtl:no
14088 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
14089 # lib.a static archive
14090 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14091 for ld_flag in $LDFLAGS; do
14092 case $ld_flag in
14093 *-brtl*)
14094 aix_use_runtimelinking=yes
14095 break
14096 ;;
14097 esac
14098 done
14099 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
14100 # With aix-soname=svr4, we create the lib.so.V shared archives only,
14101 # so we don't have lib.a shared libs to link our executables.
14102 # We have to force runtime linking in this case.
14103 aix_use_runtimelinking=yes
14104 LDFLAGS="$LDFLAGS -Wl,-brtl"
14105 fi
14106 ;;
14107 esac
14108
14109 exp_sym_flag='-bexport'
14110 no_entry_flag='-bnoentry'
14111 fi
14112
14113 # When large executables or shared objects are built, AIX ld can
14114 # have problems creating the table of contents. If linking a library
14115 # or program results in "error TOC overflow" add -mminimal-toc to
14116 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14117 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14118
14119 archive_cmds_CXX=''
14120 hardcode_direct_CXX=yes
14121 hardcode_direct_absolute_CXX=yes
14122 hardcode_libdir_separator_CXX=':'
14123 link_all_deplibs_CXX=yes
14124 file_list_spec_CXX='$wl-f,'
14125 case $with_aix_soname,$aix_use_runtimelinking in
14126 aix,*) ;; # no import file
14127 svr4,* | *,yes) # use import file
14128 # The Import File defines what to hardcode.
14129 hardcode_direct_CXX=no
14130 hardcode_direct_absolute_CXX=no
14131 ;;
14132 esac
14133
14134 if test yes = "$GXX"; then
14135 case $host_os in aix4.[012]|aix4.[012].*)
14136 # We only want to do this on AIX 4.2 and lower, the check
14137 # below for broken collect2 doesn't work under 4.3+
14138 collect2name=`$CC -print-prog-name=collect2`
14139 if test -f "$collect2name" &&
14140 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14141 then
14142 # We have reworked collect2
14143 :
14144 else
14145 # We have old collect2
14146 hardcode_direct_CXX=unsupported
14147 # It fails to find uninstalled libraries when the uninstalled
14148 # path is not listed in the libpath. Setting hardcode_minus_L
14149 # to unsupported forces relinking
14150 hardcode_minus_L_CXX=yes
14151 hardcode_libdir_flag_spec_CXX='-L$libdir'
14152 hardcode_libdir_separator_CXX=
14153 fi
14154 esac
14155 shared_flag='-shared'
14156 if test yes = "$aix_use_runtimelinking"; then
14157 shared_flag=$shared_flag' $wl-G'
14158 fi
14159 # Need to ensure runtime linking is disabled for the traditional
14160 # shared library, or the linker may eventually find shared libraries
14161 # /with/ Import File - we do not want to mix them.
14162 shared_flag_aix='-shared'
14163 shared_flag_svr4='-shared $wl-G'
14164 else
14165 # not using gcc
14166 if test ia64 = "$host_cpu"; then
14167 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14168 # chokes on -Wl,-G. The following line is correct:
14169 shared_flag='-G'
14170 else
14171 if test yes = "$aix_use_runtimelinking"; then
14172 shared_flag='$wl-G'
14173 else
14174 shared_flag='$wl-bM:SRE'
14175 fi
14176 shared_flag_aix='$wl-bM:SRE'
14177 shared_flag_svr4='$wl-G'
14178 fi
14179 fi
14180
14181 export_dynamic_flag_spec_CXX='$wl-bexpall'
14182 # It seems that -bexpall does not export symbols beginning with
14183 # underscore (_), so it is better to generate a list of symbols to
14184 # export.
14185 always_export_symbols_CXX=yes
14186 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
14187 # Warning - without using the other runtime loading flags (-brtl),
14188 # -berok will link without error, but may produce a broken library.
14189 # The "-G" linker flag allows undefined symbols.
14190 no_undefined_flag_CXX='-bernotok'
14191 # Determine the default libpath from the value encoded in an empty
14192 # executable.
14193 if test set = "${lt_cv_aix_libpath+set}"; then
14194 aix_libpath=$lt_cv_aix_libpath
14195 else
14196 if test ${lt_cv_aix_libpath__CXX+y}
14197 then :
14198 printf %s "(cached) " >&6
14199 else $as_nop
14200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14201 /* end confdefs.h. */
14202
14203 int
14204 main (void)
14205 {
14206
14207 ;
14208 return 0;
14209 }
14210 _ACEOF
14211 if ac_fn_cxx_try_link "$LINENO"
14212 then :
14213
14214 lt_aix_libpath_sed='
14215 /Import File Strings/,/^$/ {
14216 /^0/ {
14217 s/^0 *\([^ ]*\) *$/\1/
14218 p
14219 }
14220 }'
14221 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14222 # Check for a 64-bit object if we didn't find anything.
14223 if test -z "$lt_cv_aix_libpath__CXX"; then
14224 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14225 fi
14226 fi
14227 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14228 conftest$ac_exeext conftest.$ac_ext
14229 if test -z "$lt_cv_aix_libpath__CXX"; then
14230 lt_cv_aix_libpath__CXX=/usr/lib:/lib
14231 fi
14232
14233 fi
14234
14235 aix_libpath=$lt_cv_aix_libpath__CXX
14236 fi
14237
14238 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14239
14240 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
14241 else
14242 if test ia64 = "$host_cpu"; then
14243 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
14244 allow_undefined_flag_CXX="-z nodefs"
14245 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"
14246 else
14247 # Determine the default libpath from the value encoded in an
14248 # empty executable.
14249 if test set = "${lt_cv_aix_libpath+set}"; then
14250 aix_libpath=$lt_cv_aix_libpath
14251 else
14252 if test ${lt_cv_aix_libpath__CXX+y}
14253 then :
14254 printf %s "(cached) " >&6
14255 else $as_nop
14256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14257 /* end confdefs.h. */
14258
14259 int
14260 main (void)
14261 {
14262
14263 ;
14264 return 0;
14265 }
14266 _ACEOF
14267 if ac_fn_cxx_try_link "$LINENO"
14268 then :
14269
14270 lt_aix_libpath_sed='
14271 /Import File Strings/,/^$/ {
14272 /^0/ {
14273 s/^0 *\([^ ]*\) *$/\1/
14274 p
14275 }
14276 }'
14277 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14278 # Check for a 64-bit object if we didn't find anything.
14279 if test -z "$lt_cv_aix_libpath__CXX"; then
14280 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14281 fi
14282 fi
14283 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14284 conftest$ac_exeext conftest.$ac_ext
14285 if test -z "$lt_cv_aix_libpath__CXX"; then
14286 lt_cv_aix_libpath__CXX=/usr/lib:/lib
14287 fi
14288
14289 fi
14290
14291 aix_libpath=$lt_cv_aix_libpath__CXX
14292 fi
14293
14294 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14295 # Warning - without using the other run time loading flags,
14296 # -berok will link without error, but may produce a broken library.
14297 no_undefined_flag_CXX=' $wl-bernotok'
14298 allow_undefined_flag_CXX=' $wl-berok'
14299 if test yes = "$with_gnu_ld"; then
14300 # We only use this code for GNU lds that support --whole-archive.
14301 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14302 else
14303 # Exported symbols can be pulled into shared objects from archives
14304 whole_archive_flag_spec_CXX='$convenience'
14305 fi
14306 archive_cmds_need_lc_CXX=yes
14307 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
14308 # -brtl affects multiple linker settings, -berok does not and is overridden later
14309 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
14310 if test svr4 != "$with_aix_soname"; then
14311 # This is similar to how AIX traditionally builds its shared
14312 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
14313 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'
14314 fi
14315 if test aix != "$with_aix_soname"; then
14316 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'
14317 else
14318 # used by -dlpreopen to get the symbols
14319 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
14320 fi
14321 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
14322 fi
14323 fi
14324 ;;
14325
14326 beos*)
14327 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14328 allow_undefined_flag_CXX=unsupported
14329 # Joseph Beckenbach <[email protected]> says some releases of gcc
14330 # support --undefined. This deserves some investigation. FIXME
14331 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14332 else
14333 ld_shlibs_CXX=no
14334 fi
14335 ;;
14336
14337 chorus*)
14338 case $cc_basename in
14339 *)
14340 # FIXME: insert proper C++ library support
14341 ld_shlibs_CXX=no
14342 ;;
14343 esac
14344 ;;
14345
14346 cygwin* | mingw* | pw32* | cegcc*)
14347 case $GXX,$cc_basename in
14348 ,cl* | no,cl* | ,icl* | no,icl*)
14349 # Native MSVC or ICC
14350 # hardcode_libdir_flag_spec is actually meaningless, as there is
14351 # no search path for DLLs.
14352 hardcode_libdir_flag_spec_CXX=' '
14353 allow_undefined_flag_CXX=unsupported
14354 always_export_symbols_CXX=yes
14355 file_list_spec_CXX='@'
14356 # Tell ltmain to make .lib files, not .a files.
14357 libext=lib
14358 # Tell ltmain to make .dll files, not .so files.
14359 shrext_cmds=.dll
14360 # FIXME: Setting linknames here is a bad hack.
14361 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14362 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14363 cp "$export_symbols" "$output_objdir/$soname.def";
14364 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14365 else
14366 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14367 fi~
14368 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14369 linknames='
14370 # The linker will not automatically build a static lib if we build a DLL.
14371 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14372 enable_shared_with_static_runtimes_CXX=yes
14373 # Don't use ranlib
14374 old_postinstall_cmds_CXX='chmod 644 $oldlib'
14375 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14376 lt_tool_outputfile="@TOOL_OUTPUT@"~
14377 case $lt_outputfile in
14378 *.exe|*.EXE) ;;
14379 *)
14380 lt_outputfile=$lt_outputfile.exe
14381 lt_tool_outputfile=$lt_tool_outputfile.exe
14382 ;;
14383 esac~
14384 func_to_tool_file "$lt_outputfile"~
14385 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14386 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14387 $RM "$lt_outputfile.manifest";
14388 fi'
14389 ;;
14390 *)
14391 # g++
14392 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14393 # as there is no search path for DLLs.
14394 hardcode_libdir_flag_spec_CXX='-L$libdir'
14395 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
14396 allow_undefined_flag_CXX=unsupported
14397 always_export_symbols_CXX=no
14398 enable_shared_with_static_runtimes_CXX=yes
14399
14400 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14401 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'
14402 # If the export-symbols file already is a .def file, use it as
14403 # is; otherwise, prepend EXPORTS...
14404 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14405 cp $export_symbols $output_objdir/$soname.def;
14406 else
14407 echo EXPORTS > $output_objdir/$soname.def;
14408 cat $export_symbols >> $output_objdir/$soname.def;
14409 fi~
14410 $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'
14411 else
14412 ld_shlibs_CXX=no
14413 fi
14414 ;;
14415 esac
14416 ;;
14417 darwin* | rhapsody*)
14418
14419
14420 archive_cmds_need_lc_CXX=no
14421 hardcode_direct_CXX=no
14422 hardcode_automatic_CXX=yes
14423 hardcode_shlibpath_var_CXX=unsupported
14424 if test yes = "$lt_cv_ld_force_load"; then
14425 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\"`'
14426
14427 else
14428 whole_archive_flag_spec_CXX=''
14429 fi
14430 link_all_deplibs_CXX=yes
14431 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
14432 case $cc_basename in
14433 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14434 *) _lt_dar_can_shared=$GCC ;;
14435 esac
14436 if test yes = "$_lt_dar_can_shared"; then
14437 output_verbose_link_cmd=func_echo_all
14438 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"
14439 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14440 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"
14441 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"
14442 if test yes != "$lt_cv_apple_cc_single_mod"; then
14443 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"
14444 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"
14445 fi
14446
14447 else
14448 ld_shlibs_CXX=no
14449 fi
14450
14451 ;;
14452
14453 os2*)
14454 hardcode_libdir_flag_spec_CXX='-L$libdir'
14455 hardcode_minus_L_CXX=yes
14456 allow_undefined_flag_CXX=unsupported
14457 shrext_cmds=.dll
14458 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14459 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14460 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14461 $ECHO EXPORTS >> $output_objdir/$libname.def~
14462 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14463 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14464 emximp -o $lib $output_objdir/$libname.def'
14465 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14466 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14467 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14468 $ECHO EXPORTS >> $output_objdir/$libname.def~
14469 prefix_cmds="$SED"~
14470 if test EXPORTS = "`$SED 1q $export_symbols`"; then
14471 prefix_cmds="$prefix_cmds -e 1d";
14472 fi~
14473 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14474 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14475 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14476 emximp -o $lib $output_objdir/$libname.def'
14477 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14478 enable_shared_with_static_runtimes_CXX=yes
14479 file_list_spec_CXX='@'
14480 ;;
14481
14482 dgux*)
14483 case $cc_basename in
14484 ec++*)
14485 # FIXME: insert proper C++ library support
14486 ld_shlibs_CXX=no
14487 ;;
14488 ghcx*)
14489 # Green Hills C++ Compiler
14490 # FIXME: insert proper C++ library support
14491 ld_shlibs_CXX=no
14492 ;;
14493 *)
14494 # FIXME: insert proper C++ library support
14495 ld_shlibs_CXX=no
14496 ;;
14497 esac
14498 ;;
14499
14500 freebsd2.*)
14501 # C++ shared libraries reported to be fairly broken before
14502 # switch to ELF
14503 ld_shlibs_CXX=no
14504 ;;
14505
14506 freebsd-elf*)
14507 archive_cmds_need_lc_CXX=no
14508 ;;
14509
14510 freebsd* | dragonfly* | midnightbsd*)
14511 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14512 # conventions
14513 ld_shlibs_CXX=yes
14514 ;;
14515
14516 haiku*)
14517 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14518 link_all_deplibs_CXX=yes
14519 ;;
14520
14521 hpux9*)
14522 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14523 hardcode_libdir_separator_CXX=:
14524 export_dynamic_flag_spec_CXX='$wl-E'
14525 hardcode_direct_CXX=yes
14526 hardcode_minus_L_CXX=yes # Not in the search PATH,
14527 # but as the default
14528 # location of the library.
14529
14530 case $cc_basename in
14531 CC*)
14532 # FIXME: insert proper C++ library support
14533 ld_shlibs_CXX=no
14534 ;;
14535 aCC*)
14536 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'
14537 # Commands to make compiler produce verbose output that lists
14538 # what "hidden" libraries, object files and flags are used when
14539 # linking a shared library.
14540 #
14541 # There doesn't appear to be a way to prevent this compiler from
14542 # explicitly linking system object files so we need to strip them
14543 # from the output so that they don't get included in the library
14544 # dependencies.
14545 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"'
14546 ;;
14547 *)
14548 if test yes = "$GXX"; then
14549 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'
14550 else
14551 # FIXME: insert proper C++ library support
14552 ld_shlibs_CXX=no
14553 fi
14554 ;;
14555 esac
14556 ;;
14557
14558 hpux10*|hpux11*)
14559 if test no = "$with_gnu_ld"; then
14560 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14561 hardcode_libdir_separator_CXX=:
14562
14563 case $host_cpu in
14564 hppa*64*|ia64*)
14565 ;;
14566 *)
14567 export_dynamic_flag_spec_CXX='$wl-E'
14568 ;;
14569 esac
14570 fi
14571 case $host_cpu in
14572 hppa*64*|ia64*)
14573 hardcode_direct_CXX=no
14574 hardcode_shlibpath_var_CXX=no
14575 ;;
14576 *)
14577 hardcode_direct_CXX=yes
14578 hardcode_direct_absolute_CXX=yes
14579 hardcode_minus_L_CXX=yes # Not in the search PATH,
14580 # but as the default
14581 # location of the library.
14582 ;;
14583 esac
14584
14585 case $cc_basename in
14586 CC*)
14587 # FIXME: insert proper C++ library support
14588 ld_shlibs_CXX=no
14589 ;;
14590 aCC*)
14591 case $host_cpu in
14592 hppa*64*)
14593 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14594 ;;
14595 ia64*)
14596 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14597 ;;
14598 *)
14599 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14600 ;;
14601 esac
14602 # Commands to make compiler produce verbose output that lists
14603 # what "hidden" libraries, object files and flags are used when
14604 # linking a shared library.
14605 #
14606 # There doesn't appear to be a way to prevent this compiler from
14607 # explicitly linking system object files so we need to strip them
14608 # from the output so that they don't get included in the library
14609 # dependencies.
14610 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"'
14611 ;;
14612 *)
14613 if test yes = "$GXX"; then
14614 if test no = "$with_gnu_ld"; then
14615 case $host_cpu in
14616 hppa*64*)
14617 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14618 ;;
14619 ia64*)
14620 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14621 ;;
14622 *)
14623 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'
14624 ;;
14625 esac
14626 fi
14627 else
14628 # FIXME: insert proper C++ library support
14629 ld_shlibs_CXX=no
14630 fi
14631 ;;
14632 esac
14633 ;;
14634
14635 interix[3-9]*)
14636 hardcode_direct_CXX=no
14637 hardcode_shlibpath_var_CXX=no
14638 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14639 export_dynamic_flag_spec_CXX='$wl-E'
14640 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14641 # Instead, shared libraries are loaded at an image base (0x10000000 by
14642 # default) and relocated if they conflict, which is a slow very memory
14643 # consuming and fragmenting process. To avoid this, we pick a random,
14644 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14645 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14646 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'
14647 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'
14648 ;;
14649 irix5* | irix6*)
14650 case $cc_basename in
14651 CC*)
14652 # SGI C++
14653 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'
14654
14655 # Archives containing C++ object files must be created using
14656 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14657 # necessary to make sure instantiated templates are included
14658 # in the archive.
14659 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14660 ;;
14661 *)
14662 if test yes = "$GXX"; then
14663 if test no = "$with_gnu_ld"; then
14664 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'
14665 else
14666 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'
14667 fi
14668 fi
14669 link_all_deplibs_CXX=yes
14670 ;;
14671 esac
14672 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14673 hardcode_libdir_separator_CXX=:
14674 inherit_rpath_CXX=yes
14675 ;;
14676
14677 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14678 case $cc_basename in
14679 KCC*)
14680 # Kuck and Associates, Inc. (KAI) C++ Compiler
14681
14682 # KCC will only create a shared library if the output file
14683 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14684 # to its proper name (with version) after linking.
14685 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'
14686 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'
14687 # Commands to make compiler produce verbose output that lists
14688 # what "hidden" libraries, object files and flags are used when
14689 # linking a shared library.
14690 #
14691 # There doesn't appear to be a way to prevent this compiler from
14692 # explicitly linking system object files so we need to strip them
14693 # from the output so that they don't get included in the library
14694 # dependencies.
14695 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"'
14696
14697 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14698 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14699
14700 # Archives containing C++ object files must be created using
14701 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14702 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14703 ;;
14704 icpc* | ecpc* )
14705 # Intel C++
14706 with_gnu_ld=yes
14707 # version 8.0 and above of icpc choke on multiply defined symbols
14708 # if we add $predep_objects and $postdep_objects, however 7.1 and
14709 # earlier do not add the objects themselves.
14710 case `$CC -V 2>&1` in
14711 *"Version 7."*)
14712 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14713 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'
14714 ;;
14715 *) # Version 8.0 or newer
14716 tmp_idyn=
14717 case $host_cpu in
14718 ia64*) tmp_idyn=' -i_dynamic';;
14719 esac
14720 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14721 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'
14722 ;;
14723 esac
14724 archive_cmds_need_lc_CXX=no
14725 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14726 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14727 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14728 ;;
14729 pgCC* | pgcpp*)
14730 # Portland Group C++ compiler
14731 case `$CC -V` in
14732 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14733 prelink_cmds_CXX='tpldir=Template.dir~
14734 rm -rf $tpldir~
14735 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14736 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14737 old_archive_cmds_CXX='tpldir=Template.dir~
14738 rm -rf $tpldir~
14739 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14740 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14741 $RANLIB $oldlib'
14742 archive_cmds_CXX='tpldir=Template.dir~
14743 rm -rf $tpldir~
14744 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14745 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14746 archive_expsym_cmds_CXX='tpldir=Template.dir~
14747 rm -rf $tpldir~
14748 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14749 $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'
14750 ;;
14751 *) # Version 6 and above use weak symbols
14752 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14753 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'
14754 ;;
14755 esac
14756
14757 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
14758 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14759 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'
14760 ;;
14761 cxx*)
14762 # Compaq C++
14763 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14764 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'
14765
14766 runpath_var=LD_RUN_PATH
14767 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14768 hardcode_libdir_separator_CXX=:
14769
14770 # Commands to make compiler produce verbose output that lists
14771 # what "hidden" libraries, object files and flags are used when
14772 # linking a shared library.
14773 #
14774 # There doesn't appear to be a way to prevent this compiler from
14775 # explicitly linking system object files so we need to strip them
14776 # from the output so that they don't get included in the library
14777 # dependencies.
14778 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'
14779 ;;
14780 xl* | mpixl* | bgxl*)
14781 # IBM XL 8.0 on PPC, with GNU ld
14782 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14783 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14784 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14785 if test yes = "$supports_anon_versioning"; then
14786 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14787 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14788 echo "local: *; };" >> $output_objdir/$libname.ver~
14789 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
14790 fi
14791 ;;
14792 *)
14793 case `$CC -V 2>&1 | $SED 5q` in
14794 *Sun\ C*)
14795 # Sun C++ 5.9
14796 no_undefined_flag_CXX=' -zdefs'
14797 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14798 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'
14799 hardcode_libdir_flag_spec_CXX='-R$libdir'
14800 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'
14801 compiler_needs_object_CXX=yes
14802
14803 # Not sure whether something based on
14804 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14805 # would be better.
14806 output_verbose_link_cmd='func_echo_all'
14807
14808 # Archives containing C++ object files must be created using
14809 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14810 # necessary to make sure instantiated templates are included
14811 # in the archive.
14812 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14813 ;;
14814 esac
14815 ;;
14816 esac
14817 ;;
14818
14819 lynxos*)
14820 # FIXME: insert proper C++ library support
14821 ld_shlibs_CXX=no
14822 ;;
14823
14824 m88k*)
14825 # FIXME: insert proper C++ library support
14826 ld_shlibs_CXX=no
14827 ;;
14828
14829 mvs*)
14830 case $cc_basename in
14831 cxx*)
14832 # FIXME: insert proper C++ library support
14833 ld_shlibs_CXX=no
14834 ;;
14835 *)
14836 # FIXME: insert proper C++ library support
14837 ld_shlibs_CXX=no
14838 ;;
14839 esac
14840 ;;
14841
14842 netbsd*)
14843 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14844 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14845 wlarc=
14846 hardcode_libdir_flag_spec_CXX='-R$libdir'
14847 hardcode_direct_CXX=yes
14848 hardcode_shlibpath_var_CXX=no
14849 fi
14850 # Workaround some broken pre-1.5 toolchains
14851 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14852 ;;
14853
14854 *nto* | *qnx*)
14855 ld_shlibs_CXX=yes
14856 ;;
14857
14858 openbsd* | bitrig*)
14859 if test -f /usr/libexec/ld.so; then
14860 hardcode_direct_CXX=yes
14861 hardcode_shlibpath_var_CXX=no
14862 hardcode_direct_absolute_CXX=yes
14863 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14864 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14865 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
14866 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
14867 export_dynamic_flag_spec_CXX='$wl-E'
14868 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14869 fi
14870 output_verbose_link_cmd=func_echo_all
14871 else
14872 ld_shlibs_CXX=no
14873 fi
14874 ;;
14875
14876 osf3* | osf4* | osf5*)
14877 case $cc_basename in
14878 KCC*)
14879 # Kuck and Associates, Inc. (KAI) C++ Compiler
14880
14881 # KCC will only create a shared library if the output file
14882 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14883 # to its proper name (with version) after linking.
14884 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'
14885
14886 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14887 hardcode_libdir_separator_CXX=:
14888
14889 # Archives containing C++ object files must be created using
14890 # the KAI C++ compiler.
14891 case $host in
14892 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14893 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14894 esac
14895 ;;
14896 RCC*)
14897 # Rational C++ 2.4.1
14898 # FIXME: insert proper C++ library support
14899 ld_shlibs_CXX=no
14900 ;;
14901 cxx*)
14902 case $host in
14903 osf3*)
14904 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14905 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'
14906 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14907 ;;
14908 *)
14909 allow_undefined_flag_CXX=' -expect_unresolved \*'
14910 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'
14911 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14912 echo "-hidden">> $lib.exp~
14913 $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~
14914 $RM $lib.exp'
14915 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14916 ;;
14917 esac
14918
14919 hardcode_libdir_separator_CXX=:
14920
14921 # Commands to make compiler produce verbose output that lists
14922 # what "hidden" libraries, object files and flags are used when
14923 # linking a shared library.
14924 #
14925 # There doesn't appear to be a way to prevent this compiler from
14926 # explicitly linking system object files so we need to strip them
14927 # from the output so that they don't get included in the library
14928 # dependencies.
14929 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"'
14930 ;;
14931 *)
14932 if test yes,no = "$GXX,$with_gnu_ld"; then
14933 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14934 case $host in
14935 osf3*)
14936 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'
14937 ;;
14938 *)
14939 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'
14940 ;;
14941 esac
14942
14943 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14944 hardcode_libdir_separator_CXX=:
14945
14946 # Commands to make compiler produce verbose output that lists
14947 # what "hidden" libraries, object files and flags are used when
14948 # linking a shared library.
14949 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
14950
14951 else
14952 # FIXME: insert proper C++ library support
14953 ld_shlibs_CXX=no
14954 fi
14955 ;;
14956 esac
14957 ;;
14958
14959 psos*)
14960 # FIXME: insert proper C++ library support
14961 ld_shlibs_CXX=no
14962 ;;
14963
14964 sunos4*)
14965 case $cc_basename in
14966 CC*)
14967 # Sun C++ 4.x
14968 # FIXME: insert proper C++ library support
14969 ld_shlibs_CXX=no
14970 ;;
14971 lcc*)
14972 # Lucid
14973 # FIXME: insert proper C++ library support
14974 ld_shlibs_CXX=no
14975 ;;
14976 *)
14977 # FIXME: insert proper C++ library support
14978 ld_shlibs_CXX=no
14979 ;;
14980 esac
14981 ;;
14982
14983 solaris*)
14984 case $cc_basename in
14985 CC* | sunCC*)
14986 # Sun C++ 4.2, 5.x and Centerline C++
14987 archive_cmds_need_lc_CXX=yes
14988 no_undefined_flag_CXX=' -zdefs'
14989 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14990 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14991 $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'
14992
14993 hardcode_libdir_flag_spec_CXX='-R$libdir'
14994 hardcode_shlibpath_var_CXX=no
14995 case $host_os in
14996 solaris2.[0-5] | solaris2.[0-5].*) ;;
14997 *)
14998 # The compiler driver will combine and reorder linker options,
14999 # but understands '-z linker_flag'.
15000 # Supported since Solaris 2.6 (maybe 2.5.1?)
15001 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15002 ;;
15003 esac
15004 link_all_deplibs_CXX=yes
15005
15006 output_verbose_link_cmd='func_echo_all'
15007
15008 # Archives containing C++ object files must be created using
15009 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15010 # necessary to make sure instantiated templates are included
15011 # in the archive.
15012 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15013 ;;
15014 gcx*)
15015 # Green Hills C++ Compiler
15016 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15017
15018 # The C++ compiler must be used to create the archive.
15019 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15020 ;;
15021 *)
15022 # GNU C++ compiler with Solaris linker
15023 if test yes,no = "$GXX,$with_gnu_ld"; then
15024 no_undefined_flag_CXX=' $wl-z ${wl}defs'
15025 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15026 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15027 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15028 $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'
15029
15030 # Commands to make compiler produce verbose output that lists
15031 # what "hidden" libraries, object files and flags are used when
15032 # linking a shared library.
15033 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
15034 else
15035 # g++ 2.7 appears to require '-G' NOT '-shared' on this
15036 # platform.
15037 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15038 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15039 $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'
15040
15041 # Commands to make compiler produce verbose output that lists
15042 # what "hidden" libraries, object files and flags are used when
15043 # linking a shared library.
15044 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
15045 fi
15046
15047 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
15048 case $host_os in
15049 solaris2.[0-5] | solaris2.[0-5].*) ;;
15050 *)
15051 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
15052 ;;
15053 esac
15054 fi
15055 ;;
15056 esac
15057 ;;
15058
15059 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15060 no_undefined_flag_CXX='$wl-z,text'
15061 archive_cmds_need_lc_CXX=no
15062 hardcode_shlibpath_var_CXX=no
15063 runpath_var='LD_RUN_PATH'
15064
15065 case $cc_basename in
15066 CC*)
15067 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15068 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15069 ;;
15070 *)
15071 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15072 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15073 ;;
15074 esac
15075 ;;
15076
15077 sysv5* | sco3.2v5* | sco5v6*)
15078 # Note: We CANNOT use -z defs as we might desire, because we do not
15079 # link with -lc, and that would cause any symbols used from libc to
15080 # always be unresolved, which means just about no library would
15081 # ever link correctly. If we're not using GNU ld we use -z text
15082 # though, which does catch some bad symbols but isn't as heavy-handed
15083 # as -z defs.
15084 no_undefined_flag_CXX='$wl-z,text'
15085 allow_undefined_flag_CXX='$wl-z,nodefs'
15086 archive_cmds_need_lc_CXX=no
15087 hardcode_shlibpath_var_CXX=no
15088 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
15089 hardcode_libdir_separator_CXX=':'
15090 link_all_deplibs_CXX=yes
15091 export_dynamic_flag_spec_CXX='$wl-Bexport'
15092 runpath_var='LD_RUN_PATH'
15093
15094 case $cc_basename in
15095 CC*)
15096 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15097 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15098 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15099 '"$old_archive_cmds_CXX"
15100 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15101 '"$reload_cmds_CXX"
15102 ;;
15103 *)
15104 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15105 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15106 ;;
15107 esac
15108 ;;
15109
15110 tandem*)
15111 case $cc_basename in
15112 NCC*)
15113 # NonStop-UX NCC 3.20
15114 # FIXME: insert proper C++ library support
15115 ld_shlibs_CXX=no
15116 ;;
15117 *)
15118 # FIXME: insert proper C++ library support
15119 ld_shlibs_CXX=no
15120 ;;
15121 esac
15122 ;;
15123
15124 vxworks*)
15125 # FIXME: insert proper C++ library support
15126 ld_shlibs_CXX=no
15127 ;;
15128
15129 *)
15130 # FIXME: insert proper C++ library support
15131 ld_shlibs_CXX=no
15132 ;;
15133 esac
15134
15135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15136 printf "%s\n" "$ld_shlibs_CXX" >&6; }
15137 test no = "$ld_shlibs_CXX" && can_build_shared=no
15138
15139 GCC_CXX=$GXX
15140 LD_CXX=$LD
15141
15142 ## CAVEAT EMPTOR:
15143 ## There is no encapsulation within the following macros, do not change
15144 ## the running order or otherwise move them around unless you know exactly
15145 ## what you are doing...
15146 # Dependencies to place before and after the object being linked:
15147 predep_objects_CXX=
15148 postdep_objects_CXX=
15149 predeps_CXX=
15150 postdeps_CXX=
15151 compiler_lib_search_path_CXX=
15152
15153 cat > conftest.$ac_ext <<_LT_EOF
15154 class Foo
15155 {
15156 public:
15157 Foo (void) { a = 0; }
15158 private:
15159 int a;
15160 };
15161 _LT_EOF
15162
15163
15164 _lt_libdeps_save_CFLAGS=$CFLAGS
15165 case "$CC $CFLAGS " in #(
15166 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15167 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15168 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
15169 esac
15170
15171 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15172 (eval $ac_compile) 2>&5
15173 ac_status=$?
15174 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15175 test $ac_status = 0; }; then
15176 # Parse the compiler output and extract the necessary
15177 # objects, libraries and library flags.
15178
15179 # Sentinel used to keep track of whether or not we are before
15180 # the conftest object file.
15181 pre_test_object_deps_done=no
15182
15183 for p in `eval "$output_verbose_link_cmd"`; do
15184 case $prev$p in
15185
15186 -L* | -R* | -l*)
15187 # Some compilers place space between "-{L,R}" and the path.
15188 # Remove the space.
15189 if test x-L = "$p" ||
15190 test x-R = "$p"; then
15191 prev=$p
15192 continue
15193 fi
15194
15195 # Expand the sysroot to ease extracting the directories later.
15196 if test -z "$prev"; then
15197 case $p in
15198 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15199 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15200 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15201 esac
15202 fi
15203 case $p in
15204 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15205 esac
15206 if test no = "$pre_test_object_deps_done"; then
15207 case $prev in
15208 -L | -R)
15209 # Internal compiler library paths should come after those
15210 # provided the user. The postdeps already come after the
15211 # user supplied libs so there is no need to process them.
15212 if test -z "$compiler_lib_search_path_CXX"; then
15213 compiler_lib_search_path_CXX=$prev$p
15214 else
15215 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
15216 fi
15217 ;;
15218 # The "-l" case would never come before the object being
15219 # linked, so don't bother handling this case.
15220 esac
15221 else
15222 if test -z "$postdeps_CXX"; then
15223 postdeps_CXX=$prev$p
15224 else
15225 postdeps_CXX="${postdeps_CXX} $prev$p"
15226 fi
15227 fi
15228 prev=
15229 ;;
15230
15231 *.lto.$objext) ;; # Ignore GCC LTO objects
15232 *.$objext)
15233 # This assumes that the test object file only shows up
15234 # once in the compiler output.
15235 if test "$p" = "conftest.$objext"; then
15236 pre_test_object_deps_done=yes
15237 continue
15238 fi
15239
15240 if test no = "$pre_test_object_deps_done"; then
15241 if test -z "$predep_objects_CXX"; then
15242 predep_objects_CXX=$p
15243 else
15244 predep_objects_CXX="$predep_objects_CXX $p"
15245 fi
15246 else
15247 if test -z "$postdep_objects_CXX"; then
15248 postdep_objects_CXX=$p
15249 else
15250 postdep_objects_CXX="$postdep_objects_CXX $p"
15251 fi
15252 fi
15253 ;;
15254
15255 *) ;; # Ignore the rest.
15256
15257 esac
15258 done
15259
15260 # Clean up.
15261 rm -f a.out a.exe
15262 else
15263 echo "libtool.m4: error: problem compiling CXX test program"
15264 fi
15265
15266 $RM -f confest.$objext
15267 CFLAGS=$_lt_libdeps_save_CFLAGS
15268
15269 # PORTME: override above test on systems where it is broken
15270 case $host_os in
15271 interix[3-9]*)
15272 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15273 # hack all around it, let's just trust "g++" to DTRT.
15274 predep_objects_CXX=
15275 postdep_objects_CXX=
15276 postdeps_CXX=
15277 ;;
15278 esac
15279
15280
15281 case " $postdeps_CXX " in
15282 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15283 esac
15284 compiler_lib_search_dirs_CXX=
15285 if test -n "${compiler_lib_search_path_CXX}"; then
15286 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
15287 fi
15288
15289
15290
15291
15292
15293
15294
15295
15296
15297
15298
15299
15300
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319 lt_prog_compiler_wl_CXX=
15320 lt_prog_compiler_pic_CXX=
15321 lt_prog_compiler_static_CXX=
15322
15323
15324 # C++ specific cases for pic, static, wl, etc.
15325 if test yes = "$GXX"; then
15326 lt_prog_compiler_wl_CXX='-Wl,'
15327 lt_prog_compiler_static_CXX='-static'
15328
15329 case $host_os in
15330 aix*)
15331 # All AIX code is PIC.
15332 if test ia64 = "$host_cpu"; then
15333 # AIX 5 now supports IA64 processor
15334 lt_prog_compiler_static_CXX='-Bstatic'
15335 fi
15336 lt_prog_compiler_pic_CXX='-fPIC'
15337 ;;
15338
15339 amigaos*)
15340 case $host_cpu in
15341 powerpc)
15342 # see comment about AmigaOS4 .so support
15343 lt_prog_compiler_pic_CXX='-fPIC'
15344 ;;
15345 m68k)
15346 # FIXME: we need at least 68020 code to build shared libraries, but
15347 # adding the '-m68020' flag to GCC prevents building anything better,
15348 # like '-m68040'.
15349 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15350 ;;
15351 esac
15352 ;;
15353
15354 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15355 # PIC is the default for these OSes.
15356 ;;
15357 mingw* | cygwin* | os2* | pw32* | cegcc*)
15358 # This hack is so that the source file can tell whether it is being
15359 # built for inclusion in a dll (and should export symbols for example).
15360 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15361 # (--disable-auto-import) libraries
15362 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15363 case $host_os in
15364 os2*)
15365 lt_prog_compiler_static_CXX='$wl-static'
15366 ;;
15367 esac
15368 ;;
15369 darwin* | rhapsody*)
15370 # PIC is the default on this platform
15371 # Common symbols not allowed in MH_DYLIB files
15372 lt_prog_compiler_pic_CXX='-fno-common'
15373 ;;
15374 *djgpp*)
15375 # DJGPP does not support shared libraries at all
15376 lt_prog_compiler_pic_CXX=
15377 ;;
15378 haiku*)
15379 # PIC is the default for Haiku.
15380 # The "-static" flag exists, but is broken.
15381 lt_prog_compiler_static_CXX=
15382 ;;
15383 interix[3-9]*)
15384 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15385 # Instead, we relocate shared libraries at runtime.
15386 ;;
15387 sysv4*MP*)
15388 if test -d /usr/nec; then
15389 lt_prog_compiler_pic_CXX=-Kconform_pic
15390 fi
15391 ;;
15392 hpux*)
15393 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15394 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15395 # sets the default TLS model and affects inlining.
15396 case $host_cpu in
15397 hppa*64*)
15398 ;;
15399 *)
15400 lt_prog_compiler_pic_CXX='-fPIC'
15401 ;;
15402 esac
15403 ;;
15404 *qnx* | *nto*)
15405 # QNX uses GNU C++, but need to define -shared option too, otherwise
15406 # it will coredump.
15407 lt_prog_compiler_pic_CXX='-fPIC -shared'
15408 ;;
15409 *)
15410 lt_prog_compiler_pic_CXX='-fPIC'
15411 ;;
15412 esac
15413 else
15414 case $host_os in
15415 aix[4-9]*)
15416 # All AIX code is PIC.
15417 if test ia64 = "$host_cpu"; then
15418 # AIX 5 now supports IA64 processor
15419 lt_prog_compiler_static_CXX='-Bstatic'
15420 else
15421 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15422 fi
15423 ;;
15424 chorus*)
15425 case $cc_basename in
15426 cxch68*)
15427 # Green Hills C++ Compiler
15428 # _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"
15429 ;;
15430 esac
15431 ;;
15432 mingw* | cygwin* | os2* | pw32* | cegcc*)
15433 # This hack is so that the source file can tell whether it is being
15434 # built for inclusion in a dll (and should export symbols for example).
15435 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15436 ;;
15437 dgux*)
15438 case $cc_basename in
15439 ec++*)
15440 lt_prog_compiler_pic_CXX='-KPIC'
15441 ;;
15442 ghcx*)
15443 # Green Hills C++ Compiler
15444 lt_prog_compiler_pic_CXX='-pic'
15445 ;;
15446 *)
15447 ;;
15448 esac
15449 ;;
15450 freebsd* | dragonfly* | midnightbsd*)
15451 # FreeBSD uses GNU C++
15452 ;;
15453 hpux9* | hpux10* | hpux11*)
15454 case $cc_basename in
15455 CC*)
15456 lt_prog_compiler_wl_CXX='-Wl,'
15457 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15458 if test ia64 != "$host_cpu"; then
15459 lt_prog_compiler_pic_CXX='+Z'
15460 fi
15461 ;;
15462 aCC*)
15463 lt_prog_compiler_wl_CXX='-Wl,'
15464 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15465 case $host_cpu in
15466 hppa*64*|ia64*)
15467 # +Z the default
15468 ;;
15469 *)
15470 lt_prog_compiler_pic_CXX='+Z'
15471 ;;
15472 esac
15473 ;;
15474 *)
15475 ;;
15476 esac
15477 ;;
15478 interix*)
15479 # This is c89, which is MS Visual C++ (no shared libs)
15480 # Anyone wants to do a port?
15481 ;;
15482 irix5* | irix6* | nonstopux*)
15483 case $cc_basename in
15484 CC*)
15485 lt_prog_compiler_wl_CXX='-Wl,'
15486 lt_prog_compiler_static_CXX='-non_shared'
15487 # CC pic flag -KPIC is the default.
15488 ;;
15489 *)
15490 ;;
15491 esac
15492 ;;
15493 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15494 case $cc_basename in
15495 KCC*)
15496 # KAI C++ Compiler
15497 lt_prog_compiler_wl_CXX='--backend -Wl,'
15498 lt_prog_compiler_pic_CXX='-fPIC'
15499 ;;
15500 ecpc* )
15501 # old Intel C++ for x86_64, which still supported -KPIC.
15502 lt_prog_compiler_wl_CXX='-Wl,'
15503 lt_prog_compiler_pic_CXX='-KPIC'
15504 lt_prog_compiler_static_CXX='-static'
15505 ;;
15506 icpc* )
15507 # Intel C++, used to be incompatible with GCC.
15508 # ICC 10 doesn't accept -KPIC any more.
15509 lt_prog_compiler_wl_CXX='-Wl,'
15510 lt_prog_compiler_pic_CXX='-fPIC'
15511 lt_prog_compiler_static_CXX='-static'
15512 ;;
15513 pgCC* | pgcpp*)
15514 # Portland Group C++ compiler
15515 lt_prog_compiler_wl_CXX='-Wl,'
15516 lt_prog_compiler_pic_CXX='-fpic'
15517 lt_prog_compiler_static_CXX='-Bstatic'
15518 ;;
15519 cxx*)
15520 # Compaq C++
15521 # Make sure the PIC flag is empty. It appears that all Alpha
15522 # Linux and Compaq Tru64 Unix objects are PIC.
15523 lt_prog_compiler_pic_CXX=
15524 lt_prog_compiler_static_CXX='-non_shared'
15525 ;;
15526 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15527 # IBM XL 8.0, 9.0 on PPC and BlueGene
15528 lt_prog_compiler_wl_CXX='-Wl,'
15529 lt_prog_compiler_pic_CXX='-qpic'
15530 lt_prog_compiler_static_CXX='-qstaticlink'
15531 ;;
15532 *)
15533 case `$CC -V 2>&1 | $SED 5q` in
15534 *Sun\ C*)
15535 # Sun C++ 5.9
15536 lt_prog_compiler_pic_CXX='-KPIC'
15537 lt_prog_compiler_static_CXX='-Bstatic'
15538 lt_prog_compiler_wl_CXX='-Qoption ld '
15539 ;;
15540 esac
15541 ;;
15542 esac
15543 ;;
15544 lynxos*)
15545 ;;
15546 m88k*)
15547 ;;
15548 mvs*)
15549 case $cc_basename in
15550 cxx*)
15551 lt_prog_compiler_pic_CXX='-W c,exportall'
15552 ;;
15553 *)
15554 ;;
15555 esac
15556 ;;
15557 netbsd* | netbsdelf*-gnu)
15558 ;;
15559 *qnx* | *nto*)
15560 # QNX uses GNU C++, but need to define -shared option too, otherwise
15561 # it will coredump.
15562 lt_prog_compiler_pic_CXX='-fPIC -shared'
15563 ;;
15564 osf3* | osf4* | osf5*)
15565 case $cc_basename in
15566 KCC*)
15567 lt_prog_compiler_wl_CXX='--backend -Wl,'
15568 ;;
15569 RCC*)
15570 # Rational C++ 2.4.1
15571 lt_prog_compiler_pic_CXX='-pic'
15572 ;;
15573 cxx*)
15574 # Digital/Compaq C++
15575 lt_prog_compiler_wl_CXX='-Wl,'
15576 # Make sure the PIC flag is empty. It appears that all Alpha
15577 # Linux and Compaq Tru64 Unix objects are PIC.
15578 lt_prog_compiler_pic_CXX=
15579 lt_prog_compiler_static_CXX='-non_shared'
15580 ;;
15581 *)
15582 ;;
15583 esac
15584 ;;
15585 psos*)
15586 ;;
15587 solaris*)
15588 case $cc_basename in
15589 CC* | sunCC*)
15590 # Sun C++ 4.2, 5.x and Centerline C++
15591 lt_prog_compiler_pic_CXX='-KPIC'
15592 lt_prog_compiler_static_CXX='-Bstatic'
15593 lt_prog_compiler_wl_CXX='-Qoption ld '
15594 ;;
15595 gcx*)
15596 # Green Hills C++ Compiler
15597 lt_prog_compiler_pic_CXX='-PIC'
15598 ;;
15599 *)
15600 ;;
15601 esac
15602 ;;
15603 sunos4*)
15604 case $cc_basename in
15605 CC*)
15606 # Sun C++ 4.x
15607 lt_prog_compiler_pic_CXX='-pic'
15608 lt_prog_compiler_static_CXX='-Bstatic'
15609 ;;
15610 lcc*)
15611 # Lucid
15612 lt_prog_compiler_pic_CXX='-pic'
15613 ;;
15614 *)
15615 ;;
15616 esac
15617 ;;
15618 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15619 case $cc_basename in
15620 CC*)
15621 lt_prog_compiler_wl_CXX='-Wl,'
15622 lt_prog_compiler_pic_CXX='-KPIC'
15623 lt_prog_compiler_static_CXX='-Bstatic'
15624 ;;
15625 esac
15626 ;;
15627 tandem*)
15628 case $cc_basename in
15629 NCC*)
15630 # NonStop-UX NCC 3.20
15631 lt_prog_compiler_pic_CXX='-KPIC'
15632 ;;
15633 *)
15634 ;;
15635 esac
15636 ;;
15637 vxworks*)
15638 ;;
15639 *)
15640 lt_prog_compiler_can_build_shared_CXX=no
15641 ;;
15642 esac
15643 fi
15644
15645 case $host_os in
15646 # For platforms that do not support PIC, -DPIC is meaningless:
15647 *djgpp*)
15648 lt_prog_compiler_pic_CXX=
15649 ;;
15650 *)
15651 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15652 ;;
15653 esac
15654
15655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15656 printf %s "checking for $compiler option to produce PIC... " >&6; }
15657 if test ${lt_cv_prog_compiler_pic_CXX+y}
15658 then :
15659 printf %s "(cached) " >&6
15660 else $as_nop
15661 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15662 fi
15663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15664 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
15665 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15666
15667 #
15668 # Check to make sure the PIC flag actually works.
15669 #
15670 if test -n "$lt_prog_compiler_pic_CXX"; then
15671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15672 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15673 if test ${lt_cv_prog_compiler_pic_works_CXX+y}
15674 then :
15675 printf %s "(cached) " >&6
15676 else $as_nop
15677 lt_cv_prog_compiler_pic_works_CXX=no
15678 ac_outfile=conftest.$ac_objext
15679 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15680 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
15681 # Insert the option either (1) after the last *FLAGS variable, or
15682 # (2) before a word containing "conftest.", or (3) at the end.
15683 # Note that $ac_compile itself does not contain backslashes and begins
15684 # with a dollar sign (not a hyphen), so the echo should work correctly.
15685 # The option is referenced via a variable to avoid confusing sed.
15686 lt_compile=`echo "$ac_compile" | $SED \
15687 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15688 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15689 -e 's:$: $lt_compiler_flag:'`
15690 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15691 (eval "$lt_compile" 2>conftest.err)
15692 ac_status=$?
15693 cat conftest.err >&5
15694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15695 if (exit $ac_status) && test -s "$ac_outfile"; then
15696 # The compiler can only warn and ignore the option if not recognized
15697 # So say no if there are warnings other than the usual output.
15698 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15699 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15700 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15701 lt_cv_prog_compiler_pic_works_CXX=yes
15702 fi
15703 fi
15704 $RM conftest*
15705
15706 fi
15707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15708 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15709
15710 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
15711 case $lt_prog_compiler_pic_CXX in
15712 "" | " "*) ;;
15713 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15714 esac
15715 else
15716 lt_prog_compiler_pic_CXX=
15717 lt_prog_compiler_can_build_shared_CXX=no
15718 fi
15719
15720 fi
15721
15722
15723
15724
15725
15726 #
15727 # Check to make sure the static flag actually works.
15728 #
15729 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15731 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15732 if test ${lt_cv_prog_compiler_static_works_CXX+y}
15733 then :
15734 printf %s "(cached) " >&6
15735 else $as_nop
15736 lt_cv_prog_compiler_static_works_CXX=no
15737 save_LDFLAGS=$LDFLAGS
15738 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15739 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15740 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15741 # The linker can only warn and ignore the option if not recognized
15742 # So say no if there are warnings
15743 if test -s conftest.err; then
15744 # Append any errors to the config.log.
15745 cat conftest.err 1>&5
15746 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15747 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15748 if diff conftest.exp conftest.er2 >/dev/null; then
15749 lt_cv_prog_compiler_static_works_CXX=yes
15750 fi
15751 else
15752 lt_cv_prog_compiler_static_works_CXX=yes
15753 fi
15754 fi
15755 $RM -r conftest*
15756 LDFLAGS=$save_LDFLAGS
15757
15758 fi
15759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15760 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15761
15762 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
15763 :
15764 else
15765 lt_prog_compiler_static_CXX=
15766 fi
15767
15768
15769
15770
15771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15772 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15773 if test ${lt_cv_prog_compiler_c_o_CXX+y}
15774 then :
15775 printf %s "(cached) " >&6
15776 else $as_nop
15777 lt_cv_prog_compiler_c_o_CXX=no
15778 $RM -r conftest 2>/dev/null
15779 mkdir conftest
15780 cd conftest
15781 mkdir out
15782 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15783
15784 lt_compiler_flag="-o out/conftest2.$ac_objext"
15785 # Insert the option either (1) after the last *FLAGS variable, or
15786 # (2) before a word containing "conftest.", or (3) at the end.
15787 # Note that $ac_compile itself does not contain backslashes and begins
15788 # with a dollar sign (not a hyphen), so the echo should work correctly.
15789 lt_compile=`echo "$ac_compile" | $SED \
15790 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15791 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15792 -e 's:$: $lt_compiler_flag:'`
15793 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15794 (eval "$lt_compile" 2>out/conftest.err)
15795 ac_status=$?
15796 cat out/conftest.err >&5
15797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15799 then
15800 # The compiler can only warn and ignore the option if not recognized
15801 # So say no if there are warnings
15802 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15803 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15804 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15805 lt_cv_prog_compiler_c_o_CXX=yes
15806 fi
15807 fi
15808 chmod u+w . 2>&5
15809 $RM conftest*
15810 # SGI C++ compiler will create directory out/ii_files/ for
15811 # template instantiation
15812 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15813 $RM out/* && rmdir out
15814 cd ..
15815 $RM -r conftest
15816 $RM conftest*
15817
15818 fi
15819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15820 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15821
15822
15823
15824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15825 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15826 if test ${lt_cv_prog_compiler_c_o_CXX+y}
15827 then :
15828 printf %s "(cached) " >&6
15829 else $as_nop
15830 lt_cv_prog_compiler_c_o_CXX=no
15831 $RM -r conftest 2>/dev/null
15832 mkdir conftest
15833 cd conftest
15834 mkdir out
15835 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15836
15837 lt_compiler_flag="-o out/conftest2.$ac_objext"
15838 # Insert the option either (1) after the last *FLAGS variable, or
15839 # (2) before a word containing "conftest.", or (3) at the end.
15840 # Note that $ac_compile itself does not contain backslashes and begins
15841 # with a dollar sign (not a hyphen), so the echo should work correctly.
15842 lt_compile=`echo "$ac_compile" | $SED \
15843 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15844 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15845 -e 's:$: $lt_compiler_flag:'`
15846 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15847 (eval "$lt_compile" 2>out/conftest.err)
15848 ac_status=$?
15849 cat out/conftest.err >&5
15850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15851 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15852 then
15853 # The compiler can only warn and ignore the option if not recognized
15854 # So say no if there are warnings
15855 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15856 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15857 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15858 lt_cv_prog_compiler_c_o_CXX=yes
15859 fi
15860 fi
15861 chmod u+w . 2>&5
15862 $RM conftest*
15863 # SGI C++ compiler will create directory out/ii_files/ for
15864 # template instantiation
15865 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15866 $RM out/* && rmdir out
15867 cd ..
15868 $RM -r conftest
15869 $RM conftest*
15870
15871 fi
15872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15873 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15874
15875
15876
15877
15878 hard_links=nottested
15879 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
15880 # do not overwrite the value of need_locks provided by the user
15881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15882 printf %s "checking if we can lock with hard links... " >&6; }
15883 hard_links=yes
15884 $RM conftest*
15885 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15886 touch conftest.a
15887 ln conftest.a conftest.b 2>&5 || hard_links=no
15888 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15890 printf "%s\n" "$hard_links" >&6; }
15891 if test no = "$hard_links"; then
15892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15893 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15894 need_locks=warn
15895 fi
15896 else
15897 need_locks=no
15898 fi
15899
15900
15901
15902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15903 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15904
15905 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15906 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15907 case $host_os in
15908 aix[4-9]*)
15909 # If we're using GNU nm, then we don't want the "-C" option.
15910 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15911 # Without the "-l" option, or with the "-B" option, AIX nm treats
15912 # weak defined symbols like other global defined symbols, whereas
15913 # GNU nm marks them as "W".
15914 # While the 'weak' keyword is ignored in the Export File, we need
15915 # it in the Import File for the 'aix-soname' feature, so we have
15916 # to replace the "-B" option with "-P" for AIX nm.
15917 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15918 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'
15919 else
15920 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 == "L") || (\$ 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'
15921 fi
15922 ;;
15923 pw32*)
15924 export_symbols_cmds_CXX=$ltdll_cmds
15925 ;;
15926 cygwin* | mingw* | cegcc*)
15927 case $cc_basename in
15928 cl* | icl*)
15929 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15930 ;;
15931 *)
15932 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'
15933 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15934 ;;
15935 esac
15936 ;;
15937 linux* | k*bsd*-gnu | gnu*)
15938 link_all_deplibs_CXX=no
15939 ;;
15940 *)
15941 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15942 ;;
15943 esac
15944
15945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15946 printf "%s\n" "$ld_shlibs_CXX" >&6; }
15947 test no = "$ld_shlibs_CXX" && can_build_shared=no
15948
15949 with_gnu_ld_CXX=$with_gnu_ld
15950
15951
15952
15953
15954
15955
15956 #
15957 # Do we need to explicitly link libc?
15958 #
15959 case "x$archive_cmds_need_lc_CXX" in
15960 x|xyes)
15961 # Assume -lc should be added
15962 archive_cmds_need_lc_CXX=yes
15963
15964 if test yes,yes = "$GCC,$enable_shared"; then
15965 case $archive_cmds_CXX in
15966 *'~'*)
15967 # FIXME: we may have to deal with multi-command sequences.
15968 ;;
15969 '$CC '*)
15970 # Test whether the compiler implicitly links with -lc since on some
15971 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15972 # to ld, don't add -lc before -lgcc.
15973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15974 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
15975 if test ${lt_cv_archive_cmds_need_lc_CXX+y}
15976 then :
15977 printf %s "(cached) " >&6
15978 else $as_nop
15979 $RM conftest*
15980 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15981
15982 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15983 (eval $ac_compile) 2>&5
15984 ac_status=$?
15985 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15986 test $ac_status = 0; } 2>conftest.err; then
15987 soname=conftest
15988 lib=conftest
15989 libobjs=conftest.$ac_objext
15990 deplibs=
15991 wl=$lt_prog_compiler_wl_CXX
15992 pic_flag=$lt_prog_compiler_pic_CXX
15993 compiler_flags=-v
15994 linker_flags=-v
15995 verstring=
15996 output_objdir=.
15997 libname=conftest
15998 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15999 allow_undefined_flag_CXX=
16000 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16001 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16002 ac_status=$?
16003 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16004 test $ac_status = 0; }
16005 then
16006 lt_cv_archive_cmds_need_lc_CXX=no
16007 else
16008 lt_cv_archive_cmds_need_lc_CXX=yes
16009 fi
16010 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16011 else
16012 cat conftest.err 1>&5
16013 fi
16014 $RM conftest*
16015
16016 fi
16017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
16018 printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
16019 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
16020 ;;
16021 esac
16022 fi
16023 ;;
16024 esac
16025
16026
16027
16028
16029
16030
16031
16032
16033
16034
16035
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16088 printf %s "checking dynamic linker characteristics... " >&6; }
16089
16090 library_names_spec=
16091 libname_spec='lib$name'
16092 soname_spec=
16093 shrext_cmds=.so
16094 postinstall_cmds=
16095 postuninstall_cmds=
16096 finish_cmds=
16097 finish_eval=
16098 shlibpath_var=
16099 shlibpath_overrides_runpath=unknown
16100 version_type=none
16101 dynamic_linker="$host_os ld.so"
16102 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16103 need_lib_prefix=unknown
16104 hardcode_into_libs=no
16105
16106 # when you set need_version to no, make sure it does not cause -set_version
16107 # flags to be left without arguments
16108 need_version=unknown
16109
16110
16111
16112 case $host_os in
16113 aix3*)
16114 version_type=linux # correct to gnu/linux during the next big refactor
16115 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
16116 shlibpath_var=LIBPATH
16117
16118 # AIX 3 has no versioning support, so we append a major version to the name.
16119 soname_spec='$libname$release$shared_ext$major'
16120 ;;
16121
16122 aix[4-9]*)
16123 version_type=linux # correct to gnu/linux during the next big refactor
16124 need_lib_prefix=no
16125 need_version=no
16126 hardcode_into_libs=yes
16127 if test ia64 = "$host_cpu"; then
16128 # AIX 5 supports IA64
16129 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
16130 shlibpath_var=LD_LIBRARY_PATH
16131 else
16132 # With GCC up to 2.95.x, collect2 would create an import file
16133 # for dependence libraries. The import file would start with
16134 # the line '#! .'. This would cause the generated library to
16135 # depend on '.', always an invalid library. This was fixed in
16136 # development snapshots of GCC prior to 3.0.
16137 case $host_os in
16138 aix4 | aix4.[01] | aix4.[01].*)
16139 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16140 echo ' yes '
16141 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16142 :
16143 else
16144 can_build_shared=no
16145 fi
16146 ;;
16147 esac
16148 # Using Import Files as archive members, it is possible to support
16149 # filename-based versioning of shared library archives on AIX. While
16150 # this would work for both with and without runtime linking, it will
16151 # prevent static linking of such archives. So we do filename-based
16152 # shared library versioning with .so extension only, which is used
16153 # when both runtime linking and shared linking is enabled.
16154 # Unfortunately, runtime linking may impact performance, so we do
16155 # not want this to be the default eventually. Also, we use the
16156 # versioned .so libs for executables only if there is the -brtl
16157 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16158 # To allow for filename-based versioning support, we need to create
16159 # libNAME.so.V as an archive file, containing:
16160 # *) an Import File, referring to the versioned filename of the
16161 # archive as well as the shared archive member, telling the
16162 # bitwidth (32 or 64) of that shared object, and providing the
16163 # list of exported symbols of that shared object, eventually
16164 # decorated with the 'weak' keyword
16165 # *) the shared object with the F_LOADONLY flag set, to really avoid
16166 # it being seen by the linker.
16167 # At run time we better use the real file rather than another symlink,
16168 # but for link time we create the symlink libNAME.so -> libNAME.so.V
16169
16170 case $with_aix_soname,$aix_use_runtimelinking in
16171 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
16172 # soname into executable. Probably we can add versioning support to
16173 # collect2, so additional links can be useful in future.
16174 aix,yes) # traditional libtool
16175 dynamic_linker='AIX unversionable lib.so'
16176 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16177 # instead of lib<name>.a to let people know that these are not
16178 # typical AIX shared libraries.
16179 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16180 ;;
16181 aix,no) # traditional AIX only
16182 dynamic_linker='AIX lib.a(lib.so.V)'
16183 # We preserve .a as extension for shared libraries through AIX4.2
16184 # and later when we are not doing run time linking.
16185 library_names_spec='$libname$release.a $libname.a'
16186 soname_spec='$libname$release$shared_ext$major'
16187 ;;
16188 svr4,*) # full svr4 only
16189 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
16190 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16191 # We do not specify a path in Import Files, so LIBPATH fires.
16192 shlibpath_overrides_runpath=yes
16193 ;;
16194 *,yes) # both, prefer svr4
16195 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
16196 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16197 # unpreferred sharedlib libNAME.a needs extra handling
16198 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"'
16199 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"'
16200 # We do not specify a path in Import Files, so LIBPATH fires.
16201 shlibpath_overrides_runpath=yes
16202 ;;
16203 *,no) # both, prefer aix
16204 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
16205 library_names_spec='$libname$release.a $libname.a'
16206 soname_spec='$libname$release$shared_ext$major'
16207 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
16208 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)'
16209 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"'
16210 ;;
16211 esac
16212 shlibpath_var=LIBPATH
16213 fi
16214 ;;
16215
16216 amigaos*)
16217 case $host_cpu in
16218 powerpc)
16219 # Since July 2007 AmigaOS4 officially supports .so libraries.
16220 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16221 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16222 ;;
16223 m68k)
16224 library_names_spec='$libname.ixlibrary $libname.a'
16225 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16226 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'
16227 ;;
16228 esac
16229 ;;
16230
16231 beos*)
16232 library_names_spec='$libname$shared_ext'
16233 dynamic_linker="$host_os ld.so"
16234 shlibpath_var=LIBRARY_PATH
16235 ;;
16236
16237 bsdi[45]*)
16238 version_type=linux # correct to gnu/linux during the next big refactor
16239 need_version=no
16240 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16241 soname_spec='$libname$release$shared_ext$major'
16242 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16243 shlibpath_var=LD_LIBRARY_PATH
16244 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16245 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16246 # the default ld.so.conf also contains /usr/contrib/lib and
16247 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16248 # libtool to hard-code these into programs
16249 ;;
16250
16251 cygwin* | mingw* | pw32* | cegcc*)
16252 version_type=windows
16253 shrext_cmds=.dll
16254 need_version=no
16255 need_lib_prefix=no
16256
16257 case $GCC,$cc_basename in
16258 yes,*)
16259 # gcc
16260 library_names_spec='$libname.dll.a'
16261 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16262 postinstall_cmds='base_file=`basename \$file`~
16263 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16264 dldir=$destdir/`dirname \$dlpath`~
16265 test -d \$dldir || mkdir -p \$dldir~
16266 $install_prog $dir/$dlname \$dldir/$dlname~
16267 chmod a+x \$dldir/$dlname~
16268 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16269 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16270 fi'
16271 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16272 dlpath=$dir/\$dldll~
16273 $RM \$dlpath'
16274 shlibpath_overrides_runpath=yes
16275
16276 case $host_os in
16277 cygwin*)
16278 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16279 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16280
16281 ;;
16282 mingw* | cegcc*)
16283 # MinGW DLLs use traditional 'lib' prefix
16284 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16285 ;;
16286 pw32*)
16287 # pw32 DLLs use 'pw' prefix rather than 'lib'
16288 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16289 ;;
16290 esac
16291 dynamic_linker='Win32 ld.exe'
16292 ;;
16293
16294 *,cl* | *,icl*)
16295 # Native MSVC or ICC
16296 libname_spec='$name'
16297 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16298 library_names_spec='$libname.dll.lib'
16299
16300 case $build_os in
16301 mingw*)
16302 sys_lib_search_path_spec=
16303 lt_save_ifs=$IFS
16304 IFS=';'
16305 for lt_path in $LIB
16306 do
16307 IFS=$lt_save_ifs
16308 # Let DOS variable expansion print the short 8.3 style file name.
16309 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16310 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16311 done
16312 IFS=$lt_save_ifs
16313 # Convert to MSYS style.
16314 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16315 ;;
16316 cygwin*)
16317 # Convert to unix form, then to dos form, then back to unix form
16318 # but this time dos style (no spaces!) so that the unix form looks
16319 # like /cygdrive/c/PROGRA~1:/cygdr...
16320 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16321 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16322 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16323 ;;
16324 *)
16325 sys_lib_search_path_spec=$LIB
16326 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16327 # It is most probably a Windows format PATH.
16328 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16329 else
16330 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16331 fi
16332 # FIXME: find the short name or the path components, as spaces are
16333 # common. (e.g. "Program Files" -> "PROGRA~1")
16334 ;;
16335 esac
16336
16337 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16338 postinstall_cmds='base_file=`basename \$file`~
16339 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16340 dldir=$destdir/`dirname \$dlpath`~
16341 test -d \$dldir || mkdir -p \$dldir~
16342 $install_prog $dir/$dlname \$dldir/$dlname'
16343 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16344 dlpath=$dir/\$dldll~
16345 $RM \$dlpath'
16346 shlibpath_overrides_runpath=yes
16347 dynamic_linker='Win32 link.exe'
16348 ;;
16349
16350 *)
16351 # Assume MSVC and ICC wrapper
16352 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
16353 dynamic_linker='Win32 ld.exe'
16354 ;;
16355 esac
16356 # FIXME: first we should search . and the directory the executable is in
16357 shlibpath_var=PATH
16358 ;;
16359
16360 darwin* | rhapsody*)
16361 dynamic_linker="$host_os dyld"
16362 version_type=darwin
16363 need_lib_prefix=no
16364 need_version=no
16365 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
16366 soname_spec='$libname$release$major$shared_ext'
16367 shlibpath_overrides_runpath=yes
16368 shlibpath_var=DYLD_LIBRARY_PATH
16369 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16370
16371 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16372 ;;
16373
16374 dgux*)
16375 version_type=linux # correct to gnu/linux during the next big refactor
16376 need_lib_prefix=no
16377 need_version=no
16378 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16379 soname_spec='$libname$release$shared_ext$major'
16380 shlibpath_var=LD_LIBRARY_PATH
16381 ;;
16382
16383 freebsd* | dragonfly* | midnightbsd*)
16384 # DragonFly does not have aout. When/if they implement a new
16385 # versioning mechanism, adjust this.
16386 if test -x /usr/bin/objformat; then
16387 objformat=`/usr/bin/objformat`
16388 else
16389 case $host_os in
16390 freebsd[23].*) objformat=aout ;;
16391 *) objformat=elf ;;
16392 esac
16393 fi
16394 version_type=freebsd-$objformat
16395 case $version_type in
16396 freebsd-elf*)
16397 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16398 soname_spec='$libname$release$shared_ext$major'
16399 need_version=no
16400 need_lib_prefix=no
16401 ;;
16402 freebsd-*)
16403 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16404 need_version=yes
16405 ;;
16406 esac
16407 shlibpath_var=LD_LIBRARY_PATH
16408 case $host_os in
16409 freebsd2.*)
16410 shlibpath_overrides_runpath=yes
16411 ;;
16412 freebsd3.[01]* | freebsdelf3.[01]*)
16413 shlibpath_overrides_runpath=yes
16414 hardcode_into_libs=yes
16415 ;;
16416 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16417 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16418 shlibpath_overrides_runpath=no
16419 hardcode_into_libs=yes
16420 ;;
16421 *) # from 4.6 on, and DragonFly
16422 shlibpath_overrides_runpath=yes
16423 hardcode_into_libs=yes
16424 ;;
16425 esac
16426 ;;
16427
16428 haiku*)
16429 version_type=linux # correct to gnu/linux during the next big refactor
16430 need_lib_prefix=no
16431 need_version=no
16432 dynamic_linker="$host_os runtime_loader"
16433 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16434 soname_spec='$libname$release$shared_ext$major'
16435 shlibpath_var=LIBRARY_PATH
16436 shlibpath_overrides_runpath=no
16437 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16438 hardcode_into_libs=yes
16439 ;;
16440
16441 hpux9* | hpux10* | hpux11*)
16442 # Give a soname corresponding to the major version so that dld.sl refuses to
16443 # link against other versions.
16444 version_type=sunos
16445 need_lib_prefix=no
16446 need_version=no
16447 case $host_cpu in
16448 ia64*)
16449 shrext_cmds='.so'
16450 hardcode_into_libs=yes
16451 dynamic_linker="$host_os dld.so"
16452 shlibpath_var=LD_LIBRARY_PATH
16453 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16454 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16455 soname_spec='$libname$release$shared_ext$major'
16456 if test 32 = "$HPUX_IA64_MODE"; then
16457 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16458 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
16459 else
16460 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16461 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
16462 fi
16463 ;;
16464 hppa*64*)
16465 shrext_cmds='.sl'
16466 hardcode_into_libs=yes
16467 dynamic_linker="$host_os dld.sl"
16468 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16469 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16470 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16471 soname_spec='$libname$release$shared_ext$major'
16472 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16473 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16474 ;;
16475 *)
16476 shrext_cmds='.sl'
16477 dynamic_linker="$host_os dld.sl"
16478 shlibpath_var=SHLIB_PATH
16479 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16480 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16481 soname_spec='$libname$release$shared_ext$major'
16482 ;;
16483 esac
16484 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16485 postinstall_cmds='chmod 555 $lib'
16486 # or fails outright, so override atomically:
16487 install_override_mode=555
16488 ;;
16489
16490 interix[3-9]*)
16491 version_type=linux # correct to gnu/linux during the next big refactor
16492 need_lib_prefix=no
16493 need_version=no
16494 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16495 soname_spec='$libname$release$shared_ext$major'
16496 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16497 shlibpath_var=LD_LIBRARY_PATH
16498 shlibpath_overrides_runpath=no
16499 hardcode_into_libs=yes
16500 ;;
16501
16502 irix5* | irix6* | nonstopux*)
16503 case $host_os in
16504 nonstopux*) version_type=nonstopux ;;
16505 *)
16506 if test yes = "$lt_cv_prog_gnu_ld"; then
16507 version_type=linux # correct to gnu/linux during the next big refactor
16508 else
16509 version_type=irix
16510 fi ;;
16511 esac
16512 need_lib_prefix=no
16513 need_version=no
16514 soname_spec='$libname$release$shared_ext$major'
16515 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
16516 case $host_os in
16517 irix5* | nonstopux*)
16518 libsuff= shlibsuff=
16519 ;;
16520 *)
16521 case $LD in # libtool.m4 will add one of these switches to LD
16522 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16523 libsuff= shlibsuff= libmagic=32-bit;;
16524 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16525 libsuff=32 shlibsuff=N32 libmagic=N32;;
16526 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16527 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16528 *) libsuff= shlibsuff= libmagic=never-match;;
16529 esac
16530 ;;
16531 esac
16532 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16533 shlibpath_overrides_runpath=no
16534 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16535 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
16536 hardcode_into_libs=yes
16537 ;;
16538
16539 # No shared lib support for Linux oldld, aout, or coff.
16540 linux*oldld* | linux*aout* | linux*coff*)
16541 dynamic_linker=no
16542 ;;
16543
16544 linux*android*)
16545 version_type=none # Android doesn't support versioned libraries.
16546 need_lib_prefix=no
16547 need_version=no
16548 library_names_spec='$libname$release$shared_ext'
16549 soname_spec='$libname$release$shared_ext'
16550 finish_cmds=
16551 shlibpath_var=LD_LIBRARY_PATH
16552 shlibpath_overrides_runpath=yes
16553
16554 # This implies no fast_install, which is unacceptable.
16555 # Some rework will be needed to allow for fast_install
16556 # before this can be enabled.
16557 hardcode_into_libs=yes
16558
16559 dynamic_linker='Android linker'
16560 # Don't embed -rpath directories since the linker doesn't support them.
16561 hardcode_libdir_flag_spec_CXX='-L$libdir'
16562 ;;
16563
16564 # This must be glibc/ELF.
16565 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16566 version_type=linux # correct to gnu/linux during the next big refactor
16567 need_lib_prefix=no
16568 need_version=no
16569 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16570 soname_spec='$libname$release$shared_ext$major'
16571 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16572 shlibpath_var=LD_LIBRARY_PATH
16573 shlibpath_overrides_runpath=no
16574
16575 # Some binutils ld are patched to set DT_RUNPATH
16576 if test ${lt_cv_shlibpath_overrides_runpath+y}
16577 then :
16578 printf %s "(cached) " >&6
16579 else $as_nop
16580 lt_cv_shlibpath_overrides_runpath=no
16581 save_LDFLAGS=$LDFLAGS
16582 save_libdir=$libdir
16583 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16584 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16586 /* end confdefs.h. */
16587
16588 int
16589 main (void)
16590 {
16591
16592 ;
16593 return 0;
16594 }
16595 _ACEOF
16596 if ac_fn_cxx_try_link "$LINENO"
16597 then :
16598 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
16599 then :
16600 lt_cv_shlibpath_overrides_runpath=yes
16601 fi
16602 fi
16603 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16604 conftest$ac_exeext conftest.$ac_ext
16605 LDFLAGS=$save_LDFLAGS
16606 libdir=$save_libdir
16607
16608 fi
16609
16610 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16611
16612 # This implies no fast_install, which is unacceptable.
16613 # Some rework will be needed to allow for fast_install
16614 # before this can be enabled.
16615 hardcode_into_libs=yes
16616
16617 # Ideally, we could use ldconfig to report *all* directores which are
16618 # searched for libraries, however this is still not possible. Aside from not
16619 # being certain /sbin/ldconfig is available, command
16620 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16621 # even though it is searched at run-time. Try to do the best guess by
16622 # appending ld.so.conf contents (and includes) to the search path.
16623 if test -f /etc/ld.so.conf; then
16624 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' ' '`
16625 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16626 fi
16627
16628 # We used to test for /lib/ld.so.1 and disable shared libraries on
16629 # powerpc, because MkLinux only supported shared libraries with the
16630 # GNU dynamic linker. Since this was broken with cross compilers,
16631 # most powerpc-linux boxes support dynamic linking these days and
16632 # people can always --disable-shared, the test was removed, and we
16633 # assume the GNU/Linux dynamic linker is in use.
16634 dynamic_linker='GNU/Linux ld.so'
16635 ;;
16636
16637 netbsdelf*-gnu)
16638 version_type=linux
16639 need_lib_prefix=no
16640 need_version=no
16641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16642 soname_spec='${libname}${release}${shared_ext}$major'
16643 shlibpath_var=LD_LIBRARY_PATH
16644 shlibpath_overrides_runpath=no
16645 hardcode_into_libs=yes
16646 dynamic_linker='NetBSD ld.elf_so'
16647 ;;
16648
16649 netbsd*)
16650 version_type=sunos
16651 need_lib_prefix=no
16652 need_version=no
16653 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16654 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16655 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16656 dynamic_linker='NetBSD (a.out) ld.so'
16657 else
16658 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16659 soname_spec='$libname$release$shared_ext$major'
16660 dynamic_linker='NetBSD ld.elf_so'
16661 fi
16662 shlibpath_var=LD_LIBRARY_PATH
16663 shlibpath_overrides_runpath=yes
16664 hardcode_into_libs=yes
16665 ;;
16666
16667 newsos6)
16668 version_type=linux # correct to gnu/linux during the next big refactor
16669 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16670 shlibpath_var=LD_LIBRARY_PATH
16671 shlibpath_overrides_runpath=yes
16672 ;;
16673
16674 *nto* | *qnx*)
16675 version_type=qnx
16676 need_lib_prefix=no
16677 need_version=no
16678 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16679 soname_spec='$libname$release$shared_ext$major'
16680 shlibpath_var=LD_LIBRARY_PATH
16681 shlibpath_overrides_runpath=no
16682 hardcode_into_libs=yes
16683 dynamic_linker='ldqnx.so'
16684 ;;
16685
16686 openbsd* | bitrig*)
16687 version_type=sunos
16688 sys_lib_dlsearch_path_spec=/usr/lib
16689 need_lib_prefix=no
16690 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16691 need_version=no
16692 else
16693 need_version=yes
16694 fi
16695 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16696 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16697 shlibpath_var=LD_LIBRARY_PATH
16698 shlibpath_overrides_runpath=yes
16699 ;;
16700
16701 os2*)
16702 libname_spec='$name'
16703 version_type=windows
16704 shrext_cmds=.dll
16705 need_version=no
16706 need_lib_prefix=no
16707 # OS/2 can only load a DLL with a base name of 8 characters or less.
16708 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16709 v=$($ECHO $release$versuffix | tr -d .-);
16710 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16711 $ECHO $n$v`$shared_ext'
16712 library_names_spec='${libname}_dll.$libext'
16713 dynamic_linker='OS/2 ld.exe'
16714 shlibpath_var=BEGINLIBPATH
16715 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16716 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16717 postinstall_cmds='base_file=`basename \$file`~
16718 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16719 dldir=$destdir/`dirname \$dlpath`~
16720 test -d \$dldir || mkdir -p \$dldir~
16721 $install_prog $dir/$dlname \$dldir/$dlname~
16722 chmod a+x \$dldir/$dlname~
16723 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16724 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16725 fi'
16726 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16727 dlpath=$dir/\$dldll~
16728 $RM \$dlpath'
16729 ;;
16730
16731 osf3* | osf4* | osf5*)
16732 version_type=osf
16733 need_lib_prefix=no
16734 need_version=no
16735 soname_spec='$libname$release$shared_ext$major'
16736 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16737 shlibpath_var=LD_LIBRARY_PATH
16738 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16739 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16740 ;;
16741
16742 rdos*)
16743 dynamic_linker=no
16744 ;;
16745
16746 solaris*)
16747 version_type=linux # correct to gnu/linux during the next big refactor
16748 need_lib_prefix=no
16749 need_version=no
16750 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16751 soname_spec='$libname$release$shared_ext$major'
16752 shlibpath_var=LD_LIBRARY_PATH
16753 shlibpath_overrides_runpath=yes
16754 hardcode_into_libs=yes
16755 # ldd complains unless libraries are executable
16756 postinstall_cmds='chmod +x $lib'
16757 ;;
16758
16759 sunos4*)
16760 version_type=sunos
16761 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16762 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16763 shlibpath_var=LD_LIBRARY_PATH
16764 shlibpath_overrides_runpath=yes
16765 if test yes = "$with_gnu_ld"; then
16766 need_lib_prefix=no
16767 fi
16768 need_version=yes
16769 ;;
16770
16771 sysv4 | sysv4.3*)
16772 version_type=linux # correct to gnu/linux during the next big refactor
16773 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16774 soname_spec='$libname$release$shared_ext$major'
16775 shlibpath_var=LD_LIBRARY_PATH
16776 case $host_vendor in
16777 sni)
16778 shlibpath_overrides_runpath=no
16779 need_lib_prefix=no
16780 runpath_var=LD_RUN_PATH
16781 ;;
16782 siemens)
16783 need_lib_prefix=no
16784 ;;
16785 motorola)
16786 need_lib_prefix=no
16787 need_version=no
16788 shlibpath_overrides_runpath=no
16789 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16790 ;;
16791 esac
16792 ;;
16793
16794 sysv4*MP*)
16795 if test -d /usr/nec; then
16796 version_type=linux # correct to gnu/linux during the next big refactor
16797 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16798 soname_spec='$libname$shared_ext.$major'
16799 shlibpath_var=LD_LIBRARY_PATH
16800 fi
16801 ;;
16802
16803 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16804 version_type=sco
16805 need_lib_prefix=no
16806 need_version=no
16807 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16808 soname_spec='$libname$release$shared_ext$major'
16809 shlibpath_var=LD_LIBRARY_PATH
16810 shlibpath_overrides_runpath=yes
16811 hardcode_into_libs=yes
16812 if test yes = "$with_gnu_ld"; then
16813 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16814 else
16815 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16816 case $host_os in
16817 sco3.2v5*)
16818 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16819 ;;
16820 esac
16821 fi
16822 sys_lib_dlsearch_path_spec='/usr/lib'
16823 ;;
16824
16825 tpf*)
16826 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16827 version_type=linux # correct to gnu/linux during the next big refactor
16828 need_lib_prefix=no
16829 need_version=no
16830 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16831 shlibpath_var=LD_LIBRARY_PATH
16832 shlibpath_overrides_runpath=no
16833 hardcode_into_libs=yes
16834 ;;
16835
16836 uts4*)
16837 version_type=linux # correct to gnu/linux during the next big refactor
16838 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16839 soname_spec='$libname$release$shared_ext$major'
16840 shlibpath_var=LD_LIBRARY_PATH
16841 ;;
16842
16843 *)
16844 dynamic_linker=no
16845 ;;
16846 esac
16847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16848 printf "%s\n" "$dynamic_linker" >&6; }
16849 test no = "$dynamic_linker" && can_build_shared=no
16850
16851 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16852 if test yes = "$GCC"; then
16853 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16854 fi
16855
16856 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16857 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16858 fi
16859
16860 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16861 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16862 fi
16863
16864 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16865 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
16866
16867 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16868 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
16869
16870 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16871 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
16872
16873
16874
16875
16876
16877
16878
16879
16880
16881
16882
16883
16884
16885
16886
16887
16888
16889
16890
16891
16892
16893
16894
16895
16896
16897
16898
16899
16900
16901
16902
16903
16904
16905
16906
16907
16908
16909
16910
16911
16912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16913 printf %s "checking how to hardcode library paths into programs... " >&6; }
16914 hardcode_action_CXX=
16915 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16916 test -n "$runpath_var_CXX" ||
16917 test yes = "$hardcode_automatic_CXX"; then
16918
16919 # We can hardcode non-existent directories.
16920 if test no != "$hardcode_direct_CXX" &&
16921 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16922 # have to relink, otherwise we might link with an installed library
16923 # when we should be linking with a yet-to-be-installed one
16924 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
16925 test no != "$hardcode_minus_L_CXX"; then
16926 # Linking always hardcodes the temporary library directory.
16927 hardcode_action_CXX=relink
16928 else
16929 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16930 hardcode_action_CXX=immediate
16931 fi
16932 else
16933 # We cannot hardcode anything, or else we can only hardcode existing
16934 # directories.
16935 hardcode_action_CXX=unsupported
16936 fi
16937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16938 printf "%s\n" "$hardcode_action_CXX" >&6; }
16939
16940 if test relink = "$hardcode_action_CXX" ||
16941 test yes = "$inherit_rpath_CXX"; then
16942 # Fast installation is not supported
16943 enable_fast_install=no
16944 elif test yes = "$shlibpath_overrides_runpath" ||
16945 test no = "$enable_shared"; then
16946 # Fast installation is not necessary
16947 enable_fast_install=needless
16948 fi
16949
16950
16951
16952
16953
16954
16955
16956 fi # test -n "$compiler"
16957
16958 CC=$lt_save_CC
16959 CFLAGS=$lt_save_CFLAGS
16960 LDCXX=$LD
16961 LD=$lt_save_LD
16962 GCC=$lt_save_GCC
16963 with_gnu_ld=$lt_save_with_gnu_ld
16964 lt_cv_path_LDCXX=$lt_cv_path_LD
16965 lt_cv_path_LD=$lt_save_path_LD
16966 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16967 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16968 fi # test yes != "$_lt_caught_CXX_error"
16969
16970 ac_ext=cpp
16971 ac_cpp='$CXXCPP $CPPFLAGS'
16972 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16973 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16974 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16975
16976
16977 if test -e penmp || test -e mp; then
16978 as_fn_error $? "AC_OPENMP clobbers files named 'mp' and 'penmp'. Aborting configure because one of these files already exists." "$LINENO" 5
16979 fi
16980 # Check whether --enable-openmp was given.
16981 if test ${enable_openmp+y}
16982 then :
16983 enableval=$enable_openmp;
16984 fi
16985
16986 OPENMP_CXXFLAGS=
16987 if test "$enable_openmp" != no; then
16988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
16989 printf %s "checking for $CXX option to support OpenMP... " >&6; }
16990 if test ${ac_cv_prog_cxx_openmp+y}
16991 then :
16992 printf %s "(cached) " >&6
16993 else $as_nop
16994 ac_cv_prog_cxx_openmp='not found'
16995 for ac_option in '' -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
16996 -Popenmp --openmp; do
16997
16998 ac_save_CXXFLAGS=$CXXFLAGS
16999 CXXFLAGS="$CXXFLAGS $ac_option"
17000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17001 /* end confdefs.h. */
17002
17003 #ifndef _OPENMP
17004 #error "OpenMP not supported"
17005 #endif
17006 #include <omp.h>
17007 int main (void) { return omp_get_num_threads (); }
17008
17009 _ACEOF
17010 if ac_fn_cxx_try_compile "$LINENO"
17011 then :
17012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17013 /* end confdefs.h. */
17014
17015 #ifndef _OPENMP
17016 #error "OpenMP not supported"
17017 #endif
17018 #include <omp.h>
17019 int main (void) { return omp_get_num_threads (); }
17020
17021 _ACEOF
17022 if ac_fn_cxx_try_link "$LINENO"
17023 then :
17024 ac_cv_prog_cxx_openmp=$ac_option
17025 else $as_nop
17026 ac_cv_prog_cxx_openmp='unsupported'
17027 fi
17028 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17029 conftest$ac_exeext conftest.$ac_ext
17030 fi
17031 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17032 CXXFLAGS=$ac_save_CXXFLAGS
17033
17034 if test "$ac_cv_prog_cxx_openmp" != 'not found'; then
17035 break
17036 fi
17037 done
17038 if test "$ac_cv_prog_cxx_openmp" = 'not found'; then
17039 ac_cv_prog_cxx_openmp='unsupported'
17040 elif test "$ac_cv_prog_cxx_openmp" = ''; then
17041 ac_cv_prog_cxx_openmp='none needed'
17042 fi
17043 rm -f penmp mp
17044 fi
17045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
17046 printf "%s\n" "$ac_cv_prog_cxx_openmp" >&6; }
17047 if test "$ac_cv_prog_cxx_openmp" != 'unsupported' && \
17048 test "$ac_cv_prog_cxx_openmp" != 'none needed'; then
17049 OPENMP_CXXFLAGS="$ac_cv_prog_cxx_openmp"
17050 fi
17051 fi
17052
17053
17054 if test x != x"${ac_cv_env_OPENMP_CXXFLAGS_value}" ; then
17055 OPENMP_CXXFLAGS="${ac_cv_env_OPENMP_CXXFLAGS_value}";
17056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using user-provided OPENMP_CXXFLAGS=$OPENMP_CXXFLAGS" >&5
17057 printf "%s\n" "$as_me: Using user-provided OPENMP_CXXFLAGS=$OPENMP_CXXFLAGS" >&6;}
17058 fi
17059 ac_config_headers="$ac_config_headers config.h"
17060
17061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
17062 printf %s "checking whether byte ordering is bigendian... " >&6; }
17063 if test ${ac_cv_c_bigendian+y}
17064 then :
17065 printf %s "(cached) " >&6
17066 else $as_nop
17067 ac_cv_c_bigendian=unknown
17068 # See if we're dealing with a universal compiler.
17069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17070 /* end confdefs.h. */
17071 #ifndef __APPLE_CC__
17072 not a universal capable compiler
17073 #endif
17074 typedef int dummy;
17075
17076 _ACEOF
17077 if ac_fn_cxx_try_compile "$LINENO"
17078 then :
17079
17080 # Check for potential -arch flags. It is not universal unless
17081 # there are at least two -arch flags with different values.
17082 ac_arch=
17083 ac_prev=
17084 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
17085 if test -n "$ac_prev"; then
17086 case $ac_word in
17087 i?86 | x86_64 | ppc | ppc64)
17088 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
17089 ac_arch=$ac_word
17090 else
17091 ac_cv_c_bigendian=universal
17092 break
17093 fi
17094 ;;
17095 esac
17096 ac_prev=
17097 elif test "x$ac_word" = "x-arch"; then
17098 ac_prev=arch
17099 fi
17100 done
17101 fi
17102 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17103 if test $ac_cv_c_bigendian = unknown; then
17104 # See if sys/param.h defines the BYTE_ORDER macro.
17105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17106 /* end confdefs.h. */
17107 #include <sys/types.h>
17108 #include <sys/param.h>
17109
17110 int
17111 main (void)
17112 {
17113 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
17114 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
17115 && LITTLE_ENDIAN)
17116 bogus endian macros
17117 #endif
17118
17119 ;
17120 return 0;
17121 }
17122 _ACEOF
17123 if ac_fn_cxx_try_compile "$LINENO"
17124 then :
17125 # It does; now see whether it defined to BIG_ENDIAN or not.
17126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17127 /* end confdefs.h. */
17128 #include <sys/types.h>
17129 #include <sys/param.h>
17130
17131 int
17132 main (void)
17133 {
17134 #if BYTE_ORDER != BIG_ENDIAN
17135 not big endian
17136 #endif
17137
17138 ;
17139 return 0;
17140 }
17141 _ACEOF
17142 if ac_fn_cxx_try_compile "$LINENO"
17143 then :
17144 ac_cv_c_bigendian=yes
17145 else $as_nop
17146 ac_cv_c_bigendian=no
17147 fi
17148 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17149 fi
17150 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17151 fi
17152 if test $ac_cv_c_bigendian = unknown; then
17153 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
17154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17155 /* end confdefs.h. */
17156 #include <limits.h>
17157
17158 int
17159 main (void)
17160 {
17161 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
17162 bogus endian macros
17163 #endif
17164
17165 ;
17166 return 0;
17167 }
17168 _ACEOF
17169 if ac_fn_cxx_try_compile "$LINENO"
17170 then :
17171 # It does; now see whether it defined to _BIG_ENDIAN or not.
17172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17173 /* end confdefs.h. */
17174 #include <limits.h>
17175
17176 int
17177 main (void)
17178 {
17179 #ifndef _BIG_ENDIAN
17180 not big endian
17181 #endif
17182
17183 ;
17184 return 0;
17185 }
17186 _ACEOF
17187 if ac_fn_cxx_try_compile "$LINENO"
17188 then :
17189 ac_cv_c_bigendian=yes
17190 else $as_nop
17191 ac_cv_c_bigendian=no
17192 fi
17193 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17194 fi
17195 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17196 fi
17197 if test $ac_cv_c_bigendian = unknown; then
17198 # Compile a test program.
17199 if test "$cross_compiling" = yes
17200 then :
17201 # Try to guess by grepping values from an object file.
17202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17203 /* end confdefs.h. */
17204 unsigned short int ascii_mm[] =
17205 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
17206 unsigned short int ascii_ii[] =
17207 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
17208 int use_ascii (int i) {
17209 return ascii_mm[i] + ascii_ii[i];
17210 }
17211 unsigned short int ebcdic_ii[] =
17212 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
17213 unsigned short int ebcdic_mm[] =
17214 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
17215 int use_ebcdic (int i) {
17216 return ebcdic_mm[i] + ebcdic_ii[i];
17217 }
17218 extern int foo;
17219
17220 int
17221 main (void)
17222 {
17223 return use_ascii (foo) == use_ebcdic (foo);
17224 ;
17225 return 0;
17226 }
17227 _ACEOF
17228 if ac_fn_cxx_try_compile "$LINENO"
17229 then :
17230 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
17231 ac_cv_c_bigendian=yes
17232 fi
17233 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
17234 if test "$ac_cv_c_bigendian" = unknown; then
17235 ac_cv_c_bigendian=no
17236 else
17237 # finding both strings is unlikely to happen, but who knows?
17238 ac_cv_c_bigendian=unknown
17239 fi
17240 fi
17241 fi
17242 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17243 else $as_nop
17244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17245 /* end confdefs.h. */
17246 $ac_includes_default
17247 int
17248 main (void)
17249 {
17250
17251 /* Are we little or big endian? From Harbison&Steele. */
17252 union
17253 {
17254 long int l;
17255 char c[sizeof (long int)];
17256 } u;
17257 u.l = 1;
17258 return u.c[sizeof (long int) - 1] == 1;
17259
17260 ;
17261 return 0;
17262 }
17263 _ACEOF
17264 if ac_fn_cxx_try_run "$LINENO"
17265 then :
17266 ac_cv_c_bigendian=no
17267 else $as_nop
17268 ac_cv_c_bigendian=yes
17269 fi
17270 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17271 conftest.$ac_objext conftest.beam conftest.$ac_ext
17272 fi
17273
17274 fi
17275 fi
17276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
17277 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
17278 case $ac_cv_c_bigendian in #(
17279 yes)
17280 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
17281 ;; #(
17282 no)
17283 ;; #(
17284 universal)
17285
17286 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
17287
17288 ;; #(
17289 *)
17290 as_fn_error $? "unknown endianness
17291 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
17292 esac
17293
17294 if test -n "$ac_tool_prefix"; then
17295 # Extract the first word of "${ac_tool_prefix}latex", so it can be a program name with args.
17296 set dummy ${ac_tool_prefix}latex; ac_word=$2
17297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17298 printf %s "checking for $ac_word... " >&6; }
17299 if test ${ac_cv_prog_LATEX+y}
17300 then :
17301 printf %s "(cached) " >&6
17302 else $as_nop
17303 if test -n "$LATEX"; then
17304 ac_cv_prog_LATEX="$LATEX" # Let the user override the test.
17305 else
17306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17307 for as_dir in $PATH
17308 do
17309 IFS=$as_save_IFS
17310 case $as_dir in #(((
17311 '') as_dir=./ ;;
17312 */) ;;
17313 *) as_dir=$as_dir/ ;;
17314 esac
17315 for ac_exec_ext in '' $ac_executable_extensions; do
17316 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17317 ac_cv_prog_LATEX="${ac_tool_prefix}latex"
17318 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17319 break 2
17320 fi
17321 done
17322 done
17323 IFS=$as_save_IFS
17324
17325 fi
17326 fi
17327 LATEX=$ac_cv_prog_LATEX
17328 if test -n "$LATEX"; then
17329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LATEX" >&5
17330 printf "%s\n" "$LATEX" >&6; }
17331 else
17332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17333 printf "%s\n" "no" >&6; }
17334 fi
17335
17336
17337 fi
17338 if test -z "$ac_cv_prog_LATEX"; then
17339 ac_ct_LATEX=$LATEX
17340 # Extract the first word of "latex", so it can be a program name with args.
17341 set dummy latex; ac_word=$2
17342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17343 printf %s "checking for $ac_word... " >&6; }
17344 if test ${ac_cv_prog_ac_ct_LATEX+y}
17345 then :
17346 printf %s "(cached) " >&6
17347 else $as_nop
17348 if test -n "$ac_ct_LATEX"; then
17349 ac_cv_prog_ac_ct_LATEX="$ac_ct_LATEX" # Let the user override the test.
17350 else
17351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17352 for as_dir in $PATH
17353 do
17354 IFS=$as_save_IFS
17355 case $as_dir in #(((
17356 '') as_dir=./ ;;
17357 */) ;;
17358 *) as_dir=$as_dir/ ;;
17359 esac
17360 for ac_exec_ext in '' $ac_executable_extensions; do
17361 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17362 ac_cv_prog_ac_ct_LATEX="latex"
17363 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17364 break 2
17365 fi
17366 done
17367 done
17368 IFS=$as_save_IFS
17369
17370 fi
17371 fi
17372 ac_ct_LATEX=$ac_cv_prog_ac_ct_LATEX
17373 if test -n "$ac_ct_LATEX"; then
17374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LATEX" >&5
17375 printf "%s\n" "$ac_ct_LATEX" >&6; }
17376 else
17377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17378 printf "%s\n" "no" >&6; }
17379 fi
17380
17381 if test "x$ac_ct_LATEX" = x; then
17382 LATEX="false"
17383 else
17384 case $cross_compiling:$ac_tool_warned in
17385 yes:)
17386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17387 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17388 ac_tool_warned=yes ;;
17389 esac
17390 LATEX=$ac_ct_LATEX
17391 fi
17392 else
17393 LATEX="$ac_cv_prog_LATEX"
17394 fi
17395
17396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether you have C++17" >&5
17397 printf %s "checking whether you have C++17... " >&6; }
17398 if test ${have_cv_cxx17+y}
17399 then :
17400 printf %s "(cached) " >&6
17401 else $as_nop
17402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17403 /* end confdefs.h. */
17404
17405 #if (__cplusplus >= 201703L)
17406 int main() { }
17407 #else
17408 #error No C++17 supported, it seems!
17409 #endif
17410
17411 _ACEOF
17412 if ac_fn_cxx_try_compile "$LINENO"
17413 then :
17414 have_cv_cxx17=yes
17415 else $as_nop
17416 have_cv_cxx17=no
17417 fi
17418 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17419 fi
17420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_cv_cxx17" >&5
17421 printf "%s\n" "$have_cv_cxx17" >&6; }
17422 if test X$have_cv_cxx17 = Xyes; then
17423 true
17424 else
17425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: No C++17 support detected." >&5
17426 printf "%s\n" "$as_me: WARNING: No C++17 support detected." >&2;}
17427 fi
17428
17429 BPWD="`cd ..;pwd`";
17430 CPPFLAGS="${RSBTEST_CPPFLAGS} ${CPPFLAGS}"
17431
17432 # Check whether --with-librsbpp was given.
17433 if test ${with_librsbpp+y}
17434 then :
17435 withval=$with_librsbpp; if test "x$withval" != xno; then want_librsbpp="$withval" ; else want_librsbpp="no"; fi
17436 else $as_nop
17437 want_librsbpp="no"
17438 fi
17439
17440 if test x"$want_librsbpp" != x"no" ; then
17441 CPPFLAGS="${CPPFLAGS} -I${BPWD}/librsbpp/ "
17442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Updated CPPFLAGS to have librsbpp dir: ${CPPFLAGS}." >&5
17443 printf "%s\n" "$as_me: Updated CPPFLAGS to have librsbpp dir: ${CPPFLAGS}." >&6;}
17444 fi
17445 if test -n "$LIBRSB__BASE_DIR"; then
17446 want_rsbtest="yes";
17447 fi
17448
17449 # Check whether --with-rsbtest was given.
17450 if test ${with_rsbtest+y}
17451 then :
17452 withval=$with_rsbtest; if test "x$withval" != xno; then want_rsbtest="$withval" ; else want_rsbtest="no"; fi
17453 else $as_nop
17454 if test "x$want_rsbtest" = x; then want_rsbtest="no"; fi;
17455 fi
17456
17457 if test x"$want_rsbtest" != x"no" ; then
17458 LIBRSB_LOCAL_LIBS="${BPWD}/librsb.la"
17459
17460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Assuming building as subdir of librsb: link to $LIBRSB_LOCAL_LIBS." >&5
17461 printf "%s\n" "$as_me: Assuming building as subdir of librsb: link to $LIBRSB_LOCAL_LIBS." >&6;}
17462 if true; then
17463 WITH_RSBTEST_TRUE=
17464 WITH_RSBTEST_FALSE='#'
17465 else
17466 WITH_RSBTEST_TRUE='#'
17467 WITH_RSBTEST_FALSE=
17468 fi
17469
17470 else
17471 if false; then
17472 WITH_RSBTEST_TRUE=
17473 WITH_RSBTEST_FALSE='#'
17474 else
17475 WITH_RSBTEST_TRUE='#'
17476 WITH_RSBTEST_FALSE=
17477 fi
17478
17479 LIBRSB_LOCAL_LIBS=""
17480
17481
17482
17483 # Extract the first word of "librsb-config", so it can be a program name with args.
17484 set dummy librsb-config; ac_word=$2
17485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17486 printf %s "checking for $ac_word... " >&6; }
17487 if test ${ac_cv_prog_HAVE_LIBRSB_CONFIG+y}
17488 then :
17489 printf %s "(cached) " >&6
17490 else $as_nop
17491 if test -n "$HAVE_LIBRSB_CONFIG"; then
17492 ac_cv_prog_HAVE_LIBRSB_CONFIG="$HAVE_LIBRSB_CONFIG" # Let the user override the test.
17493 else
17494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17495 for as_dir in $PATH
17496 do
17497 IFS=$as_save_IFS
17498 case $as_dir in #(((
17499 '') as_dir=./ ;;
17500 */) ;;
17501 *) as_dir=$as_dir/ ;;
17502 esac
17503 for ac_exec_ext in '' $ac_executable_extensions; do
17504 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17505 ac_cv_prog_HAVE_LIBRSB_CONFIG="yes"
17506 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17507 break 2
17508 fi
17509 done
17510 done
17511 IFS=$as_save_IFS
17512
17513 test -z "$ac_cv_prog_HAVE_LIBRSB_CONFIG" && ac_cv_prog_HAVE_LIBRSB_CONFIG="no"
17514 fi
17515 fi
17516 HAVE_LIBRSB_CONFIG=$ac_cv_prog_HAVE_LIBRSB_CONFIG
17517 if test -n "$HAVE_LIBRSB_CONFIG"; then
17518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HAVE_LIBRSB_CONFIG" >&5
17519 printf "%s\n" "$HAVE_LIBRSB_CONFIG" >&6; }
17520 else
17521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17522 printf "%s\n" "no" >&6; }
17523 fi
17524
17525
17526 # Extract the first word of "librsb-config", so it can be a program name with args.
17527 set dummy librsb-config; ac_word=$2
17528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17529 printf %s "checking for $ac_word... " >&6; }
17530 if test ${ac_cv_path_LIBRSB_CONFIG+y}
17531 then :
17532 printf %s "(cached) " >&6
17533 else $as_nop
17534 case $LIBRSB_CONFIG in
17535 [\\/]* | ?:[\\/]*)
17536 ac_cv_path_LIBRSB_CONFIG="$LIBRSB_CONFIG" # Let the user override the test with a path.
17537 ;;
17538 *)
17539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17540 for as_dir in $PATH
17541 do
17542 IFS=$as_save_IFS
17543 case $as_dir in #(((
17544 '') as_dir=./ ;;
17545 */) ;;
17546 *) as_dir=$as_dir/ ;;
17547 esac
17548 for ac_exec_ext in '' $ac_executable_extensions; do
17549 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17550 ac_cv_path_LIBRSB_CONFIG="$as_dir$ac_word$ac_exec_ext"
17551 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17552 break 2
17553 fi
17554 done
17555 done
17556 IFS=$as_save_IFS
17557
17558 test -z "$ac_cv_path_LIBRSB_CONFIG" && ac_cv_path_LIBRSB_CONFIG="no"
17559 ;;
17560 esac
17561 fi
17562 LIBRSB_CONFIG=$ac_cv_path_LIBRSB_CONFIG
17563 if test -n "$LIBRSB_CONFIG"; then
17564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBRSB_CONFIG" >&5
17565 printf "%s\n" "$LIBRSB_CONFIG" >&6; }
17566 else
17567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17568 printf "%s\n" "no" >&6; }
17569 fi
17570
17571
17572 if test x$LIBRSB_CONFIG == x"no" ; then
17573 as_fn_error $? "Where is librsb-config ?" "$LINENO" 5;
17574 else
17575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Adding LIBRSB_CONFIG --I_opts/--ldflags/--libs --extra_libs to CPPFLAGS/LDFLAGS/LIBS." >&5
17576 printf "%s\n" "$as_me: Adding LIBRSB_CONFIG --I_opts/--ldflags/--libs --extra_libs to CPPFLAGS/LDFLAGS/LIBS." >&6;}
17577 CPPFLAGS="${CPPFLAGS} `${LIBRSB_CONFIG} --I_opts`"
17578 LDFLAGS="${LDFLAGS} `${LIBRSB_CONFIG} --ldflags`"
17579 LIBS="${LIBS} `${LIBRSB_CONFIG} --libs --extra_libs`"
17580 fi
17581 fi
17582 # Check whether --enable-long-indices was given.
17583 if test ${enable_long_indices+y}
17584 then :
17585 enableval=$enable_long_indices; want_long_idx="1"
17586 else $as_nop
17587 want_long_idx="0"
17588 fi
17589
17590 if test "x$want_long_idx" = x"1"; then
17591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Enabling long types flags for rsb_coo_idx_t and rsb_nnz_idx_t." >&5
17592 printf "%s\n" "$as_me: Enabling long types flags for rsb_coo_idx_t and rsb_nnz_idx_t." >&6;}
17593 fi
17594 # Check whether --enable-preset was given.
17595 if test ${enable_preset+y}
17596 then :
17597 enableval=$enable_preset; if test x$enableval = xyes; then
17598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Will compile with preset benchmarking options." >&5
17599 printf "%s\n" "$as_me: Will compile with preset benchmarking options." >&6;};
17600 CPPFLAGS="${CPPFLAGS} -std=c++17 -O3 -fopt-info-vec=vec.opt -Wno-sign-compare" ;
17601 if test -n "${MKL_INC}"; then CPPFLAGS="${CPPFLAGS} ${MKL_INC}"; fi
17602 RSBLIBDIR="${HOME}/src/rsblib/"
17603 if test -d "${RSBLIBDIR}" ; then CPPFLAGS="${CPPFLAGS} -I${RSBLIBDIR}"; fi
17604 LIBRSBPPDIR="${HOME}/src/librsbpp/"
17605 if test -d "${LIBRSBPPDIR}" ; then CPPFLAGS="${CPPFLAGS} -I${LIBRSBPPDIR}"; fi
17606 #if test -n "${MKL_LIB}"; then LIBS="${LIBS} ${MKL_LIB}"; fi
17607 if test -n "${MKL_LIBDIR}"; then LIBS="${LIBS} -Wl,--start-group ${MKL_LIBDIR}/libmkl_intel_lp64.a ${MKL_LIBDIR}/libmkl_core.a ${MKL_LIBDIR}/libmkl_intel_thread.a -Wl,--end-group -L ${MKL_LIBDIR}/../../../compiler/lib/intel64 -liomp5 -lpthread -lm"; fi
17608 fi
17609 fi
17610
17611
17612 # Check whether --with-mkl was given.
17613 if test ${with_mkl+y}
17614 then :
17615 withval=$with_mkl; if test "x$withval" = xno; then want_mkl_libs= ; else if test "x$withval" = xyes; then want_mkl_libs="yes" ; else want_mkl_libs="$withval" ; fi ; fi
17616 else $as_nop
17617 true
17618 fi
17619
17620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lstdc++fs" >&5
17621 printf %s "checking for main in -lstdc++fs... " >&6; }
17622 if test ${ac_cv_lib_stdcppfs_main+y}
17623 then :
17624 printf %s "(cached) " >&6
17625 else $as_nop
17626 ac_check_lib_save_LIBS=$LIBS
17627 LIBS="-lstdc++fs $LIBS"
17628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17629 /* end confdefs.h. */
17630
17631 namespace conftest {
17632 extern "C" int main ();
17633 }
17634 int
17635 main (void)
17636 {
17637 return conftest::main ();
17638 ;
17639 return 0;
17640 }
17641 _ACEOF
17642 if ac_fn_cxx_try_link "$LINENO"
17643 then :
17644 ac_cv_lib_stdcppfs_main=yes
17645 else $as_nop
17646 ac_cv_lib_stdcppfs_main=no
17647 fi
17648 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17649 conftest$ac_exeext conftest.$ac_ext
17650 LIBS=$ac_check_lib_save_LIBS
17651 fi
17652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_stdcppfs_main" >&5
17653 printf "%s\n" "$ac_cv_lib_stdcppfs_main" >&6; }
17654 if test "x$ac_cv_lib_stdcppfs_main" = xyes
17655 then :
17656 LIBS="${LIBS} -lstdc++fs"
17657 fi
17658
17659 ac_fn_cxx_check_header_compile "$LINENO" "mkl/mkl.h" "ac_cv_header_mkl_mkl_h" "$ac_includes_default"
17660 if test "x$ac_cv_header_mkl_mkl_h" = xyes
17661 then :
17662 printf "%s\n" "#define HAVE_MKL_MKL_H 1" >>confdefs.h
17663
17664 fi
17665
17666 ac_fn_cxx_check_header_compile "$LINENO" "mkl/mkl_spblas.h" "ac_cv_header_mkl_mkl_spblas_h" "$ac_includes_default"
17667 if test "x$ac_cv_header_mkl_mkl_spblas_h" = xyes
17668 then :
17669 printf "%s\n" "#define HAVE_MKL_MKL_SPBLAS_H 1" >>confdefs.h
17670
17671 fi
17672
17673 if test x"$want_mkl_libs" = x"yes" ; then
17674 RSB_MKL_LIBS_GNU64_SET=" -fopenmp -lpthread -Wl,--start-group,-lmkl_intel_lp64,-lmkl_gnu_thread,-lmkl_core,--end-group -lm"
17675
17676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mkl_get_version in -lmkl_core" >&5
17677 printf %s "checking for mkl_get_version in -lmkl_core... " >&6; }
17678 if test ${ac_cv_lib_mkl_core_mkl_get_version+y}
17679 then :
17680 printf %s "(cached) " >&6
17681 else $as_nop
17682 ac_check_lib_save_LIBS=$LIBS
17683 LIBS="-lmkl_core "${RSB_MKL_LIBS_GNU64_SET}" $LIBS"
17684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17685 /* end confdefs.h. */
17686
17687 namespace conftest {
17688 extern "C" int mkl_get_version ();
17689 }
17690 int
17691 main (void)
17692 {
17693 return conftest::mkl_get_version ();
17694 ;
17695 return 0;
17696 }
17697 _ACEOF
17698 if ac_fn_cxx_try_link "$LINENO"
17699 then :
17700 ac_cv_lib_mkl_core_mkl_get_version=yes
17701 else $as_nop
17702 ac_cv_lib_mkl_core_mkl_get_version=no
17703 fi
17704 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17705 conftest$ac_exeext conftest.$ac_ext
17706 LIBS=$ac_check_lib_save_LIBS
17707 fi
17708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mkl_core_mkl_get_version" >&5
17709 printf "%s\n" "$ac_cv_lib_mkl_core_mkl_get_version" >&6; }
17710 if test "x$ac_cv_lib_mkl_core_mkl_get_version" = xyes
17711 then :
17712 LIBS="${LIBS} ${RSB_MKL_LIBS_GNU64_SET}"; printf "%s\n" "#define HAVE_MKL_GET_VERSION 1" >>confdefs.h
17713
17714 else $as_nop
17715 LIBS="${LIBS}";
17716 fi
17717
17718
17719 printf "%s\n" "#define WANT_MKL 1" >>confdefs.h
17720
17721 fi
17722 if test x"${want_mkl_lib}" == x"yes" -a x"$ac_cv_header_mkl_mkl_spblas_h" == x"yes"; then
17723 USE_MKL_SPBLAS_TRUE=
17724 USE_MKL_SPBLAS_FALSE='#'
17725 else
17726 USE_MKL_SPBLAS_TRUE='#'
17727 USE_MKL_SPBLAS_FALSE=
17728 fi
17729
17730 if test x"$want_mkl_libs" = x"yes" -a x"$want_long_idx" = x"1"; then
17731 as_fn_error $? "Sorry, as of now, you can't use MKL and long librsb indices!" "$LINENO" 5;
17732 fi
17733 # Check whether --enable-minimal-librsbpp was given.
17734 if test ${enable_minimal_librsbpp+y}
17735 then :
17736 enableval=$enable_minimal_librsbpp; if test "x$enableval" = xyes; then want_mini_rsbpp="1"; else want_mini_rsbpp="0";fi
17737 else $as_nop
17738 want_mini_rsbpp="0"
17739 fi
17740
17741 if test "x$want_mini_rsbpp" = x"1"; then
17742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Enabling librsbpp library only usage (no extras)." >&5
17743 printf "%s\n" "$as_me: Enabling librsbpp library only usage (no extras)." >&6;}
17744 CXXFLAGS="${CXXFLAGS} -DRSBT_WANT_MINIMAL_LIBRSBPP=1"
17745 fi
17746 if test x"${want_mini_rsbpp}" == x"1"; then
17747 WANT_MINIMAL_LIBRSBPP_TRUE=
17748 WANT_MINIMAL_LIBRSBPP_FALSE='#'
17749 else
17750 WANT_MINIMAL_LIBRSBPP_TRUE='#'
17751 WANT_MINIMAL_LIBRSBPP_FALSE=
17752 fi
17753
17754 ac_fn_cxx_check_header_compile "$LINENO" "rsb.h" "ac_cv_header_rsb_h" "
17755 #define RSB_WANT_NO_RSB_TYPES_H 1
17756
17757 "
17758 if test "x$ac_cv_header_rsb_h" = xyes
17759 then :
17760 printf "%s\n" "#define HAVE_RSB_H 1" >>confdefs.h
17761
17762 fi
17763
17764 ac_fn_cxx_check_header_compile "$LINENO" "rsb.hpp" "ac_cv_header_rsb_hpp" "
17765 #define RSB_RSB_HPP_INCLUDED 1 /* This checks for rsb.hpp presence only -- included rsb_types.h may as well not exist yet at configure time. */
17766
17767 "
17768 if test "x$ac_cv_header_rsb_hpp" = xyes
17769 then :
17770 printf "%s\n" "#define HAVE_RSB_HPP 1" >>confdefs.h
17771
17772 fi
17773
17774 # Check whether --enable-matrix-types was given.
17775 if test ${enable_matrix_types+y}
17776 then :
17777 enableval=$enable_matrix_types; want_matrix_types="$enableval"
17778 else $as_nop
17779 want_matrix_types=""
17780 fi
17781
17782 # Check whether --enable-programs was given.
17783 if test ${enable_programs+y}
17784 then :
17785 enableval=$enable_programs; want_rsb_programs="$enableval";
17786 else $as_nop
17787 want_rsb_programs="no";
17788 fi
17789
17790 if test x"${want_rsb_programs}" != x"no"; then
17791 WANT_PROGRAMS_TRUE=
17792 WANT_PROGRAMS_FALSE='#'
17793 else
17794 WANT_PROGRAMS_TRUE='#'
17795 WANT_PROGRAMS_FALSE=
17796 fi
17797
17798 if test x"${want_matrix_types}" != x""; then
17799 WANT_CUSTOM_NUMERICAL_TYPES_TRUE=
17800 WANT_CUSTOM_NUMERICAL_TYPES_FALSE='#'
17801 else
17802 WANT_CUSTOM_NUMERICAL_TYPES_TRUE='#'
17803 WANT_CUSTOM_NUMERICAL_TYPES_FALSE=
17804 fi
17805
17806 ac_fn_cxx_check_header_compile "$LINENO" "rsbpp.hpp" "ac_cv_header_rsbpp_hpp" "$ac_includes_default"
17807 if test "x$ac_cv_header_rsbpp_hpp" = xyes
17808 then :
17809 printf "%s\n" "#define HAVE_RSBPP_HPP 1" >>confdefs.h
17810
17811 fi
17812
17813 ac_fn_cxx_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
17814 if test "x$ac_cv_header_getopt_h" = xyes
17815 then :
17816 printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h
17817
17818 fi
17819
17820 ac_fn_cxx_check_header_compile "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"
17821 if test "x$ac_cv_header_sys_utsname_h" = xyes
17822 then :
17823 printf "%s\n" "#define HAVE_SYS_UTSNAME_H 1" >>confdefs.h
17824
17825 fi
17826
17827 ac_fn_cxx_check_header_compile "$LINENO" "omp.h" "ac_cv_header_omp_h" "$ac_includes_default"
17828 if test "x$ac_cv_header_omp_h" = xyes
17829 then :
17830 printf "%s\n" "#define HAVE_OMP_H 1" >>confdefs.h
17831
17832 fi
17833
17834 ac_fn_cxx_check_header_compile "$LINENO" "mutex" "ac_cv_header_mutex" "$ac_includes_default"
17835 if test "x$ac_cv_header_mutex" = xyes
17836 then :
17837 printf "%s\n" "#define HAVE_MUTEX 1" >>confdefs.h
17838
17839 fi
17840
17841 for ac_header in filesystem
17842 do :
17843 ac_fn_cxx_check_header_compile "$LINENO" "filesystem" "ac_cv_header_filesystem" "$ac_includes_default"
17844 if test "x$ac_cv_header_filesystem" = xyes
17845 then :
17846 printf "%s\n" "#define HAVE_FILESYSTEM 1" >>confdefs.h
17847
17848 printf "%s\n" "#define HAVE_FILESYSTEM 1" >>confdefs.h
17849
17850 fi
17851
17852 done
17853 ac_fn_cxx_check_func "$LINENO" "rsb_lib_init" "ac_cv_func_rsb_lib_init"
17854 if test "x$ac_cv_func_rsb_lib_init" = xyes
17855 then :
17856
17857 printf "%s\n" "#define HAVE_LIBRSB 1" >>confdefs.h
17858
17859 fi
17860
17861 if test x"$have_cv_cxx17" = x"yes" -a x"$ac_cv_header_filesystem" = x"yes"; then
17862 WITH_CXX17_FILESYSTEM_TRUE=
17863 WITH_CXX17_FILESYSTEM_FALSE='#'
17864 else
17865 WITH_CXX17_FILESYSTEM_TRUE='#'
17866 WITH_CXX17_FILESYSTEM_FALSE=
17867 fi
17868
17869 if test x"$ac_cv_header_rsbpp_hpp" = x"yes" -a x"$want_mini_rsbpp" != x"1"; then
17870 HAVE_RSBPP_HPP_TRUE=
17871 HAVE_RSBPP_HPP_FALSE='#'
17872 else
17873 HAVE_RSBPP_HPP_TRUE='#'
17874 HAVE_RSBPP_HPP_FALSE=
17875 fi
17876
17877 if test x"$have_cv_cxx17" != x"yes" -a x"$ac_cv_header_rsb_hpp" = x"yes" ; then
17878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You need C++17 or later support to work with <rsb.hpp>! Turning <rsb.hpp> support off." >&5
17879 printf "%s\n" "$as_me: WARNING: You need C++17 or later support to work with <rsb.hpp>! Turning <rsb.hpp> support off." >&2;};
17880 fi
17881 if test x"$have_cv_cxx17" = x"yes" -a x"$ac_cv_header_rsb_hpp" = x"yes"; then
17882 HAVE_RSB_HPP_TRUE=
17883 HAVE_RSB_HPP_FALSE='#'
17884 else
17885 HAVE_RSB_HPP_TRUE='#'
17886 HAVE_RSB_HPP_FALSE=
17887 fi
17888
17889 if test -w /dev/null; then
17890 HAVE_DEV_NULL_TRUE=
17891 HAVE_DEV_NULL_FALSE='#'
17892 else
17893 HAVE_DEV_NULL_TRUE='#'
17894 HAVE_DEV_NULL_FALSE=
17895 fi
17896
17897 if test x"$ac_cv_header_getopt_h" != x"yes" ; then
17898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: No <getopt.h> header detected. Do NOT expect the test suite to work!" >&5
17899 printf "%s\n" "$as_me: WARNING: No <getopt.h> header detected. Do NOT expect the test suite to work!" >&2;}
17900 fi
17901 if test x"$host_cpu" == x"$build_cpu"; then
17902 ac_cv_cross_compiling="no";
17903 else
17904 ac_cv_cross_compiling="yes";
17905 fi
17906 if test x"$ac_cv_header_getopt_h" = x"yes" -a x"$ac_cv_cross_compiling" != x"yes"; then
17907 HAVE_RUNNABLE_TESTS_TRUE=
17908 HAVE_RUNNABLE_TESTS_FALSE='#'
17909 else
17910 HAVE_RUNNABLE_TESTS_TRUE='#'
17911 HAVE_RUNNABLE_TESTS_FALSE=
17912 fi
17913
17914 # Extract the first word of "dd", so it can be a program name with args.
17915 set dummy dd; ac_word=$2
17916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17917 printf %s "checking for $ac_word... " >&6; }
17918 if test ${ac_cv_prog_have_dd+y}
17919 then :
17920 printf %s "(cached) " >&6
17921 else $as_nop
17922 if test -n "$have_dd"; then
17923 ac_cv_prog_have_dd="$have_dd" # Let the user override the test.
17924 else
17925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17926 for as_dir in $PATH
17927 do
17928 IFS=$as_save_IFS
17929 case $as_dir in #(((
17930 '') as_dir=./ ;;
17931 */) ;;
17932 *) as_dir=$as_dir/ ;;
17933 esac
17934 for ac_exec_ext in '' $ac_executable_extensions; do
17935 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17936 ac_cv_prog_have_dd="yes"
17937 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17938 break 2
17939 fi
17940 done
17941 done
17942 IFS=$as_save_IFS
17943
17944 test -z "$ac_cv_prog_have_dd" && ac_cv_prog_have_dd="no"
17945 fi
17946 fi
17947 have_dd=$ac_cv_prog_have_dd
17948 if test -n "$have_dd"; then
17949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_dd" >&5
17950 printf "%s\n" "$have_dd" >&6; }
17951 else
17952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17953 printf "%s\n" "no" >&6; }
17954 fi
17955
17956
17957 if test x"$ac_cv_prog_have_dd" != x"no" ; then
17958 if TEST=`echo '' | dd bs=16M status=none iflag=fullblock` ; then
17959 if true; then
17960 HAVE_DD_TRUE=
17961 HAVE_DD_FALSE='#'
17962 else
17963 HAVE_DD_TRUE='#'
17964 HAVE_DD_FALSE=
17965 fi
17966
17967 if true; then
17968 HAVE_FULL_DD_TRUE=
17969 HAVE_FULL_DD_FALSE='#'
17970 else
17971 HAVE_FULL_DD_TRUE='#'
17972 HAVE_FULL_DD_FALSE=
17973 fi
17974
17975 elif TEST=`echo '' | dd ` ; then
17976 if true; then
17977 HAVE_DD_TRUE=
17978 HAVE_DD_FALSE='#'
17979 else
17980 HAVE_DD_TRUE='#'
17981 HAVE_DD_FALSE=
17982 fi
17983
17984 if false; then
17985 HAVE_FULL_DD_TRUE=
17986 HAVE_FULL_DD_FALSE='#'
17987 else
17988 HAVE_FULL_DD_TRUE='#'
17989 HAVE_FULL_DD_FALSE=
17990 fi
17991
17992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Your dd seems verbose and so will be tests.." >&5
17993 printf "%s\n" "$as_me: WARNING: Your dd seems verbose and so will be tests.." >&2;}
17994 else
17995 if false; then
17996 HAVE_DD_TRUE=
17997 HAVE_DD_FALSE='#'
17998 else
17999 HAVE_DD_TRUE='#'
18000 HAVE_DD_FALSE=
18001 fi
18002
18003 if false; then
18004 HAVE_FULL_DD_TRUE=
18005 HAVE_FULL_DD_FALSE='#'
18006 else
18007 HAVE_FULL_DD_TRUE='#'
18008 HAVE_FULL_DD_FALSE=
18009 fi
18010
18011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: No usable dd program detected!" >&5
18012 printf "%s\n" "$as_me: WARNING: No usable dd program detected!" >&2;}
18013 fi
18014 else
18015 if false; then
18016 HAVE_DD_TRUE=
18017 HAVE_DD_FALSE='#'
18018 else
18019 HAVE_DD_TRUE='#'
18020 HAVE_DD_FALSE=
18021 fi
18022
18023 if false; then
18024 HAVE_FULL_DD_TRUE=
18025 HAVE_FULL_DD_FALSE='#'
18026 else
18027 HAVE_FULL_DD_TRUE='#'
18028 HAVE_FULL_DD_FALSE=
18029 fi
18030
18031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: No usable dd program detected!" >&5
18032 printf "%s\n" "$as_me: WARNING: No usable dd program detected!" >&2;}
18033 fi
18034 if which ${SHELL}; then
18035 HAVE_WHICH_TRUE=
18036 HAVE_WHICH_FALSE='#'
18037 else
18038 HAVE_WHICH_TRUE='#'
18039 HAVE_WHICH_FALSE=
18040 fi
18041
18042 if which timeout; then
18043 HAVE_TIMEOUT_TRUE=
18044 HAVE_TIMEOUT_FALSE='#'
18045 else
18046 HAVE_TIMEOUT_TRUE='#'
18047 HAVE_TIMEOUT_FALSE=
18048 fi
18049
18050
18051 ac_config_files="$ac_config_files Makefile"
18052
18053 cat >confcache <<\_ACEOF
18054 # This file is a shell script that caches the results of configure
18055 # tests run on this system so they can be shared between configure
18056 # scripts and configure runs, see configure's option --config-cache.
18057 # It is not useful on other systems. If it contains results you don't
18058 # want to keep, you may remove or edit it.
18059 #
18060 # config.status only pays attention to the cache file if you give it
18061 # the --recheck option to rerun configure.
18062 #
18063 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18064 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18065 # following values.
18066
18067 _ACEOF
18068
18069 # The following way of writing the cache mishandles newlines in values,
18070 # but we know of no workaround that is simple, portable, and efficient.
18071 # So, we kill variables containing newlines.
18072 # Ultrix sh set writes to stderr and can't be redirected directly,
18073 # and sets the high bit in the cache file unless we assign to the vars.
18074 (
18075 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18076 eval ac_val=\$$ac_var
18077 case $ac_val in #(
18078 *${as_nl}*)
18079 case $ac_var in #(
18080 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18081 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18082 esac
18083 case $ac_var in #(
18084 _ | IFS | as_nl) ;; #(
18085 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18086 *) { eval $ac_var=; unset $ac_var;} ;;
18087 esac ;;
18088 esac
18089 done
18090
18091 (set) 2>&1 |
18092 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18093 *${as_nl}ac_space=\ *)
18094 # `set' does not quote correctly, so add quotes: double-quote
18095 # substitution turns \\\\ into \\, and sed turns \\ into \.
18096 sed -n \
18097 "s/'/'\\\\''/g;
18098 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18099 ;; #(
18100 *)
18101 # `set' quotes correctly as required by POSIX, so do not add quotes.
18102 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18103 ;;
18104 esac |
18105 sort
18106 ) |
18107 sed '
18108 /^ac_cv_env_/b end
18109 t clear
18110 :clear
18111 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
18112 t end
18113 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18114 :end' >>confcache
18115 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18116 if test -w "$cache_file"; then
18117 if test "x$cache_file" != "x/dev/null"; then
18118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18119 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
18120 if test ! -f "$cache_file" || test -h "$cache_file"; then
18121 cat confcache >"$cache_file"
18122 else
18123 case $cache_file in #(
18124 */* | ?:*)
18125 mv -f confcache "$cache_file"$$ &&
18126 mv -f "$cache_file"$$ "$cache_file" ;; #(
18127 *)
18128 mv -f confcache "$cache_file" ;;
18129 esac
18130 fi
18131 fi
18132 else
18133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18134 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
18135 fi
18136 fi
18137 rm -f confcache
18138
18139 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18140 # Let make expand exec_prefix.
18141 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18142
18143 DEFS=-DHAVE_CONFIG_H
18144
18145 ac_libobjs=
18146 ac_ltlibobjs=
18147 U=
18148 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18149 # 1. Remove the extension, and $U if already installed.
18150 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18151 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
18152 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18153 # will be set to the directory where LIBOBJS objects are built.
18154 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18155 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18156 done
18157 LIBOBJS=$ac_libobjs
18158
18159 LTLIBOBJS=$ac_ltlibobjs
18160
18161
18162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18163 printf %s "checking that generated files are newer than configure... " >&6; }
18164 if test -n "$am_sleep_pid"; then
18165 # Hide warnings about reused PIDs.
18166 wait $am_sleep_pid 2>/dev/null
18167 fi
18168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
18169 printf "%s\n" "done" >&6; }
18170 if test -n "$EXEEXT"; then
18171 am__EXEEXT_TRUE=
18172 am__EXEEXT_FALSE='#'
18173 else
18174 am__EXEEXT_TRUE='#'
18175 am__EXEEXT_FALSE=
18176 fi
18177
18178 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18179 as_fn_error $? "conditional \"AMDEP\" was never defined.
18180 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18181 fi
18182 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18183 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18184 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18185 fi
18186 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18187 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
18188 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18189 fi
18190
18191 if test -z "${WITH_RSBTEST_TRUE}" && test -z "${WITH_RSBTEST_FALSE}"; then
18192 as_fn_error $? "conditional \"WITH_RSBTEST\" was never defined.
18193 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18194 fi
18195 if test -z "${WITH_RSBTEST_TRUE}" && test -z "${WITH_RSBTEST_FALSE}"; then
18196 as_fn_error $? "conditional \"WITH_RSBTEST\" was never defined.
18197 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18198 fi
18199 if test -z "${USE_MKL_SPBLAS_TRUE}" && test -z "${USE_MKL_SPBLAS_FALSE}"; then
18200 as_fn_error $? "conditional \"USE_MKL_SPBLAS\" was never defined.
18201 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18202 fi
18203 if test -z "${WANT_MINIMAL_LIBRSBPP_TRUE}" && test -z "${WANT_MINIMAL_LIBRSBPP_FALSE}"; then
18204 as_fn_error $? "conditional \"WANT_MINIMAL_LIBRSBPP\" was never defined.
18205 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18206 fi
18207 if test -z "${WANT_PROGRAMS_TRUE}" && test -z "${WANT_PROGRAMS_FALSE}"; then
18208 as_fn_error $? "conditional \"WANT_PROGRAMS\" was never defined.
18209 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18210 fi
18211 if test -z "${WANT_CUSTOM_NUMERICAL_TYPES_TRUE}" && test -z "${WANT_CUSTOM_NUMERICAL_TYPES_FALSE}"; then
18212 as_fn_error $? "conditional \"WANT_CUSTOM_NUMERICAL_TYPES\" was never defined.
18213 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18214 fi
18215 if test -z "${WITH_CXX17_FILESYSTEM_TRUE}" && test -z "${WITH_CXX17_FILESYSTEM_FALSE}"; then
18216 as_fn_error $? "conditional \"WITH_CXX17_FILESYSTEM\" was never defined.
18217 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18218 fi
18219 if test -z "${HAVE_RSBPP_HPP_TRUE}" && test -z "${HAVE_RSBPP_HPP_FALSE}"; then
18220 as_fn_error $? "conditional \"HAVE_RSBPP_HPP\" was never defined.
18221 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18222 fi
18223 if test -z "${HAVE_RSB_HPP_TRUE}" && test -z "${HAVE_RSB_HPP_FALSE}"; then
18224 as_fn_error $? "conditional \"HAVE_RSB_HPP\" was never defined.
18225 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18226 fi
18227 if test -z "${HAVE_DEV_NULL_TRUE}" && test -z "${HAVE_DEV_NULL_FALSE}"; then
18228 as_fn_error $? "conditional \"HAVE_DEV_NULL\" was never defined.
18229 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18230 fi
18231 if test -z "${HAVE_RUNNABLE_TESTS_TRUE}" && test -z "${HAVE_RUNNABLE_TESTS_FALSE}"; then
18232 as_fn_error $? "conditional \"HAVE_RUNNABLE_TESTS\" was never defined.
18233 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18234 fi
18235 if test -z "${HAVE_DD_TRUE}" && test -z "${HAVE_DD_FALSE}"; then
18236 as_fn_error $? "conditional \"HAVE_DD\" was never defined.
18237 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18238 fi
18239 if test -z "${HAVE_FULL_DD_TRUE}" && test -z "${HAVE_FULL_DD_FALSE}"; then
18240 as_fn_error $? "conditional \"HAVE_FULL_DD\" was never defined.
18241 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18242 fi
18243 if test -z "${HAVE_DD_TRUE}" && test -z "${HAVE_DD_FALSE}"; then
18244 as_fn_error $? "conditional \"HAVE_DD\" was never defined.
18245 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18246 fi
18247 if test -z "${HAVE_FULL_DD_TRUE}" && test -z "${HAVE_FULL_DD_FALSE}"; then
18248 as_fn_error $? "conditional \"HAVE_FULL_DD\" was never defined.
18249 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18250 fi
18251 if test -z "${HAVE_DD_TRUE}" && test -z "${HAVE_DD_FALSE}"; then
18252 as_fn_error $? "conditional \"HAVE_DD\" was never defined.
18253 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18254 fi
18255 if test -z "${HAVE_FULL_DD_TRUE}" && test -z "${HAVE_FULL_DD_FALSE}"; then
18256 as_fn_error $? "conditional \"HAVE_FULL_DD\" was never defined.
18257 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18258 fi
18259 if test -z "${HAVE_DD_TRUE}" && test -z "${HAVE_DD_FALSE}"; then
18260 as_fn_error $? "conditional \"HAVE_DD\" was never defined.
18261 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18262 fi
18263 if test -z "${HAVE_FULL_DD_TRUE}" && test -z "${HAVE_FULL_DD_FALSE}"; then
18264 as_fn_error $? "conditional \"HAVE_FULL_DD\" was never defined.
18265 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18266 fi
18267 if test -z "${HAVE_WHICH_TRUE}" && test -z "${HAVE_WHICH_FALSE}"; then
18268 as_fn_error $? "conditional \"HAVE_WHICH\" was never defined.
18269 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18270 fi
18271 if test -z "${HAVE_TIMEOUT_TRUE}" && test -z "${HAVE_TIMEOUT_FALSE}"; then
18272 as_fn_error $? "conditional \"HAVE_TIMEOUT\" was never defined.
18273 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18274 fi
18275
18276 : "${CONFIG_STATUS=./config.status}"
18277 ac_write_fail=0
18278 ac_clean_files_save=$ac_clean_files
18279 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18281 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
18282 as_write_fail=0
18283 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18284 #! $SHELL
18285 # Generated by $as_me.
18286 # Run this file to recreate the current configuration.
18287 # Compiler output produced by configure, useful for debugging
18288 # configure, is in config.log if it exists.
18289
18290 debug=false
18291 ac_cs_recheck=false
18292 ac_cs_silent=false
18293
18294 SHELL=\${CONFIG_SHELL-$SHELL}
18295 export SHELL
18296 _ASEOF
18297 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18298 ## -------------------- ##
18299 ## M4sh Initialization. ##
18300 ## -------------------- ##
18301
18302 # Be more Bourne compatible
18303 DUALCASE=1; export DUALCASE # for MKS sh
18304 as_nop=:
18305 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
18306 then :
18307 emulate sh
18308 NULLCMD=:
18309 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18310 # is contrary to our usage. Disable this feature.
18311 alias -g '${1+"$@"}'='"$@"'
18312 setopt NO_GLOB_SUBST
18313 else $as_nop
18314 case `(set -o) 2>/dev/null` in #(
18315 *posix*) :
18316 set -o posix ;; #(
18317 *) :
18318 ;;
18319 esac
18320 fi
18321
18322
18323
18324 # Reset variables that may have inherited troublesome values from
18325 # the environment.
18326
18327 # IFS needs to be set, to space, tab, and newline, in precisely that order.
18328 # (If _AS_PATH_WALK were called with IFS unset, it would have the
18329 # side effect of setting IFS to empty, thus disabling word splitting.)
18330 # Quoting is to prevent editors from complaining about space-tab.
18331 as_nl='
18332 '
18333 export as_nl
18334 IFS=" "" $as_nl"
18335
18336 PS1='$ '
18337 PS2='> '
18338 PS4='+ '
18339
18340 # Ensure predictable behavior from utilities with locale-dependent output.
18341 LC_ALL=C
18342 export LC_ALL
18343 LANGUAGE=C
18344 export LANGUAGE
18345
18346 # We cannot yet rely on "unset" to work, but we need these variables
18347 # to be unset--not just set to an empty or harmless value--now, to
18348 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
18349 # also avoids known problems related to "unset" and subshell syntax
18350 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
18351 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
18352 do eval test \${$as_var+y} \
18353 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18354 done
18355
18356 # Ensure that fds 0, 1, and 2 are open.
18357 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
18358 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
18359 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
18360
18361 # The user is always right.
18362 if ${PATH_SEPARATOR+false} :; then
18363 PATH_SEPARATOR=:
18364 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18365 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18366 PATH_SEPARATOR=';'
18367 }
18368 fi
18369
18370
18371 # Find who we are. Look in the path if we contain no directory separator.
18372 as_myself=
18373 case $0 in #((
18374 *[\\/]* ) as_myself=$0 ;;
18375 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18376 for as_dir in $PATH
18377 do
18378 IFS=$as_save_IFS
18379 case $as_dir in #(((
18380 '') as_dir=./ ;;
18381 */) ;;
18382 *) as_dir=$as_dir/ ;;
18383 esac
18384 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
18385 done
18386 IFS=$as_save_IFS
18387
18388 ;;
18389 esac
18390 # We did not find ourselves, most probably we were run as `sh COMMAND'
18391 # in which case we are not to be found in the path.
18392 if test "x$as_myself" = x; then
18393 as_myself=$0
18394 fi
18395 if test ! -f "$as_myself"; then
18396 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18397 exit 1
18398 fi
18399
18400
18401
18402 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18403 # ----------------------------------------
18404 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18405 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18406 # script with STATUS, using 1 if that was 0.
18407 as_fn_error ()
18408 {
18409 as_status=$1; test $as_status -eq 0 && as_status=1
18410 if test "$4"; then
18411 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18412 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18413 fi
18414 printf "%s\n" "$as_me: error: $2" >&2
18415 as_fn_exit $as_status
18416 } # as_fn_error
18417
18418
18419
18420 # as_fn_set_status STATUS
18421 # -----------------------
18422 # Set $? to STATUS, without forking.
18423 as_fn_set_status ()
18424 {
18425 return $1
18426 } # as_fn_set_status
18427
18428 # as_fn_exit STATUS
18429 # -----------------
18430 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18431 as_fn_exit ()
18432 {
18433 set +e
18434 as_fn_set_status $1
18435 exit $1
18436 } # as_fn_exit
18437
18438 # as_fn_unset VAR
18439 # ---------------
18440 # Portably unset VAR.
18441 as_fn_unset ()
18442 {
18443 { eval $1=; unset $1;}
18444 }
18445 as_unset=as_fn_unset
18446
18447 # as_fn_append VAR VALUE
18448 # ----------------------
18449 # Append the text in VALUE to the end of the definition contained in VAR. Take
18450 # advantage of any shell optimizations that allow amortized linear growth over
18451 # repeated appends, instead of the typical quadratic growth present in naive
18452 # implementations.
18453 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
18454 then :
18455 eval 'as_fn_append ()
18456 {
18457 eval $1+=\$2
18458 }'
18459 else $as_nop
18460 as_fn_append ()
18461 {
18462 eval $1=\$$1\$2
18463 }
18464 fi # as_fn_append
18465
18466 # as_fn_arith ARG...
18467 # ------------------
18468 # Perform arithmetic evaluation on the ARGs, and store the result in the
18469 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18470 # must be portable across $(()) and expr.
18471 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
18472 then :
18473 eval 'as_fn_arith ()
18474 {
18475 as_val=$(( $* ))
18476 }'
18477 else $as_nop
18478 as_fn_arith ()
18479 {
18480 as_val=`expr "$@" || test $? -eq 1`
18481 }
18482 fi # as_fn_arith
18483
18484
18485 if expr a : '\(a\)' >/dev/null 2>&1 &&
18486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18487 as_expr=expr
18488 else
18489 as_expr=false
18490 fi
18491
18492 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18493 as_basename=basename
18494 else
18495 as_basename=false
18496 fi
18497
18498 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18499 as_dirname=dirname
18500 else
18501 as_dirname=false
18502 fi
18503
18504 as_me=`$as_basename -- "$0" ||
18505 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18506 X"$0" : 'X\(//\)$' \| \
18507 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18508 printf "%s\n" X/"$0" |
18509 sed '/^.*\/\([^/][^/]*\)\/*$/{
18510 s//\1/
18511 q
18512 }
18513 /^X\/\(\/\/\)$/{
18514 s//\1/
18515 q
18516 }
18517 /^X\/\(\/\).*/{
18518 s//\1/
18519 q
18520 }
18521 s/.*/./; q'`
18522
18523 # Avoid depending upon Character Ranges.
18524 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18525 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18526 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18527 as_cr_digits='0123456789'
18528 as_cr_alnum=$as_cr_Letters$as_cr_digits
18529
18530
18531 # Determine whether it's possible to make 'echo' print without a newline.
18532 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
18533 # for compatibility with existing Makefiles.
18534 ECHO_C= ECHO_N= ECHO_T=
18535 case `echo -n x` in #(((((
18536 -n*)
18537 case `echo 'xy\c'` in
18538 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18539 xy) ECHO_C='\c';;
18540 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18541 ECHO_T=' ';;
18542 esac;;
18543 *)
18544 ECHO_N='-n';;
18545 esac
18546
18547 # For backward compatibility with old third-party macros, we provide
18548 # the shell variables $as_echo and $as_echo_n. New code should use
18549 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
18550 as_echo='printf %s\n'
18551 as_echo_n='printf %s'
18552
18553 rm -f conf$$ conf$$.exe conf$$.file
18554 if test -d conf$$.dir; then
18555 rm -f conf$$.dir/conf$$.file
18556 else
18557 rm -f conf$$.dir
18558 mkdir conf$$.dir 2>/dev/null
18559 fi
18560 if (echo >conf$$.file) 2>/dev/null; then
18561 if ln -s conf$$.file conf$$ 2>/dev/null; then
18562 as_ln_s='ln -s'
18563 # ... but there are two gotchas:
18564 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18565 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18566 # In both cases, we have to default to `cp -pR'.
18567 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18568 as_ln_s='cp -pR'
18569 elif ln conf$$.file conf$$ 2>/dev/null; then
18570 as_ln_s=ln
18571 else
18572 as_ln_s='cp -pR'
18573 fi
18574 else
18575 as_ln_s='cp -pR'
18576 fi
18577 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18578 rmdir conf$$.dir 2>/dev/null
18579
18580
18581 # as_fn_mkdir_p
18582 # -------------
18583 # Create "$as_dir" as a directory, including parents if necessary.
18584 as_fn_mkdir_p ()
18585 {
18586
18587 case $as_dir in #(
18588 -*) as_dir=./$as_dir;;
18589 esac
18590 test -d "$as_dir" || eval $as_mkdir_p || {
18591 as_dirs=
18592 while :; do
18593 case $as_dir in #(
18594 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18595 *) as_qdir=$as_dir;;
18596 esac
18597 as_dirs="'$as_qdir' $as_dirs"
18598 as_dir=`$as_dirname -- "$as_dir" ||
18599 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18600 X"$as_dir" : 'X\(//\)[^/]' \| \
18601 X"$as_dir" : 'X\(//\)$' \| \
18602 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18603 printf "%s\n" X"$as_dir" |
18604 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18605 s//\1/
18606 q
18607 }
18608 /^X\(\/\/\)[^/].*/{
18609 s//\1/
18610 q
18611 }
18612 /^X\(\/\/\)$/{
18613 s//\1/
18614 q
18615 }
18616 /^X\(\/\).*/{
18617 s//\1/
18618 q
18619 }
18620 s/.*/./; q'`
18621 test -d "$as_dir" && break
18622 done
18623 test -z "$as_dirs" || eval "mkdir $as_dirs"
18624 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18625
18626
18627 } # as_fn_mkdir_p
18628 if mkdir -p . 2>/dev/null; then
18629 as_mkdir_p='mkdir -p "$as_dir"'
18630 else
18631 test -d ./-p && rmdir ./-p
18632 as_mkdir_p=false
18633 fi
18634
18635
18636 # as_fn_executable_p FILE
18637 # -----------------------
18638 # Test if FILE is an executable regular file.
18639 as_fn_executable_p ()
18640 {
18641 test -f "$1" && test -x "$1"
18642 } # as_fn_executable_p
18643 as_test_x='test -x'
18644 as_executable_p=as_fn_executable_p
18645
18646 # Sed expression to map a string onto a valid CPP name.
18647 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18648
18649 # Sed expression to map a string onto a valid variable name.
18650 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18651
18652
18653 exec 6>&1
18654 ## ----------------------------------- ##
18655 ## Main body of $CONFIG_STATUS script. ##
18656 ## ----------------------------------- ##
18657 _ASEOF
18658 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18659
18660 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18661 # Save the log message, to keep $0 and so on meaningful, and to
18662 # report actual input values of CONFIG_FILES etc. instead of their
18663 # values after options handling.
18664 ac_log="
18665 This file was extended by rsbtest $as_me 0.0, which was
18666 generated by GNU Autoconf 2.71. Invocation command line was
18667
18668 CONFIG_FILES = $CONFIG_FILES
18669 CONFIG_HEADERS = $CONFIG_HEADERS
18670 CONFIG_LINKS = $CONFIG_LINKS
18671 CONFIG_COMMANDS = $CONFIG_COMMANDS
18672 $ $0 $@
18673
18674 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18675 "
18676
18677 _ACEOF
18678
18679 case $ac_config_files in *"
18680 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18681 esac
18682
18683 case $ac_config_headers in *"
18684 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18685 esac
18686
18687
18688 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18689 # Files that config.status was made for.
18690 config_files="$ac_config_files"
18691 config_headers="$ac_config_headers"
18692 config_commands="$ac_config_commands"
18693
18694 _ACEOF
18695
18696 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18697 ac_cs_usage="\
18698 \`$as_me' instantiates files and other configuration actions
18699 from templates according to the current configuration. Unless the files
18700 and actions are specified as TAGs, all are instantiated by default.
18701
18702 Usage: $0 [OPTION]... [TAG]...
18703
18704 -h, --help print this help, then exit
18705 -V, --version print version number and configuration settings, then exit
18706 --config print configuration, then exit
18707 -q, --quiet, --silent
18708 do not print progress messages
18709 -d, --debug don't remove temporary files
18710 --recheck update $as_me by reconfiguring in the same conditions
18711 --file=FILE[:TEMPLATE]
18712 instantiate the configuration file FILE
18713 --header=FILE[:TEMPLATE]
18714 instantiate the configuration header FILE
18715
18716 Configuration files:
18717 $config_files
18718
18719 Configuration headers:
18720 $config_headers
18721
18722 Configuration commands:
18723 $config_commands
18724
18725 Report bugs to <michelemartone_AT_users_DOT_sourceforge_DOT_net>."
18726
18727 _ACEOF
18728 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
18729 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
18730 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18731 ac_cs_config='$ac_cs_config_escaped'
18732 ac_cs_version="\\
18733 rsbtest config.status 0.0
18734 configured by $0, generated by GNU Autoconf 2.71,
18735 with options \\"\$ac_cs_config\\"
18736
18737 Copyright (C) 2021 Free Software Foundation, Inc.
18738 This config.status script is free software; the Free Software Foundation
18739 gives unlimited permission to copy, distribute and modify it."
18740
18741 ac_pwd='$ac_pwd'
18742 srcdir='$srcdir'
18743 INSTALL='$INSTALL'
18744 MKDIR_P='$MKDIR_P'
18745 AWK='$AWK'
18746 test -n "\$AWK" || AWK=awk
18747 _ACEOF
18748
18749 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18750 # The default lists apply if the user does not specify any file.
18751 ac_need_defaults=:
18752 while test $# != 0
18753 do
18754 case $1 in
18755 --*=?*)
18756 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18757 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18758 ac_shift=:
18759 ;;
18760 --*=)
18761 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18762 ac_optarg=
18763 ac_shift=:
18764 ;;
18765 *)
18766 ac_option=$1
18767 ac_optarg=$2
18768 ac_shift=shift
18769 ;;
18770 esac
18771
18772 case $ac_option in
18773 # Handling of the options.
18774 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18775 ac_cs_recheck=: ;;
18776 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18777 printf "%s\n" "$ac_cs_version"; exit ;;
18778 --config | --confi | --conf | --con | --co | --c )
18779 printf "%s\n" "$ac_cs_config"; exit ;;
18780 --debug | --debu | --deb | --de | --d | -d )
18781 debug=: ;;
18782 --file | --fil | --fi | --f )
18783 $ac_shift
18784 case $ac_optarg in
18785 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18786 '') as_fn_error $? "missing file argument" ;;
18787 esac
18788 as_fn_append CONFIG_FILES " '$ac_optarg'"
18789 ac_need_defaults=false;;
18790 --header | --heade | --head | --hea )
18791 $ac_shift
18792 case $ac_optarg in
18793 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18794 esac
18795 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18796 ac_need_defaults=false;;
18797 --he | --h)
18798 # Conflict between --help and --header
18799 as_fn_error $? "ambiguous option: \`$1'
18800 Try \`$0 --help' for more information.";;
18801 --help | --hel | -h )
18802 printf "%s\n" "$ac_cs_usage"; exit ;;
18803 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18804 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18805 ac_cs_silent=: ;;
18806
18807 # This is an error.
18808 -*) as_fn_error $? "unrecognized option: \`$1'
18809 Try \`$0 --help' for more information." ;;
18810
18811 *) as_fn_append ac_config_targets " $1"
18812 ac_need_defaults=false ;;
18813
18814 esac
18815 shift
18816 done
18817
18818 ac_configure_extra_args=
18819
18820 if $ac_cs_silent; then
18821 exec 6>/dev/null
18822 ac_configure_extra_args="$ac_configure_extra_args --silent"
18823 fi
18824
18825 _ACEOF
18826 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18827 if \$ac_cs_recheck; then
18828 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18829 shift
18830 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
18831 CONFIG_SHELL='$SHELL'
18832 export CONFIG_SHELL
18833 exec "\$@"
18834 fi
18835
18836 _ACEOF
18837 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18838 exec 5>>config.log
18839 {
18840 echo
18841 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18842 ## Running $as_me. ##
18843 _ASBOX
18844 printf "%s\n" "$ac_log"
18845 } >&5
18846
18847 _ACEOF
18848 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18849 #
18850 # INIT-COMMANDS
18851 #
18852 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
18853
18854
18855 # The HP-UX ksh and POSIX shell print the target directory to stdout
18856 # if CDPATH is set.
18857 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18858
18859 sed_quote_subst='$sed_quote_subst'
18860 double_quote_subst='$double_quote_subst'
18861 delay_variable_subst='$delay_variable_subst'
18862 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18863 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18864 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18865 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18866 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18867 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18868 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
18869 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18870 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18871 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18872 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18873 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18874 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18875 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18876 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18877 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18878 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18879 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18880 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18881 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18882 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18883 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18884 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18885 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18886 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18887 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18888 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18889 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18890 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18891 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18892 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18893 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18894 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18895 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18896 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
18897 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18898 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18899 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18900 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18901 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18902 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18903 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18904 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18905 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
18906 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18907 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18908 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18909 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18910 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18911 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18912 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18913 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18914 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18915 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18916 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18917 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18918 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18919 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18920 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
18921 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18922 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"`'
18923 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
18924 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18925 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18926 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
18927 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18928 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18929 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18930 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18931 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18932 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18933 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18934 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18935 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18936 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18937 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18938 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18939 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18940 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18941 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18942 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18943 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18944 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18945 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18946 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18947 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18948 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18949 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18950 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18951 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18952 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18953 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18954 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18955 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18956 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18957 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18958 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18959 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18960 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18961 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18962 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18963 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18964 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18965 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18966 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18967 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18968 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18969 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18970 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18971 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18972 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18973 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18974 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18975 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18976 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18977 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18978 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18979 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18980 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18981 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18982 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18983 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18984 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18985 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18986 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18987 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18988 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18989 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18990 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18991 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
18992 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
18993 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18994 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18995 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18996 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18997 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18998 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18999 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
19000 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
19001 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
19002 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
19003 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
19004 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
19005 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
19006 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
19007 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19008 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19009 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
19010 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
19011 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
19012 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
19013 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
19014 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
19015 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
19016 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
19017 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
19018 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19019 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19020 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
19021 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19022 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19023 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19024 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19025 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19026 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19027 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
19028 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19029 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19030 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19031 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
19032 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
19033 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
19034 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
19035 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
19036 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
19037 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
19038 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
19039 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
19040 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19041 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19042 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19043 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19044 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19045 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
19046 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
19047 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
19048 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19049 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19050 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
19051 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
19052 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
19053
19054 LTCC='$LTCC'
19055 LTCFLAGS='$LTCFLAGS'
19056 compiler='$compiler_DEFAULT'
19057
19058 # A function that is used when there is no print builtin or printf.
19059 func_fallback_echo ()
19060 {
19061 eval 'cat <<_LTECHO_EOF
19062 \$1
19063 _LTECHO_EOF'
19064 }
19065
19066 # Quote evaled strings.
19067 for var in SHELL \
19068 ECHO \
19069 PATH_SEPARATOR \
19070 SED \
19071 GREP \
19072 EGREP \
19073 FGREP \
19074 LD \
19075 NM \
19076 LN_S \
19077 lt_SP2NL \
19078 lt_NL2SP \
19079 reload_flag \
19080 FILECMD \
19081 OBJDUMP \
19082 deplibs_check_method \
19083 file_magic_cmd \
19084 file_magic_glob \
19085 want_nocaseglob \
19086 DLLTOOL \
19087 sharedlib_from_linklib_cmd \
19088 AR \
19089 archiver_list_spec \
19090 STRIP \
19091 RANLIB \
19092 CC \
19093 CFLAGS \
19094 compiler \
19095 lt_cv_sys_global_symbol_pipe \
19096 lt_cv_sys_global_symbol_to_cdecl \
19097 lt_cv_sys_global_symbol_to_import \
19098 lt_cv_sys_global_symbol_to_c_name_address \
19099 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19100 lt_cv_nm_interface \
19101 nm_file_list_spec \
19102 lt_cv_truncate_bin \
19103 lt_prog_compiler_no_builtin_flag \
19104 lt_prog_compiler_pic \
19105 lt_prog_compiler_wl \
19106 lt_prog_compiler_static \
19107 lt_cv_prog_compiler_c_o \
19108 need_locks \
19109 MANIFEST_TOOL \
19110 DSYMUTIL \
19111 NMEDIT \
19112 LIPO \
19113 OTOOL \
19114 OTOOL64 \
19115 shrext_cmds \
19116 export_dynamic_flag_spec \
19117 whole_archive_flag_spec \
19118 compiler_needs_object \
19119 with_gnu_ld \
19120 allow_undefined_flag \
19121 no_undefined_flag \
19122 hardcode_libdir_flag_spec \
19123 hardcode_libdir_separator \
19124 exclude_expsyms \
19125 include_expsyms \
19126 file_list_spec \
19127 variables_saved_for_relink \
19128 libname_spec \
19129 library_names_spec \
19130 soname_spec \
19131 install_override_mode \
19132 finish_eval \
19133 old_striplib \
19134 striplib \
19135 compiler_lib_search_dirs \
19136 predep_objects \
19137 postdep_objects \
19138 predeps \
19139 postdeps \
19140 compiler_lib_search_path \
19141 LD_CXX \
19142 reload_flag_CXX \
19143 compiler_CXX \
19144 lt_prog_compiler_no_builtin_flag_CXX \
19145 lt_prog_compiler_pic_CXX \
19146 lt_prog_compiler_wl_CXX \
19147 lt_prog_compiler_static_CXX \
19148 lt_cv_prog_compiler_c_o_CXX \
19149 export_dynamic_flag_spec_CXX \
19150 whole_archive_flag_spec_CXX \
19151 compiler_needs_object_CXX \
19152 with_gnu_ld_CXX \
19153 allow_undefined_flag_CXX \
19154 no_undefined_flag_CXX \
19155 hardcode_libdir_flag_spec_CXX \
19156 hardcode_libdir_separator_CXX \
19157 exclude_expsyms_CXX \
19158 include_expsyms_CXX \
19159 file_list_spec_CXX \
19160 compiler_lib_search_dirs_CXX \
19161 predep_objects_CXX \
19162 postdep_objects_CXX \
19163 predeps_CXX \
19164 postdeps_CXX \
19165 compiler_lib_search_path_CXX; do
19166 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19167 *[\\\\\\\`\\"\\\$]*)
19168 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19169 ;;
19170 *)
19171 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19172 ;;
19173 esac
19174 done
19175
19176 # Double-quote double-evaled strings.
19177 for var in reload_cmds \
19178 old_postinstall_cmds \
19179 old_postuninstall_cmds \
19180 old_archive_cmds \
19181 extract_expsyms_cmds \
19182 old_archive_from_new_cmds \
19183 old_archive_from_expsyms_cmds \
19184 archive_cmds \
19185 archive_expsym_cmds \
19186 module_cmds \
19187 module_expsym_cmds \
19188 export_symbols_cmds \
19189 prelink_cmds \
19190 postlink_cmds \
19191 postinstall_cmds \
19192 postuninstall_cmds \
19193 finish_cmds \
19194 sys_lib_search_path_spec \
19195 configure_time_dlsearch_path \
19196 configure_time_lt_sys_library_path \
19197 reload_cmds_CXX \
19198 old_archive_cmds_CXX \
19199 old_archive_from_new_cmds_CXX \
19200 old_archive_from_expsyms_cmds_CXX \
19201 archive_cmds_CXX \
19202 archive_expsym_cmds_CXX \
19203 module_cmds_CXX \
19204 module_expsym_cmds_CXX \
19205 export_symbols_cmds_CXX \
19206 prelink_cmds_CXX \
19207 postlink_cmds_CXX; do
19208 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19209 *[\\\\\\\`\\"\\\$]*)
19210 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19211 ;;
19212 *)
19213 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19214 ;;
19215 esac
19216 done
19217
19218 ac_aux_dir='$ac_aux_dir'
19219
19220 # See if we are running on zsh, and set the options that allow our
19221 # commands through without removal of \ escapes INIT.
19222 if test -n "\${ZSH_VERSION+set}"; then
19223 setopt NO_GLOB_SUBST
19224 fi
19225
19226
19227 PACKAGE='$PACKAGE'
19228 VERSION='$VERSION'
19229 RM='$RM'
19230 ofile='$ofile'
19231
19232
19233
19234
19235
19236
19237 _ACEOF
19238
19239 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19240
19241 # Handling of arguments.
19242 for ac_config_target in $ac_config_targets
19243 do
19244 case $ac_config_target in
19245 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19246 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19247 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19248 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19249
19250 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19251 esac
19252 done
19253
19254
19255 # If the user did not use the arguments to specify the items to instantiate,
19256 # then the envvar interface is used. Set only those that are not.
19257 # We use the long form for the default assignment because of an extremely
19258 # bizarre bug on SunOS 4.1.3.
19259 if $ac_need_defaults; then
19260 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
19261 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
19262 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
19263 fi
19264
19265 # Have a temporary directory for convenience. Make it in the build tree
19266 # simply because there is no reason against having it here, and in addition,
19267 # creating and moving files from /tmp can sometimes cause problems.
19268 # Hook for its removal unless debugging.
19269 # Note that there is a small window in which the directory will not be cleaned:
19270 # after its creation but before its name has been assigned to `$tmp'.
19271 $debug ||
19272 {
19273 tmp= ac_tmp=
19274 trap 'exit_status=$?
19275 : "${ac_tmp:=$tmp}"
19276 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19277 ' 0
19278 trap 'as_fn_exit 1' 1 2 13 15
19279 }
19280 # Create a (secure) tmp directory for tmp files.
19281
19282 {
19283 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19284 test -d "$tmp"
19285 } ||
19286 {
19287 tmp=./conf$$-$RANDOM
19288 (umask 077 && mkdir "$tmp")
19289 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19290 ac_tmp=$tmp
19291
19292 # Set up the scripts for CONFIG_FILES section.
19293 # No need to generate them if there are no CONFIG_FILES.
19294 # This happens for instance with `./config.status config.h'.
19295 if test -n "$CONFIG_FILES"; then
19296
19297
19298 ac_cr=`echo X | tr X '\015'`
19299 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19300 # But we know of no other shell where ac_cr would be empty at this
19301 # point, so we can use a bashism as a fallback.
19302 if test "x$ac_cr" = x; then
19303 eval ac_cr=\$\'\\r\'
19304 fi
19305 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19306 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19307 ac_cs_awk_cr='\\r'
19308 else
19309 ac_cs_awk_cr=$ac_cr
19310 fi
19311
19312 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19313 _ACEOF
19314
19315
19316 {
19317 echo "cat >conf$$subs.awk <<_ACEOF" &&
19318 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19319 echo "_ACEOF"
19320 } >conf$$subs.sh ||
19321 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19322 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19323 ac_delim='%!_!# '
19324 for ac_last_try in false false false false false :; do
19325 . ./conf$$subs.sh ||
19326 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19327
19328 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19329 if test $ac_delim_n = $ac_delim_num; then
19330 break
19331 elif $ac_last_try; then
19332 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19333 else
19334 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19335 fi
19336 done
19337 rm -f conf$$subs.sh
19338
19339 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19340 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19341 _ACEOF
19342 sed -n '
19343 h
19344 s/^/S["/; s/!.*/"]=/
19345 p
19346 g
19347 s/^[^!]*!//
19348 :repl
19349 t repl
19350 s/'"$ac_delim"'$//
19351 t delim
19352 :nl
19353 h
19354 s/\(.\{148\}\)..*/\1/
19355 t more1
19356 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19357 p
19358 n
19359 b repl
19360 :more1
19361 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19362 p
19363 g
19364 s/.\{148\}//
19365 t nl
19366 :delim
19367 h
19368 s/\(.\{148\}\)..*/\1/
19369 t more2
19370 s/["\\]/\\&/g; s/^/"/; s/$/"/
19371 p
19372 b
19373 :more2
19374 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19375 p
19376 g
19377 s/.\{148\}//
19378 t delim
19379 ' <conf$$subs.awk | sed '
19380 /^[^""]/{
19381 N
19382 s/\n//
19383 }
19384 ' >>$CONFIG_STATUS || ac_write_fail=1
19385 rm -f conf$$subs.awk
19386 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19387 _ACAWK
19388 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19389 for (key in S) S_is_set[key] = 1
19390 FS = ""
19391
19392 }
19393 {
19394 line = $ 0
19395 nfields = split(line, field, "@")
19396 substed = 0
19397 len = length(field[1])
19398 for (i = 2; i < nfields; i++) {
19399 key = field[i]
19400 keylen = length(key)
19401 if (S_is_set[key]) {
19402 value = S[key]
19403 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19404 len += length(value) + length(field[++i])
19405 substed = 1
19406 } else
19407 len += 1 + keylen
19408 }
19409
19410 print line
19411 }
19412
19413 _ACAWK
19414 _ACEOF
19415 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19416 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19417 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19418 else
19419 cat
19420 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19421 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19422 _ACEOF
19423
19424 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19425 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19426 # trailing colons and then remove the whole line if VPATH becomes empty
19427 # (actually we leave an empty line to preserve line numbers).
19428 if test "x$srcdir" = x.; then
19429 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19430 h
19431 s///
19432 s/^/:/
19433 s/[ ]*$/:/
19434 s/:\$(srcdir):/:/g
19435 s/:\${srcdir}:/:/g
19436 s/:@srcdir@:/:/g
19437 s/^:*//
19438 s/:*$//
19439 x
19440 s/\(=[ ]*\).*/\1/
19441 G
19442 s/\n//
19443 s/^[^=]*=[ ]*$//
19444 }'
19445 fi
19446
19447 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19448 fi # test -n "$CONFIG_FILES"
19449
19450 # Set up the scripts for CONFIG_HEADERS section.
19451 # No need to generate them if there are no CONFIG_HEADERS.
19452 # This happens for instance with `./config.status Makefile'.
19453 if test -n "$CONFIG_HEADERS"; then
19454 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19455 BEGIN {
19456 _ACEOF
19457
19458 # Transform confdefs.h into an awk script `defines.awk', embedded as
19459 # here-document in config.status, that substitutes the proper values into
19460 # config.h.in to produce config.h.
19461
19462 # Create a delimiter string that does not exist in confdefs.h, to ease
19463 # handling of long lines.
19464 ac_delim='%!_!# '
19465 for ac_last_try in false false :; do
19466 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19467 if test -z "$ac_tt"; then
19468 break
19469 elif $ac_last_try; then
19470 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19471 else
19472 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19473 fi
19474 done
19475
19476 # For the awk script, D is an array of macro values keyed by name,
19477 # likewise P contains macro parameters if any. Preserve backslash
19478 # newline sequences.
19479
19480 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19481 sed -n '
19482 s/.\{148\}/&'"$ac_delim"'/g
19483 t rset
19484 :rset
19485 s/^[ ]*#[ ]*define[ ][ ]*/ /
19486 t def
19487 d
19488 :def
19489 s/\\$//
19490 t bsnl
19491 s/["\\]/\\&/g
19492 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19493 D["\1"]=" \3"/p
19494 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19495 d
19496 :bsnl
19497 s/["\\]/\\&/g
19498 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19499 D["\1"]=" \3\\\\\\n"\\/p
19500 t cont
19501 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19502 t cont
19503 d
19504 :cont
19505 n
19506 s/.\{148\}/&'"$ac_delim"'/g
19507 t clear
19508 :clear
19509 s/\\$//
19510 t bsnlc
19511 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19512 d
19513 :bsnlc
19514 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19515 b cont
19516 ' <confdefs.h | sed '
19517 s/'"$ac_delim"'/"\\\
19518 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19519
19520 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19521 for (key in D) D_is_set[key] = 1
19522 FS = ""
19523 }
19524 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19525 line = \$ 0
19526 split(line, arg, " ")
19527 if (arg[1] == "#") {
19528 defundef = arg[2]
19529 mac1 = arg[3]
19530 } else {
19531 defundef = substr(arg[1], 2)
19532 mac1 = arg[2]
19533 }
19534 split(mac1, mac2, "(") #)
19535 macro = mac2[1]
19536 prefix = substr(line, 1, index(line, defundef) - 1)
19537 if (D_is_set[macro]) {
19538 # Preserve the white space surrounding the "#".
19539 print prefix "define", macro P[macro] D[macro]
19540 next
19541 } else {
19542 # Replace #undef with comments. This is necessary, for example,
19543 # in the case of _POSIX_SOURCE, which is predefined and required
19544 # on some systems where configure will not decide to define it.
19545 if (defundef == "undef") {
19546 print "/*", prefix defundef, macro, "*/"
19547 next
19548 }
19549 }
19550 }
19551 { print }
19552 _ACAWK
19553 _ACEOF
19554 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19555 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19556 fi # test -n "$CONFIG_HEADERS"
19557
19558
19559 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19560 shift
19561 for ac_tag
19562 do
19563 case $ac_tag in
19564 :[FHLC]) ac_mode=$ac_tag; continue;;
19565 esac
19566 case $ac_mode$ac_tag in
19567 :[FHL]*:*);;
19568 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19569 :[FH]-) ac_tag=-:-;;
19570 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19571 esac
19572 ac_save_IFS=$IFS
19573 IFS=:
19574 set x $ac_tag
19575 IFS=$ac_save_IFS
19576 shift
19577 ac_file=$1
19578 shift
19579
19580 case $ac_mode in
19581 :L) ac_source=$1;;
19582 :[FH])
19583 ac_file_inputs=
19584 for ac_f
19585 do
19586 case $ac_f in
19587 -) ac_f="$ac_tmp/stdin";;
19588 *) # Look for the file first in the build tree, then in the source tree
19589 # (if the path is not absolute). The absolute path cannot be DOS-style,
19590 # because $ac_f cannot contain `:'.
19591 test -f "$ac_f" ||
19592 case $ac_f in
19593 [\\/$]*) false;;
19594 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19595 esac ||
19596 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19597 esac
19598 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19599 as_fn_append ac_file_inputs " '$ac_f'"
19600 done
19601
19602 # Let's still pretend it is `configure' which instantiates (i.e., don't
19603 # use $as_me), people would be surprised to read:
19604 # /* config.h. Generated by config.status. */
19605 configure_input='Generated from '`
19606 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19607 `' by configure.'
19608 if test x"$ac_file" != x-; then
19609 configure_input="$ac_file. $configure_input"
19610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19611 printf "%s\n" "$as_me: creating $ac_file" >&6;}
19612 fi
19613 # Neutralize special characters interpreted by sed in replacement strings.
19614 case $configure_input in #(
19615 *\&* | *\|* | *\\* )
19616 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
19617 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19618 *) ac_sed_conf_input=$configure_input;;
19619 esac
19620
19621 case $ac_tag in
19622 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19623 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19624 esac
19625 ;;
19626 esac
19627
19628 ac_dir=`$as_dirname -- "$ac_file" ||
19629 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19630 X"$ac_file" : 'X\(//\)[^/]' \| \
19631 X"$ac_file" : 'X\(//\)$' \| \
19632 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19633 printf "%s\n" X"$ac_file" |
19634 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19635 s//\1/
19636 q
19637 }
19638 /^X\(\/\/\)[^/].*/{
19639 s//\1/
19640 q
19641 }
19642 /^X\(\/\/\)$/{
19643 s//\1/
19644 q
19645 }
19646 /^X\(\/\).*/{
19647 s//\1/
19648 q
19649 }
19650 s/.*/./; q'`
19651 as_dir="$ac_dir"; as_fn_mkdir_p
19652 ac_builddir=.
19653
19654 case "$ac_dir" in
19655 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19656 *)
19657 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
19658 # A ".." for each directory in $ac_dir_suffix.
19659 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19660 case $ac_top_builddir_sub in
19661 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19662 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19663 esac ;;
19664 esac
19665 ac_abs_top_builddir=$ac_pwd
19666 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19667 # for backward compatibility:
19668 ac_top_builddir=$ac_top_build_prefix
19669
19670 case $srcdir in
19671 .) # We are building in place.
19672 ac_srcdir=.
19673 ac_top_srcdir=$ac_top_builddir_sub
19674 ac_abs_top_srcdir=$ac_pwd ;;
19675 [\\/]* | ?:[\\/]* ) # Absolute name.
19676 ac_srcdir=$srcdir$ac_dir_suffix;
19677 ac_top_srcdir=$srcdir
19678 ac_abs_top_srcdir=$srcdir ;;
19679 *) # Relative name.
19680 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19681 ac_top_srcdir=$ac_top_build_prefix$srcdir
19682 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19683 esac
19684 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19685
19686
19687 case $ac_mode in
19688 :F)
19689 #
19690 # CONFIG_FILE
19691 #
19692
19693 case $INSTALL in
19694 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19695 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19696 esac
19697 ac_MKDIR_P=$MKDIR_P
19698 case $MKDIR_P in
19699 [\\/$]* | ?:[\\/]* ) ;;
19700 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19701 esac
19702 _ACEOF
19703
19704 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19705 # If the template does not know about datarootdir, expand it.
19706 # FIXME: This hack should be removed a few years after 2.60.
19707 ac_datarootdir_hack=; ac_datarootdir_seen=
19708 ac_sed_dataroot='
19709 /datarootdir/ {
19710 p
19711 q
19712 }
19713 /@datadir@/p
19714 /@docdir@/p
19715 /@infodir@/p
19716 /@localedir@/p
19717 /@mandir@/p'
19718 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19719 *datarootdir*) ac_datarootdir_seen=yes;;
19720 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19722 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19723 _ACEOF
19724 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19725 ac_datarootdir_hack='
19726 s&@datadir@&$datadir&g
19727 s&@docdir@&$docdir&g
19728 s&@infodir@&$infodir&g
19729 s&@localedir@&$localedir&g
19730 s&@mandir@&$mandir&g
19731 s&\\\${datarootdir}&$datarootdir&g' ;;
19732 esac
19733 _ACEOF
19734
19735 # Neutralize VPATH when `$srcdir' = `.'.
19736 # Shell code in configure.ac might set extrasub.
19737 # FIXME: do we really want to maintain this feature?
19738 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19739 ac_sed_extra="$ac_vpsub
19740 $extrasub
19741 _ACEOF
19742 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19743 :t
19744 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19745 s|@configure_input@|$ac_sed_conf_input|;t t
19746 s&@top_builddir@&$ac_top_builddir_sub&;t t
19747 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19748 s&@srcdir@&$ac_srcdir&;t t
19749 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19750 s&@top_srcdir@&$ac_top_srcdir&;t t
19751 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19752 s&@builddir@&$ac_builddir&;t t
19753 s&@abs_builddir@&$ac_abs_builddir&;t t
19754 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19755 s&@INSTALL@&$ac_INSTALL&;t t
19756 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19757 $ac_datarootdir_hack
19758 "
19759 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19760 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19761
19762 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19763 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19764 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19765 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19767 which seems to be undefined. Please make sure it is defined" >&5
19768 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19769 which seems to be undefined. Please make sure it is defined" >&2;}
19770
19771 rm -f "$ac_tmp/stdin"
19772 case $ac_file in
19773 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19774 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19775 esac \
19776 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19777 ;;
19778 :H)
19779 #
19780 # CONFIG_HEADER
19781 #
19782 if test x"$ac_file" != x-; then
19783 {
19784 printf "%s\n" "/* $configure_input */" >&1 \
19785 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19786 } >"$ac_tmp/config.h" \
19787 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19788 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19790 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
19791 else
19792 rm -f "$ac_file"
19793 mv "$ac_tmp/config.h" "$ac_file" \
19794 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19795 fi
19796 else
19797 printf "%s\n" "/* $configure_input */" >&1 \
19798 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19799 || as_fn_error $? "could not create -" "$LINENO" 5
19800 fi
19801 # Compute "$ac_file"'s index in $config_headers.
19802 _am_arg="$ac_file"
19803 _am_stamp_count=1
19804 for _am_header in $config_headers :; do
19805 case $_am_header in
19806 $_am_arg | $_am_arg:* )
19807 break ;;
19808 * )
19809 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19810 esac
19811 done
19812 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19813 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19814 X"$_am_arg" : 'X\(//\)[^/]' \| \
19815 X"$_am_arg" : 'X\(//\)$' \| \
19816 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19817 printf "%s\n" X"$_am_arg" |
19818 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19819 s//\1/
19820 q
19821 }
19822 /^X\(\/\/\)[^/].*/{
19823 s//\1/
19824 q
19825 }
19826 /^X\(\/\/\)$/{
19827 s//\1/
19828 q
19829 }
19830 /^X\(\/\).*/{
19831 s//\1/
19832 q
19833 }
19834 s/.*/./; q'`/stamp-h$_am_stamp_count
19835 ;;
19836
19837 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19838 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
19839 ;;
19840 esac
19841
19842
19843 case $ac_file$ac_mode in
19844 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19845 # Older Autoconf quotes --file arguments for eval, but not when files
19846 # are listed without --file. Let's play safe and only enable the eval
19847 # if we detect the quoting.
19848 # TODO: see whether this extra hack can be removed once we start
19849 # requiring Autoconf 2.70 or later.
19850 case $CONFIG_FILES in #(
19851 *\'*) :
19852 eval set x "$CONFIG_FILES" ;; #(
19853 *) :
19854 set x $CONFIG_FILES ;; #(
19855 *) :
19856 ;;
19857 esac
19858 shift
19859 # Used to flag and report bootstrapping failures.
19860 am_rc=0
19861 for am_mf
19862 do
19863 # Strip MF so we end up with the name of the file.
19864 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
19865 # Check whether this is an Automake generated Makefile which includes
19866 # dependency-tracking related rules and includes.
19867 # Grep'ing the whole file directly is not great: AIX grep has a line
19868 # limit of 2048, but all sed's we know have understand at least 4000.
19869 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
19870 || continue
19871 am_dirpart=`$as_dirname -- "$am_mf" ||
19872 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19873 X"$am_mf" : 'X\(//\)[^/]' \| \
19874 X"$am_mf" : 'X\(//\)$' \| \
19875 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
19876 printf "%s\n" X"$am_mf" |
19877 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19878 s//\1/
19879 q
19880 }
19881 /^X\(\/\/\)[^/].*/{
19882 s//\1/
19883 q
19884 }
19885 /^X\(\/\/\)$/{
19886 s//\1/
19887 q
19888 }
19889 /^X\(\/\).*/{
19890 s//\1/
19891 q
19892 }
19893 s/.*/./; q'`
19894 am_filepart=`$as_basename -- "$am_mf" ||
19895 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
19896 X"$am_mf" : 'X\(//\)$' \| \
19897 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
19898 printf "%s\n" X/"$am_mf" |
19899 sed '/^.*\/\([^/][^/]*\)\/*$/{
19900 s//\1/
19901 q
19902 }
19903 /^X\/\(\/\/\)$/{
19904 s//\1/
19905 q
19906 }
19907 /^X\/\(\/\).*/{
19908 s//\1/
19909 q
19910 }
19911 s/.*/./; q'`
19912 { echo "$as_me:$LINENO: cd "$am_dirpart" \
19913 && sed -e '/# am--include-marker/d' "$am_filepart" \
19914 | $MAKE -f - am--depfiles" >&5
19915 (cd "$am_dirpart" \
19916 && sed -e '/# am--include-marker/d' "$am_filepart" \
19917 | $MAKE -f - am--depfiles) >&5 2>&5
19918 ac_status=$?
19919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19920 (exit $ac_status); } || am_rc=$?
19921 done
19922 if test $am_rc -ne 0; then
19923 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19924 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19925 as_fn_error $? "Something went wrong bootstrapping makefile fragments
19926 for automatic dependency tracking. If GNU make was not used, consider
19927 re-running the configure script with MAKE=\"gmake\" (or whatever is
19928 necessary). You can also try re-running configure with the
19929 '--disable-dependency-tracking' option to at least be able to build
19930 the package (albeit without support for automatic dependency tracking).
19931 See \`config.log' for more details" "$LINENO" 5; }
19932 fi
19933 { am_dirpart=; unset am_dirpart;}
19934 { am_filepart=; unset am_filepart;}
19935 { am_mf=; unset am_mf;}
19936 { am_rc=; unset am_rc;}
19937 rm -f conftest-deps.mk
19938 }
19939 ;;
19940 "libtool":C)
19941
19942 # See if we are running on zsh, and set the options that allow our
19943 # commands through without removal of \ escapes.
19944 if test -n "${ZSH_VERSION+set}"; then
19945 setopt NO_GLOB_SUBST
19946 fi
19947
19948 cfgfile=${ofile}T
19949 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19950 $RM "$cfgfile"
19951
19952 cat <<_LT_EOF >> "$cfgfile"
19953 #! $SHELL
19954 # Generated automatically by $as_me ($PACKAGE) $VERSION
19955 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19956
19957 # Provide generalized library-building support services.
19958 # Written by Gordon Matzigkeit, 1996
19959
19960 # Copyright (C) 2014 Free Software Foundation, Inc.
19961 # This is free software; see the source for copying conditions. There is NO
19962 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19963
19964 # GNU Libtool is free software; you can redistribute it and/or modify
19965 # it under the terms of the GNU General Public License as published by
19966 # the Free Software Foundation; either version 2 of of the License, or
19967 # (at your option) any later version.
19968 #
19969 # As a special exception to the GNU General Public License, if you
19970 # distribute this file as part of a program or library that is built
19971 # using GNU Libtool, you may include this file under the same
19972 # distribution terms that you use for the rest of that program.
19973 #
19974 # GNU Libtool is distributed in the hope that it will be useful, but
19975 # WITHOUT ANY WARRANTY; without even the implied warranty of
19976 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19977 # GNU General Public License for more details.
19978 #
19979 # You should have received a copy of the GNU General Public License
19980 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19981
19982
19983 # The names of the tagged configurations supported by this script.
19984 available_tags='CXX '
19985
19986 # Configured defaults for sys_lib_dlsearch_path munging.
19987 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
19988
19989 # ### BEGIN LIBTOOL CONFIG
19990
19991 # Which release of libtool.m4 was used?
19992 macro_version=$macro_version
19993 macro_revision=$macro_revision
19994
19995 # Whether or not to build shared libraries.
19996 build_libtool_libs=$enable_shared
19997
19998 # Whether or not to build static libraries.
19999 build_old_libs=$enable_static
20000
20001 # What type of objects to build.
20002 pic_mode=$pic_mode
20003
20004 # Whether or not to optimize for fast installation.
20005 fast_install=$enable_fast_install
20006
20007 # Shared archive member basename,for filename based shared library versioning on AIX.
20008 shared_archive_member_spec=$shared_archive_member_spec
20009
20010 # Shell to use when invoking shell scripts.
20011 SHELL=$lt_SHELL
20012
20013 # An echo program that protects backslashes.
20014 ECHO=$lt_ECHO
20015
20016 # The PATH separator for the build system.
20017 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20018
20019 # The host system.
20020 host_alias=$host_alias
20021 host=$host
20022 host_os=$host_os
20023
20024 # The build system.
20025 build_alias=$build_alias
20026 build=$build
20027 build_os=$build_os
20028
20029 # A sed program that does not truncate output.
20030 SED=$lt_SED
20031
20032 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20033 Xsed="\$SED -e 1s/^X//"
20034
20035 # A grep program that handles long lines.
20036 GREP=$lt_GREP
20037
20038 # An ERE matcher.
20039 EGREP=$lt_EGREP
20040
20041 # A literal string matcher.
20042 FGREP=$lt_FGREP
20043
20044 # A BSD- or MS-compatible name lister.
20045 NM=$lt_NM
20046
20047 # Whether we need soft or hard links.
20048 LN_S=$lt_LN_S
20049
20050 # What is the maximum length of a command?
20051 max_cmd_len=$max_cmd_len
20052
20053 # Object file suffix (normally "o").
20054 objext=$ac_objext
20055
20056 # Executable file suffix (normally "").
20057 exeext=$exeext
20058
20059 # whether the shell understands "unset".
20060 lt_unset=$lt_unset
20061
20062 # turn spaces into newlines.
20063 SP2NL=$lt_lt_SP2NL
20064
20065 # turn newlines into spaces.
20066 NL2SP=$lt_lt_NL2SP
20067
20068 # convert \$build file names to \$host format.
20069 to_host_file_cmd=$lt_cv_to_host_file_cmd
20070
20071 # convert \$build files to toolchain format.
20072 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20073
20074 # A file(cmd) program that detects file types.
20075 FILECMD=$lt_FILECMD
20076
20077 # An object symbol dumper.
20078 OBJDUMP=$lt_OBJDUMP
20079
20080 # Method to check whether dependent libraries are shared objects.
20081 deplibs_check_method=$lt_deplibs_check_method
20082
20083 # Command to use when deplibs_check_method = "file_magic".
20084 file_magic_cmd=$lt_file_magic_cmd
20085
20086 # How to find potential files when deplibs_check_method = "file_magic".
20087 file_magic_glob=$lt_file_magic_glob
20088
20089 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20090 want_nocaseglob=$lt_want_nocaseglob
20091
20092 # DLL creation program.
20093 DLLTOOL=$lt_DLLTOOL
20094
20095 # Command to associate shared and link libraries.
20096 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20097
20098 # The archiver.
20099 AR=$lt_AR
20100
20101 # Flags to create an archive (by configure).
20102 lt_ar_flags=$lt_ar_flags
20103
20104 # Flags to create an archive.
20105 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
20106
20107 # How to feed a file listing to the archiver.
20108 archiver_list_spec=$lt_archiver_list_spec
20109
20110 # A symbol stripping program.
20111 STRIP=$lt_STRIP
20112
20113 # Commands used to install an old-style archive.
20114 RANLIB=$lt_RANLIB
20115 old_postinstall_cmds=$lt_old_postinstall_cmds
20116 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20117
20118 # Whether to use a lock for old archive extraction.
20119 lock_old_archive_extraction=$lock_old_archive_extraction
20120
20121 # A C compiler.
20122 LTCC=$lt_CC
20123
20124 # LTCC compiler flags.
20125 LTCFLAGS=$lt_CFLAGS
20126
20127 # Take the output of nm and produce a listing of raw symbols and C names.
20128 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20129
20130 # Transform the output of nm in a proper C declaration.
20131 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20132
20133 # Transform the output of nm into a list of symbols to manually relocate.
20134 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20135
20136 # Transform the output of nm in a C name address pair.
20137 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20138
20139 # Transform the output of nm in a C name address pair when lib prefix is needed.
20140 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20141
20142 # The name lister interface.
20143 nm_interface=$lt_lt_cv_nm_interface
20144
20145 # Specify filename containing input files for \$NM.
20146 nm_file_list_spec=$lt_nm_file_list_spec
20147
20148 # The root where to search for dependent libraries,and where our libraries should be installed.
20149 lt_sysroot=$lt_sysroot
20150
20151 # Command to truncate a binary pipe.
20152 lt_truncate_bin=$lt_lt_cv_truncate_bin
20153
20154 # The name of the directory that contains temporary libtool files.
20155 objdir=$objdir
20156
20157 # Used to examine libraries when file_magic_cmd begins with "file".
20158 MAGIC_CMD=$MAGIC_CMD
20159
20160 # Must we lock files when doing compilation?
20161 need_locks=$lt_need_locks
20162
20163 # Manifest tool.
20164 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20165
20166 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20167 DSYMUTIL=$lt_DSYMUTIL
20168
20169 # Tool to change global to local symbols on Mac OS X.
20170 NMEDIT=$lt_NMEDIT
20171
20172 # Tool to manipulate fat objects and archives on Mac OS X.
20173 LIPO=$lt_LIPO
20174
20175 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20176 OTOOL=$lt_OTOOL
20177
20178 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20179 OTOOL64=$lt_OTOOL64
20180
20181 # Old archive suffix (normally "a").
20182 libext=$libext
20183
20184 # Shared library suffix (normally ".so").
20185 shrext_cmds=$lt_shrext_cmds
20186
20187 # The commands to extract the exported symbol list from a shared archive.
20188 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20189
20190 # Variables whose values should be saved in libtool wrapper scripts and
20191 # restored at link time.
20192 variables_saved_for_relink=$lt_variables_saved_for_relink
20193
20194 # Do we need the "lib" prefix for modules?
20195 need_lib_prefix=$need_lib_prefix
20196
20197 # Do we need a version for libraries?
20198 need_version=$need_version
20199
20200 # Library versioning type.
20201 version_type=$version_type
20202
20203 # Shared library runtime path variable.
20204 runpath_var=$runpath_var
20205
20206 # Shared library path variable.
20207 shlibpath_var=$shlibpath_var
20208
20209 # Is shlibpath searched before the hard-coded library search path?
20210 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20211
20212 # Format of library name prefix.
20213 libname_spec=$lt_libname_spec
20214
20215 # List of archive names. First name is the real one, the rest are links.
20216 # The last name is the one that the linker finds with -lNAME
20217 library_names_spec=$lt_library_names_spec
20218
20219 # The coded name of the library, if different from the real name.
20220 soname_spec=$lt_soname_spec
20221
20222 # Permission mode override for installation of shared libraries.
20223 install_override_mode=$lt_install_override_mode
20224
20225 # Command to use after installation of a shared archive.
20226 postinstall_cmds=$lt_postinstall_cmds
20227
20228 # Command to use after uninstallation of a shared archive.
20229 postuninstall_cmds=$lt_postuninstall_cmds
20230
20231 # Commands used to finish a libtool library installation in a directory.
20232 finish_cmds=$lt_finish_cmds
20233
20234 # As "finish_cmds", except a single script fragment to be evaled but
20235 # not shown.
20236 finish_eval=$lt_finish_eval
20237
20238 # Whether we should hardcode library paths into libraries.
20239 hardcode_into_libs=$hardcode_into_libs
20240
20241 # Compile-time system search path for libraries.
20242 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20243
20244 # Detected run-time system search path for libraries.
20245 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20246
20247 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
20248 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
20249
20250 # Whether dlopen is supported.
20251 dlopen_support=$enable_dlopen
20252
20253 # Whether dlopen of programs is supported.
20254 dlopen_self=$enable_dlopen_self
20255
20256 # Whether dlopen of statically linked programs is supported.
20257 dlopen_self_static=$enable_dlopen_self_static
20258
20259 # Commands to strip libraries.
20260 old_striplib=$lt_old_striplib
20261 striplib=$lt_striplib
20262
20263
20264 # The linker used to build libraries.
20265 LD=$lt_LD
20266
20267 # How to create reloadable object files.
20268 reload_flag=$lt_reload_flag
20269 reload_cmds=$lt_reload_cmds
20270
20271 # Commands used to build an old-style archive.
20272 old_archive_cmds=$lt_old_archive_cmds
20273
20274 # A language specific compiler.
20275 CC=$lt_compiler
20276
20277 # Is the compiler the GNU compiler?
20278 with_gcc=$GCC
20279
20280 # Compiler flag to turn off builtin functions.
20281 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20282
20283 # Additional compiler flags for building library objects.
20284 pic_flag=$lt_lt_prog_compiler_pic
20285
20286 # How to pass a linker flag through the compiler.
20287 wl=$lt_lt_prog_compiler_wl
20288
20289 # Compiler flag to prevent dynamic linking.
20290 link_static_flag=$lt_lt_prog_compiler_static
20291
20292 # Does compiler simultaneously support -c and -o options?
20293 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20294
20295 # Whether or not to add -lc for building shared libraries.
20296 build_libtool_need_lc=$archive_cmds_need_lc
20297
20298 # Whether or not to disallow shared libs when runtime libs are static.
20299 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20300
20301 # Compiler flag to allow reflexive dlopens.
20302 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20303
20304 # Compiler flag to generate shared objects directly from archives.
20305 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20306
20307 # Whether the compiler copes with passing no objects directly.
20308 compiler_needs_object=$lt_compiler_needs_object
20309
20310 # Create an old-style archive from a shared archive.
20311 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20312
20313 # Create a temporary old-style archive to link instead of a shared archive.
20314 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20315
20316 # Commands used to build a shared archive.
20317 archive_cmds=$lt_archive_cmds
20318 archive_expsym_cmds=$lt_archive_expsym_cmds
20319
20320 # Commands used to build a loadable module if different from building
20321 # a shared archive.
20322 module_cmds=$lt_module_cmds
20323 module_expsym_cmds=$lt_module_expsym_cmds
20324
20325 # Whether we are building with GNU ld or not.
20326 with_gnu_ld=$lt_with_gnu_ld
20327
20328 # Flag that allows shared libraries with undefined symbols to be built.
20329 allow_undefined_flag=$lt_allow_undefined_flag
20330
20331 # Flag that enforces no undefined symbols.
20332 no_undefined_flag=$lt_no_undefined_flag
20333
20334 # Flag to hardcode \$libdir into a binary during linking.
20335 # This must work even if \$libdir does not exist
20336 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20337
20338 # Whether we need a single "-rpath" flag with a separated argument.
20339 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20340
20341 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20342 # DIR into the resulting binary.
20343 hardcode_direct=$hardcode_direct
20344
20345 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20346 # DIR into the resulting binary and the resulting library dependency is
20347 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
20348 # library is relocated.
20349 hardcode_direct_absolute=$hardcode_direct_absolute
20350
20351 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20352 # into the resulting binary.
20353 hardcode_minus_L=$hardcode_minus_L
20354
20355 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20356 # into the resulting binary.
20357 hardcode_shlibpath_var=$hardcode_shlibpath_var
20358
20359 # Set to "yes" if building a shared library automatically hardcodes DIR
20360 # into the library and all subsequent libraries and executables linked
20361 # against it.
20362 hardcode_automatic=$hardcode_automatic
20363
20364 # Set to yes if linker adds runtime paths of dependent libraries
20365 # to runtime path list.
20366 inherit_rpath=$inherit_rpath
20367
20368 # Whether libtool must link a program against all its dependency libraries.
20369 link_all_deplibs=$link_all_deplibs
20370
20371 # Set to "yes" if exported symbols are required.
20372 always_export_symbols=$always_export_symbols
20373
20374 # The commands to list exported symbols.
20375 export_symbols_cmds=$lt_export_symbols_cmds
20376
20377 # Symbols that should not be listed in the preloaded symbols.
20378 exclude_expsyms=$lt_exclude_expsyms
20379
20380 # Symbols that must always be exported.
20381 include_expsyms=$lt_include_expsyms
20382
20383 # Commands necessary for linking programs (against libraries) with templates.
20384 prelink_cmds=$lt_prelink_cmds
20385
20386 # Commands necessary for finishing linking programs.
20387 postlink_cmds=$lt_postlink_cmds
20388
20389 # Specify filename containing input files.
20390 file_list_spec=$lt_file_list_spec
20391
20392 # How to hardcode a shared library path into an executable.
20393 hardcode_action=$hardcode_action
20394
20395 # The directories searched by this compiler when creating a shared library.
20396 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20397
20398 # Dependencies to place before and after the objects being linked to
20399 # create a shared library.
20400 predep_objects=$lt_predep_objects
20401 postdep_objects=$lt_postdep_objects
20402 predeps=$lt_predeps
20403 postdeps=$lt_postdeps
20404
20405 # The library search path used internally by the compiler when linking
20406 # a shared library.
20407 compiler_lib_search_path=$lt_compiler_lib_search_path
20408
20409 # ### END LIBTOOL CONFIG
20410
20411 _LT_EOF
20412
20413 cat <<'_LT_EOF' >> "$cfgfile"
20414
20415 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
20416
20417 # func_munge_path_list VARIABLE PATH
20418 # -----------------------------------
20419 # VARIABLE is name of variable containing _space_ separated list of
20420 # directories to be munged by the contents of PATH, which is string
20421 # having a format:
20422 # "DIR[:DIR]:"
20423 # string "DIR[ DIR]" will be prepended to VARIABLE
20424 # ":DIR[:DIR]"
20425 # string "DIR[ DIR]" will be appended to VARIABLE
20426 # "DIRP[:DIRP]::[DIRA:]DIRA"
20427 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
20428 # "DIRA[ DIRA]" will be appended to VARIABLE
20429 # "DIR[:DIR]"
20430 # VARIABLE will be replaced by "DIR[ DIR]"
20431 func_munge_path_list ()
20432 {
20433 case x$2 in
20434 x)
20435 ;;
20436 *:)
20437 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
20438 ;;
20439 x:*)
20440 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
20441 ;;
20442 *::*)
20443 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
20444 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
20445 ;;
20446 *)
20447 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
20448 ;;
20449 esac
20450 }
20451
20452
20453 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
20454 func_cc_basename ()
20455 {
20456 for cc_temp in $*""; do
20457 case $cc_temp in
20458 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20459 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20460 \-*) ;;
20461 *) break;;
20462 esac
20463 done
20464 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20465 }
20466
20467
20468 # ### END FUNCTIONS SHARED WITH CONFIGURE
20469
20470 _LT_EOF
20471
20472 case $host_os in
20473 aix3*)
20474 cat <<\_LT_EOF >> "$cfgfile"
20475 # AIX sometimes has problems with the GCC collect2 program. For some
20476 # reason, if we set the COLLECT_NAMES environment variable, the problems
20477 # vanish in a puff of smoke.
20478 if test set != "${COLLECT_NAMES+set}"; then
20479 COLLECT_NAMES=
20480 export COLLECT_NAMES
20481 fi
20482 _LT_EOF
20483 ;;
20484 esac
20485
20486
20487
20488 ltmain=$ac_aux_dir/ltmain.sh
20489
20490
20491 # We use sed instead of cat because bash on DJGPP gets confused if
20492 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20493 # text mode, it properly converts lines to CR/LF. This bash problem
20494 # is reportedly fixed, but why not run on old versions too?
20495 $SED '$q' "$ltmain" >> "$cfgfile" \
20496 || (rm -f "$cfgfile"; exit 1)
20497
20498 mv -f "$cfgfile" "$ofile" ||
20499 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20500 chmod +x "$ofile"
20501
20502
20503 cat <<_LT_EOF >> "$ofile"
20504
20505 # ### BEGIN LIBTOOL TAG CONFIG: CXX
20506
20507 # The linker used to build libraries.
20508 LD=$lt_LD_CXX
20509
20510 # How to create reloadable object files.
20511 reload_flag=$lt_reload_flag_CXX
20512 reload_cmds=$lt_reload_cmds_CXX
20513
20514 # Commands used to build an old-style archive.
20515 old_archive_cmds=$lt_old_archive_cmds_CXX
20516
20517 # A language specific compiler.
20518 CC=$lt_compiler_CXX
20519
20520 # Is the compiler the GNU compiler?
20521 with_gcc=$GCC_CXX
20522
20523 # Compiler flag to turn off builtin functions.
20524 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20525
20526 # Additional compiler flags for building library objects.
20527 pic_flag=$lt_lt_prog_compiler_pic_CXX
20528
20529 # How to pass a linker flag through the compiler.
20530 wl=$lt_lt_prog_compiler_wl_CXX
20531
20532 # Compiler flag to prevent dynamic linking.
20533 link_static_flag=$lt_lt_prog_compiler_static_CXX
20534
20535 # Does compiler simultaneously support -c and -o options?
20536 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20537
20538 # Whether or not to add -lc for building shared libraries.
20539 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20540
20541 # Whether or not to disallow shared libs when runtime libs are static.
20542 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20543
20544 # Compiler flag to allow reflexive dlopens.
20545 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20546
20547 # Compiler flag to generate shared objects directly from archives.
20548 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20549
20550 # Whether the compiler copes with passing no objects directly.
20551 compiler_needs_object=$lt_compiler_needs_object_CXX
20552
20553 # Create an old-style archive from a shared archive.
20554 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20555
20556 # Create a temporary old-style archive to link instead of a shared archive.
20557 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20558
20559 # Commands used to build a shared archive.
20560 archive_cmds=$lt_archive_cmds_CXX
20561 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20562
20563 # Commands used to build a loadable module if different from building
20564 # a shared archive.
20565 module_cmds=$lt_module_cmds_CXX
20566 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20567
20568 # Whether we are building with GNU ld or not.
20569 with_gnu_ld=$lt_with_gnu_ld_CXX
20570
20571 # Flag that allows shared libraries with undefined symbols to be built.
20572 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20573
20574 # Flag that enforces no undefined symbols.
20575 no_undefined_flag=$lt_no_undefined_flag_CXX
20576
20577 # Flag to hardcode \$libdir into a binary during linking.
20578 # This must work even if \$libdir does not exist
20579 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20580
20581 # Whether we need a single "-rpath" flag with a separated argument.
20582 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20583
20584 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20585 # DIR into the resulting binary.
20586 hardcode_direct=$hardcode_direct_CXX
20587
20588 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20589 # DIR into the resulting binary and the resulting library dependency is
20590 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
20591 # library is relocated.
20592 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20593
20594 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20595 # into the resulting binary.
20596 hardcode_minus_L=$hardcode_minus_L_CXX
20597
20598 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20599 # into the resulting binary.
20600 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20601
20602 # Set to "yes" if building a shared library automatically hardcodes DIR
20603 # into the library and all subsequent libraries and executables linked
20604 # against it.
20605 hardcode_automatic=$hardcode_automatic_CXX
20606
20607 # Set to yes if linker adds runtime paths of dependent libraries
20608 # to runtime path list.
20609 inherit_rpath=$inherit_rpath_CXX
20610
20611 # Whether libtool must link a program against all its dependency libraries.
20612 link_all_deplibs=$link_all_deplibs_CXX
20613
20614 # Set to "yes" if exported symbols are required.
20615 always_export_symbols=$always_export_symbols_CXX
20616
20617 # The commands to list exported symbols.
20618 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20619
20620 # Symbols that should not be listed in the preloaded symbols.
20621 exclude_expsyms=$lt_exclude_expsyms_CXX
20622
20623 # Symbols that must always be exported.
20624 include_expsyms=$lt_include_expsyms_CXX
20625
20626 # Commands necessary for linking programs (against libraries) with templates.
20627 prelink_cmds=$lt_prelink_cmds_CXX
20628
20629 # Commands necessary for finishing linking programs.
20630 postlink_cmds=$lt_postlink_cmds_CXX
20631
20632 # Specify filename containing input files.
20633 file_list_spec=$lt_file_list_spec_CXX
20634
20635 # How to hardcode a shared library path into an executable.
20636 hardcode_action=$hardcode_action_CXX
20637
20638 # The directories searched by this compiler when creating a shared library.
20639 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20640
20641 # Dependencies to place before and after the objects being linked to
20642 # create a shared library.
20643 predep_objects=$lt_predep_objects_CXX
20644 postdep_objects=$lt_postdep_objects_CXX
20645 predeps=$lt_predeps_CXX
20646 postdeps=$lt_postdeps_CXX
20647
20648 # The library search path used internally by the compiler when linking
20649 # a shared library.
20650 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20651
20652 # ### END LIBTOOL TAG CONFIG: CXX
20653 _LT_EOF
20654
20655 ;;
20656
20657 esac
20658 done # for ac_tag
20659
20660
20661 as_fn_exit 0
20662 _ACEOF
20663 ac_clean_files=$ac_clean_files_save
20664
20665 test $ac_write_fail = 0 ||
20666 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20667
20668
20669 # configure is writing to config.log, and then calls config.status.
20670 # config.status does its own redirection, appending to config.log.
20671 # Unfortunately, on DOS this fails, as config.log is still kept open
20672 # by configure, so config.status won't be able to write to it; its
20673 # output is simply discarded. So we exec the FD to /dev/null,
20674 # effectively closing config.log, so it can be properly (re)opened and
20675 # appended to by config.status. When coming back to configure, we
20676 # need to make the FD available again.
20677 if test "$no_create" != yes; then
20678 ac_cs_success=:
20679 ac_config_status_args=
20680 test "$silent" = yes &&
20681 ac_config_status_args="$ac_config_status_args --quiet"
20682 exec 5>/dev/null
20683 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20684 exec 5>>config.log
20685 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20686 # would make configure fail if this is the last instruction.
20687 $ac_cs_success || as_fn_exit 1
20688 fi
20689 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20691 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20692 fi
20693
20694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Created a Makefile." >&5
20695 printf "%s\n" "$as_me: Created a Makefile." >&6;}
20696