Add debian package patches.
[deb_libcec.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libcec 2:1:0.
4 #
5 # Report bugs to <http://libcec.pulse-eight.com/>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: http://libcec.pulse-eight.com/ about your system,
279 $0: including any error possibly output before this
280 $0: message. Then install a modern shell, or manually run
281 $0: the script under such a shell if you do have one."
282 fi
283 exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301 { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310 return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318 set +e
319 as_fn_set_status $1
320 exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389 else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406 else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433 else
434 as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439 else
440 as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445 else
446 as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
520 *)
521 ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527 else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
544 fi
545 else
546 as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553 else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='libcec'
592 PACKAGE_TARNAME='libcec'
593 PACKAGE_VERSION='2:1:0'
594 PACKAGE_STRING='libcec 2:1:0'
595 PACKAGE_BUGREPORT='http://libcec.pulse-eight.com/'
596 PACKAGE_URL=''
597
598 # Factoring default headers for most tests.
599 ac_includes_default="\
600 #include <stdio.h>
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
603 #endif
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
606 #endif
607 #ifdef STDC_HEADERS
608 # include <stdlib.h>
609 # include <stddef.h>
610 #else
611 # ifdef HAVE_STDLIB_H
612 # include <stdlib.h>
613 # endif
614 #endif
615 #ifdef HAVE_STRING_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617 # include <memory.h>
618 # endif
619 # include <string.h>
620 #endif
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
623 #endif
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
626 #endif
627 #ifdef HAVE_STDINT_H
628 # include <stdint.h>
629 #endif
630 #ifdef HAVE_UNISTD_H
631 # include <unistd.h>
632 #endif"
633
634 ac_subst_vars='am__EXEEXT_FALSE
635 am__EXEEXT_TRUE
636 LTLIBOBJS
637 LIBOBJS
638 USE_RPI_API
639 USE_P8_USB_DETECT
640 USE_P8_USB
641 LIB_INFO
642 LIBS_LIBCEC
643 REQUIRES
644 HAVE_UNAME
645 HAVE_HOSTNAME
646 HAVE_WHOAMI
647 HAVE_DATE
648 HAVE_GIT
649 USE_EXYNOS_API_FALSE
650 USE_EXYNOS_API_TRUE
651 USE_TDA995X_API_FALSE
652 USE_TDA995X_API_TRUE
653 USE_RPI_API_FALSE
654 USE_RPI_API_TRUE
655 USE_P8_USB_DETECT_FALSE
656 USE_P8_USB_DETECT_TRUE
657 USE_P8_USB_FALSE
658 USE_P8_USB_TRUE
659 USE_X11_RANDR_FALSE
660 USE_X11_RANDR_TRUE
661 UDEV_LIBS
662 UDEV_CFLAGS
663 PKG_CONFIG_LIBDIR
664 PKG_CONFIG_PATH
665 PKG_CONFIG
666 HAVE_PKG_CONFIG
667 CXXCPP
668 CPP
669 OTOOL64
670 OTOOL
671 LIPO
672 NMEDIT
673 DSYMUTIL
674 MANIFEST_TOOL
675 RANLIB
676 ac_ct_AR
677 AR
678 DLLTOOL
679 OBJDUMP
680 LN_S
681 NM
682 ac_ct_DUMPBIN
683 DUMPBIN
684 LD
685 FGREP
686 EGREP
687 GREP
688 SED
689 am__fastdepCC_FALSE
690 am__fastdepCC_TRUE
691 CCDEPMODE
692 ac_ct_CC
693 CFLAGS
694 CC
695 LIBTOOL
696 am__fastdepCXX_FALSE
697 am__fastdepCXX_TRUE
698 CXXDEPMODE
699 am__nodep
700 AMDEPBACKSLASH
701 AMDEP_FALSE
702 AMDEP_TRUE
703 am__quote
704 am__include
705 DEPDIR
706 OBJEXT
707 EXEEXT
708 ac_ct_CXX
709 CPPFLAGS
710 LDFLAGS
711 CXXFLAGS
712 CXX
713 host_os
714 host_vendor
715 host_cpu
716 host
717 build_os
718 build_vendor
719 build_cpu
720 build
721 AM_BACKSLASH
722 AM_DEFAULT_VERBOSITY
723 AM_DEFAULT_V
724 AM_V
725 am__untar
726 am__tar
727 AMTAR
728 am__leading_dot
729 SET_MAKE
730 AWK
731 mkdir_p
732 MKDIR_P
733 INSTALL_STRIP_PROGRAM
734 STRIP
735 install_sh
736 MAKEINFO
737 AUTOHEADER
738 AUTOMAKE
739 AUTOCONF
740 ACLOCAL
741 VERSION
742 PACKAGE
743 CYGPATH_W
744 am__isrc
745 INSTALL_DATA
746 INSTALL_SCRIPT
747 INSTALL_PROGRAM
748 target_alias
749 host_alias
750 build_alias
751 LIBS
752 ECHO_T
753 ECHO_N
754 ECHO_C
755 DEFS
756 mandir
757 localedir
758 libdir
759 psdir
760 pdfdir
761 dvidir
762 htmldir
763 infodir
764 docdir
765 oldincludedir
766 includedir
767 localstatedir
768 sharedstatedir
769 sysconfdir
770 datadir
771 datarootdir
772 libexecdir
773 sbindir
774 bindir
775 program_transform_name
776 prefix
777 exec_prefix
778 PACKAGE_URL
779 PACKAGE_BUGREPORT
780 PACKAGE_STRING
781 PACKAGE_VERSION
782 PACKAGE_TARNAME
783 PACKAGE_NAME
784 PATH_SEPARATOR
785 SHELL'
786 ac_subst_files=''
787 ac_user_opts='
788 enable_option_checking
789 enable_silent_rules
790 enable_dependency_tracking
791 enable_shared
792 enable_static
793 with_pic
794 enable_fast_install
795 with_gnu_ld
796 with_sysroot
797 enable_libtool_lock
798 enable_debug
799 enable_optimisation
800 enable_cubox
801 with_tda995x_toolkit_path
802 enable_exynos
803 enable_rpi
804 with_rpi_include_path
805 with_rpi_lib_path
806 '
807 ac_precious_vars='build_alias
808 host_alias
809 target_alias
810 CXX
811 CXXFLAGS
812 LDFLAGS
813 LIBS
814 CPPFLAGS
815 CCC
816 CC
817 CFLAGS
818 CPP
819 CXXCPP
820 PKG_CONFIG
821 PKG_CONFIG_PATH
822 PKG_CONFIG_LIBDIR
823 UDEV_CFLAGS
824 UDEV_LIBS'
825
826
827 # Initialize some variables set by options.
828 ac_init_help=
829 ac_init_version=false
830 ac_unrecognized_opts=
831 ac_unrecognized_sep=
832 # The variables have the same names as the options, with
833 # dashes changed to underlines.
834 cache_file=/dev/null
835 exec_prefix=NONE
836 no_create=
837 no_recursion=
838 prefix=NONE
839 program_prefix=NONE
840 program_suffix=NONE
841 program_transform_name=s,x,x,
842 silent=
843 site=
844 srcdir=
845 verbose=
846 x_includes=NONE
847 x_libraries=NONE
848
849 # Installation directory options.
850 # These are left unexpanded so users can "make install exec_prefix=/foo"
851 # and all the variables that are supposed to be based on exec_prefix
852 # by default will actually change.
853 # Use braces instead of parens because sh, perl, etc. also accept them.
854 # (The list follows the same order as the GNU Coding Standards.)
855 bindir='${exec_prefix}/bin'
856 sbindir='${exec_prefix}/sbin'
857 libexecdir='${exec_prefix}/libexec'
858 datarootdir='${prefix}/share'
859 datadir='${datarootdir}'
860 sysconfdir='${prefix}/etc'
861 sharedstatedir='${prefix}/com'
862 localstatedir='${prefix}/var'
863 includedir='${prefix}/include'
864 oldincludedir='/usr/include'
865 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
866 infodir='${datarootdir}/info'
867 htmldir='${docdir}'
868 dvidir='${docdir}'
869 pdfdir='${docdir}'
870 psdir='${docdir}'
871 libdir='${exec_prefix}/lib'
872 localedir='${datarootdir}/locale'
873 mandir='${datarootdir}/man'
874
875 ac_prev=
876 ac_dashdash=
877 for ac_option
878 do
879 # If the previous option needs an argument, assign it.
880 if test -n "$ac_prev"; then
881 eval $ac_prev=\$ac_option
882 ac_prev=
883 continue
884 fi
885
886 case $ac_option in
887 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
888 *=) ac_optarg= ;;
889 *) ac_optarg=yes ;;
890 esac
891
892 # Accept the important Cygnus configure options, so we can diagnose typos.
893
894 case $ac_dashdash$ac_option in
895 --)
896 ac_dashdash=yes ;;
897
898 -bindir | --bindir | --bindi | --bind | --bin | --bi)
899 ac_prev=bindir ;;
900 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
901 bindir=$ac_optarg ;;
902
903 -build | --build | --buil | --bui | --bu)
904 ac_prev=build_alias ;;
905 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
906 build_alias=$ac_optarg ;;
907
908 -cache-file | --cache-file | --cache-fil | --cache-fi \
909 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
910 ac_prev=cache_file ;;
911 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
912 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
913 cache_file=$ac_optarg ;;
914
915 --config-cache | -C)
916 cache_file=config.cache ;;
917
918 -datadir | --datadir | --datadi | --datad)
919 ac_prev=datadir ;;
920 -datadir=* | --datadir=* | --datadi=* | --datad=*)
921 datadir=$ac_optarg ;;
922
923 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
924 | --dataroo | --dataro | --datar)
925 ac_prev=datarootdir ;;
926 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
927 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
928 datarootdir=$ac_optarg ;;
929
930 -disable-* | --disable-*)
931 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
932 # Reject names that are not valid shell variable names.
933 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
934 as_fn_error $? "invalid feature name: $ac_useropt"
935 ac_useropt_orig=$ac_useropt
936 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
937 case $ac_user_opts in
938 *"
939 "enable_$ac_useropt"
940 "*) ;;
941 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
942 ac_unrecognized_sep=', ';;
943 esac
944 eval enable_$ac_useropt=no ;;
945
946 -docdir | --docdir | --docdi | --doc | --do)
947 ac_prev=docdir ;;
948 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
949 docdir=$ac_optarg ;;
950
951 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
952 ac_prev=dvidir ;;
953 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
954 dvidir=$ac_optarg ;;
955
956 -enable-* | --enable-*)
957 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
958 # Reject names that are not valid shell variable names.
959 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
960 as_fn_error $? "invalid feature name: $ac_useropt"
961 ac_useropt_orig=$ac_useropt
962 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
963 case $ac_user_opts in
964 *"
965 "enable_$ac_useropt"
966 "*) ;;
967 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
968 ac_unrecognized_sep=', ';;
969 esac
970 eval enable_$ac_useropt=\$ac_optarg ;;
971
972 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
973 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
974 | --exec | --exe | --ex)
975 ac_prev=exec_prefix ;;
976 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
977 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
978 | --exec=* | --exe=* | --ex=*)
979 exec_prefix=$ac_optarg ;;
980
981 -gas | --gas | --ga | --g)
982 # Obsolete; use --with-gas.
983 with_gas=yes ;;
984
985 -help | --help | --hel | --he | -h)
986 ac_init_help=long ;;
987 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
988 ac_init_help=recursive ;;
989 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
990 ac_init_help=short ;;
991
992 -host | --host | --hos | --ho)
993 ac_prev=host_alias ;;
994 -host=* | --host=* | --hos=* | --ho=*)
995 host_alias=$ac_optarg ;;
996
997 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
998 ac_prev=htmldir ;;
999 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1000 | --ht=*)
1001 htmldir=$ac_optarg ;;
1002
1003 -includedir | --includedir | --includedi | --included | --include \
1004 | --includ | --inclu | --incl | --inc)
1005 ac_prev=includedir ;;
1006 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1007 | --includ=* | --inclu=* | --incl=* | --inc=*)
1008 includedir=$ac_optarg ;;
1009
1010 -infodir | --infodir | --infodi | --infod | --info | --inf)
1011 ac_prev=infodir ;;
1012 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1013 infodir=$ac_optarg ;;
1014
1015 -libdir | --libdir | --libdi | --libd)
1016 ac_prev=libdir ;;
1017 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1018 libdir=$ac_optarg ;;
1019
1020 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1021 | --libexe | --libex | --libe)
1022 ac_prev=libexecdir ;;
1023 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1024 | --libexe=* | --libex=* | --libe=*)
1025 libexecdir=$ac_optarg ;;
1026
1027 -localedir | --localedir | --localedi | --localed | --locale)
1028 ac_prev=localedir ;;
1029 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1030 localedir=$ac_optarg ;;
1031
1032 -localstatedir | --localstatedir | --localstatedi | --localstated \
1033 | --localstate | --localstat | --localsta | --localst | --locals)
1034 ac_prev=localstatedir ;;
1035 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1036 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1037 localstatedir=$ac_optarg ;;
1038
1039 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1040 ac_prev=mandir ;;
1041 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1042 mandir=$ac_optarg ;;
1043
1044 -nfp | --nfp | --nf)
1045 # Obsolete; use --without-fp.
1046 with_fp=no ;;
1047
1048 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1049 | --no-cr | --no-c | -n)
1050 no_create=yes ;;
1051
1052 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1053 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1054 no_recursion=yes ;;
1055
1056 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1057 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1058 | --oldin | --oldi | --old | --ol | --o)
1059 ac_prev=oldincludedir ;;
1060 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1061 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1062 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1063 oldincludedir=$ac_optarg ;;
1064
1065 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1066 ac_prev=prefix ;;
1067 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1068 prefix=$ac_optarg ;;
1069
1070 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1071 | --program-pre | --program-pr | --program-p)
1072 ac_prev=program_prefix ;;
1073 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1074 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1075 program_prefix=$ac_optarg ;;
1076
1077 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1078 | --program-suf | --program-su | --program-s)
1079 ac_prev=program_suffix ;;
1080 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1081 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1082 program_suffix=$ac_optarg ;;
1083
1084 -program-transform-name | --program-transform-name \
1085 | --program-transform-nam | --program-transform-na \
1086 | --program-transform-n | --program-transform- \
1087 | --program-transform | --program-transfor \
1088 | --program-transfo | --program-transf \
1089 | --program-trans | --program-tran \
1090 | --progr-tra | --program-tr | --program-t)
1091 ac_prev=program_transform_name ;;
1092 -program-transform-name=* | --program-transform-name=* \
1093 | --program-transform-nam=* | --program-transform-na=* \
1094 | --program-transform-n=* | --program-transform-=* \
1095 | --program-transform=* | --program-transfor=* \
1096 | --program-transfo=* | --program-transf=* \
1097 | --program-trans=* | --program-tran=* \
1098 | --progr-tra=* | --program-tr=* | --program-t=*)
1099 program_transform_name=$ac_optarg ;;
1100
1101 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1102 ac_prev=pdfdir ;;
1103 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1104 pdfdir=$ac_optarg ;;
1105
1106 -psdir | --psdir | --psdi | --psd | --ps)
1107 ac_prev=psdir ;;
1108 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1109 psdir=$ac_optarg ;;
1110
1111 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1112 | -silent | --silent | --silen | --sile | --sil)
1113 silent=yes ;;
1114
1115 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1116 ac_prev=sbindir ;;
1117 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1118 | --sbi=* | --sb=*)
1119 sbindir=$ac_optarg ;;
1120
1121 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1122 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1123 | --sharedst | --shareds | --shared | --share | --shar \
1124 | --sha | --sh)
1125 ac_prev=sharedstatedir ;;
1126 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1127 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1128 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1129 | --sha=* | --sh=*)
1130 sharedstatedir=$ac_optarg ;;
1131
1132 -site | --site | --sit)
1133 ac_prev=site ;;
1134 -site=* | --site=* | --sit=*)
1135 site=$ac_optarg ;;
1136
1137 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1138 ac_prev=srcdir ;;
1139 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1140 srcdir=$ac_optarg ;;
1141
1142 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1143 | --syscon | --sysco | --sysc | --sys | --sy)
1144 ac_prev=sysconfdir ;;
1145 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1146 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1147 sysconfdir=$ac_optarg ;;
1148
1149 -target | --target | --targe | --targ | --tar | --ta | --t)
1150 ac_prev=target_alias ;;
1151 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1152 target_alias=$ac_optarg ;;
1153
1154 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1155 verbose=yes ;;
1156
1157 -version | --version | --versio | --versi | --vers | -V)
1158 ac_init_version=: ;;
1159
1160 -with-* | --with-*)
1161 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1162 # Reject names that are not valid shell variable names.
1163 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1164 as_fn_error $? "invalid package name: $ac_useropt"
1165 ac_useropt_orig=$ac_useropt
1166 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1167 case $ac_user_opts in
1168 *"
1169 "with_$ac_useropt"
1170 "*) ;;
1171 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1172 ac_unrecognized_sep=', ';;
1173 esac
1174 eval with_$ac_useropt=\$ac_optarg ;;
1175
1176 -without-* | --without-*)
1177 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1178 # Reject names that are not valid shell variable names.
1179 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1180 as_fn_error $? "invalid package name: $ac_useropt"
1181 ac_useropt_orig=$ac_useropt
1182 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1183 case $ac_user_opts in
1184 *"
1185 "with_$ac_useropt"
1186 "*) ;;
1187 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1188 ac_unrecognized_sep=', ';;
1189 esac
1190 eval with_$ac_useropt=no ;;
1191
1192 --x)
1193 # Obsolete; use --with-x.
1194 with_x=yes ;;
1195
1196 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1197 | --x-incl | --x-inc | --x-in | --x-i)
1198 ac_prev=x_includes ;;
1199 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1200 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1201 x_includes=$ac_optarg ;;
1202
1203 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1204 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1205 ac_prev=x_libraries ;;
1206 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1207 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1208 x_libraries=$ac_optarg ;;
1209
1210 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1211 Try \`$0 --help' for more information"
1212 ;;
1213
1214 *=*)
1215 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1216 # Reject names that are not valid shell variable names.
1217 case $ac_envvar in #(
1218 '' | [0-9]* | *[!_$as_cr_alnum]* )
1219 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1220 esac
1221 eval $ac_envvar=\$ac_optarg
1222 export $ac_envvar ;;
1223
1224 *)
1225 # FIXME: should be removed in autoconf 3.0.
1226 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1227 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1228 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1229 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1230 ;;
1231
1232 esac
1233 done
1234
1235 if test -n "$ac_prev"; then
1236 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1237 as_fn_error $? "missing argument to $ac_option"
1238 fi
1239
1240 if test -n "$ac_unrecognized_opts"; then
1241 case $enable_option_checking in
1242 no) ;;
1243 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1244 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1245 esac
1246 fi
1247
1248 # Check all directory arguments for consistency.
1249 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1250 datadir sysconfdir sharedstatedir localstatedir includedir \
1251 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1252 libdir localedir mandir
1253 do
1254 eval ac_val=\$$ac_var
1255 # Remove trailing slashes.
1256 case $ac_val in
1257 */ )
1258 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1259 eval $ac_var=\$ac_val;;
1260 esac
1261 # Be sure to have absolute directory names.
1262 case $ac_val in
1263 [\\/$]* | ?:[\\/]* ) continue;;
1264 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1265 esac
1266 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1267 done
1268
1269 # There might be people who depend on the old broken behavior: `$host'
1270 # used to hold the argument of --host etc.
1271 # FIXME: To remove some day.
1272 build=$build_alias
1273 host=$host_alias
1274 target=$target_alias
1275
1276 # FIXME: To remove some day.
1277 if test "x$host_alias" != x; then
1278 if test "x$build_alias" = x; then
1279 cross_compiling=maybe
1280 elif test "x$build_alias" != "x$host_alias"; then
1281 cross_compiling=yes
1282 fi
1283 fi
1284
1285 ac_tool_prefix=
1286 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1287
1288 test "$silent" = yes && exec 6>/dev/null
1289
1290
1291 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1292 ac_ls_di=`ls -di .` &&
1293 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1294 as_fn_error $? "working directory cannot be determined"
1295 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1296 as_fn_error $? "pwd does not report name of working directory"
1297
1298
1299 # Find the source files, if location was not specified.
1300 if test -z "$srcdir"; then
1301 ac_srcdir_defaulted=yes
1302 # Try the directory containing this script, then the parent directory.
1303 ac_confdir=`$as_dirname -- "$as_myself" ||
1304 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1305 X"$as_myself" : 'X\(//\)[^/]' \| \
1306 X"$as_myself" : 'X\(//\)$' \| \
1307 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1308 $as_echo X"$as_myself" |
1309 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1310 s//\1/
1311 q
1312 }
1313 /^X\(\/\/\)[^/].*/{
1314 s//\1/
1315 q
1316 }
1317 /^X\(\/\/\)$/{
1318 s//\1/
1319 q
1320 }
1321 /^X\(\/\).*/{
1322 s//\1/
1323 q
1324 }
1325 s/.*/./; q'`
1326 srcdir=$ac_confdir
1327 if test ! -r "$srcdir/$ac_unique_file"; then
1328 srcdir=..
1329 fi
1330 else
1331 ac_srcdir_defaulted=no
1332 fi
1333 if test ! -r "$srcdir/$ac_unique_file"; then
1334 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1335 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1336 fi
1337 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1338 ac_abs_confdir=`(
1339 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1340 pwd)`
1341 # When building in place, set srcdir=.
1342 if test "$ac_abs_confdir" = "$ac_pwd"; then
1343 srcdir=.
1344 fi
1345 # Remove unnecessary trailing slashes from srcdir.
1346 # Double slashes in file names in object file debugging info
1347 # mess up M-x gdb in Emacs.
1348 case $srcdir in
1349 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1350 esac
1351 for ac_var in $ac_precious_vars; do
1352 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1353 eval ac_env_${ac_var}_value=\$${ac_var}
1354 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1355 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1356 done
1357
1358 #
1359 # Report the --help message.
1360 #
1361 if test "$ac_init_help" = "long"; then
1362 # Omit some internal or obsolete options to make the list less imposing.
1363 # This message is too long to be a string in the A/UX 3.1 sh.
1364 cat <<_ACEOF
1365 \`configure' configures libcec 2:1:0 to adapt to many kinds of systems.
1366
1367 Usage: $0 [OPTION]... [VAR=VALUE]...
1368
1369 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1370 VAR=VALUE. See below for descriptions of some of the useful variables.
1371
1372 Defaults for the options are specified in brackets.
1373
1374 Configuration:
1375 -h, --help display this help and exit
1376 --help=short display options specific to this package
1377 --help=recursive display the short help of all the included packages
1378 -V, --version display version information and exit
1379 -q, --quiet, --silent do not print \`checking ...' messages
1380 --cache-file=FILE cache test results in FILE [disabled]
1381 -C, --config-cache alias for \`--cache-file=config.cache'
1382 -n, --no-create do not create output files
1383 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1384
1385 Installation directories:
1386 --prefix=PREFIX install architecture-independent files in PREFIX
1387 [$ac_default_prefix]
1388 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1389 [PREFIX]
1390
1391 By default, \`make install' will install all the files in
1392 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1393 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1394 for instance \`--prefix=\$HOME'.
1395
1396 For better control, use the options below.
1397
1398 Fine tuning of the installation directories:
1399 --bindir=DIR user executables [EPREFIX/bin]
1400 --sbindir=DIR system admin executables [EPREFIX/sbin]
1401 --libexecdir=DIR program executables [EPREFIX/libexec]
1402 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1403 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1404 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1405 --libdir=DIR object code libraries [EPREFIX/lib]
1406 --includedir=DIR C header files [PREFIX/include]
1407 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1408 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1409 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1410 --infodir=DIR info documentation [DATAROOTDIR/info]
1411 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1412 --mandir=DIR man documentation [DATAROOTDIR/man]
1413 --docdir=DIR documentation root [DATAROOTDIR/doc/libcec]
1414 --htmldir=DIR html documentation [DOCDIR]
1415 --dvidir=DIR dvi documentation [DOCDIR]
1416 --pdfdir=DIR pdf documentation [DOCDIR]
1417 --psdir=DIR ps documentation [DOCDIR]
1418 _ACEOF
1419
1420 cat <<\_ACEOF
1421
1422 Program names:
1423 --program-prefix=PREFIX prepend PREFIX to installed program names
1424 --program-suffix=SUFFIX append SUFFIX to installed program names
1425 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1426
1427 System types:
1428 --build=BUILD configure for building on BUILD [guessed]
1429 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1430 _ACEOF
1431 fi
1432
1433 if test -n "$ac_init_help"; then
1434 case $ac_init_help in
1435 short | recursive ) echo "Configuration of libcec 2:1:0:";;
1436 esac
1437 cat <<\_ACEOF
1438
1439 Optional Features:
1440 --disable-option-checking ignore unrecognized --enable/--with options
1441 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1442 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1443 --enable-silent-rules less verbose build output (undo: "make V=1")
1444 --disable-silent-rules verbose build output (undo: "make V=0")
1445 --enable-dependency-tracking
1446 do not reject slow dependency extractors
1447 --disable-dependency-tracking
1448 speeds up one-time build
1449 --enable-shared[=PKGS] build shared libraries [default=yes]
1450 --enable-static[=PKGS] build static libraries [default=yes]
1451 --enable-fast-install[=PKGS]
1452 optimize for fast installation [default=yes]
1453 --disable-libtool-lock avoid locking (might break parallel builds)
1454 --enable-debug include debug symbols (default is no)
1455 --enable-optimisation optimisation flag (default is yes)
1456 --enable-tda995x enable support for the TDA995x (default is no)
1457 --enable-exynos enable support for the Exynos (default is yes)
1458 --enable-rpi enable support for the Raspberry Pi (default is
1459 auto)
1460
1461 Optional Packages:
1462 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1463 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1464 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1465 both]
1466 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1467 --with-sysroot=DIR Search for dependent libraries within DIR
1468 (or the compiler's sysroot if not specified).
1469 --with-tda995x-toolkit-path
1470 location of the TDA995x driver toolkit (default is
1471 ./nxp_hdmi)
1472 --with-rpi-include-path location of the Raspberry Pi headers (location of
1473 /opt/vc/include, default is auto)
1474 --with-rpi-lib-path location of the Raspberry Pi libraries (location of
1475 libbcm_host.so, default is auto)
1476
1477 Some influential environment variables:
1478 CXX C++ compiler command
1479 CXXFLAGS C++ compiler flags
1480 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1481 nonstandard directory <lib dir>
1482 LIBS libraries to pass to the linker, e.g. -l<library>
1483 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1484 you have headers in a nonstandard directory <include dir>
1485 CC C compiler command
1486 CFLAGS C compiler flags
1487 CPP C preprocessor
1488 CXXCPP C++ preprocessor
1489 PKG_CONFIG path to pkg-config utility
1490 PKG_CONFIG_PATH
1491 directories to add to pkg-config's search path
1492 PKG_CONFIG_LIBDIR
1493 path overriding pkg-config's built-in search path
1494 UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config
1495 UDEV_LIBS linker flags for UDEV, overriding pkg-config
1496
1497 Use these variables to override the choices made by `configure' or to help
1498 it to find libraries and programs with nonstandard names/locations.
1499
1500 Report bugs to <http://libcec.pulse-eight.com/>.
1501 _ACEOF
1502 ac_status=$?
1503 fi
1504
1505 if test "$ac_init_help" = "recursive"; then
1506 # If there are subdirs, report their specific --help.
1507 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1508 test -d "$ac_dir" ||
1509 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1510 continue
1511 ac_builddir=.
1512
1513 case "$ac_dir" in
1514 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1515 *)
1516 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1517 # A ".." for each directory in $ac_dir_suffix.
1518 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1519 case $ac_top_builddir_sub in
1520 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1521 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1522 esac ;;
1523 esac
1524 ac_abs_top_builddir=$ac_pwd
1525 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1526 # for backward compatibility:
1527 ac_top_builddir=$ac_top_build_prefix
1528
1529 case $srcdir in
1530 .) # We are building in place.
1531 ac_srcdir=.
1532 ac_top_srcdir=$ac_top_builddir_sub
1533 ac_abs_top_srcdir=$ac_pwd ;;
1534 [\\/]* | ?:[\\/]* ) # Absolute name.
1535 ac_srcdir=$srcdir$ac_dir_suffix;
1536 ac_top_srcdir=$srcdir
1537 ac_abs_top_srcdir=$srcdir ;;
1538 *) # Relative name.
1539 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1540 ac_top_srcdir=$ac_top_build_prefix$srcdir
1541 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1542 esac
1543 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1544
1545 cd "$ac_dir" || { ac_status=$?; continue; }
1546 # Check for guested configure.
1547 if test -f "$ac_srcdir/configure.gnu"; then
1548 echo &&
1549 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1550 elif test -f "$ac_srcdir/configure"; then
1551 echo &&
1552 $SHELL "$ac_srcdir/configure" --help=recursive
1553 else
1554 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1555 fi || ac_status=$?
1556 cd "$ac_pwd" || { ac_status=$?; break; }
1557 done
1558 fi
1559
1560 test -n "$ac_init_help" && exit $ac_status
1561 if $ac_init_version; then
1562 cat <<\_ACEOF
1563 libcec configure 2:1:0
1564 generated by GNU Autoconf 2.69
1565
1566 Copyright (C) 2012 Free Software Foundation, Inc.
1567 This configure script is free software; the Free Software Foundation
1568 gives unlimited permission to copy, distribute and modify it.
1569 _ACEOF
1570 exit
1571 fi
1572
1573 ## ------------------------ ##
1574 ## Autoconf initialization. ##
1575 ## ------------------------ ##
1576
1577 # ac_fn_cxx_try_compile LINENO
1578 # ----------------------------
1579 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1580 ac_fn_cxx_try_compile ()
1581 {
1582 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1583 rm -f conftest.$ac_objext
1584 if { { ac_try="$ac_compile"
1585 case "(($ac_try" in
1586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1587 *) ac_try_echo=$ac_try;;
1588 esac
1589 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1590 $as_echo "$ac_try_echo"; } >&5
1591 (eval "$ac_compile") 2>conftest.err
1592 ac_status=$?
1593 if test -s conftest.err; then
1594 grep -v '^ *+' conftest.err >conftest.er1
1595 cat conftest.er1 >&5
1596 mv -f conftest.er1 conftest.err
1597 fi
1598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1599 test $ac_status = 0; } && {
1600 test -z "$ac_cxx_werror_flag" ||
1601 test ! -s conftest.err
1602 } && test -s conftest.$ac_objext; then :
1603 ac_retval=0
1604 else
1605 $as_echo "$as_me: failed program was:" >&5
1606 sed 's/^/| /' conftest.$ac_ext >&5
1607
1608 ac_retval=1
1609 fi
1610 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1611 as_fn_set_status $ac_retval
1612
1613 } # ac_fn_cxx_try_compile
1614
1615 # ac_fn_c_try_compile LINENO
1616 # --------------------------
1617 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1618 ac_fn_c_try_compile ()
1619 {
1620 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621 rm -f conftest.$ac_objext
1622 if { { ac_try="$ac_compile"
1623 case "(($ac_try" in
1624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1625 *) ac_try_echo=$ac_try;;
1626 esac
1627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1628 $as_echo "$ac_try_echo"; } >&5
1629 (eval "$ac_compile") 2>conftest.err
1630 ac_status=$?
1631 if test -s conftest.err; then
1632 grep -v '^ *+' conftest.err >conftest.er1
1633 cat conftest.er1 >&5
1634 mv -f conftest.er1 conftest.err
1635 fi
1636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1637 test $ac_status = 0; } && {
1638 test -z "$ac_c_werror_flag" ||
1639 test ! -s conftest.err
1640 } && test -s conftest.$ac_objext; then :
1641 ac_retval=0
1642 else
1643 $as_echo "$as_me: failed program was:" >&5
1644 sed 's/^/| /' conftest.$ac_ext >&5
1645
1646 ac_retval=1
1647 fi
1648 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1649 as_fn_set_status $ac_retval
1650
1651 } # ac_fn_c_try_compile
1652
1653 # ac_fn_c_try_link LINENO
1654 # -----------------------
1655 # Try to link conftest.$ac_ext, and return whether this succeeded.
1656 ac_fn_c_try_link ()
1657 {
1658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659 rm -f conftest.$ac_objext conftest$ac_exeext
1660 if { { ac_try="$ac_link"
1661 case "(($ac_try" in
1662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1663 *) ac_try_echo=$ac_try;;
1664 esac
1665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1666 $as_echo "$ac_try_echo"; } >&5
1667 (eval "$ac_link") 2>conftest.err
1668 ac_status=$?
1669 if test -s conftest.err; then
1670 grep -v '^ *+' conftest.err >conftest.er1
1671 cat conftest.er1 >&5
1672 mv -f conftest.er1 conftest.err
1673 fi
1674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1675 test $ac_status = 0; } && {
1676 test -z "$ac_c_werror_flag" ||
1677 test ! -s conftest.err
1678 } && test -s conftest$ac_exeext && {
1679 test "$cross_compiling" = yes ||
1680 test -x conftest$ac_exeext
1681 }; then :
1682 ac_retval=0
1683 else
1684 $as_echo "$as_me: failed program was:" >&5
1685 sed 's/^/| /' conftest.$ac_ext >&5
1686
1687 ac_retval=1
1688 fi
1689 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1690 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1691 # interfere with the next link command; also delete a directory that is
1692 # left behind by Apple's compiler. We do this before executing the actions.
1693 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1694 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1695 as_fn_set_status $ac_retval
1696
1697 } # ac_fn_c_try_link
1698
1699 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1700 # -------------------------------------------------------
1701 # Tests whether HEADER exists and can be compiled using the include files in
1702 # INCLUDES, setting the cache variable VAR accordingly.
1703 ac_fn_c_check_header_compile ()
1704 {
1705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1707 $as_echo_n "checking for $2... " >&6; }
1708 if eval \${$3+:} false; then :
1709 $as_echo_n "(cached) " >&6
1710 else
1711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1712 /* end confdefs.h. */
1713 $4
1714 #include <$2>
1715 _ACEOF
1716 if ac_fn_c_try_compile "$LINENO"; then :
1717 eval "$3=yes"
1718 else
1719 eval "$3=no"
1720 fi
1721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1722 fi
1723 eval ac_res=\$$3
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1725 $as_echo "$ac_res" >&6; }
1726 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1727
1728 } # ac_fn_c_check_header_compile
1729
1730 # ac_fn_c_try_cpp LINENO
1731 # ----------------------
1732 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1733 ac_fn_c_try_cpp ()
1734 {
1735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736 if { { ac_try="$ac_cpp conftest.$ac_ext"
1737 case "(($ac_try" in
1738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739 *) ac_try_echo=$ac_try;;
1740 esac
1741 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742 $as_echo "$ac_try_echo"; } >&5
1743 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1744 ac_status=$?
1745 if test -s conftest.err; then
1746 grep -v '^ *+' conftest.err >conftest.er1
1747 cat conftest.er1 >&5
1748 mv -f conftest.er1 conftest.err
1749 fi
1750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1751 test $ac_status = 0; } > conftest.i && {
1752 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1753 test ! -s conftest.err
1754 }; then :
1755 ac_retval=0
1756 else
1757 $as_echo "$as_me: failed program was:" >&5
1758 sed 's/^/| /' conftest.$ac_ext >&5
1759
1760 ac_retval=1
1761 fi
1762 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1763 as_fn_set_status $ac_retval
1764
1765 } # ac_fn_c_try_cpp
1766
1767 # ac_fn_c_try_run LINENO
1768 # ----------------------
1769 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1770 # that executables *can* be run.
1771 ac_fn_c_try_run ()
1772 {
1773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774 if { { ac_try="$ac_link"
1775 case "(($ac_try" in
1776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1777 *) ac_try_echo=$ac_try;;
1778 esac
1779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1780 $as_echo "$ac_try_echo"; } >&5
1781 (eval "$ac_link") 2>&5
1782 ac_status=$?
1783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1785 { { case "(($ac_try" in
1786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1787 *) ac_try_echo=$ac_try;;
1788 esac
1789 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1790 $as_echo "$ac_try_echo"; } >&5
1791 (eval "$ac_try") 2>&5
1792 ac_status=$?
1793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1794 test $ac_status = 0; }; }; then :
1795 ac_retval=0
1796 else
1797 $as_echo "$as_me: program exited with status $ac_status" >&5
1798 $as_echo "$as_me: failed program was:" >&5
1799 sed 's/^/| /' conftest.$ac_ext >&5
1800
1801 ac_retval=$ac_status
1802 fi
1803 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1804 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1805 as_fn_set_status $ac_retval
1806
1807 } # ac_fn_c_try_run
1808
1809 # ac_fn_c_check_func LINENO FUNC VAR
1810 # ----------------------------------
1811 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1812 ac_fn_c_check_func ()
1813 {
1814 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1816 $as_echo_n "checking for $2... " >&6; }
1817 if eval \${$3+:} false; then :
1818 $as_echo_n "(cached) " >&6
1819 else
1820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1821 /* end confdefs.h. */
1822 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1823 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1824 #define $2 innocuous_$2
1825
1826 /* System header to define __stub macros and hopefully few prototypes,
1827 which can conflict with char $2 (); below.
1828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1829 <limits.h> exists even on freestanding compilers. */
1830
1831 #ifdef __STDC__
1832 # include <limits.h>
1833 #else
1834 # include <assert.h>
1835 #endif
1836
1837 #undef $2
1838
1839 /* Override any GCC internal prototype to avoid an error.
1840 Use char because int might match the return type of a GCC
1841 builtin and then its argument prototype would still apply. */
1842 #ifdef __cplusplus
1843 extern "C"
1844 #endif
1845 char $2 ();
1846 /* The GNU C library defines this for functions which it implements
1847 to always fail with ENOSYS. Some functions are actually named
1848 something starting with __ and the normal name is an alias. */
1849 #if defined __stub_$2 || defined __stub___$2
1850 choke me
1851 #endif
1852
1853 int
1854 main ()
1855 {
1856 return $2 ();
1857 ;
1858 return 0;
1859 }
1860 _ACEOF
1861 if ac_fn_c_try_link "$LINENO"; then :
1862 eval "$3=yes"
1863 else
1864 eval "$3=no"
1865 fi
1866 rm -f core conftest.err conftest.$ac_objext \
1867 conftest$ac_exeext conftest.$ac_ext
1868 fi
1869 eval ac_res=\$$3
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1871 $as_echo "$ac_res" >&6; }
1872 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1873
1874 } # ac_fn_c_check_func
1875
1876 # ac_fn_cxx_try_cpp LINENO
1877 # ------------------------
1878 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1879 ac_fn_cxx_try_cpp ()
1880 {
1881 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882 if { { ac_try="$ac_cpp conftest.$ac_ext"
1883 case "(($ac_try" in
1884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1885 *) ac_try_echo=$ac_try;;
1886 esac
1887 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1888 $as_echo "$ac_try_echo"; } >&5
1889 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1890 ac_status=$?
1891 if test -s conftest.err; then
1892 grep -v '^ *+' conftest.err >conftest.er1
1893 cat conftest.er1 >&5
1894 mv -f conftest.er1 conftest.err
1895 fi
1896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1897 test $ac_status = 0; } > conftest.i && {
1898 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1899 test ! -s conftest.err
1900 }; then :
1901 ac_retval=0
1902 else
1903 $as_echo "$as_me: failed program was:" >&5
1904 sed 's/^/| /' conftest.$ac_ext >&5
1905
1906 ac_retval=1
1907 fi
1908 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1909 as_fn_set_status $ac_retval
1910
1911 } # ac_fn_cxx_try_cpp
1912
1913 # ac_fn_cxx_try_link LINENO
1914 # -------------------------
1915 # Try to link conftest.$ac_ext, and return whether this succeeded.
1916 ac_fn_cxx_try_link ()
1917 {
1918 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1919 rm -f conftest.$ac_objext conftest$ac_exeext
1920 if { { ac_try="$ac_link"
1921 case "(($ac_try" in
1922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1923 *) ac_try_echo=$ac_try;;
1924 esac
1925 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1926 $as_echo "$ac_try_echo"; } >&5
1927 (eval "$ac_link") 2>conftest.err
1928 ac_status=$?
1929 if test -s conftest.err; then
1930 grep -v '^ *+' conftest.err >conftest.er1
1931 cat conftest.er1 >&5
1932 mv -f conftest.er1 conftest.err
1933 fi
1934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1935 test $ac_status = 0; } && {
1936 test -z "$ac_cxx_werror_flag" ||
1937 test ! -s conftest.err
1938 } && test -s conftest$ac_exeext && {
1939 test "$cross_compiling" = yes ||
1940 test -x conftest$ac_exeext
1941 }; then :
1942 ac_retval=0
1943 else
1944 $as_echo "$as_me: failed program was:" >&5
1945 sed 's/^/| /' conftest.$ac_ext >&5
1946
1947 ac_retval=1
1948 fi
1949 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1950 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1951 # interfere with the next link command; also delete a directory that is
1952 # left behind by Apple's compiler. We do this before executing the actions.
1953 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1954 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1955 as_fn_set_status $ac_retval
1956
1957 } # ac_fn_cxx_try_link
1958
1959 # ac_fn_cxx_check_func LINENO FUNC VAR
1960 # ------------------------------------
1961 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1962 ac_fn_cxx_check_func ()
1963 {
1964 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1966 $as_echo_n "checking for $2... " >&6; }
1967 if eval \${$3+:} false; then :
1968 $as_echo_n "(cached) " >&6
1969 else
1970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1971 /* end confdefs.h. */
1972 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1973 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1974 #define $2 innocuous_$2
1975
1976 /* System header to define __stub macros and hopefully few prototypes,
1977 which can conflict with char $2 (); below.
1978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1979 <limits.h> exists even on freestanding compilers. */
1980
1981 #ifdef __STDC__
1982 # include <limits.h>
1983 #else
1984 # include <assert.h>
1985 #endif
1986
1987 #undef $2
1988
1989 /* Override any GCC internal prototype to avoid an error.
1990 Use char because int might match the return type of a GCC
1991 builtin and then its argument prototype would still apply. */
1992 #ifdef __cplusplus
1993 extern "C"
1994 #endif
1995 char $2 ();
1996 /* The GNU C library defines this for functions which it implements
1997 to always fail with ENOSYS. Some functions are actually named
1998 something starting with __ and the normal name is an alias. */
1999 #if defined __stub_$2 || defined __stub___$2
2000 choke me
2001 #endif
2002
2003 int
2004 main ()
2005 {
2006 return $2 ();
2007 ;
2008 return 0;
2009 }
2010 _ACEOF
2011 if ac_fn_cxx_try_link "$LINENO"; then :
2012 eval "$3=yes"
2013 else
2014 eval "$3=no"
2015 fi
2016 rm -f core conftest.err conftest.$ac_objext \
2017 conftest$ac_exeext conftest.$ac_ext
2018 fi
2019 eval ac_res=\$$3
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2021 $as_echo "$ac_res" >&6; }
2022 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2023
2024 } # ac_fn_cxx_check_func
2025
2026 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2027 # ---------------------------------------------------------
2028 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2029 # the include files in INCLUDES and setting the cache variable VAR
2030 # accordingly.
2031 ac_fn_cxx_check_header_mongrel ()
2032 {
2033 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2034 if eval \${$3+:} false; then :
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2036 $as_echo_n "checking for $2... " >&6; }
2037 if eval \${$3+:} false; then :
2038 $as_echo_n "(cached) " >&6
2039 fi
2040 eval ac_res=\$$3
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2042 $as_echo "$ac_res" >&6; }
2043 else
2044 # Is the header compilable?
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2046 $as_echo_n "checking $2 usability... " >&6; }
2047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2048 /* end confdefs.h. */
2049 $4
2050 #include <$2>
2051 _ACEOF
2052 if ac_fn_cxx_try_compile "$LINENO"; then :
2053 ac_header_compiler=yes
2054 else
2055 ac_header_compiler=no
2056 fi
2057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2059 $as_echo "$ac_header_compiler" >&6; }
2060
2061 # Is the header present?
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2063 $as_echo_n "checking $2 presence... " >&6; }
2064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2065 /* end confdefs.h. */
2066 #include <$2>
2067 _ACEOF
2068 if ac_fn_cxx_try_cpp "$LINENO"; then :
2069 ac_header_preproc=yes
2070 else
2071 ac_header_preproc=no
2072 fi
2073 rm -f conftest.err conftest.i conftest.$ac_ext
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2075 $as_echo "$ac_header_preproc" >&6; }
2076
2077 # So? What about this header?
2078 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2079 yes:no: )
2080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2081 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2083 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2084 ;;
2085 no:yes:* )
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2087 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2089 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2091 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2093 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2095 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2096 ( $as_echo "## --------------------------------------------- ##
2097 ## Report this to http://libcec.pulse-eight.com/ ##
2098 ## --------------------------------------------- ##"
2099 ) | sed "s/^/$as_me: WARNING: /" >&2
2100 ;;
2101 esac
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2103 $as_echo_n "checking for $2... " >&6; }
2104 if eval \${$3+:} false; then :
2105 $as_echo_n "(cached) " >&6
2106 else
2107 eval "$3=\$ac_header_compiler"
2108 fi
2109 eval ac_res=\$$3
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2111 $as_echo "$ac_res" >&6; }
2112 fi
2113 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2114
2115 } # ac_fn_cxx_check_header_mongrel
2116 cat >config.log <<_ACEOF
2117 This file contains any messages produced by compilers while
2118 running configure, to aid debugging if configure makes a mistake.
2119
2120 It was created by libcec $as_me 2:1:0, which was
2121 generated by GNU Autoconf 2.69. Invocation command line was
2122
2123 $ $0 $@
2124
2125 _ACEOF
2126 exec 5>>config.log
2127 {
2128 cat <<_ASUNAME
2129 ## --------- ##
2130 ## Platform. ##
2131 ## --------- ##
2132
2133 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2134 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2135 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2136 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2137 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2138
2139 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2140 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2141
2142 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2143 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2144 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2145 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2146 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2147 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2148 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2149
2150 _ASUNAME
2151
2152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2153 for as_dir in $PATH
2154 do
2155 IFS=$as_save_IFS
2156 test -z "$as_dir" && as_dir=.
2157 $as_echo "PATH: $as_dir"
2158 done
2159 IFS=$as_save_IFS
2160
2161 } >&5
2162
2163 cat >&5 <<_ACEOF
2164
2165
2166 ## ----------- ##
2167 ## Core tests. ##
2168 ## ----------- ##
2169
2170 _ACEOF
2171
2172
2173 # Keep a trace of the command line.
2174 # Strip out --no-create and --no-recursion so they do not pile up.
2175 # Strip out --silent because we don't want to record it for future runs.
2176 # Also quote any args containing shell meta-characters.
2177 # Make two passes to allow for proper duplicate-argument suppression.
2178 ac_configure_args=
2179 ac_configure_args0=
2180 ac_configure_args1=
2181 ac_must_keep_next=false
2182 for ac_pass in 1 2
2183 do
2184 for ac_arg
2185 do
2186 case $ac_arg in
2187 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2188 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2189 | -silent | --silent | --silen | --sile | --sil)
2190 continue ;;
2191 *\'*)
2192 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2193 esac
2194 case $ac_pass in
2195 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2196 2)
2197 as_fn_append ac_configure_args1 " '$ac_arg'"
2198 if test $ac_must_keep_next = true; then
2199 ac_must_keep_next=false # Got value, back to normal.
2200 else
2201 case $ac_arg in
2202 *=* | --config-cache | -C | -disable-* | --disable-* \
2203 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2204 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2205 | -with-* | --with-* | -without-* | --without-* | --x)
2206 case "$ac_configure_args0 " in
2207 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2208 esac
2209 ;;
2210 -* ) ac_must_keep_next=true ;;
2211 esac
2212 fi
2213 as_fn_append ac_configure_args " '$ac_arg'"
2214 ;;
2215 esac
2216 done
2217 done
2218 { ac_configure_args0=; unset ac_configure_args0;}
2219 { ac_configure_args1=; unset ac_configure_args1;}
2220
2221 # When interrupted or exit'd, cleanup temporary files, and complete
2222 # config.log. We remove comments because anyway the quotes in there
2223 # would cause problems or look ugly.
2224 # WARNING: Use '\'' to represent an apostrophe within the trap.
2225 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2226 trap 'exit_status=$?
2227 # Save into config.log some information that might help in debugging.
2228 {
2229 echo
2230
2231 $as_echo "## ---------------- ##
2232 ## Cache variables. ##
2233 ## ---------------- ##"
2234 echo
2235 # The following way of writing the cache mishandles newlines in values,
2236 (
2237 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2238 eval ac_val=\$$ac_var
2239 case $ac_val in #(
2240 *${as_nl}*)
2241 case $ac_var in #(
2242 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2243 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2244 esac
2245 case $ac_var in #(
2246 _ | IFS | as_nl) ;; #(
2247 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2248 *) { eval $ac_var=; unset $ac_var;} ;;
2249 esac ;;
2250 esac
2251 done
2252 (set) 2>&1 |
2253 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2254 *${as_nl}ac_space=\ *)
2255 sed -n \
2256 "s/'\''/'\''\\\\'\'''\''/g;
2257 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2258 ;; #(
2259 *)
2260 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2261 ;;
2262 esac |
2263 sort
2264 )
2265 echo
2266
2267 $as_echo "## ----------------- ##
2268 ## Output variables. ##
2269 ## ----------------- ##"
2270 echo
2271 for ac_var in $ac_subst_vars
2272 do
2273 eval ac_val=\$$ac_var
2274 case $ac_val in
2275 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2276 esac
2277 $as_echo "$ac_var='\''$ac_val'\''"
2278 done | sort
2279 echo
2280
2281 if test -n "$ac_subst_files"; then
2282 $as_echo "## ------------------- ##
2283 ## File substitutions. ##
2284 ## ------------------- ##"
2285 echo
2286 for ac_var in $ac_subst_files
2287 do
2288 eval ac_val=\$$ac_var
2289 case $ac_val in
2290 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2291 esac
2292 $as_echo "$ac_var='\''$ac_val'\''"
2293 done | sort
2294 echo
2295 fi
2296
2297 if test -s confdefs.h; then
2298 $as_echo "## ----------- ##
2299 ## confdefs.h. ##
2300 ## ----------- ##"
2301 echo
2302 cat confdefs.h
2303 echo
2304 fi
2305 test "$ac_signal" != 0 &&
2306 $as_echo "$as_me: caught signal $ac_signal"
2307 $as_echo "$as_me: exit $exit_status"
2308 } >&5
2309 rm -f core *.core core.conftest.* &&
2310 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2311 exit $exit_status
2312 ' 0
2313 for ac_signal in 1 2 13 15; do
2314 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2315 done
2316 ac_signal=0
2317
2318 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2319 rm -f -r conftest* confdefs.h
2320
2321 $as_echo "/* confdefs.h */" > confdefs.h
2322
2323 # Predefined preprocessor variables.
2324
2325 cat >>confdefs.h <<_ACEOF
2326 #define PACKAGE_NAME "$PACKAGE_NAME"
2327 _ACEOF
2328
2329 cat >>confdefs.h <<_ACEOF
2330 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2331 _ACEOF
2332
2333 cat >>confdefs.h <<_ACEOF
2334 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2335 _ACEOF
2336
2337 cat >>confdefs.h <<_ACEOF
2338 #define PACKAGE_STRING "$PACKAGE_STRING"
2339 _ACEOF
2340
2341 cat >>confdefs.h <<_ACEOF
2342 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2343 _ACEOF
2344
2345 cat >>confdefs.h <<_ACEOF
2346 #define PACKAGE_URL "$PACKAGE_URL"
2347 _ACEOF
2348
2349
2350 # Let the site file select an alternate cache file if it wants to.
2351 # Prefer an explicitly selected file to automatically selected ones.
2352 ac_site_file1=NONE
2353 ac_site_file2=NONE
2354 if test -n "$CONFIG_SITE"; then
2355 # We do not want a PATH search for config.site.
2356 case $CONFIG_SITE in #((
2357 -*) ac_site_file1=./$CONFIG_SITE;;
2358 */*) ac_site_file1=$CONFIG_SITE;;
2359 *) ac_site_file1=./$CONFIG_SITE;;
2360 esac
2361 elif test "x$prefix" != xNONE; then
2362 ac_site_file1=$prefix/share/config.site
2363 ac_site_file2=$prefix/etc/config.site
2364 else
2365 ac_site_file1=$ac_default_prefix/share/config.site
2366 ac_site_file2=$ac_default_prefix/etc/config.site
2367 fi
2368 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2369 do
2370 test "x$ac_site_file" = xNONE && continue
2371 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2373 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2374 sed 's/^/| /' "$ac_site_file" >&5
2375 . "$ac_site_file" \
2376 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2377 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2378 as_fn_error $? "failed to load site script $ac_site_file
2379 See \`config.log' for more details" "$LINENO" 5; }
2380 fi
2381 done
2382
2383 if test -r "$cache_file"; then
2384 # Some versions of bash will fail to source /dev/null (special files
2385 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2386 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2388 $as_echo "$as_me: loading cache $cache_file" >&6;}
2389 case $cache_file in
2390 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2391 *) . "./$cache_file";;
2392 esac
2393 fi
2394 else
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2396 $as_echo "$as_me: creating cache $cache_file" >&6;}
2397 >$cache_file
2398 fi
2399
2400 # Check that the precious variables saved in the cache have kept the same
2401 # value.
2402 ac_cache_corrupted=false
2403 for ac_var in $ac_precious_vars; do
2404 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2405 eval ac_new_set=\$ac_env_${ac_var}_set
2406 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2407 eval ac_new_val=\$ac_env_${ac_var}_value
2408 case $ac_old_set,$ac_new_set in
2409 set,)
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2411 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2412 ac_cache_corrupted=: ;;
2413 ,set)
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2415 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2416 ac_cache_corrupted=: ;;
2417 ,);;
2418 *)
2419 if test "x$ac_old_val" != "x$ac_new_val"; then
2420 # differences in whitespace do not lead to failure.
2421 ac_old_val_w=`echo x $ac_old_val`
2422 ac_new_val_w=`echo x $ac_new_val`
2423 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2425 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2426 ac_cache_corrupted=:
2427 else
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2429 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2430 eval $ac_var=\$ac_old_val
2431 fi
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2433 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2435 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2436 fi;;
2437 esac
2438 # Pass precious variables to config.status.
2439 if test "$ac_new_set" = set; then
2440 case $ac_new_val in
2441 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2442 *) ac_arg=$ac_var=$ac_new_val ;;
2443 esac
2444 case " $ac_configure_args " in
2445 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2446 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2447 esac
2448 fi
2449 done
2450 if $ac_cache_corrupted; then
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2452 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2454 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2455 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2456 fi
2457 ## -------------------- ##
2458 ## Main body of script. ##
2459 ## -------------------- ##
2460
2461 ac_ext=c
2462 ac_cpp='$CPP $CPPFLAGS'
2463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2466
2467
2468 ac_config_headers="$ac_config_headers config.h"
2469
2470
2471
2472 am__api_version='1.14'
2473
2474 ac_aux_dir=
2475 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2476 if test -f "$ac_dir/install-sh"; then
2477 ac_aux_dir=$ac_dir
2478 ac_install_sh="$ac_aux_dir/install-sh -c"
2479 break
2480 elif test -f "$ac_dir/install.sh"; then
2481 ac_aux_dir=$ac_dir
2482 ac_install_sh="$ac_aux_dir/install.sh -c"
2483 break
2484 elif test -f "$ac_dir/shtool"; then
2485 ac_aux_dir=$ac_dir
2486 ac_install_sh="$ac_aux_dir/shtool install -c"
2487 break
2488 fi
2489 done
2490 if test -z "$ac_aux_dir"; then
2491 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2492 fi
2493
2494 # These three variables are undocumented and unsupported,
2495 # and are intended to be withdrawn in a future Autoconf release.
2496 # They can cause serious problems if a builder's source tree is in a directory
2497 # whose full name contains unusual characters.
2498 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2499 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2500 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2501
2502
2503 # Find a good install program. We prefer a C program (faster),
2504 # so one script is as good as another. But avoid the broken or
2505 # incompatible versions:
2506 # SysV /etc/install, /usr/sbin/install
2507 # SunOS /usr/etc/install
2508 # IRIX /sbin/install
2509 # AIX /bin/install
2510 # AmigaOS /C/install, which installs bootblocks on floppy discs
2511 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2512 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2513 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2514 # OS/2's system install, which has a completely different semantic
2515 # ./install, which can be erroneously created by make from ./install.sh.
2516 # Reject install programs that cannot install multiple files.
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2518 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2519 if test -z "$INSTALL"; then
2520 if ${ac_cv_path_install+:} false; then :
2521 $as_echo_n "(cached) " >&6
2522 else
2523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2524 for as_dir in $PATH
2525 do
2526 IFS=$as_save_IFS
2527 test -z "$as_dir" && as_dir=.
2528 # Account for people who put trailing slashes in PATH elements.
2529 case $as_dir/ in #((
2530 ./ | .// | /[cC]/* | \
2531 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2532 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2533 /usr/ucb/* ) ;;
2534 *)
2535 # OSF1 and SCO ODT 3.0 have their own names for install.
2536 # Don't use installbsd from OSF since it installs stuff as root
2537 # by default.
2538 for ac_prog in ginstall scoinst install; do
2539 for ac_exec_ext in '' $ac_executable_extensions; do
2540 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2541 if test $ac_prog = install &&
2542 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2543 # AIX install. It has an incompatible calling convention.
2544 :
2545 elif test $ac_prog = install &&
2546 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2547 # program-specific install script used by HP pwplus--don't use.
2548 :
2549 else
2550 rm -rf conftest.one conftest.two conftest.dir
2551 echo one > conftest.one
2552 echo two > conftest.two
2553 mkdir conftest.dir
2554 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2555 test -s conftest.one && test -s conftest.two &&
2556 test -s conftest.dir/conftest.one &&
2557 test -s conftest.dir/conftest.two
2558 then
2559 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2560 break 3
2561 fi
2562 fi
2563 fi
2564 done
2565 done
2566 ;;
2567 esac
2568
2569 done
2570 IFS=$as_save_IFS
2571
2572 rm -rf conftest.one conftest.two conftest.dir
2573
2574 fi
2575 if test "${ac_cv_path_install+set}" = set; then
2576 INSTALL=$ac_cv_path_install
2577 else
2578 # As a last resort, use the slow shell script. Don't cache a
2579 # value for INSTALL within a source directory, because that will
2580 # break other packages using the cache if that directory is
2581 # removed, or if the value is a relative name.
2582 INSTALL=$ac_install_sh
2583 fi
2584 fi
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2586 $as_echo "$INSTALL" >&6; }
2587
2588 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2589 # It thinks the first close brace ends the variable substitution.
2590 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2591
2592 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2593
2594 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2595
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2597 $as_echo_n "checking whether build environment is sane... " >&6; }
2598 # Reject unsafe characters in $srcdir or the absolute working directory
2599 # name. Accept space and tab only in the latter.
2600 am_lf='
2601 '
2602 case `pwd` in
2603 *[\\\"\#\$\&\'\`$am_lf]*)
2604 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2605 esac
2606 case $srcdir in
2607 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2608 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2609 esac
2610
2611 # Do 'set' in a subshell so we don't clobber the current shell's
2612 # arguments. Must try -L first in case configure is actually a
2613 # symlink; some systems play weird games with the mod time of symlinks
2614 # (eg FreeBSD returns the mod time of the symlink's containing
2615 # directory).
2616 if (
2617 am_has_slept=no
2618 for am_try in 1 2; do
2619 echo "timestamp, slept: $am_has_slept" > conftest.file
2620 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2621 if test "$*" = "X"; then
2622 # -L didn't work.
2623 set X `ls -t "$srcdir/configure" conftest.file`
2624 fi
2625 if test "$*" != "X $srcdir/configure conftest.file" \
2626 && test "$*" != "X conftest.file $srcdir/configure"; then
2627
2628 # If neither matched, then we have a broken ls. This can happen
2629 # if, for instance, CONFIG_SHELL is bash and it inherits a
2630 # broken ls alias from the environment. This has actually
2631 # happened. Such a system could not be considered "sane".
2632 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2633 alias in your environment" "$LINENO" 5
2634 fi
2635 if test "$2" = conftest.file || test $am_try -eq 2; then
2636 break
2637 fi
2638 # Just in case.
2639 sleep 1
2640 am_has_slept=yes
2641 done
2642 test "$2" = conftest.file
2643 )
2644 then
2645 # Ok.
2646 :
2647 else
2648 as_fn_error $? "newly created file is older than distributed files!
2649 Check your system clock" "$LINENO" 5
2650 fi
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2652 $as_echo "yes" >&6; }
2653 # If we didn't sleep, we still need to ensure time stamps of config.status and
2654 # generated files are strictly newer.
2655 am_sleep_pid=
2656 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2657 ( sleep 1 ) &
2658 am_sleep_pid=$!
2659 fi
2660
2661 rm -f conftest.file
2662
2663 test "$program_prefix" != NONE &&
2664 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2665 # Use a double $ so make ignores it.
2666 test "$program_suffix" != NONE &&
2667 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2668 # Double any \ or $.
2669 # By default was `s,x,x', remove it if useless.
2670 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2671 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2672
2673 # expand $ac_aux_dir to an absolute path
2674 am_aux_dir=`cd $ac_aux_dir && pwd`
2675
2676 if test x"${MISSING+set}" != xset; then
2677 case $am_aux_dir in
2678 *\ * | *\ *)
2679 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2680 *)
2681 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2682 esac
2683 fi
2684 # Use eval to expand $SHELL
2685 if eval "$MISSING --is-lightweight"; then
2686 am_missing_run="$MISSING "
2687 else
2688 am_missing_run=
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2690 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2691 fi
2692
2693 if test x"${install_sh}" != xset; then
2694 case $am_aux_dir in
2695 *\ * | *\ *)
2696 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2697 *)
2698 install_sh="\${SHELL} $am_aux_dir/install-sh"
2699 esac
2700 fi
2701
2702 # Installed binaries are usually stripped using 'strip' when the user
2703 # run "make install-strip". However 'strip' might not be the right
2704 # tool to use in cross-compilation environments, therefore Automake
2705 # will honor the 'STRIP' environment variable to overrule this program.
2706 if test "$cross_compiling" != no; then
2707 if test -n "$ac_tool_prefix"; then
2708 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2709 set dummy ${ac_tool_prefix}strip; ac_word=$2
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2711 $as_echo_n "checking for $ac_word... " >&6; }
2712 if ${ac_cv_prog_STRIP+:} false; then :
2713 $as_echo_n "(cached) " >&6
2714 else
2715 if test -n "$STRIP"; then
2716 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2717 else
2718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2719 for as_dir in $PATH
2720 do
2721 IFS=$as_save_IFS
2722 test -z "$as_dir" && as_dir=.
2723 for ac_exec_ext in '' $ac_executable_extensions; do
2724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2725 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2727 break 2
2728 fi
2729 done
2730 done
2731 IFS=$as_save_IFS
2732
2733 fi
2734 fi
2735 STRIP=$ac_cv_prog_STRIP
2736 if test -n "$STRIP"; then
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2738 $as_echo "$STRIP" >&6; }
2739 else
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2741 $as_echo "no" >&6; }
2742 fi
2743
2744
2745 fi
2746 if test -z "$ac_cv_prog_STRIP"; then
2747 ac_ct_STRIP=$STRIP
2748 # Extract the first word of "strip", so it can be a program name with args.
2749 set dummy strip; ac_word=$2
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2751 $as_echo_n "checking for $ac_word... " >&6; }
2752 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2753 $as_echo_n "(cached) " >&6
2754 else
2755 if test -n "$ac_ct_STRIP"; then
2756 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2757 else
2758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2759 for as_dir in $PATH
2760 do
2761 IFS=$as_save_IFS
2762 test -z "$as_dir" && as_dir=.
2763 for ac_exec_ext in '' $ac_executable_extensions; do
2764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2765 ac_cv_prog_ac_ct_STRIP="strip"
2766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2767 break 2
2768 fi
2769 done
2770 done
2771 IFS=$as_save_IFS
2772
2773 fi
2774 fi
2775 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2776 if test -n "$ac_ct_STRIP"; then
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2778 $as_echo "$ac_ct_STRIP" >&6; }
2779 else
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2781 $as_echo "no" >&6; }
2782 fi
2783
2784 if test "x$ac_ct_STRIP" = x; then
2785 STRIP=":"
2786 else
2787 case $cross_compiling:$ac_tool_warned in
2788 yes:)
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2790 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2791 ac_tool_warned=yes ;;
2792 esac
2793 STRIP=$ac_ct_STRIP
2794 fi
2795 else
2796 STRIP="$ac_cv_prog_STRIP"
2797 fi
2798
2799 fi
2800 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2801
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2803 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2804 if test -z "$MKDIR_P"; then
2805 if ${ac_cv_path_mkdir+:} false; then :
2806 $as_echo_n "(cached) " >&6
2807 else
2808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2809 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2810 do
2811 IFS=$as_save_IFS
2812 test -z "$as_dir" && as_dir=.
2813 for ac_prog in mkdir gmkdir; do
2814 for ac_exec_ext in '' $ac_executable_extensions; do
2815 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2816 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2817 'mkdir (GNU coreutils) '* | \
2818 'mkdir (coreutils) '* | \
2819 'mkdir (fileutils) '4.1*)
2820 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2821 break 3;;
2822 esac
2823 done
2824 done
2825 done
2826 IFS=$as_save_IFS
2827
2828 fi
2829
2830 test -d ./--version && rmdir ./--version
2831 if test "${ac_cv_path_mkdir+set}" = set; then
2832 MKDIR_P="$ac_cv_path_mkdir -p"
2833 else
2834 # As a last resort, use the slow shell script. Don't cache a
2835 # value for MKDIR_P within a source directory, because that will
2836 # break other packages using the cache if that directory is
2837 # removed, or if the value is a relative name.
2838 MKDIR_P="$ac_install_sh -d"
2839 fi
2840 fi
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2842 $as_echo "$MKDIR_P" >&6; }
2843
2844 for ac_prog in gawk mawk nawk awk
2845 do
2846 # Extract the first word of "$ac_prog", so it can be a program name with args.
2847 set dummy $ac_prog; ac_word=$2
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2849 $as_echo_n "checking for $ac_word... " >&6; }
2850 if ${ac_cv_prog_AWK+:} false; then :
2851 $as_echo_n "(cached) " >&6
2852 else
2853 if test -n "$AWK"; then
2854 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2855 else
2856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2857 for as_dir in $PATH
2858 do
2859 IFS=$as_save_IFS
2860 test -z "$as_dir" && as_dir=.
2861 for ac_exec_ext in '' $ac_executable_extensions; do
2862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2863 ac_cv_prog_AWK="$ac_prog"
2864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2865 break 2
2866 fi
2867 done
2868 done
2869 IFS=$as_save_IFS
2870
2871 fi
2872 fi
2873 AWK=$ac_cv_prog_AWK
2874 if test -n "$AWK"; then
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2876 $as_echo "$AWK" >&6; }
2877 else
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2879 $as_echo "no" >&6; }
2880 fi
2881
2882
2883 test -n "$AWK" && break
2884 done
2885
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2887 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2888 set x ${MAKE-make}
2889 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2890 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2891 $as_echo_n "(cached) " >&6
2892 else
2893 cat >conftest.make <<\_ACEOF
2894 SHELL = /bin/sh
2895 all:
2896 @echo '@@@%%%=$(MAKE)=@@@%%%'
2897 _ACEOF
2898 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2899 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2900 *@@@%%%=?*=@@@%%%*)
2901 eval ac_cv_prog_make_${ac_make}_set=yes;;
2902 *)
2903 eval ac_cv_prog_make_${ac_make}_set=no;;
2904 esac
2905 rm -f conftest.make
2906 fi
2907 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2909 $as_echo "yes" >&6; }
2910 SET_MAKE=
2911 else
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2913 $as_echo "no" >&6; }
2914 SET_MAKE="MAKE=${MAKE-make}"
2915 fi
2916
2917 rm -rf .tst 2>/dev/null
2918 mkdir .tst 2>/dev/null
2919 if test -d .tst; then
2920 am__leading_dot=.
2921 else
2922 am__leading_dot=_
2923 fi
2924 rmdir .tst 2>/dev/null
2925
2926 # Check whether --enable-silent-rules was given.
2927 if test "${enable_silent_rules+set}" = set; then :
2928 enableval=$enable_silent_rules;
2929 fi
2930
2931 case $enable_silent_rules in # (((
2932 yes) AM_DEFAULT_VERBOSITY=0;;
2933 no) AM_DEFAULT_VERBOSITY=1;;
2934 *) AM_DEFAULT_VERBOSITY=1;;
2935 esac
2936 am_make=${MAKE-make}
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2938 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2939 if ${am_cv_make_support_nested_variables+:} false; then :
2940 $as_echo_n "(cached) " >&6
2941 else
2942 if $as_echo 'TRUE=$(BAR$(V))
2943 BAR0=false
2944 BAR1=true
2945 V=1
2946 am__doit:
2947 @$(TRUE)
2948 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2949 am_cv_make_support_nested_variables=yes
2950 else
2951 am_cv_make_support_nested_variables=no
2952 fi
2953 fi
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2955 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2956 if test $am_cv_make_support_nested_variables = yes; then
2957 AM_V='$(V)'
2958 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2959 else
2960 AM_V=$AM_DEFAULT_VERBOSITY
2961 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2962 fi
2963 AM_BACKSLASH='\'
2964
2965 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2966 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2967 # is not polluted with repeated "-I."
2968 am__isrc=' -I$(srcdir)'
2969 # test to see if srcdir already configured
2970 if test -f $srcdir/config.status; then
2971 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2972 fi
2973 fi
2974
2975 # test whether we have cygpath
2976 if test -z "$CYGPATH_W"; then
2977 if (cygpath --version) >/dev/null 2>/dev/null; then
2978 CYGPATH_W='cygpath -w'
2979 else
2980 CYGPATH_W=echo
2981 fi
2982 fi
2983
2984
2985 # Define the identity of the package.
2986 PACKAGE='libcec'
2987 VERSION='2:1:0'
2988
2989
2990 cat >>confdefs.h <<_ACEOF
2991 #define PACKAGE "$PACKAGE"
2992 _ACEOF
2993
2994
2995 cat >>confdefs.h <<_ACEOF
2996 #define VERSION "$VERSION"
2997 _ACEOF
2998
2999 # Some tools Automake needs.
3000
3001 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3002
3003
3004 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3005
3006
3007 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3008
3009
3010 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3011
3012
3013 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3014
3015 # For better backward compatibility. To be removed once Automake 1.9.x
3016 # dies out for good. For more background, see:
3017 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3018 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3019 mkdir_p='$(MKDIR_P)'
3020
3021 # We need awk for the "check" target. The system "awk" is bad on
3022 # some platforms.
3023 # Always define AMTAR for backward compatibility. Yes, it's still used
3024 # in the wild :-( We should find a proper way to deprecate it ...
3025 AMTAR='$${TAR-tar}'
3026
3027
3028 # We'll loop over all known methods to create a tar archive until one works.
3029 _am_tools='gnutar pax cpio none'
3030
3031 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3032
3033
3034
3035
3036
3037
3038 # POSIX will say in a future version that running "rm -f" with no argument
3039 # is OK; and we want to be able to make that assumption in our Makefile
3040 # recipes. So use an aggressive probe to check that the usage we want is
3041 # actually supported "in the wild" to an acceptable degree.
3042 # See automake bug#10828.
3043 # To make any issue more visible, cause the running configure to be aborted
3044 # by default if the 'rm' program in use doesn't match our expectations; the
3045 # user can still override this though.
3046 if rm -f && rm -fr && rm -rf; then : OK; else
3047 cat >&2 <<'END'
3048 Oops!
3049
3050 Your 'rm' program seems unable to run without file operands specified
3051 on the command line, even when the '-f' option is present. This is contrary
3052 to the behaviour of most rm programs out there, and not conforming with
3053 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3054
3055 Please tell bug-automake@gnu.org about your system, including the value
3056 of your $PATH and any error possibly output before this message. This
3057 can help us improve future automake versions.
3058
3059 END
3060 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3061 echo 'Configuration will proceed anyway, since you have set the' >&2
3062 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3063 echo >&2
3064 else
3065 cat >&2 <<'END'
3066 Aborting the configuration process, to ensure you take notice of the issue.
3067
3068 You can download and install GNU coreutils to get an 'rm' implementation
3069 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3070
3071 If you want to complete the configuration process using your problematic
3072 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3073 to "yes", and re-run configure.
3074
3075 END
3076 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3077 fi
3078 fi
3079 # Check whether --enable-silent-rules was given.
3080 if test "${enable_silent_rules+set}" = set; then :
3081 enableval=$enable_silent_rules;
3082 fi
3083
3084 case $enable_silent_rules in # (((
3085 yes) AM_DEFAULT_VERBOSITY=0;;
3086 no) AM_DEFAULT_VERBOSITY=1;;
3087 *) AM_DEFAULT_VERBOSITY=0;;
3088 esac
3089 am_make=${MAKE-make}
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3091 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3092 if ${am_cv_make_support_nested_variables+:} false; then :
3093 $as_echo_n "(cached) " >&6
3094 else
3095 if $as_echo 'TRUE=$(BAR$(V))
3096 BAR0=false
3097 BAR1=true
3098 V=1
3099 am__doit:
3100 @$(TRUE)
3101 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3102 am_cv_make_support_nested_variables=yes
3103 else
3104 am_cv_make_support_nested_variables=no
3105 fi
3106 fi
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3108 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3109 if test $am_cv_make_support_nested_variables = yes; then
3110 AM_V='$(V)'
3111 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3112 else
3113 AM_V=$AM_DEFAULT_VERBOSITY
3114 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3115 fi
3116 AM_BACKSLASH='\'
3117
3118
3119 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3120 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3121 # is not polluted with repeated "-I."
3122 am__isrc=' -I$(srcdir)'
3123 # test to see if srcdir already configured
3124 if test -f $srcdir/config.status; then
3125 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3126 fi
3127 fi
3128
3129 # test whether we have cygpath
3130 if test -z "$CYGPATH_W"; then
3131 if (cygpath --version) >/dev/null 2>/dev/null; then
3132 CYGPATH_W='cygpath -w'
3133 else
3134 CYGPATH_W=echo
3135 fi
3136 fi
3137
3138
3139 # Define the identity of the package.
3140
3141 PACKAGE=libcec
3142 VERSION=2:1:0
3143
3144
3145 cat >>confdefs.h <<_ACEOF
3146 #define PACKAGE "$PACKAGE"
3147 _ACEOF
3148
3149
3150 cat >>confdefs.h <<_ACEOF
3151 #define VERSION "$VERSION"
3152 _ACEOF
3153
3154 # Some tools Automake needs.
3155
3156 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3157
3158
3159 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3160
3161
3162 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3163
3164
3165 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3166
3167
3168 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3169
3170 # For better backward compatibility. To be removed once Automake 1.9.x
3171 # dies out for good. For more background, see:
3172 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3173 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3174 mkdir_p='$(MKDIR_P)'
3175
3176 # We need awk for the "check" target. The system "awk" is bad on
3177 # some platforms.
3178 # Always define AMTAR for backward compatibility. Yes, it's still used
3179 # in the wild :-( We should find a proper way to deprecate it ...
3180 AMTAR='$${TAR-tar}'
3181
3182
3183 # We'll loop over all known methods to create a tar archive until one works.
3184 _am_tools='gnutar pax cpio none'
3185
3186 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3187
3188
3189
3190
3191
3192
3193 # POSIX will say in a future version that running "rm -f" with no argument
3194 # is OK; and we want to be able to make that assumption in our Makefile
3195 # recipes. So use an aggressive probe to check that the usage we want is
3196 # actually supported "in the wild" to an acceptable degree.
3197 # See automake bug#10828.
3198 # To make any issue more visible, cause the running configure to be aborted
3199 # by default if the 'rm' program in use doesn't match our expectations; the
3200 # user can still override this though.
3201 if rm -f && rm -fr && rm -rf; then : OK; else
3202 cat >&2 <<'END'
3203 Oops!
3204
3205 Your 'rm' program seems unable to run without file operands specified
3206 on the command line, even when the '-f' option is present. This is contrary
3207 to the behaviour of most rm programs out there, and not conforming with
3208 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3209
3210 Please tell bug-automake@gnu.org about your system, including the value
3211 of your $PATH and any error possibly output before this message. This
3212 can help us improve future automake versions.
3213
3214 END
3215 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3216 echo 'Configuration will proceed anyway, since you have set the' >&2
3217 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3218 echo >&2
3219 else
3220 cat >&2 <<'END'
3221 Aborting the configuration process, to ensure you take notice of the issue.
3222
3223 You can download and install GNU coreutils to get an 'rm' implementation
3224 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3225
3226 If you want to complete the configuration process using your problematic
3227 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3228 to "yes", and re-run configure.
3229
3230 END
3231 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3232 fi
3233 fi
3234
3235 # Make sure we can run config.sub.
3236 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3237 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3238
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3240 $as_echo_n "checking build system type... " >&6; }
3241 if ${ac_cv_build+:} false; then :
3242 $as_echo_n "(cached) " >&6
3243 else
3244 ac_build_alias=$build_alias
3245 test "x$ac_build_alias" = x &&
3246 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3247 test "x$ac_build_alias" = x &&
3248 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3249 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3250 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3251
3252 fi
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3254 $as_echo "$ac_cv_build" >&6; }
3255 case $ac_cv_build in
3256 *-*-*) ;;
3257 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3258 esac
3259 build=$ac_cv_build
3260 ac_save_IFS=$IFS; IFS='-'
3261 set x $ac_cv_build
3262 shift
3263 build_cpu=$1
3264 build_vendor=$2
3265 shift; shift
3266 # Remember, the first character of IFS is used to create $*,
3267 # except with old shells:
3268 build_os=$*
3269 IFS=$ac_save_IFS
3270 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3271
3272
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3274 $as_echo_n "checking host system type... " >&6; }
3275 if ${ac_cv_host+:} false; then :
3276 $as_echo_n "(cached) " >&6
3277 else
3278 if test "x$host_alias" = x; then
3279 ac_cv_host=$ac_cv_build
3280 else
3281 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3282 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3283 fi
3284
3285 fi
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3287 $as_echo "$ac_cv_host" >&6; }
3288 case $ac_cv_host in
3289 *-*-*) ;;
3290 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3291 esac
3292 host=$ac_cv_host
3293 ac_save_IFS=$IFS; IFS='-'
3294 set x $ac_cv_host
3295 shift
3296 host_cpu=$1
3297 host_vendor=$2
3298 shift; shift
3299 # Remember, the first character of IFS is used to create $*,
3300 # except with old shells:
3301 host_os=$*
3302 IFS=$ac_save_IFS
3303 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3304
3305
3306
3307 cflags_reset="$CFLAGS"
3308 ac_ext=cpp
3309 ac_cpp='$CXXCPP $CPPFLAGS'
3310 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3311 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3312 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3313
3314 ac_ext=cpp
3315 ac_cpp='$CXXCPP $CPPFLAGS'
3316 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3317 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3318 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3319 if test -z "$CXX"; then
3320 if test -n "$CCC"; then
3321 CXX=$CCC
3322 else
3323 if test -n "$ac_tool_prefix"; then
3324 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3325 do
3326 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3327 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3329 $as_echo_n "checking for $ac_word... " >&6; }
3330 if ${ac_cv_prog_CXX+:} false; then :
3331 $as_echo_n "(cached) " >&6
3332 else
3333 if test -n "$CXX"; then
3334 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3335 else
3336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3337 for as_dir in $PATH
3338 do
3339 IFS=$as_save_IFS
3340 test -z "$as_dir" && as_dir=.
3341 for ac_exec_ext in '' $ac_executable_extensions; do
3342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3343 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3345 break 2
3346 fi
3347 done
3348 done
3349 IFS=$as_save_IFS
3350
3351 fi
3352 fi
3353 CXX=$ac_cv_prog_CXX
3354 if test -n "$CXX"; then
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3356 $as_echo "$CXX" >&6; }
3357 else
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3359 $as_echo "no" >&6; }
3360 fi
3361
3362
3363 test -n "$CXX" && break
3364 done
3365 fi
3366 if test -z "$CXX"; then
3367 ac_ct_CXX=$CXX
3368 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3369 do
3370 # Extract the first word of "$ac_prog", so it can be a program name with args.
3371 set dummy $ac_prog; ac_word=$2
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3373 $as_echo_n "checking for $ac_word... " >&6; }
3374 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3375 $as_echo_n "(cached) " >&6
3376 else
3377 if test -n "$ac_ct_CXX"; then
3378 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3379 else
3380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3381 for as_dir in $PATH
3382 do
3383 IFS=$as_save_IFS
3384 test -z "$as_dir" && as_dir=.
3385 for ac_exec_ext in '' $ac_executable_extensions; do
3386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3387 ac_cv_prog_ac_ct_CXX="$ac_prog"
3388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3389 break 2
3390 fi
3391 done
3392 done
3393 IFS=$as_save_IFS
3394
3395 fi
3396 fi
3397 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3398 if test -n "$ac_ct_CXX"; then
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3400 $as_echo "$ac_ct_CXX" >&6; }
3401 else
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3403 $as_echo "no" >&6; }
3404 fi
3405
3406
3407 test -n "$ac_ct_CXX" && break
3408 done
3409
3410 if test "x$ac_ct_CXX" = x; then
3411 CXX="g++"
3412 else
3413 case $cross_compiling:$ac_tool_warned in
3414 yes:)
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3416 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3417 ac_tool_warned=yes ;;
3418 esac
3419 CXX=$ac_ct_CXX
3420 fi
3421 fi
3422
3423 fi
3424 fi
3425 # Provide some information about the compiler.
3426 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3427 set X $ac_compile
3428 ac_compiler=$2
3429 for ac_option in --version -v -V -qversion; do
3430 { { ac_try="$ac_compiler $ac_option >&5"
3431 case "(($ac_try" in
3432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3433 *) ac_try_echo=$ac_try;;
3434 esac
3435 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3436 $as_echo "$ac_try_echo"; } >&5
3437 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3438 ac_status=$?
3439 if test -s conftest.err; then
3440 sed '10a\
3441 ... rest of stderr output deleted ...
3442 10q' conftest.err >conftest.er1
3443 cat conftest.er1 >&5
3444 fi
3445 rm -f conftest.er1 conftest.err
3446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3447 test $ac_status = 0; }
3448 done
3449
3450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3451 /* end confdefs.h. */
3452
3453 int
3454 main ()
3455 {
3456
3457 ;
3458 return 0;
3459 }
3460 _ACEOF
3461 ac_clean_files_save=$ac_clean_files
3462 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3463 # Try to create an executable without -o first, disregard a.out.
3464 # It will help us diagnose broken compilers, and finding out an intuition
3465 # of exeext.
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3467 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3468 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3469
3470 # The possible output files:
3471 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3472
3473 ac_rmfiles=
3474 for ac_file in $ac_files
3475 do
3476 case $ac_file in
3477 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3478 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3479 esac
3480 done
3481 rm -f $ac_rmfiles
3482
3483 if { { ac_try="$ac_link_default"
3484 case "(($ac_try" in
3485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3486 *) ac_try_echo=$ac_try;;
3487 esac
3488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3489 $as_echo "$ac_try_echo"; } >&5
3490 (eval "$ac_link_default") 2>&5
3491 ac_status=$?
3492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3493 test $ac_status = 0; }; then :
3494 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3495 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3496 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3497 # so that the user can short-circuit this test for compilers unknown to
3498 # Autoconf.
3499 for ac_file in $ac_files ''
3500 do
3501 test -f "$ac_file" || continue
3502 case $ac_file in
3503 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3504 ;;
3505 [ab].out )
3506 # We found the default executable, but exeext='' is most
3507 # certainly right.
3508 break;;
3509 *.* )
3510 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3511 then :; else
3512 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3513 fi
3514 # We set ac_cv_exeext here because the later test for it is not
3515 # safe: cross compilers may not add the suffix if given an `-o'
3516 # argument, so we may need to know it at that point already.
3517 # Even if this section looks crufty: it has the advantage of
3518 # actually working.
3519 break;;
3520 * )
3521 break;;
3522 esac
3523 done
3524 test "$ac_cv_exeext" = no && ac_cv_exeext=
3525
3526 else
3527 ac_file=''
3528 fi
3529 if test -z "$ac_file"; then :
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3531 $as_echo "no" >&6; }
3532 $as_echo "$as_me: failed program was:" >&5
3533 sed 's/^/| /' conftest.$ac_ext >&5
3534
3535 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3536 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3537 as_fn_error 77 "C++ compiler cannot create executables
3538 See \`config.log' for more details" "$LINENO" 5; }
3539 else
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3541 $as_echo "yes" >&6; }
3542 fi
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3544 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3546 $as_echo "$ac_file" >&6; }
3547 ac_exeext=$ac_cv_exeext
3548
3549 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3550 ac_clean_files=$ac_clean_files_save
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3552 $as_echo_n "checking for suffix of executables... " >&6; }
3553 if { { ac_try="$ac_link"
3554 case "(($ac_try" in
3555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3556 *) ac_try_echo=$ac_try;;
3557 esac
3558 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3559 $as_echo "$ac_try_echo"; } >&5
3560 (eval "$ac_link") 2>&5
3561 ac_status=$?
3562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3563 test $ac_status = 0; }; then :
3564 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3565 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3566 # work properly (i.e., refer to `conftest.exe'), while it won't with
3567 # `rm'.
3568 for ac_file in conftest.exe conftest conftest.*; do
3569 test -f "$ac_file" || continue
3570 case $ac_file in
3571 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3572 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3573 break;;
3574 * ) break;;
3575 esac
3576 done
3577 else
3578 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3579 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3580 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3581 See \`config.log' for more details" "$LINENO" 5; }
3582 fi
3583 rm -f conftest conftest$ac_cv_exeext
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3585 $as_echo "$ac_cv_exeext" >&6; }
3586
3587 rm -f conftest.$ac_ext
3588 EXEEXT=$ac_cv_exeext
3589 ac_exeext=$EXEEXT
3590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3591 /* end confdefs.h. */
3592 #include <stdio.h>
3593 int
3594 main ()
3595 {
3596 FILE *f = fopen ("conftest.out", "w");
3597 return ferror (f) || fclose (f) != 0;
3598
3599 ;
3600 return 0;
3601 }
3602 _ACEOF
3603 ac_clean_files="$ac_clean_files conftest.out"
3604 # Check that the compiler produces executables we can run. If not, either
3605 # the compiler is broken, or we cross compile.
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3607 $as_echo_n "checking whether we are cross compiling... " >&6; }
3608 if test "$cross_compiling" != yes; then
3609 { { ac_try="$ac_link"
3610 case "(($ac_try" in
3611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612 *) ac_try_echo=$ac_try;;
3613 esac
3614 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3615 $as_echo "$ac_try_echo"; } >&5
3616 (eval "$ac_link") 2>&5
3617 ac_status=$?
3618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3619 test $ac_status = 0; }
3620 if { ac_try='./conftest$ac_cv_exeext'
3621 { { case "(($ac_try" in
3622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3623 *) ac_try_echo=$ac_try;;
3624 esac
3625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3626 $as_echo "$ac_try_echo"; } >&5
3627 (eval "$ac_try") 2>&5
3628 ac_status=$?
3629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3630 test $ac_status = 0; }; }; then
3631 cross_compiling=no
3632 else
3633 if test "$cross_compiling" = maybe; then
3634 cross_compiling=yes
3635 else
3636 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3637 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3638 as_fn_error $? "cannot run C++ compiled programs.
3639 If you meant to cross compile, use \`--host'.
3640 See \`config.log' for more details" "$LINENO" 5; }
3641 fi
3642 fi
3643 fi
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3645 $as_echo "$cross_compiling" >&6; }
3646
3647 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3648 ac_clean_files=$ac_clean_files_save
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3650 $as_echo_n "checking for suffix of object files... " >&6; }
3651 if ${ac_cv_objext+:} false; then :
3652 $as_echo_n "(cached) " >&6
3653 else
3654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3655 /* end confdefs.h. */
3656
3657 int
3658 main ()
3659 {
3660
3661 ;
3662 return 0;
3663 }
3664 _ACEOF
3665 rm -f conftest.o conftest.obj
3666 if { { ac_try="$ac_compile"
3667 case "(($ac_try" in
3668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3669 *) ac_try_echo=$ac_try;;
3670 esac
3671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3672 $as_echo "$ac_try_echo"; } >&5
3673 (eval "$ac_compile") 2>&5
3674 ac_status=$?
3675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3676 test $ac_status = 0; }; then :
3677 for ac_file in conftest.o conftest.obj conftest.*; do
3678 test -f "$ac_file" || continue;
3679 case $ac_file in
3680 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3681 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3682 break;;
3683 esac
3684 done
3685 else
3686 $as_echo "$as_me: failed program was:" >&5
3687 sed 's/^/| /' conftest.$ac_ext >&5
3688
3689 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3690 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3691 as_fn_error $? "cannot compute suffix of object files: cannot compile
3692 See \`config.log' for more details" "$LINENO" 5; }
3693 fi
3694 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3695 fi
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3697 $as_echo "$ac_cv_objext" >&6; }
3698 OBJEXT=$ac_cv_objext
3699 ac_objext=$OBJEXT
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3701 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3702 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3703 $as_echo_n "(cached) " >&6
3704 else
3705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3706 /* end confdefs.h. */
3707
3708 int
3709 main ()
3710 {
3711 #ifndef __GNUC__
3712 choke me
3713 #endif
3714
3715 ;
3716 return 0;
3717 }
3718 _ACEOF
3719 if ac_fn_cxx_try_compile "$LINENO"; then :
3720 ac_compiler_gnu=yes
3721 else
3722 ac_compiler_gnu=no
3723 fi
3724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3725 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3726
3727 fi
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3729 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3730 if test $ac_compiler_gnu = yes; then
3731 GXX=yes
3732 else
3733 GXX=
3734 fi
3735 ac_test_CXXFLAGS=${CXXFLAGS+set}
3736 ac_save_CXXFLAGS=$CXXFLAGS
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3738 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3739 if ${ac_cv_prog_cxx_g+:} false; then :
3740 $as_echo_n "(cached) " >&6
3741 else
3742 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3743 ac_cxx_werror_flag=yes
3744 ac_cv_prog_cxx_g=no
3745 CXXFLAGS="-g"
3746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3747 /* end confdefs.h. */
3748
3749 int
3750 main ()
3751 {
3752
3753 ;
3754 return 0;
3755 }
3756 _ACEOF
3757 if ac_fn_cxx_try_compile "$LINENO"; then :
3758 ac_cv_prog_cxx_g=yes
3759 else
3760 CXXFLAGS=""
3761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3762 /* end confdefs.h. */
3763
3764 int
3765 main ()
3766 {
3767
3768 ;
3769 return 0;
3770 }
3771 _ACEOF
3772 if ac_fn_cxx_try_compile "$LINENO"; then :
3773
3774 else
3775 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3776 CXXFLAGS="-g"
3777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3778 /* end confdefs.h. */
3779
3780 int
3781 main ()
3782 {
3783
3784 ;
3785 return 0;
3786 }
3787 _ACEOF
3788 if ac_fn_cxx_try_compile "$LINENO"; then :
3789 ac_cv_prog_cxx_g=yes
3790 fi
3791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3792 fi
3793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3794 fi
3795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3796 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3797 fi
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3799 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3800 if test "$ac_test_CXXFLAGS" = set; then
3801 CXXFLAGS=$ac_save_CXXFLAGS
3802 elif test $ac_cv_prog_cxx_g = yes; then
3803 if test "$GXX" = yes; then
3804 CXXFLAGS="-g -O2"
3805 else
3806 CXXFLAGS="-g"
3807 fi
3808 else
3809 if test "$GXX" = yes; then
3810 CXXFLAGS="-O2"
3811 else
3812 CXXFLAGS=
3813 fi
3814 fi
3815 ac_ext=cpp
3816 ac_cpp='$CXXCPP $CPPFLAGS'
3817 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3818 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3819 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3820 DEPDIR="${am__leading_dot}deps"
3821
3822 ac_config_commands="$ac_config_commands depfiles"
3823
3824
3825 am_make=${MAKE-make}
3826 cat > confinc << 'END'
3827 am__doit:
3828 @echo this is the am__doit target
3829 .PHONY: am__doit
3830 END
3831 # If we don't find an include directive, just comment out the code.
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3833 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3834 am__include="#"
3835 am__quote=
3836 _am_result=none
3837 # First try GNU make style include.
3838 echo "include confinc" > confmf
3839 # Ignore all kinds of additional output from 'make'.
3840 case `$am_make -s -f confmf 2> /dev/null` in #(
3841 *the\ am__doit\ target*)
3842 am__include=include
3843 am__quote=
3844 _am_result=GNU
3845 ;;
3846 esac
3847 # Now try BSD make style include.
3848 if test "$am__include" = "#"; then
3849 echo '.include "confinc"' > confmf
3850 case `$am_make -s -f confmf 2> /dev/null` in #(
3851 *the\ am__doit\ target*)
3852 am__include=.include
3853 am__quote="\""
3854 _am_result=BSD
3855 ;;
3856 esac
3857 fi
3858
3859
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3861 $as_echo "$_am_result" >&6; }
3862 rm -f confinc confmf
3863
3864 # Check whether --enable-dependency-tracking was given.
3865 if test "${enable_dependency_tracking+set}" = set; then :
3866 enableval=$enable_dependency_tracking;
3867 fi
3868
3869 if test "x$enable_dependency_tracking" != xno; then
3870 am_depcomp="$ac_aux_dir/depcomp"
3871 AMDEPBACKSLASH='\'
3872 am__nodep='_no'
3873 fi
3874 if test "x$enable_dependency_tracking" != xno; then
3875 AMDEP_TRUE=
3876 AMDEP_FALSE='#'
3877 else
3878 AMDEP_TRUE='#'
3879 AMDEP_FALSE=
3880 fi
3881
3882
3883
3884 depcc="$CXX" am_compiler_list=
3885
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3887 $as_echo_n "checking dependency style of $depcc... " >&6; }
3888 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
3889 $as_echo_n "(cached) " >&6
3890 else
3891 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3892 # We make a subdir and do the tests there. Otherwise we can end up
3893 # making bogus files that we don't know about and never remove. For
3894 # instance it was reported that on HP-UX the gcc test will end up
3895 # making a dummy file named 'D' -- because '-MD' means "put the output
3896 # in D".
3897 rm -rf conftest.dir
3898 mkdir conftest.dir
3899 # Copy depcomp to subdir because otherwise we won't find it if we're
3900 # using a relative directory.
3901 cp "$am_depcomp" conftest.dir
3902 cd conftest.dir
3903 # We will build objects and dependencies in a subdirectory because
3904 # it helps to detect inapplicable dependency modes. For instance
3905 # both Tru64's cc and ICC support -MD to output dependencies as a
3906 # side effect of compilation, but ICC will put the dependencies in
3907 # the current directory while Tru64 will put them in the object
3908 # directory.
3909 mkdir sub
3910
3911 am_cv_CXX_dependencies_compiler_type=none
3912 if test "$am_compiler_list" = ""; then
3913 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3914 fi
3915 am__universal=false
3916 case " $depcc " in #(
3917 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3918 esac
3919
3920 for depmode in $am_compiler_list; do
3921 # Setup a source with many dependencies, because some compilers
3922 # like to wrap large dependency lists on column 80 (with \), and
3923 # we should not choose a depcomp mode which is confused by this.
3924 #
3925 # We need to recreate these files for each test, as the compiler may
3926 # overwrite some of them when testing with obscure command lines.
3927 # This happens at least with the AIX C compiler.
3928 : > sub/conftest.c
3929 for i in 1 2 3 4 5 6; do
3930 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3931 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3932 # Solaris 10 /bin/sh.
3933 echo '/* dummy */' > sub/conftst$i.h
3934 done
3935 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3936
3937 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3938 # mode. It turns out that the SunPro C++ compiler does not properly
3939 # handle '-M -o', and we need to detect this. Also, some Intel
3940 # versions had trouble with output in subdirs.
3941 am__obj=sub/conftest.${OBJEXT-o}
3942 am__minus_obj="-o $am__obj"
3943 case $depmode in
3944 gcc)
3945 # This depmode causes a compiler race in universal mode.
3946 test "$am__universal" = false || continue
3947 ;;
3948 nosideeffect)
3949 # After this tag, mechanisms are not by side-effect, so they'll
3950 # only be used when explicitly requested.
3951 if test "x$enable_dependency_tracking" = xyes; then
3952 continue
3953 else
3954 break
3955 fi
3956 ;;
3957 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3958 # This compiler won't grok '-c -o', but also, the minuso test has
3959 # not run yet. These depmodes are late enough in the game, and
3960 # so weak that their functioning should not be impacted.
3961 am__obj=conftest.${OBJEXT-o}
3962 am__minus_obj=
3963 ;;
3964 none) break ;;
3965 esac
3966 if depmode=$depmode \
3967 source=sub/conftest.c object=$am__obj \
3968 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3969 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3970 >/dev/null 2>conftest.err &&
3971 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3972 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3973 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3974 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3975 # icc doesn't choke on unknown options, it will just issue warnings
3976 # or remarks (even with -Werror). So we grep stderr for any message
3977 # that says an option was ignored or not supported.
3978 # When given -MP, icc 7.0 and 7.1 complain thusly:
3979 # icc: Command line warning: ignoring option '-M'; no argument required
3980 # The diagnosis changed in icc 8.0:
3981 # icc: Command line remark: option '-MP' not supported
3982 if (grep 'ignoring option' conftest.err ||
3983 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3984 am_cv_CXX_dependencies_compiler_type=$depmode
3985 break
3986 fi
3987 fi
3988 done
3989
3990 cd ..
3991 rm -rf conftest.dir
3992 else
3993 am_cv_CXX_dependencies_compiler_type=none
3994 fi
3995
3996 fi
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3998 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3999 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4000
4001 if
4002 test "x$enable_dependency_tracking" != xno \
4003 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4004 am__fastdepCXX_TRUE=
4005 am__fastdepCXX_FALSE='#'
4006 else
4007 am__fastdepCXX_TRUE='#'
4008 am__fastdepCXX_FALSE=
4009 fi
4010
4011
4012 depcc="$CXX" am_compiler_list=
4013
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4015 $as_echo_n "checking dependency style of $depcc... " >&6; }
4016 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4017 $as_echo_n "(cached) " >&6
4018 else
4019 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4020 # We make a subdir and do the tests there. Otherwise we can end up
4021 # making bogus files that we don't know about and never remove. For
4022 # instance it was reported that on HP-UX the gcc test will end up
4023 # making a dummy file named 'D' -- because '-MD' means "put the output
4024 # in D".
4025 rm -rf conftest.dir
4026 mkdir conftest.dir
4027 # Copy depcomp to subdir because otherwise we won't find it if we're
4028 # using a relative directory.
4029 cp "$am_depcomp" conftest.dir
4030 cd conftest.dir
4031 # We will build objects and dependencies in a subdirectory because
4032 # it helps to detect inapplicable dependency modes. For instance
4033 # both Tru64's cc and ICC support -MD to output dependencies as a
4034 # side effect of compilation, but ICC will put the dependencies in
4035 # the current directory while Tru64 will put them in the object
4036 # directory.
4037 mkdir sub
4038
4039 am_cv_CXX_dependencies_compiler_type=none
4040 if test "$am_compiler_list" = ""; then
4041 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4042 fi
4043 am__universal=false
4044 case " $depcc " in #(
4045 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4046 esac
4047
4048 for depmode in $am_compiler_list; do
4049 # Setup a source with many dependencies, because some compilers
4050 # like to wrap large dependency lists on column 80 (with \), and
4051 # we should not choose a depcomp mode which is confused by this.
4052 #
4053 # We need to recreate these files for each test, as the compiler may
4054 # overwrite some of them when testing with obscure command lines.
4055 # This happens at least with the AIX C compiler.
4056 : > sub/conftest.c
4057 for i in 1 2 3 4 5 6; do
4058 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4059 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4060 # Solaris 10 /bin/sh.
4061 echo '/* dummy */' > sub/conftst$i.h
4062 done
4063 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4064
4065 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4066 # mode. It turns out that the SunPro C++ compiler does not properly
4067 # handle '-M -o', and we need to detect this. Also, some Intel
4068 # versions had trouble with output in subdirs.
4069 am__obj=sub/conftest.${OBJEXT-o}
4070 am__minus_obj="-o $am__obj"
4071 case $depmode in
4072 gcc)
4073 # This depmode causes a compiler race in universal mode.
4074 test "$am__universal" = false || continue
4075 ;;
4076 nosideeffect)
4077 # After this tag, mechanisms are not by side-effect, so they'll
4078 # only be used when explicitly requested.
4079 if test "x$enable_dependency_tracking" = xyes; then
4080 continue
4081 else
4082 break
4083 fi
4084 ;;
4085 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4086 # This compiler won't grok '-c -o', but also, the minuso test has
4087 # not run yet. These depmodes are late enough in the game, and
4088 # so weak that their functioning should not be impacted.
4089 am__obj=conftest.${OBJEXT-o}
4090 am__minus_obj=
4091 ;;
4092 none) break ;;
4093 esac
4094 if depmode=$depmode \
4095 source=sub/conftest.c object=$am__obj \
4096 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4097 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4098 >/dev/null 2>conftest.err &&
4099 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4100 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4101 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4102 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4103 # icc doesn't choke on unknown options, it will just issue warnings
4104 # or remarks (even with -Werror). So we grep stderr for any message
4105 # that says an option was ignored or not supported.
4106 # When given -MP, icc 7.0 and 7.1 complain thusly:
4107 # icc: Command line warning: ignoring option '-M'; no argument required
4108 # The diagnosis changed in icc 8.0:
4109 # icc: Command line remark: option '-MP' not supported
4110 if (grep 'ignoring option' conftest.err ||
4111 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4112 am_cv_CXX_dependencies_compiler_type=$depmode
4113 break
4114 fi
4115 fi
4116 done
4117
4118 cd ..
4119 rm -rf conftest.dir
4120 else
4121 am_cv_CXX_dependencies_compiler_type=none
4122 fi
4123
4124 fi
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4126 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4127 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4128
4129 if
4130 test "x$enable_dependency_tracking" != xno \
4131 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4132 am__fastdepCXX_TRUE=
4133 am__fastdepCXX_FALSE='#'
4134 else
4135 am__fastdepCXX_TRUE='#'
4136 am__fastdepCXX_FALSE=
4137 fi
4138
4139
4140 case `pwd` in
4141 *\ * | *\ *)
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4143 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4144 esac
4145
4146
4147
4148 macro_version='2.4.2'
4149 macro_revision='1.3337'
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163 ltmain="$ac_aux_dir/ltmain.sh"
4164
4165 # Backslashify metacharacters that are still active within
4166 # double-quoted strings.
4167 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4168
4169 # Same as above, but do not quote variable references.
4170 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4171
4172 # Sed substitution to delay expansion of an escaped shell variable in a
4173 # double_quote_subst'ed string.
4174 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4175
4176 # Sed substitution to delay expansion of an escaped single quote.
4177 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4178
4179 # Sed substitution to avoid accidental globbing in evaled expressions
4180 no_glob_subst='s/\*/\\\*/g'
4181
4182 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4183 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4184 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4185
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4187 $as_echo_n "checking how to print strings... " >&6; }
4188 # Test print first, because it will be a builtin if present.
4189 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4190 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4191 ECHO='print -r --'
4192 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4193 ECHO='printf %s\n'
4194 else
4195 # Use this function as a fallback that always works.
4196 func_fallback_echo ()
4197 {
4198 eval 'cat <<_LTECHO_EOF
4199 $1
4200 _LTECHO_EOF'
4201 }
4202 ECHO='func_fallback_echo'
4203 fi
4204
4205 # func_echo_all arg...
4206 # Invoke $ECHO with all args, space-separated.
4207 func_echo_all ()
4208 {
4209 $ECHO ""
4210 }
4211
4212 case "$ECHO" in
4213 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4214 $as_echo "printf" >&6; } ;;
4215 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4216 $as_echo "print -r" >&6; } ;;
4217 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4218 $as_echo "cat" >&6; } ;;
4219 esac
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234 ac_ext=c
4235 ac_cpp='$CPP $CPPFLAGS'
4236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4239 if test -n "$ac_tool_prefix"; then
4240 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4241 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4243 $as_echo_n "checking for $ac_word... " >&6; }
4244 if ${ac_cv_prog_CC+:} false; then :
4245 $as_echo_n "(cached) " >&6
4246 else
4247 if test -n "$CC"; then
4248 ac_cv_prog_CC="$CC" # Let the user override the test.
4249 else
4250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4251 for as_dir in $PATH
4252 do
4253 IFS=$as_save_IFS
4254 test -z "$as_dir" && as_dir=.
4255 for ac_exec_ext in '' $ac_executable_extensions; do
4256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4257 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4259 break 2
4260 fi
4261 done
4262 done
4263 IFS=$as_save_IFS
4264
4265 fi
4266 fi
4267 CC=$ac_cv_prog_CC
4268 if test -n "$CC"; then
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4270 $as_echo "$CC" >&6; }
4271 else
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4273 $as_echo "no" >&6; }
4274 fi
4275
4276
4277 fi
4278 if test -z "$ac_cv_prog_CC"; then
4279 ac_ct_CC=$CC
4280 # Extract the first word of "gcc", so it can be a program name with args.
4281 set dummy gcc; ac_word=$2
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4283 $as_echo_n "checking for $ac_word... " >&6; }
4284 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4285 $as_echo_n "(cached) " >&6
4286 else
4287 if test -n "$ac_ct_CC"; then
4288 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4289 else
4290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4291 for as_dir in $PATH
4292 do
4293 IFS=$as_save_IFS
4294 test -z "$as_dir" && as_dir=.
4295 for ac_exec_ext in '' $ac_executable_extensions; do
4296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4297 ac_cv_prog_ac_ct_CC="gcc"
4298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4299 break 2
4300 fi
4301 done
4302 done
4303 IFS=$as_save_IFS
4304
4305 fi
4306 fi
4307 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4308 if test -n "$ac_ct_CC"; then
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4310 $as_echo "$ac_ct_CC" >&6; }
4311 else
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4313 $as_echo "no" >&6; }
4314 fi
4315
4316 if test "x$ac_ct_CC" = x; then
4317 CC=""
4318 else
4319 case $cross_compiling:$ac_tool_warned in
4320 yes:)
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4322 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4323 ac_tool_warned=yes ;;
4324 esac
4325 CC=$ac_ct_CC
4326 fi
4327 else
4328 CC="$ac_cv_prog_CC"
4329 fi
4330
4331 if test -z "$CC"; then
4332 if test -n "$ac_tool_prefix"; then
4333 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4334 set dummy ${ac_tool_prefix}cc; ac_word=$2
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4336 $as_echo_n "checking for $ac_word... " >&6; }
4337 if ${ac_cv_prog_CC+:} false; then :
4338 $as_echo_n "(cached) " >&6
4339 else
4340 if test -n "$CC"; then
4341 ac_cv_prog_CC="$CC" # Let the user override the test.
4342 else
4343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4344 for as_dir in $PATH
4345 do
4346 IFS=$as_save_IFS
4347 test -z "$as_dir" && as_dir=.
4348 for ac_exec_ext in '' $ac_executable_extensions; do
4349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4350 ac_cv_prog_CC="${ac_tool_prefix}cc"
4351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4352 break 2
4353 fi
4354 done
4355 done
4356 IFS=$as_save_IFS
4357
4358 fi
4359 fi
4360 CC=$ac_cv_prog_CC
4361 if test -n "$CC"; then
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4363 $as_echo "$CC" >&6; }
4364 else
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4366 $as_echo "no" >&6; }
4367 fi
4368
4369
4370 fi
4371 fi
4372 if test -z "$CC"; then
4373 # Extract the first word of "cc", so it can be a program name with args.
4374 set dummy cc; ac_word=$2
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4376 $as_echo_n "checking for $ac_word... " >&6; }
4377 if ${ac_cv_prog_CC+:} false; then :
4378 $as_echo_n "(cached) " >&6
4379 else
4380 if test -n "$CC"; then
4381 ac_cv_prog_CC="$CC" # Let the user override the test.
4382 else
4383 ac_prog_rejected=no
4384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4385 for as_dir in $PATH
4386 do
4387 IFS=$as_save_IFS
4388 test -z "$as_dir" && as_dir=.
4389 for ac_exec_ext in '' $ac_executable_extensions; do
4390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4391 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4392 ac_prog_rejected=yes
4393 continue
4394 fi
4395 ac_cv_prog_CC="cc"
4396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4397 break 2
4398 fi
4399 done
4400 done
4401 IFS=$as_save_IFS
4402
4403 if test $ac_prog_rejected = yes; then
4404 # We found a bogon in the path, so make sure we never use it.
4405 set dummy $ac_cv_prog_CC
4406 shift
4407 if test $# != 0; then
4408 # We chose a different compiler from the bogus one.
4409 # However, it has the same basename, so the bogon will be chosen
4410 # first if we set CC to just the basename; use the full file name.
4411 shift
4412 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4413 fi
4414 fi
4415 fi
4416 fi
4417 CC=$ac_cv_prog_CC
4418 if test -n "$CC"; then
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4420 $as_echo "$CC" >&6; }
4421 else
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4423 $as_echo "no" >&6; }
4424 fi
4425
4426
4427 fi
4428 if test -z "$CC"; then
4429 if test -n "$ac_tool_prefix"; then
4430 for ac_prog in cl.exe
4431 do
4432 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4433 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4435 $as_echo_n "checking for $ac_word... " >&6; }
4436 if ${ac_cv_prog_CC+:} false; then :
4437 $as_echo_n "(cached) " >&6
4438 else
4439 if test -n "$CC"; then
4440 ac_cv_prog_CC="$CC" # Let the user override the test.
4441 else
4442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4443 for as_dir in $PATH
4444 do
4445 IFS=$as_save_IFS
4446 test -z "$as_dir" && as_dir=.
4447 for ac_exec_ext in '' $ac_executable_extensions; do
4448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4449 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4451 break 2
4452 fi
4453 done
4454 done
4455 IFS=$as_save_IFS
4456
4457 fi
4458 fi
4459 CC=$ac_cv_prog_CC
4460 if test -n "$CC"; then
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4462 $as_echo "$CC" >&6; }
4463 else
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4465 $as_echo "no" >&6; }
4466 fi
4467
4468
4469 test -n "$CC" && break
4470 done
4471 fi
4472 if test -z "$CC"; then
4473 ac_ct_CC=$CC
4474 for ac_prog in cl.exe
4475 do
4476 # Extract the first word of "$ac_prog", so it can be a program name with args.
4477 set dummy $ac_prog; ac_word=$2
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4479 $as_echo_n "checking for $ac_word... " >&6; }
4480 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4481 $as_echo_n "(cached) " >&6
4482 else
4483 if test -n "$ac_ct_CC"; then
4484 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4485 else
4486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4487 for as_dir in $PATH
4488 do
4489 IFS=$as_save_IFS
4490 test -z "$as_dir" && as_dir=.
4491 for ac_exec_ext in '' $ac_executable_extensions; do
4492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4493 ac_cv_prog_ac_ct_CC="$ac_prog"
4494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4495 break 2
4496 fi
4497 done
4498 done
4499 IFS=$as_save_IFS
4500
4501 fi
4502 fi
4503 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4504 if test -n "$ac_ct_CC"; then
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4506 $as_echo "$ac_ct_CC" >&6; }
4507 else
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4509 $as_echo "no" >&6; }
4510 fi
4511
4512
4513 test -n "$ac_ct_CC" && break
4514 done
4515
4516 if test "x$ac_ct_CC" = x; then
4517 CC=""
4518 else
4519 case $cross_compiling:$ac_tool_warned in
4520 yes:)
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4522 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4523 ac_tool_warned=yes ;;
4524 esac
4525 CC=$ac_ct_CC
4526 fi
4527 fi
4528
4529 fi
4530
4531
4532 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4533 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4534 as_fn_error $? "no acceptable C compiler found in \$PATH
4535 See \`config.log' for more details" "$LINENO" 5; }
4536
4537 # Provide some information about the compiler.
4538 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4539 set X $ac_compile
4540 ac_compiler=$2
4541 for ac_option in --version -v -V -qversion; do
4542 { { ac_try="$ac_compiler $ac_option >&5"
4543 case "(($ac_try" in
4544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4545 *) ac_try_echo=$ac_try;;
4546 esac
4547 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4548 $as_echo "$ac_try_echo"; } >&5
4549 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4550 ac_status=$?
4551 if test -s conftest.err; then
4552 sed '10a\
4553 ... rest of stderr output deleted ...
4554 10q' conftest.err >conftest.er1
4555 cat conftest.er1 >&5
4556 fi
4557 rm -f conftest.er1 conftest.err
4558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4559 test $ac_status = 0; }
4560 done
4561
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4563 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4564 if ${ac_cv_c_compiler_gnu+:} false; then :
4565 $as_echo_n "(cached) " >&6
4566 else
4567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4568 /* end confdefs.h. */
4569
4570 int
4571 main ()
4572 {
4573 #ifndef __GNUC__
4574 choke me
4575 #endif
4576
4577 ;
4578 return 0;
4579 }
4580 _ACEOF
4581 if ac_fn_c_try_compile "$LINENO"; then :
4582 ac_compiler_gnu=yes
4583 else
4584 ac_compiler_gnu=no
4585 fi
4586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4587 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4588
4589 fi
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4591 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4592 if test $ac_compiler_gnu = yes; then
4593 GCC=yes
4594 else
4595 GCC=
4596 fi
4597 ac_test_CFLAGS=${CFLAGS+set}
4598 ac_save_CFLAGS=$CFLAGS
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4600 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4601 if ${ac_cv_prog_cc_g+:} false; then :
4602 $as_echo_n "(cached) " >&6
4603 else
4604 ac_save_c_werror_flag=$ac_c_werror_flag
4605 ac_c_werror_flag=yes
4606 ac_cv_prog_cc_g=no
4607 CFLAGS="-g"
4608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4609 /* end confdefs.h. */
4610
4611 int
4612 main ()
4613 {
4614
4615 ;
4616 return 0;
4617 }
4618 _ACEOF
4619 if ac_fn_c_try_compile "$LINENO"; then :
4620 ac_cv_prog_cc_g=yes
4621 else
4622 CFLAGS=""
4623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4624 /* end confdefs.h. */
4625
4626 int
4627 main ()
4628 {
4629
4630 ;
4631 return 0;
4632 }
4633 _ACEOF
4634 if ac_fn_c_try_compile "$LINENO"; then :
4635
4636 else
4637 ac_c_werror_flag=$ac_save_c_werror_flag
4638 CFLAGS="-g"
4639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4640 /* end confdefs.h. */
4641
4642 int
4643 main ()
4644 {
4645
4646 ;
4647 return 0;
4648 }
4649 _ACEOF
4650 if ac_fn_c_try_compile "$LINENO"; then :
4651 ac_cv_prog_cc_g=yes
4652 fi
4653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4654 fi
4655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4656 fi
4657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4658 ac_c_werror_flag=$ac_save_c_werror_flag
4659 fi
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4661 $as_echo "$ac_cv_prog_cc_g" >&6; }
4662 if test "$ac_test_CFLAGS" = set; then
4663 CFLAGS=$ac_save_CFLAGS
4664 elif test $ac_cv_prog_cc_g = yes; then
4665 if test "$GCC" = yes; then
4666 CFLAGS="-g -O2"
4667 else
4668 CFLAGS="-g"
4669 fi
4670 else
4671 if test "$GCC" = yes; then
4672 CFLAGS="-O2"
4673 else
4674 CFLAGS=
4675 fi
4676 fi
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4678 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4679 if ${ac_cv_prog_cc_c89+:} false; then :
4680 $as_echo_n "(cached) " >&6
4681 else
4682 ac_cv_prog_cc_c89=no
4683 ac_save_CC=$CC
4684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4685 /* end confdefs.h. */
4686 #include <stdarg.h>
4687 #include <stdio.h>
4688 struct stat;
4689 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4690 struct buf { int x; };
4691 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4692 static char *e (p, i)
4693 char **p;
4694 int i;
4695 {
4696 return p[i];
4697 }
4698 static char *f (char * (*g) (char **, int), char **p, ...)
4699 {
4700 char *s;
4701 va_list v;
4702 va_start (v,p);
4703 s = g (p, va_arg (v,int));
4704 va_end (v);
4705 return s;
4706 }
4707
4708 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4709 function prototypes and stuff, but not '\xHH' hex character constants.
4710 These don't provoke an error unfortunately, instead are silently treated
4711 as 'x'. The following induces an error, until -std is added to get
4712 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4713 array size at least. It's necessary to write '\x00'==0 to get something
4714 that's true only with -std. */
4715 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4716
4717 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4718 inside strings and character constants. */
4719 #define FOO(x) 'x'
4720 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4721
4722 int test (int i, double x);
4723 struct s1 {int (*f) (int a);};
4724 struct s2 {int (*f) (double a);};
4725 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4726 int argc;
4727 char **argv;
4728 int
4729 main ()
4730 {
4731 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4732 ;
4733 return 0;
4734 }
4735 _ACEOF
4736 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4737 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4738 do
4739 CC="$ac_save_CC $ac_arg"
4740 if ac_fn_c_try_compile "$LINENO"; then :
4741 ac_cv_prog_cc_c89=$ac_arg
4742 fi
4743 rm -f core conftest.err conftest.$ac_objext
4744 test "x$ac_cv_prog_cc_c89" != "xno" && break
4745 done
4746 rm -f conftest.$ac_ext
4747 CC=$ac_save_CC
4748
4749 fi
4750 # AC_CACHE_VAL
4751 case "x$ac_cv_prog_cc_c89" in
4752 x)
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4754 $as_echo "none needed" >&6; } ;;
4755 xno)
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4757 $as_echo "unsupported" >&6; } ;;
4758 *)
4759 CC="$CC $ac_cv_prog_cc_c89"
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4761 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4762 esac
4763 if test "x$ac_cv_prog_cc_c89" != xno; then :
4764
4765 fi
4766
4767 ac_ext=cpp
4768 ac_cpp='$CXXCPP $CPPFLAGS'
4769 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4770 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4771 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4772
4773 ac_ext=c
4774 ac_cpp='$CPP $CPPFLAGS'
4775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4779 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4780 if ${am_cv_prog_cc_c_o+:} false; then :
4781 $as_echo_n "(cached) " >&6
4782 else
4783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4784 /* end confdefs.h. */
4785
4786 int
4787 main ()
4788 {
4789
4790 ;
4791 return 0;
4792 }
4793 _ACEOF
4794 # Make sure it works both with $CC and with simple cc.
4795 # Following AC_PROG_CC_C_O, we do the test twice because some
4796 # compilers refuse to overwrite an existing .o file with -o,
4797 # though they will create one.
4798 am_cv_prog_cc_c_o=yes
4799 for am_i in 1 2; do
4800 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4801 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4802 ac_status=$?
4803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804 (exit $ac_status); } \
4805 && test -f conftest2.$ac_objext; then
4806 : OK
4807 else
4808 am_cv_prog_cc_c_o=no
4809 break
4810 fi
4811 done
4812 rm -f core conftest*
4813 unset am_i
4814 fi
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4816 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4817 if test "$am_cv_prog_cc_c_o" != yes; then
4818 # Losing compiler, so override with the script.
4819 # FIXME: It is wrong to rewrite CC.
4820 # But if we don't then we get into trouble of one sort or another.
4821 # A longer-term fix would be to have automake use am__CC in this case,
4822 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4823 CC="$am_aux_dir/compile $CC"
4824 fi
4825 ac_ext=cpp
4826 ac_cpp='$CXXCPP $CPPFLAGS'
4827 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4828 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4829 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4830
4831
4832 depcc="$CC" am_compiler_list=
4833
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4835 $as_echo_n "checking dependency style of $depcc... " >&6; }
4836 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4837 $as_echo_n "(cached) " >&6
4838 else
4839 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4840 # We make a subdir and do the tests there. Otherwise we can end up
4841 # making bogus files that we don't know about and never remove. For
4842 # instance it was reported that on HP-UX the gcc test will end up
4843 # making a dummy file named 'D' -- because '-MD' means "put the output
4844 # in D".
4845 rm -rf conftest.dir
4846 mkdir conftest.dir
4847 # Copy depcomp to subdir because otherwise we won't find it if we're
4848 # using a relative directory.
4849 cp "$am_depcomp" conftest.dir
4850 cd conftest.dir
4851 # We will build objects and dependencies in a subdirectory because
4852 # it helps to detect inapplicable dependency modes. For instance
4853 # both Tru64's cc and ICC support -MD to output dependencies as a
4854 # side effect of compilation, but ICC will put the dependencies in
4855 # the current directory while Tru64 will put them in the object
4856 # directory.
4857 mkdir sub
4858
4859 am_cv_CC_dependencies_compiler_type=none
4860 if test "$am_compiler_list" = ""; then
4861 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4862 fi
4863 am__universal=false
4864 case " $depcc " in #(
4865 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4866 esac
4867
4868 for depmode in $am_compiler_list; do
4869 # Setup a source with many dependencies, because some compilers
4870 # like to wrap large dependency lists on column 80 (with \), and
4871 # we should not choose a depcomp mode which is confused by this.
4872 #
4873 # We need to recreate these files for each test, as the compiler may
4874 # overwrite some of them when testing with obscure command lines.
4875 # This happens at least with the AIX C compiler.
4876 : > sub/conftest.c
4877 for i in 1 2 3 4 5 6; do
4878 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4879 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4880 # Solaris 10 /bin/sh.
4881 echo '/* dummy */' > sub/conftst$i.h
4882 done
4883 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4884
4885 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4886 # mode. It turns out that the SunPro C++ compiler does not properly
4887 # handle '-M -o', and we need to detect this. Also, some Intel
4888 # versions had trouble with output in subdirs.
4889 am__obj=sub/conftest.${OBJEXT-o}
4890 am__minus_obj="-o $am__obj"
4891 case $depmode in
4892 gcc)
4893 # This depmode causes a compiler race in universal mode.
4894 test "$am__universal" = false || continue
4895 ;;
4896 nosideeffect)
4897 # After this tag, mechanisms are not by side-effect, so they'll
4898 # only be used when explicitly requested.
4899 if test "x$enable_dependency_tracking" = xyes; then
4900 continue
4901 else
4902 break
4903 fi
4904 ;;
4905 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4906 # This compiler won't grok '-c -o', but also, the minuso test has
4907 # not run yet. These depmodes are late enough in the game, and
4908 # so weak that their functioning should not be impacted.
4909 am__obj=conftest.${OBJEXT-o}
4910 am__minus_obj=
4911 ;;
4912 none) break ;;
4913 esac
4914 if depmode=$depmode \
4915 source=sub/conftest.c object=$am__obj \
4916 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4917 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4918 >/dev/null 2>conftest.err &&
4919 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4920 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4921 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4922 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4923 # icc doesn't choke on unknown options, it will just issue warnings
4924 # or remarks (even with -Werror). So we grep stderr for any message
4925 # that says an option was ignored or not supported.
4926 # When given -MP, icc 7.0 and 7.1 complain thusly:
4927 # icc: Command line warning: ignoring option '-M'; no argument required
4928 # The diagnosis changed in icc 8.0:
4929 # icc: Command line remark: option '-MP' not supported
4930 if (grep 'ignoring option' conftest.err ||
4931 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4932 am_cv_CC_dependencies_compiler_type=$depmode
4933 break
4934 fi
4935 fi
4936 done
4937
4938 cd ..
4939 rm -rf conftest.dir
4940 else
4941 am_cv_CC_dependencies_compiler_type=none
4942 fi
4943
4944 fi
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4946 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4947 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4948
4949 if
4950 test "x$enable_dependency_tracking" != xno \
4951 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4952 am__fastdepCC_TRUE=
4953 am__fastdepCC_FALSE='#'
4954 else
4955 am__fastdepCC_TRUE='#'
4956 am__fastdepCC_FALSE=
4957 fi
4958
4959
4960 depcc="$CC" am_compiler_list=
4961
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4963 $as_echo_n "checking dependency style of $depcc... " >&6; }
4964 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4965 $as_echo_n "(cached) " >&6
4966 else
4967 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4968 # We make a subdir and do the tests there. Otherwise we can end up
4969 # making bogus files that we don't know about and never remove. For
4970 # instance it was reported that on HP-UX the gcc test will end up
4971 # making a dummy file named 'D' -- because '-MD' means "put the output
4972 # in D".
4973 rm -rf conftest.dir
4974 mkdir conftest.dir
4975 # Copy depcomp to subdir because otherwise we won't find it if we're
4976 # using a relative directory.
4977 cp "$am_depcomp" conftest.dir
4978 cd conftest.dir
4979 # We will build objects and dependencies in a subdirectory because
4980 # it helps to detect inapplicable dependency modes. For instance
4981 # both Tru64's cc and ICC support -MD to output dependencies as a
4982 # side effect of compilation, but ICC will put the dependencies in
4983 # the current directory while Tru64 will put them in the object
4984 # directory.
4985 mkdir sub
4986
4987 am_cv_CC_dependencies_compiler_type=none
4988 if test "$am_compiler_list" = ""; then
4989 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4990 fi
4991 am__universal=false
4992 case " $depcc " in #(
4993 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4994 esac
4995
4996 for depmode in $am_compiler_list; do
4997 # Setup a source with many dependencies, because some compilers
4998 # like to wrap large dependency lists on column 80 (with \), and
4999 # we should not choose a depcomp mode which is confused by this.
5000 #
5001 # We need to recreate these files for each test, as the compiler may
5002 # overwrite some of them when testing with obscure command lines.
5003 # This happens at least with the AIX C compiler.
5004 : > sub/conftest.c
5005 for i in 1 2 3 4 5 6; do
5006 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5007 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5008 # Solaris 10 /bin/sh.
5009 echo '/* dummy */' > sub/conftst$i.h
5010 done
5011 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5012
5013 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5014 # mode. It turns out that the SunPro C++ compiler does not properly
5015 # handle '-M -o', and we need to detect this. Also, some Intel
5016 # versions had trouble with output in subdirs.
5017 am__obj=sub/conftest.${OBJEXT-o}
5018 am__minus_obj="-o $am__obj"
5019 case $depmode in
5020 gcc)
5021 # This depmode causes a compiler race in universal mode.
5022 test "$am__universal" = false || continue
5023 ;;
5024 nosideeffect)
5025 # After this tag, mechanisms are not by side-effect, so they'll
5026 # only be used when explicitly requested.
5027 if test "x$enable_dependency_tracking" = xyes; then
5028 continue
5029 else
5030 break
5031 fi
5032 ;;
5033 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5034 # This compiler won't grok '-c -o', but also, the minuso test has
5035 # not run yet. These depmodes are late enough in the game, and
5036 # so weak that their functioning should not be impacted.
5037 am__obj=conftest.${OBJEXT-o}
5038 am__minus_obj=
5039 ;;
5040 none) break ;;
5041 esac
5042 if depmode=$depmode \
5043 source=sub/conftest.c object=$am__obj \
5044 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5045 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5046 >/dev/null 2>conftest.err &&
5047 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5048 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5049 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5050 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5051 # icc doesn't choke on unknown options, it will just issue warnings
5052 # or remarks (even with -Werror). So we grep stderr for any message
5053 # that says an option was ignored or not supported.
5054 # When given -MP, icc 7.0 and 7.1 complain thusly:
5055 # icc: Command line warning: ignoring option '-M'; no argument required
5056 # The diagnosis changed in icc 8.0:
5057 # icc: Command line remark: option '-MP' not supported
5058 if (grep 'ignoring option' conftest.err ||
5059 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5060 am_cv_CC_dependencies_compiler_type=$depmode
5061 break
5062 fi
5063 fi
5064 done
5065
5066 cd ..
5067 rm -rf conftest.dir
5068 else
5069 am_cv_CC_dependencies_compiler_type=none
5070 fi
5071
5072 fi
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5074 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5075 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5076
5077 if
5078 test "x$enable_dependency_tracking" != xno \
5079 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5080 am__fastdepCC_TRUE=
5081 am__fastdepCC_FALSE='#'
5082 else
5083 am__fastdepCC_TRUE='#'
5084 am__fastdepCC_FALSE=
5085 fi
5086
5087
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5089 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5090 if ${ac_cv_path_SED+:} false; then :
5091 $as_echo_n "(cached) " >&6
5092 else
5093 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5094 for ac_i in 1 2 3 4 5 6 7; do
5095 ac_script="$ac_script$as_nl$ac_script"
5096 done
5097 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5098 { ac_script=; unset ac_script;}
5099 if test -z "$SED"; then
5100 ac_path_SED_found=false
5101 # Loop through the user's path and test for each of PROGNAME-LIST
5102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5103 for as_dir in $PATH
5104 do
5105 IFS=$as_save_IFS
5106 test -z "$as_dir" && as_dir=.
5107 for ac_prog in sed gsed; do
5108 for ac_exec_ext in '' $ac_executable_extensions; do
5109 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5110 as_fn_executable_p "$ac_path_SED" || continue
5111 # Check for GNU ac_path_SED and select it if it is found.
5112 # Check for GNU $ac_path_SED
5113 case `"$ac_path_SED" --version 2>&1` in
5114 *GNU*)
5115 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5116 *)
5117 ac_count=0
5118 $as_echo_n 0123456789 >"conftest.in"
5119 while :
5120 do
5121 cat "conftest.in" "conftest.in" >"conftest.tmp"
5122 mv "conftest.tmp" "conftest.in"
5123 cp "conftest.in" "conftest.nl"
5124 $as_echo '' >> "conftest.nl"
5125 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5126 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5127 as_fn_arith $ac_count + 1 && ac_count=$as_val
5128 if test $ac_count -gt ${ac_path_SED_max-0}; then
5129 # Best one so far, save it but keep looking for a better one
5130 ac_cv_path_SED="$ac_path_SED"
5131 ac_path_SED_max=$ac_count
5132 fi
5133 # 10*(2^10) chars as input seems more than enough
5134 test $ac_count -gt 10 && break
5135 done
5136 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5137 esac
5138
5139 $ac_path_SED_found && break 3
5140 done
5141 done
5142 done
5143 IFS=$as_save_IFS
5144 if test -z "$ac_cv_path_SED"; then
5145 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5146 fi
5147 else
5148 ac_cv_path_SED=$SED
5149 fi
5150
5151 fi
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5153 $as_echo "$ac_cv_path_SED" >&6; }
5154 SED="$ac_cv_path_SED"
5155 rm -f conftest.sed
5156
5157 test -z "$SED" && SED=sed
5158 Xsed="$SED -e 1s/^X//"
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5171 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5172 if ${ac_cv_path_GREP+:} false; then :
5173 $as_echo_n "(cached) " >&6
5174 else
5175 if test -z "$GREP"; then
5176 ac_path_GREP_found=false
5177 # Loop through the user's path and test for each of PROGNAME-LIST
5178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5179 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5180 do
5181 IFS=$as_save_IFS
5182 test -z "$as_dir" && as_dir=.
5183 for ac_prog in grep ggrep; do
5184 for ac_exec_ext in '' $ac_executable_extensions; do
5185 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5186 as_fn_executable_p "$ac_path_GREP" || continue
5187 # Check for GNU ac_path_GREP and select it if it is found.
5188 # Check for GNU $ac_path_GREP
5189 case `"$ac_path_GREP" --version 2>&1` in
5190 *GNU*)
5191 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5192 *)
5193 ac_count=0
5194 $as_echo_n 0123456789 >"conftest.in"
5195 while :
5196 do
5197 cat "conftest.in" "conftest.in" >"conftest.tmp"
5198 mv "conftest.tmp" "conftest.in"
5199 cp "conftest.in" "conftest.nl"
5200 $as_echo 'GREP' >> "conftest.nl"
5201 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5202 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5203 as_fn_arith $ac_count + 1 && ac_count=$as_val
5204 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5205 # Best one so far, save it but keep looking for a better one
5206 ac_cv_path_GREP="$ac_path_GREP"
5207 ac_path_GREP_max=$ac_count
5208 fi
5209 # 10*(2^10) chars as input seems more than enough
5210 test $ac_count -gt 10 && break
5211 done
5212 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5213 esac
5214
5215 $ac_path_GREP_found && break 3
5216 done
5217 done
5218 done
5219 IFS=$as_save_IFS
5220 if test -z "$ac_cv_path_GREP"; then
5221 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5222 fi
5223 else
5224 ac_cv_path_GREP=$GREP
5225 fi
5226
5227 fi
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5229 $as_echo "$ac_cv_path_GREP" >&6; }
5230 GREP="$ac_cv_path_GREP"
5231
5232
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5234 $as_echo_n "checking for egrep... " >&6; }
5235 if ${ac_cv_path_EGREP+:} false; then :
5236 $as_echo_n "(cached) " >&6
5237 else
5238 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5239 then ac_cv_path_EGREP="$GREP -E"
5240 else
5241 if test -z "$EGREP"; then
5242 ac_path_EGREP_found=false
5243 # Loop through the user's path and test for each of PROGNAME-LIST
5244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5245 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5246 do
5247 IFS=$as_save_IFS
5248 test -z "$as_dir" && as_dir=.
5249 for ac_prog in egrep; do
5250 for ac_exec_ext in '' $ac_executable_extensions; do
5251 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5252 as_fn_executable_p "$ac_path_EGREP" || continue
5253 # Check for GNU ac_path_EGREP and select it if it is found.
5254 # Check for GNU $ac_path_EGREP
5255 case `"$ac_path_EGREP" --version 2>&1` in
5256 *GNU*)
5257 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5258 *)
5259 ac_count=0
5260 $as_echo_n 0123456789 >"conftest.in"
5261 while :
5262 do
5263 cat "conftest.in" "conftest.in" >"conftest.tmp"
5264 mv "conftest.tmp" "conftest.in"
5265 cp "conftest.in" "conftest.nl"
5266 $as_echo 'EGREP' >> "conftest.nl"
5267 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5268 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5269 as_fn_arith $ac_count + 1 && ac_count=$as_val
5270 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5271 # Best one so far, save it but keep looking for a better one
5272 ac_cv_path_EGREP="$ac_path_EGREP"
5273 ac_path_EGREP_max=$ac_count
5274 fi
5275 # 10*(2^10) chars as input seems more than enough
5276 test $ac_count -gt 10 && break
5277 done
5278 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5279 esac
5280
5281 $ac_path_EGREP_found && break 3
5282 done
5283 done
5284 done
5285 IFS=$as_save_IFS
5286 if test -z "$ac_cv_path_EGREP"; then
5287 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5288 fi
5289 else
5290 ac_cv_path_EGREP=$EGREP
5291 fi
5292
5293 fi
5294 fi
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5296 $as_echo "$ac_cv_path_EGREP" >&6; }
5297 EGREP="$ac_cv_path_EGREP"
5298
5299
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5301 $as_echo_n "checking for fgrep... " >&6; }
5302 if ${ac_cv_path_FGREP+:} false; then :
5303 $as_echo_n "(cached) " >&6
5304 else
5305 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5306 then ac_cv_path_FGREP="$GREP -F"
5307 else
5308 if test -z "$FGREP"; then
5309 ac_path_FGREP_found=false
5310 # Loop through the user's path and test for each of PROGNAME-LIST
5311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5312 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5313 do
5314 IFS=$as_save_IFS
5315 test -z "$as_dir" && as_dir=.
5316 for ac_prog in fgrep; do
5317 for ac_exec_ext in '' $ac_executable_extensions; do
5318 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5319 as_fn_executable_p "$ac_path_FGREP" || continue
5320 # Check for GNU ac_path_FGREP and select it if it is found.
5321 # Check for GNU $ac_path_FGREP
5322 case `"$ac_path_FGREP" --version 2>&1` in
5323 *GNU*)
5324 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5325 *)
5326 ac_count=0
5327 $as_echo_n 0123456789 >"conftest.in"
5328 while :
5329 do
5330 cat "conftest.in" "conftest.in" >"conftest.tmp"
5331 mv "conftest.tmp" "conftest.in"
5332 cp "conftest.in" "conftest.nl"
5333 $as_echo 'FGREP' >> "conftest.nl"
5334 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5335 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5336 as_fn_arith $ac_count + 1 && ac_count=$as_val
5337 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5338 # Best one so far, save it but keep looking for a better one
5339 ac_cv_path_FGREP="$ac_path_FGREP"
5340 ac_path_FGREP_max=$ac_count
5341 fi
5342 # 10*(2^10) chars as input seems more than enough
5343 test $ac_count -gt 10 && break
5344 done
5345 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5346 esac
5347
5348 $ac_path_FGREP_found && break 3
5349 done
5350 done
5351 done
5352 IFS=$as_save_IFS
5353 if test -z "$ac_cv_path_FGREP"; then
5354 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5355 fi
5356 else
5357 ac_cv_path_FGREP=$FGREP
5358 fi
5359
5360 fi
5361 fi
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5363 $as_echo "$ac_cv_path_FGREP" >&6; }
5364 FGREP="$ac_cv_path_FGREP"
5365
5366
5367 test -z "$GREP" && GREP=grep
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387 # Check whether --with-gnu-ld was given.
5388 if test "${with_gnu_ld+set}" = set; then :
5389 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5390 else
5391 with_gnu_ld=no
5392 fi
5393
5394 ac_prog=ld
5395 if test "$GCC" = yes; then
5396 # Check if gcc -print-prog-name=ld gives a path.
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5398 $as_echo_n "checking for ld used by $CC... " >&6; }
5399 case $host in
5400 *-*-mingw*)
5401 # gcc leaves a trailing carriage return which upsets mingw
5402 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5403 *)
5404 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5405 esac
5406 case $ac_prog in
5407 # Accept absolute paths.
5408 [\\/]* | ?:[\\/]*)
5409 re_direlt='/[^/][^/]*/\.\./'
5410 # Canonicalize the pathname of ld
5411 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5412 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5413 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5414 done
5415 test -z "$LD" && LD="$ac_prog"
5416 ;;
5417 "")
5418 # If it fails, then pretend we aren't using GCC.
5419 ac_prog=ld
5420 ;;
5421 *)
5422 # If it is relative, then search for the first ld in PATH.
5423 with_gnu_ld=unknown
5424 ;;
5425 esac
5426 elif test "$with_gnu_ld" = yes; then
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5428 $as_echo_n "checking for GNU ld... " >&6; }
5429 else
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5431 $as_echo_n "checking for non-GNU ld... " >&6; }
5432 fi
5433 if ${lt_cv_path_LD+:} false; then :
5434 $as_echo_n "(cached) " >&6
5435 else
5436 if test -z "$LD"; then
5437 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5438 for ac_dir in $PATH; do
5439 IFS="$lt_save_ifs"
5440 test -z "$ac_dir" && ac_dir=.
5441 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5442 lt_cv_path_LD="$ac_dir/$ac_prog"
5443 # Check to see if the program is GNU ld. I'd rather use --version,
5444 # but apparently some variants of GNU ld only accept -v.
5445 # Break only if it was the GNU/non-GNU ld that we prefer.
5446 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5447 *GNU* | *'with BFD'*)
5448 test "$with_gnu_ld" != no && break
5449 ;;
5450 *)
5451 test "$with_gnu_ld" != yes && break
5452 ;;
5453 esac
5454 fi
5455 done
5456 IFS="$lt_save_ifs"
5457 else
5458 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5459 fi
5460 fi
5461
5462 LD="$lt_cv_path_LD"
5463 if test -n "$LD"; then
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5465 $as_echo "$LD" >&6; }
5466 else
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5468 $as_echo "no" >&6; }
5469 fi
5470 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5472 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5473 if ${lt_cv_prog_gnu_ld+:} false; then :
5474 $as_echo_n "(cached) " >&6
5475 else
5476 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5477 case `$LD -v 2>&1 </dev/null` in
5478 *GNU* | *'with BFD'*)
5479 lt_cv_prog_gnu_ld=yes
5480 ;;
5481 *)
5482 lt_cv_prog_gnu_ld=no
5483 ;;
5484 esac
5485 fi
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5487 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5488 with_gnu_ld=$lt_cv_prog_gnu_ld
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5499 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5500 if ${lt_cv_path_NM+:} false; then :
5501 $as_echo_n "(cached) " >&6
5502 else
5503 if test -n "$NM"; then
5504 # Let the user override the test.
5505 lt_cv_path_NM="$NM"
5506 else
5507 lt_nm_to_check="${ac_tool_prefix}nm"
5508 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5509 lt_nm_to_check="$lt_nm_to_check nm"
5510 fi
5511 for lt_tmp_nm in $lt_nm_to_check; do
5512 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5513 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5514 IFS="$lt_save_ifs"
5515 test -z "$ac_dir" && ac_dir=.
5516 tmp_nm="$ac_dir/$lt_tmp_nm"
5517 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5518 # Check to see if the nm accepts a BSD-compat flag.
5519 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5520 # nm: unknown option "B" ignored
5521 # Tru64's nm complains that /dev/null is an invalid object file
5522 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5523 */dev/null* | *'Invalid file or object type'*)
5524 lt_cv_path_NM="$tmp_nm -B"
5525 break
5526 ;;
5527 *)
5528 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5529 */dev/null*)
5530 lt_cv_path_NM="$tmp_nm -p"
5531 break
5532 ;;
5533 *)
5534 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5535 continue # so that we can try to find one that supports BSD flags
5536 ;;
5537 esac
5538 ;;
5539 esac
5540 fi
5541 done
5542 IFS="$lt_save_ifs"
5543 done
5544 : ${lt_cv_path_NM=no}
5545 fi
5546 fi
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5548 $as_echo "$lt_cv_path_NM" >&6; }
5549 if test "$lt_cv_path_NM" != "no"; then
5550 NM="$lt_cv_path_NM"
5551 else
5552 # Didn't find any BSD compatible name lister, look for dumpbin.
5553 if test -n "$DUMPBIN"; then :
5554 # Let the user override the test.
5555 else
5556 if test -n "$ac_tool_prefix"; then
5557 for ac_prog in dumpbin "link -dump"
5558 do
5559 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5560 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5562 $as_echo_n "checking for $ac_word... " >&6; }
5563 if ${ac_cv_prog_DUMPBIN+:} false; then :
5564 $as_echo_n "(cached) " >&6
5565 else
5566 if test -n "$DUMPBIN"; then
5567 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5568 else
5569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5570 for as_dir in $PATH
5571 do
5572 IFS=$as_save_IFS
5573 test -z "$as_dir" && as_dir=.
5574 for ac_exec_ext in '' $ac_executable_extensions; do
5575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5576 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5578 break 2
5579 fi
5580 done
5581 done
5582 IFS=$as_save_IFS
5583
5584 fi
5585 fi
5586 DUMPBIN=$ac_cv_prog_DUMPBIN
5587 if test -n "$DUMPBIN"; then
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5589 $as_echo "$DUMPBIN" >&6; }
5590 else
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5592 $as_echo "no" >&6; }
5593 fi
5594
5595
5596 test -n "$DUMPBIN" && break
5597 done
5598 fi
5599 if test -z "$DUMPBIN"; then
5600 ac_ct_DUMPBIN=$DUMPBIN
5601 for ac_prog in dumpbin "link -dump"
5602 do
5603 # Extract the first word of "$ac_prog", so it can be a program name with args.
5604 set dummy $ac_prog; ac_word=$2
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5606 $as_echo_n "checking for $ac_word... " >&6; }
5607 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5608 $as_echo_n "(cached) " >&6
5609 else
5610 if test -n "$ac_ct_DUMPBIN"; then
5611 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5612 else
5613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5614 for as_dir in $PATH
5615 do
5616 IFS=$as_save_IFS
5617 test -z "$as_dir" && as_dir=.
5618 for ac_exec_ext in '' $ac_executable_extensions; do
5619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5620 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5622 break 2
5623 fi
5624 done
5625 done
5626 IFS=$as_save_IFS
5627
5628 fi
5629 fi
5630 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5631 if test -n "$ac_ct_DUMPBIN"; then
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5633 $as_echo "$ac_ct_DUMPBIN" >&6; }
5634 else
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5636 $as_echo "no" >&6; }
5637 fi
5638
5639
5640 test -n "$ac_ct_DUMPBIN" && break
5641 done
5642
5643 if test "x$ac_ct_DUMPBIN" = x; then
5644 DUMPBIN=":"
5645 else
5646 case $cross_compiling:$ac_tool_warned in
5647 yes:)
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5649 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5650 ac_tool_warned=yes ;;
5651 esac
5652 DUMPBIN=$ac_ct_DUMPBIN
5653 fi
5654 fi
5655
5656 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5657 *COFF*)
5658 DUMPBIN="$DUMPBIN -symbols"
5659 ;;
5660 *)
5661 DUMPBIN=:
5662 ;;
5663 esac
5664 fi
5665
5666 if test "$DUMPBIN" != ":"; then
5667 NM="$DUMPBIN"
5668 fi
5669 fi
5670 test -z "$NM" && NM=nm
5671
5672
5673
5674
5675
5676
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5678 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5679 if ${lt_cv_nm_interface+:} false; then :
5680 $as_echo_n "(cached) " >&6
5681 else
5682 lt_cv_nm_interface="BSD nm"
5683 echo "int some_variable = 0;" > conftest.$ac_ext
5684 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5685 (eval "$ac_compile" 2>conftest.err)
5686 cat conftest.err >&5
5687 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5688 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5689 cat conftest.err >&5
5690 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5691 cat conftest.out >&5
5692 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5693 lt_cv_nm_interface="MS dumpbin"
5694 fi
5695 rm -f conftest*
5696 fi
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5698 $as_echo "$lt_cv_nm_interface" >&6; }
5699
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5701 $as_echo_n "checking whether ln -s works... " >&6; }
5702 LN_S=$as_ln_s
5703 if test "$LN_S" = "ln -s"; then
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5705 $as_echo "yes" >&6; }
5706 else
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5708 $as_echo "no, using $LN_S" >&6; }
5709 fi
5710
5711 # find the maximum length of command line arguments
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5713 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5714 if ${lt_cv_sys_max_cmd_len+:} false; then :
5715 $as_echo_n "(cached) " >&6
5716 else
5717 i=0
5718 teststring="ABCD"
5719
5720 case $build_os in
5721 msdosdjgpp*)
5722 # On DJGPP, this test can blow up pretty badly due to problems in libc
5723 # (any single argument exceeding 2000 bytes causes a buffer overrun
5724 # during glob expansion). Even if it were fixed, the result of this
5725 # check would be larger than it should be.
5726 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5727 ;;
5728
5729 gnu*)
5730 # Under GNU Hurd, this test is not required because there is
5731 # no limit to the length of command line arguments.
5732 # Libtool will interpret -1 as no limit whatsoever
5733 lt_cv_sys_max_cmd_len=-1;
5734 ;;
5735
5736 cygwin* | mingw* | cegcc*)
5737 # On Win9x/ME, this test blows up -- it succeeds, but takes
5738 # about 5 minutes as the teststring grows exponentially.
5739 # Worse, since 9x/ME are not pre-emptively multitasking,
5740 # you end up with a "frozen" computer, even though with patience
5741 # the test eventually succeeds (with a max line length of 256k).
5742 # Instead, let's just punt: use the minimum linelength reported by
5743 # all of the supported platforms: 8192 (on NT/2K/XP).
5744 lt_cv_sys_max_cmd_len=8192;
5745 ;;
5746
5747 mint*)
5748 # On MiNT this can take a long time and run out of memory.
5749 lt_cv_sys_max_cmd_len=8192;
5750 ;;
5751
5752 amigaos*)
5753 # On AmigaOS with pdksh, this test takes hours, literally.
5754 # So we just punt and use a minimum line length of 8192.
5755 lt_cv_sys_max_cmd_len=8192;
5756 ;;
5757
5758 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5759 # This has been around since 386BSD, at least. Likely further.
5760 if test -x /sbin/sysctl; then
5761 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5762 elif test -x /usr/sbin/sysctl; then
5763 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5764 else
5765 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5766 fi
5767 # And add a safety zone
5768 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5769 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5770 ;;
5771
5772 interix*)
5773 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5774 lt_cv_sys_max_cmd_len=196608
5775 ;;
5776
5777 os2*)
5778 # The test takes a long time on OS/2.
5779 lt_cv_sys_max_cmd_len=8192
5780 ;;
5781
5782 osf*)
5783 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5784 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5785 # nice to cause kernel panics so lets avoid the loop below.
5786 # First set a reasonable default.
5787 lt_cv_sys_max_cmd_len=16384
5788 #
5789 if test -x /sbin/sysconfig; then
5790 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5791 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5792 esac
5793 fi
5794 ;;
5795 sco3.2v5*)
5796 lt_cv_sys_max_cmd_len=102400
5797 ;;
5798 sysv5* | sco5v6* | sysv4.2uw2*)
5799 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5800 if test -n "$kargmax"; then
5801 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5802 else
5803 lt_cv_sys_max_cmd_len=32768
5804 fi
5805 ;;
5806 *)
5807 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5808 if test -n "$lt_cv_sys_max_cmd_len" && \
5809 test undefined != "$lt_cv_sys_max_cmd_len"; then
5810 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5811 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5812 else
5813 # Make teststring a little bigger before we do anything with it.
5814 # a 1K string should be a reasonable start.
5815 for i in 1 2 3 4 5 6 7 8 ; do
5816 teststring=$teststring$teststring
5817 done
5818 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5819 # If test is not a shell built-in, we'll probably end up computing a
5820 # maximum length that is only half of the actual maximum length, but
5821 # we can't tell.
5822 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5823 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5824 test $i != 17 # 1/2 MB should be enough
5825 do
5826 i=`expr $i + 1`
5827 teststring=$teststring$teststring
5828 done
5829 # Only check the string length outside the loop.
5830 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5831 teststring=
5832 # Add a significant safety factor because C++ compilers can tack on
5833 # massive amounts of additional arguments before passing them to the
5834 # linker. It appears as though 1/2 is a usable value.
5835 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5836 fi
5837 ;;
5838 esac
5839
5840 fi
5841
5842 if test -n $lt_cv_sys_max_cmd_len ; then
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5844 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5845 else
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5847 $as_echo "none" >&6; }
5848 fi
5849 max_cmd_len=$lt_cv_sys_max_cmd_len
5850
5851
5852
5853
5854
5855
5856 : ${CP="cp -f"}
5857 : ${MV="mv -f"}
5858 : ${RM="rm -f"}
5859
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5861 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5862 # Try some XSI features
5863 xsi_shell=no
5864 ( _lt_dummy="a/b/c"
5865 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5866 = c,a/b,b/c, \
5867 && eval 'test $(( 1 + 1 )) -eq 2 \
5868 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5869 && xsi_shell=yes
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5871 $as_echo "$xsi_shell" >&6; }
5872
5873
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5875 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5876 lt_shell_append=no
5877 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5878 >/dev/null 2>&1 \
5879 && lt_shell_append=yes
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5881 $as_echo "$lt_shell_append" >&6; }
5882
5883
5884 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5885 lt_unset=unset
5886 else
5887 lt_unset=false
5888 fi
5889
5890
5891
5892
5893
5894 # test EBCDIC or ASCII
5895 case `echo X|tr X '\101'` in
5896 A) # ASCII based system
5897 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5898 lt_SP2NL='tr \040 \012'
5899 lt_NL2SP='tr \015\012 \040\040'
5900 ;;
5901 *) # EBCDIC based system
5902 lt_SP2NL='tr \100 \n'
5903 lt_NL2SP='tr \r\n \100\100'
5904 ;;
5905 esac
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5916 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5917 if ${lt_cv_to_host_file_cmd+:} false; then :
5918 $as_echo_n "(cached) " >&6
5919 else
5920 case $host in
5921 *-*-mingw* )
5922 case $build in
5923 *-*-mingw* ) # actually msys
5924 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5925 ;;
5926 *-*-cygwin* )
5927 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5928 ;;
5929 * ) # otherwise, assume *nix
5930 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5931 ;;
5932 esac
5933 ;;
5934 *-*-cygwin* )
5935 case $build in
5936 *-*-mingw* ) # actually msys
5937 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5938 ;;
5939 *-*-cygwin* )
5940 lt_cv_to_host_file_cmd=func_convert_file_noop
5941 ;;
5942 * ) # otherwise, assume *nix
5943 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5944 ;;
5945 esac
5946 ;;
5947 * ) # unhandled hosts (and "normal" native builds)
5948 lt_cv_to_host_file_cmd=func_convert_file_noop
5949 ;;
5950 esac
5951
5952 fi
5953
5954 to_host_file_cmd=$lt_cv_to_host_file_cmd
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5956 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5957
5958
5959
5960
5961
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5963 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5964 if ${lt_cv_to_tool_file_cmd+:} false; then :
5965 $as_echo_n "(cached) " >&6
5966 else
5967 #assume ordinary cross tools, or native build.
5968 lt_cv_to_tool_file_cmd=func_convert_file_noop
5969 case $host in
5970 *-*-mingw* )
5971 case $build in
5972 *-*-mingw* ) # actually msys
5973 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5974 ;;
5975 esac
5976 ;;
5977 esac
5978
5979 fi
5980
5981 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5983 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5984
5985
5986
5987
5988
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5990 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5991 if ${lt_cv_ld_reload_flag+:} false; then :
5992 $as_echo_n "(cached) " >&6
5993 else
5994 lt_cv_ld_reload_flag='-r'
5995 fi
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5997 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5998 reload_flag=$lt_cv_ld_reload_flag
5999 case $reload_flag in
6000 "" | " "*) ;;
6001 *) reload_flag=" $reload_flag" ;;
6002 esac
6003 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6004 case $host_os in
6005 cygwin* | mingw* | pw32* | cegcc*)
6006 if test "$GCC" != yes; then
6007 reload_cmds=false
6008 fi
6009 ;;
6010 darwin*)
6011 if test "$GCC" = yes; then
6012 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6013 else
6014 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6015 fi
6016 ;;
6017 esac
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027 if test -n "$ac_tool_prefix"; then
6028 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6029 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6031 $as_echo_n "checking for $ac_word... " >&6; }
6032 if ${ac_cv_prog_OBJDUMP+:} false; then :
6033 $as_echo_n "(cached) " >&6
6034 else
6035 if test -n "$OBJDUMP"; then
6036 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6037 else
6038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6039 for as_dir in $PATH
6040 do
6041 IFS=$as_save_IFS
6042 test -z "$as_dir" && as_dir=.
6043 for ac_exec_ext in '' $ac_executable_extensions; do
6044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6045 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6047 break 2
6048 fi
6049 done
6050 done
6051 IFS=$as_save_IFS
6052
6053 fi
6054 fi
6055 OBJDUMP=$ac_cv_prog_OBJDUMP
6056 if test -n "$OBJDUMP"; then
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6058 $as_echo "$OBJDUMP" >&6; }
6059 else
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6061 $as_echo "no" >&6; }
6062 fi
6063
6064
6065 fi
6066 if test -z "$ac_cv_prog_OBJDUMP"; then
6067 ac_ct_OBJDUMP=$OBJDUMP
6068 # Extract the first word of "objdump", so it can be a program name with args.
6069 set dummy objdump; ac_word=$2
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6071 $as_echo_n "checking for $ac_word... " >&6; }
6072 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6073 $as_echo_n "(cached) " >&6
6074 else
6075 if test -n "$ac_ct_OBJDUMP"; then
6076 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6077 else
6078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6079 for as_dir in $PATH
6080 do
6081 IFS=$as_save_IFS
6082 test -z "$as_dir" && as_dir=.
6083 for ac_exec_ext in '' $ac_executable_extensions; do
6084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6085 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6087 break 2
6088 fi
6089 done
6090 done
6091 IFS=$as_save_IFS
6092
6093 fi
6094 fi
6095 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6096 if test -n "$ac_ct_OBJDUMP"; then
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6098 $as_echo "$ac_ct_OBJDUMP" >&6; }
6099 else
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6101 $as_echo "no" >&6; }
6102 fi
6103
6104 if test "x$ac_ct_OBJDUMP" = x; then
6105 OBJDUMP="false"
6106 else
6107 case $cross_compiling:$ac_tool_warned in
6108 yes:)
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6110 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6111 ac_tool_warned=yes ;;
6112 esac
6113 OBJDUMP=$ac_ct_OBJDUMP
6114 fi
6115 else
6116 OBJDUMP="$ac_cv_prog_OBJDUMP"
6117 fi
6118
6119 test -z "$OBJDUMP" && OBJDUMP=objdump
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6130 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6131 if ${lt_cv_deplibs_check_method+:} false; then :
6132 $as_echo_n "(cached) " >&6
6133 else
6134 lt_cv_file_magic_cmd='$MAGIC_CMD'
6135 lt_cv_file_magic_test_file=
6136 lt_cv_deplibs_check_method='unknown'
6137 # Need to set the preceding variable on all platforms that support
6138 # interlibrary dependencies.
6139 # 'none' -- dependencies not supported.
6140 # `unknown' -- same as none, but documents that we really don't know.
6141 # 'pass_all' -- all dependencies passed with no checks.
6142 # 'test_compile' -- check by making test program.
6143 # 'file_magic [[regex]]' -- check by looking for files in library path
6144 # which responds to the $file_magic_cmd with a given extended regex.
6145 # If you have `file' or equivalent on your system and you're not sure
6146 # whether `pass_all' will *always* work, you probably want this one.
6147
6148 case $host_os in
6149 aix[4-9]*)
6150 lt_cv_deplibs_check_method=pass_all
6151 ;;
6152
6153 beos*)
6154 lt_cv_deplibs_check_method=pass_all
6155 ;;
6156
6157 bsdi[45]*)
6158 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6159 lt_cv_file_magic_cmd='/usr/bin/file -L'
6160 lt_cv_file_magic_test_file=/shlib/libc.so
6161 ;;
6162
6163 cygwin*)
6164 # func_win32_libid is a shell function defined in ltmain.sh
6165 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6166 lt_cv_file_magic_cmd='func_win32_libid'
6167 ;;
6168
6169 mingw* | pw32*)
6170 # Base MSYS/MinGW do not provide the 'file' command needed by
6171 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6172 # unless we find 'file', for example because we are cross-compiling.
6173 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6174 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6175 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6176 lt_cv_file_magic_cmd='func_win32_libid'
6177 else
6178 # Keep this pattern in sync with the one in func_win32_libid.
6179 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6180 lt_cv_file_magic_cmd='$OBJDUMP -f'
6181 fi
6182 ;;
6183
6184 cegcc*)
6185 # use the weaker test based on 'objdump'. See mingw*.
6186 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6187 lt_cv_file_magic_cmd='$OBJDUMP -f'
6188 ;;
6189
6190 darwin* | rhapsody*)
6191 lt_cv_deplibs_check_method=pass_all
6192 ;;
6193
6194 freebsd* | dragonfly*)
6195 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6196 case $host_cpu in
6197 i*86 )
6198 # Not sure whether the presence of OpenBSD here was a mistake.
6199 # Let's accept both of them until this is cleared up.
6200 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6201 lt_cv_file_magic_cmd=/usr/bin/file
6202 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6203 ;;
6204 esac
6205 else
6206 lt_cv_deplibs_check_method=pass_all
6207 fi
6208 ;;
6209
6210 haiku*)
6211 lt_cv_deplibs_check_method=pass_all
6212 ;;
6213
6214 hpux10.20* | hpux11*)
6215 lt_cv_file_magic_cmd=/usr/bin/file
6216 case $host_cpu in
6217 ia64*)
6218 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6219 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6220 ;;
6221 hppa*64*)
6222 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]'
6223 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6224 ;;
6225 *)
6226 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6227 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6228 ;;
6229 esac
6230 ;;
6231
6232 interix[3-9]*)
6233 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6234 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6235 ;;
6236
6237 irix5* | irix6* | nonstopux*)
6238 case $LD in
6239 *-32|*"-32 ") libmagic=32-bit;;
6240 *-n32|*"-n32 ") libmagic=N32;;
6241 *-64|*"-64 ") libmagic=64-bit;;
6242 *) libmagic=never-match;;
6243 esac
6244 lt_cv_deplibs_check_method=pass_all
6245 ;;
6246
6247 # This must be glibc/ELF.
6248 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6249 lt_cv_deplibs_check_method=pass_all
6250 ;;
6251
6252 netbsd* | netbsdelf*-gnu)
6253 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6254 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6255 else
6256 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6257 fi
6258 ;;
6259
6260 newos6*)
6261 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6262 lt_cv_file_magic_cmd=/usr/bin/file
6263 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6264 ;;
6265
6266 *nto* | *qnx*)
6267 lt_cv_deplibs_check_method=pass_all
6268 ;;
6269
6270 openbsd*)
6271 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6272 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6273 else
6274 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6275 fi
6276 ;;
6277
6278 osf3* | osf4* | osf5*)
6279 lt_cv_deplibs_check_method=pass_all
6280 ;;
6281
6282 rdos*)
6283 lt_cv_deplibs_check_method=pass_all
6284 ;;
6285
6286 solaris*)
6287 lt_cv_deplibs_check_method=pass_all
6288 ;;
6289
6290 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6291 lt_cv_deplibs_check_method=pass_all
6292 ;;
6293
6294 sysv4 | sysv4.3*)
6295 case $host_vendor in
6296 motorola)
6297 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]'
6298 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6299 ;;
6300 ncr)
6301 lt_cv_deplibs_check_method=pass_all
6302 ;;
6303 sequent)
6304 lt_cv_file_magic_cmd='/bin/file'
6305 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6306 ;;
6307 sni)
6308 lt_cv_file_magic_cmd='/bin/file'
6309 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6310 lt_cv_file_magic_test_file=/lib/libc.so
6311 ;;
6312 siemens)
6313 lt_cv_deplibs_check_method=pass_all
6314 ;;
6315 pc)
6316 lt_cv_deplibs_check_method=pass_all
6317 ;;
6318 esac
6319 ;;
6320
6321 tpf*)
6322 lt_cv_deplibs_check_method=pass_all
6323 ;;
6324 esac
6325
6326 fi
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6328 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6329
6330 file_magic_glob=
6331 want_nocaseglob=no
6332 if test "$build" = "$host"; then
6333 case $host_os in
6334 mingw* | pw32*)
6335 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6336 want_nocaseglob=yes
6337 else
6338 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6339 fi
6340 ;;
6341 esac
6342 fi
6343
6344 file_magic_cmd=$lt_cv_file_magic_cmd
6345 deplibs_check_method=$lt_cv_deplibs_check_method
6346 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369 if test -n "$ac_tool_prefix"; then
6370 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6371 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6373 $as_echo_n "checking for $ac_word... " >&6; }
6374 if ${ac_cv_prog_DLLTOOL+:} false; then :
6375 $as_echo_n "(cached) " >&6
6376 else
6377 if test -n "$DLLTOOL"; then
6378 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6379 else
6380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6381 for as_dir in $PATH
6382 do
6383 IFS=$as_save_IFS
6384 test -z "$as_dir" && as_dir=.
6385 for ac_exec_ext in '' $ac_executable_extensions; do
6386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6387 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6389 break 2
6390 fi
6391 done
6392 done
6393 IFS=$as_save_IFS
6394
6395 fi
6396 fi
6397 DLLTOOL=$ac_cv_prog_DLLTOOL
6398 if test -n "$DLLTOOL"; then
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6400 $as_echo "$DLLTOOL" >&6; }
6401 else
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6403 $as_echo "no" >&6; }
6404 fi
6405
6406
6407 fi
6408 if test -z "$ac_cv_prog_DLLTOOL"; then
6409 ac_ct_DLLTOOL=$DLLTOOL
6410 # Extract the first word of "dlltool", so it can be a program name with args.
6411 set dummy dlltool; ac_word=$2
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6413 $as_echo_n "checking for $ac_word... " >&6; }
6414 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6415 $as_echo_n "(cached) " >&6
6416 else
6417 if test -n "$ac_ct_DLLTOOL"; then
6418 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6419 else
6420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6421 for as_dir in $PATH
6422 do
6423 IFS=$as_save_IFS
6424 test -z "$as_dir" && as_dir=.
6425 for ac_exec_ext in '' $ac_executable_extensions; do
6426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6427 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6429 break 2
6430 fi
6431 done
6432 done
6433 IFS=$as_save_IFS
6434
6435 fi
6436 fi
6437 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6438 if test -n "$ac_ct_DLLTOOL"; then
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6440 $as_echo "$ac_ct_DLLTOOL" >&6; }
6441 else
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6443 $as_echo "no" >&6; }
6444 fi
6445
6446 if test "x$ac_ct_DLLTOOL" = x; then
6447 DLLTOOL="false"
6448 else
6449 case $cross_compiling:$ac_tool_warned in
6450 yes:)
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6452 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6453 ac_tool_warned=yes ;;
6454 esac
6455 DLLTOOL=$ac_ct_DLLTOOL
6456 fi
6457 else
6458 DLLTOOL="$ac_cv_prog_DLLTOOL"
6459 fi
6460
6461 test -z "$DLLTOOL" && DLLTOOL=dlltool
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6473 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6474 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6475 $as_echo_n "(cached) " >&6
6476 else
6477 lt_cv_sharedlib_from_linklib_cmd='unknown'
6478
6479 case $host_os in
6480 cygwin* | mingw* | pw32* | cegcc*)
6481 # two different shell functions defined in ltmain.sh
6482 # decide which to use based on capabilities of $DLLTOOL
6483 case `$DLLTOOL --help 2>&1` in
6484 *--identify-strict*)
6485 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6486 ;;
6487 *)
6488 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6489 ;;
6490 esac
6491 ;;
6492 *)
6493 # fallback: assume linklib IS sharedlib
6494 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6495 ;;
6496 esac
6497
6498 fi
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6500 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6501 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6502 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6503
6504
6505
6506
6507
6508
6509
6510
6511 if test -n "$ac_tool_prefix"; then
6512 for ac_prog in ar
6513 do
6514 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6515 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6517 $as_echo_n "checking for $ac_word... " >&6; }
6518 if ${ac_cv_prog_AR+:} false; then :
6519 $as_echo_n "(cached) " >&6
6520 else
6521 if test -n "$AR"; then
6522 ac_cv_prog_AR="$AR" # Let the user override the test.
6523 else
6524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6525 for as_dir in $PATH
6526 do
6527 IFS=$as_save_IFS
6528 test -z "$as_dir" && as_dir=.
6529 for ac_exec_ext in '' $ac_executable_extensions; do
6530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6531 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6533 break 2
6534 fi
6535 done
6536 done
6537 IFS=$as_save_IFS
6538
6539 fi
6540 fi
6541 AR=$ac_cv_prog_AR
6542 if test -n "$AR"; then
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6544 $as_echo "$AR" >&6; }
6545 else
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6547 $as_echo "no" >&6; }
6548 fi
6549
6550
6551 test -n "$AR" && break
6552 done
6553 fi
6554 if test -z "$AR"; then
6555 ac_ct_AR=$AR
6556 for ac_prog in ar
6557 do
6558 # Extract the first word of "$ac_prog", so it can be a program name with args.
6559 set dummy $ac_prog; ac_word=$2
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6561 $as_echo_n "checking for $ac_word... " >&6; }
6562 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6563 $as_echo_n "(cached) " >&6
6564 else
6565 if test -n "$ac_ct_AR"; then
6566 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6567 else
6568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6569 for as_dir in $PATH
6570 do
6571 IFS=$as_save_IFS
6572 test -z "$as_dir" && as_dir=.
6573 for ac_exec_ext in '' $ac_executable_extensions; do
6574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6575 ac_cv_prog_ac_ct_AR="$ac_prog"
6576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6577 break 2
6578 fi
6579 done
6580 done
6581 IFS=$as_save_IFS
6582
6583 fi
6584 fi
6585 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6586 if test -n "$ac_ct_AR"; then
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6588 $as_echo "$ac_ct_AR" >&6; }
6589 else
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6591 $as_echo "no" >&6; }
6592 fi
6593
6594
6595 test -n "$ac_ct_AR" && break
6596 done
6597
6598 if test "x$ac_ct_AR" = x; then
6599 AR="false"
6600 else
6601 case $cross_compiling:$ac_tool_warned in
6602 yes:)
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6604 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6605 ac_tool_warned=yes ;;
6606 esac
6607 AR=$ac_ct_AR
6608 fi
6609 fi
6610
6611 : ${AR=ar}
6612 : ${AR_FLAGS=cru}
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6625 $as_echo_n "checking for archiver @FILE support... " >&6; }
6626 if ${lt_cv_ar_at_file+:} false; then :
6627 $as_echo_n "(cached) " >&6
6628 else
6629 lt_cv_ar_at_file=no
6630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6631 /* end confdefs.h. */
6632
6633 int
6634 main ()
6635 {
6636
6637 ;
6638 return 0;
6639 }
6640 _ACEOF
6641 if ac_fn_cxx_try_compile "$LINENO"; then :
6642 echo conftest.$ac_objext > conftest.lst
6643 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6644 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6645 (eval $lt_ar_try) 2>&5
6646 ac_status=$?
6647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6648 test $ac_status = 0; }
6649 if test "$ac_status" -eq 0; then
6650 # Ensure the archiver fails upon bogus file names.
6651 rm -f conftest.$ac_objext libconftest.a
6652 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6653 (eval $lt_ar_try) 2>&5
6654 ac_status=$?
6655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6656 test $ac_status = 0; }
6657 if test "$ac_status" -ne 0; then
6658 lt_cv_ar_at_file=@
6659 fi
6660 fi
6661 rm -f conftest.* libconftest.a
6662
6663 fi
6664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6665
6666 fi
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6668 $as_echo "$lt_cv_ar_at_file" >&6; }
6669
6670 if test "x$lt_cv_ar_at_file" = xno; then
6671 archiver_list_spec=
6672 else
6673 archiver_list_spec=$lt_cv_ar_at_file
6674 fi
6675
6676
6677
6678
6679
6680
6681
6682 if test -n "$ac_tool_prefix"; then
6683 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6684 set dummy ${ac_tool_prefix}strip; ac_word=$2
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6686 $as_echo_n "checking for $ac_word... " >&6; }
6687 if ${ac_cv_prog_STRIP+:} false; then :
6688 $as_echo_n "(cached) " >&6
6689 else
6690 if test -n "$STRIP"; then
6691 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6692 else
6693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6694 for as_dir in $PATH
6695 do
6696 IFS=$as_save_IFS
6697 test -z "$as_dir" && as_dir=.
6698 for ac_exec_ext in '' $ac_executable_extensions; do
6699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6700 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6702 break 2
6703 fi
6704 done
6705 done
6706 IFS=$as_save_IFS
6707
6708 fi
6709 fi
6710 STRIP=$ac_cv_prog_STRIP
6711 if test -n "$STRIP"; then
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6713 $as_echo "$STRIP" >&6; }
6714 else
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6716 $as_echo "no" >&6; }
6717 fi
6718
6719
6720 fi
6721 if test -z "$ac_cv_prog_STRIP"; then
6722 ac_ct_STRIP=$STRIP
6723 # Extract the first word of "strip", so it can be a program name with args.
6724 set dummy strip; ac_word=$2
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6726 $as_echo_n "checking for $ac_word... " >&6; }
6727 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6728 $as_echo_n "(cached) " >&6
6729 else
6730 if test -n "$ac_ct_STRIP"; then
6731 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6732 else
6733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6734 for as_dir in $PATH
6735 do
6736 IFS=$as_save_IFS
6737 test -z "$as_dir" && as_dir=.
6738 for ac_exec_ext in '' $ac_executable_extensions; do
6739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6740 ac_cv_prog_ac_ct_STRIP="strip"
6741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6742 break 2
6743 fi
6744 done
6745 done
6746 IFS=$as_save_IFS
6747
6748 fi
6749 fi
6750 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6751 if test -n "$ac_ct_STRIP"; then
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6753 $as_echo "$ac_ct_STRIP" >&6; }
6754 else
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6756 $as_echo "no" >&6; }
6757 fi
6758
6759 if test "x$ac_ct_STRIP" = x; then
6760 STRIP=":"
6761 else
6762 case $cross_compiling:$ac_tool_warned in
6763 yes:)
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6765 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6766 ac_tool_warned=yes ;;
6767 esac
6768 STRIP=$ac_ct_STRIP
6769 fi
6770 else
6771 STRIP="$ac_cv_prog_STRIP"
6772 fi
6773
6774 test -z "$STRIP" && STRIP=:
6775
6776
6777
6778
6779
6780
6781 if test -n "$ac_tool_prefix"; then
6782 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6783 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6785 $as_echo_n "checking for $ac_word... " >&6; }
6786 if ${ac_cv_prog_RANLIB+:} false; then :
6787 $as_echo_n "(cached) " >&6
6788 else
6789 if test -n "$RANLIB"; then
6790 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6791 else
6792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6793 for as_dir in $PATH
6794 do
6795 IFS=$as_save_IFS
6796 test -z "$as_dir" && as_dir=.
6797 for ac_exec_ext in '' $ac_executable_extensions; do
6798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6799 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6801 break 2
6802 fi
6803 done
6804 done
6805 IFS=$as_save_IFS
6806
6807 fi
6808 fi
6809 RANLIB=$ac_cv_prog_RANLIB
6810 if test -n "$RANLIB"; then
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6812 $as_echo "$RANLIB" >&6; }
6813 else
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6815 $as_echo "no" >&6; }
6816 fi
6817
6818
6819 fi
6820 if test -z "$ac_cv_prog_RANLIB"; then
6821 ac_ct_RANLIB=$RANLIB
6822 # Extract the first word of "ranlib", so it can be a program name with args.
6823 set dummy ranlib; ac_word=$2
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6825 $as_echo_n "checking for $ac_word... " >&6; }
6826 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6827 $as_echo_n "(cached) " >&6
6828 else
6829 if test -n "$ac_ct_RANLIB"; then
6830 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6831 else
6832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6833 for as_dir in $PATH
6834 do
6835 IFS=$as_save_IFS
6836 test -z "$as_dir" && as_dir=.
6837 for ac_exec_ext in '' $ac_executable_extensions; do
6838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6839 ac_cv_prog_ac_ct_RANLIB="ranlib"
6840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6841 break 2
6842 fi
6843 done
6844 done
6845 IFS=$as_save_IFS
6846
6847 fi
6848 fi
6849 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6850 if test -n "$ac_ct_RANLIB"; then
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6852 $as_echo "$ac_ct_RANLIB" >&6; }
6853 else
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6855 $as_echo "no" >&6; }
6856 fi
6857
6858 if test "x$ac_ct_RANLIB" = x; then
6859 RANLIB=":"
6860 else
6861 case $cross_compiling:$ac_tool_warned in
6862 yes:)
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6864 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6865 ac_tool_warned=yes ;;
6866 esac
6867 RANLIB=$ac_ct_RANLIB
6868 fi
6869 else
6870 RANLIB="$ac_cv_prog_RANLIB"
6871 fi
6872
6873 test -z "$RANLIB" && RANLIB=:
6874
6875
6876
6877
6878
6879
6880 # Determine commands to create old-style static archives.
6881 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6882 old_postinstall_cmds='chmod 644 $oldlib'
6883 old_postuninstall_cmds=
6884
6885 if test -n "$RANLIB"; then
6886 case $host_os in
6887 openbsd*)
6888 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6889 ;;
6890 *)
6891 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6892 ;;
6893 esac
6894 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6895 fi
6896
6897 case $host_os in
6898 darwin*)
6899 lock_old_archive_extraction=yes ;;
6900 *)
6901 lock_old_archive_extraction=no ;;
6902 esac
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942 # If no C compiler was specified, use CC.
6943 LTCC=${LTCC-"$CC"}
6944
6945 # If no C compiler flags were specified, use CFLAGS.
6946 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6947
6948 # Allow CC to be a program name with arguments.
6949 compiler=$CC
6950
6951
6952 # Check for command to grab the raw symbol name followed by C symbol from nm.
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6954 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6955 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6956 $as_echo_n "(cached) " >&6
6957 else
6958
6959 # These are sane defaults that work on at least a few old systems.
6960 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6961
6962 # Character class describing NM global symbol codes.
6963 symcode='[BCDEGRST]'
6964
6965 # Regexp to match symbols that can be accessed directly from C.
6966 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6967
6968 # Define system-specific variables.
6969 case $host_os in
6970 aix*)
6971 symcode='[BCDT]'
6972 ;;
6973 cygwin* | mingw* | pw32* | cegcc*)
6974 symcode='[ABCDGISTW]'
6975 ;;
6976 hpux*)
6977 if test "$host_cpu" = ia64; then
6978 symcode='[ABCDEGRST]'
6979 fi
6980 ;;
6981 irix* | nonstopux*)
6982 symcode='[BCDEGRST]'
6983 ;;
6984 osf*)
6985 symcode='[BCDEGQRST]'
6986 ;;
6987 solaris*)
6988 symcode='[BDRT]'
6989 ;;
6990 sco3.2v5*)
6991 symcode='[DT]'
6992 ;;
6993 sysv4.2uw2*)
6994 symcode='[DT]'
6995 ;;
6996 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6997 symcode='[ABDT]'
6998 ;;
6999 sysv4)
7000 symcode='[DFNSTU]'
7001 ;;
7002 esac
7003
7004 # If we're using GNU nm, then use its standard symbol codes.
7005 case `$NM -V 2>&1` in
7006 *GNU* | *'with BFD'*)
7007 symcode='[ABCDGIRSTW]' ;;
7008 esac
7009
7010 # Transform an extracted symbol line into a proper C declaration.
7011 # Some systems (esp. on ia64) link data and code symbols differently,
7012 # so use this general approach.
7013 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7014
7015 # Transform an extracted symbol line into symbol name and symbol address
7016 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7017 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
7018
7019 # Handle CRLF in mingw tool chain
7020 opt_cr=
7021 case $build_os in
7022 mingw*)
7023 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7024 ;;
7025 esac
7026
7027 # Try without a prefix underscore, then with it.
7028 for ac_symprfx in "" "_"; do
7029
7030 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7031 symxfrm="\\1 $ac_symprfx\\2 \\2"
7032
7033 # Write the raw and C identifiers.
7034 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7035 # Fake it for dumpbin and say T for any non-static function
7036 # and D for any global variable.
7037 # Also find C++ and __fastcall symbols from MSVC++,
7038 # which start with @ or ?.
7039 lt_cv_sys_global_symbol_pipe="$AWK '"\
7040 " {last_section=section; section=\$ 3};"\
7041 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7042 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7043 " \$ 0!~/External *\|/{next};"\
7044 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7045 " {if(hide[section]) next};"\
7046 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7047 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7048 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7049 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7050 " ' prfx=^$ac_symprfx"
7051 else
7052 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7053 fi
7054 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7055
7056 # Check to see that the pipe works correctly.
7057 pipe_works=no
7058
7059 rm -f conftest*
7060 cat > conftest.$ac_ext <<_LT_EOF
7061 #ifdef __cplusplus
7062 extern "C" {
7063 #endif
7064 char nm_test_var;
7065 void nm_test_func(void);
7066 void nm_test_func(void){}
7067 #ifdef __cplusplus
7068 }
7069 #endif
7070 int main(){nm_test_var='a';nm_test_func();return(0);}
7071 _LT_EOF
7072
7073 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7074 (eval $ac_compile) 2>&5
7075 ac_status=$?
7076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7077 test $ac_status = 0; }; then
7078 # Now try to grab the symbols.
7079 nlist=conftest.nm
7080 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7081 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7082 ac_status=$?
7083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7084 test $ac_status = 0; } && test -s "$nlist"; then
7085 # Try sorting and uniquifying the output.
7086 if sort "$nlist" | uniq > "$nlist"T; then
7087 mv -f "$nlist"T "$nlist"
7088 else
7089 rm -f "$nlist"T
7090 fi
7091
7092 # Make sure that we snagged all the symbols we need.
7093 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7094 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7095 cat <<_LT_EOF > conftest.$ac_ext
7096 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7097 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7098 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7099 relocations are performed -- see ld's documentation on pseudo-relocs. */
7100 # define LT_DLSYM_CONST
7101 #elif defined(__osf__)
7102 /* This system does not cope well with relocations in const data. */
7103 # define LT_DLSYM_CONST
7104 #else
7105 # define LT_DLSYM_CONST const
7106 #endif
7107
7108 #ifdef __cplusplus
7109 extern "C" {
7110 #endif
7111
7112 _LT_EOF
7113 # Now generate the symbol file.
7114 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7115
7116 cat <<_LT_EOF >> conftest.$ac_ext
7117
7118 /* The mapping between symbol names and symbols. */
7119 LT_DLSYM_CONST struct {
7120 const char *name;
7121 void *address;
7122 }
7123 lt__PROGRAM__LTX_preloaded_symbols[] =
7124 {
7125 { "@PROGRAM@", (void *) 0 },
7126 _LT_EOF
7127 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7128 cat <<\_LT_EOF >> conftest.$ac_ext
7129 {0, (void *) 0}
7130 };
7131
7132 /* This works around a problem in FreeBSD linker */
7133 #ifdef FREEBSD_WORKAROUND
7134 static const void *lt_preloaded_setup() {
7135 return lt__PROGRAM__LTX_preloaded_symbols;
7136 }
7137 #endif
7138
7139 #ifdef __cplusplus
7140 }
7141 #endif
7142 _LT_EOF
7143 # Now try linking the two files.
7144 mv conftest.$ac_objext conftstm.$ac_objext
7145 lt_globsym_save_LIBS=$LIBS
7146 lt_globsym_save_CFLAGS=$CFLAGS
7147 LIBS="conftstm.$ac_objext"
7148 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7149 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7150 (eval $ac_link) 2>&5
7151 ac_status=$?
7152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7153 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7154 pipe_works=yes
7155 fi
7156 LIBS=$lt_globsym_save_LIBS
7157 CFLAGS=$lt_globsym_save_CFLAGS
7158 else
7159 echo "cannot find nm_test_func in $nlist" >&5
7160 fi
7161 else
7162 echo "cannot find nm_test_var in $nlist" >&5
7163 fi
7164 else
7165 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7166 fi
7167 else
7168 echo "$progname: failed program was:" >&5
7169 cat conftest.$ac_ext >&5
7170 fi
7171 rm -rf conftest* conftst*
7172
7173 # Do not use the global_symbol_pipe unless it works.
7174 if test "$pipe_works" = yes; then
7175 break
7176 else
7177 lt_cv_sys_global_symbol_pipe=
7178 fi
7179 done
7180
7181 fi
7182
7183 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7184 lt_cv_sys_global_symbol_to_cdecl=
7185 fi
7186 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7188 $as_echo "failed" >&6; }
7189 else
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7191 $as_echo "ok" >&6; }
7192 fi
7193
7194 # Response file support.
7195 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7196 nm_file_list_spec='@'
7197 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7198 nm_file_list_spec='@'
7199 fi
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7228 $as_echo_n "checking for sysroot... " >&6; }
7229
7230 # Check whether --with-sysroot was given.
7231 if test "${with_sysroot+set}" = set; then :
7232 withval=$with_sysroot;
7233 else
7234 with_sysroot=no
7235 fi
7236
7237
7238 lt_sysroot=
7239 case ${with_sysroot} in #(
7240 yes)
7241 if test "$GCC" = yes; then
7242 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7243 fi
7244 ;; #(
7245 /*)
7246 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7247 ;; #(
7248 no|'')
7249 ;; #(
7250 *)
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7252 $as_echo "${with_sysroot}" >&6; }
7253 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7254 ;;
7255 esac
7256
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7258 $as_echo "${lt_sysroot:-no}" >&6; }
7259
7260
7261
7262
7263
7264
7265 # Check whether --enable-libtool-lock was given.
7266 if test "${enable_libtool_lock+set}" = set; then :
7267 enableval=$enable_libtool_lock;
7268 fi
7269
7270 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7271
7272 # Some flags need to be propagated to the compiler or linker for good
7273 # libtool support.
7274 case $host in
7275 ia64-*-hpux*)
7276 # Find out which ABI we are using.
7277 echo 'int i;' > conftest.$ac_ext
7278 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7279 (eval $ac_compile) 2>&5
7280 ac_status=$?
7281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7282 test $ac_status = 0; }; then
7283 case `/usr/bin/file conftest.$ac_objext` in
7284 *ELF-32*)
7285 HPUX_IA64_MODE="32"
7286 ;;
7287 *ELF-64*)
7288 HPUX_IA64_MODE="64"
7289 ;;
7290 esac
7291 fi
7292 rm -rf conftest*
7293 ;;
7294 *-*-irix6*)
7295 # Find out which ABI we are using.
7296 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7297 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7298 (eval $ac_compile) 2>&5
7299 ac_status=$?
7300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7301 test $ac_status = 0; }; then
7302 if test "$lt_cv_prog_gnu_ld" = yes; then
7303 case `/usr/bin/file conftest.$ac_objext` in
7304 *32-bit*)
7305 LD="${LD-ld} -melf32bsmip"
7306 ;;
7307 *N32*)
7308 LD="${LD-ld} -melf32bmipn32"
7309 ;;
7310 *64-bit*)
7311 LD="${LD-ld} -melf64bmip"
7312 ;;
7313 esac
7314 else
7315 case `/usr/bin/file conftest.$ac_objext` in
7316 *32-bit*)
7317 LD="${LD-ld} -32"
7318 ;;
7319 *N32*)
7320 LD="${LD-ld} -n32"
7321 ;;
7322 *64-bit*)
7323 LD="${LD-ld} -64"
7324 ;;
7325 esac
7326 fi
7327 fi
7328 rm -rf conftest*
7329 ;;
7330
7331 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7332 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7333 # Find out which ABI we are using.
7334 echo 'int i;' > conftest.$ac_ext
7335 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7336 (eval $ac_compile) 2>&5
7337 ac_status=$?
7338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7339 test $ac_status = 0; }; then
7340 case `/usr/bin/file conftest.o` in
7341 *32-bit*)
7342 case $host in
7343 x86_64-*kfreebsd*-gnu)
7344 LD="${LD-ld} -m elf_i386_fbsd"
7345 ;;
7346 x86_64-*linux*)
7347 case `/usr/bin/file conftest.o` in
7348 *x86-64*)
7349 LD="${LD-ld} -m elf32_x86_64"
7350 ;;
7351 *)
7352 LD="${LD-ld} -m elf_i386"
7353 ;;
7354 esac
7355 ;;
7356 powerpc64le-*)
7357 LD="${LD-ld} -m elf32lppclinux"
7358 ;;
7359 powerpc64-*)
7360 LD="${LD-ld} -m elf32ppclinux"
7361 ;;
7362 s390x-*linux*)
7363 LD="${LD-ld} -m elf_s390"
7364 ;;
7365 sparc64-*linux*)
7366 LD="${LD-ld} -m elf32_sparc"
7367 ;;
7368 esac
7369 ;;
7370 *64-bit*)
7371 case $host in
7372 x86_64-*kfreebsd*-gnu)
7373 LD="${LD-ld} -m elf_x86_64_fbsd"
7374 ;;
7375 x86_64-*linux*)
7376 LD="${LD-ld} -m elf_x86_64"
7377 ;;
7378 powerpcle-*)
7379 LD="${LD-ld} -m elf64lppc"
7380 ;;
7381 powerpc-*)
7382 LD="${LD-ld} -m elf64ppc"
7383 ;;
7384 s390*-*linux*|s390*-*tpf*)
7385 LD="${LD-ld} -m elf64_s390"
7386 ;;
7387 sparc*-*linux*)
7388 LD="${LD-ld} -m elf64_sparc"
7389 ;;
7390 esac
7391 ;;
7392 esac
7393 fi
7394 rm -rf conftest*
7395 ;;
7396
7397 *-*-sco3.2v5*)
7398 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7399 SAVE_CFLAGS="$CFLAGS"
7400 CFLAGS="$CFLAGS -belf"
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7402 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7403 if ${lt_cv_cc_needs_belf+:} false; then :
7404 $as_echo_n "(cached) " >&6
7405 else
7406 ac_ext=c
7407 ac_cpp='$CPP $CPPFLAGS'
7408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7411
7412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7413 /* end confdefs.h. */
7414
7415 int
7416 main ()
7417 {
7418
7419 ;
7420 return 0;
7421 }
7422 _ACEOF
7423 if ac_fn_c_try_link "$LINENO"; then :
7424 lt_cv_cc_needs_belf=yes
7425 else
7426 lt_cv_cc_needs_belf=no
7427 fi
7428 rm -f core conftest.err conftest.$ac_objext \
7429 conftest$ac_exeext conftest.$ac_ext
7430 ac_ext=c
7431 ac_cpp='$CPP $CPPFLAGS'
7432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7435
7436 fi
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7438 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7439 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7440 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7441 CFLAGS="$SAVE_CFLAGS"
7442 fi
7443 ;;
7444 *-*solaris*)
7445 # Find out which ABI we are using.
7446 echo 'int i;' > conftest.$ac_ext
7447 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7448 (eval $ac_compile) 2>&5
7449 ac_status=$?
7450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7451 test $ac_status = 0; }; then
7452 case `/usr/bin/file conftest.o` in
7453 *64-bit*)
7454 case $lt_cv_prog_gnu_ld in
7455 yes*)
7456 case $host in
7457 i?86-*-solaris*)
7458 LD="${LD-ld} -m elf_x86_64"
7459 ;;
7460 sparc*-*-solaris*)
7461 LD="${LD-ld} -m elf64_sparc"
7462 ;;
7463 esac
7464 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7465 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7466 LD="${LD-ld}_sol2"
7467 fi
7468 ;;
7469 *)
7470 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7471 LD="${LD-ld} -64"
7472 fi
7473 ;;
7474 esac
7475 ;;
7476 esac
7477 fi
7478 rm -rf conftest*
7479 ;;
7480 esac
7481
7482 need_locks="$enable_libtool_lock"
7483
7484 if test -n "$ac_tool_prefix"; then
7485 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7486 set dummy ${ac_tool_prefix}mt; ac_word=$2
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7488 $as_echo_n "checking for $ac_word... " >&6; }
7489 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7490 $as_echo_n "(cached) " >&6
7491 else
7492 if test -n "$MANIFEST_TOOL"; then
7493 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7494 else
7495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7496 for as_dir in $PATH
7497 do
7498 IFS=$as_save_IFS
7499 test -z "$as_dir" && as_dir=.
7500 for ac_exec_ext in '' $ac_executable_extensions; do
7501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7502 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7504 break 2
7505 fi
7506 done
7507 done
7508 IFS=$as_save_IFS
7509
7510 fi
7511 fi
7512 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7513 if test -n "$MANIFEST_TOOL"; then
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7515 $as_echo "$MANIFEST_TOOL" >&6; }
7516 else
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7518 $as_echo "no" >&6; }
7519 fi
7520
7521
7522 fi
7523 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7524 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7525 # Extract the first word of "mt", so it can be a program name with args.
7526 set dummy mt; ac_word=$2
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7528 $as_echo_n "checking for $ac_word... " >&6; }
7529 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7530 $as_echo_n "(cached) " >&6
7531 else
7532 if test -n "$ac_ct_MANIFEST_TOOL"; then
7533 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7534 else
7535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7536 for as_dir in $PATH
7537 do
7538 IFS=$as_save_IFS
7539 test -z "$as_dir" && as_dir=.
7540 for ac_exec_ext in '' $ac_executable_extensions; do
7541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7542 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7544 break 2
7545 fi
7546 done
7547 done
7548 IFS=$as_save_IFS
7549
7550 fi
7551 fi
7552 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7553 if test -n "$ac_ct_MANIFEST_TOOL"; then
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7555 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7556 else
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7558 $as_echo "no" >&6; }
7559 fi
7560
7561 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7562 MANIFEST_TOOL=":"
7563 else
7564 case $cross_compiling:$ac_tool_warned in
7565 yes:)
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7567 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7568 ac_tool_warned=yes ;;
7569 esac
7570 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7571 fi
7572 else
7573 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7574 fi
7575
7576 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7578 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7579 if ${lt_cv_path_mainfest_tool+:} false; then :
7580 $as_echo_n "(cached) " >&6
7581 else
7582 lt_cv_path_mainfest_tool=no
7583 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7584 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7585 cat conftest.err >&5
7586 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7587 lt_cv_path_mainfest_tool=yes
7588 fi
7589 rm -f conftest*
7590 fi
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7592 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7593 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7594 MANIFEST_TOOL=:
7595 fi
7596
7597
7598
7599
7600
7601
7602 case $host_os in
7603 rhapsody* | darwin*)
7604 if test -n "$ac_tool_prefix"; then
7605 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7606 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7608 $as_echo_n "checking for $ac_word... " >&6; }
7609 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7610 $as_echo_n "(cached) " >&6
7611 else
7612 if test -n "$DSYMUTIL"; then
7613 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7614 else
7615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7616 for as_dir in $PATH
7617 do
7618 IFS=$as_save_IFS
7619 test -z "$as_dir" && as_dir=.
7620 for ac_exec_ext in '' $ac_executable_extensions; do
7621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7622 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7624 break 2
7625 fi
7626 done
7627 done
7628 IFS=$as_save_IFS
7629
7630 fi
7631 fi
7632 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7633 if test -n "$DSYMUTIL"; then
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7635 $as_echo "$DSYMUTIL" >&6; }
7636 else
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7638 $as_echo "no" >&6; }
7639 fi
7640
7641
7642 fi
7643 if test -z "$ac_cv_prog_DSYMUTIL"; then
7644 ac_ct_DSYMUTIL=$DSYMUTIL
7645 # Extract the first word of "dsymutil", so it can be a program name with args.
7646 set dummy dsymutil; ac_word=$2
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7648 $as_echo_n "checking for $ac_word... " >&6; }
7649 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7650 $as_echo_n "(cached) " >&6
7651 else
7652 if test -n "$ac_ct_DSYMUTIL"; then
7653 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7654 else
7655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7656 for as_dir in $PATH
7657 do
7658 IFS=$as_save_IFS
7659 test -z "$as_dir" && as_dir=.
7660 for ac_exec_ext in '' $ac_executable_extensions; do
7661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7662 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7664 break 2
7665 fi
7666 done
7667 done
7668 IFS=$as_save_IFS
7669
7670 fi
7671 fi
7672 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7673 if test -n "$ac_ct_DSYMUTIL"; then
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7675 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7676 else
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7678 $as_echo "no" >&6; }
7679 fi
7680
7681 if test "x$ac_ct_DSYMUTIL" = x; then
7682 DSYMUTIL=":"
7683 else
7684 case $cross_compiling:$ac_tool_warned in
7685 yes:)
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7687 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7688 ac_tool_warned=yes ;;
7689 esac
7690 DSYMUTIL=$ac_ct_DSYMUTIL
7691 fi
7692 else
7693 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7694 fi
7695
7696 if test -n "$ac_tool_prefix"; then
7697 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7698 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7700 $as_echo_n "checking for $ac_word... " >&6; }
7701 if ${ac_cv_prog_NMEDIT+:} false; then :
7702 $as_echo_n "(cached) " >&6
7703 else
7704 if test -n "$NMEDIT"; then
7705 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7706 else
7707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7708 for as_dir in $PATH
7709 do
7710 IFS=$as_save_IFS
7711 test -z "$as_dir" && as_dir=.
7712 for ac_exec_ext in '' $ac_executable_extensions; do
7713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7714 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7716 break 2
7717 fi
7718 done
7719 done
7720 IFS=$as_save_IFS
7721
7722 fi
7723 fi
7724 NMEDIT=$ac_cv_prog_NMEDIT
7725 if test -n "$NMEDIT"; then
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7727 $as_echo "$NMEDIT" >&6; }
7728 else
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7730 $as_echo "no" >&6; }
7731 fi
7732
7733
7734 fi
7735 if test -z "$ac_cv_prog_NMEDIT"; then
7736 ac_ct_NMEDIT=$NMEDIT
7737 # Extract the first word of "nmedit", so it can be a program name with args.
7738 set dummy nmedit; ac_word=$2
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7740 $as_echo_n "checking for $ac_word... " >&6; }
7741 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7742 $as_echo_n "(cached) " >&6
7743 else
7744 if test -n "$ac_ct_NMEDIT"; then
7745 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7746 else
7747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7748 for as_dir in $PATH
7749 do
7750 IFS=$as_save_IFS
7751 test -z "$as_dir" && as_dir=.
7752 for ac_exec_ext in '' $ac_executable_extensions; do
7753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7754 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7756 break 2
7757 fi
7758 done
7759 done
7760 IFS=$as_save_IFS
7761
7762 fi
7763 fi
7764 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7765 if test -n "$ac_ct_NMEDIT"; then
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7767 $as_echo "$ac_ct_NMEDIT" >&6; }
7768 else
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7770 $as_echo "no" >&6; }
7771 fi
7772
7773 if test "x$ac_ct_NMEDIT" = x; then
7774 NMEDIT=":"
7775 else
7776 case $cross_compiling:$ac_tool_warned in
7777 yes:)
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7779 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7780 ac_tool_warned=yes ;;
7781 esac
7782 NMEDIT=$ac_ct_NMEDIT
7783 fi
7784 else
7785 NMEDIT="$ac_cv_prog_NMEDIT"
7786 fi
7787
7788 if test -n "$ac_tool_prefix"; then
7789 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7790 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7792 $as_echo_n "checking for $ac_word... " >&6; }
7793 if ${ac_cv_prog_LIPO+:} false; then :
7794 $as_echo_n "(cached) " >&6
7795 else
7796 if test -n "$LIPO"; then
7797 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7798 else
7799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7800 for as_dir in $PATH
7801 do
7802 IFS=$as_save_IFS
7803 test -z "$as_dir" && as_dir=.
7804 for ac_exec_ext in '' $ac_executable_extensions; do
7805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7806 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7808 break 2
7809 fi
7810 done
7811 done
7812 IFS=$as_save_IFS
7813
7814 fi
7815 fi
7816 LIPO=$ac_cv_prog_LIPO
7817 if test -n "$LIPO"; then
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7819 $as_echo "$LIPO" >&6; }
7820 else
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7822 $as_echo "no" >&6; }
7823 fi
7824
7825
7826 fi
7827 if test -z "$ac_cv_prog_LIPO"; then
7828 ac_ct_LIPO=$LIPO
7829 # Extract the first word of "lipo", so it can be a program name with args.
7830 set dummy lipo; ac_word=$2
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7832 $as_echo_n "checking for $ac_word... " >&6; }
7833 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7834 $as_echo_n "(cached) " >&6
7835 else
7836 if test -n "$ac_ct_LIPO"; then
7837 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7838 else
7839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7840 for as_dir in $PATH
7841 do
7842 IFS=$as_save_IFS
7843 test -z "$as_dir" && as_dir=.
7844 for ac_exec_ext in '' $ac_executable_extensions; do
7845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7846 ac_cv_prog_ac_ct_LIPO="lipo"
7847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7848 break 2
7849 fi
7850 done
7851 done
7852 IFS=$as_save_IFS
7853
7854 fi
7855 fi
7856 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7857 if test -n "$ac_ct_LIPO"; then
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7859 $as_echo "$ac_ct_LIPO" >&6; }
7860 else
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7862 $as_echo "no" >&6; }
7863 fi
7864
7865 if test "x$ac_ct_LIPO" = x; then
7866 LIPO=":"
7867 else
7868 case $cross_compiling:$ac_tool_warned in
7869 yes:)
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7871 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7872 ac_tool_warned=yes ;;
7873 esac
7874 LIPO=$ac_ct_LIPO
7875 fi
7876 else
7877 LIPO="$ac_cv_prog_LIPO"
7878 fi
7879
7880 if test -n "$ac_tool_prefix"; then
7881 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7882 set dummy ${ac_tool_prefix}otool; ac_word=$2
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7884 $as_echo_n "checking for $ac_word... " >&6; }
7885 if ${ac_cv_prog_OTOOL+:} false; then :
7886 $as_echo_n "(cached) " >&6
7887 else
7888 if test -n "$OTOOL"; then
7889 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7890 else
7891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7892 for as_dir in $PATH
7893 do
7894 IFS=$as_save_IFS
7895 test -z "$as_dir" && as_dir=.
7896 for ac_exec_ext in '' $ac_executable_extensions; do
7897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7898 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7900 break 2
7901 fi
7902 done
7903 done
7904 IFS=$as_save_IFS
7905
7906 fi
7907 fi
7908 OTOOL=$ac_cv_prog_OTOOL
7909 if test -n "$OTOOL"; then
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7911 $as_echo "$OTOOL" >&6; }
7912 else
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7914 $as_echo "no" >&6; }
7915 fi
7916
7917
7918 fi
7919 if test -z "$ac_cv_prog_OTOOL"; then
7920 ac_ct_OTOOL=$OTOOL
7921 # Extract the first word of "otool", so it can be a program name with args.
7922 set dummy otool; ac_word=$2
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7924 $as_echo_n "checking for $ac_word... " >&6; }
7925 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7926 $as_echo_n "(cached) " >&6
7927 else
7928 if test -n "$ac_ct_OTOOL"; then
7929 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7930 else
7931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7932 for as_dir in $PATH
7933 do
7934 IFS=$as_save_IFS
7935 test -z "$as_dir" && as_dir=.
7936 for ac_exec_ext in '' $ac_executable_extensions; do
7937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7938 ac_cv_prog_ac_ct_OTOOL="otool"
7939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7940 break 2
7941 fi
7942 done
7943 done
7944 IFS=$as_save_IFS
7945
7946 fi
7947 fi
7948 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7949 if test -n "$ac_ct_OTOOL"; then
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7951 $as_echo "$ac_ct_OTOOL" >&6; }
7952 else
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7954 $as_echo "no" >&6; }
7955 fi
7956
7957 if test "x$ac_ct_OTOOL" = x; then
7958 OTOOL=":"
7959 else
7960 case $cross_compiling:$ac_tool_warned in
7961 yes:)
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7963 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7964 ac_tool_warned=yes ;;
7965 esac
7966 OTOOL=$ac_ct_OTOOL
7967 fi
7968 else
7969 OTOOL="$ac_cv_prog_OTOOL"
7970 fi
7971
7972 if test -n "$ac_tool_prefix"; then
7973 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7974 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7976 $as_echo_n "checking for $ac_word... " >&6; }
7977 if ${ac_cv_prog_OTOOL64+:} false; then :
7978 $as_echo_n "(cached) " >&6
7979 else
7980 if test -n "$OTOOL64"; then
7981 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7982 else
7983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7984 for as_dir in $PATH
7985 do
7986 IFS=$as_save_IFS
7987 test -z "$as_dir" && as_dir=.
7988 for ac_exec_ext in '' $ac_executable_extensions; do
7989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7990 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7992 break 2
7993 fi
7994 done
7995 done
7996 IFS=$as_save_IFS
7997
7998 fi
7999 fi
8000 OTOOL64=$ac_cv_prog_OTOOL64
8001 if test -n "$OTOOL64"; then
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8003 $as_echo "$OTOOL64" >&6; }
8004 else
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8006 $as_echo "no" >&6; }
8007 fi
8008
8009
8010 fi
8011 if test -z "$ac_cv_prog_OTOOL64"; then
8012 ac_ct_OTOOL64=$OTOOL64
8013 # Extract the first word of "otool64", so it can be a program name with args.
8014 set dummy otool64; ac_word=$2
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8016 $as_echo_n "checking for $ac_word... " >&6; }
8017 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8018 $as_echo_n "(cached) " >&6
8019 else
8020 if test -n "$ac_ct_OTOOL64"; then
8021 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8022 else
8023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8024 for as_dir in $PATH
8025 do
8026 IFS=$as_save_IFS
8027 test -z "$as_dir" && as_dir=.
8028 for ac_exec_ext in '' $ac_executable_extensions; do
8029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8030 ac_cv_prog_ac_ct_OTOOL64="otool64"
8031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8032 break 2
8033 fi
8034 done
8035 done
8036 IFS=$as_save_IFS
8037
8038 fi
8039 fi
8040 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8041 if test -n "$ac_ct_OTOOL64"; then
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8043 $as_echo "$ac_ct_OTOOL64" >&6; }
8044 else
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8046 $as_echo "no" >&6; }
8047 fi
8048
8049 if test "x$ac_ct_OTOOL64" = x; then
8050 OTOOL64=":"
8051 else
8052 case $cross_compiling:$ac_tool_warned in
8053 yes:)
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8055 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8056 ac_tool_warned=yes ;;
8057 esac
8058 OTOOL64=$ac_ct_OTOOL64
8059 fi
8060 else
8061 OTOOL64="$ac_cv_prog_OTOOL64"
8062 fi
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8091 $as_echo_n "checking for -single_module linker flag... " >&6; }
8092 if ${lt_cv_apple_cc_single_mod+:} false; then :
8093 $as_echo_n "(cached) " >&6
8094 else
8095 lt_cv_apple_cc_single_mod=no
8096 if test -z "${LT_MULTI_MODULE}"; then
8097 # By default we will add the -single_module flag. You can override
8098 # by either setting the environment variable LT_MULTI_MODULE
8099 # non-empty at configure time, or by adding -multi_module to the
8100 # link flags.
8101 rm -rf libconftest.dylib*
8102 echo "int foo(void){return 1;}" > conftest.c
8103 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8104 -dynamiclib -Wl,-single_module conftest.c" >&5
8105 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8106 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8107 _lt_result=$?
8108 # If there is a non-empty error log, and "single_module"
8109 # appears in it, assume the flag caused a linker warning
8110 if test -s conftest.err && $GREP single_module conftest.err; then
8111 cat conftest.err >&5
8112 # Otherwise, if the output was created with a 0 exit code from
8113 # the compiler, it worked.
8114 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8115 lt_cv_apple_cc_single_mod=yes
8116 else
8117 cat conftest.err >&5
8118 fi
8119 rm -rf libconftest.dylib*
8120 rm -f conftest.*
8121 fi
8122 fi
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8124 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8125
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8127 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8128 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8129 $as_echo_n "(cached) " >&6
8130 else
8131 lt_cv_ld_exported_symbols_list=no
8132 save_LDFLAGS=$LDFLAGS
8133 echo "_main" > conftest.sym
8134 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8136 /* end confdefs.h. */
8137
8138 int
8139 main ()
8140 {
8141
8142 ;
8143 return 0;
8144 }
8145 _ACEOF
8146 if ac_fn_c_try_link "$LINENO"; then :
8147 lt_cv_ld_exported_symbols_list=yes
8148 else
8149 lt_cv_ld_exported_symbols_list=no
8150 fi
8151 rm -f core conftest.err conftest.$ac_objext \
8152 conftest$ac_exeext conftest.$ac_ext
8153 LDFLAGS="$save_LDFLAGS"
8154
8155 fi
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8157 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8158
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8160 $as_echo_n "checking for -force_load linker flag... " >&6; }
8161 if ${lt_cv_ld_force_load+:} false; then :
8162 $as_echo_n "(cached) " >&6
8163 else
8164 lt_cv_ld_force_load=no
8165 cat > conftest.c << _LT_EOF
8166 int forced_loaded() { return 2;}
8167 _LT_EOF
8168 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8169 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8170 echo "$AR cru libconftest.a conftest.o" >&5
8171 $AR cru libconftest.a conftest.o 2>&5
8172 echo "$RANLIB libconftest.a" >&5
8173 $RANLIB libconftest.a 2>&5
8174 cat > conftest.c << _LT_EOF
8175 int main() { return 0;}
8176 _LT_EOF
8177 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8178 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8179 _lt_result=$?
8180 if test -s conftest.err && $GREP force_load conftest.err; then
8181 cat conftest.err >&5
8182 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8183 lt_cv_ld_force_load=yes
8184 else
8185 cat conftest.err >&5
8186 fi
8187 rm -f conftest.err libconftest.a conftest conftest.c
8188 rm -rf conftest.dSYM
8189
8190 fi
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8192 $as_echo "$lt_cv_ld_force_load" >&6; }
8193 case $host_os in
8194 rhapsody* | darwin1.[012])
8195 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8196 darwin1.*)
8197 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8198 darwin*) # darwin 5.x on
8199 # if running on 10.5 or later, the deployment target defaults
8200 # to the OS version, if on x86, and 10.4, the deployment
8201 # target defaults to 10.4. Don't you love it?
8202 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8203 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8204 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8205 10.[012]*)
8206 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8207 10.*)
8208 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8209 esac
8210 ;;
8211 esac
8212 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8213 _lt_dar_single_mod='$single_module'
8214 fi
8215 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8216 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8217 else
8218 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8219 fi
8220 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8221 _lt_dsymutil='~$DSYMUTIL $lib || :'
8222 else
8223 _lt_dsymutil=
8224 fi
8225 ;;
8226 esac
8227
8228 ac_ext=c
8229 ac_cpp='$CPP $CPPFLAGS'
8230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8234 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8235 # On Suns, sometimes $CPP names a directory.
8236 if test -n "$CPP" && test -d "$CPP"; then
8237 CPP=
8238 fi
8239 if test -z "$CPP"; then
8240 if ${ac_cv_prog_CPP+:} false; then :
8241 $as_echo_n "(cached) " >&6
8242 else
8243 # Double quotes because CPP needs to be expanded
8244 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8245 do
8246 ac_preproc_ok=false
8247 for ac_c_preproc_warn_flag in '' yes
8248 do
8249 # Use a header file that comes with gcc, so configuring glibc
8250 # with a fresh cross-compiler works.
8251 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8252 # <limits.h> exists even on freestanding compilers.
8253 # On the NeXT, cc -E runs the code through the compiler's parser,
8254 # not just through cpp. "Syntax error" is here to catch this case.
8255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8256 /* end confdefs.h. */
8257 #ifdef __STDC__
8258 # include <limits.h>
8259 #else
8260 # include <assert.h>
8261 #endif
8262 Syntax error
8263 _ACEOF
8264 if ac_fn_c_try_cpp "$LINENO"; then :
8265
8266 else
8267 # Broken: fails on valid input.
8268 continue
8269 fi
8270 rm -f conftest.err conftest.i conftest.$ac_ext
8271
8272 # OK, works on sane cases. Now check whether nonexistent headers
8273 # can be detected and how.
8274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8275 /* end confdefs.h. */
8276 #include <ac_nonexistent.h>
8277 _ACEOF
8278 if ac_fn_c_try_cpp "$LINENO"; then :
8279 # Broken: success on invalid input.
8280 continue
8281 else
8282 # Passes both tests.
8283 ac_preproc_ok=:
8284 break
8285 fi
8286 rm -f conftest.err conftest.i conftest.$ac_ext
8287
8288 done
8289 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8290 rm -f conftest.i conftest.err conftest.$ac_ext
8291 if $ac_preproc_ok; then :
8292 break
8293 fi
8294
8295 done
8296 ac_cv_prog_CPP=$CPP
8297
8298 fi
8299 CPP=$ac_cv_prog_CPP
8300 else
8301 ac_cv_prog_CPP=$CPP
8302 fi
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8304 $as_echo "$CPP" >&6; }
8305 ac_preproc_ok=false
8306 for ac_c_preproc_warn_flag in '' yes
8307 do
8308 # Use a header file that comes with gcc, so configuring glibc
8309 # with a fresh cross-compiler works.
8310 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8311 # <limits.h> exists even on freestanding compilers.
8312 # On the NeXT, cc -E runs the code through the compiler's parser,
8313 # not just through cpp. "Syntax error" is here to catch this case.
8314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8315 /* end confdefs.h. */
8316 #ifdef __STDC__
8317 # include <limits.h>
8318 #else
8319 # include <assert.h>
8320 #endif
8321 Syntax error
8322 _ACEOF
8323 if ac_fn_c_try_cpp "$LINENO"; then :
8324
8325 else
8326 # Broken: fails on valid input.
8327 continue
8328 fi
8329 rm -f conftest.err conftest.i conftest.$ac_ext
8330
8331 # OK, works on sane cases. Now check whether nonexistent headers
8332 # can be detected and how.
8333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8334 /* end confdefs.h. */
8335 #include <ac_nonexistent.h>
8336 _ACEOF
8337 if ac_fn_c_try_cpp "$LINENO"; then :
8338 # Broken: success on invalid input.
8339 continue
8340 else
8341 # Passes both tests.
8342 ac_preproc_ok=:
8343 break
8344 fi
8345 rm -f conftest.err conftest.i conftest.$ac_ext
8346
8347 done
8348 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8349 rm -f conftest.i conftest.err conftest.$ac_ext
8350 if $ac_preproc_ok; then :
8351
8352 else
8353 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8354 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8355 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8356 See \`config.log' for more details" "$LINENO" 5; }
8357 fi
8358
8359 ac_ext=c
8360 ac_cpp='$CPP $CPPFLAGS'
8361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8364
8365
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8367 $as_echo_n "checking for ANSI C header files... " >&6; }
8368 if ${ac_cv_header_stdc+:} false; then :
8369 $as_echo_n "(cached) " >&6
8370 else
8371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8372 /* end confdefs.h. */
8373 #include <stdlib.h>
8374 #include <stdarg.h>
8375 #include <string.h>
8376 #include <float.h>
8377
8378 int
8379 main ()
8380 {
8381
8382 ;
8383 return 0;
8384 }
8385 _ACEOF
8386 if ac_fn_c_try_compile "$LINENO"; then :
8387 ac_cv_header_stdc=yes
8388 else
8389 ac_cv_header_stdc=no
8390 fi
8391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8392
8393 if test $ac_cv_header_stdc = yes; then
8394 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8396 /* end confdefs.h. */
8397 #include <string.h>
8398
8399 _ACEOF
8400 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8401 $EGREP "memchr" >/dev/null 2>&1; then :
8402
8403 else
8404 ac_cv_header_stdc=no
8405 fi
8406 rm -f conftest*
8407
8408 fi
8409
8410 if test $ac_cv_header_stdc = yes; then
8411 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8413 /* end confdefs.h. */
8414 #include <stdlib.h>
8415
8416 _ACEOF
8417 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8418 $EGREP "free" >/dev/null 2>&1; then :
8419
8420 else
8421 ac_cv_header_stdc=no
8422 fi
8423 rm -f conftest*
8424
8425 fi
8426
8427 if test $ac_cv_header_stdc = yes; then
8428 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8429 if test "$cross_compiling" = yes; then :
8430 :
8431 else
8432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8433 /* end confdefs.h. */
8434 #include <ctype.h>
8435 #include <stdlib.h>
8436 #if ((' ' & 0x0FF) == 0x020)
8437 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8438 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8439 #else
8440 # define ISLOWER(c) \
8441 (('a' <= (c) && (c) <= 'i') \
8442 || ('j' <= (c) && (c) <= 'r') \
8443 || ('s' <= (c) && (c) <= 'z'))
8444 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8445 #endif
8446
8447 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8448 int
8449 main ()
8450 {
8451 int i;
8452 for (i = 0; i < 256; i++)
8453 if (XOR (islower (i), ISLOWER (i))
8454 || toupper (i) != TOUPPER (i))
8455 return 2;
8456 return 0;
8457 }
8458 _ACEOF
8459 if ac_fn_c_try_run "$LINENO"; then :
8460
8461 else
8462 ac_cv_header_stdc=no
8463 fi
8464 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8465 conftest.$ac_objext conftest.beam conftest.$ac_ext
8466 fi
8467
8468 fi
8469 fi
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8471 $as_echo "$ac_cv_header_stdc" >&6; }
8472 if test $ac_cv_header_stdc = yes; then
8473
8474 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8475
8476 fi
8477
8478 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8479 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8480 inttypes.h stdint.h unistd.h
8481 do :
8482 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8483 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8484 "
8485 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8486 cat >>confdefs.h <<_ACEOF
8487 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8488 _ACEOF
8489
8490 fi
8491
8492 done
8493
8494
8495 for ac_header in dlfcn.h
8496 do :
8497 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8498 "
8499 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8500 cat >>confdefs.h <<_ACEOF
8501 #define HAVE_DLFCN_H 1
8502 _ACEOF
8503
8504 fi
8505
8506 done
8507
8508
8509
8510 func_stripname_cnf ()
8511 {
8512 case ${2} in
8513 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8514 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8515 esac
8516 } # func_stripname_cnf
8517
8518
8519
8520
8521
8522 # Set options
8523
8524
8525
8526 enable_dlopen=no
8527
8528
8529 enable_win32_dll=no
8530
8531
8532 # Check whether --enable-shared was given.
8533 if test "${enable_shared+set}" = set; then :
8534 enableval=$enable_shared; p=${PACKAGE-default}
8535 case $enableval in
8536 yes) enable_shared=yes ;;
8537 no) enable_shared=no ;;
8538 *)
8539 enable_shared=no
8540 # Look at the argument we got. We use all the common list separators.
8541 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8542 for pkg in $enableval; do
8543 IFS="$lt_save_ifs"
8544 if test "X$pkg" = "X$p"; then
8545 enable_shared=yes
8546 fi
8547 done
8548 IFS="$lt_save_ifs"
8549 ;;
8550 esac
8551 else
8552 enable_shared=yes
8553 fi
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563 # Check whether --enable-static was given.
8564 if test "${enable_static+set}" = set; then :
8565 enableval=$enable_static; p=${PACKAGE-default}
8566 case $enableval in
8567 yes) enable_static=yes ;;
8568 no) enable_static=no ;;
8569 *)
8570 enable_static=no
8571 # Look at the argument we got. We use all the common list separators.
8572 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8573 for pkg in $enableval; do
8574 IFS="$lt_save_ifs"
8575 if test "X$pkg" = "X$p"; then
8576 enable_static=yes
8577 fi
8578 done
8579 IFS="$lt_save_ifs"
8580 ;;
8581 esac
8582 else
8583 enable_static=yes
8584 fi
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595 # Check whether --with-pic was given.
8596 if test "${with_pic+set}" = set; then :
8597 withval=$with_pic; lt_p=${PACKAGE-default}
8598 case $withval in
8599 yes|no) pic_mode=$withval ;;
8600 *)
8601 pic_mode=default
8602 # Look at the argument we got. We use all the common list separators.
8603 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8604 for lt_pkg in $withval; do
8605 IFS="$lt_save_ifs"
8606 if test "X$lt_pkg" = "X$lt_p"; then
8607 pic_mode=yes
8608 fi
8609 done
8610 IFS="$lt_save_ifs"
8611 ;;
8612 esac
8613 else
8614 pic_mode=default
8615 fi
8616
8617
8618 test -z "$pic_mode" && pic_mode=default
8619
8620
8621
8622
8623
8624
8625
8626 # Check whether --enable-fast-install was given.
8627 if test "${enable_fast_install+set}" = set; then :
8628 enableval=$enable_fast_install; p=${PACKAGE-default}
8629 case $enableval in
8630 yes) enable_fast_install=yes ;;
8631 no) enable_fast_install=no ;;
8632 *)
8633 enable_fast_install=no
8634 # Look at the argument we got. We use all the common list separators.
8635 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8636 for pkg in $enableval; do
8637 IFS="$lt_save_ifs"
8638 if test "X$pkg" = "X$p"; then
8639 enable_fast_install=yes
8640 fi
8641 done
8642 IFS="$lt_save_ifs"
8643 ;;
8644 esac
8645 else
8646 enable_fast_install=yes
8647 fi
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659 # This can be used to rebuild libtool when needed
8660 LIBTOOL_DEPS="$ltmain"
8661
8662 # Always use our own libtool.
8663 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694 test -z "$LN_S" && LN_S="ln -s"
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709 if test -n "${ZSH_VERSION+set}" ; then
8710 setopt NO_GLOB_SUBST
8711 fi
8712
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8714 $as_echo_n "checking for objdir... " >&6; }
8715 if ${lt_cv_objdir+:} false; then :
8716 $as_echo_n "(cached) " >&6
8717 else
8718 rm -f .libs 2>/dev/null
8719 mkdir .libs 2>/dev/null
8720 if test -d .libs; then
8721 lt_cv_objdir=.libs
8722 else
8723 # MS-DOS does not allow filenames that begin with a dot.
8724 lt_cv_objdir=_libs
8725 fi
8726 rmdir .libs 2>/dev/null
8727 fi
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8729 $as_echo "$lt_cv_objdir" >&6; }
8730 objdir=$lt_cv_objdir
8731
8732
8733
8734
8735
8736 cat >>confdefs.h <<_ACEOF
8737 #define LT_OBJDIR "$lt_cv_objdir/"
8738 _ACEOF
8739
8740
8741
8742
8743 case $host_os in
8744 aix3*)
8745 # AIX sometimes has problems with the GCC collect2 program. For some
8746 # reason, if we set the COLLECT_NAMES environment variable, the problems
8747 # vanish in a puff of smoke.
8748 if test "X${COLLECT_NAMES+set}" != Xset; then
8749 COLLECT_NAMES=
8750 export COLLECT_NAMES
8751 fi
8752 ;;
8753 esac
8754
8755 # Global variables:
8756 ofile=libtool
8757 can_build_shared=yes
8758
8759 # All known linkers require a `.a' archive for static linking (except MSVC,
8760 # which needs '.lib').
8761 libext=a
8762
8763 with_gnu_ld="$lt_cv_prog_gnu_ld"
8764
8765 old_CC="$CC"
8766 old_CFLAGS="$CFLAGS"
8767
8768 # Set sane defaults for various variables
8769 test -z "$CC" && CC=cc
8770 test -z "$LTCC" && LTCC=$CC
8771 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8772 test -z "$LD" && LD=ld
8773 test -z "$ac_objext" && ac_objext=o
8774
8775 for cc_temp in $compiler""; do
8776 case $cc_temp in
8777 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8778 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8779 \-*) ;;
8780 *) break;;
8781 esac
8782 done
8783 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8784
8785
8786 # Only perform the check for file, if the check method requires it
8787 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8788 case $deplibs_check_method in
8789 file_magic*)
8790 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8792 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8793 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8794 $as_echo_n "(cached) " >&6
8795 else
8796 case $MAGIC_CMD in
8797 [\\/*] | ?:[\\/]*)
8798 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8799 ;;
8800 *)
8801 lt_save_MAGIC_CMD="$MAGIC_CMD"
8802 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8803 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8804 for ac_dir in $ac_dummy; do
8805 IFS="$lt_save_ifs"
8806 test -z "$ac_dir" && ac_dir=.
8807 if test -f $ac_dir/${ac_tool_prefix}file; then
8808 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8809 if test -n "$file_magic_test_file"; then
8810 case $deplibs_check_method in
8811 "file_magic "*)
8812 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8813 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8814 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8815 $EGREP "$file_magic_regex" > /dev/null; then
8816 :
8817 else
8818 cat <<_LT_EOF 1>&2
8819
8820 *** Warning: the command libtool uses to detect shared libraries,
8821 *** $file_magic_cmd, produces output that libtool cannot recognize.
8822 *** The result is that libtool may fail to recognize shared libraries
8823 *** as such. This will affect the creation of libtool libraries that
8824 *** depend on shared libraries, but programs linked with such libtool
8825 *** libraries will work regardless of this problem. Nevertheless, you
8826 *** may want to report the problem to your system manager and/or to
8827 *** bug-libtool@gnu.org
8828
8829 _LT_EOF
8830 fi ;;
8831 esac
8832 fi
8833 break
8834 fi
8835 done
8836 IFS="$lt_save_ifs"
8837 MAGIC_CMD="$lt_save_MAGIC_CMD"
8838 ;;
8839 esac
8840 fi
8841
8842 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8843 if test -n "$MAGIC_CMD"; then
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8845 $as_echo "$MAGIC_CMD" >&6; }
8846 else
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8848 $as_echo "no" >&6; }
8849 fi
8850
8851
8852
8853
8854
8855 if test -z "$lt_cv_path_MAGIC_CMD"; then
8856 if test -n "$ac_tool_prefix"; then
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8858 $as_echo_n "checking for file... " >&6; }
8859 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8860 $as_echo_n "(cached) " >&6
8861 else
8862 case $MAGIC_CMD in
8863 [\\/*] | ?:[\\/]*)
8864 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8865 ;;
8866 *)
8867 lt_save_MAGIC_CMD="$MAGIC_CMD"
8868 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8869 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8870 for ac_dir in $ac_dummy; do
8871 IFS="$lt_save_ifs"
8872 test -z "$ac_dir" && ac_dir=.
8873 if test -f $ac_dir/file; then
8874 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8875 if test -n "$file_magic_test_file"; then
8876 case $deplibs_check_method in
8877 "file_magic "*)
8878 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8879 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8880 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8881 $EGREP "$file_magic_regex" > /dev/null; then
8882 :
8883 else
8884 cat <<_LT_EOF 1>&2
8885
8886 *** Warning: the command libtool uses to detect shared libraries,
8887 *** $file_magic_cmd, produces output that libtool cannot recognize.
8888 *** The result is that libtool may fail to recognize shared libraries
8889 *** as such. This will affect the creation of libtool libraries that
8890 *** depend on shared libraries, but programs linked with such libtool
8891 *** libraries will work regardless of this problem. Nevertheless, you
8892 *** may want to report the problem to your system manager and/or to
8893 *** bug-libtool@gnu.org
8894
8895 _LT_EOF
8896 fi ;;
8897 esac
8898 fi
8899 break
8900 fi
8901 done
8902 IFS="$lt_save_ifs"
8903 MAGIC_CMD="$lt_save_MAGIC_CMD"
8904 ;;
8905 esac
8906 fi
8907
8908 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8909 if test -n "$MAGIC_CMD"; then
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8911 $as_echo "$MAGIC_CMD" >&6; }
8912 else
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8914 $as_echo "no" >&6; }
8915 fi
8916
8917
8918 else
8919 MAGIC_CMD=:
8920 fi
8921 fi
8922
8923 fi
8924 ;;
8925 esac
8926
8927 # Use C for the default configuration in the libtool script
8928
8929 lt_save_CC="$CC"
8930 ac_ext=c
8931 ac_cpp='$CPP $CPPFLAGS'
8932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8935
8936
8937 # Source file extension for C test sources.
8938 ac_ext=c
8939
8940 # Object file extension for compiled C test sources.
8941 objext=o
8942 objext=$objext
8943
8944 # Code to be used in simple compile tests
8945 lt_simple_compile_test_code="int some_variable = 0;"
8946
8947 # Code to be used in simple link tests
8948 lt_simple_link_test_code='int main(){return(0);}'
8949
8950
8951
8952
8953
8954
8955
8956 # If no C compiler was specified, use CC.
8957 LTCC=${LTCC-"$CC"}
8958
8959 # If no C compiler flags were specified, use CFLAGS.
8960 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8961
8962 # Allow CC to be a program name with arguments.
8963 compiler=$CC
8964
8965 # Save the default compiler, since it gets overwritten when the other
8966 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8967 compiler_DEFAULT=$CC
8968
8969 # save warnings/boilerplate of simple test code
8970 ac_outfile=conftest.$ac_objext
8971 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8972 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8973 _lt_compiler_boilerplate=`cat conftest.err`
8974 $RM conftest*
8975
8976 ac_outfile=conftest.$ac_objext
8977 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8978 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8979 _lt_linker_boilerplate=`cat conftest.err`
8980 $RM -r conftest*
8981
8982
8983 if test -n "$compiler"; then
8984
8985 lt_prog_compiler_no_builtin_flag=
8986
8987 if test "$GCC" = yes; then
8988 case $cc_basename in
8989 nvcc*)
8990 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8991 *)
8992 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8993 esac
8994
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8996 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8997 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8998 $as_echo_n "(cached) " >&6
8999 else
9000 lt_cv_prog_compiler_rtti_exceptions=no
9001 ac_outfile=conftest.$ac_objext
9002 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9003 lt_compiler_flag="-fno-rtti -fno-exceptions"
9004 # Insert the option either (1) after the last *FLAGS variable, or
9005 # (2) before a word containing "conftest.", or (3) at the end.
9006 # Note that $ac_compile itself does not contain backslashes and begins
9007 # with a dollar sign (not a hyphen), so the echo should work correctly.
9008 # The option is referenced via a variable to avoid confusing sed.
9009 lt_compile=`echo "$ac_compile" | $SED \
9010 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9011 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9012 -e 's:$: $lt_compiler_flag:'`
9013 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9014 (eval "$lt_compile" 2>conftest.err)
9015 ac_status=$?
9016 cat conftest.err >&5
9017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9018 if (exit $ac_status) && test -s "$ac_outfile"; then
9019 # The compiler can only warn and ignore the option if not recognized
9020 # So say no if there are warnings other than the usual output.
9021 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9022 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9023 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9024 lt_cv_prog_compiler_rtti_exceptions=yes
9025 fi
9026 fi
9027 $RM conftest*
9028
9029 fi
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9031 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9032
9033 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9034 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9035 else
9036 :
9037 fi
9038
9039 fi
9040
9041
9042
9043
9044
9045
9046 lt_prog_compiler_wl=
9047 lt_prog_compiler_pic=
9048 lt_prog_compiler_static=
9049
9050
9051 if test "$GCC" = yes; then
9052 lt_prog_compiler_wl='-Wl,'
9053 lt_prog_compiler_static='-static'
9054
9055 case $host_os in
9056 aix*)
9057 # All AIX code is PIC.
9058 if test "$host_cpu" = ia64; then
9059 # AIX 5 now supports IA64 processor
9060 lt_prog_compiler_static='-Bstatic'
9061 fi
9062 ;;
9063
9064 amigaos*)
9065 case $host_cpu in
9066 powerpc)
9067 # see comment about AmigaOS4 .so support
9068 lt_prog_compiler_pic='-fPIC'
9069 ;;
9070 m68k)
9071 # FIXME: we need at least 68020 code to build shared libraries, but
9072 # adding the `-m68020' flag to GCC prevents building anything better,
9073 # like `-m68040'.
9074 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9075 ;;
9076 esac
9077 ;;
9078
9079 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9080 # PIC is the default for these OSes.
9081 ;;
9082
9083 mingw* | cygwin* | pw32* | os2* | cegcc*)
9084 # This hack is so that the source file can tell whether it is being
9085 # built for inclusion in a dll (and should export symbols for example).
9086 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9087 # (--disable-auto-import) libraries
9088 lt_prog_compiler_pic='-DDLL_EXPORT'
9089 ;;
9090
9091 darwin* | rhapsody*)
9092 # PIC is the default on this platform
9093 # Common symbols not allowed in MH_DYLIB files
9094 lt_prog_compiler_pic='-fno-common'
9095 ;;
9096
9097 haiku*)
9098 # PIC is the default for Haiku.
9099 # The "-static" flag exists, but is broken.
9100 lt_prog_compiler_static=
9101 ;;
9102
9103 hpux*)
9104 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9105 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9106 # sets the default TLS model and affects inlining.
9107 case $host_cpu in
9108 hppa*64*)
9109 # +Z the default
9110 ;;
9111 *)
9112 lt_prog_compiler_pic='-fPIC'
9113 ;;
9114 esac
9115 ;;
9116
9117 interix[3-9]*)
9118 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9119 # Instead, we relocate shared libraries at runtime.
9120 ;;
9121
9122 msdosdjgpp*)
9123 # Just because we use GCC doesn't mean we suddenly get shared libraries
9124 # on systems that don't support them.
9125 lt_prog_compiler_can_build_shared=no
9126 enable_shared=no
9127 ;;
9128
9129 *nto* | *qnx*)
9130 # QNX uses GNU C++, but need to define -shared option too, otherwise
9131 # it will coredump.
9132 lt_prog_compiler_pic='-fPIC -shared'
9133 ;;
9134
9135 sysv4*MP*)
9136 if test -d /usr/nec; then
9137 lt_prog_compiler_pic=-Kconform_pic
9138 fi
9139 ;;
9140
9141 *)
9142 lt_prog_compiler_pic='-fPIC'
9143 ;;
9144 esac
9145
9146 case $cc_basename in
9147 nvcc*) # Cuda Compiler Driver 2.2
9148 lt_prog_compiler_wl='-Xlinker '
9149 if test -n "$lt_prog_compiler_pic"; then
9150 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9151 fi
9152 ;;
9153 esac
9154 else
9155 # PORTME Check for flag to pass linker flags through the system compiler.
9156 case $host_os in
9157 aix*)
9158 lt_prog_compiler_wl='-Wl,'
9159 if test "$host_cpu" = ia64; then
9160 # AIX 5 now supports IA64 processor
9161 lt_prog_compiler_static='-Bstatic'
9162 else
9163 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9164 fi
9165 ;;
9166
9167 mingw* | cygwin* | pw32* | os2* | cegcc*)
9168 # This hack is so that the source file can tell whether it is being
9169 # built for inclusion in a dll (and should export symbols for example).
9170 lt_prog_compiler_pic='-DDLL_EXPORT'
9171 ;;
9172
9173 hpux9* | hpux10* | hpux11*)
9174 lt_prog_compiler_wl='-Wl,'
9175 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9176 # not for PA HP-UX.
9177 case $host_cpu in
9178 hppa*64*|ia64*)
9179 # +Z the default
9180 ;;
9181 *)
9182 lt_prog_compiler_pic='+Z'
9183 ;;
9184 esac
9185 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9186 lt_prog_compiler_static='${wl}-a ${wl}archive'
9187 ;;
9188
9189 irix5* | irix6* | nonstopux*)
9190 lt_prog_compiler_wl='-Wl,'
9191 # PIC (with -KPIC) is the default.
9192 lt_prog_compiler_static='-non_shared'
9193 ;;
9194
9195 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9196 case $cc_basename in
9197 # old Intel for x86_64 which still supported -KPIC.
9198 ecc*)
9199 lt_prog_compiler_wl='-Wl,'
9200 lt_prog_compiler_pic='-KPIC'
9201 lt_prog_compiler_static='-static'
9202 ;;
9203 # icc used to be incompatible with GCC.
9204 # ICC 10 doesn't accept -KPIC any more.
9205 icc* | ifort*)
9206 lt_prog_compiler_wl='-Wl,'
9207 lt_prog_compiler_pic='-fPIC'
9208 lt_prog_compiler_static='-static'
9209 ;;
9210 # Lahey Fortran 8.1.
9211 lf95*)
9212 lt_prog_compiler_wl='-Wl,'
9213 lt_prog_compiler_pic='--shared'
9214 lt_prog_compiler_static='--static'
9215 ;;
9216 nagfor*)
9217 # NAG Fortran compiler
9218 lt_prog_compiler_wl='-Wl,-Wl,,'
9219 lt_prog_compiler_pic='-PIC'
9220 lt_prog_compiler_static='-Bstatic'
9221 ;;
9222 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9223 # Portland Group compilers (*not* the Pentium gcc compiler,
9224 # which looks to be a dead project)
9225 lt_prog_compiler_wl='-Wl,'
9226 lt_prog_compiler_pic='-fpic'
9227 lt_prog_compiler_static='-Bstatic'
9228 ;;
9229 ccc*)
9230 lt_prog_compiler_wl='-Wl,'
9231 # All Alpha code is PIC.
9232 lt_prog_compiler_static='-non_shared'
9233 ;;
9234 xl* | bgxl* | bgf* | mpixl*)
9235 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9236 lt_prog_compiler_wl='-Wl,'
9237 lt_prog_compiler_pic='-qpic'
9238 lt_prog_compiler_static='-qstaticlink'
9239 ;;
9240 *)
9241 case `$CC -V 2>&1 | sed 5q` in
9242 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9243 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9244 lt_prog_compiler_pic='-KPIC'
9245 lt_prog_compiler_static='-Bstatic'
9246 lt_prog_compiler_wl=''
9247 ;;
9248 *Sun\ F* | *Sun*Fortran*)
9249 lt_prog_compiler_pic='-KPIC'
9250 lt_prog_compiler_static='-Bstatic'
9251 lt_prog_compiler_wl='-Qoption ld '
9252 ;;
9253 *Sun\ C*)
9254 # Sun C 5.9
9255 lt_prog_compiler_pic='-KPIC'
9256 lt_prog_compiler_static='-Bstatic'
9257 lt_prog_compiler_wl='-Wl,'
9258 ;;
9259 *Intel*\ [CF]*Compiler*)
9260 lt_prog_compiler_wl='-Wl,'
9261 lt_prog_compiler_pic='-fPIC'
9262 lt_prog_compiler_static='-static'
9263 ;;
9264 *Portland\ Group*)
9265 lt_prog_compiler_wl='-Wl,'
9266 lt_prog_compiler_pic='-fpic'
9267 lt_prog_compiler_static='-Bstatic'
9268 ;;
9269 esac
9270 ;;
9271 esac
9272 ;;
9273
9274 newsos6)
9275 lt_prog_compiler_pic='-KPIC'
9276 lt_prog_compiler_static='-Bstatic'
9277 ;;
9278
9279 *nto* | *qnx*)
9280 # QNX uses GNU C++, but need to define -shared option too, otherwise
9281 # it will coredump.
9282 lt_prog_compiler_pic='-fPIC -shared'
9283 ;;
9284
9285 osf3* | osf4* | osf5*)
9286 lt_prog_compiler_wl='-Wl,'
9287 # All OSF/1 code is PIC.
9288 lt_prog_compiler_static='-non_shared'
9289 ;;
9290
9291 rdos*)
9292 lt_prog_compiler_static='-non_shared'
9293 ;;
9294
9295 solaris*)
9296 lt_prog_compiler_pic='-KPIC'
9297 lt_prog_compiler_static='-Bstatic'
9298 case $cc_basename in
9299 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9300 lt_prog_compiler_wl='-Qoption ld ';;
9301 *)
9302 lt_prog_compiler_wl='-Wl,';;
9303 esac
9304 ;;
9305
9306 sunos4*)
9307 lt_prog_compiler_wl='-Qoption ld '
9308 lt_prog_compiler_pic='-PIC'
9309 lt_prog_compiler_static='-Bstatic'
9310 ;;
9311
9312 sysv4 | sysv4.2uw2* | sysv4.3*)
9313 lt_prog_compiler_wl='-Wl,'
9314 lt_prog_compiler_pic='-KPIC'
9315 lt_prog_compiler_static='-Bstatic'
9316 ;;
9317
9318 sysv4*MP*)
9319 if test -d /usr/nec ;then
9320 lt_prog_compiler_pic='-Kconform_pic'
9321 lt_prog_compiler_static='-Bstatic'
9322 fi
9323 ;;
9324
9325 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9326 lt_prog_compiler_wl='-Wl,'
9327 lt_prog_compiler_pic='-KPIC'
9328 lt_prog_compiler_static='-Bstatic'
9329 ;;
9330
9331 unicos*)
9332 lt_prog_compiler_wl='-Wl,'
9333 lt_prog_compiler_can_build_shared=no
9334 ;;
9335
9336 uts4*)
9337 lt_prog_compiler_pic='-pic'
9338 lt_prog_compiler_static='-Bstatic'
9339 ;;
9340
9341 *)
9342 lt_prog_compiler_can_build_shared=no
9343 ;;
9344 esac
9345 fi
9346
9347 case $host_os in
9348 # For platforms which do not support PIC, -DPIC is meaningless:
9349 *djgpp*)
9350 lt_prog_compiler_pic=
9351 ;;
9352 *)
9353 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9354 ;;
9355 esac
9356
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9358 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9359 if ${lt_cv_prog_compiler_pic+:} false; then :
9360 $as_echo_n "(cached) " >&6
9361 else
9362 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9363 fi
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9365 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9366 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9367
9368 #
9369 # Check to make sure the PIC flag actually works.
9370 #
9371 if test -n "$lt_prog_compiler_pic"; then
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9373 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9374 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9375 $as_echo_n "(cached) " >&6
9376 else
9377 lt_cv_prog_compiler_pic_works=no
9378 ac_outfile=conftest.$ac_objext
9379 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9380 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9381 # Insert the option either (1) after the last *FLAGS variable, or
9382 # (2) before a word containing "conftest.", or (3) at the end.
9383 # Note that $ac_compile itself does not contain backslashes and begins
9384 # with a dollar sign (not a hyphen), so the echo should work correctly.
9385 # The option is referenced via a variable to avoid confusing sed.
9386 lt_compile=`echo "$ac_compile" | $SED \
9387 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9388 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9389 -e 's:$: $lt_compiler_flag:'`
9390 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9391 (eval "$lt_compile" 2>conftest.err)
9392 ac_status=$?
9393 cat conftest.err >&5
9394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9395 if (exit $ac_status) && test -s "$ac_outfile"; then
9396 # The compiler can only warn and ignore the option if not recognized
9397 # So say no if there are warnings other than the usual output.
9398 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9399 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9400 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9401 lt_cv_prog_compiler_pic_works=yes
9402 fi
9403 fi
9404 $RM conftest*
9405
9406 fi
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9408 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9409
9410 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9411 case $lt_prog_compiler_pic in
9412 "" | " "*) ;;
9413 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9414 esac
9415 else
9416 lt_prog_compiler_pic=
9417 lt_prog_compiler_can_build_shared=no
9418 fi
9419
9420 fi
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432 #
9433 # Check to make sure the static flag actually works.
9434 #
9435 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9437 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9438 if ${lt_cv_prog_compiler_static_works+:} false; then :
9439 $as_echo_n "(cached) " >&6
9440 else
9441 lt_cv_prog_compiler_static_works=no
9442 save_LDFLAGS="$LDFLAGS"
9443 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9444 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9445 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9446 # The linker can only warn and ignore the option if not recognized
9447 # So say no if there are warnings
9448 if test -s conftest.err; then
9449 # Append any errors to the config.log.
9450 cat conftest.err 1>&5
9451 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9452 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9453 if diff conftest.exp conftest.er2 >/dev/null; then
9454 lt_cv_prog_compiler_static_works=yes
9455 fi
9456 else
9457 lt_cv_prog_compiler_static_works=yes
9458 fi
9459 fi
9460 $RM -r conftest*
9461 LDFLAGS="$save_LDFLAGS"
9462
9463 fi
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9465 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9466
9467 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9468 :
9469 else
9470 lt_prog_compiler_static=
9471 fi
9472
9473
9474
9475
9476
9477
9478
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9480 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9481 if ${lt_cv_prog_compiler_c_o+:} false; then :
9482 $as_echo_n "(cached) " >&6
9483 else
9484 lt_cv_prog_compiler_c_o=no
9485 $RM -r conftest 2>/dev/null
9486 mkdir conftest
9487 cd conftest
9488 mkdir out
9489 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9490
9491 lt_compiler_flag="-o out/conftest2.$ac_objext"
9492 # Insert the option either (1) after the last *FLAGS variable, or
9493 # (2) before a word containing "conftest.", or (3) at the end.
9494 # Note that $ac_compile itself does not contain backslashes and begins
9495 # with a dollar sign (not a hyphen), so the echo should work correctly.
9496 lt_compile=`echo "$ac_compile" | $SED \
9497 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9498 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9499 -e 's:$: $lt_compiler_flag:'`
9500 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9501 (eval "$lt_compile" 2>out/conftest.err)
9502 ac_status=$?
9503 cat out/conftest.err >&5
9504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9506 then
9507 # The compiler can only warn and ignore the option if not recognized
9508 # So say no if there are warnings
9509 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9510 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9511 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9512 lt_cv_prog_compiler_c_o=yes
9513 fi
9514 fi
9515 chmod u+w . 2>&5
9516 $RM conftest*
9517 # SGI C++ compiler will create directory out/ii_files/ for
9518 # template instantiation
9519 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9520 $RM out/* && rmdir out
9521 cd ..
9522 $RM -r conftest
9523 $RM conftest*
9524
9525 fi
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9527 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9528
9529
9530
9531
9532
9533
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9535 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9536 if ${lt_cv_prog_compiler_c_o+:} false; then :
9537 $as_echo_n "(cached) " >&6
9538 else
9539 lt_cv_prog_compiler_c_o=no
9540 $RM -r conftest 2>/dev/null
9541 mkdir conftest
9542 cd conftest
9543 mkdir out
9544 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9545
9546 lt_compiler_flag="-o out/conftest2.$ac_objext"
9547 # Insert the option either (1) after the last *FLAGS variable, or
9548 # (2) before a word containing "conftest.", or (3) at the end.
9549 # Note that $ac_compile itself does not contain backslashes and begins
9550 # with a dollar sign (not a hyphen), so the echo should work correctly.
9551 lt_compile=`echo "$ac_compile" | $SED \
9552 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9553 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9554 -e 's:$: $lt_compiler_flag:'`
9555 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9556 (eval "$lt_compile" 2>out/conftest.err)
9557 ac_status=$?
9558 cat out/conftest.err >&5
9559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9560 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9561 then
9562 # The compiler can only warn and ignore the option if not recognized
9563 # So say no if there are warnings
9564 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9565 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9566 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9567 lt_cv_prog_compiler_c_o=yes
9568 fi
9569 fi
9570 chmod u+w . 2>&5
9571 $RM conftest*
9572 # SGI C++ compiler will create directory out/ii_files/ for
9573 # template instantiation
9574 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9575 $RM out/* && rmdir out
9576 cd ..
9577 $RM -r conftest
9578 $RM conftest*
9579
9580 fi
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9582 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9583
9584
9585
9586
9587 hard_links="nottested"
9588 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9589 # do not overwrite the value of need_locks provided by the user
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9591 $as_echo_n "checking if we can lock with hard links... " >&6; }
9592 hard_links=yes
9593 $RM conftest*
9594 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9595 touch conftest.a
9596 ln conftest.a conftest.b 2>&5 || hard_links=no
9597 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9599 $as_echo "$hard_links" >&6; }
9600 if test "$hard_links" = no; then
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9602 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9603 need_locks=warn
9604 fi
9605 else
9606 need_locks=no
9607 fi
9608
9609
9610
9611
9612
9613
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9615 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9616
9617 runpath_var=
9618 allow_undefined_flag=
9619 always_export_symbols=no
9620 archive_cmds=
9621 archive_expsym_cmds=
9622 compiler_needs_object=no
9623 enable_shared_with_static_runtimes=no
9624 export_dynamic_flag_spec=
9625 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9626 hardcode_automatic=no
9627 hardcode_direct=no
9628 hardcode_direct_absolute=no
9629 hardcode_libdir_flag_spec=
9630 hardcode_libdir_separator=
9631 hardcode_minus_L=no
9632 hardcode_shlibpath_var=unsupported
9633 inherit_rpath=no
9634 link_all_deplibs=unknown
9635 module_cmds=
9636 module_expsym_cmds=
9637 old_archive_from_new_cmds=
9638 old_archive_from_expsyms_cmds=
9639 thread_safe_flag_spec=
9640 whole_archive_flag_spec=
9641 # include_expsyms should be a list of space-separated symbols to be *always*
9642 # included in the symbol list
9643 include_expsyms=
9644 # exclude_expsyms can be an extended regexp of symbols to exclude
9645 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9646 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9647 # as well as any symbol that contains `d'.
9648 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9649 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9650 # platforms (ab)use it in PIC code, but their linkers get confused if
9651 # the symbol is explicitly referenced. Since portable code cannot
9652 # rely on this symbol name, it's probably fine to never include it in
9653 # preloaded symbol tables.
9654 # Exclude shared library initialization/finalization symbols.
9655 extract_expsyms_cmds=
9656
9657 case $host_os in
9658 cygwin* | mingw* | pw32* | cegcc*)
9659 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9660 # When not using gcc, we currently assume that we are using
9661 # Microsoft Visual C++.
9662 if test "$GCC" != yes; then
9663 with_gnu_ld=no
9664 fi
9665 ;;
9666 interix*)
9667 # we just hope/assume this is gcc and not c89 (= MSVC++)
9668 with_gnu_ld=yes
9669 ;;
9670 openbsd*)
9671 with_gnu_ld=no
9672 ;;
9673 linux* | k*bsd*-gnu | gnu*)
9674 link_all_deplibs=no
9675 ;;
9676 esac
9677
9678 ld_shlibs=yes
9679
9680 # On some targets, GNU ld is compatible enough with the native linker
9681 # that we're better off using the native interface for both.
9682 lt_use_gnu_ld_interface=no
9683 if test "$with_gnu_ld" = yes; then
9684 case $host_os in
9685 aix*)
9686 # The AIX port of GNU ld has always aspired to compatibility
9687 # with the native linker. However, as the warning in the GNU ld
9688 # block says, versions before 2.19.5* couldn't really create working
9689 # shared libraries, regardless of the interface used.
9690 case `$LD -v 2>&1` in
9691 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9692 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9693 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9694 *)
9695 lt_use_gnu_ld_interface=yes
9696 ;;
9697 esac
9698 ;;
9699 *)
9700 lt_use_gnu_ld_interface=yes
9701 ;;
9702 esac
9703 fi
9704
9705 if test "$lt_use_gnu_ld_interface" = yes; then
9706 # If archive_cmds runs LD, not CC, wlarc should be empty
9707 wlarc='${wl}'
9708
9709 # Set some defaults for GNU ld with shared library support. These
9710 # are reset later if shared libraries are not supported. Putting them
9711 # here allows them to be overridden if necessary.
9712 runpath_var=LD_RUN_PATH
9713 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9714 export_dynamic_flag_spec='${wl}--export-dynamic'
9715 # ancient GNU ld didn't support --whole-archive et. al.
9716 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9717 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9718 else
9719 whole_archive_flag_spec=
9720 fi
9721 supports_anon_versioning=no
9722 case `$LD -v 2>&1` in
9723 *GNU\ gold*) supports_anon_versioning=yes ;;
9724 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9725 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9726 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9727 *\ 2.11.*) ;; # other 2.11 versions
9728 *) supports_anon_versioning=yes ;;
9729 esac
9730
9731 # See if GNU ld supports shared libraries.
9732 case $host_os in
9733 aix[3-9]*)
9734 # On AIX/PPC, the GNU linker is very broken
9735 if test "$host_cpu" != ia64; then
9736 ld_shlibs=no
9737 cat <<_LT_EOF 1>&2
9738
9739 *** Warning: the GNU linker, at least up to release 2.19, is reported
9740 *** to be unable to reliably create shared libraries on AIX.
9741 *** Therefore, libtool is disabling shared libraries support. If you
9742 *** really care for shared libraries, you may want to install binutils
9743 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9744 *** You will then need to restart the configuration process.
9745
9746 _LT_EOF
9747 fi
9748 ;;
9749
9750 amigaos*)
9751 case $host_cpu in
9752 powerpc)
9753 # see comment about AmigaOS4 .so support
9754 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9755 archive_expsym_cmds=''
9756 ;;
9757 m68k)
9758 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)'
9759 hardcode_libdir_flag_spec='-L$libdir'
9760 hardcode_minus_L=yes
9761 ;;
9762 esac
9763 ;;
9764
9765 beos*)
9766 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9767 allow_undefined_flag=unsupported
9768 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9769 # support --undefined. This deserves some investigation. FIXME
9770 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9771 else
9772 ld_shlibs=no
9773 fi
9774 ;;
9775
9776 cygwin* | mingw* | pw32* | cegcc*)
9777 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9778 # as there is no search path for DLLs.
9779 hardcode_libdir_flag_spec='-L$libdir'
9780 export_dynamic_flag_spec='${wl}--export-all-symbols'
9781 allow_undefined_flag=unsupported
9782 always_export_symbols=no
9783 enable_shared_with_static_runtimes=yes
9784 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'
9785 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9786
9787 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9788 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9789 # If the export-symbols file already is a .def file (1st line
9790 # is EXPORTS), use it as is; otherwise, prepend...
9791 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9792 cp $export_symbols $output_objdir/$soname.def;
9793 else
9794 echo EXPORTS > $output_objdir/$soname.def;
9795 cat $export_symbols >> $output_objdir/$soname.def;
9796 fi~
9797 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9798 else
9799 ld_shlibs=no
9800 fi
9801 ;;
9802
9803 haiku*)
9804 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9805 link_all_deplibs=yes
9806 ;;
9807
9808 interix[3-9]*)
9809 hardcode_direct=no
9810 hardcode_shlibpath_var=no
9811 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9812 export_dynamic_flag_spec='${wl}-E'
9813 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9814 # Instead, shared libraries are loaded at an image base (0x10000000 by
9815 # default) and relocated if they conflict, which is a slow very memory
9816 # consuming and fragmenting process. To avoid this, we pick a random,
9817 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9818 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9819 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9820 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'
9821 ;;
9822
9823 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9824 tmp_diet=no
9825 if test "$host_os" = linux-dietlibc; then
9826 case $cc_basename in
9827 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9828 esac
9829 fi
9830 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9831 && test "$tmp_diet" = no
9832 then
9833 tmp_addflag=' $pic_flag'
9834 tmp_sharedflag='-shared'
9835 case $cc_basename,$host_cpu in
9836 pgcc*) # Portland Group C compiler
9837 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'
9838 tmp_addflag=' $pic_flag'
9839 ;;
9840 pgf77* | pgf90* | pgf95* | pgfortran*)
9841 # Portland Group f77 and f90 compilers
9842 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'
9843 tmp_addflag=' $pic_flag -Mnomain' ;;
9844 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9845 tmp_addflag=' -i_dynamic' ;;
9846 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9847 tmp_addflag=' -i_dynamic -nofor_main' ;;
9848 ifc* | ifort*) # Intel Fortran compiler
9849 tmp_addflag=' -nofor_main' ;;
9850 lf95*) # Lahey Fortran 8.1
9851 whole_archive_flag_spec=
9852 tmp_sharedflag='--shared' ;;
9853 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9854 tmp_sharedflag='-qmkshrobj'
9855 tmp_addflag= ;;
9856 nvcc*) # Cuda Compiler Driver 2.2
9857 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'
9858 compiler_needs_object=yes
9859 ;;
9860 esac
9861 case `$CC -V 2>&1 | sed 5q` in
9862 *Sun\ C*) # Sun C 5.9
9863 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'
9864 compiler_needs_object=yes
9865 tmp_sharedflag='-G' ;;
9866 *Sun\ F*) # Sun Fortran 8.3
9867 tmp_sharedflag='-G' ;;
9868 esac
9869 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9870
9871 if test "x$supports_anon_versioning" = xyes; then
9872 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9873 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9874 echo "local: *; };" >> $output_objdir/$libname.ver~
9875 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9876 fi
9877
9878 case $cc_basename in
9879 xlf* | bgf* | bgxlf* | mpixlf*)
9880 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9881 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9882 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9883 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9884 if test "x$supports_anon_versioning" = xyes; then
9885 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9886 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9887 echo "local: *; };" >> $output_objdir/$libname.ver~
9888 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9889 fi
9890 ;;
9891 esac
9892 else
9893 ld_shlibs=no
9894 fi
9895 ;;
9896
9897 netbsd* | netbsdelf*-gnu)
9898 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9899 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9900 wlarc=
9901 else
9902 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9903 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9904 fi
9905 ;;
9906
9907 solaris*)
9908 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9909 ld_shlibs=no
9910 cat <<_LT_EOF 1>&2
9911
9912 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9913 *** create shared libraries on Solaris systems. Therefore, libtool
9914 *** is disabling shared libraries support. We urge you to upgrade GNU
9915 *** binutils to release 2.9.1 or newer. Another option is to modify
9916 *** your PATH or compiler configuration so that the native linker is
9917 *** used, and then restart.
9918
9919 _LT_EOF
9920 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9921 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9922 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9923 else
9924 ld_shlibs=no
9925 fi
9926 ;;
9927
9928 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9929 case `$LD -v 2>&1` in
9930 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9931 ld_shlibs=no
9932 cat <<_LT_EOF 1>&2
9933
9934 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9935 *** reliably create shared libraries on SCO systems. Therefore, libtool
9936 *** is disabling shared libraries support. We urge you to upgrade GNU
9937 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9938 *** your PATH or compiler configuration so that the native linker is
9939 *** used, and then restart.
9940
9941 _LT_EOF
9942 ;;
9943 *)
9944 # For security reasons, it is highly recommended that you always
9945 # use absolute paths for naming shared libraries, and exclude the
9946 # DT_RUNPATH tag from executables and libraries. But doing so
9947 # requires that you compile everything twice, which is a pain.
9948 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9949 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9950 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9951 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9952 else
9953 ld_shlibs=no
9954 fi
9955 ;;
9956 esac
9957 ;;
9958
9959 sunos4*)
9960 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9961 wlarc=
9962 hardcode_direct=yes
9963 hardcode_shlibpath_var=no
9964 ;;
9965
9966 *)
9967 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9968 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9969 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9970 else
9971 ld_shlibs=no
9972 fi
9973 ;;
9974 esac
9975
9976 if test "$ld_shlibs" = no; then
9977 runpath_var=
9978 hardcode_libdir_flag_spec=
9979 export_dynamic_flag_spec=
9980 whole_archive_flag_spec=
9981 fi
9982 else
9983 # PORTME fill in a description of your system's linker (not GNU ld)
9984 case $host_os in
9985 aix3*)
9986 allow_undefined_flag=unsupported
9987 always_export_symbols=yes
9988 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'
9989 # Note: this linker hardcodes the directories in LIBPATH if there
9990 # are no directories specified by -L.
9991 hardcode_minus_L=yes
9992 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9993 # Neither direct hardcoding nor static linking is supported with a
9994 # broken collect2.
9995 hardcode_direct=unsupported
9996 fi
9997 ;;
9998
9999 aix[4-9]*)
10000 if test "$host_cpu" = ia64; then
10001 # On IA64, the linker does run time linking by default, so we don't
10002 # have to do anything special.
10003 aix_use_runtimelinking=no
10004 exp_sym_flag='-Bexport'
10005 no_entry_flag=""
10006 else
10007 # If we're using GNU nm, then we don't want the "-C" option.
10008 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10009 # Also, AIX nm treats weak defined symbols like other global
10010 # defined symbols, whereas GNU nm marks them as "W".
10011 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10012 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10013 else
10014 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10015 fi
10016 aix_use_runtimelinking=no
10017
10018 # Test if we are trying to use run time linking or normal
10019 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10020 # need to do runtime linking.
10021 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10022 for ld_flag in $LDFLAGS; do
10023 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10024 aix_use_runtimelinking=yes
10025 break
10026 fi
10027 done
10028 ;;
10029 esac
10030
10031 exp_sym_flag='-bexport'
10032 no_entry_flag='-bnoentry'
10033 fi
10034
10035 # When large executables or shared objects are built, AIX ld can
10036 # have problems creating the table of contents. If linking a library
10037 # or program results in "error TOC overflow" add -mminimal-toc to
10038 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10039 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10040
10041 archive_cmds=''
10042 hardcode_direct=yes
10043 hardcode_direct_absolute=yes
10044 hardcode_libdir_separator=':'
10045 link_all_deplibs=yes
10046 file_list_spec='${wl}-f,'
10047
10048 if test "$GCC" = yes; then
10049 case $host_os in aix4.[012]|aix4.[012].*)
10050 # We only want to do this on AIX 4.2 and lower, the check
10051 # below for broken collect2 doesn't work under 4.3+
10052 collect2name=`${CC} -print-prog-name=collect2`
10053 if test -f "$collect2name" &&
10054 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10055 then
10056 # We have reworked collect2
10057 :
10058 else
10059 # We have old collect2
10060 hardcode_direct=unsupported
10061 # It fails to find uninstalled libraries when the uninstalled
10062 # path is not listed in the libpath. Setting hardcode_minus_L
10063 # to unsupported forces relinking
10064 hardcode_minus_L=yes
10065 hardcode_libdir_flag_spec='-L$libdir'
10066 hardcode_libdir_separator=
10067 fi
10068 ;;
10069 esac
10070 shared_flag='-shared'
10071 if test "$aix_use_runtimelinking" = yes; then
10072 shared_flag="$shared_flag "'${wl}-G'
10073 fi
10074 link_all_deplibs=no
10075 else
10076 # not using gcc
10077 if test "$host_cpu" = ia64; then
10078 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10079 # chokes on -Wl,-G. The following line is correct:
10080 shared_flag='-G'
10081 else
10082 if test "$aix_use_runtimelinking" = yes; then
10083 shared_flag='${wl}-G'
10084 else
10085 shared_flag='${wl}-bM:SRE'
10086 fi
10087 fi
10088 fi
10089
10090 export_dynamic_flag_spec='${wl}-bexpall'
10091 # It seems that -bexpall does not export symbols beginning with
10092 # underscore (_), so it is better to generate a list of symbols to export.
10093 always_export_symbols=yes
10094 if test "$aix_use_runtimelinking" = yes; then
10095 # Warning - without using the other runtime loading flags (-brtl),
10096 # -berok will link without error, but may produce a broken library.
10097 allow_undefined_flag='-berok'
10098 # Determine the default libpath from the value encoded in an
10099 # empty executable.
10100 if test "${lt_cv_aix_libpath+set}" = set; then
10101 aix_libpath=$lt_cv_aix_libpath
10102 else
10103 if ${lt_cv_aix_libpath_+:} false; then :
10104 $as_echo_n "(cached) " >&6
10105 else
10106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10107 /* end confdefs.h. */
10108
10109 int
10110 main ()
10111 {
10112
10113 ;
10114 return 0;
10115 }
10116 _ACEOF
10117 if ac_fn_c_try_link "$LINENO"; then :
10118
10119 lt_aix_libpath_sed='
10120 /Import File Strings/,/^$/ {
10121 /^0/ {
10122 s/^0 *\([^ ]*\) *$/\1/
10123 p
10124 }
10125 }'
10126 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10127 # Check for a 64-bit object if we didn't find anything.
10128 if test -z "$lt_cv_aix_libpath_"; then
10129 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10130 fi
10131 fi
10132 rm -f core conftest.err conftest.$ac_objext \
10133 conftest$ac_exeext conftest.$ac_ext
10134 if test -z "$lt_cv_aix_libpath_"; then
10135 lt_cv_aix_libpath_="/usr/lib:/lib"
10136 fi
10137
10138 fi
10139
10140 aix_libpath=$lt_cv_aix_libpath_
10141 fi
10142
10143 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10144 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10145 else
10146 if test "$host_cpu" = ia64; then
10147 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10148 allow_undefined_flag="-z nodefs"
10149 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"
10150 else
10151 # Determine the default libpath from the value encoded in an
10152 # empty executable.
10153 if test "${lt_cv_aix_libpath+set}" = set; then
10154 aix_libpath=$lt_cv_aix_libpath
10155 else
10156 if ${lt_cv_aix_libpath_+:} false; then :
10157 $as_echo_n "(cached) " >&6
10158 else
10159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10160 /* end confdefs.h. */
10161
10162 int
10163 main ()
10164 {
10165
10166 ;
10167 return 0;
10168 }
10169 _ACEOF
10170 if ac_fn_c_try_link "$LINENO"; then :
10171
10172 lt_aix_libpath_sed='
10173 /Import File Strings/,/^$/ {
10174 /^0/ {
10175 s/^0 *\([^ ]*\) *$/\1/
10176 p
10177 }
10178 }'
10179 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10180 # Check for a 64-bit object if we didn't find anything.
10181 if test -z "$lt_cv_aix_libpath_"; then
10182 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10183 fi
10184 fi
10185 rm -f core conftest.err conftest.$ac_objext \
10186 conftest$ac_exeext conftest.$ac_ext
10187 if test -z "$lt_cv_aix_libpath_"; then
10188 lt_cv_aix_libpath_="/usr/lib:/lib"
10189 fi
10190
10191 fi
10192
10193 aix_libpath=$lt_cv_aix_libpath_
10194 fi
10195
10196 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10197 # Warning - without using the other run time loading flags,
10198 # -berok will link without error, but may produce a broken library.
10199 no_undefined_flag=' ${wl}-bernotok'
10200 allow_undefined_flag=' ${wl}-berok'
10201 if test "$with_gnu_ld" = yes; then
10202 # We only use this code for GNU lds that support --whole-archive.
10203 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10204 else
10205 # Exported symbols can be pulled into shared objects from archives
10206 whole_archive_flag_spec='$convenience'
10207 fi
10208 archive_cmds_need_lc=yes
10209 # This is similar to how AIX traditionally builds its shared libraries.
10210 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10211 fi
10212 fi
10213 ;;
10214
10215 amigaos*)
10216 case $host_cpu in
10217 powerpc)
10218 # see comment about AmigaOS4 .so support
10219 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10220 archive_expsym_cmds=''
10221 ;;
10222 m68k)
10223 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)'
10224 hardcode_libdir_flag_spec='-L$libdir'
10225 hardcode_minus_L=yes
10226 ;;
10227 esac
10228 ;;
10229
10230 bsdi[45]*)
10231 export_dynamic_flag_spec=-rdynamic
10232 ;;
10233
10234 cygwin* | mingw* | pw32* | cegcc*)
10235 # When not using gcc, we currently assume that we are using
10236 # Microsoft Visual C++.
10237 # hardcode_libdir_flag_spec is actually meaningless, as there is
10238 # no search path for DLLs.
10239 case $cc_basename in
10240 cl*)
10241 # Native MSVC
10242 hardcode_libdir_flag_spec=' '
10243 allow_undefined_flag=unsupported
10244 always_export_symbols=yes
10245 file_list_spec='@'
10246 # Tell ltmain to make .lib files, not .a files.
10247 libext=lib
10248 # Tell ltmain to make .dll files, not .so files.
10249 shrext_cmds=".dll"
10250 # FIXME: Setting linknames here is a bad hack.
10251 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10252 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10253 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10254 else
10255 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10256 fi~
10257 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10258 linknames='
10259 # The linker will not automatically build a static lib if we build a DLL.
10260 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10261 enable_shared_with_static_runtimes=yes
10262 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10263 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10264 # Don't use ranlib
10265 old_postinstall_cmds='chmod 644 $oldlib'
10266 postlink_cmds='lt_outputfile="@OUTPUT@"~
10267 lt_tool_outputfile="@TOOL_OUTPUT@"~
10268 case $lt_outputfile in
10269 *.exe|*.EXE) ;;
10270 *)
10271 lt_outputfile="$lt_outputfile.exe"
10272 lt_tool_outputfile="$lt_tool_outputfile.exe"
10273 ;;
10274 esac~
10275 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10276 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10277 $RM "$lt_outputfile.manifest";
10278 fi'
10279 ;;
10280 *)
10281 # Assume MSVC wrapper
10282 hardcode_libdir_flag_spec=' '
10283 allow_undefined_flag=unsupported
10284 # Tell ltmain to make .lib files, not .a files.
10285 libext=lib
10286 # Tell ltmain to make .dll files, not .so files.
10287 shrext_cmds=".dll"
10288 # FIXME: Setting linknames here is a bad hack.
10289 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10290 # The linker will automatically build a .lib file if we build a DLL.
10291 old_archive_from_new_cmds='true'
10292 # FIXME: Should let the user specify the lib program.
10293 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10294 enable_shared_with_static_runtimes=yes
10295 ;;
10296 esac
10297 ;;
10298
10299 darwin* | rhapsody*)
10300
10301
10302 archive_cmds_need_lc=no
10303 hardcode_direct=no
10304 hardcode_automatic=yes
10305 hardcode_shlibpath_var=unsupported
10306 if test "$lt_cv_ld_force_load" = "yes"; then
10307 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\"`'
10308
10309 else
10310 whole_archive_flag_spec=''
10311 fi
10312 link_all_deplibs=yes
10313 allow_undefined_flag="$_lt_dar_allow_undefined"
10314 case $cc_basename in
10315 ifort*) _lt_dar_can_shared=yes ;;
10316 *) _lt_dar_can_shared=$GCC ;;
10317 esac
10318 if test "$_lt_dar_can_shared" = "yes"; then
10319 output_verbose_link_cmd=func_echo_all
10320 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10321 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10322 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}"
10323 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}"
10324
10325 else
10326 ld_shlibs=no
10327 fi
10328
10329 ;;
10330
10331 dgux*)
10332 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10333 hardcode_libdir_flag_spec='-L$libdir'
10334 hardcode_shlibpath_var=no
10335 ;;
10336
10337 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10338 # support. Future versions do this automatically, but an explicit c++rt0.o
10339 # does not break anything, and helps significantly (at the cost of a little
10340 # extra space).
10341 freebsd2.2*)
10342 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10343 hardcode_libdir_flag_spec='-R$libdir'
10344 hardcode_direct=yes
10345 hardcode_shlibpath_var=no
10346 ;;
10347
10348 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10349 freebsd2.*)
10350 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10351 hardcode_direct=yes
10352 hardcode_minus_L=yes
10353 hardcode_shlibpath_var=no
10354 ;;
10355
10356 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10357 freebsd* | dragonfly*)
10358 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10359 hardcode_libdir_flag_spec='-R$libdir'
10360 hardcode_direct=yes
10361 hardcode_shlibpath_var=no
10362 ;;
10363
10364 hpux9*)
10365 if test "$GCC" = yes; then
10366 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10367 else
10368 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10369 fi
10370 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10371 hardcode_libdir_separator=:
10372 hardcode_direct=yes
10373
10374 # hardcode_minus_L: Not really in the search PATH,
10375 # but as the default location of the library.
10376 hardcode_minus_L=yes
10377 export_dynamic_flag_spec='${wl}-E'
10378 ;;
10379
10380 hpux10*)
10381 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10382 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10383 else
10384 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10385 fi
10386 if test "$with_gnu_ld" = no; then
10387 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10388 hardcode_libdir_separator=:
10389 hardcode_direct=yes
10390 hardcode_direct_absolute=yes
10391 export_dynamic_flag_spec='${wl}-E'
10392 # hardcode_minus_L: Not really in the search PATH,
10393 # but as the default location of the library.
10394 hardcode_minus_L=yes
10395 fi
10396 ;;
10397
10398 hpux11*)
10399 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10400 case $host_cpu in
10401 hppa*64*)
10402 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10403 ;;
10404 ia64*)
10405 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10406 ;;
10407 *)
10408 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10409 ;;
10410 esac
10411 else
10412 case $host_cpu in
10413 hppa*64*)
10414 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10415 ;;
10416 ia64*)
10417 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10418 ;;
10419 *)
10420
10421 # Older versions of the 11.00 compiler do not understand -b yet
10422 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10424 $as_echo_n "checking if $CC understands -b... " >&6; }
10425 if ${lt_cv_prog_compiler__b+:} false; then :
10426 $as_echo_n "(cached) " >&6
10427 else
10428 lt_cv_prog_compiler__b=no
10429 save_LDFLAGS="$LDFLAGS"
10430 LDFLAGS="$LDFLAGS -b"
10431 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10432 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10433 # The linker can only warn and ignore the option if not recognized
10434 # So say no if there are warnings
10435 if test -s conftest.err; then
10436 # Append any errors to the config.log.
10437 cat conftest.err 1>&5
10438 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10439 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10440 if diff conftest.exp conftest.er2 >/dev/null; then
10441 lt_cv_prog_compiler__b=yes
10442 fi
10443 else
10444 lt_cv_prog_compiler__b=yes
10445 fi
10446 fi
10447 $RM -r conftest*
10448 LDFLAGS="$save_LDFLAGS"
10449
10450 fi
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10452 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10453
10454 if test x"$lt_cv_prog_compiler__b" = xyes; then
10455 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10456 else
10457 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10458 fi
10459
10460 ;;
10461 esac
10462 fi
10463 if test "$with_gnu_ld" = no; then
10464 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10465 hardcode_libdir_separator=:
10466
10467 case $host_cpu in
10468 hppa*64*|ia64*)
10469 hardcode_direct=no
10470 hardcode_shlibpath_var=no
10471 ;;
10472 *)
10473 hardcode_direct=yes
10474 hardcode_direct_absolute=yes
10475 export_dynamic_flag_spec='${wl}-E'
10476
10477 # hardcode_minus_L: Not really in the search PATH,
10478 # but as the default location of the library.
10479 hardcode_minus_L=yes
10480 ;;
10481 esac
10482 fi
10483 ;;
10484
10485 irix5* | irix6* | nonstopux*)
10486 if test "$GCC" = yes; then
10487 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'
10488 # Try to use the -exported_symbol ld option, if it does not
10489 # work, assume that -exports_file does not work either and
10490 # implicitly export all symbols.
10491 # This should be the same for all languages, so no per-tag cache variable.
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10493 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10494 if ${lt_cv_irix_exported_symbol+:} false; then :
10495 $as_echo_n "(cached) " >&6
10496 else
10497 save_LDFLAGS="$LDFLAGS"
10498 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10500 /* end confdefs.h. */
10501 int foo (void) { return 0; }
10502 _ACEOF
10503 if ac_fn_c_try_link "$LINENO"; then :
10504 lt_cv_irix_exported_symbol=yes
10505 else
10506 lt_cv_irix_exported_symbol=no
10507 fi
10508 rm -f core conftest.err conftest.$ac_objext \
10509 conftest$ac_exeext conftest.$ac_ext
10510 LDFLAGS="$save_LDFLAGS"
10511 fi
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10513 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10514 if test "$lt_cv_irix_exported_symbol" = yes; then
10515 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'
10516 fi
10517 else
10518 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'
10519 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'
10520 fi
10521 archive_cmds_need_lc='no'
10522 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10523 hardcode_libdir_separator=:
10524 inherit_rpath=yes
10525 link_all_deplibs=yes
10526 ;;
10527
10528 netbsd* | netbsdelf*-gnu)
10529 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10530 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10531 else
10532 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10533 fi
10534 hardcode_libdir_flag_spec='-R$libdir'
10535 hardcode_direct=yes
10536 hardcode_shlibpath_var=no
10537 ;;
10538
10539 newsos6)
10540 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10541 hardcode_direct=yes
10542 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10543 hardcode_libdir_separator=:
10544 hardcode_shlibpath_var=no
10545 ;;
10546
10547 *nto* | *qnx*)
10548 ;;
10549
10550 openbsd*)
10551 if test -f /usr/libexec/ld.so; then
10552 hardcode_direct=yes
10553 hardcode_shlibpath_var=no
10554 hardcode_direct_absolute=yes
10555 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10556 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10557 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10558 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10559 export_dynamic_flag_spec='${wl}-E'
10560 else
10561 case $host_os in
10562 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10563 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10564 hardcode_libdir_flag_spec='-R$libdir'
10565 ;;
10566 *)
10567 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10568 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10569 ;;
10570 esac
10571 fi
10572 else
10573 ld_shlibs=no
10574 fi
10575 ;;
10576
10577 os2*)
10578 hardcode_libdir_flag_spec='-L$libdir'
10579 hardcode_minus_L=yes
10580 allow_undefined_flag=unsupported
10581 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10582 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10583 ;;
10584
10585 osf3*)
10586 if test "$GCC" = yes; then
10587 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10588 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'
10589 else
10590 allow_undefined_flag=' -expect_unresolved \*'
10591 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'
10592 fi
10593 archive_cmds_need_lc='no'
10594 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10595 hardcode_libdir_separator=:
10596 ;;
10597
10598 osf4* | osf5*) # as osf3* with the addition of -msym flag
10599 if test "$GCC" = yes; then
10600 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10601 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'
10602 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10603 else
10604 allow_undefined_flag=' -expect_unresolved \*'
10605 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'
10606 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~
10607 $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'
10608
10609 # Both c and cxx compiler support -rpath directly
10610 hardcode_libdir_flag_spec='-rpath $libdir'
10611 fi
10612 archive_cmds_need_lc='no'
10613 hardcode_libdir_separator=:
10614 ;;
10615
10616 solaris*)
10617 no_undefined_flag=' -z defs'
10618 if test "$GCC" = yes; then
10619 wlarc='${wl}'
10620 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10621 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10622 $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'
10623 else
10624 case `$CC -V 2>&1` in
10625 *"Compilers 5.0"*)
10626 wlarc=''
10627 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10628 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10629 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10630 ;;
10631 *)
10632 wlarc='${wl}'
10633 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10634 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10635 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10636 ;;
10637 esac
10638 fi
10639 hardcode_libdir_flag_spec='-R$libdir'
10640 hardcode_shlibpath_var=no
10641 case $host_os in
10642 solaris2.[0-5] | solaris2.[0-5].*) ;;
10643 *)
10644 # The compiler driver will combine and reorder linker options,
10645 # but understands `-z linker_flag'. GCC discards it without `$wl',
10646 # but is careful enough not to reorder.
10647 # Supported since Solaris 2.6 (maybe 2.5.1?)
10648 if test "$GCC" = yes; then
10649 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10650 else
10651 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10652 fi
10653 ;;
10654 esac
10655 link_all_deplibs=yes
10656 ;;
10657
10658 sunos4*)
10659 if test "x$host_vendor" = xsequent; then
10660 # Use $CC to link under sequent, because it throws in some extra .o
10661 # files that make .init and .fini sections work.
10662 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10663 else
10664 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10665 fi
10666 hardcode_libdir_flag_spec='-L$libdir'
10667 hardcode_direct=yes
10668 hardcode_minus_L=yes
10669 hardcode_shlibpath_var=no
10670 ;;
10671
10672 sysv4)
10673 case $host_vendor in
10674 sni)
10675 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10676 hardcode_direct=yes # is this really true???
10677 ;;
10678 siemens)
10679 ## LD is ld it makes a PLAMLIB
10680 ## CC just makes a GrossModule.
10681 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10682 reload_cmds='$CC -r -o $output$reload_objs'
10683 hardcode_direct=no
10684 ;;
10685 motorola)
10686 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10687 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10688 ;;
10689 esac
10690 runpath_var='LD_RUN_PATH'
10691 hardcode_shlibpath_var=no
10692 ;;
10693
10694 sysv4.3*)
10695 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10696 hardcode_shlibpath_var=no
10697 export_dynamic_flag_spec='-Bexport'
10698 ;;
10699
10700 sysv4*MP*)
10701 if test -d /usr/nec; then
10702 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10703 hardcode_shlibpath_var=no
10704 runpath_var=LD_RUN_PATH
10705 hardcode_runpath_var=yes
10706 ld_shlibs=yes
10707 fi
10708 ;;
10709
10710 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10711 no_undefined_flag='${wl}-z,text'
10712 archive_cmds_need_lc=no
10713 hardcode_shlibpath_var=no
10714 runpath_var='LD_RUN_PATH'
10715
10716 if test "$GCC" = yes; then
10717 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10718 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10719 else
10720 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10721 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10722 fi
10723 ;;
10724
10725 sysv5* | sco3.2v5* | sco5v6*)
10726 # Note: We can NOT use -z defs as we might desire, because we do not
10727 # link with -lc, and that would cause any symbols used from libc to
10728 # always be unresolved, which means just about no library would
10729 # ever link correctly. If we're not using GNU ld we use -z text
10730 # though, which does catch some bad symbols but isn't as heavy-handed
10731 # as -z defs.
10732 no_undefined_flag='${wl}-z,text'
10733 allow_undefined_flag='${wl}-z,nodefs'
10734 archive_cmds_need_lc=no
10735 hardcode_shlibpath_var=no
10736 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10737 hardcode_libdir_separator=':'
10738 link_all_deplibs=yes
10739 export_dynamic_flag_spec='${wl}-Bexport'
10740 runpath_var='LD_RUN_PATH'
10741
10742 if test "$GCC" = yes; then
10743 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10744 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10745 else
10746 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10747 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10748 fi
10749 ;;
10750
10751 uts4*)
10752 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10753 hardcode_libdir_flag_spec='-L$libdir'
10754 hardcode_shlibpath_var=no
10755 ;;
10756
10757 *)
10758 ld_shlibs=no
10759 ;;
10760 esac
10761
10762 if test x$host_vendor = xsni; then
10763 case $host in
10764 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10765 export_dynamic_flag_spec='${wl}-Blargedynsym'
10766 ;;
10767 esac
10768 fi
10769 fi
10770
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10772 $as_echo "$ld_shlibs" >&6; }
10773 test "$ld_shlibs" = no && can_build_shared=no
10774
10775 with_gnu_ld=$with_gnu_ld
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791 #
10792 # Do we need to explicitly link libc?
10793 #
10794 case "x$archive_cmds_need_lc" in
10795 x|xyes)
10796 # Assume -lc should be added
10797 archive_cmds_need_lc=yes
10798
10799 if test "$enable_shared" = yes && test "$GCC" = yes; then
10800 case $archive_cmds in
10801 *'~'*)
10802 # FIXME: we may have to deal with multi-command sequences.
10803 ;;
10804 '$CC '*)
10805 # Test whether the compiler implicitly links with -lc since on some
10806 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10807 # to ld, don't add -lc before -lgcc.
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10809 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10810 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10811 $as_echo_n "(cached) " >&6
10812 else
10813 $RM conftest*
10814 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10815
10816 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10817 (eval $ac_compile) 2>&5
10818 ac_status=$?
10819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10820 test $ac_status = 0; } 2>conftest.err; then
10821 soname=conftest
10822 lib=conftest
10823 libobjs=conftest.$ac_objext
10824 deplibs=
10825 wl=$lt_prog_compiler_wl
10826 pic_flag=$lt_prog_compiler_pic
10827 compiler_flags=-v
10828 linker_flags=-v
10829 verstring=
10830 output_objdir=.
10831 libname=conftest
10832 lt_save_allow_undefined_flag=$allow_undefined_flag
10833 allow_undefined_flag=
10834 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10835 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10836 ac_status=$?
10837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10838 test $ac_status = 0; }
10839 then
10840 lt_cv_archive_cmds_need_lc=no
10841 else
10842 lt_cv_archive_cmds_need_lc=yes
10843 fi
10844 allow_undefined_flag=$lt_save_allow_undefined_flag
10845 else
10846 cat conftest.err 1>&5
10847 fi
10848 $RM conftest*
10849
10850 fi
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10852 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10853 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10854 ;;
10855 esac
10856 fi
10857 ;;
10858 esac
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11012 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11013
11014 if test "$GCC" = yes; then
11015 case $host_os in
11016 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11017 *) lt_awk_arg="/^libraries:/" ;;
11018 esac
11019 case $host_os in
11020 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11021 *) lt_sed_strip_eq="s,=/,/,g" ;;
11022 esac
11023 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11024 case $lt_search_path_spec in
11025 *\;*)
11026 # if the path contains ";" then we assume it to be the separator
11027 # otherwise default to the standard path separator (i.e. ":") - it is
11028 # assumed that no part of a normal pathname contains ";" but that should
11029 # okay in the real world where ";" in dirpaths is itself problematic.
11030 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11031 ;;
11032 *)
11033 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11034 ;;
11035 esac
11036 # Ok, now we have the path, separated by spaces, we can step through it
11037 # and add multilib dir if necessary.
11038 lt_tmp_lt_search_path_spec=
11039 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11040 for lt_sys_path in $lt_search_path_spec; do
11041 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11042 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11043 else
11044 test -d "$lt_sys_path" && \
11045 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11046 fi
11047 done
11048 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11049 BEGIN {RS=" "; FS="/|\n";} {
11050 lt_foo="";
11051 lt_count=0;
11052 for (lt_i = NF; lt_i > 0; lt_i--) {
11053 if ($lt_i != "" && $lt_i != ".") {
11054 if ($lt_i == "..") {
11055 lt_count++;
11056 } else {
11057 if (lt_count == 0) {
11058 lt_foo="/" $lt_i lt_foo;
11059 } else {
11060 lt_count--;
11061 }
11062 }
11063 }
11064 }
11065 if (lt_foo != "") { lt_freq[lt_foo]++; }
11066 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11067 }'`
11068 # AWK program above erroneously prepends '/' to C:/dos/paths
11069 # for these hosts.
11070 case $host_os in
11071 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11072 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11073 esac
11074 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11075 else
11076 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11077 fi
11078 library_names_spec=
11079 libname_spec='lib$name'
11080 soname_spec=
11081 shrext_cmds=".so"
11082 postinstall_cmds=
11083 postuninstall_cmds=
11084 finish_cmds=
11085 finish_eval=
11086 shlibpath_var=
11087 shlibpath_overrides_runpath=unknown
11088 version_type=none
11089 dynamic_linker="$host_os ld.so"
11090 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11091 need_lib_prefix=unknown
11092 hardcode_into_libs=no
11093
11094 # when you set need_version to no, make sure it does not cause -set_version
11095 # flags to be left without arguments
11096 need_version=unknown
11097
11098 case $host_os in
11099 aix3*)
11100 version_type=linux # correct to gnu/linux during the next big refactor
11101 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11102 shlibpath_var=LIBPATH
11103
11104 # AIX 3 has no versioning support, so we append a major version to the name.
11105 soname_spec='${libname}${release}${shared_ext}$major'
11106 ;;
11107
11108 aix[4-9]*)
11109 version_type=linux # correct to gnu/linux during the next big refactor
11110 need_lib_prefix=no
11111 need_version=no
11112 hardcode_into_libs=yes
11113 if test "$host_cpu" = ia64; then
11114 # AIX 5 supports IA64
11115 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11116 shlibpath_var=LD_LIBRARY_PATH
11117 else
11118 # With GCC up to 2.95.x, collect2 would create an import file
11119 # for dependence libraries. The import file would start with
11120 # the line `#! .'. This would cause the generated library to
11121 # depend on `.', always an invalid library. This was fixed in
11122 # development snapshots of GCC prior to 3.0.
11123 case $host_os in
11124 aix4 | aix4.[01] | aix4.[01].*)
11125 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11126 echo ' yes '
11127 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11128 :
11129 else
11130 can_build_shared=no
11131 fi
11132 ;;
11133 esac
11134 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11135 # soname into executable. Probably we can add versioning support to
11136 # collect2, so additional links can be useful in future.
11137 if test "$aix_use_runtimelinking" = yes; then
11138 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11139 # instead of lib<name>.a to let people know that these are not
11140 # typical AIX shared libraries.
11141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11142 else
11143 # We preserve .a as extension for shared libraries through AIX4.2
11144 # and later when we are not doing run time linking.
11145 library_names_spec='${libname}${release}.a $libname.a'
11146 soname_spec='${libname}${release}${shared_ext}$major'
11147 fi
11148 shlibpath_var=LIBPATH
11149 fi
11150 ;;
11151
11152 amigaos*)
11153 case $host_cpu in
11154 powerpc)
11155 # Since July 2007 AmigaOS4 officially supports .so libraries.
11156 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11158 ;;
11159 m68k)
11160 library_names_spec='$libname.ixlibrary $libname.a'
11161 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11162 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11163 ;;
11164 esac
11165 ;;
11166
11167 beos*)
11168 library_names_spec='${libname}${shared_ext}'
11169 dynamic_linker="$host_os ld.so"
11170 shlibpath_var=LIBRARY_PATH
11171 ;;
11172
11173 bsdi[45]*)
11174 version_type=linux # correct to gnu/linux during the next big refactor
11175 need_version=no
11176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11177 soname_spec='${libname}${release}${shared_ext}$major'
11178 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11179 shlibpath_var=LD_LIBRARY_PATH
11180 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11181 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11182 # the default ld.so.conf also contains /usr/contrib/lib and
11183 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11184 # libtool to hard-code these into programs
11185 ;;
11186
11187 cygwin* | mingw* | pw32* | cegcc*)
11188 version_type=windows
11189 shrext_cmds=".dll"
11190 need_version=no
11191 need_lib_prefix=no
11192
11193 case $GCC,$cc_basename in
11194 yes,*)
11195 # gcc
11196 library_names_spec='$libname.dll.a'
11197 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11198 postinstall_cmds='base_file=`basename \${file}`~
11199 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11200 dldir=$destdir/`dirname \$dlpath`~
11201 test -d \$dldir || mkdir -p \$dldir~
11202 $install_prog $dir/$dlname \$dldir/$dlname~
11203 chmod a+x \$dldir/$dlname~
11204 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11205 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11206 fi'
11207 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11208 dlpath=$dir/\$dldll~
11209 $RM \$dlpath'
11210 shlibpath_overrides_runpath=yes
11211
11212 case $host_os in
11213 cygwin*)
11214 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11215 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11216
11217 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11218 ;;
11219 mingw* | cegcc*)
11220 # MinGW DLLs use traditional 'lib' prefix
11221 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11222 ;;
11223 pw32*)
11224 # pw32 DLLs use 'pw' prefix rather than 'lib'
11225 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11226 ;;
11227 esac
11228 dynamic_linker='Win32 ld.exe'
11229 ;;
11230
11231 *,cl*)
11232 # Native MSVC
11233 libname_spec='$name'
11234 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11235 library_names_spec='${libname}.dll.lib'
11236
11237 case $build_os in
11238 mingw*)
11239 sys_lib_search_path_spec=
11240 lt_save_ifs=$IFS
11241 IFS=';'
11242 for lt_path in $LIB
11243 do
11244 IFS=$lt_save_ifs
11245 # Let DOS variable expansion print the short 8.3 style file name.
11246 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11247 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11248 done
11249 IFS=$lt_save_ifs
11250 # Convert to MSYS style.
11251 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11252 ;;
11253 cygwin*)
11254 # Convert to unix form, then to dos form, then back to unix form
11255 # but this time dos style (no spaces!) so that the unix form looks
11256 # like /cygdrive/c/PROGRA~1:/cygdr...
11257 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11258 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11259 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11260 ;;
11261 *)
11262 sys_lib_search_path_spec="$LIB"
11263 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11264 # It is most probably a Windows format PATH.
11265 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11266 else
11267 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11268 fi
11269 # FIXME: find the short name or the path components, as spaces are
11270 # common. (e.g. "Program Files" -> "PROGRA~1")
11271 ;;
11272 esac
11273
11274 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11275 postinstall_cmds='base_file=`basename \${file}`~
11276 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11277 dldir=$destdir/`dirname \$dlpath`~
11278 test -d \$dldir || mkdir -p \$dldir~
11279 $install_prog $dir/$dlname \$dldir/$dlname'
11280 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11281 dlpath=$dir/\$dldll~
11282 $RM \$dlpath'
11283 shlibpath_overrides_runpath=yes
11284 dynamic_linker='Win32 link.exe'
11285 ;;
11286
11287 *)
11288 # Assume MSVC wrapper
11289 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11290 dynamic_linker='Win32 ld.exe'
11291 ;;
11292 esac
11293 # FIXME: first we should search . and the directory the executable is in
11294 shlibpath_var=PATH
11295 ;;
11296
11297 darwin* | rhapsody*)
11298 dynamic_linker="$host_os dyld"
11299 version_type=darwin
11300 need_lib_prefix=no
11301 need_version=no
11302 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11303 soname_spec='${libname}${release}${major}$shared_ext'
11304 shlibpath_overrides_runpath=yes
11305 shlibpath_var=DYLD_LIBRARY_PATH
11306 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11307
11308 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11309 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11310 ;;
11311
11312 dgux*)
11313 version_type=linux # correct to gnu/linux during the next big refactor
11314 need_lib_prefix=no
11315 need_version=no
11316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11317 soname_spec='${libname}${release}${shared_ext}$major'
11318 shlibpath_var=LD_LIBRARY_PATH
11319 ;;
11320
11321 freebsd* | dragonfly*)
11322 # DragonFly does not have aout. When/if they implement a new
11323 # versioning mechanism, adjust this.
11324 if test -x /usr/bin/objformat; then
11325 objformat=`/usr/bin/objformat`
11326 else
11327 case $host_os in
11328 freebsd[23].*) objformat=aout ;;
11329 *) objformat=elf ;;
11330 esac
11331 fi
11332 version_type=freebsd-$objformat
11333 case $version_type in
11334 freebsd-elf*)
11335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11336 need_version=no
11337 need_lib_prefix=no
11338 ;;
11339 freebsd-*)
11340 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11341 need_version=yes
11342 ;;
11343 esac
11344 shlibpath_var=LD_LIBRARY_PATH
11345 case $host_os in
11346 freebsd2.*)
11347 shlibpath_overrides_runpath=yes
11348 ;;
11349 freebsd3.[01]* | freebsdelf3.[01]*)
11350 shlibpath_overrides_runpath=yes
11351 hardcode_into_libs=yes
11352 ;;
11353 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11354 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11355 shlibpath_overrides_runpath=no
11356 hardcode_into_libs=yes
11357 ;;
11358 *) # from 4.6 on, and DragonFly
11359 shlibpath_overrides_runpath=yes
11360 hardcode_into_libs=yes
11361 ;;
11362 esac
11363 ;;
11364
11365 haiku*)
11366 version_type=linux # correct to gnu/linux during the next big refactor
11367 need_lib_prefix=no
11368 need_version=no
11369 dynamic_linker="$host_os runtime_loader"
11370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11371 soname_spec='${libname}${release}${shared_ext}$major'
11372 shlibpath_var=LIBRARY_PATH
11373 shlibpath_overrides_runpath=yes
11374 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11375 hardcode_into_libs=yes
11376 ;;
11377
11378 hpux9* | hpux10* | hpux11*)
11379 # Give a soname corresponding to the major version so that dld.sl refuses to
11380 # link against other versions.
11381 version_type=sunos
11382 need_lib_prefix=no
11383 need_version=no
11384 case $host_cpu in
11385 ia64*)
11386 shrext_cmds='.so'
11387 hardcode_into_libs=yes
11388 dynamic_linker="$host_os dld.so"
11389 shlibpath_var=LD_LIBRARY_PATH
11390 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11392 soname_spec='${libname}${release}${shared_ext}$major'
11393 if test "X$HPUX_IA64_MODE" = X32; then
11394 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11395 else
11396 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11397 fi
11398 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11399 ;;
11400 hppa*64*)
11401 shrext_cmds='.sl'
11402 hardcode_into_libs=yes
11403 dynamic_linker="$host_os dld.sl"
11404 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11405 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11407 soname_spec='${libname}${release}${shared_ext}$major'
11408 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11409 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11410 ;;
11411 *)
11412 shrext_cmds='.sl'
11413 dynamic_linker="$host_os dld.sl"
11414 shlibpath_var=SHLIB_PATH
11415 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11417 soname_spec='${libname}${release}${shared_ext}$major'
11418 ;;
11419 esac
11420 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11421 postinstall_cmds='chmod 555 $lib'
11422 # or fails outright, so override atomically:
11423 install_override_mode=555
11424 ;;
11425
11426 interix[3-9]*)
11427 version_type=linux # correct to gnu/linux during the next big refactor
11428 need_lib_prefix=no
11429 need_version=no
11430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11431 soname_spec='${libname}${release}${shared_ext}$major'
11432 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11433 shlibpath_var=LD_LIBRARY_PATH
11434 shlibpath_overrides_runpath=no
11435 hardcode_into_libs=yes
11436 ;;
11437
11438 irix5* | irix6* | nonstopux*)
11439 case $host_os in
11440 nonstopux*) version_type=nonstopux ;;
11441 *)
11442 if test "$lt_cv_prog_gnu_ld" = yes; then
11443 version_type=linux # correct to gnu/linux during the next big refactor
11444 else
11445 version_type=irix
11446 fi ;;
11447 esac
11448 need_lib_prefix=no
11449 need_version=no
11450 soname_spec='${libname}${release}${shared_ext}$major'
11451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11452 case $host_os in
11453 irix5* | nonstopux*)
11454 libsuff= shlibsuff=
11455 ;;
11456 *)
11457 case $LD in # libtool.m4 will add one of these switches to LD
11458 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11459 libsuff= shlibsuff= libmagic=32-bit;;
11460 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11461 libsuff=32 shlibsuff=N32 libmagic=N32;;
11462 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11463 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11464 *) libsuff= shlibsuff= libmagic=never-match;;
11465 esac
11466 ;;
11467 esac
11468 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11469 shlibpath_overrides_runpath=no
11470 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11471 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11472 hardcode_into_libs=yes
11473 ;;
11474
11475 # No shared lib support for Linux oldld, aout, or coff.
11476 linux*oldld* | linux*aout* | linux*coff*)
11477 dynamic_linker=no
11478 ;;
11479
11480 # This must be glibc/ELF.
11481 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11482 version_type=linux # correct to gnu/linux during the next big refactor
11483 need_lib_prefix=no
11484 need_version=no
11485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11486 soname_spec='${libname}${release}${shared_ext}$major'
11487 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11488 shlibpath_var=LD_LIBRARY_PATH
11489 shlibpath_overrides_runpath=no
11490
11491 # Some binutils ld are patched to set DT_RUNPATH
11492 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11493 $as_echo_n "(cached) " >&6
11494 else
11495 lt_cv_shlibpath_overrides_runpath=no
11496 save_LDFLAGS=$LDFLAGS
11497 save_libdir=$libdir
11498 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11499 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11501 /* end confdefs.h. */
11502
11503 int
11504 main ()
11505 {
11506
11507 ;
11508 return 0;
11509 }
11510 _ACEOF
11511 if ac_fn_c_try_link "$LINENO"; then :
11512 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11513 lt_cv_shlibpath_overrides_runpath=yes
11514 fi
11515 fi
11516 rm -f core conftest.err conftest.$ac_objext \
11517 conftest$ac_exeext conftest.$ac_ext
11518 LDFLAGS=$save_LDFLAGS
11519 libdir=$save_libdir
11520
11521 fi
11522
11523 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11524
11525 # This implies no fast_install, which is unacceptable.
11526 # Some rework will be needed to allow for fast_install
11527 # before this can be enabled.
11528 hardcode_into_libs=yes
11529
11530 # Append ld.so.conf contents to the search path
11531 if test -f /etc/ld.so.conf; then
11532 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' ' '`
11533 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11534 fi
11535
11536 # We used to test for /lib/ld.so.1 and disable shared libraries on
11537 # powerpc, because MkLinux only supported shared libraries with the
11538 # GNU dynamic linker. Since this was broken with cross compilers,
11539 # most powerpc-linux boxes support dynamic linking these days and
11540 # people can always --disable-shared, the test was removed, and we
11541 # assume the GNU/Linux dynamic linker is in use.
11542 dynamic_linker='GNU/Linux ld.so'
11543 ;;
11544
11545 netbsdelf*-gnu)
11546 version_type=linux
11547 need_lib_prefix=no
11548 need_version=no
11549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11550 soname_spec='${libname}${release}${shared_ext}$major'
11551 shlibpath_var=LD_LIBRARY_PATH
11552 shlibpath_overrides_runpath=no
11553 hardcode_into_libs=yes
11554 dynamic_linker='NetBSD ld.elf_so'
11555 ;;
11556
11557 netbsd*)
11558 version_type=sunos
11559 need_lib_prefix=no
11560 need_version=no
11561 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11563 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11564 dynamic_linker='NetBSD (a.out) ld.so'
11565 else
11566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11567 soname_spec='${libname}${release}${shared_ext}$major'
11568 dynamic_linker='NetBSD ld.elf_so'
11569 fi
11570 shlibpath_var=LD_LIBRARY_PATH
11571 shlibpath_overrides_runpath=yes
11572 hardcode_into_libs=yes
11573 ;;
11574
11575 newsos6)
11576 version_type=linux # correct to gnu/linux during the next big refactor
11577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11578 shlibpath_var=LD_LIBRARY_PATH
11579 shlibpath_overrides_runpath=yes
11580 ;;
11581
11582 *nto* | *qnx*)
11583 version_type=qnx
11584 need_lib_prefix=no
11585 need_version=no
11586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11587 soname_spec='${libname}${release}${shared_ext}$major'
11588 shlibpath_var=LD_LIBRARY_PATH
11589 shlibpath_overrides_runpath=no
11590 hardcode_into_libs=yes
11591 dynamic_linker='ldqnx.so'
11592 ;;
11593
11594 openbsd*)
11595 version_type=sunos
11596 sys_lib_dlsearch_path_spec="/usr/lib"
11597 need_lib_prefix=no
11598 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11599 case $host_os in
11600 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11601 *) need_version=no ;;
11602 esac
11603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11604 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11605 shlibpath_var=LD_LIBRARY_PATH
11606 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11607 case $host_os in
11608 openbsd2.[89] | openbsd2.[89].*)
11609 shlibpath_overrides_runpath=no
11610 ;;
11611 *)
11612 shlibpath_overrides_runpath=yes
11613 ;;
11614 esac
11615 else
11616 shlibpath_overrides_runpath=yes
11617 fi
11618 ;;
11619
11620 os2*)
11621 libname_spec='$name'
11622 shrext_cmds=".dll"
11623 need_lib_prefix=no
11624 library_names_spec='$libname${shared_ext} $libname.a'
11625 dynamic_linker='OS/2 ld.exe'
11626 shlibpath_var=LIBPATH
11627 ;;
11628
11629 osf3* | osf4* | osf5*)
11630 version_type=osf
11631 need_lib_prefix=no
11632 need_version=no
11633 soname_spec='${libname}${release}${shared_ext}$major'
11634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11635 shlibpath_var=LD_LIBRARY_PATH
11636 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11637 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11638 ;;
11639
11640 rdos*)
11641 dynamic_linker=no
11642 ;;
11643
11644 solaris*)
11645 version_type=linux # correct to gnu/linux during the next big refactor
11646 need_lib_prefix=no
11647 need_version=no
11648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11649 soname_spec='${libname}${release}${shared_ext}$major'
11650 shlibpath_var=LD_LIBRARY_PATH
11651 shlibpath_overrides_runpath=yes
11652 hardcode_into_libs=yes
11653 # ldd complains unless libraries are executable
11654 postinstall_cmds='chmod +x $lib'
11655 ;;
11656
11657 sunos4*)
11658 version_type=sunos
11659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11660 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11661 shlibpath_var=LD_LIBRARY_PATH
11662 shlibpath_overrides_runpath=yes
11663 if test "$with_gnu_ld" = yes; then
11664 need_lib_prefix=no
11665 fi
11666 need_version=yes
11667 ;;
11668
11669 sysv4 | sysv4.3*)
11670 version_type=linux # correct to gnu/linux during the next big refactor
11671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11672 soname_spec='${libname}${release}${shared_ext}$major'
11673 shlibpath_var=LD_LIBRARY_PATH
11674 case $host_vendor in
11675 sni)
11676 shlibpath_overrides_runpath=no
11677 need_lib_prefix=no
11678 runpath_var=LD_RUN_PATH
11679 ;;
11680 siemens)
11681 need_lib_prefix=no
11682 ;;
11683 motorola)
11684 need_lib_prefix=no
11685 need_version=no
11686 shlibpath_overrides_runpath=no
11687 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11688 ;;
11689 esac
11690 ;;
11691
11692 sysv4*MP*)
11693 if test -d /usr/nec ;then
11694 version_type=linux # correct to gnu/linux during the next big refactor
11695 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11696 soname_spec='$libname${shared_ext}.$major'
11697 shlibpath_var=LD_LIBRARY_PATH
11698 fi
11699 ;;
11700
11701 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11702 version_type=freebsd-elf
11703 need_lib_prefix=no
11704 need_version=no
11705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11706 soname_spec='${libname}${release}${shared_ext}$major'
11707 shlibpath_var=LD_LIBRARY_PATH
11708 shlibpath_overrides_runpath=yes
11709 hardcode_into_libs=yes
11710 if test "$with_gnu_ld" = yes; then
11711 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11712 else
11713 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11714 case $host_os in
11715 sco3.2v5*)
11716 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11717 ;;
11718 esac
11719 fi
11720 sys_lib_dlsearch_path_spec='/usr/lib'
11721 ;;
11722
11723 tpf*)
11724 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11725 version_type=linux # correct to gnu/linux during the next big refactor
11726 need_lib_prefix=no
11727 need_version=no
11728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11729 shlibpath_var=LD_LIBRARY_PATH
11730 shlibpath_overrides_runpath=no
11731 hardcode_into_libs=yes
11732 ;;
11733
11734 uts4*)
11735 version_type=linux # correct to gnu/linux during the next big refactor
11736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11737 soname_spec='${libname}${release}${shared_ext}$major'
11738 shlibpath_var=LD_LIBRARY_PATH
11739 ;;
11740
11741 *)
11742 dynamic_linker=no
11743 ;;
11744 esac
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11746 $as_echo "$dynamic_linker" >&6; }
11747 test "$dynamic_linker" = no && can_build_shared=no
11748
11749 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11750 if test "$GCC" = yes; then
11751 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11752 fi
11753
11754 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11755 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11756 fi
11757 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11758 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11759 fi
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11853 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11854 hardcode_action=
11855 if test -n "$hardcode_libdir_flag_spec" ||
11856 test -n "$runpath_var" ||
11857 test "X$hardcode_automatic" = "Xyes" ; then
11858
11859 # We can hardcode non-existent directories.
11860 if test "$hardcode_direct" != no &&
11861 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11862 # have to relink, otherwise we might link with an installed library
11863 # when we should be linking with a yet-to-be-installed one
11864 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11865 test "$hardcode_minus_L" != no; then
11866 # Linking always hardcodes the temporary library directory.
11867 hardcode_action=relink
11868 else
11869 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11870 hardcode_action=immediate
11871 fi
11872 else
11873 # We cannot hardcode anything, or else we can only hardcode existing
11874 # directories.
11875 hardcode_action=unsupported
11876 fi
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11878 $as_echo "$hardcode_action" >&6; }
11879
11880 if test "$hardcode_action" = relink ||
11881 test "$inherit_rpath" = yes; then
11882 # Fast installation is not supported
11883 enable_fast_install=no
11884 elif test "$shlibpath_overrides_runpath" = yes ||
11885 test "$enable_shared" = no; then
11886 # Fast installation is not necessary
11887 enable_fast_install=needless
11888 fi
11889
11890
11891
11892
11893
11894
11895 if test "x$enable_dlopen" != xyes; then
11896 enable_dlopen=unknown
11897 enable_dlopen_self=unknown
11898 enable_dlopen_self_static=unknown
11899 else
11900 lt_cv_dlopen=no
11901 lt_cv_dlopen_libs=
11902
11903 case $host_os in
11904 beos*)
11905 lt_cv_dlopen="load_add_on"
11906 lt_cv_dlopen_libs=
11907 lt_cv_dlopen_self=yes
11908 ;;
11909
11910 mingw* | pw32* | cegcc*)
11911 lt_cv_dlopen="LoadLibrary"
11912 lt_cv_dlopen_libs=
11913 ;;
11914
11915 cygwin*)
11916 lt_cv_dlopen="dlopen"
11917 lt_cv_dlopen_libs=
11918 ;;
11919
11920 darwin*)
11921 # if libdl is installed we need to link against it
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11923 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11924 if ${ac_cv_lib_dl_dlopen+:} false; then :
11925 $as_echo_n "(cached) " >&6
11926 else
11927 ac_check_lib_save_LIBS=$LIBS
11928 LIBS="-ldl $LIBS"
11929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11930 /* end confdefs.h. */
11931
11932 /* Override any GCC internal prototype to avoid an error.
11933 Use char because int might match the return type of a GCC
11934 builtin and then its argument prototype would still apply. */
11935 #ifdef __cplusplus
11936 extern "C"
11937 #endif
11938 char dlopen ();
11939 int
11940 main ()
11941 {
11942 return dlopen ();
11943 ;
11944 return 0;
11945 }
11946 _ACEOF
11947 if ac_fn_c_try_link "$LINENO"; then :
11948 ac_cv_lib_dl_dlopen=yes
11949 else
11950 ac_cv_lib_dl_dlopen=no
11951 fi
11952 rm -f core conftest.err conftest.$ac_objext \
11953 conftest$ac_exeext conftest.$ac_ext
11954 LIBS=$ac_check_lib_save_LIBS
11955 fi
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11957 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11958 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11959 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11960 else
11961
11962 lt_cv_dlopen="dyld"
11963 lt_cv_dlopen_libs=
11964 lt_cv_dlopen_self=yes
11965
11966 fi
11967
11968 ;;
11969
11970 *)
11971 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11972 if test "x$ac_cv_func_shl_load" = xyes; then :
11973 lt_cv_dlopen="shl_load"
11974 else
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11976 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11977 if ${ac_cv_lib_dld_shl_load+:} false; then :
11978 $as_echo_n "(cached) " >&6
11979 else
11980 ac_check_lib_save_LIBS=$LIBS
11981 LIBS="-ldld $LIBS"
11982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11983 /* end confdefs.h. */
11984
11985 /* Override any GCC internal prototype to avoid an error.
11986 Use char because int might match the return type of a GCC
11987 builtin and then its argument prototype would still apply. */
11988 #ifdef __cplusplus
11989 extern "C"
11990 #endif
11991 char shl_load ();
11992 int
11993 main ()
11994 {
11995 return shl_load ();
11996 ;
11997 return 0;
11998 }
11999 _ACEOF
12000 if ac_fn_c_try_link "$LINENO"; then :
12001 ac_cv_lib_dld_shl_load=yes
12002 else
12003 ac_cv_lib_dld_shl_load=no
12004 fi
12005 rm -f core conftest.err conftest.$ac_objext \
12006 conftest$ac_exeext conftest.$ac_ext
12007 LIBS=$ac_check_lib_save_LIBS
12008 fi
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12010 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12011 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12012 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12013 else
12014 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12015 if test "x$ac_cv_func_dlopen" = xyes; then :
12016 lt_cv_dlopen="dlopen"
12017 else
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12019 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12020 if ${ac_cv_lib_dl_dlopen+:} false; then :
12021 $as_echo_n "(cached) " >&6
12022 else
12023 ac_check_lib_save_LIBS=$LIBS
12024 LIBS="-ldl $LIBS"
12025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12026 /* end confdefs.h. */
12027
12028 /* Override any GCC internal prototype to avoid an error.
12029 Use char because int might match the return type of a GCC
12030 builtin and then its argument prototype would still apply. */
12031 #ifdef __cplusplus
12032 extern "C"
12033 #endif
12034 char dlopen ();
12035 int
12036 main ()
12037 {
12038 return dlopen ();
12039 ;
12040 return 0;
12041 }
12042 _ACEOF
12043 if ac_fn_c_try_link "$LINENO"; then :
12044 ac_cv_lib_dl_dlopen=yes
12045 else
12046 ac_cv_lib_dl_dlopen=no
12047 fi
12048 rm -f core conftest.err conftest.$ac_objext \
12049 conftest$ac_exeext conftest.$ac_ext
12050 LIBS=$ac_check_lib_save_LIBS
12051 fi
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12053 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12054 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12055 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12056 else
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12058 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12059 if ${ac_cv_lib_svld_dlopen+:} false; then :
12060 $as_echo_n "(cached) " >&6
12061 else
12062 ac_check_lib_save_LIBS=$LIBS
12063 LIBS="-lsvld $LIBS"
12064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12065 /* end confdefs.h. */
12066
12067 /* Override any GCC internal prototype to avoid an error.
12068 Use char because int might match the return type of a GCC
12069 builtin and then its argument prototype would still apply. */
12070 #ifdef __cplusplus
12071 extern "C"
12072 #endif
12073 char dlopen ();
12074 int
12075 main ()
12076 {
12077 return dlopen ();
12078 ;
12079 return 0;
12080 }
12081 _ACEOF
12082 if ac_fn_c_try_link "$LINENO"; then :
12083 ac_cv_lib_svld_dlopen=yes
12084 else
12085 ac_cv_lib_svld_dlopen=no
12086 fi
12087 rm -f core conftest.err conftest.$ac_objext \
12088 conftest$ac_exeext conftest.$ac_ext
12089 LIBS=$ac_check_lib_save_LIBS
12090 fi
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12092 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12093 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12094 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12095 else
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12097 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12098 if ${ac_cv_lib_dld_dld_link+:} false; then :
12099 $as_echo_n "(cached) " >&6
12100 else
12101 ac_check_lib_save_LIBS=$LIBS
12102 LIBS="-ldld $LIBS"
12103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12104 /* end confdefs.h. */
12105
12106 /* Override any GCC internal prototype to avoid an error.
12107 Use char because int might match the return type of a GCC
12108 builtin and then its argument prototype would still apply. */
12109 #ifdef __cplusplus
12110 extern "C"
12111 #endif
12112 char dld_link ();
12113 int
12114 main ()
12115 {
12116 return dld_link ();
12117 ;
12118 return 0;
12119 }
12120 _ACEOF
12121 if ac_fn_c_try_link "$LINENO"; then :
12122 ac_cv_lib_dld_dld_link=yes
12123 else
12124 ac_cv_lib_dld_dld_link=no
12125 fi
12126 rm -f core conftest.err conftest.$ac_objext \
12127 conftest$ac_exeext conftest.$ac_ext
12128 LIBS=$ac_check_lib_save_LIBS
12129 fi
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12131 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12132 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12133 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12134 fi
12135
12136
12137 fi
12138
12139
12140 fi
12141
12142
12143 fi
12144
12145
12146 fi
12147
12148
12149 fi
12150
12151 ;;
12152 esac
12153
12154 if test "x$lt_cv_dlopen" != xno; then
12155 enable_dlopen=yes
12156 else
12157 enable_dlopen=no
12158 fi
12159
12160 case $lt_cv_dlopen in
12161 dlopen)
12162 save_CPPFLAGS="$CPPFLAGS"
12163 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12164
12165 save_LDFLAGS="$LDFLAGS"
12166 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12167
12168 save_LIBS="$LIBS"
12169 LIBS="$lt_cv_dlopen_libs $LIBS"
12170
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12172 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12173 if ${lt_cv_dlopen_self+:} false; then :
12174 $as_echo_n "(cached) " >&6
12175 else
12176 if test "$cross_compiling" = yes; then :
12177 lt_cv_dlopen_self=cross
12178 else
12179 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12180 lt_status=$lt_dlunknown
12181 cat > conftest.$ac_ext <<_LT_EOF
12182 #line $LINENO "configure"
12183 #include "confdefs.h"
12184
12185 #if HAVE_DLFCN_H
12186 #include <dlfcn.h>
12187 #endif
12188
12189 #include <stdio.h>
12190
12191 #ifdef RTLD_GLOBAL
12192 # define LT_DLGLOBAL RTLD_GLOBAL
12193 #else
12194 # ifdef DL_GLOBAL
12195 # define LT_DLGLOBAL DL_GLOBAL
12196 # else
12197 # define LT_DLGLOBAL 0
12198 # endif
12199 #endif
12200
12201 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12202 find out it does not work in some platform. */
12203 #ifndef LT_DLLAZY_OR_NOW
12204 # ifdef RTLD_LAZY
12205 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12206 # else
12207 # ifdef DL_LAZY
12208 # define LT_DLLAZY_OR_NOW DL_LAZY
12209 # else
12210 # ifdef RTLD_NOW
12211 # define LT_DLLAZY_OR_NOW RTLD_NOW
12212 # else
12213 # ifdef DL_NOW
12214 # define LT_DLLAZY_OR_NOW DL_NOW
12215 # else
12216 # define LT_DLLAZY_OR_NOW 0
12217 # endif
12218 # endif
12219 # endif
12220 # endif
12221 #endif
12222
12223 /* When -fvisbility=hidden is used, assume the code has been annotated
12224 correspondingly for the symbols needed. */
12225 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12226 int fnord () __attribute__((visibility("default")));
12227 #endif
12228
12229 int fnord () { return 42; }
12230 int main ()
12231 {
12232 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12233 int status = $lt_dlunknown;
12234
12235 if (self)
12236 {
12237 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12238 else
12239 {
12240 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12241 else puts (dlerror ());
12242 }
12243 /* dlclose (self); */
12244 }
12245 else
12246 puts (dlerror ());
12247
12248 return status;
12249 }
12250 _LT_EOF
12251 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12252 (eval $ac_link) 2>&5
12253 ac_status=$?
12254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12255 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12256 (./conftest; exit; ) >&5 2>/dev/null
12257 lt_status=$?
12258 case x$lt_status in
12259 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12260 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12261 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12262 esac
12263 else :
12264 # compilation failed
12265 lt_cv_dlopen_self=no
12266 fi
12267 fi
12268 rm -fr conftest*
12269
12270
12271 fi
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12273 $as_echo "$lt_cv_dlopen_self" >&6; }
12274
12275 if test "x$lt_cv_dlopen_self" = xyes; then
12276 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12278 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12279 if ${lt_cv_dlopen_self_static+:} false; then :
12280 $as_echo_n "(cached) " >&6
12281 else
12282 if test "$cross_compiling" = yes; then :
12283 lt_cv_dlopen_self_static=cross
12284 else
12285 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12286 lt_status=$lt_dlunknown
12287 cat > conftest.$ac_ext <<_LT_EOF
12288 #line $LINENO "configure"
12289 #include "confdefs.h"
12290
12291 #if HAVE_DLFCN_H
12292 #include <dlfcn.h>
12293 #endif
12294
12295 #include <stdio.h>
12296
12297 #ifdef RTLD_GLOBAL
12298 # define LT_DLGLOBAL RTLD_GLOBAL
12299 #else
12300 # ifdef DL_GLOBAL
12301 # define LT_DLGLOBAL DL_GLOBAL
12302 # else
12303 # define LT_DLGLOBAL 0
12304 # endif
12305 #endif
12306
12307 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12308 find out it does not work in some platform. */
12309 #ifndef LT_DLLAZY_OR_NOW
12310 # ifdef RTLD_LAZY
12311 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12312 # else
12313 # ifdef DL_LAZY
12314 # define LT_DLLAZY_OR_NOW DL_LAZY
12315 # else
12316 # ifdef RTLD_NOW
12317 # define LT_DLLAZY_OR_NOW RTLD_NOW
12318 # else
12319 # ifdef DL_NOW
12320 # define LT_DLLAZY_OR_NOW DL_NOW
12321 # else
12322 # define LT_DLLAZY_OR_NOW 0
12323 # endif
12324 # endif
12325 # endif
12326 # endif
12327 #endif
12328
12329 /* When -fvisbility=hidden is used, assume the code has been annotated
12330 correspondingly for the symbols needed. */
12331 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12332 int fnord () __attribute__((visibility("default")));
12333 #endif
12334
12335 int fnord () { return 42; }
12336 int main ()
12337 {
12338 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12339 int status = $lt_dlunknown;
12340
12341 if (self)
12342 {
12343 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12344 else
12345 {
12346 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12347 else puts (dlerror ());
12348 }
12349 /* dlclose (self); */
12350 }
12351 else
12352 puts (dlerror ());
12353
12354 return status;
12355 }
12356 _LT_EOF
12357 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12358 (eval $ac_link) 2>&5
12359 ac_status=$?
12360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12361 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12362 (./conftest; exit; ) >&5 2>/dev/null
12363 lt_status=$?
12364 case x$lt_status in
12365 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12366 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12367 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12368 esac
12369 else :
12370 # compilation failed
12371 lt_cv_dlopen_self_static=no
12372 fi
12373 fi
12374 rm -fr conftest*
12375
12376
12377 fi
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12379 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12380 fi
12381
12382 CPPFLAGS="$save_CPPFLAGS"
12383 LDFLAGS="$save_LDFLAGS"
12384 LIBS="$save_LIBS"
12385 ;;
12386 esac
12387
12388 case $lt_cv_dlopen_self in
12389 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12390 *) enable_dlopen_self=unknown ;;
12391 esac
12392
12393 case $lt_cv_dlopen_self_static in
12394 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12395 *) enable_dlopen_self_static=unknown ;;
12396 esac
12397 fi
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415 striplib=
12416 old_striplib=
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12418 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12419 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12420 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12421 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12423 $as_echo "yes" >&6; }
12424 else
12425 # FIXME - insert some real tests, host_os isn't really good enough
12426 case $host_os in
12427 darwin*)
12428 if test -n "$STRIP" ; then
12429 striplib="$STRIP -x"
12430 old_striplib="$STRIP -S"
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12432 $as_echo "yes" >&6; }
12433 else
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12435 $as_echo "no" >&6; }
12436 fi
12437 ;;
12438 *)
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12440 $as_echo "no" >&6; }
12441 ;;
12442 esac
12443 fi
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456 # Report which library types will actually be built
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12458 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12460 $as_echo "$can_build_shared" >&6; }
12461
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12463 $as_echo_n "checking whether to build shared libraries... " >&6; }
12464 test "$can_build_shared" = "no" && enable_shared=no
12465
12466 # On AIX, shared libraries and static libraries use the same namespace, and
12467 # are all built from PIC.
12468 case $host_os in
12469 aix3*)
12470 test "$enable_shared" = yes && enable_static=no
12471 if test -n "$RANLIB"; then
12472 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12473 postinstall_cmds='$RANLIB $lib'
12474 fi
12475 ;;
12476
12477 aix[4-9]*)
12478 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12479 test "$enable_shared" = yes && enable_static=no
12480 fi
12481 ;;
12482 esac
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12484 $as_echo "$enable_shared" >&6; }
12485
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12487 $as_echo_n "checking whether to build static libraries... " >&6; }
12488 # Make sure either enable_shared or enable_static is yes.
12489 test "$enable_shared" = yes || enable_static=yes
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12491 $as_echo "$enable_static" >&6; }
12492
12493
12494
12495
12496 fi
12497 ac_ext=cpp
12498 ac_cpp='$CXXCPP $CPPFLAGS'
12499 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12500 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12501 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12502
12503 CC="$lt_save_CC"
12504
12505 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12506 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12507 (test "X$CXX" != "Xg++"))) ; then
12508 ac_ext=cpp
12509 ac_cpp='$CXXCPP $CPPFLAGS'
12510 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12511 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12512 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12514 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12515 if test -z "$CXXCPP"; then
12516 if ${ac_cv_prog_CXXCPP+:} false; then :
12517 $as_echo_n "(cached) " >&6
12518 else
12519 # Double quotes because CXXCPP needs to be expanded
12520 for CXXCPP in "$CXX -E" "/lib/cpp"
12521 do
12522 ac_preproc_ok=false
12523 for ac_cxx_preproc_warn_flag in '' yes
12524 do
12525 # Use a header file that comes with gcc, so configuring glibc
12526 # with a fresh cross-compiler works.
12527 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12528 # <limits.h> exists even on freestanding compilers.
12529 # On the NeXT, cc -E runs the code through the compiler's parser,
12530 # not just through cpp. "Syntax error" is here to catch this case.
12531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12532 /* end confdefs.h. */
12533 #ifdef __STDC__
12534 # include <limits.h>
12535 #else
12536 # include <assert.h>
12537 #endif
12538 Syntax error
12539 _ACEOF
12540 if ac_fn_cxx_try_cpp "$LINENO"; then :
12541
12542 else
12543 # Broken: fails on valid input.
12544 continue
12545 fi
12546 rm -f conftest.err conftest.i conftest.$ac_ext
12547
12548 # OK, works on sane cases. Now check whether nonexistent headers
12549 # can be detected and how.
12550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12551 /* end confdefs.h. */
12552 #include <ac_nonexistent.h>
12553 _ACEOF
12554 if ac_fn_cxx_try_cpp "$LINENO"; then :
12555 # Broken: success on invalid input.
12556 continue
12557 else
12558 # Passes both tests.
12559 ac_preproc_ok=:
12560 break
12561 fi
12562 rm -f conftest.err conftest.i conftest.$ac_ext
12563
12564 done
12565 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12566 rm -f conftest.i conftest.err conftest.$ac_ext
12567 if $ac_preproc_ok; then :
12568 break
12569 fi
12570
12571 done
12572 ac_cv_prog_CXXCPP=$CXXCPP
12573
12574 fi
12575 CXXCPP=$ac_cv_prog_CXXCPP
12576 else
12577 ac_cv_prog_CXXCPP=$CXXCPP
12578 fi
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12580 $as_echo "$CXXCPP" >&6; }
12581 ac_preproc_ok=false
12582 for ac_cxx_preproc_warn_flag in '' yes
12583 do
12584 # Use a header file that comes with gcc, so configuring glibc
12585 # with a fresh cross-compiler works.
12586 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12587 # <limits.h> exists even on freestanding compilers.
12588 # On the NeXT, cc -E runs the code through the compiler's parser,
12589 # not just through cpp. "Syntax error" is here to catch this case.
12590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12591 /* end confdefs.h. */
12592 #ifdef __STDC__
12593 # include <limits.h>
12594 #else
12595 # include <assert.h>
12596 #endif
12597 Syntax error
12598 _ACEOF
12599 if ac_fn_cxx_try_cpp "$LINENO"; then :
12600
12601 else
12602 # Broken: fails on valid input.
12603 continue
12604 fi
12605 rm -f conftest.err conftest.i conftest.$ac_ext
12606
12607 # OK, works on sane cases. Now check whether nonexistent headers
12608 # can be detected and how.
12609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12610 /* end confdefs.h. */
12611 #include <ac_nonexistent.h>
12612 _ACEOF
12613 if ac_fn_cxx_try_cpp "$LINENO"; then :
12614 # Broken: success on invalid input.
12615 continue
12616 else
12617 # Passes both tests.
12618 ac_preproc_ok=:
12619 break
12620 fi
12621 rm -f conftest.err conftest.i conftest.$ac_ext
12622
12623 done
12624 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12625 rm -f conftest.i conftest.err conftest.$ac_ext
12626 if $ac_preproc_ok; then :
12627
12628 else
12629 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12630 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12631 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12632 See \`config.log' for more details" "$LINENO" 5; }
12633 fi
12634
12635 ac_ext=cpp
12636 ac_cpp='$CXXCPP $CPPFLAGS'
12637 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12638 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12639 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12640
12641 else
12642 _lt_caught_CXX_error=yes
12643 fi
12644
12645 ac_ext=cpp
12646 ac_cpp='$CXXCPP $CPPFLAGS'
12647 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12648 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12649 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12650
12651 archive_cmds_need_lc_CXX=no
12652 allow_undefined_flag_CXX=
12653 always_export_symbols_CXX=no
12654 archive_expsym_cmds_CXX=
12655 compiler_needs_object_CXX=no
12656 export_dynamic_flag_spec_CXX=
12657 hardcode_direct_CXX=no
12658 hardcode_direct_absolute_CXX=no
12659 hardcode_libdir_flag_spec_CXX=
12660 hardcode_libdir_separator_CXX=
12661 hardcode_minus_L_CXX=no
12662 hardcode_shlibpath_var_CXX=unsupported
12663 hardcode_automatic_CXX=no
12664 inherit_rpath_CXX=no
12665 module_cmds_CXX=
12666 module_expsym_cmds_CXX=
12667 link_all_deplibs_CXX=unknown
12668 old_archive_cmds_CXX=$old_archive_cmds
12669 reload_flag_CXX=$reload_flag
12670 reload_cmds_CXX=$reload_cmds
12671 no_undefined_flag_CXX=
12672 whole_archive_flag_spec_CXX=
12673 enable_shared_with_static_runtimes_CXX=no
12674
12675 # Source file extension for C++ test sources.
12676 ac_ext=cpp
12677
12678 # Object file extension for compiled C++ test sources.
12679 objext=o
12680 objext_CXX=$objext
12681
12682 # No sense in running all these tests if we already determined that
12683 # the CXX compiler isn't working. Some variables (like enable_shared)
12684 # are currently assumed to apply to all compilers on this platform,
12685 # and will be corrupted by setting them based on a non-working compiler.
12686 if test "$_lt_caught_CXX_error" != yes; then
12687 # Code to be used in simple compile tests
12688 lt_simple_compile_test_code="int some_variable = 0;"
12689
12690 # Code to be used in simple link tests
12691 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12692
12693 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12694
12695
12696
12697
12698
12699
12700 # If no C compiler was specified, use CC.
12701 LTCC=${LTCC-"$CC"}
12702
12703 # If no C compiler flags were specified, use CFLAGS.
12704 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12705
12706 # Allow CC to be a program name with arguments.
12707 compiler=$CC
12708
12709
12710 # save warnings/boilerplate of simple test code
12711 ac_outfile=conftest.$ac_objext
12712 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12713 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12714 _lt_compiler_boilerplate=`cat conftest.err`
12715 $RM conftest*
12716
12717 ac_outfile=conftest.$ac_objext
12718 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12719 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12720 _lt_linker_boilerplate=`cat conftest.err`
12721 $RM -r conftest*
12722
12723
12724 # Allow CC to be a program name with arguments.
12725 lt_save_CC=$CC
12726 lt_save_CFLAGS=$CFLAGS
12727 lt_save_LD=$LD
12728 lt_save_GCC=$GCC
12729 GCC=$GXX
12730 lt_save_with_gnu_ld=$with_gnu_ld
12731 lt_save_path_LD=$lt_cv_path_LD
12732 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12733 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12734 else
12735 $as_unset lt_cv_prog_gnu_ld
12736 fi
12737 if test -n "${lt_cv_path_LDCXX+set}"; then
12738 lt_cv_path_LD=$lt_cv_path_LDCXX
12739 else
12740 $as_unset lt_cv_path_LD
12741 fi
12742 test -z "${LDCXX+set}" || LD=$LDCXX
12743 CC=${CXX-"c++"}
12744 CFLAGS=$CXXFLAGS
12745 compiler=$CC
12746 compiler_CXX=$CC
12747 for cc_temp in $compiler""; do
12748 case $cc_temp in
12749 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12750 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12751 \-*) ;;
12752 *) break;;
12753 esac
12754 done
12755 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12756
12757
12758 if test -n "$compiler"; then
12759 # We don't want -fno-exception when compiling C++ code, so set the
12760 # no_builtin_flag separately
12761 if test "$GXX" = yes; then
12762 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12763 else
12764 lt_prog_compiler_no_builtin_flag_CXX=
12765 fi
12766
12767 if test "$GXX" = yes; then
12768 # Set up default GNU C++ configuration
12769
12770
12771
12772 # Check whether --with-gnu-ld was given.
12773 if test "${with_gnu_ld+set}" = set; then :
12774 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12775 else
12776 with_gnu_ld=no
12777 fi
12778
12779 ac_prog=ld
12780 if test "$GCC" = yes; then
12781 # Check if gcc -print-prog-name=ld gives a path.
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12783 $as_echo_n "checking for ld used by $CC... " >&6; }
12784 case $host in
12785 *-*-mingw*)
12786 # gcc leaves a trailing carriage return which upsets mingw
12787 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12788 *)
12789 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12790 esac
12791 case $ac_prog in
12792 # Accept absolute paths.
12793 [\\/]* | ?:[\\/]*)
12794 re_direlt='/[^/][^/]*/\.\./'
12795 # Canonicalize the pathname of ld
12796 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12797 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12798 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12799 done
12800 test -z "$LD" && LD="$ac_prog"
12801 ;;
12802 "")
12803 # If it fails, then pretend we aren't using GCC.
12804 ac_prog=ld
12805 ;;
12806 *)
12807 # If it is relative, then search for the first ld in PATH.
12808 with_gnu_ld=unknown
12809 ;;
12810 esac
12811 elif test "$with_gnu_ld" = yes; then
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12813 $as_echo_n "checking for GNU ld... " >&6; }
12814 else
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12816 $as_echo_n "checking for non-GNU ld... " >&6; }
12817 fi
12818 if ${lt_cv_path_LD+:} false; then :
12819 $as_echo_n "(cached) " >&6
12820 else
12821 if test -z "$LD"; then
12822 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12823 for ac_dir in $PATH; do
12824 IFS="$lt_save_ifs"
12825 test -z "$ac_dir" && ac_dir=.
12826 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12827 lt_cv_path_LD="$ac_dir/$ac_prog"
12828 # Check to see if the program is GNU ld. I'd rather use --version,
12829 # but apparently some variants of GNU ld only accept -v.
12830 # Break only if it was the GNU/non-GNU ld that we prefer.
12831 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12832 *GNU* | *'with BFD'*)
12833 test "$with_gnu_ld" != no && break
12834 ;;
12835 *)
12836 test "$with_gnu_ld" != yes && break
12837 ;;
12838 esac
12839 fi
12840 done
12841 IFS="$lt_save_ifs"
12842 else
12843 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12844 fi
12845 fi
12846
12847 LD="$lt_cv_path_LD"
12848 if test -n "$LD"; then
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12850 $as_echo "$LD" >&6; }
12851 else
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12853 $as_echo "no" >&6; }
12854 fi
12855 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12857 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12858 if ${lt_cv_prog_gnu_ld+:} false; then :
12859 $as_echo_n "(cached) " >&6
12860 else
12861 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12862 case `$LD -v 2>&1 </dev/null` in
12863 *GNU* | *'with BFD'*)
12864 lt_cv_prog_gnu_ld=yes
12865 ;;
12866 *)
12867 lt_cv_prog_gnu_ld=no
12868 ;;
12869 esac
12870 fi
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12872 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12873 with_gnu_ld=$lt_cv_prog_gnu_ld
12874
12875
12876
12877
12878
12879
12880
12881 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12882 # archiving commands below assume that GNU ld is being used.
12883 if test "$with_gnu_ld" = yes; then
12884 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12885 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'
12886
12887 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12888 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12889
12890 # If archive_cmds runs LD, not CC, wlarc should be empty
12891 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12892 # investigate it a little bit more. (MM)
12893 wlarc='${wl}'
12894
12895 # ancient GNU ld didn't support --whole-archive et. al.
12896 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12897 $GREP 'no-whole-archive' > /dev/null; then
12898 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12899 else
12900 whole_archive_flag_spec_CXX=
12901 fi
12902 else
12903 with_gnu_ld=no
12904 wlarc=
12905
12906 # A generic and very simple default shared library creation
12907 # command for GNU C++ for the case where it uses the native
12908 # linker, instead of GNU ld. If possible, this setting should
12909 # overridden to take advantage of the native linker features on
12910 # the platform it is being used on.
12911 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12912 fi
12913
12914 # Commands to make compiler produce verbose output that lists
12915 # what "hidden" libraries, object files and flags are used when
12916 # linking a shared library.
12917 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12918
12919 else
12920 GXX=no
12921 with_gnu_ld=no
12922 wlarc=
12923 fi
12924
12925 # PORTME: fill in a description of your system's C++ link characteristics
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12927 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12928 ld_shlibs_CXX=yes
12929 case $host_os in
12930 aix3*)
12931 # FIXME: insert proper C++ library support
12932 ld_shlibs_CXX=no
12933 ;;
12934 aix[4-9]*)
12935 if test "$host_cpu" = ia64; then
12936 # On IA64, the linker does run time linking by default, so we don't
12937 # have to do anything special.
12938 aix_use_runtimelinking=no
12939 exp_sym_flag='-Bexport'
12940 no_entry_flag=""
12941 else
12942 aix_use_runtimelinking=no
12943
12944 # Test if we are trying to use run time linking or normal
12945 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12946 # need to do runtime linking.
12947 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12948 for ld_flag in $LDFLAGS; do
12949 case $ld_flag in
12950 *-brtl*)
12951 aix_use_runtimelinking=yes
12952 break
12953 ;;
12954 esac
12955 done
12956 ;;
12957 esac
12958
12959 exp_sym_flag='-bexport'
12960 no_entry_flag='-bnoentry'
12961 fi
12962
12963 # When large executables or shared objects are built, AIX ld can
12964 # have problems creating the table of contents. If linking a library
12965 # or program results in "error TOC overflow" add -mminimal-toc to
12966 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12967 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12968
12969 archive_cmds_CXX=''
12970 hardcode_direct_CXX=yes
12971 hardcode_direct_absolute_CXX=yes
12972 hardcode_libdir_separator_CXX=':'
12973 link_all_deplibs_CXX=yes
12974 file_list_spec_CXX='${wl}-f,'
12975
12976 if test "$GXX" = yes; then
12977 case $host_os in aix4.[012]|aix4.[012].*)
12978 # We only want to do this on AIX 4.2 and lower, the check
12979 # below for broken collect2 doesn't work under 4.3+
12980 collect2name=`${CC} -print-prog-name=collect2`
12981 if test -f "$collect2name" &&
12982 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12983 then
12984 # We have reworked collect2
12985 :
12986 else
12987 # We have old collect2
12988 hardcode_direct_CXX=unsupported
12989 # It fails to find uninstalled libraries when the uninstalled
12990 # path is not listed in the libpath. Setting hardcode_minus_L
12991 # to unsupported forces relinking
12992 hardcode_minus_L_CXX=yes
12993 hardcode_libdir_flag_spec_CXX='-L$libdir'
12994 hardcode_libdir_separator_CXX=
12995 fi
12996 esac
12997 shared_flag='-shared'
12998 if test "$aix_use_runtimelinking" = yes; then
12999 shared_flag="$shared_flag "'${wl}-G'
13000 fi
13001 else
13002 # not using gcc
13003 if test "$host_cpu" = ia64; then
13004 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13005 # chokes on -Wl,-G. The following line is correct:
13006 shared_flag='-G'
13007 else
13008 if test "$aix_use_runtimelinking" = yes; then
13009 shared_flag='${wl}-G'
13010 else
13011 shared_flag='${wl}-bM:SRE'
13012 fi
13013 fi
13014 fi
13015
13016 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13017 # It seems that -bexpall does not export symbols beginning with
13018 # underscore (_), so it is better to generate a list of symbols to
13019 # export.
13020 always_export_symbols_CXX=yes
13021 if test "$aix_use_runtimelinking" = yes; then
13022 # Warning - without using the other runtime loading flags (-brtl),
13023 # -berok will link without error, but may produce a broken library.
13024 allow_undefined_flag_CXX='-berok'
13025 # Determine the default libpath from the value encoded in an empty
13026 # executable.
13027 if test "${lt_cv_aix_libpath+set}" = set; then
13028 aix_libpath=$lt_cv_aix_libpath
13029 else
13030 if ${lt_cv_aix_libpath__CXX+:} false; then :
13031 $as_echo_n "(cached) " >&6
13032 else
13033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13034 /* end confdefs.h. */
13035
13036 int
13037 main ()
13038 {
13039
13040 ;
13041 return 0;
13042 }
13043 _ACEOF
13044 if ac_fn_cxx_try_link "$LINENO"; then :
13045
13046 lt_aix_libpath_sed='
13047 /Import File Strings/,/^$/ {
13048 /^0/ {
13049 s/^0 *\([^ ]*\) *$/\1/
13050 p
13051 }
13052 }'
13053 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13054 # Check for a 64-bit object if we didn't find anything.
13055 if test -z "$lt_cv_aix_libpath__CXX"; then
13056 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13057 fi
13058 fi
13059 rm -f core conftest.err conftest.$ac_objext \
13060 conftest$ac_exeext conftest.$ac_ext
13061 if test -z "$lt_cv_aix_libpath__CXX"; then
13062 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13063 fi
13064
13065 fi
13066
13067 aix_libpath=$lt_cv_aix_libpath__CXX
13068 fi
13069
13070 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13071
13072 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13073 else
13074 if test "$host_cpu" = ia64; then
13075 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13076 allow_undefined_flag_CXX="-z nodefs"
13077 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"
13078 else
13079 # Determine the default libpath from the value encoded in an
13080 # empty executable.
13081 if test "${lt_cv_aix_libpath+set}" = set; then
13082 aix_libpath=$lt_cv_aix_libpath
13083 else
13084 if ${lt_cv_aix_libpath__CXX+:} false; then :
13085 $as_echo_n "(cached) " >&6
13086 else
13087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13088 /* end confdefs.h. */
13089
13090 int
13091 main ()
13092 {
13093
13094 ;
13095 return 0;
13096 }
13097 _ACEOF
13098 if ac_fn_cxx_try_link "$LINENO"; then :
13099
13100 lt_aix_libpath_sed='
13101 /Import File Strings/,/^$/ {
13102 /^0/ {
13103 s/^0 *\([^ ]*\) *$/\1/
13104 p
13105 }
13106 }'
13107 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13108 # Check for a 64-bit object if we didn't find anything.
13109 if test -z "$lt_cv_aix_libpath__CXX"; then
13110 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13111 fi
13112 fi
13113 rm -f core conftest.err conftest.$ac_objext \
13114 conftest$ac_exeext conftest.$ac_ext
13115 if test -z "$lt_cv_aix_libpath__CXX"; then
13116 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13117 fi
13118
13119 fi
13120
13121 aix_libpath=$lt_cv_aix_libpath__CXX
13122 fi
13123
13124 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13125 # Warning - without using the other run time loading flags,
13126 # -berok will link without error, but may produce a broken library.
13127 no_undefined_flag_CXX=' ${wl}-bernotok'
13128 allow_undefined_flag_CXX=' ${wl}-berok'
13129 if test "$with_gnu_ld" = yes; then
13130 # We only use this code for GNU lds that support --whole-archive.
13131 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13132 else
13133 # Exported symbols can be pulled into shared objects from archives
13134 whole_archive_flag_spec_CXX='$convenience'
13135 fi
13136 archive_cmds_need_lc_CXX=yes
13137 # This is similar to how AIX traditionally builds its shared
13138 # libraries.
13139 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13140 fi
13141 fi
13142 ;;
13143
13144 beos*)
13145 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13146 allow_undefined_flag_CXX=unsupported
13147 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13148 # support --undefined. This deserves some investigation. FIXME
13149 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13150 else
13151 ld_shlibs_CXX=no
13152 fi
13153 ;;
13154
13155 chorus*)
13156 case $cc_basename in
13157 *)
13158 # FIXME: insert proper C++ library support
13159 ld_shlibs_CXX=no
13160 ;;
13161 esac
13162 ;;
13163
13164 cygwin* | mingw* | pw32* | cegcc*)
13165 case $GXX,$cc_basename in
13166 ,cl* | no,cl*)
13167 # Native MSVC
13168 # hardcode_libdir_flag_spec is actually meaningless, as there is
13169 # no search path for DLLs.
13170 hardcode_libdir_flag_spec_CXX=' '
13171 allow_undefined_flag_CXX=unsupported
13172 always_export_symbols_CXX=yes
13173 file_list_spec_CXX='@'
13174 # Tell ltmain to make .lib files, not .a files.
13175 libext=lib
13176 # Tell ltmain to make .dll files, not .so files.
13177 shrext_cmds=".dll"
13178 # FIXME: Setting linknames here is a bad hack.
13179 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13180 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13181 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13182 else
13183 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13184 fi~
13185 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13186 linknames='
13187 # The linker will not automatically build a static lib if we build a DLL.
13188 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13189 enable_shared_with_static_runtimes_CXX=yes
13190 # Don't use ranlib
13191 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13192 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13193 lt_tool_outputfile="@TOOL_OUTPUT@"~
13194 case $lt_outputfile in
13195 *.exe|*.EXE) ;;
13196 *)
13197 lt_outputfile="$lt_outputfile.exe"
13198 lt_tool_outputfile="$lt_tool_outputfile.exe"
13199 ;;
13200 esac~
13201 func_to_tool_file "$lt_outputfile"~
13202 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13203 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13204 $RM "$lt_outputfile.manifest";
13205 fi'
13206 ;;
13207 *)
13208 # g++
13209 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13210 # as there is no search path for DLLs.
13211 hardcode_libdir_flag_spec_CXX='-L$libdir'
13212 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13213 allow_undefined_flag_CXX=unsupported
13214 always_export_symbols_CXX=no
13215 enable_shared_with_static_runtimes_CXX=yes
13216
13217 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13218 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'
13219 # If the export-symbols file already is a .def file (1st line
13220 # is EXPORTS), use it as is; otherwise, prepend...
13221 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13222 cp $export_symbols $output_objdir/$soname.def;
13223 else
13224 echo EXPORTS > $output_objdir/$soname.def;
13225 cat $export_symbols >> $output_objdir/$soname.def;
13226 fi~
13227 $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'
13228 else
13229 ld_shlibs_CXX=no
13230 fi
13231 ;;
13232 esac
13233 ;;
13234 darwin* | rhapsody*)
13235
13236
13237 archive_cmds_need_lc_CXX=no
13238 hardcode_direct_CXX=no
13239 hardcode_automatic_CXX=yes
13240 hardcode_shlibpath_var_CXX=unsupported
13241 if test "$lt_cv_ld_force_load" = "yes"; then
13242 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\"`'
13243
13244 else
13245 whole_archive_flag_spec_CXX=''
13246 fi
13247 link_all_deplibs_CXX=yes
13248 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13249 case $cc_basename in
13250 ifort*) _lt_dar_can_shared=yes ;;
13251 *) _lt_dar_can_shared=$GCC ;;
13252 esac
13253 if test "$_lt_dar_can_shared" = "yes"; then
13254 output_verbose_link_cmd=func_echo_all
13255 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}"
13256 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13257 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}"
13258 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}"
13259 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13260 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}"
13261 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}"
13262 fi
13263
13264 else
13265 ld_shlibs_CXX=no
13266 fi
13267
13268 ;;
13269
13270 dgux*)
13271 case $cc_basename in
13272 ec++*)
13273 # FIXME: insert proper C++ library support
13274 ld_shlibs_CXX=no
13275 ;;
13276 ghcx*)
13277 # Green Hills C++ Compiler
13278 # FIXME: insert proper C++ library support
13279 ld_shlibs_CXX=no
13280 ;;
13281 *)
13282 # FIXME: insert proper C++ library support
13283 ld_shlibs_CXX=no
13284 ;;
13285 esac
13286 ;;
13287
13288 freebsd2.*)
13289 # C++ shared libraries reported to be fairly broken before
13290 # switch to ELF
13291 ld_shlibs_CXX=no
13292 ;;
13293
13294 freebsd-elf*)
13295 archive_cmds_need_lc_CXX=no
13296 ;;
13297
13298 freebsd* | dragonfly*)
13299 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13300 # conventions
13301 ld_shlibs_CXX=yes
13302 ;;
13303
13304 haiku*)
13305 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13306 link_all_deplibs_CXX=yes
13307 ;;
13308
13309 hpux9*)
13310 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13311 hardcode_libdir_separator_CXX=:
13312 export_dynamic_flag_spec_CXX='${wl}-E'
13313 hardcode_direct_CXX=yes
13314 hardcode_minus_L_CXX=yes # Not in the search PATH,
13315 # but as the default
13316 # location of the library.
13317
13318 case $cc_basename in
13319 CC*)
13320 # FIXME: insert proper C++ library support
13321 ld_shlibs_CXX=no
13322 ;;
13323 aCC*)
13324 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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13325 # Commands to make compiler produce verbose output that lists
13326 # what "hidden" libraries, object files and flags are used when
13327 # linking a shared library.
13328 #
13329 # There doesn't appear to be a way to prevent this compiler from
13330 # explicitly linking system object files so we need to strip them
13331 # from the output so that they don't get included in the library
13332 # dependencies.
13333 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"'
13334 ;;
13335 *)
13336 if test "$GXX" = yes; then
13337 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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13338 else
13339 # FIXME: insert proper C++ library support
13340 ld_shlibs_CXX=no
13341 fi
13342 ;;
13343 esac
13344 ;;
13345
13346 hpux10*|hpux11*)
13347 if test $with_gnu_ld = no; then
13348 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13349 hardcode_libdir_separator_CXX=:
13350
13351 case $host_cpu in
13352 hppa*64*|ia64*)
13353 ;;
13354 *)
13355 export_dynamic_flag_spec_CXX='${wl}-E'
13356 ;;
13357 esac
13358 fi
13359 case $host_cpu in
13360 hppa*64*|ia64*)
13361 hardcode_direct_CXX=no
13362 hardcode_shlibpath_var_CXX=no
13363 ;;
13364 *)
13365 hardcode_direct_CXX=yes
13366 hardcode_direct_absolute_CXX=yes
13367 hardcode_minus_L_CXX=yes # Not in the search PATH,
13368 # but as the default
13369 # location of the library.
13370 ;;
13371 esac
13372
13373 case $cc_basename in
13374 CC*)
13375 # FIXME: insert proper C++ library support
13376 ld_shlibs_CXX=no
13377 ;;
13378 aCC*)
13379 case $host_cpu in
13380 hppa*64*)
13381 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13382 ;;
13383 ia64*)
13384 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13385 ;;
13386 *)
13387 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13388 ;;
13389 esac
13390 # Commands to make compiler produce verbose output that lists
13391 # what "hidden" libraries, object files and flags are used when
13392 # linking a shared library.
13393 #
13394 # There doesn't appear to be a way to prevent this compiler from
13395 # explicitly linking system object files so we need to strip them
13396 # from the output so that they don't get included in the library
13397 # dependencies.
13398 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"'
13399 ;;
13400 *)
13401 if test "$GXX" = yes; then
13402 if test $with_gnu_ld = no; then
13403 case $host_cpu in
13404 hppa*64*)
13405 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13406 ;;
13407 ia64*)
13408 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13409 ;;
13410 *)
13411 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'
13412 ;;
13413 esac
13414 fi
13415 else
13416 # FIXME: insert proper C++ library support
13417 ld_shlibs_CXX=no
13418 fi
13419 ;;
13420 esac
13421 ;;
13422
13423 interix[3-9]*)
13424 hardcode_direct_CXX=no
13425 hardcode_shlibpath_var_CXX=no
13426 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13427 export_dynamic_flag_spec_CXX='${wl}-E'
13428 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13429 # Instead, shared libraries are loaded at an image base (0x10000000 by
13430 # default) and relocated if they conflict, which is a slow very memory
13431 # consuming and fragmenting process. To avoid this, we pick a random,
13432 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13433 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13434 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'
13435 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'
13436 ;;
13437 irix5* | irix6*)
13438 case $cc_basename in
13439 CC*)
13440 # SGI C++
13441 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'
13442
13443 # Archives containing C++ object files must be created using
13444 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13445 # necessary to make sure instantiated templates are included
13446 # in the archive.
13447 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13448 ;;
13449 *)
13450 if test "$GXX" = yes; then
13451 if test "$with_gnu_ld" = no; then
13452 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'
13453 else
13454 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'
13455 fi
13456 fi
13457 link_all_deplibs_CXX=yes
13458 ;;
13459 esac
13460 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13461 hardcode_libdir_separator_CXX=:
13462 inherit_rpath_CXX=yes
13463 ;;
13464
13465 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13466 case $cc_basename in
13467 KCC*)
13468 # Kuck and Associates, Inc. (KAI) C++ Compiler
13469
13470 # KCC will only create a shared library if the output file
13471 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13472 # to its proper name (with version) after linking.
13473 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'
13474 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'
13475 # Commands to make compiler produce verbose output that lists
13476 # what "hidden" libraries, object files and flags are used when
13477 # linking a shared library.
13478 #
13479 # There doesn't appear to be a way to prevent this compiler from
13480 # explicitly linking system object files so we need to strip them
13481 # from the output so that they don't get included in the library
13482 # dependencies.
13483 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"'
13484
13485 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13486 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13487
13488 # Archives containing C++ object files must be created using
13489 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13490 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13491 ;;
13492 icpc* | ecpc* )
13493 # Intel C++
13494 with_gnu_ld=yes
13495 # version 8.0 and above of icpc choke on multiply defined symbols
13496 # if we add $predep_objects and $postdep_objects, however 7.1 and
13497 # earlier do not add the objects themselves.
13498 case `$CC -V 2>&1` in
13499 *"Version 7."*)
13500 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13501 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'
13502 ;;
13503 *) # Version 8.0 or newer
13504 tmp_idyn=
13505 case $host_cpu in
13506 ia64*) tmp_idyn=' -i_dynamic';;
13507 esac
13508 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13509 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'
13510 ;;
13511 esac
13512 archive_cmds_need_lc_CXX=no
13513 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13514 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13515 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13516 ;;
13517 pgCC* | pgcpp*)
13518 # Portland Group C++ compiler
13519 case `$CC -V` in
13520 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13521 prelink_cmds_CXX='tpldir=Template.dir~
13522 rm -rf $tpldir~
13523 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13524 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13525 old_archive_cmds_CXX='tpldir=Template.dir~
13526 rm -rf $tpldir~
13527 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13528 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13529 $RANLIB $oldlib'
13530 archive_cmds_CXX='tpldir=Template.dir~
13531 rm -rf $tpldir~
13532 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13533 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13534 archive_expsym_cmds_CXX='tpldir=Template.dir~
13535 rm -rf $tpldir~
13536 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13537 $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'
13538 ;;
13539 *) # Version 6 and above use weak symbols
13540 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13541 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'
13542 ;;
13543 esac
13544
13545 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13546 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13547 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'
13548 ;;
13549 cxx*)
13550 # Compaq C++
13551 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13552 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'
13553
13554 runpath_var=LD_RUN_PATH
13555 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13556 hardcode_libdir_separator_CXX=:
13557
13558 # Commands to make compiler produce verbose output that lists
13559 # what "hidden" libraries, object files and flags are used when
13560 # linking a shared library.
13561 #
13562 # There doesn't appear to be a way to prevent this compiler from
13563 # explicitly linking system object files so we need to strip them
13564 # from the output so that they don't get included in the library
13565 # dependencies.
13566 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'
13567 ;;
13568 xl* | mpixl* | bgxl*)
13569 # IBM XL 8.0 on PPC, with GNU ld
13570 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13571 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13572 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13573 if test "x$supports_anon_versioning" = xyes; then
13574 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13575 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13576 echo "local: *; };" >> $output_objdir/$libname.ver~
13577 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13578 fi
13579 ;;
13580 *)
13581 case `$CC -V 2>&1 | sed 5q` in
13582 *Sun\ C*)
13583 # Sun C++ 5.9
13584 no_undefined_flag_CXX=' -zdefs'
13585 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13586 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'
13587 hardcode_libdir_flag_spec_CXX='-R$libdir'
13588 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'
13589 compiler_needs_object_CXX=yes
13590
13591 # Not sure whether something based on
13592 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13593 # would be better.
13594 output_verbose_link_cmd='func_echo_all'
13595
13596 # Archives containing C++ object files must be created using
13597 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13598 # necessary to make sure instantiated templates are included
13599 # in the archive.
13600 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13601 ;;
13602 esac
13603 ;;
13604 esac
13605 ;;
13606
13607 lynxos*)
13608 # FIXME: insert proper C++ library support
13609 ld_shlibs_CXX=no
13610 ;;
13611
13612 m88k*)
13613 # FIXME: insert proper C++ library support
13614 ld_shlibs_CXX=no
13615 ;;
13616
13617 mvs*)
13618 case $cc_basename in
13619 cxx*)
13620 # FIXME: insert proper C++ library support
13621 ld_shlibs_CXX=no
13622 ;;
13623 *)
13624 # FIXME: insert proper C++ library support
13625 ld_shlibs_CXX=no
13626 ;;
13627 esac
13628 ;;
13629
13630 netbsd*)
13631 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13632 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13633 wlarc=
13634 hardcode_libdir_flag_spec_CXX='-R$libdir'
13635 hardcode_direct_CXX=yes
13636 hardcode_shlibpath_var_CXX=no
13637 fi
13638 # Workaround some broken pre-1.5 toolchains
13639 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13640 ;;
13641
13642 *nto* | *qnx*)
13643 ld_shlibs_CXX=yes
13644 ;;
13645
13646 openbsd2*)
13647 # C++ shared libraries are fairly broken
13648 ld_shlibs_CXX=no
13649 ;;
13650
13651 openbsd*)
13652 if test -f /usr/libexec/ld.so; then
13653 hardcode_direct_CXX=yes
13654 hardcode_shlibpath_var_CXX=no
13655 hardcode_direct_absolute_CXX=yes
13656 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13657 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13658 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13659 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13660 export_dynamic_flag_spec_CXX='${wl}-E'
13661 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13662 fi
13663 output_verbose_link_cmd=func_echo_all
13664 else
13665 ld_shlibs_CXX=no
13666 fi
13667 ;;
13668
13669 osf3* | osf4* | osf5*)
13670 case $cc_basename in
13671 KCC*)
13672 # Kuck and Associates, Inc. (KAI) C++ Compiler
13673
13674 # KCC will only create a shared library if the output file
13675 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13676 # to its proper name (with version) after linking.
13677 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'
13678
13679 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13680 hardcode_libdir_separator_CXX=:
13681
13682 # Archives containing C++ object files must be created using
13683 # the KAI C++ compiler.
13684 case $host in
13685 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13686 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13687 esac
13688 ;;
13689 RCC*)
13690 # Rational C++ 2.4.1
13691 # FIXME: insert proper C++ library support
13692 ld_shlibs_CXX=no
13693 ;;
13694 cxx*)
13695 case $host in
13696 osf3*)
13697 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13698 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'
13699 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13700 ;;
13701 *)
13702 allow_undefined_flag_CXX=' -expect_unresolved \*'
13703 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'
13704 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13705 echo "-hidden">> $lib.exp~
13706 $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~
13707 $RM $lib.exp'
13708 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13709 ;;
13710 esac
13711
13712 hardcode_libdir_separator_CXX=:
13713
13714 # Commands to make compiler produce verbose output that lists
13715 # what "hidden" libraries, object files and flags are used when
13716 # linking a shared library.
13717 #
13718 # There doesn't appear to be a way to prevent this compiler from
13719 # explicitly linking system object files so we need to strip them
13720 # from the output so that they don't get included in the library
13721 # dependencies.
13722 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"'
13723 ;;
13724 *)
13725 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13726 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13727 case $host in
13728 osf3*)
13729 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'
13730 ;;
13731 *)
13732 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'
13733 ;;
13734 esac
13735
13736 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13737 hardcode_libdir_separator_CXX=:
13738
13739 # Commands to make compiler produce verbose output that lists
13740 # what "hidden" libraries, object files and flags are used when
13741 # linking a shared library.
13742 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13743
13744 else
13745 # FIXME: insert proper C++ library support
13746 ld_shlibs_CXX=no
13747 fi
13748 ;;
13749 esac
13750 ;;
13751
13752 psos*)
13753 # FIXME: insert proper C++ library support
13754 ld_shlibs_CXX=no
13755 ;;
13756
13757 sunos4*)
13758 case $cc_basename in
13759 CC*)
13760 # Sun C++ 4.x
13761 # FIXME: insert proper C++ library support
13762 ld_shlibs_CXX=no
13763 ;;
13764 lcc*)
13765 # Lucid
13766 # FIXME: insert proper C++ library support
13767 ld_shlibs_CXX=no
13768 ;;
13769 *)
13770 # FIXME: insert proper C++ library support
13771 ld_shlibs_CXX=no
13772 ;;
13773 esac
13774 ;;
13775
13776 solaris*)
13777 case $cc_basename in
13778 CC* | sunCC*)
13779 # Sun C++ 4.2, 5.x and Centerline C++
13780 archive_cmds_need_lc_CXX=yes
13781 no_undefined_flag_CXX=' -zdefs'
13782 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13783 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13784 $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'
13785
13786 hardcode_libdir_flag_spec_CXX='-R$libdir'
13787 hardcode_shlibpath_var_CXX=no
13788 case $host_os in
13789 solaris2.[0-5] | solaris2.[0-5].*) ;;
13790 *)
13791 # The compiler driver will combine and reorder linker options,
13792 # but understands `-z linker_flag'.
13793 # Supported since Solaris 2.6 (maybe 2.5.1?)
13794 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13795 ;;
13796 esac
13797 link_all_deplibs_CXX=yes
13798
13799 output_verbose_link_cmd='func_echo_all'
13800
13801 # Archives containing C++ object files must be created using
13802 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13803 # necessary to make sure instantiated templates are included
13804 # in the archive.
13805 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13806 ;;
13807 gcx*)
13808 # Green Hills C++ Compiler
13809 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13810
13811 # The C++ compiler must be used to create the archive.
13812 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13813 ;;
13814 *)
13815 # GNU C++ compiler with Solaris linker
13816 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13817 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13818 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13819 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13820 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13821 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13822
13823 # Commands to make compiler produce verbose output that lists
13824 # what "hidden" libraries, object files and flags are used when
13825 # linking a shared library.
13826 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13827 else
13828 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13829 # platform.
13830 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13831 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13832 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13833
13834 # Commands to make compiler produce verbose output that lists
13835 # what "hidden" libraries, object files and flags are used when
13836 # linking a shared library.
13837 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13838 fi
13839
13840 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13841 case $host_os in
13842 solaris2.[0-5] | solaris2.[0-5].*) ;;
13843 *)
13844 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13845 ;;
13846 esac
13847 fi
13848 ;;
13849 esac
13850 ;;
13851
13852 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13853 no_undefined_flag_CXX='${wl}-z,text'
13854 archive_cmds_need_lc_CXX=no
13855 hardcode_shlibpath_var_CXX=no
13856 runpath_var='LD_RUN_PATH'
13857
13858 case $cc_basename in
13859 CC*)
13860 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13861 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13862 ;;
13863 *)
13864 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13865 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13866 ;;
13867 esac
13868 ;;
13869
13870 sysv5* | sco3.2v5* | sco5v6*)
13871 # Note: We can NOT use -z defs as we might desire, because we do not
13872 # link with -lc, and that would cause any symbols used from libc to
13873 # always be unresolved, which means just about no library would
13874 # ever link correctly. If we're not using GNU ld we use -z text
13875 # though, which does catch some bad symbols but isn't as heavy-handed
13876 # as -z defs.
13877 no_undefined_flag_CXX='${wl}-z,text'
13878 allow_undefined_flag_CXX='${wl}-z,nodefs'
13879 archive_cmds_need_lc_CXX=no
13880 hardcode_shlibpath_var_CXX=no
13881 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13882 hardcode_libdir_separator_CXX=':'
13883 link_all_deplibs_CXX=yes
13884 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13885 runpath_var='LD_RUN_PATH'
13886
13887 case $cc_basename in
13888 CC*)
13889 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13890 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13891 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13892 '"$old_archive_cmds_CXX"
13893 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13894 '"$reload_cmds_CXX"
13895 ;;
13896 *)
13897 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13898 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13899 ;;
13900 esac
13901 ;;
13902
13903 tandem*)
13904 case $cc_basename in
13905 NCC*)
13906 # NonStop-UX NCC 3.20
13907 # FIXME: insert proper C++ library support
13908 ld_shlibs_CXX=no
13909 ;;
13910 *)
13911 # FIXME: insert proper C++ library support
13912 ld_shlibs_CXX=no
13913 ;;
13914 esac
13915 ;;
13916
13917 vxworks*)
13918 # FIXME: insert proper C++ library support
13919 ld_shlibs_CXX=no
13920 ;;
13921
13922 *)
13923 # FIXME: insert proper C++ library support
13924 ld_shlibs_CXX=no
13925 ;;
13926 esac
13927
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13929 $as_echo "$ld_shlibs_CXX" >&6; }
13930 test "$ld_shlibs_CXX" = no && can_build_shared=no
13931
13932 GCC_CXX="$GXX"
13933 LD_CXX="$LD"
13934
13935 ## CAVEAT EMPTOR:
13936 ## There is no encapsulation within the following macros, do not change
13937 ## the running order or otherwise move them around unless you know exactly
13938 ## what you are doing...
13939 # Dependencies to place before and after the object being linked:
13940 predep_objects_CXX=
13941 postdep_objects_CXX=
13942 predeps_CXX=
13943 postdeps_CXX=
13944 compiler_lib_search_path_CXX=
13945
13946 cat > conftest.$ac_ext <<_LT_EOF
13947 class Foo
13948 {
13949 public:
13950 Foo (void) { a = 0; }
13951 private:
13952 int a;
13953 };
13954 _LT_EOF
13955
13956
13957 _lt_libdeps_save_CFLAGS=$CFLAGS
13958 case "$CC $CFLAGS " in #(
13959 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13960 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13961 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13962 esac
13963
13964 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13965 (eval $ac_compile) 2>&5
13966 ac_status=$?
13967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13968 test $ac_status = 0; }; then
13969 # Parse the compiler output and extract the necessary
13970 # objects, libraries and library flags.
13971
13972 # Sentinel used to keep track of whether or not we are before
13973 # the conftest object file.
13974 pre_test_object_deps_done=no
13975
13976 for p in `eval "$output_verbose_link_cmd"`; do
13977 case ${prev}${p} in
13978
13979 -L* | -R* | -l*)
13980 # Some compilers place space between "-{L,R}" and the path.
13981 # Remove the space.
13982 if test $p = "-L" ||
13983 test $p = "-R"; then
13984 prev=$p
13985 continue
13986 fi
13987
13988 # Expand the sysroot to ease extracting the directories later.
13989 if test -z "$prev"; then
13990 case $p in
13991 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13992 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13993 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13994 esac
13995 fi
13996 case $p in
13997 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13998 esac
13999 if test "$pre_test_object_deps_done" = no; then
14000 case ${prev} in
14001 -L | -R)
14002 # Internal compiler library paths should come after those
14003 # provided the user. The postdeps already come after the
14004 # user supplied libs so there is no need to process them.
14005 if test -z "$compiler_lib_search_path_CXX"; then
14006 compiler_lib_search_path_CXX="${prev}${p}"
14007 else
14008 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14009 fi
14010 ;;
14011 # The "-l" case would never come before the object being
14012 # linked, so don't bother handling this case.
14013 esac
14014 else
14015 if test -z "$postdeps_CXX"; then
14016 postdeps_CXX="${prev}${p}"
14017 else
14018 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14019 fi
14020 fi
14021 prev=
14022 ;;
14023
14024 *.lto.$objext) ;; # Ignore GCC LTO objects
14025 *.$objext)
14026 # This assumes that the test object file only shows up
14027 # once in the compiler output.
14028 if test "$p" = "conftest.$objext"; then
14029 pre_test_object_deps_done=yes
14030 continue
14031 fi
14032
14033 if test "$pre_test_object_deps_done" = no; then
14034 if test -z "$predep_objects_CXX"; then
14035 predep_objects_CXX="$p"
14036 else
14037 predep_objects_CXX="$predep_objects_CXX $p"
14038 fi
14039 else
14040 if test -z "$postdep_objects_CXX"; then
14041 postdep_objects_CXX="$p"
14042 else
14043 postdep_objects_CXX="$postdep_objects_CXX $p"
14044 fi
14045 fi
14046 ;;
14047
14048 *) ;; # Ignore the rest.
14049
14050 esac
14051 done
14052
14053 # Clean up.
14054 rm -f a.out a.exe
14055 else
14056 echo "libtool.m4: error: problem compiling CXX test program"
14057 fi
14058
14059 $RM -f confest.$objext
14060 CFLAGS=$_lt_libdeps_save_CFLAGS
14061
14062 # PORTME: override above test on systems where it is broken
14063 case $host_os in
14064 interix[3-9]*)
14065 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14066 # hack all around it, let's just trust "g++" to DTRT.
14067 predep_objects_CXX=
14068 postdep_objects_CXX=
14069 postdeps_CXX=
14070 ;;
14071
14072 linux*)
14073 case `$CC -V 2>&1 | sed 5q` in
14074 *Sun\ C*)
14075 # Sun C++ 5.9
14076
14077 # The more standards-conforming stlport4 library is
14078 # incompatible with the Cstd library. Avoid specifying
14079 # it if it's in CXXFLAGS. Ignore libCrun as
14080 # -library=stlport4 depends on it.
14081 case " $CXX $CXXFLAGS " in
14082 *" -library=stlport4 "*)
14083 solaris_use_stlport4=yes
14084 ;;
14085 esac
14086
14087 if test "$solaris_use_stlport4" != yes; then
14088 postdeps_CXX='-library=Cstd -library=Crun'
14089 fi
14090 ;;
14091 esac
14092 ;;
14093
14094 solaris*)
14095 case $cc_basename in
14096 CC* | sunCC*)
14097 # The more standards-conforming stlport4 library is
14098 # incompatible with the Cstd library. Avoid specifying
14099 # it if it's in CXXFLAGS. Ignore libCrun as
14100 # -library=stlport4 depends on it.
14101 case " $CXX $CXXFLAGS " in
14102 *" -library=stlport4 "*)
14103 solaris_use_stlport4=yes
14104 ;;
14105 esac
14106
14107 # Adding this requires a known-good setup of shared libraries for
14108 # Sun compiler versions before 5.6, else PIC objects from an old
14109 # archive will be linked into the output, leading to subtle bugs.
14110 if test "$solaris_use_stlport4" != yes; then
14111 postdeps_CXX='-library=Cstd -library=Crun'
14112 fi
14113 ;;
14114 esac
14115 ;;
14116 esac
14117
14118
14119 case " $postdeps_CXX " in
14120 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14121 esac
14122 compiler_lib_search_dirs_CXX=
14123 if test -n "${compiler_lib_search_path_CXX}"; then
14124 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14125 fi
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157 lt_prog_compiler_wl_CXX=
14158 lt_prog_compiler_pic_CXX=
14159 lt_prog_compiler_static_CXX=
14160
14161
14162 # C++ specific cases for pic, static, wl, etc.
14163 if test "$GXX" = yes; then
14164 lt_prog_compiler_wl_CXX='-Wl,'
14165 lt_prog_compiler_static_CXX='-static'
14166
14167 case $host_os in
14168 aix*)
14169 # All AIX code is PIC.
14170 if test "$host_cpu" = ia64; then
14171 # AIX 5 now supports IA64 processor
14172 lt_prog_compiler_static_CXX='-Bstatic'
14173 fi
14174 ;;
14175
14176 amigaos*)
14177 case $host_cpu in
14178 powerpc)
14179 # see comment about AmigaOS4 .so support
14180 lt_prog_compiler_pic_CXX='-fPIC'
14181 ;;
14182 m68k)
14183 # FIXME: we need at least 68020 code to build shared libraries, but
14184 # adding the `-m68020' flag to GCC prevents building anything better,
14185 # like `-m68040'.
14186 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14187 ;;
14188 esac
14189 ;;
14190
14191 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14192 # PIC is the default for these OSes.
14193 ;;
14194 mingw* | cygwin* | os2* | pw32* | cegcc*)
14195 # This hack is so that the source file can tell whether it is being
14196 # built for inclusion in a dll (and should export symbols for example).
14197 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14198 # (--disable-auto-import) libraries
14199 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14200 ;;
14201 darwin* | rhapsody*)
14202 # PIC is the default on this platform
14203 # Common symbols not allowed in MH_DYLIB files
14204 lt_prog_compiler_pic_CXX='-fno-common'
14205 ;;
14206 *djgpp*)
14207 # DJGPP does not support shared libraries at all
14208 lt_prog_compiler_pic_CXX=
14209 ;;
14210 haiku*)
14211 # PIC is the default for Haiku.
14212 # The "-static" flag exists, but is broken.
14213 lt_prog_compiler_static_CXX=
14214 ;;
14215 interix[3-9]*)
14216 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14217 # Instead, we relocate shared libraries at runtime.
14218 ;;
14219 sysv4*MP*)
14220 if test -d /usr/nec; then
14221 lt_prog_compiler_pic_CXX=-Kconform_pic
14222 fi
14223 ;;
14224 hpux*)
14225 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14226 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14227 # sets the default TLS model and affects inlining.
14228 case $host_cpu in
14229 hppa*64*)
14230 ;;
14231 *)
14232 lt_prog_compiler_pic_CXX='-fPIC'
14233 ;;
14234 esac
14235 ;;
14236 *qnx* | *nto*)
14237 # QNX uses GNU C++, but need to define -shared option too, otherwise
14238 # it will coredump.
14239 lt_prog_compiler_pic_CXX='-fPIC -shared'
14240 ;;
14241 *)
14242 lt_prog_compiler_pic_CXX='-fPIC'
14243 ;;
14244 esac
14245 else
14246 case $host_os in
14247 aix[4-9]*)
14248 # All AIX code is PIC.
14249 if test "$host_cpu" = ia64; then
14250 # AIX 5 now supports IA64 processor
14251 lt_prog_compiler_static_CXX='-Bstatic'
14252 else
14253 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14254 fi
14255 ;;
14256 chorus*)
14257 case $cc_basename in
14258 cxch68*)
14259 # Green Hills C++ Compiler
14260 # _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"
14261 ;;
14262 esac
14263 ;;
14264 mingw* | cygwin* | os2* | pw32* | cegcc*)
14265 # This hack is so that the source file can tell whether it is being
14266 # built for inclusion in a dll (and should export symbols for example).
14267 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14268 ;;
14269 dgux*)
14270 case $cc_basename in
14271 ec++*)
14272 lt_prog_compiler_pic_CXX='-KPIC'
14273 ;;
14274 ghcx*)
14275 # Green Hills C++ Compiler
14276 lt_prog_compiler_pic_CXX='-pic'
14277 ;;
14278 *)
14279 ;;
14280 esac
14281 ;;
14282 freebsd* | dragonfly*)
14283 # FreeBSD uses GNU C++
14284 ;;
14285 hpux9* | hpux10* | hpux11*)
14286 case $cc_basename in
14287 CC*)
14288 lt_prog_compiler_wl_CXX='-Wl,'
14289 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14290 if test "$host_cpu" != ia64; then
14291 lt_prog_compiler_pic_CXX='+Z'
14292 fi
14293 ;;
14294 aCC*)
14295 lt_prog_compiler_wl_CXX='-Wl,'
14296 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14297 case $host_cpu in
14298 hppa*64*|ia64*)
14299 # +Z the default
14300 ;;
14301 *)
14302 lt_prog_compiler_pic_CXX='+Z'
14303 ;;
14304 esac
14305 ;;
14306 *)
14307 ;;
14308 esac
14309 ;;
14310 interix*)
14311 # This is c89, which is MS Visual C++ (no shared libs)
14312 # Anyone wants to do a port?
14313 ;;
14314 irix5* | irix6* | nonstopux*)
14315 case $cc_basename in
14316 CC*)
14317 lt_prog_compiler_wl_CXX='-Wl,'
14318 lt_prog_compiler_static_CXX='-non_shared'
14319 # CC pic flag -KPIC is the default.
14320 ;;
14321 *)
14322 ;;
14323 esac
14324 ;;
14325 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14326 case $cc_basename in
14327 KCC*)
14328 # KAI C++ Compiler
14329 lt_prog_compiler_wl_CXX='--backend -Wl,'
14330 lt_prog_compiler_pic_CXX='-fPIC'
14331 ;;
14332 ecpc* )
14333 # old Intel C++ for x86_64 which still supported -KPIC.
14334 lt_prog_compiler_wl_CXX='-Wl,'
14335 lt_prog_compiler_pic_CXX='-KPIC'
14336 lt_prog_compiler_static_CXX='-static'
14337 ;;
14338 icpc* )
14339 # Intel C++, used to be incompatible with GCC.
14340 # ICC 10 doesn't accept -KPIC any more.
14341 lt_prog_compiler_wl_CXX='-Wl,'
14342 lt_prog_compiler_pic_CXX='-fPIC'
14343 lt_prog_compiler_static_CXX='-static'
14344 ;;
14345 pgCC* | pgcpp*)
14346 # Portland Group C++ compiler
14347 lt_prog_compiler_wl_CXX='-Wl,'
14348 lt_prog_compiler_pic_CXX='-fpic'
14349 lt_prog_compiler_static_CXX='-Bstatic'
14350 ;;
14351 cxx*)
14352 # Compaq C++
14353 # Make sure the PIC flag is empty. It appears that all Alpha
14354 # Linux and Compaq Tru64 Unix objects are PIC.
14355 lt_prog_compiler_pic_CXX=
14356 lt_prog_compiler_static_CXX='-non_shared'
14357 ;;
14358 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14359 # IBM XL 8.0, 9.0 on PPC and BlueGene
14360 lt_prog_compiler_wl_CXX='-Wl,'
14361 lt_prog_compiler_pic_CXX='-qpic'
14362 lt_prog_compiler_static_CXX='-qstaticlink'
14363 ;;
14364 *)
14365 case `$CC -V 2>&1 | sed 5q` in
14366 *Sun\ C*)
14367 # Sun C++ 5.9
14368 lt_prog_compiler_pic_CXX='-KPIC'
14369 lt_prog_compiler_static_CXX='-Bstatic'
14370 lt_prog_compiler_wl_CXX='-Qoption ld '
14371 ;;
14372 esac
14373 ;;
14374 esac
14375 ;;
14376 lynxos*)
14377 ;;
14378 m88k*)
14379 ;;
14380 mvs*)
14381 case $cc_basename in
14382 cxx*)
14383 lt_prog_compiler_pic_CXX='-W c,exportall'
14384 ;;
14385 *)
14386 ;;
14387 esac
14388 ;;
14389 netbsd* | netbsdelf*-gnu)
14390 ;;
14391 *qnx* | *nto*)
14392 # QNX uses GNU C++, but need to define -shared option too, otherwise
14393 # it will coredump.
14394 lt_prog_compiler_pic_CXX='-fPIC -shared'
14395 ;;
14396 osf3* | osf4* | osf5*)
14397 case $cc_basename in
14398 KCC*)
14399 lt_prog_compiler_wl_CXX='--backend -Wl,'
14400 ;;
14401 RCC*)
14402 # Rational C++ 2.4.1
14403 lt_prog_compiler_pic_CXX='-pic'
14404 ;;
14405 cxx*)
14406 # Digital/Compaq C++
14407 lt_prog_compiler_wl_CXX='-Wl,'
14408 # Make sure the PIC flag is empty. It appears that all Alpha
14409 # Linux and Compaq Tru64 Unix objects are PIC.
14410 lt_prog_compiler_pic_CXX=
14411 lt_prog_compiler_static_CXX='-non_shared'
14412 ;;
14413 *)
14414 ;;
14415 esac
14416 ;;
14417 psos*)
14418 ;;
14419 solaris*)
14420 case $cc_basename in
14421 CC* | sunCC*)
14422 # Sun C++ 4.2, 5.x and Centerline C++
14423 lt_prog_compiler_pic_CXX='-KPIC'
14424 lt_prog_compiler_static_CXX='-Bstatic'
14425 lt_prog_compiler_wl_CXX='-Qoption ld '
14426 ;;
14427 gcx*)
14428 # Green Hills C++ Compiler
14429 lt_prog_compiler_pic_CXX='-PIC'
14430 ;;
14431 *)
14432 ;;
14433 esac
14434 ;;
14435 sunos4*)
14436 case $cc_basename in
14437 CC*)
14438 # Sun C++ 4.x
14439 lt_prog_compiler_pic_CXX='-pic'
14440 lt_prog_compiler_static_CXX='-Bstatic'
14441 ;;
14442 lcc*)
14443 # Lucid
14444 lt_prog_compiler_pic_CXX='-pic'
14445 ;;
14446 *)
14447 ;;
14448 esac
14449 ;;
14450 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14451 case $cc_basename in
14452 CC*)
14453 lt_prog_compiler_wl_CXX='-Wl,'
14454 lt_prog_compiler_pic_CXX='-KPIC'
14455 lt_prog_compiler_static_CXX='-Bstatic'
14456 ;;
14457 esac
14458 ;;
14459 tandem*)
14460 case $cc_basename in
14461 NCC*)
14462 # NonStop-UX NCC 3.20
14463 lt_prog_compiler_pic_CXX='-KPIC'
14464 ;;
14465 *)
14466 ;;
14467 esac
14468 ;;
14469 vxworks*)
14470 ;;
14471 *)
14472 lt_prog_compiler_can_build_shared_CXX=no
14473 ;;
14474 esac
14475 fi
14476
14477 case $host_os in
14478 # For platforms which do not support PIC, -DPIC is meaningless:
14479 *djgpp*)
14480 lt_prog_compiler_pic_CXX=
14481 ;;
14482 *)
14483 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14484 ;;
14485 esac
14486
14487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14488 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14489 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14490 $as_echo_n "(cached) " >&6
14491 else
14492 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14493 fi
14494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14495 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14496 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14497
14498 #
14499 # Check to make sure the PIC flag actually works.
14500 #
14501 if test -n "$lt_prog_compiler_pic_CXX"; then
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14503 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14504 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14505 $as_echo_n "(cached) " >&6
14506 else
14507 lt_cv_prog_compiler_pic_works_CXX=no
14508 ac_outfile=conftest.$ac_objext
14509 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14510 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14511 # Insert the option either (1) after the last *FLAGS variable, or
14512 # (2) before a word containing "conftest.", or (3) at the end.
14513 # Note that $ac_compile itself does not contain backslashes and begins
14514 # with a dollar sign (not a hyphen), so the echo should work correctly.
14515 # The option is referenced via a variable to avoid confusing sed.
14516 lt_compile=`echo "$ac_compile" | $SED \
14517 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14518 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14519 -e 's:$: $lt_compiler_flag:'`
14520 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14521 (eval "$lt_compile" 2>conftest.err)
14522 ac_status=$?
14523 cat conftest.err >&5
14524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14525 if (exit $ac_status) && test -s "$ac_outfile"; then
14526 # The compiler can only warn and ignore the option if not recognized
14527 # So say no if there are warnings other than the usual output.
14528 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14529 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14530 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14531 lt_cv_prog_compiler_pic_works_CXX=yes
14532 fi
14533 fi
14534 $RM conftest*
14535
14536 fi
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14538 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14539
14540 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14541 case $lt_prog_compiler_pic_CXX in
14542 "" | " "*) ;;
14543 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14544 esac
14545 else
14546 lt_prog_compiler_pic_CXX=
14547 lt_prog_compiler_can_build_shared_CXX=no
14548 fi
14549
14550 fi
14551
14552
14553
14554
14555
14556 #
14557 # Check to make sure the static flag actually works.
14558 #
14559 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14561 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14562 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14563 $as_echo_n "(cached) " >&6
14564 else
14565 lt_cv_prog_compiler_static_works_CXX=no
14566 save_LDFLAGS="$LDFLAGS"
14567 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14568 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14569 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14570 # The linker can only warn and ignore the option if not recognized
14571 # So say no if there are warnings
14572 if test -s conftest.err; then
14573 # Append any errors to the config.log.
14574 cat conftest.err 1>&5
14575 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14576 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14577 if diff conftest.exp conftest.er2 >/dev/null; then
14578 lt_cv_prog_compiler_static_works_CXX=yes
14579 fi
14580 else
14581 lt_cv_prog_compiler_static_works_CXX=yes
14582 fi
14583 fi
14584 $RM -r conftest*
14585 LDFLAGS="$save_LDFLAGS"
14586
14587 fi
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14589 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14590
14591 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14592 :
14593 else
14594 lt_prog_compiler_static_CXX=
14595 fi
14596
14597
14598
14599
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14601 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14602 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14603 $as_echo_n "(cached) " >&6
14604 else
14605 lt_cv_prog_compiler_c_o_CXX=no
14606 $RM -r conftest 2>/dev/null
14607 mkdir conftest
14608 cd conftest
14609 mkdir out
14610 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14611
14612 lt_compiler_flag="-o out/conftest2.$ac_objext"
14613 # Insert the option either (1) after the last *FLAGS variable, or
14614 # (2) before a word containing "conftest.", or (3) at the end.
14615 # Note that $ac_compile itself does not contain backslashes and begins
14616 # with a dollar sign (not a hyphen), so the echo should work correctly.
14617 lt_compile=`echo "$ac_compile" | $SED \
14618 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14619 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14620 -e 's:$: $lt_compiler_flag:'`
14621 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14622 (eval "$lt_compile" 2>out/conftest.err)
14623 ac_status=$?
14624 cat out/conftest.err >&5
14625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14627 then
14628 # The compiler can only warn and ignore the option if not recognized
14629 # So say no if there are warnings
14630 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14631 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14632 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14633 lt_cv_prog_compiler_c_o_CXX=yes
14634 fi
14635 fi
14636 chmod u+w . 2>&5
14637 $RM conftest*
14638 # SGI C++ compiler will create directory out/ii_files/ for
14639 # template instantiation
14640 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14641 $RM out/* && rmdir out
14642 cd ..
14643 $RM -r conftest
14644 $RM conftest*
14645
14646 fi
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14648 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14649
14650
14651
14652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14653 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14654 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14655 $as_echo_n "(cached) " >&6
14656 else
14657 lt_cv_prog_compiler_c_o_CXX=no
14658 $RM -r conftest 2>/dev/null
14659 mkdir conftest
14660 cd conftest
14661 mkdir out
14662 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14663
14664 lt_compiler_flag="-o out/conftest2.$ac_objext"
14665 # Insert the option either (1) after the last *FLAGS variable, or
14666 # (2) before a word containing "conftest.", or (3) at the end.
14667 # Note that $ac_compile itself does not contain backslashes and begins
14668 # with a dollar sign (not a hyphen), so the echo should work correctly.
14669 lt_compile=`echo "$ac_compile" | $SED \
14670 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14671 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14672 -e 's:$: $lt_compiler_flag:'`
14673 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14674 (eval "$lt_compile" 2>out/conftest.err)
14675 ac_status=$?
14676 cat out/conftest.err >&5
14677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14679 then
14680 # The compiler can only warn and ignore the option if not recognized
14681 # So say no if there are warnings
14682 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14683 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14684 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14685 lt_cv_prog_compiler_c_o_CXX=yes
14686 fi
14687 fi
14688 chmod u+w . 2>&5
14689 $RM conftest*
14690 # SGI C++ compiler will create directory out/ii_files/ for
14691 # template instantiation
14692 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14693 $RM out/* && rmdir out
14694 cd ..
14695 $RM -r conftest
14696 $RM conftest*
14697
14698 fi
14699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14700 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14701
14702
14703
14704
14705 hard_links="nottested"
14706 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14707 # do not overwrite the value of need_locks provided by the user
14708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14709 $as_echo_n "checking if we can lock with hard links... " >&6; }
14710 hard_links=yes
14711 $RM conftest*
14712 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14713 touch conftest.a
14714 ln conftest.a conftest.b 2>&5 || hard_links=no
14715 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14717 $as_echo "$hard_links" >&6; }
14718 if test "$hard_links" = no; then
14719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14720 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14721 need_locks=warn
14722 fi
14723 else
14724 need_locks=no
14725 fi
14726
14727
14728
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14730 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14731
14732 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14733 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14734 case $host_os in
14735 aix[4-9]*)
14736 # If we're using GNU nm, then we don't want the "-C" option.
14737 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14738 # Also, AIX nm treats weak defined symbols like other global defined
14739 # symbols, whereas GNU nm marks them as "W".
14740 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14741 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14742 else
14743 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14744 fi
14745 ;;
14746 pw32*)
14747 export_symbols_cmds_CXX="$ltdll_cmds"
14748 ;;
14749 cygwin* | mingw* | cegcc*)
14750 case $cc_basename in
14751 cl*)
14752 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14753 ;;
14754 *)
14755 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'
14756 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14757 ;;
14758 esac
14759 ;;
14760 linux* | k*bsd*-gnu | gnu*)
14761 link_all_deplibs_CXX=no
14762 ;;
14763 *)
14764 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14765 ;;
14766 esac
14767
14768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14769 $as_echo "$ld_shlibs_CXX" >&6; }
14770 test "$ld_shlibs_CXX" = no && can_build_shared=no
14771
14772 with_gnu_ld_CXX=$with_gnu_ld
14773
14774
14775
14776
14777
14778
14779 #
14780 # Do we need to explicitly link libc?
14781 #
14782 case "x$archive_cmds_need_lc_CXX" in
14783 x|xyes)
14784 # Assume -lc should be added
14785 archive_cmds_need_lc_CXX=yes
14786
14787 if test "$enable_shared" = yes && test "$GCC" = yes; then
14788 case $archive_cmds_CXX in
14789 *'~'*)
14790 # FIXME: we may have to deal with multi-command sequences.
14791 ;;
14792 '$CC '*)
14793 # Test whether the compiler implicitly links with -lc since on some
14794 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14795 # to ld, don't add -lc before -lgcc.
14796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14797 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14798 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14799 $as_echo_n "(cached) " >&6
14800 else
14801 $RM conftest*
14802 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14803
14804 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14805 (eval $ac_compile) 2>&5
14806 ac_status=$?
14807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14808 test $ac_status = 0; } 2>conftest.err; then
14809 soname=conftest
14810 lib=conftest
14811 libobjs=conftest.$ac_objext
14812 deplibs=
14813 wl=$lt_prog_compiler_wl_CXX
14814 pic_flag=$lt_prog_compiler_pic_CXX
14815 compiler_flags=-v
14816 linker_flags=-v
14817 verstring=
14818 output_objdir=.
14819 libname=conftest
14820 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14821 allow_undefined_flag_CXX=
14822 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14823 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14824 ac_status=$?
14825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14826 test $ac_status = 0; }
14827 then
14828 lt_cv_archive_cmds_need_lc_CXX=no
14829 else
14830 lt_cv_archive_cmds_need_lc_CXX=yes
14831 fi
14832 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14833 else
14834 cat conftest.err 1>&5
14835 fi
14836 $RM conftest*
14837
14838 fi
14839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14840 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14841 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14842 ;;
14843 esac
14844 fi
14845 ;;
14846 esac
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908
14909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14910 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14911
14912 library_names_spec=
14913 libname_spec='lib$name'
14914 soname_spec=
14915 shrext_cmds=".so"
14916 postinstall_cmds=
14917 postuninstall_cmds=
14918 finish_cmds=
14919 finish_eval=
14920 shlibpath_var=
14921 shlibpath_overrides_runpath=unknown
14922 version_type=none
14923 dynamic_linker="$host_os ld.so"
14924 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14925 need_lib_prefix=unknown
14926 hardcode_into_libs=no
14927
14928 # when you set need_version to no, make sure it does not cause -set_version
14929 # flags to be left without arguments
14930 need_version=unknown
14931
14932 case $host_os in
14933 aix3*)
14934 version_type=linux # correct to gnu/linux during the next big refactor
14935 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14936 shlibpath_var=LIBPATH
14937
14938 # AIX 3 has no versioning support, so we append a major version to the name.
14939 soname_spec='${libname}${release}${shared_ext}$major'
14940 ;;
14941
14942 aix[4-9]*)
14943 version_type=linux # correct to gnu/linux during the next big refactor
14944 need_lib_prefix=no
14945 need_version=no
14946 hardcode_into_libs=yes
14947 if test "$host_cpu" = ia64; then
14948 # AIX 5 supports IA64
14949 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14950 shlibpath_var=LD_LIBRARY_PATH
14951 else
14952 # With GCC up to 2.95.x, collect2 would create an import file
14953 # for dependence libraries. The import file would start with
14954 # the line `#! .'. This would cause the generated library to
14955 # depend on `.', always an invalid library. This was fixed in
14956 # development snapshots of GCC prior to 3.0.
14957 case $host_os in
14958 aix4 | aix4.[01] | aix4.[01].*)
14959 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14960 echo ' yes '
14961 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14962 :
14963 else
14964 can_build_shared=no
14965 fi
14966 ;;
14967 esac
14968 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14969 # soname into executable. Probably we can add versioning support to
14970 # collect2, so additional links can be useful in future.
14971 if test "$aix_use_runtimelinking" = yes; then
14972 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14973 # instead of lib<name>.a to let people know that these are not
14974 # typical AIX shared libraries.
14975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14976 else
14977 # We preserve .a as extension for shared libraries through AIX4.2
14978 # and later when we are not doing run time linking.
14979 library_names_spec='${libname}${release}.a $libname.a'
14980 soname_spec='${libname}${release}${shared_ext}$major'
14981 fi
14982 shlibpath_var=LIBPATH
14983 fi
14984 ;;
14985
14986 amigaos*)
14987 case $host_cpu in
14988 powerpc)
14989 # Since July 2007 AmigaOS4 officially supports .so libraries.
14990 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14992 ;;
14993 m68k)
14994 library_names_spec='$libname.ixlibrary $libname.a'
14995 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14996 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14997 ;;
14998 esac
14999 ;;
15000
15001 beos*)
15002 library_names_spec='${libname}${shared_ext}'
15003 dynamic_linker="$host_os ld.so"
15004 shlibpath_var=LIBRARY_PATH
15005 ;;
15006
15007 bsdi[45]*)
15008 version_type=linux # correct to gnu/linux during the next big refactor
15009 need_version=no
15010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15011 soname_spec='${libname}${release}${shared_ext}$major'
15012 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15013 shlibpath_var=LD_LIBRARY_PATH
15014 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15015 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15016 # the default ld.so.conf also contains /usr/contrib/lib and
15017 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15018 # libtool to hard-code these into programs
15019 ;;
15020
15021 cygwin* | mingw* | pw32* | cegcc*)
15022 version_type=windows
15023 shrext_cmds=".dll"
15024 need_version=no
15025 need_lib_prefix=no
15026
15027 case $GCC,$cc_basename in
15028 yes,*)
15029 # gcc
15030 library_names_spec='$libname.dll.a'
15031 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15032 postinstall_cmds='base_file=`basename \${file}`~
15033 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15034 dldir=$destdir/`dirname \$dlpath`~
15035 test -d \$dldir || mkdir -p \$dldir~
15036 $install_prog $dir/$dlname \$dldir/$dlname~
15037 chmod a+x \$dldir/$dlname~
15038 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15039 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15040 fi'
15041 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15042 dlpath=$dir/\$dldll~
15043 $RM \$dlpath'
15044 shlibpath_overrides_runpath=yes
15045
15046 case $host_os in
15047 cygwin*)
15048 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15049 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15050
15051 ;;
15052 mingw* | cegcc*)
15053 # MinGW DLLs use traditional 'lib' prefix
15054 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15055 ;;
15056 pw32*)
15057 # pw32 DLLs use 'pw' prefix rather than 'lib'
15058 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15059 ;;
15060 esac
15061 dynamic_linker='Win32 ld.exe'
15062 ;;
15063
15064 *,cl*)
15065 # Native MSVC
15066 libname_spec='$name'
15067 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15068 library_names_spec='${libname}.dll.lib'
15069
15070 case $build_os in
15071 mingw*)
15072 sys_lib_search_path_spec=
15073 lt_save_ifs=$IFS
15074 IFS=';'
15075 for lt_path in $LIB
15076 do
15077 IFS=$lt_save_ifs
15078 # Let DOS variable expansion print the short 8.3 style file name.
15079 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15080 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15081 done
15082 IFS=$lt_save_ifs
15083 # Convert to MSYS style.
15084 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15085 ;;
15086 cygwin*)
15087 # Convert to unix form, then to dos form, then back to unix form
15088 # but this time dos style (no spaces!) so that the unix form looks
15089 # like /cygdrive/c/PROGRA~1:/cygdr...
15090 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15091 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15092 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15093 ;;
15094 *)
15095 sys_lib_search_path_spec="$LIB"
15096 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15097 # It is most probably a Windows format PATH.
15098 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15099 else
15100 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15101 fi
15102 # FIXME: find the short name or the path components, as spaces are
15103 # common. (e.g. "Program Files" -> "PROGRA~1")
15104 ;;
15105 esac
15106
15107 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15108 postinstall_cmds='base_file=`basename \${file}`~
15109 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15110 dldir=$destdir/`dirname \$dlpath`~
15111 test -d \$dldir || mkdir -p \$dldir~
15112 $install_prog $dir/$dlname \$dldir/$dlname'
15113 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15114 dlpath=$dir/\$dldll~
15115 $RM \$dlpath'
15116 shlibpath_overrides_runpath=yes
15117 dynamic_linker='Win32 link.exe'
15118 ;;
15119
15120 *)
15121 # Assume MSVC wrapper
15122 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15123 dynamic_linker='Win32 ld.exe'
15124 ;;
15125 esac
15126 # FIXME: first we should search . and the directory the executable is in
15127 shlibpath_var=PATH
15128 ;;
15129
15130 darwin* | rhapsody*)
15131 dynamic_linker="$host_os dyld"
15132 version_type=darwin
15133 need_lib_prefix=no
15134 need_version=no
15135 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15136 soname_spec='${libname}${release}${major}$shared_ext'
15137 shlibpath_overrides_runpath=yes
15138 shlibpath_var=DYLD_LIBRARY_PATH
15139 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15140
15141 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15142 ;;
15143
15144 dgux*)
15145 version_type=linux # correct to gnu/linux during the next big refactor
15146 need_lib_prefix=no
15147 need_version=no
15148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15149 soname_spec='${libname}${release}${shared_ext}$major'
15150 shlibpath_var=LD_LIBRARY_PATH
15151 ;;
15152
15153 freebsd* | dragonfly*)
15154 # DragonFly does not have aout. When/if they implement a new
15155 # versioning mechanism, adjust this.
15156 if test -x /usr/bin/objformat; then
15157 objformat=`/usr/bin/objformat`
15158 else
15159 case $host_os in
15160 freebsd[23].*) objformat=aout ;;
15161 *) objformat=elf ;;
15162 esac
15163 fi
15164 version_type=freebsd-$objformat
15165 case $version_type in
15166 freebsd-elf*)
15167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15168 need_version=no
15169 need_lib_prefix=no
15170 ;;
15171 freebsd-*)
15172 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15173 need_version=yes
15174 ;;
15175 esac
15176 shlibpath_var=LD_LIBRARY_PATH
15177 case $host_os in
15178 freebsd2.*)
15179 shlibpath_overrides_runpath=yes
15180 ;;
15181 freebsd3.[01]* | freebsdelf3.[01]*)
15182 shlibpath_overrides_runpath=yes
15183 hardcode_into_libs=yes
15184 ;;
15185 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15186 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15187 shlibpath_overrides_runpath=no
15188 hardcode_into_libs=yes
15189 ;;
15190 *) # from 4.6 on, and DragonFly
15191 shlibpath_overrides_runpath=yes
15192 hardcode_into_libs=yes
15193 ;;
15194 esac
15195 ;;
15196
15197 haiku*)
15198 version_type=linux # correct to gnu/linux during the next big refactor
15199 need_lib_prefix=no
15200 need_version=no
15201 dynamic_linker="$host_os runtime_loader"
15202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15203 soname_spec='${libname}${release}${shared_ext}$major'
15204 shlibpath_var=LIBRARY_PATH
15205 shlibpath_overrides_runpath=yes
15206 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15207 hardcode_into_libs=yes
15208 ;;
15209
15210 hpux9* | hpux10* | hpux11*)
15211 # Give a soname corresponding to the major version so that dld.sl refuses to
15212 # link against other versions.
15213 version_type=sunos
15214 need_lib_prefix=no
15215 need_version=no
15216 case $host_cpu in
15217 ia64*)
15218 shrext_cmds='.so'
15219 hardcode_into_libs=yes
15220 dynamic_linker="$host_os dld.so"
15221 shlibpath_var=LD_LIBRARY_PATH
15222 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15224 soname_spec='${libname}${release}${shared_ext}$major'
15225 if test "X$HPUX_IA64_MODE" = X32; then
15226 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15227 else
15228 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15229 fi
15230 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15231 ;;
15232 hppa*64*)
15233 shrext_cmds='.sl'
15234 hardcode_into_libs=yes
15235 dynamic_linker="$host_os dld.sl"
15236 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15237 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15239 soname_spec='${libname}${release}${shared_ext}$major'
15240 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15241 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15242 ;;
15243 *)
15244 shrext_cmds='.sl'
15245 dynamic_linker="$host_os dld.sl"
15246 shlibpath_var=SHLIB_PATH
15247 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15249 soname_spec='${libname}${release}${shared_ext}$major'
15250 ;;
15251 esac
15252 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15253 postinstall_cmds='chmod 555 $lib'
15254 # or fails outright, so override atomically:
15255 install_override_mode=555
15256 ;;
15257
15258 interix[3-9]*)
15259 version_type=linux # correct to gnu/linux during the next big refactor
15260 need_lib_prefix=no
15261 need_version=no
15262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15263 soname_spec='${libname}${release}${shared_ext}$major'
15264 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15265 shlibpath_var=LD_LIBRARY_PATH
15266 shlibpath_overrides_runpath=no
15267 hardcode_into_libs=yes
15268 ;;
15269
15270 irix5* | irix6* | nonstopux*)
15271 case $host_os in
15272 nonstopux*) version_type=nonstopux ;;
15273 *)
15274 if test "$lt_cv_prog_gnu_ld" = yes; then
15275 version_type=linux # correct to gnu/linux during the next big refactor
15276 else
15277 version_type=irix
15278 fi ;;
15279 esac
15280 need_lib_prefix=no
15281 need_version=no
15282 soname_spec='${libname}${release}${shared_ext}$major'
15283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15284 case $host_os in
15285 irix5* | nonstopux*)
15286 libsuff= shlibsuff=
15287 ;;
15288 *)
15289 case $LD in # libtool.m4 will add one of these switches to LD
15290 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15291 libsuff= shlibsuff= libmagic=32-bit;;
15292 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15293 libsuff=32 shlibsuff=N32 libmagic=N32;;
15294 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15295 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15296 *) libsuff= shlibsuff= libmagic=never-match;;
15297 esac
15298 ;;
15299 esac
15300 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15301 shlibpath_overrides_runpath=no
15302 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15303 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15304 hardcode_into_libs=yes
15305 ;;
15306
15307 # No shared lib support for Linux oldld, aout, or coff.
15308 linux*oldld* | linux*aout* | linux*coff*)
15309 dynamic_linker=no
15310 ;;
15311
15312 # This must be glibc/ELF.
15313 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15314 version_type=linux # correct to gnu/linux during the next big refactor
15315 need_lib_prefix=no
15316 need_version=no
15317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15318 soname_spec='${libname}${release}${shared_ext}$major'
15319 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15320 shlibpath_var=LD_LIBRARY_PATH
15321 shlibpath_overrides_runpath=no
15322
15323 # Some binutils ld are patched to set DT_RUNPATH
15324 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15325 $as_echo_n "(cached) " >&6
15326 else
15327 lt_cv_shlibpath_overrides_runpath=no
15328 save_LDFLAGS=$LDFLAGS
15329 save_libdir=$libdir
15330 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15331 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15333 /* end confdefs.h. */
15334
15335 int
15336 main ()
15337 {
15338
15339 ;
15340 return 0;
15341 }
15342 _ACEOF
15343 if ac_fn_cxx_try_link "$LINENO"; then :
15344 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15345 lt_cv_shlibpath_overrides_runpath=yes
15346 fi
15347 fi
15348 rm -f core conftest.err conftest.$ac_objext \
15349 conftest$ac_exeext conftest.$ac_ext
15350 LDFLAGS=$save_LDFLAGS
15351 libdir=$save_libdir
15352
15353 fi
15354
15355 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15356
15357 # This implies no fast_install, which is unacceptable.
15358 # Some rework will be needed to allow for fast_install
15359 # before this can be enabled.
15360 hardcode_into_libs=yes
15361
15362 # Append ld.so.conf contents to the search path
15363 if test -f /etc/ld.so.conf; then
15364 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' ' '`
15365 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15366 fi
15367
15368 # We used to test for /lib/ld.so.1 and disable shared libraries on
15369 # powerpc, because MkLinux only supported shared libraries with the
15370 # GNU dynamic linker. Since this was broken with cross compilers,
15371 # most powerpc-linux boxes support dynamic linking these days and
15372 # people can always --disable-shared, the test was removed, and we
15373 # assume the GNU/Linux dynamic linker is in use.
15374 dynamic_linker='GNU/Linux ld.so'
15375 ;;
15376
15377 netbsdelf*-gnu)
15378 version_type=linux
15379 need_lib_prefix=no
15380 need_version=no
15381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15382 soname_spec='${libname}${release}${shared_ext}$major'
15383 shlibpath_var=LD_LIBRARY_PATH
15384 shlibpath_overrides_runpath=no
15385 hardcode_into_libs=yes
15386 dynamic_linker='NetBSD ld.elf_so'
15387 ;;
15388
15389 netbsd*)
15390 version_type=sunos
15391 need_lib_prefix=no
15392 need_version=no
15393 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15395 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15396 dynamic_linker='NetBSD (a.out) ld.so'
15397 else
15398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15399 soname_spec='${libname}${release}${shared_ext}$major'
15400 dynamic_linker='NetBSD ld.elf_so'
15401 fi
15402 shlibpath_var=LD_LIBRARY_PATH
15403 shlibpath_overrides_runpath=yes
15404 hardcode_into_libs=yes
15405 ;;
15406
15407 newsos6)
15408 version_type=linux # correct to gnu/linux during the next big refactor
15409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15410 shlibpath_var=LD_LIBRARY_PATH
15411 shlibpath_overrides_runpath=yes
15412 ;;
15413
15414 *nto* | *qnx*)
15415 version_type=qnx
15416 need_lib_prefix=no
15417 need_version=no
15418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15419 soname_spec='${libname}${release}${shared_ext}$major'
15420 shlibpath_var=LD_LIBRARY_PATH
15421 shlibpath_overrides_runpath=no
15422 hardcode_into_libs=yes
15423 dynamic_linker='ldqnx.so'
15424 ;;
15425
15426 openbsd*)
15427 version_type=sunos
15428 sys_lib_dlsearch_path_spec="/usr/lib"
15429 need_lib_prefix=no
15430 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15431 case $host_os in
15432 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15433 *) need_version=no ;;
15434 esac
15435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15436 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15437 shlibpath_var=LD_LIBRARY_PATH
15438 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15439 case $host_os in
15440 openbsd2.[89] | openbsd2.[89].*)
15441 shlibpath_overrides_runpath=no
15442 ;;
15443 *)
15444 shlibpath_overrides_runpath=yes
15445 ;;
15446 esac
15447 else
15448 shlibpath_overrides_runpath=yes
15449 fi
15450 ;;
15451
15452 os2*)
15453 libname_spec='$name'
15454 shrext_cmds=".dll"
15455 need_lib_prefix=no
15456 library_names_spec='$libname${shared_ext} $libname.a'
15457 dynamic_linker='OS/2 ld.exe'
15458 shlibpath_var=LIBPATH
15459 ;;
15460
15461 osf3* | osf4* | osf5*)
15462 version_type=osf
15463 need_lib_prefix=no
15464 need_version=no
15465 soname_spec='${libname}${release}${shared_ext}$major'
15466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15467 shlibpath_var=LD_LIBRARY_PATH
15468 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15469 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15470 ;;
15471
15472 rdos*)
15473 dynamic_linker=no
15474 ;;
15475
15476 solaris*)
15477 version_type=linux # correct to gnu/linux during the next big refactor
15478 need_lib_prefix=no
15479 need_version=no
15480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15481 soname_spec='${libname}${release}${shared_ext}$major'
15482 shlibpath_var=LD_LIBRARY_PATH
15483 shlibpath_overrides_runpath=yes
15484 hardcode_into_libs=yes
15485 # ldd complains unless libraries are executable
15486 postinstall_cmds='chmod +x $lib'
15487 ;;
15488
15489 sunos4*)
15490 version_type=sunos
15491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15492 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15493 shlibpath_var=LD_LIBRARY_PATH
15494 shlibpath_overrides_runpath=yes
15495 if test "$with_gnu_ld" = yes; then
15496 need_lib_prefix=no
15497 fi
15498 need_version=yes
15499 ;;
15500
15501 sysv4 | sysv4.3*)
15502 version_type=linux # correct to gnu/linux during the next big refactor
15503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15504 soname_spec='${libname}${release}${shared_ext}$major'
15505 shlibpath_var=LD_LIBRARY_PATH
15506 case $host_vendor in
15507 sni)
15508 shlibpath_overrides_runpath=no
15509 need_lib_prefix=no
15510 runpath_var=LD_RUN_PATH
15511 ;;
15512 siemens)
15513 need_lib_prefix=no
15514 ;;
15515 motorola)
15516 need_lib_prefix=no
15517 need_version=no
15518 shlibpath_overrides_runpath=no
15519 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15520 ;;
15521 esac
15522 ;;
15523
15524 sysv4*MP*)
15525 if test -d /usr/nec ;then
15526 version_type=linux # correct to gnu/linux during the next big refactor
15527 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15528 soname_spec='$libname${shared_ext}.$major'
15529 shlibpath_var=LD_LIBRARY_PATH
15530 fi
15531 ;;
15532
15533 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15534 version_type=freebsd-elf
15535 need_lib_prefix=no
15536 need_version=no
15537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15538 soname_spec='${libname}${release}${shared_ext}$major'
15539 shlibpath_var=LD_LIBRARY_PATH
15540 shlibpath_overrides_runpath=yes
15541 hardcode_into_libs=yes
15542 if test "$with_gnu_ld" = yes; then
15543 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15544 else
15545 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15546 case $host_os in
15547 sco3.2v5*)
15548 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15549 ;;
15550 esac
15551 fi
15552 sys_lib_dlsearch_path_spec='/usr/lib'
15553 ;;
15554
15555 tpf*)
15556 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15557 version_type=linux # correct to gnu/linux during the next big refactor
15558 need_lib_prefix=no
15559 need_version=no
15560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15561 shlibpath_var=LD_LIBRARY_PATH
15562 shlibpath_overrides_runpath=no
15563 hardcode_into_libs=yes
15564 ;;
15565
15566 uts4*)
15567 version_type=linux # correct to gnu/linux during the next big refactor
15568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15569 soname_spec='${libname}${release}${shared_ext}$major'
15570 shlibpath_var=LD_LIBRARY_PATH
15571 ;;
15572
15573 *)
15574 dynamic_linker=no
15575 ;;
15576 esac
15577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15578 $as_echo "$dynamic_linker" >&6; }
15579 test "$dynamic_linker" = no && can_build_shared=no
15580
15581 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15582 if test "$GCC" = yes; then
15583 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15584 fi
15585
15586 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15587 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15588 fi
15589 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15590 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15591 fi
15592
15593
15594
15595
15596
15597
15598
15599
15600
15601
15602
15603
15604
15605
15606
15607
15608
15609
15610
15611
15612
15613
15614
15615
15616
15617
15618
15619
15620
15621
15622
15623
15624
15625
15626
15627
15628
15629
15630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15631 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15632 hardcode_action_CXX=
15633 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15634 test -n "$runpath_var_CXX" ||
15635 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15636
15637 # We can hardcode non-existent directories.
15638 if test "$hardcode_direct_CXX" != no &&
15639 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15640 # have to relink, otherwise we might link with an installed library
15641 # when we should be linking with a yet-to-be-installed one
15642 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15643 test "$hardcode_minus_L_CXX" != no; then
15644 # Linking always hardcodes the temporary library directory.
15645 hardcode_action_CXX=relink
15646 else
15647 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15648 hardcode_action_CXX=immediate
15649 fi
15650 else
15651 # We cannot hardcode anything, or else we can only hardcode existing
15652 # directories.
15653 hardcode_action_CXX=unsupported
15654 fi
15655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15656 $as_echo "$hardcode_action_CXX" >&6; }
15657
15658 if test "$hardcode_action_CXX" = relink ||
15659 test "$inherit_rpath_CXX" = yes; then
15660 # Fast installation is not supported
15661 enable_fast_install=no
15662 elif test "$shlibpath_overrides_runpath" = yes ||
15663 test "$enable_shared" = no; then
15664 # Fast installation is not necessary
15665 enable_fast_install=needless
15666 fi
15667
15668
15669
15670
15671
15672
15673
15674 fi # test -n "$compiler"
15675
15676 CC=$lt_save_CC
15677 CFLAGS=$lt_save_CFLAGS
15678 LDCXX=$LD
15679 LD=$lt_save_LD
15680 GCC=$lt_save_GCC
15681 with_gnu_ld=$lt_save_with_gnu_ld
15682 lt_cv_path_LDCXX=$lt_cv_path_LD
15683 lt_cv_path_LD=$lt_save_path_LD
15684 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15685 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15686 fi # test "$_lt_caught_CXX_error" != yes
15687
15688 ac_ext=cpp
15689 ac_cpp='$CXXCPP $CPPFLAGS'
15690 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15691 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15692 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708 ac_config_commands="$ac_config_commands libtool"
15709
15710
15711
15712
15713 # Only expand once:
15714
15715
15716
15717 enable_dlopen=yes
15718
15719
15720
15721 CFLAGS="$cflags_reset"
15722
15723 msg_pkg_config_missing="'pkg-config' is missing - adapter detection will not be available"
15724 msg_pthread_missing="required library 'pthread' is missing"
15725 msg_dl_missing="required library 'dl' is missing"
15726 msg_udev_missing="library 'udev' is missing - adapter detection will not be available"
15727 msg_dirent_missing="dirent.h header is missing - adapter detection will not be available"
15728 msg_lockdev_missing="library 'liblockdev' is missing"
15729 msg_rpi_api_missing="Raspberry Pi API not found or incompatible with libCEC"
15730 msg_rpi_will_check="will check for RPi support"
15731 msg_rpi_unsupported_target="will not check for RPi support (unsupported cpu: ${host_cpu})"
15732 msg_required_header_missing="required header is missing"
15733
15734 ## debugging symbols
15735 # Check whether --enable-debug was given.
15736 if test "${enable_debug+set}" = set; then :
15737 enableval=$enable_debug; use_debug=$enableval
15738 else
15739 use_debug=no
15740 fi
15741
15742
15743 ## optimisation
15744 # Check whether --enable-optimisation was given.
15745 if test "${enable_optimisation+set}" = set; then :
15746 enableval=$enable_optimisation; use_optimisation=$enableval
15747 else
15748 use_optimisation=yes
15749 fi
15750
15751
15752 ## TDA995x support
15753 # Check whether --enable-cubox was given.
15754 if test "${enable_cubox+set}" = set; then :
15755 enableval=$enable_cubox; use_tda995x=$enableval
15756 else
15757 use_tda995x=no
15758 fi
15759
15760
15761 ## Optional path to the tda995x dev toolkit
15762
15763 # Check whether --with-tda995x-toolkit-path was given.
15764 if test "${with_tda995x_toolkit_path+set}" = set; then :
15765 withval=$with_tda995x_toolkit_path; TDA995X_CFLAGS="-I$withval/inc"
15766 else
15767 TDA995X_CFLAGS="-I\$(abs_top_srcdir)/nxp_hdmi/inc"
15768 fi
15769
15770
15771 ## Exynos support
15772 # Check whether --enable-exynos was given.
15773 if test "${enable_exynos+set}" = set; then :
15774 enableval=$enable_exynos; use_exynos=$enableval
15775 else
15776 use_exynos=yes
15777 fi
15778
15779
15780 ## Raspberry Pi support
15781 # Check whether --enable-rpi was given.
15782 if test "${enable_rpi+set}" = set; then :
15783 enableval=$enable_rpi; use_rpi=$enableval
15784 else
15785 use_rpi=auto
15786 fi
15787
15788
15789 ## Optional path to the RPi's dev headers
15790
15791 # Check whether --with-rpi-include-path was given.
15792 if test "${with_rpi_include_path+set}" = set; then :
15793 withval=$with_rpi_include_path; RPI_CFLAGS="-I$withval -I$withval/interface/vcos/pthreads -I$withval/interface/vmcs_host/linux"
15794 fi
15795
15796
15797 ## Optional path to libbcm_host.so
15798
15799 # Check whether --with-rpi-lib-path was given.
15800 if test "${with_rpi_lib_path+set}" = set; then :
15801 withval=$with_rpi_lib_path; RPI_LIBS="-L$withval"
15802 fi
15803
15804
15805 ## only check for the RPi API on ARM targets
15806 if test "x$use_rpi" != "xno"; then
15807 case "${host_cpu}" in
15808 arm*)
15809 { $as_echo "$as_me:${as_lineno-$LINENO}: $msg_rpi_will_check" >&5
15810 $as_echo "$as_me: $msg_rpi_will_check" >&6;}
15811 ;;
15812 *)
15813 if test "x$use_rpi" = "xyes"; then
15814 as_fn_error $? "$msg_rpi_unsupported_target" "$LINENO" 5
15815 else
15816 { $as_echo "$as_me:${as_lineno-$LINENO}: $msg_rpi_unsupported_target" >&5
15817 $as_echo "$as_me: $msg_rpi_unsupported_target" >&6;}
15818 fi
15819 use_rpi="no"
15820 ;;
15821 esac
15822 fi
15823
15824 ## add the top dir and include to the include path, so we can include config.h and cec.h
15825 CPPFLAGS="$CPPFLAGS -I\$(abs_top_srcdir)/src -I\$(abs_top_srcdir)/include"
15826
15827 ## search for pkg-config
15828 # Extract the first word of "pkg-config", so it can be a program name with args.
15829 set dummy pkg-config; ac_word=$2
15830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15831 $as_echo_n "checking for $ac_word... " >&6; }
15832 if ${ac_cv_prog_HAVE_PKG_CONFIG+:} false; then :
15833 $as_echo_n "(cached) " >&6
15834 else
15835 if test -n "$HAVE_PKG_CONFIG"; then
15836 ac_cv_prog_HAVE_PKG_CONFIG="$HAVE_PKG_CONFIG" # Let the user override the test.
15837 else
15838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15839 for as_dir in $PATH
15840 do
15841 IFS=$as_save_IFS
15842 test -z "$as_dir" && as_dir=.
15843 for ac_exec_ext in '' $ac_executable_extensions; do
15844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15845 ac_cv_prog_HAVE_PKG_CONFIG="yes"
15846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15847 break 2
15848 fi
15849 done
15850 done
15851 IFS=$as_save_IFS
15852
15853 fi
15854 fi
15855 HAVE_PKG_CONFIG=$ac_cv_prog_HAVE_PKG_CONFIG
15856 if test -n "$HAVE_PKG_CONFIG"; then
15857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_PKG_CONFIG" >&5
15858 $as_echo "$HAVE_PKG_CONFIG" >&6; }
15859 else
15860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15861 $as_echo "no" >&6; }
15862 fi
15863
15864
15865 if test "x$HAVE_PKG_CONFIG" != "xyes" ; then
15866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg_pkg_config_missing" >&5
15867 $as_echo "$as_me: WARNING: $msg_pkg_config_missing" >&2;}
15868 fi
15869
15870 ## search for pthread, required by all targets
15871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
15872 $as_echo_n "checking for library containing pthread_create... " >&6; }
15873 if ${ac_cv_search_pthread_create+:} false; then :
15874 $as_echo_n "(cached) " >&6
15875 else
15876 ac_func_search_save_LIBS=$LIBS
15877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15878 /* end confdefs.h. */
15879
15880 /* Override any GCC internal prototype to avoid an error.
15881 Use char because int might match the return type of a GCC
15882 builtin and then its argument prototype would still apply. */
15883 #ifdef __cplusplus
15884 extern "C"
15885 #endif
15886 char pthread_create ();
15887 int
15888 main ()
15889 {
15890 return pthread_create ();
15891 ;
15892 return 0;
15893 }
15894 _ACEOF
15895 for ac_lib in '' pthread; do
15896 if test -z "$ac_lib"; then
15897 ac_res="none required"
15898 else
15899 ac_res=-l$ac_lib
15900 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15901 fi
15902 if ac_fn_cxx_try_link "$LINENO"; then :
15903 ac_cv_search_pthread_create=$ac_res
15904 fi
15905 rm -f core conftest.err conftest.$ac_objext \
15906 conftest$ac_exeext
15907 if ${ac_cv_search_pthread_create+:} false; then :
15908 break
15909 fi
15910 done
15911 if ${ac_cv_search_pthread_create+:} false; then :
15912
15913 else
15914 ac_cv_search_pthread_create=no
15915 fi
15916 rm conftest.$ac_ext
15917 LIBS=$ac_func_search_save_LIBS
15918 fi
15919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
15920 $as_echo "$ac_cv_search_pthread_create" >&6; }
15921 ac_res=$ac_cv_search_pthread_create
15922 if test "$ac_res" != no; then :
15923 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15924
15925 else
15926 as_fn_error $? "$msg_pthread_missing" "$LINENO" 5
15927 fi
15928
15929 for ac_func in pthread_mutexattr_init pthread_cond_init pthread_cond_destroy pthread_cond_signal pthread_cond_broadcast pthread_cond_wait pthread_cond_timedwait
15930 do :
15931 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15932 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
15933 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15934 cat >>confdefs.h <<_ACEOF
15935 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15936 _ACEOF
15937
15938 fi
15939 done
15940
15941
15942 ## search for dlopen, required by all targets
15943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
15944 $as_echo_n "checking for library containing dlopen... " >&6; }
15945 if ${ac_cv_search_dlopen+:} false; then :
15946 $as_echo_n "(cached) " >&6
15947 else
15948 ac_func_search_save_LIBS=$LIBS
15949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15950 /* end confdefs.h. */
15951
15952 /* Override any GCC internal prototype to avoid an error.
15953 Use char because int might match the return type of a GCC
15954 builtin and then its argument prototype would still apply. */
15955 #ifdef __cplusplus
15956 extern "C"
15957 #endif
15958 char dlopen ();
15959 int
15960 main ()
15961 {
15962 return dlopen ();
15963 ;
15964 return 0;
15965 }
15966 _ACEOF
15967 for ac_lib in '' dl; do
15968 if test -z "$ac_lib"; then
15969 ac_res="none required"
15970 else
15971 ac_res=-l$ac_lib
15972 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15973 fi
15974 if ac_fn_cxx_try_link "$LINENO"; then :
15975 ac_cv_search_dlopen=$ac_res
15976 fi
15977 rm -f core conftest.err conftest.$ac_objext \
15978 conftest$ac_exeext
15979 if ${ac_cv_search_dlopen+:} false; then :
15980 break
15981 fi
15982 done
15983 if ${ac_cv_search_dlopen+:} false; then :
15984
15985 else
15986 ac_cv_search_dlopen=no
15987 fi
15988 rm conftest.$ac_ext
15989 LIBS=$ac_func_search_save_LIBS
15990 fi
15991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
15992 $as_echo "$ac_cv_search_dlopen" >&6; }
15993 ac_res=$ac_cv_search_dlopen
15994 if test "$ac_res" != no; then :
15995 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15996 test "$ac_cv_search_dlopen" = "none required" || LIBS_DL=$ac_cv_search_dlopen
15997 else
15998 as_fn_error $? "$msg_dl_missing" "$LINENO" 5
15999 fi
16000
16001 for ac_func in dlopen dlclose dlsym
16002 do :
16003 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16004 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
16005 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16006 cat >>confdefs.h <<_ACEOF
16007 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16008 _ACEOF
16009
16010 fi
16011 done
16012
16013
16014 ## platform specific libs, required by all targets
16015 case "${host}" in
16016 *-*-linux*)
16017 # for timeutils
16018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
16019 $as_echo_n "checking for library containing clock_gettime... " >&6; }
16020 if ${ac_cv_search_clock_gettime+:} false; then :
16021 $as_echo_n "(cached) " >&6
16022 else
16023 ac_func_search_save_LIBS=$LIBS
16024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16025 /* end confdefs.h. */
16026
16027 /* Override any GCC internal prototype to avoid an error.
16028 Use char because int might match the return type of a GCC
16029 builtin and then its argument prototype would still apply. */
16030 #ifdef __cplusplus
16031 extern "C"
16032 #endif
16033 char clock_gettime ();
16034 int
16035 main ()
16036 {
16037 return clock_gettime ();
16038 ;
16039 return 0;
16040 }
16041 _ACEOF
16042 for ac_lib in '' rt; do
16043 if test -z "$ac_lib"; then
16044 ac_res="none required"
16045 else
16046 ac_res=-l$ac_lib
16047 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16048 fi
16049 if ac_fn_cxx_try_link "$LINENO"; then :
16050 ac_cv_search_clock_gettime=$ac_res
16051 fi
16052 rm -f core conftest.err conftest.$ac_objext \
16053 conftest$ac_exeext
16054 if ${ac_cv_search_clock_gettime+:} false; then :
16055 break
16056 fi
16057 done
16058 if ${ac_cv_search_clock_gettime+:} false; then :
16059
16060 else
16061 ac_cv_search_clock_gettime=no
16062 fi
16063 rm conftest.$ac_ext
16064 LIBS=$ac_func_search_save_LIBS
16065 fi
16066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
16067 $as_echo "$ac_cv_search_clock_gettime" >&6; }
16068 ac_res=$ac_cv_search_clock_gettime
16069 if test "$ac_res" != no; then :
16070 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16071
16072 fi
16073
16074 ;;
16075 *-apple-darwin*)
16076 LIBS="$LIBS -framework CoreVideo -framework IOKit"
16077 ;;
16078 esac
16079
16080 ## we found all the libs and headers that we need for the client applications
16081 libs_client="$LIBS"
16082
16083 ## search for udev, lockdev and the RPi API, only required by libCEC
16084 use_udev="no"
16085 use_adapter_detection="yes"
16086 use_lockdev="no"
16087 SUPPRESS_MANGLING_WARNINGS=" -Wno-psabi"
16088 case "${host}" in
16089 *-*-linux*)
16090 ## search for udev if pkg-config was found
16091 if test "x$HAVE_PKG_CONFIG" = "xyes" ; then
16092
16093
16094
16095
16096
16097
16098
16099 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16100 if test -n "$ac_tool_prefix"; then
16101 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16102 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16104 $as_echo_n "checking for $ac_word... " >&6; }
16105 if ${ac_cv_path_PKG_CONFIG+:} false; then :
16106 $as_echo_n "(cached) " >&6
16107 else
16108 case $PKG_CONFIG in
16109 [\\/]* | ?:[\\/]*)
16110 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16111 ;;
16112 *)
16113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16114 for as_dir in $PATH
16115 do
16116 IFS=$as_save_IFS
16117 test -z "$as_dir" && as_dir=.
16118 for ac_exec_ext in '' $ac_executable_extensions; do
16119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16120 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16122 break 2
16123 fi
16124 done
16125 done
16126 IFS=$as_save_IFS
16127
16128 ;;
16129 esac
16130 fi
16131 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16132 if test -n "$PKG_CONFIG"; then
16133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16134 $as_echo "$PKG_CONFIG" >&6; }
16135 else
16136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16137 $as_echo "no" >&6; }
16138 fi
16139
16140
16141 fi
16142 if test -z "$ac_cv_path_PKG_CONFIG"; then
16143 ac_pt_PKG_CONFIG=$PKG_CONFIG
16144 # Extract the first word of "pkg-config", so it can be a program name with args.
16145 set dummy pkg-config; ac_word=$2
16146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16147 $as_echo_n "checking for $ac_word... " >&6; }
16148 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
16149 $as_echo_n "(cached) " >&6
16150 else
16151 case $ac_pt_PKG_CONFIG in
16152 [\\/]* | ?:[\\/]*)
16153 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16154 ;;
16155 *)
16156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16157 for as_dir in $PATH
16158 do
16159 IFS=$as_save_IFS
16160 test -z "$as_dir" && as_dir=.
16161 for ac_exec_ext in '' $ac_executable_extensions; do
16162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16163 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16165 break 2
16166 fi
16167 done
16168 done
16169 IFS=$as_save_IFS
16170
16171 ;;
16172 esac
16173 fi
16174 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16175 if test -n "$ac_pt_PKG_CONFIG"; then
16176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16177 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
16178 else
16179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16180 $as_echo "no" >&6; }
16181 fi
16182
16183 if test "x$ac_pt_PKG_CONFIG" = x; then
16184 PKG_CONFIG=""
16185 else
16186 case $cross_compiling:$ac_tool_warned in
16187 yes:)
16188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16189 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16190 ac_tool_warned=yes ;;
16191 esac
16192 PKG_CONFIG=$ac_pt_PKG_CONFIG
16193 fi
16194 else
16195 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16196 fi
16197
16198 fi
16199 if test -n "$PKG_CONFIG"; then
16200 _pkg_min_version=0.9.0
16201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16202 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16203 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16205 $as_echo "yes" >&6; }
16206 else
16207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16208 $as_echo "no" >&6; }
16209 PKG_CONFIG=""
16210 fi
16211 fi
16212
16213 pkg_failed=no
16214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5
16215 $as_echo_n "checking for UDEV... " >&6; }
16216
16217 if test -n "$UDEV_CFLAGS"; then
16218 pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS"
16219 elif test -n "$PKG_CONFIG"; then
16220 if test -n "$PKG_CONFIG" && \
16221 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
16222 ($PKG_CONFIG --exists --print-errors "libudev") 2>&5
16223 ac_status=$?
16224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16225 test $ac_status = 0; }; then
16226 pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev" 2>/dev/null`
16227 test "x$?" != "x0" && pkg_failed=yes
16228 else
16229 pkg_failed=yes
16230 fi
16231 else
16232 pkg_failed=untried
16233 fi
16234 if test -n "$UDEV_LIBS"; then
16235 pkg_cv_UDEV_LIBS="$UDEV_LIBS"
16236 elif test -n "$PKG_CONFIG"; then
16237 if test -n "$PKG_CONFIG" && \
16238 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
16239 ($PKG_CONFIG --exists --print-errors "libudev") 2>&5
16240 ac_status=$?
16241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16242 test $ac_status = 0; }; then
16243 pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "libudev" 2>/dev/null`
16244 test "x$?" != "x0" && pkg_failed=yes
16245 else
16246 pkg_failed=yes
16247 fi
16248 else
16249 pkg_failed=untried
16250 fi
16251
16252
16253
16254 if test $pkg_failed = yes; then
16255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16256 $as_echo "no" >&6; }
16257
16258 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16259 _pkg_short_errors_supported=yes
16260 else
16261 _pkg_short_errors_supported=no
16262 fi
16263 if test $_pkg_short_errors_supported = yes; then
16264 UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libudev" 2>&1`
16265 else
16266 UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libudev" 2>&1`
16267 fi
16268 # Put the nasty error message in config.log where it belongs
16269 echo "$UDEV_PKG_ERRORS" >&5
16270
16271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg_udev_missing" >&5
16272 $as_echo "$as_me: WARNING: $msg_udev_missing" >&2;}
16273 elif test $pkg_failed = untried; then
16274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16275 $as_echo "no" >&6; }
16276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg_udev_missing" >&5
16277 $as_echo "$as_me: WARNING: $msg_udev_missing" >&2;}
16278 else
16279 UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS
16280 UDEV_LIBS=$pkg_cv_UDEV_LIBS
16281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16282 $as_echo "yes" >&6; }
16283 use_udev="yes"
16284 fi
16285 fi
16286
16287 ## we need dirent.h on linux too
16288 if test "$use_udev" = "yes"; then
16289
16290 ac_fn_cxx_check_header_mongrel "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
16291 if test "x$ac_cv_header_dirent_h" = xyes; then :
16292
16293 else
16294 use_udev="no";{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg_dirent_missing" >&5
16295 $as_echo "$as_me: WARNING: $msg_dirent_missing" >&2;}
16296 fi
16297
16298
16299 fi
16300
16301 if test "$use_udev" != "yes"; then
16302 use_adapter_detection="no"
16303 fi
16304
16305 ## search for lockdev
16306 use_lockdev="yes"
16307 ac_fn_cxx_check_header_mongrel "$LINENO" "lockdev.h" "ac_cv_header_lockdev_h" "$ac_includes_default"
16308 if test "x$ac_cv_header_lockdev_h" = xyes; then :
16309
16310 else
16311 use_lockdev="no";{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg_lockdev_missing" >&5
16312 $as_echo "$as_me: WARNING: $msg_lockdev_missing" >&2;}
16313 fi
16314
16315
16316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dev_unlock in -llockdev" >&5
16317 $as_echo_n "checking for dev_unlock in -llockdev... " >&6; }
16318 if ${ac_cv_lib_lockdev_dev_unlock+:} false; then :
16319 $as_echo_n "(cached) " >&6
16320 else
16321 ac_check_lib_save_LIBS=$LIBS
16322 LIBS="-llockdev $LIBS"
16323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16324 /* end confdefs.h. */
16325
16326 /* Override any GCC internal prototype to avoid an error.
16327 Use char because int might match the return type of a GCC
16328 builtin and then its argument prototype would still apply. */
16329 #ifdef __cplusplus
16330 extern "C"
16331 #endif
16332 char dev_unlock ();
16333 int
16334 main ()
16335 {
16336 return dev_unlock ();
16337 ;
16338 return 0;
16339 }
16340 _ACEOF
16341 if ac_fn_cxx_try_link "$LINENO"; then :
16342 ac_cv_lib_lockdev_dev_unlock=yes
16343 else
16344 ac_cv_lib_lockdev_dev_unlock=no
16345 fi
16346 rm -f core conftest.err conftest.$ac_objext \
16347 conftest$ac_exeext conftest.$ac_ext
16348 LIBS=$ac_check_lib_save_LIBS
16349 fi
16350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockdev_dev_unlock" >&5
16351 $as_echo "$ac_cv_lib_lockdev_dev_unlock" >&6; }
16352 if test "x$ac_cv_lib_lockdev_dev_unlock" = xyes; then :
16353 cat >>confdefs.h <<_ACEOF
16354 #define HAVE_LIBLOCKDEV 1
16355 _ACEOF
16356
16357 LIBS="-llockdev $LIBS"
16358
16359 else
16360 use_lockdev="no";{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg_lockdev_missing" >&5
16361 $as_echo "$as_me: WARNING: $msg_lockdev_missing" >&2;}
16362 fi
16363
16364
16365 ac_fn_cxx_check_header_mongrel "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
16366 if test "x$ac_cv_header_time_h" = xyes; then :
16367
16368 else
16369 as_fn_error $? "$msg_required_header_missing" "$LINENO" 5
16370 fi
16371
16372
16373 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/prctl.h" "ac_cv_header_sys_prctl_h" "$ac_includes_default"
16374 if test "x$ac_cv_header_sys_prctl_h" = xyes; then :
16375
16376 else
16377 as_fn_error $? "$msg_required_header_missing" "$LINENO" 5
16378 fi
16379
16380
16381
16382 ## search for the RPi API. we need to check a couple of things to see if
16383 ## it's recent enough and contains the calls needed for libCEC to operate
16384 ## correctly.
16385 if test "x$use_rpi" != "xno"; then
16386 CPPFLAGS="$CPPFLAGS $RPI_CFLAGS"
16387 libs_pre_rpi="$LIBS"
16388 LIBS="$LIBS $RPI_LIBS -lvcos -lvchiq_arm"
16389
16390 check_rpi_cec_service="yes"
16391
16392 ## check for headers we need
16393 ac_fn_cxx_check_header_mongrel "$LINENO" "interface/vmcs_host/vc_cec.h" "ac_cv_header_interface_vmcs_host_vc_cec_h" "$ac_includes_default"
16394 if test "x$ac_cv_header_interface_vmcs_host_vc_cec_h" = xyes; then :
16395
16396 else
16397 check_rpi_cec_service="no"
16398 fi
16399
16400
16401 ac_fn_cxx_check_header_mongrel "$LINENO" "interface/vmcs_host/vc_cecservice.h" "ac_cv_header_interface_vmcs_host_vc_cecservice_h" "$ac_includes_default"
16402 if test "x$ac_cv_header_interface_vmcs_host_vc_cecservice_h" = xyes; then :
16403
16404 else
16405 check_rpi_cec_service="no"
16406 fi
16407
16408
16409 ac_fn_cxx_check_header_mongrel "$LINENO" "interface/vchiq_arm/vchiq_if.h" "ac_cv_header_interface_vchiq_arm_vchiq_if_h" "$ac_includes_default"
16410 if test "x$ac_cv_header_interface_vchiq_arm_vchiq_if_h" = xyes; then :
16411
16412 else
16413 check_rpi_cec_service="no"
16414 fi
16415
16416
16417 ac_fn_cxx_check_header_mongrel "$LINENO" "bcm_host.h" "ac_cv_header_bcm_host_h" "$ac_includes_default"
16418 if test "x$ac_cv_header_bcm_host_h" = xyes; then :
16419
16420 else
16421 check_rpi_cec_service="no"
16422 fi
16423
16424
16425
16426 ## check if the headers contain support for libCEC.
16427 ## VC_CECSERVICE_VER needs to be defined
16428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking interface/vmcs_host/vc_cec.h compatibility" >&5
16429 $as_echo_n "checking interface/vmcs_host/vc_cec.h compatibility... " >&6; }
16430
16431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16432 /* end confdefs.h. */
16433 #include <interface/vmcs_host/vc_cecservice.h>
16434 #include <interface/vchiq_arm/vchiq_if.h>
16435 #if !defined(VC_CECSERVICE_VER)
16436 #error RPi headers does not contain libCEC support
16437 #endif
16438 int
16439 main ()
16440 {
16441
16442 ;
16443 return 0;
16444 }
16445 _ACEOF
16446 if ac_fn_cxx_try_compile "$LINENO"; then :
16447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16448 $as_echo "yes" >&6; }
16449 else
16450 check_rpi_cec_service="no"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16451 $as_echo "no" >&6; }
16452 fi
16453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16454
16455 ## check if the methods we're using can be found in libbcm_host.so, so we don't use an incompatible version
16456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vchi_initialise in -lbcm_host" >&5
16457 $as_echo_n "checking for vchi_initialise in -lbcm_host... " >&6; }
16458 if ${ac_cv_lib_bcm_host_vchi_initialise+:} false; then :
16459 $as_echo_n "(cached) " >&6
16460 else
16461 ac_check_lib_save_LIBS=$LIBS
16462 LIBS="-lbcm_host $LIBS"
16463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16464 /* end confdefs.h. */
16465
16466 /* Override any GCC internal prototype to avoid an error.
16467 Use char because int might match the return type of a GCC
16468 builtin and then its argument prototype would still apply. */
16469 #ifdef __cplusplus
16470 extern "C"
16471 #endif
16472 char vchi_initialise ();
16473 int
16474 main ()
16475 {
16476 return vchi_initialise ();
16477 ;
16478 return 0;
16479 }
16480 _ACEOF
16481 if ac_fn_cxx_try_link "$LINENO"; then :
16482 ac_cv_lib_bcm_host_vchi_initialise=yes
16483 else
16484 ac_cv_lib_bcm_host_vchi_initialise=no
16485 fi
16486 rm -f core conftest.err conftest.$ac_objext \
16487 conftest$ac_exeext conftest.$ac_ext
16488 LIBS=$ac_check_lib_save_LIBS
16489 fi
16490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bcm_host_vchi_initialise" >&5
16491 $as_echo "$ac_cv_lib_bcm_host_vchi_initialise" >&6; }
16492 if test "x$ac_cv_lib_bcm_host_vchi_initialise" = xyes; then :
16493 cat >>confdefs.h <<_ACEOF
16494 #define HAVE_LIBBCM_HOST 1
16495 _ACEOF
16496
16497 LIBS="-lbcm_host $LIBS"
16498
16499 else
16500 check_rpi_cec_service="no"
16501 fi
16502
16503 libs_tmp="$LIBS"
16504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vc_vchi_cec_init in -lbcm_host" >&5
16505 $as_echo_n "checking for vc_vchi_cec_init in -lbcm_host... " >&6; }
16506 if ${ac_cv_lib_bcm_host_vc_vchi_cec_init+:} false; then :
16507 $as_echo_n "(cached) " >&6
16508 else
16509 ac_check_lib_save_LIBS=$LIBS
16510 LIBS="-lbcm_host $LIBS"
16511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16512 /* end confdefs.h. */
16513
16514 /* Override any GCC internal prototype to avoid an error.
16515 Use char because int might match the return type of a GCC
16516 builtin and then its argument prototype would still apply. */
16517 #ifdef __cplusplus
16518 extern "C"
16519 #endif
16520 char vc_vchi_cec_init ();
16521 int
16522 main ()
16523 {
16524 return vc_vchi_cec_init ();
16525 ;
16526 return 0;
16527 }
16528 _ACEOF
16529 if ac_fn_cxx_try_link "$LINENO"; then :
16530 ac_cv_lib_bcm_host_vc_vchi_cec_init=yes
16531 else
16532 ac_cv_lib_bcm_host_vc_vchi_cec_init=no
16533 fi
16534 rm -f core conftest.err conftest.$ac_objext \
16535 conftest$ac_exeext conftest.$ac_ext
16536 LIBS=$ac_check_lib_save_LIBS
16537 fi
16538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bcm_host_vc_vchi_cec_init" >&5
16539 $as_echo "$ac_cv_lib_bcm_host_vc_vchi_cec_init" >&6; }
16540 if test "x$ac_cv_lib_bcm_host_vc_vchi_cec_init" = xyes; then :
16541 cat >>confdefs.h <<_ACEOF
16542 #define HAVE_LIBBCM_HOST 1
16543 _ACEOF
16544
16545 LIBS="-lbcm_host $LIBS"
16546
16547 else
16548 check_rpi_cec_service="no"
16549 fi
16550
16551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vc_cec_get_logical_address in -lbcm_host" >&5
16552 $as_echo_n "checking for vc_cec_get_logical_address in -lbcm_host... " >&6; }
16553 if ${ac_cv_lib_bcm_host_vc_cec_get_logical_address+:} false; then :
16554 $as_echo_n "(cached) " >&6
16555 else
16556 ac_check_lib_save_LIBS=$LIBS
16557 LIBS="-lbcm_host $LIBS"
16558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16559 /* end confdefs.h. */
16560
16561 /* Override any GCC internal prototype to avoid an error.
16562 Use char because int might match the return type of a GCC
16563 builtin and then its argument prototype would still apply. */
16564 #ifdef __cplusplus
16565 extern "C"
16566 #endif
16567 char vc_cec_get_logical_address ();
16568 int
16569 main ()
16570 {
16571 return vc_cec_get_logical_address ();
16572 ;
16573 return 0;
16574 }
16575 _ACEOF
16576 if ac_fn_cxx_try_link "$LINENO"; then :
16577 ac_cv_lib_bcm_host_vc_cec_get_logical_address=yes
16578 else
16579 ac_cv_lib_bcm_host_vc_cec_get_logical_address=no
16580 fi
16581 rm -f core conftest.err conftest.$ac_objext \
16582 conftest$ac_exeext conftest.$ac_ext
16583 LIBS=$ac_check_lib_save_LIBS
16584 fi
16585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bcm_host_vc_cec_get_logical_address" >&5
16586 $as_echo "$ac_cv_lib_bcm_host_vc_cec_get_logical_address" >&6; }
16587 if test "x$ac_cv_lib_bcm_host_vc_cec_get_logical_address" = xyes; then :
16588 cat >>confdefs.h <<_ACEOF
16589 #define HAVE_LIBBCM_HOST 1
16590 _ACEOF
16591
16592 LIBS="-lbcm_host $LIBS"
16593
16594 else
16595 check_rpi_cec_service="no"
16596 fi
16597
16598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vc_cec_get_physical_address in -lbcm_host" >&5
16599 $as_echo_n "checking for vc_cec_get_physical_address in -lbcm_host... " >&6; }
16600 if ${ac_cv_lib_bcm_host_vc_cec_get_physical_address+:} false; then :
16601 $as_echo_n "(cached) " >&6
16602 else
16603 ac_check_lib_save_LIBS=$LIBS
16604 LIBS="-lbcm_host $LIBS"
16605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16606 /* end confdefs.h. */
16607
16608 /* Override any GCC internal prototype to avoid an error.
16609 Use char because int might match the return type of a GCC
16610 builtin and then its argument prototype would still apply. */
16611 #ifdef __cplusplus
16612 extern "C"
16613 #endif
16614 char vc_cec_get_physical_address ();
16615 int
16616 main ()
16617 {
16618 return vc_cec_get_physical_address ();
16619 ;
16620 return 0;
16621 }
16622 _ACEOF
16623 if ac_fn_cxx_try_link "$LINENO"; then :
16624 ac_cv_lib_bcm_host_vc_cec_get_physical_address=yes
16625 else
16626 ac_cv_lib_bcm_host_vc_cec_get_physical_address=no
16627 fi
16628 rm -f core conftest.err conftest.$ac_objext \
16629 conftest$ac_exeext conftest.$ac_ext
16630 LIBS=$ac_check_lib_save_LIBS
16631 fi
16632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bcm_host_vc_cec_get_physical_address" >&5
16633 $as_echo "$ac_cv_lib_bcm_host_vc_cec_get_physical_address" >&6; }
16634 if test "x$ac_cv_lib_bcm_host_vc_cec_get_physical_address" = xyes; then :
16635 cat >>confdefs.h <<_ACEOF
16636 #define HAVE_LIBBCM_HOST 1
16637 _ACEOF
16638
16639 LIBS="-lbcm_host $LIBS"
16640
16641 else
16642 check_rpi_cec_service="no"
16643 fi
16644
16645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vc_cec_param2message in -lbcm_host" >&5
16646 $as_echo_n "checking for vc_cec_param2message in -lbcm_host... " >&6; }
16647 if ${ac_cv_lib_bcm_host_vc_cec_param2message+:} false; then :
16648 $as_echo_n "(cached) " >&6
16649 else
16650 ac_check_lib_save_LIBS=$LIBS
16651 LIBS="-lbcm_host $LIBS"
16652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16653 /* end confdefs.h. */
16654
16655 /* Override any GCC internal prototype to avoid an error.
16656 Use char because int might match the return type of a GCC
16657 builtin and then its argument prototype would still apply. */
16658 #ifdef __cplusplus
16659 extern "C"
16660 #endif
16661 char vc_cec_param2message ();
16662 int
16663 main ()
16664 {
16665 return vc_cec_param2message ();
16666 ;
16667 return 0;
16668 }
16669 _ACEOF
16670 if ac_fn_cxx_try_link "$LINENO"; then :
16671 ac_cv_lib_bcm_host_vc_cec_param2message=yes
16672 else
16673 ac_cv_lib_bcm_host_vc_cec_param2message=no
16674 fi
16675 rm -f core conftest.err conftest.$ac_objext \
16676 conftest$ac_exeext conftest.$ac_ext
16677 LIBS=$ac_check_lib_save_LIBS
16678 fi
16679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bcm_host_vc_cec_param2message" >&5
16680 $as_echo "$ac_cv_lib_bcm_host_vc_cec_param2message" >&6; }
16681 if test "x$ac_cv_lib_bcm_host_vc_cec_param2message" = xyes; then :
16682 cat >>confdefs.h <<_ACEOF
16683 #define HAVE_LIBBCM_HOST 1
16684 _ACEOF
16685
16686 LIBS="-lbcm_host $LIBS"
16687
16688 else
16689 check_rpi_cec_service="no"
16690 fi
16691
16692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vc_cec_poll_address in -lbcm_host" >&5
16693 $as_echo_n "checking for vc_cec_poll_address in -lbcm_host... " >&6; }
16694 if ${ac_cv_lib_bcm_host_vc_cec_poll_address+:} false; then :
16695 $as_echo_n "(cached) " >&6
16696 else
16697 ac_check_lib_save_LIBS=$LIBS
16698 LIBS="-lbcm_host $LIBS"
16699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16700 /* end confdefs.h. */
16701
16702 /* Override any GCC internal prototype to avoid an error.
16703 Use char because int might match the return type of a GCC
16704 builtin and then its argument prototype would still apply. */
16705 #ifdef __cplusplus
16706 extern "C"
16707 #endif
16708 char vc_cec_poll_address ();
16709 int
16710 main ()
16711 {
16712 return vc_cec_poll_address ();
16713 ;
16714 return 0;
16715 }
16716 _ACEOF
16717 if ac_fn_cxx_try_link "$LINENO"; then :
16718 ac_cv_lib_bcm_host_vc_cec_poll_address=yes
16719 else
16720 ac_cv_lib_bcm_host_vc_cec_poll_address=no
16721 fi
16722 rm -f core conftest.err conftest.$ac_objext \
16723 conftest$ac_exeext conftest.$ac_ext
16724 LIBS=$ac_check_lib_save_LIBS
16725 fi
16726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bcm_host_vc_cec_poll_address" >&5
16727 $as_echo "$ac_cv_lib_bcm_host_vc_cec_poll_address" >&6; }
16728 if test "x$ac_cv_lib_bcm_host_vc_cec_poll_address" = xyes; then :
16729 cat >>confdefs.h <<_ACEOF
16730 #define HAVE_LIBBCM_HOST 1
16731 _ACEOF
16732
16733 LIBS="-lbcm_host $LIBS"
16734
16735 else
16736 check_rpi_cec_service="no"
16737 fi
16738
16739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vc_cec_register_callback in -lbcm_host" >&5
16740 $as_echo_n "checking for vc_cec_register_callback in -lbcm_host... " >&6; }
16741 if ${ac_cv_lib_bcm_host_vc_cec_register_callback+:} false; then :
16742 $as_echo_n "(cached) " >&6
16743 else
16744 ac_check_lib_save_LIBS=$LIBS
16745 LIBS="-lbcm_host $LIBS"
16746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16747 /* end confdefs.h. */
16748
16749 /* Override any GCC internal prototype to avoid an error.
16750 Use char because int might match the return type of a GCC
16751 builtin and then its argument prototype would still apply. */
16752 #ifdef __cplusplus
16753 extern "C"
16754 #endif
16755 char vc_cec_register_callback ();
16756 int
16757 main ()
16758 {
16759 return vc_cec_register_callback ();
16760 ;
16761 return 0;
16762 }
16763 _ACEOF
16764 if ac_fn_cxx_try_link "$LINENO"; then :
16765 ac_cv_lib_bcm_host_vc_cec_register_callback=yes
16766 else
16767 ac_cv_lib_bcm_host_vc_cec_register_callback=no
16768 fi
16769 rm -f core conftest.err conftest.$ac_objext \
16770 conftest$ac_exeext conftest.$ac_ext
16771 LIBS=$ac_check_lib_save_LIBS
16772 fi
16773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bcm_host_vc_cec_register_callback" >&5
16774 $as_echo "$ac_cv_lib_bcm_host_vc_cec_register_callback" >&6; }
16775 if test "x$ac_cv_lib_bcm_host_vc_cec_register_callback" = xyes; then :
16776 cat >>confdefs.h <<_ACEOF
16777 #define HAVE_LIBBCM_HOST 1
16778 _ACEOF
16779
16780 LIBS="-lbcm_host $LIBS"
16781
16782 else
16783 check_rpi_cec_service="no"
16784 fi
16785
16786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vc_cec_release_logical_address in -lbcm_host" >&5
16787 $as_echo_n "checking for vc_cec_release_logical_address in -lbcm_host... " >&6; }
16788 if ${ac_cv_lib_bcm_host_vc_cec_release_logical_address+:} false; then :
16789 $as_echo_n "(cached) " >&6
16790 else
16791 ac_check_lib_save_LIBS=$LIBS
16792 LIBS="-lbcm_host $LIBS"
16793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16794 /* end confdefs.h. */
16795
16796 /* Override any GCC internal prototype to avoid an error.
16797 Use char because int might match the return type of a GCC
16798 builtin and then its argument prototype would still apply. */
16799 #ifdef __cplusplus
16800 extern "C"
16801 #endif
16802 char vc_cec_release_logical_address ();
16803 int
16804 main ()
16805 {
16806 return vc_cec_release_logical_address ();
16807 ;
16808 return 0;
16809 }
16810 _ACEOF
16811 if ac_fn_cxx_try_link "$LINENO"; then :
16812 ac_cv_lib_bcm_host_vc_cec_release_logical_address=yes
16813 else
16814 ac_cv_lib_bcm_host_vc_cec_release_logical_address=no
16815 fi
16816 rm -f core conftest.err conftest.$ac_objext \
16817 conftest$ac_exeext conftest.$ac_ext
16818 LIBS=$ac_check_lib_save_LIBS
16819 fi
16820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bcm_host_vc_cec_release_logical_address" >&5
16821 $as_echo "$ac_cv_lib_bcm_host_vc_cec_release_logical_address" >&6; }
16822 if test "x$ac_cv_lib_bcm_host_vc_cec_release_logical_address" = xyes; then :
16823 cat >>confdefs.h <<_ACEOF
16824 #define HAVE_LIBBCM_HOST 1
16825 _ACEOF
16826
16827 LIBS="-lbcm_host $LIBS"
16828
16829 else
16830 check_rpi_cec_service="no"
16831 fi
16832
16833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vc_cec_set_passive in -lbcm_host" >&5
16834 $as_echo_n "checking for vc_cec_set_passive in -lbcm_host... " >&6; }
16835 if ${ac_cv_lib_bcm_host_vc_cec_set_passive+:} false; then :
16836 $as_echo_n "(cached) " >&6
16837 else
16838 ac_check_lib_save_LIBS=$LIBS
16839 LIBS="-lbcm_host $LIBS"
16840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16841 /* end confdefs.h. */
16842
16843 /* Override any GCC internal prototype to avoid an error.
16844 Use char because int might match the return type of a GCC
16845 builtin and then its argument prototype would still apply. */
16846 #ifdef __cplusplus
16847 extern "C"
16848 #endif
16849 char vc_cec_set_passive ();
16850 int
16851 main ()
16852 {
16853 return vc_cec_set_passive ();
16854 ;
16855 return 0;
16856 }
16857 _ACEOF
16858 if ac_fn_cxx_try_link "$LINENO"; then :
16859 ac_cv_lib_bcm_host_vc_cec_set_passive=yes
16860 else
16861 ac_cv_lib_bcm_host_vc_cec_set_passive=no
16862 fi
16863 rm -f core conftest.err conftest.$ac_objext \
16864 conftest$ac_exeext conftest.$ac_ext
16865 LIBS=$ac_check_lib_save_LIBS
16866 fi
16867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bcm_host_vc_cec_set_passive" >&5
16868 $as_echo "$ac_cv_lib_bcm_host_vc_cec_set_passive" >&6; }
16869 if test "x$ac_cv_lib_bcm_host_vc_cec_set_passive" = xyes; then :
16870 cat >>confdefs.h <<_ACEOF
16871 #define HAVE_LIBBCM_HOST 1
16872 _ACEOF
16873
16874 LIBS="-lbcm_host $LIBS"
16875
16876 else
16877 check_rpi_cec_service="no"
16878 fi
16879
16880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vcos_init in -lbcm_host" >&5
16881 $as_echo_n "checking for vcos_init in -lbcm_host... " >&6; }
16882 if ${ac_cv_lib_bcm_host_vcos_init+:} false; then :
16883 $as_echo_n "(cached) " >&6
16884 else
16885 ac_check_lib_save_LIBS=$LIBS
16886 LIBS="-lbcm_host $LIBS"
16887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16888 /* end confdefs.h. */
16889
16890 /* Override any GCC internal prototype to avoid an error.
16891 Use char because int might match the return type of a GCC
16892 builtin and then its argument prototype would still apply. */
16893 #ifdef __cplusplus
16894 extern "C"
16895 #endif
16896 char vcos_init ();
16897 int
16898 main ()
16899 {
16900 return vcos_init ();
16901 ;
16902 return 0;
16903 }
16904 _ACEOF
16905 if ac_fn_cxx_try_link "$LINENO"; then :
16906 ac_cv_lib_bcm_host_vcos_init=yes
16907 else
16908 ac_cv_lib_bcm_host_vcos_init=no
16909 fi
16910 rm -f core conftest.err conftest.$ac_objext \
16911 conftest$ac_exeext conftest.$ac_ext
16912 LIBS=$ac_check_lib_save_LIBS
16913 fi
16914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bcm_host_vcos_init" >&5
16915 $as_echo "$ac_cv_lib_bcm_host_vcos_init" >&6; }
16916 if test "x$ac_cv_lib_bcm_host_vcos_init" = xyes; then :
16917 cat >>confdefs.h <<_ACEOF
16918 #define HAVE_LIBBCM_HOST 1
16919 _ACEOF
16920
16921 LIBS="-lbcm_host $LIBS"
16922
16923 else
16924 check_rpi_cec_service="no"
16925 fi
16926
16927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vchiq_initialise in -lbcm_host" >&5
16928 $as_echo_n "checking for vchiq_initialise in -lbcm_host... " >&6; }
16929 if ${ac_cv_lib_bcm_host_vchiq_initialise+:} false; then :
16930 $as_echo_n "(cached) " >&6
16931 else
16932 ac_check_lib_save_LIBS=$LIBS
16933 LIBS="-lbcm_host $LIBS"
16934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16935 /* end confdefs.h. */
16936
16937 /* Override any GCC internal prototype to avoid an error.
16938 Use char because int might match the return type of a GCC
16939 builtin and then its argument prototype would still apply. */
16940 #ifdef __cplusplus
16941 extern "C"
16942 #endif
16943 char vchiq_initialise ();
16944 int
16945 main ()
16946 {
16947 return vchiq_initialise ();
16948 ;
16949 return 0;
16950 }
16951 _ACEOF
16952 if ac_fn_cxx_try_link "$LINENO"; then :
16953 ac_cv_lib_bcm_host_vchiq_initialise=yes
16954 else
16955 ac_cv_lib_bcm_host_vchiq_initialise=no
16956 fi
16957 rm -f core conftest.err conftest.$ac_objext \
16958 conftest$ac_exeext conftest.$ac_ext
16959 LIBS=$ac_check_lib_save_LIBS
16960 fi
16961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bcm_host_vchiq_initialise" >&5
16962 $as_echo "$ac_cv_lib_bcm_host_vchiq_initialise" >&6; }
16963 if test "x$ac_cv_lib_bcm_host_vchiq_initialise" = xyes; then :
16964 cat >>confdefs.h <<_ACEOF
16965 #define HAVE_LIBBCM_HOST 1
16966 _ACEOF
16967
16968 LIBS="-lbcm_host $LIBS"
16969
16970 else
16971 check_rpi_cec_service="no"
16972 fi
16973
16974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vchi_initialise in -lbcm_host" >&5
16975 $as_echo_n "checking for vchi_initialise in -lbcm_host... " >&6; }
16976 if ${ac_cv_lib_bcm_host_vchi_initialise+:} false; then :
16977 $as_echo_n "(cached) " >&6
16978 else
16979 ac_check_lib_save_LIBS=$LIBS
16980 LIBS="-lbcm_host $LIBS"
16981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16982 /* end confdefs.h. */
16983
16984 /* Override any GCC internal prototype to avoid an error.
16985 Use char because int might match the return type of a GCC
16986 builtin and then its argument prototype would still apply. */
16987 #ifdef __cplusplus
16988 extern "C"
16989 #endif
16990 char vchi_initialise ();
16991 int
16992 main ()
16993 {
16994 return vchi_initialise ();
16995 ;
16996 return 0;
16997 }
16998 _ACEOF
16999 if ac_fn_cxx_try_link "$LINENO"; then :
17000 ac_cv_lib_bcm_host_vchi_initialise=yes
17001 else
17002 ac_cv_lib_bcm_host_vchi_initialise=no
17003 fi
17004 rm -f core conftest.err conftest.$ac_objext \
17005 conftest$ac_exeext conftest.$ac_ext
17006 LIBS=$ac_check_lib_save_LIBS
17007 fi
17008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bcm_host_vchi_initialise" >&5
17009 $as_echo "$ac_cv_lib_bcm_host_vchi_initialise" >&6; }
17010 if test "x$ac_cv_lib_bcm_host_vchi_initialise" = xyes; then :
17011 cat >>confdefs.h <<_ACEOF
17012 #define HAVE_LIBBCM_HOST 1
17013 _ACEOF
17014
17015 LIBS="-lbcm_host $LIBS"
17016
17017 else
17018 check_rpi_cec_service="no"
17019 fi
17020
17021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vchi_create_connection in -lbcm_host" >&5
17022 $as_echo_n "checking for vchi_create_connection in -lbcm_host... " >&6; }
17023 if ${ac_cv_lib_bcm_host_vchi_create_connection+:} false; then :
17024 $as_echo_n "(cached) " >&6
17025 else
17026 ac_check_lib_save_LIBS=$LIBS
17027 LIBS="-lbcm_host $LIBS"
17028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17029 /* end confdefs.h. */
17030
17031 /* Override any GCC internal prototype to avoid an error.
17032 Use char because int might match the return type of a GCC
17033 builtin and then its argument prototype would still apply. */
17034 #ifdef __cplusplus
17035 extern "C"
17036 #endif
17037 char vchi_create_connection ();
17038 int
17039 main ()
17040 {
17041 return vchi_create_connection ();
17042 ;
17043 return 0;
17044 }
17045 _ACEOF
17046 if ac_fn_cxx_try_link "$LINENO"; then :
17047 ac_cv_lib_bcm_host_vchi_create_connection=yes
17048 else
17049 ac_cv_lib_bcm_host_vchi_create_connection=no
17050 fi
17051 rm -f core conftest.err conftest.$ac_objext \
17052 conftest$ac_exeext conftest.$ac_ext
17053 LIBS=$ac_check_lib_save_LIBS
17054 fi
17055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bcm_host_vchi_create_connection" >&5
17056 $as_echo "$ac_cv_lib_bcm_host_vchi_create_connection" >&6; }
17057 if test "x$ac_cv_lib_bcm_host_vchi_create_connection" = xyes; then :
17058 cat >>confdefs.h <<_ACEOF
17059 #define HAVE_LIBBCM_HOST 1
17060 _ACEOF
17061
17062 LIBS="-lbcm_host $LIBS"
17063
17064 else
17065 check_rpi_cec_service="no"
17066 fi
17067
17068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bcm_host_init in -lbcm_host" >&5
17069 $as_echo_n "checking for bcm_host_init in -lbcm_host... " >&6; }
17070 if ${ac_cv_lib_bcm_host_bcm_host_init+:} false; then :
17071 $as_echo_n "(cached) " >&6
17072 else
17073 ac_check_lib_save_LIBS=$LIBS
17074 LIBS="-lbcm_host $LIBS"
17075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17076 /* end confdefs.h. */
17077
17078 /* Override any GCC internal prototype to avoid an error.
17079 Use char because int might match the return type of a GCC
17080 builtin and then its argument prototype would still apply. */
17081 #ifdef __cplusplus
17082 extern "C"
17083 #endif
17084 char bcm_host_init ();
17085 int
17086 main ()
17087 {
17088 return bcm_host_init ();
17089 ;
17090 return 0;
17091 }
17092 _ACEOF
17093 if ac_fn_cxx_try_link "$LINENO"; then :
17094 ac_cv_lib_bcm_host_bcm_host_init=yes
17095 else
17096 ac_cv_lib_bcm_host_bcm_host_init=no
17097 fi
17098 rm -f core conftest.err conftest.$ac_objext \
17099 conftest$ac_exeext conftest.$ac_ext
17100 LIBS=$ac_check_lib_save_LIBS
17101 fi
17102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bcm_host_bcm_host_init" >&5
17103 $as_echo "$ac_cv_lib_bcm_host_bcm_host_init" >&6; }
17104 if test "x$ac_cv_lib_bcm_host_bcm_host_init" = xyes; then :
17105 cat >>confdefs.h <<_ACEOF
17106 #define HAVE_LIBBCM_HOST 1
17107 _ACEOF
17108
17109 LIBS="-lbcm_host $LIBS"
17110
17111 else
17112 check_rpi_cec_service="no"
17113 fi
17114
17115 LIBS="$libs_tmp"
17116
17117 if test "x$check_rpi_cec_service" != "xyes" && test "x$use_rpi" = "xyes"; then
17118 as_fn_error $? "$msg_rpi_api_missing" "$LINENO" 5
17119 elif test "x$check_rpi_cec_service" != "xyes"; then
17120 use_rpi="no"
17121 LIBS="$libs_pre_rpi"
17122 fi
17123 fi
17124 ## search for X11/xrandr
17125 libs_tmp="$LIBS"
17126 use_x11_xrandr="yes"
17127 ac_fn_cxx_check_header_mongrel "$LINENO" "X11/Xlib.h" "ac_cv_header_X11_Xlib_h" "$ac_includes_default"
17128 if test "x$ac_cv_header_X11_Xlib_h" = xyes; then :
17129
17130 else
17131 use_x11_xrandr="no"
17132 fi
17133
17134
17135 ac_fn_cxx_check_header_mongrel "$LINENO" "X11/Xatom.h" "ac_cv_header_X11_Xatom_h" "$ac_includes_default"
17136 if test "x$ac_cv_header_X11_Xatom_h" = xyes; then :
17137
17138 else
17139 use_x11_xrandr="no"
17140 fi
17141
17142
17143 ac_fn_cxx_check_header_mongrel "$LINENO" "X11/extensions/Xrandr.h" "ac_cv_header_X11_extensions_Xrandr_h" "$ac_includes_default"
17144 if test "x$ac_cv_header_X11_extensions_Xrandr_h" = xyes; then :
17145
17146 else
17147 use_x11_xrandr="no"
17148 fi
17149
17150
17151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDisplay in -lX11" >&5
17152 $as_echo_n "checking for XOpenDisplay in -lX11... " >&6; }
17153 if ${ac_cv_lib_X11_XOpenDisplay+:} false; then :
17154 $as_echo_n "(cached) " >&6
17155 else
17156 ac_check_lib_save_LIBS=$LIBS
17157 LIBS="-lX11 $LIBS"
17158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17159 /* end confdefs.h. */
17160
17161 /* Override any GCC internal prototype to avoid an error.
17162 Use char because int might match the return type of a GCC
17163 builtin and then its argument prototype would still apply. */
17164 #ifdef __cplusplus
17165 extern "C"
17166 #endif
17167 char XOpenDisplay ();
17168 int
17169 main ()
17170 {
17171 return XOpenDisplay ();
17172 ;
17173 return 0;
17174 }
17175 _ACEOF
17176 if ac_fn_cxx_try_link "$LINENO"; then :
17177 ac_cv_lib_X11_XOpenDisplay=yes
17178 else
17179 ac_cv_lib_X11_XOpenDisplay=no
17180 fi
17181 rm -f core conftest.err conftest.$ac_objext \
17182 conftest$ac_exeext conftest.$ac_ext
17183 LIBS=$ac_check_lib_save_LIBS
17184 fi
17185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XOpenDisplay" >&5
17186 $as_echo "$ac_cv_lib_X11_XOpenDisplay" >&6; }
17187 if test "x$ac_cv_lib_X11_XOpenDisplay" = xyes; then :
17188 cat >>confdefs.h <<_ACEOF
17189 #define HAVE_LIBX11 1
17190 _ACEOF
17191
17192 LIBS="-lX11 $LIBS"
17193
17194 else
17195 use_x11_xrandr="no"
17196 fi
17197
17198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRGetScreenResources in -lXrandr" >&5
17199 $as_echo_n "checking for XRRGetScreenResources in -lXrandr... " >&6; }
17200 if ${ac_cv_lib_Xrandr_XRRGetScreenResources+:} false; then :
17201 $as_echo_n "(cached) " >&6
17202 else
17203 ac_check_lib_save_LIBS=$LIBS
17204 LIBS="-lXrandr $LIBS"
17205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17206 /* end confdefs.h. */
17207
17208 /* Override any GCC internal prototype to avoid an error.
17209 Use char because int might match the return type of a GCC
17210 builtin and then its argument prototype would still apply. */
17211 #ifdef __cplusplus
17212 extern "C"
17213 #endif
17214 char XRRGetScreenResources ();
17215 int
17216 main ()
17217 {
17218 return XRRGetScreenResources ();
17219 ;
17220 return 0;
17221 }
17222 _ACEOF
17223 if ac_fn_cxx_try_link "$LINENO"; then :
17224 ac_cv_lib_Xrandr_XRRGetScreenResources=yes
17225 else
17226 ac_cv_lib_Xrandr_XRRGetScreenResources=no
17227 fi
17228 rm -f core conftest.err conftest.$ac_objext \
17229 conftest$ac_exeext conftest.$ac_ext
17230 LIBS=$ac_check_lib_save_LIBS
17231 fi
17232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRGetScreenResources" >&5
17233 $as_echo "$ac_cv_lib_Xrandr_XRRGetScreenResources" >&6; }
17234 if test "x$ac_cv_lib_Xrandr_XRRGetScreenResources" = xyes; then :
17235 cat >>confdefs.h <<_ACEOF
17236 #define HAVE_LIBXRANDR 1
17237 _ACEOF
17238
17239 LIBS="-lXrandr $LIBS"
17240
17241 else
17242 use_x11_xrandr="no"
17243 fi
17244
17245 if test "x$use_x11_xrandr" = "xyes"; then
17246
17247 $as_echo "#define HAVE_RANDR 1" >>confdefs.h
17248
17249 if true; then
17250 USE_X11_RANDR_TRUE=
17251 USE_X11_RANDR_FALSE='#'
17252 else
17253 USE_X11_RANDR_TRUE='#'
17254 USE_X11_RANDR_FALSE=
17255 fi
17256
17257 else
17258 if false; then
17259 USE_X11_RANDR_TRUE=
17260 USE_X11_RANDR_FALSE='#'
17261 else
17262 USE_X11_RANDR_TRUE='#'
17263 USE_X11_RANDR_FALSE=
17264 fi
17265
17266 LIBS="$libs_tmp"
17267 fi
17268 ;;
17269 *-apple-darwin*)
17270 ac_fn_cxx_check_header_mongrel "$LINENO" "mach/mach_time.h" "ac_cv_header_mach_mach_time_h" "$ac_includes_default"
17271 if test "x$ac_cv_header_mach_mach_time_h" = xyes; then :
17272
17273 else
17274 as_fn_error $? "$msg_required_header_missing" "$LINENO" 5
17275 fi
17276
17277
17278 ac_fn_cxx_check_header_mongrel "$LINENO" "CoreVideo/CVHostTime.h" "ac_cv_header_CoreVideo_CVHostTime_h" "$ac_includes_default"
17279 if test "x$ac_cv_header_CoreVideo_CVHostTime_h" = xyes; then :
17280
17281 else
17282 as_fn_error $? "$msg_required_header_missing" "$LINENO" 5
17283 fi
17284
17285
17286
17287 $as_echo "#define TARGET_DARWIN 1" >>confdefs.h
17288
17289 if false; then
17290 USE_X11_RANDR_TRUE=
17291 USE_X11_RANDR_FALSE='#'
17292 else
17293 USE_X11_RANDR_TRUE='#'
17294 USE_X11_RANDR_FALSE=
17295 fi
17296
17297 SUPPRESS_MANGLING_WARNINGS=""
17298 ;;
17299 esac
17300
17301 ## define the build info
17302 LIB_INFO="host: ${host}, features:"
17303
17304 features="Configured features:\n Pulse-Eight CEC Adapter :\t\tyes"
17305 LIB_INFO="$LIB_INFO 'P8 USB'"
17306
17307 $as_echo "#define HAVE_P8_USB 1" >>confdefs.h
17308
17309 if true; then
17310 USE_P8_USB_TRUE=
17311 USE_P8_USB_FALSE='#'
17312 else
17313 USE_P8_USB_TRUE='#'
17314 USE_P8_USB_FALSE=
17315 fi
17316
17317
17318 if test "x$use_lockdev" = "xyes"; then
17319
17320 $as_echo "#define HAVE_LOCKDEV 1" >>confdefs.h
17321
17322 fi
17323
17324 ## mark adapter detection as available if the required deps were found
17325 if test "x$use_adapter_detection" = "xyes"; then
17326 ## mark udev as available if it was found
17327 if test "x$use_udev" = "xyes"; then
17328 INCLUDES="$INCLUDES $UDEV_CFLAGS"
17329 LIBS="$LIBS $UDEV_LIBS"
17330
17331 $as_echo "#define HAVE_LIBUDEV 1" >>confdefs.h
17332
17333 REQUIRES="$REQUIRES udev"
17334 fi
17335
17336
17337 $as_echo "#define HAVE_P8_USB_DETECT 1" >>confdefs.h
17338
17339 if true; then
17340 USE_P8_USB_DETECT_TRUE=
17341 USE_P8_USB_DETECT_FALSE='#'
17342 else
17343 USE_P8_USB_DETECT_TRUE='#'
17344 USE_P8_USB_DETECT_FALSE=
17345 fi
17346
17347
17348 features="$features\n Pulse-Eight CEC Adapter detection :\tyes"
17349 LIB_INFO="$LIB_INFO 'P8 USB detect'"
17350 else
17351 if false; then
17352 USE_P8_USB_DETECT_TRUE=
17353 USE_P8_USB_DETECT_FALSE='#'
17354 else
17355 USE_P8_USB_DETECT_TRUE='#'
17356 USE_P8_USB_DETECT_FALSE=
17357 fi
17358
17359 features="$features\n Pulse-Eight CEC Adapter detection :\tno"
17360 fi
17361
17362 ## mark RPi support as available if the required headers and libs were found
17363 if test "x$use_rpi" != "xno"; then
17364
17365 $as_echo "#define HAVE_RPI_API 1" >>confdefs.h
17366
17367 if true; then
17368 USE_RPI_API_TRUE=
17369 USE_RPI_API_FALSE='#'
17370 else
17371 USE_RPI_API_TRUE='#'
17372 USE_RPI_API_FALSE=
17373 fi
17374
17375 features="$features\n Raspberry Pi support :\t\tyes"
17376 LIB_INFO="$LIB_INFO 'RPi'"
17377 else
17378 if false; then
17379 USE_RPI_API_TRUE=
17380 USE_RPI_API_FALSE='#'
17381 else
17382 USE_RPI_API_TRUE='#'
17383 USE_RPI_API_FALSE=
17384 fi
17385
17386 features="$features\n Raspberry Pi support :\t\tno"
17387 fi
17388
17389 ## mark TDA995x support as available
17390 if test "x$use_tda995x" != "xno"; then
17391
17392 $as_echo "#define HAVE_TDA995X_API 1" >>confdefs.h
17393
17394 if true; then
17395 USE_TDA995X_API_TRUE=
17396 USE_TDA995X_API_FALSE='#'
17397 else
17398 USE_TDA995X_API_TRUE='#'
17399 USE_TDA995X_API_FALSE=
17400 fi
17401
17402 features="$features\n TDA995x support :\t\t\tyes"
17403 LIB_INFO="$LIB_INFO 'TDA995x'"
17404 CPPFLAGS="$CPPFLAGS $TDA995X_CFLAGS"
17405 else
17406 if false; then
17407 USE_TDA995X_API_TRUE=
17408 USE_TDA995X_API_FALSE='#'
17409 else
17410 USE_TDA995X_API_TRUE='#'
17411 USE_TDA995X_API_FALSE=
17412 fi
17413
17414 features="$features\n TDA995x support :\t\t\tno"
17415 fi
17416
17417 ## mark Exynos support as available
17418 if test "x$use_exynos" != "xno"; then
17419
17420 $as_echo "#define HAVE_EXYNOS_API 1" >>confdefs.h
17421
17422 if true; then
17423 USE_EXYNOS_API_TRUE=
17424 USE_EXYNOS_API_FALSE='#'
17425 else
17426 USE_EXYNOS_API_TRUE='#'
17427 USE_EXYNOS_API_FALSE=
17428 fi
17429
17430 features="$features\n Exynos support :\t\t\tyes"
17431 LIB_INFO="$LIB_INFO 'EXYNOS'"
17432 CPPFLAGS="$CPPFLAGS $EXYNOS_CFLAGS"
17433 else
17434 if false; then
17435 USE_EXYNOS_API_TRUE=
17436 USE_EXYNOS_API_FALSE='#'
17437 else
17438 USE_EXYNOS_API_TRUE='#'
17439 USE_EXYNOS_API_FALSE=
17440 fi
17441
17442 features="$features\n EXYNOS support :\t\t\tno"
17443 fi
17444
17445
17446 ## check if our build system is complete
17447 ac_fn_cxx_check_header_mongrel "$LINENO" "algorithm" "ac_cv_header_algorithm" "$ac_includes_default"
17448 if test "x$ac_cv_header_algorithm" = xyes; then :
17449
17450 else
17451 as_fn_error $? "$msg_required_header_missing" "$LINENO" 5
17452 fi
17453
17454
17455 ac_fn_cxx_check_header_mongrel "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
17456 if test "x$ac_cv_header_ctype_h" = xyes; then :
17457
17458 else
17459 as_fn_error $? "$msg_required_header_missing" "$LINENO" 5
17460 fi
17461
17462
17463 ac_fn_cxx_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
17464 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
17465
17466 else
17467 as_fn_error $? "$msg_required_header_missing" "$LINENO" 5
17468 fi
17469
17470
17471 ac_fn_cxx_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
17472 if test "x$ac_cv_header_errno_h" = xyes; then :
17473
17474 else
17475 as_fn_error $? "$msg_required_header_missing" "$LINENO" 5
17476 fi
17477
17478
17479 ac_fn_cxx_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
17480 if test "x$ac_cv_header_fcntl_h" = xyes; then :
17481
17482 else
17483 as_fn_error $? "$msg_required_header_missing" "$LINENO" 5
17484 fi
17485
17486
17487 ac_fn_cxx_check_header_mongrel "$LINENO" "functional" "ac_cv_header_functional" "$ac_includes_default"
17488 if test "x$ac_cv_header_functional" = xyes; then :
17489
17490 else
17491 as_fn_error $? "$msg_required_header_missing" "$LINENO" 5
17492 fi
17493
17494
17495 ac_fn_cxx_check_header_mongrel "$LINENO" "locale" "ac_cv_header_locale" "$ac_includes_default"
17496 if test "x$ac_cv_header_locale" = xyes; then :
17497
17498 else
17499
17500 $as_echo "#define SS_NO_LOCALE 1" >>confdefs.h
17501
17502 fi
17503
17504
17505 ac_fn_cxx_check_header_mongrel "$LINENO" "map" "ac_cv_header_map" "$ac_includes_default"
17506 if test "x$ac_cv_header_map" = xyes; then :
17507
17508 else
17509 as_fn_error $? "$msg_required_header_missing" "$LINENO" 5
17510 fi
17511
17512
17513 ac_fn_cxx_check_header_mongrel "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
17514 if test "x$ac_cv_header_netdb_h" = xyes; then :
17515
17516 else
17517 as_fn_error $? "$msg_required_header_missing" "$LINENO" 5
17518 fi
17519
17520
17521 ac_fn_cxx_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
17522 if test "x$ac_cv_header_poll_h" = xyes; then :
17523
17524 else
17525 as_fn_error $? "$msg_required_header_missing" "$LINENO" 5
17526 fi
17527
17528
17529 ac_fn_cxx_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
17530 if test "x$ac_cv_header_pthread_h" = xyes; then :
17531
17532 else
17533 as_fn_error $? "$msg_required_header_missing" "$LINENO" 5
17534 fi
17535
17536
17537 ac_fn_cxx_check_header_mongrel "$LINENO" "queue" "ac_cv_header_queue" "$ac_includes_default"
17538 if test "x$ac_cv_header_queue" = xyes; then :
17539
17540 else
17541 as_fn_error $? "$msg_required_header_missing" "$LINENO" 5
17542 fi
17543
17544
17545 ac_fn_cxx_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default"
17546 if test "x$ac_cv_header_semaphore_h" = xyes; then :
17547
17548 else
17549 as_fn_error $? "$msg_required_header_missing" "$LINENO" 5
17550 fi
17551
17552
17553 ac_fn_cxx_check_header_mongrel "$LINENO" "set" "ac_cv_header_set" "$ac_includes_default"
17554 if test "x$ac_cv_header_set" = xyes; then :
17555
17556 else
17557 as_fn_error $? "$msg_required_header_missing" "$LINENO" 5
17558 fi
17559
17560
17561 ac_fn_cxx_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
17562 if test "x$ac_cv_header_stdarg_h" = xyes; then :
17563
17564 else
17565 as_fn_error $? "$msg_required_header_missing" "$LINENO" 5
17566 fi
17567
17568
17569 ac_fn_cxx_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
17570 if test "x$ac_cv_header_stdint_h" = xyes; then :
17571
17572 else
17573 as_fn_error $? "$msg_required_header_missing" "$LINENO" 5
17574 fi
17575
17576
17577 ac_fn_cxx_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
17578 if test "x$ac_cv_header_stdio_h" = xyes; then :
17579
17580 else
17581 as_fn_error $? "$msg_required_header_missing" "$LINENO" 5
17582 fi
17583
17584
17585 ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
17586 if test "x$ac_cv_header_stdlib_h" = xyes; then :
17587
17588 else
17589 as_fn_error $? "$msg_required_header_missing" "$LINENO" 5
17590 fi
17591
17592
17593 ac_fn_cxx_check_header_mongrel "$LINENO" "string" "ac_cv_header_string" "$ac_includes_default"
17594 if test "x$ac_cv_header_string" = xyes; then :
17595
17596 else
17597 as_fn_error $? "$msg_required_header_missing" "$LINENO" 5
17598 fi
17599
17600
17601 ac_fn_cxx_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
17602 if test "x$ac_cv_header_string_h" = xyes; then :
17603
17604 else
17605 as_fn_error $? "$msg_required_header_missing" "$LINENO" 5
17606 fi
17607
17608
17609 ac_fn_cxx_check_header_mongrel "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
17610 if test "x$ac_cv_header_termios_h" = xyes; then :
17611
17612 else
17613 as_fn_error $? "$msg_required_header_missing" "$LINENO" 5
17614 fi
17615
17616
17617 ac_fn_cxx_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
17618 if test "x$ac_cv_header_unistd_h" = xyes; then :
17619
17620 else
17621 as_fn_error $? "$msg_required_header_missing" "$LINENO" 5
17622 fi
17623
17624
17625 ac_fn_cxx_check_header_mongrel "$LINENO" "vector" "ac_cv_header_vector" "$ac_includes_default"
17626 if test "x$ac_cv_header_vector" = xyes; then :
17627
17628 else
17629 as_fn_error $? "$msg_required_header_missing" "$LINENO" 5
17630 fi
17631
17632
17633 ac_fn_cxx_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
17634 if test "x$ac_cv_header_wchar_h" = xyes; then :
17635
17636 else
17637 as_fn_error $? "$msg_required_header_missing" "$LINENO" 5
17638 fi
17639
17640
17641 ac_fn_cxx_check_header_mongrel "$LINENO" "wctype.h" "ac_cv_header_wctype_h" "$ac_includes_default"
17642 if test "x$ac_cv_header_wctype_h" = xyes; then :
17643
17644 else
17645 as_fn_error $? "$msg_required_header_missing" "$LINENO" 5
17646 fi
17647
17648
17649 ac_fn_cxx_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
17650 if test "x$ac_cv_header_arpa_inet_h" = xyes; then :
17651
17652 else
17653 as_fn_error $? "$msg_required_header_missing" "$LINENO" 5
17654 fi
17655
17656
17657 ac_fn_cxx_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
17658 if test "x$ac_cv_header_netinet_in_h" = xyes; then :
17659
17660 else
17661 as_fn_error $? "$msg_required_header_missing" "$LINENO" 5
17662 fi
17663
17664
17665 ac_fn_cxx_check_header_mongrel "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default"
17666 if test "x$ac_cv_header_netinet_tcp_h" = xyes; then :
17667
17668 else
17669 as_fn_error $? "$msg_required_header_missing" "$LINENO" 5
17670 fi
17671
17672
17673 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
17674 if test "x$ac_cv_header_sys_socket_h" = xyes; then :
17675
17676 else
17677 as_fn_error $? "$msg_required_header_missing" "$LINENO" 5
17678 fi
17679
17680
17681 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
17682 if test "x$ac_cv_header_sys_time_h" = xyes; then :
17683
17684 else
17685 as_fn_error $? "$msg_required_header_missing" "$LINENO" 5
17686 fi
17687
17688
17689 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
17690 if test "x$ac_cv_header_sys_types_h" = xyes; then :
17691
17692 else
17693 as_fn_error $? "$msg_required_header_missing" "$LINENO" 5
17694 fi
17695
17696
17697 for ac_func in close fcntl select write read shutdown send recv memset sprintf getaddrinfo getsockopt setsockopt connect poll sched_yield open strerror tcsetattr tcgetattr cfsetispeed cfsetospeed bind freeaddrinfo listen accept socket
17698 do :
17699 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17700 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
17701 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17702 cat >>confdefs.h <<_ACEOF
17703 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17704 _ACEOF
17705
17706 fi
17707 done
17708
17709
17710 ## add the build date to LIB_INFO
17711 # Extract the first word of "git", so it can be a program name with args.
17712 set dummy git; ac_word=$2
17713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17714 $as_echo_n "checking for $ac_word... " >&6; }
17715 if ${ac_cv_prog_HAVE_GIT+:} false; then :
17716 $as_echo_n "(cached) " >&6
17717 else
17718 if test -n "$HAVE_GIT"; then
17719 ac_cv_prog_HAVE_GIT="$HAVE_GIT" # Let the user override the test.
17720 else
17721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17722 for as_dir in $PATH
17723 do
17724 IFS=$as_save_IFS
17725 test -z "$as_dir" && as_dir=.
17726 for ac_exec_ext in '' $ac_executable_extensions; do
17727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17728 ac_cv_prog_HAVE_GIT="yes"
17729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17730 break 2
17731 fi
17732 done
17733 done
17734 IFS=$as_save_IFS
17735
17736 fi
17737 fi
17738 HAVE_GIT=$ac_cv_prog_HAVE_GIT
17739 if test -n "$HAVE_GIT"; then
17740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GIT" >&5
17741 $as_echo "$HAVE_GIT" >&6; }
17742 else
17743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17744 $as_echo "no" >&6; }
17745 fi
17746
17747
17748 if test "x$HAVE_GIT" = "xyes"; then
17749 revision=$(git --no-pager log --abbrev=7 -n 1 --pretty=format:"%h" HEAD)
17750 fi
17751 if test "x$revision" != "x"; then
17752 LIB_INFO="$LIB_INFO, git revision: ${revision}"
17753 fi
17754
17755 # Extract the first word of "date", so it can be a program name with args.
17756 set dummy date; ac_word=$2
17757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17758 $as_echo_n "checking for $ac_word... " >&6; }
17759 if ${ac_cv_prog_HAVE_DATE+:} false; then :
17760 $as_echo_n "(cached) " >&6
17761 else
17762 if test -n "$HAVE_DATE"; then
17763 ac_cv_prog_HAVE_DATE="$HAVE_DATE" # Let the user override the test.
17764 else
17765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17766 for as_dir in $PATH
17767 do
17768 IFS=$as_save_IFS
17769 test -z "$as_dir" && as_dir=.
17770 for ac_exec_ext in '' $ac_executable_extensions; do
17771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17772 ac_cv_prog_HAVE_DATE="yes"
17773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17774 break 2
17775 fi
17776 done
17777 done
17778 IFS=$as_save_IFS
17779
17780 fi
17781 fi
17782 HAVE_DATE=$ac_cv_prog_HAVE_DATE
17783 if test -n "$HAVE_DATE"; then
17784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DATE" >&5
17785 $as_echo "$HAVE_DATE" >&6; }
17786 else
17787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17788 $as_echo "no" >&6; }
17789 fi
17790
17791
17792 if test "x$HAVE_DATE" = "xyes"; then
17793 LIB_INFO="$LIB_INFO, compiled on: `date -u`"
17794 else
17795 LIB_INFO="$LIB_INFO, compiled on: (unknown date)"
17796 fi
17797
17798 ## add the name of the user who built libCEC to LIB_INFO
17799 # Extract the first word of "whoami", so it can be a program name with args.
17800 set dummy whoami; ac_word=$2
17801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17802 $as_echo_n "checking for $ac_word... " >&6; }
17803 if ${ac_cv_prog_HAVE_WHOAMI+:} false; then :
17804 $as_echo_n "(cached) " >&6
17805 else
17806 if test -n "$HAVE_WHOAMI"; then
17807 ac_cv_prog_HAVE_WHOAMI="$HAVE_WHOAMI" # Let the user override the test.
17808 else
17809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17810 for as_dir in $PATH
17811 do
17812 IFS=$as_save_IFS
17813 test -z "$as_dir" && as_dir=.
17814 for ac_exec_ext in '' $ac_executable_extensions; do
17815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17816 ac_cv_prog_HAVE_WHOAMI="yes"
17817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17818 break 2
17819 fi
17820 done
17821 done
17822 IFS=$as_save_IFS
17823
17824 fi
17825 fi
17826 HAVE_WHOAMI=$ac_cv_prog_HAVE_WHOAMI
17827 if test -n "$HAVE_WHOAMI"; then
17828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_WHOAMI" >&5
17829 $as_echo "$HAVE_WHOAMI" >&6; }
17830 else
17831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17832 $as_echo "no" >&6; }
17833 fi
17834
17835
17836 if test "x$HAVE_WHOAMI" = "xyes" ; then
17837 LIB_INFO="$LIB_INFO by `whoami`"
17838 else
17839 LIB_INFO="$LIB_INFO by (unknown user)"
17840 fi
17841
17842 ## add the hostname of the build host of libCEC to LIB_INFO
17843 # Extract the first word of "hostname", so it can be a program name with args.
17844 set dummy hostname; ac_word=$2
17845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17846 $as_echo_n "checking for $ac_word... " >&6; }
17847 if ${ac_cv_prog_HAVE_HOSTNAME+:} false; then :
17848 $as_echo_n "(cached) " >&6
17849 else
17850 if test -n "$HAVE_HOSTNAME"; then
17851 ac_cv_prog_HAVE_HOSTNAME="$HAVE_HOSTNAME" # Let the user override the test.
17852 else
17853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17854 for as_dir in $PATH
17855 do
17856 IFS=$as_save_IFS
17857 test -z "$as_dir" && as_dir=.
17858 for ac_exec_ext in '' $ac_executable_extensions; do
17859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17860 ac_cv_prog_HAVE_HOSTNAME="yes"
17861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17862 break 2
17863 fi
17864 done
17865 done
17866 IFS=$as_save_IFS
17867
17868 fi
17869 fi
17870 HAVE_HOSTNAME=$ac_cv_prog_HAVE_HOSTNAME
17871 if test -n "$HAVE_HOSTNAME"; then
17872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_HOSTNAME" >&5
17873 $as_echo "$HAVE_HOSTNAME" >&6; }
17874 else
17875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17876 $as_echo "no" >&6; }
17877 fi
17878
17879
17880 if test "x$HAVE_HOSTNAME" = "xyes"; then
17881 LIB_INFO="$LIB_INFO@`hostname -f`"
17882 fi
17883
17884 ## add the system info of the build host of libCEC to LIB_INFO
17885 # Extract the first word of "uname", so it can be a program name with args.
17886 set dummy uname; ac_word=$2
17887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17888 $as_echo_n "checking for $ac_word... " >&6; }
17889 if ${ac_cv_prog_HAVE_UNAME+:} false; then :
17890 $as_echo_n "(cached) " >&6
17891 else
17892 if test -n "$HAVE_UNAME"; then
17893 ac_cv_prog_HAVE_UNAME="$HAVE_UNAME" # Let the user override the test.
17894 else
17895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17896 for as_dir in $PATH
17897 do
17898 IFS=$as_save_IFS
17899 test -z "$as_dir" && as_dir=.
17900 for ac_exec_ext in '' $ac_executable_extensions; do
17901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17902 ac_cv_prog_HAVE_UNAME="yes"
17903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17904 break 2
17905 fi
17906 done
17907 done
17908 IFS=$as_save_IFS
17909
17910 fi
17911 fi
17912 HAVE_UNAME=$ac_cv_prog_HAVE_UNAME
17913 if test -n "$HAVE_UNAME"; then
17914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_UNAME" >&5
17915 $as_echo "$HAVE_UNAME" >&6; }
17916 else
17917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17918 $as_echo "no" >&6; }
17919 fi
17920
17921
17922 if test "x$HAVE_UNAME" = "xyes"; then
17923 LIB_INFO="$LIB_INFO on `uname -s` `uname -r` (`uname -m`)"
17924 fi
17925
17926 ## redefine the LIBS, so cec-client isn't linked against things they don't need
17927 LIBS_LIBCEC="$LIBS"
17928 LIBS="$libs_client"
17929
17930 CXXFLAGS="$CXXFLAGS -fPIC -Wall -Wextra -Wno-missing-field-initializers $SUPPRESS_MANGLING_WARNINGS"
17931
17932 if test "x$use_debug" = "xyes"; then
17933 CXXFLAGS="$CXXFLAGS -g"
17934
17935 $as_echo "#define CEC_DEBUGGING \"1\"" >>confdefs.h
17936
17937 fi
17938
17939 if test "x$optimisation" = "xyes"; then
17940 CXXFLAGS="$CXXFLAGS -O2"
17941 fi
17942
17943
17944 cat >>confdefs.h <<_ACEOF
17945 #define LIB_INFO "$LIB_INFO"
17946 _ACEOF
17947
17948
17949
17950
17951
17952
17953
17954
17955
17956 ac_config_files="$ac_config_files src/lib/libcec.pc"
17957
17958 ac_config_files="$ac_config_files Makefile src/lib/Makefile src/testclient/Makefile"
17959
17960 cat >confcache <<\_ACEOF
17961 # This file is a shell script that caches the results of configure
17962 # tests run on this system so they can be shared between configure
17963 # scripts and configure runs, see configure's option --config-cache.
17964 # It is not useful on other systems. If it contains results you don't
17965 # want to keep, you may remove or edit it.
17966 #
17967 # config.status only pays attention to the cache file if you give it
17968 # the --recheck option to rerun configure.
17969 #
17970 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17971 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17972 # following values.
17973
17974 _ACEOF
17975
17976 # The following way of writing the cache mishandles newlines in values,
17977 # but we know of no workaround that is simple, portable, and efficient.
17978 # So, we kill variables containing newlines.
17979 # Ultrix sh set writes to stderr and can't be redirected directly,
17980 # and sets the high bit in the cache file unless we assign to the vars.
17981 (
17982 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17983 eval ac_val=\$$ac_var
17984 case $ac_val in #(
17985 *${as_nl}*)
17986 case $ac_var in #(
17987 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17988 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17989 esac
17990 case $ac_var in #(
17991 _ | IFS | as_nl) ;; #(
17992 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17993 *) { eval $ac_var=; unset $ac_var;} ;;
17994 esac ;;
17995 esac
17996 done
17997
17998 (set) 2>&1 |
17999 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18000 *${as_nl}ac_space=\ *)
18001 # `set' does not quote correctly, so add quotes: double-quote
18002 # substitution turns \\\\ into \\, and sed turns \\ into \.
18003 sed -n \
18004 "s/'/'\\\\''/g;
18005 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18006 ;; #(
18007 *)
18008 # `set' quotes correctly as required by POSIX, so do not add quotes.
18009 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18010 ;;
18011 esac |
18012 sort
18013 ) |
18014 sed '
18015 /^ac_cv_env_/b end
18016 t clear
18017 :clear
18018 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18019 t end
18020 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18021 :end' >>confcache
18022 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18023 if test -w "$cache_file"; then
18024 if test "x$cache_file" != "x/dev/null"; then
18025 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18026 $as_echo "$as_me: updating cache $cache_file" >&6;}
18027 if test ! -f "$cache_file" || test -h "$cache_file"; then
18028 cat confcache >"$cache_file"
18029 else
18030 case $cache_file in #(
18031 */* | ?:*)
18032 mv -f confcache "$cache_file"$$ &&
18033 mv -f "$cache_file"$$ "$cache_file" ;; #(
18034 *)
18035 mv -f confcache "$cache_file" ;;
18036 esac
18037 fi
18038 fi
18039 else
18040 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18041 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18042 fi
18043 fi
18044 rm -f confcache
18045
18046 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18047 # Let make expand exec_prefix.
18048 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18049
18050 DEFS=-DHAVE_CONFIG_H
18051
18052 ac_libobjs=
18053 ac_ltlibobjs=
18054 U=
18055 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18056 # 1. Remove the extension, and $U if already installed.
18057 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18058 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18059 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18060 # will be set to the directory where LIBOBJS objects are built.
18061 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18062 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18063 done
18064 LIBOBJS=$ac_libobjs
18065
18066 LTLIBOBJS=$ac_ltlibobjs
18067
18068
18069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18070 $as_echo_n "checking that generated files are newer than configure... " >&6; }
18071 if test -n "$am_sleep_pid"; then
18072 # Hide warnings about reused PIDs.
18073 wait $am_sleep_pid 2>/dev/null
18074 fi
18075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18076 $as_echo "done" >&6; }
18077 if test -n "$EXEEXT"; then
18078 am__EXEEXT_TRUE=
18079 am__EXEEXT_FALSE='#'
18080 else
18081 am__EXEEXT_TRUE='#'
18082 am__EXEEXT_FALSE=
18083 fi
18084
18085 if test -n "$EXEEXT"; then
18086 am__EXEEXT_TRUE=
18087 am__EXEEXT_FALSE='#'
18088 else
18089 am__EXEEXT_TRUE='#'
18090 am__EXEEXT_FALSE=
18091 fi
18092
18093 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18094 as_fn_error $? "conditional \"AMDEP\" was never defined.
18095 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18096 fi
18097 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18098 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
18099 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18100 fi
18101 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18102 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
18103 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18104 fi
18105 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18106 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18107 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18108 fi
18109 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18110 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18111 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18112 fi
18113 if test -z "${USE_X11_RANDR_TRUE}" && test -z "${USE_X11_RANDR_FALSE}"; then
18114 as_fn_error $? "conditional \"USE_X11_RANDR\" was never defined.
18115 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18116 fi
18117 if test -z "${USE_X11_RANDR_TRUE}" && test -z "${USE_X11_RANDR_FALSE}"; then
18118 as_fn_error $? "conditional \"USE_X11_RANDR\" was never defined.
18119 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18120 fi
18121 if test -z "${USE_X11_RANDR_TRUE}" && test -z "${USE_X11_RANDR_FALSE}"; then
18122 as_fn_error $? "conditional \"USE_X11_RANDR\" was never defined.
18123 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18124 fi
18125 if test -z "${USE_P8_USB_TRUE}" && test -z "${USE_P8_USB_FALSE}"; then
18126 as_fn_error $? "conditional \"USE_P8_USB\" was never defined.
18127 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18128 fi
18129 if test -z "${USE_P8_USB_DETECT_TRUE}" && test -z "${USE_P8_USB_DETECT_FALSE}"; then
18130 as_fn_error $? "conditional \"USE_P8_USB_DETECT\" was never defined.
18131 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18132 fi
18133 if test -z "${USE_P8_USB_DETECT_TRUE}" && test -z "${USE_P8_USB_DETECT_FALSE}"; then
18134 as_fn_error $? "conditional \"USE_P8_USB_DETECT\" was never defined.
18135 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18136 fi
18137 if test -z "${USE_RPI_API_TRUE}" && test -z "${USE_RPI_API_FALSE}"; then
18138 as_fn_error $? "conditional \"USE_RPI_API\" was never defined.
18139 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18140 fi
18141 if test -z "${USE_RPI_API_TRUE}" && test -z "${USE_RPI_API_FALSE}"; then
18142 as_fn_error $? "conditional \"USE_RPI_API\" was never defined.
18143 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18144 fi
18145 if test -z "${USE_TDA995X_API_TRUE}" && test -z "${USE_TDA995X_API_FALSE}"; then
18146 as_fn_error $? "conditional \"USE_TDA995X_API\" was never defined.
18147 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18148 fi
18149 if test -z "${USE_TDA995X_API_TRUE}" && test -z "${USE_TDA995X_API_FALSE}"; then
18150 as_fn_error $? "conditional \"USE_TDA995X_API\" was never defined.
18151 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18152 fi
18153 if test -z "${USE_EXYNOS_API_TRUE}" && test -z "${USE_EXYNOS_API_FALSE}"; then
18154 as_fn_error $? "conditional \"USE_EXYNOS_API\" was never defined.
18155 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18156 fi
18157 if test -z "${USE_EXYNOS_API_TRUE}" && test -z "${USE_EXYNOS_API_FALSE}"; then
18158 as_fn_error $? "conditional \"USE_EXYNOS_API\" was never defined.
18159 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18160 fi
18161
18162 : "${CONFIG_STATUS=./config.status}"
18163 ac_write_fail=0
18164 ac_clean_files_save=$ac_clean_files
18165 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18166 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18167 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18168 as_write_fail=0
18169 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18170 #! $SHELL
18171 # Generated by $as_me.
18172 # Run this file to recreate the current configuration.
18173 # Compiler output produced by configure, useful for debugging
18174 # configure, is in config.log if it exists.
18175
18176 debug=false
18177 ac_cs_recheck=false
18178 ac_cs_silent=false
18179
18180 SHELL=\${CONFIG_SHELL-$SHELL}
18181 export SHELL
18182 _ASEOF
18183 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18184 ## -------------------- ##
18185 ## M4sh Initialization. ##
18186 ## -------------------- ##
18187
18188 # Be more Bourne compatible
18189 DUALCASE=1; export DUALCASE # for MKS sh
18190 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18191 emulate sh
18192 NULLCMD=:
18193 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18194 # is contrary to our usage. Disable this feature.
18195 alias -g '${1+"$@"}'='"$@"'
18196 setopt NO_GLOB_SUBST
18197 else
18198 case `(set -o) 2>/dev/null` in #(
18199 *posix*) :
18200 set -o posix ;; #(
18201 *) :
18202 ;;
18203 esac
18204 fi
18205
18206
18207 as_nl='
18208 '
18209 export as_nl
18210 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18211 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18212 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18213 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18214 # Prefer a ksh shell builtin over an external printf program on Solaris,
18215 # but without wasting forks for bash or zsh.
18216 if test -z "$BASH_VERSION$ZSH_VERSION" \
18217 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18218 as_echo='print -r --'
18219 as_echo_n='print -rn --'
18220 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18221 as_echo='printf %s\n'
18222 as_echo_n='printf %s'
18223 else
18224 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18225 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18226 as_echo_n='/usr/ucb/echo -n'
18227 else
18228 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18229 as_echo_n_body='eval
18230 arg=$1;
18231 case $arg in #(
18232 *"$as_nl"*)
18233 expr "X$arg" : "X\\(.*\\)$as_nl";
18234 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18235 esac;
18236 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18237 '
18238 export as_echo_n_body
18239 as_echo_n='sh -c $as_echo_n_body as_echo'
18240 fi
18241 export as_echo_body
18242 as_echo='sh -c $as_echo_body as_echo'
18243 fi
18244
18245 # The user is always right.
18246 if test "${PATH_SEPARATOR+set}" != set; then
18247 PATH_SEPARATOR=:
18248 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18249 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18250 PATH_SEPARATOR=';'
18251 }
18252 fi
18253
18254
18255 # IFS
18256 # We need space, tab and new line, in precisely that order. Quoting is
18257 # there to prevent editors from complaining about space-tab.
18258 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18259 # splitting by setting IFS to empty value.)
18260 IFS=" "" $as_nl"
18261
18262 # Find who we are. Look in the path if we contain no directory separator.
18263 as_myself=
18264 case $0 in #((
18265 *[\\/]* ) as_myself=$0 ;;
18266 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18267 for as_dir in $PATH
18268 do
18269 IFS=$as_save_IFS
18270 test -z "$as_dir" && as_dir=.
18271 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18272 done
18273 IFS=$as_save_IFS
18274
18275 ;;
18276 esac
18277 # We did not find ourselves, most probably we were run as `sh COMMAND'
18278 # in which case we are not to be found in the path.
18279 if test "x$as_myself" = x; then
18280 as_myself=$0
18281 fi
18282 if test ! -f "$as_myself"; then
18283 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18284 exit 1
18285 fi
18286
18287 # Unset variables that we do not need and which cause bugs (e.g. in
18288 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18289 # suppresses any "Segmentation fault" message there. '((' could
18290 # trigger a bug in pdksh 5.2.14.
18291 for as_var in BASH_ENV ENV MAIL MAILPATH
18292 do eval test x\${$as_var+set} = xset \
18293 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18294 done
18295 PS1='$ '
18296 PS2='> '
18297 PS4='+ '
18298
18299 # NLS nuisances.
18300 LC_ALL=C
18301 export LC_ALL
18302 LANGUAGE=C
18303 export LANGUAGE
18304
18305 # CDPATH.
18306 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18307
18308
18309 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18310 # ----------------------------------------
18311 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18312 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18313 # script with STATUS, using 1 if that was 0.
18314 as_fn_error ()
18315 {
18316 as_status=$1; test $as_status -eq 0 && as_status=1
18317 if test "$4"; then
18318 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18319 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18320 fi
18321 $as_echo "$as_me: error: $2" >&2
18322 as_fn_exit $as_status
18323 } # as_fn_error
18324
18325
18326 # as_fn_set_status STATUS
18327 # -----------------------
18328 # Set $? to STATUS, without forking.
18329 as_fn_set_status ()
18330 {
18331 return $1
18332 } # as_fn_set_status
18333
18334 # as_fn_exit STATUS
18335 # -----------------
18336 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18337 as_fn_exit ()
18338 {
18339 set +e
18340 as_fn_set_status $1
18341 exit $1
18342 } # as_fn_exit
18343
18344 # as_fn_unset VAR
18345 # ---------------
18346 # Portably unset VAR.
18347 as_fn_unset ()
18348 {
18349 { eval $1=; unset $1;}
18350 }
18351 as_unset=as_fn_unset
18352 # as_fn_append VAR VALUE
18353 # ----------------------
18354 # Append the text in VALUE to the end of the definition contained in VAR. Take
18355 # advantage of any shell optimizations that allow amortized linear growth over
18356 # repeated appends, instead of the typical quadratic growth present in naive
18357 # implementations.
18358 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18359 eval 'as_fn_append ()
18360 {
18361 eval $1+=\$2
18362 }'
18363 else
18364 as_fn_append ()
18365 {
18366 eval $1=\$$1\$2
18367 }
18368 fi # as_fn_append
18369
18370 # as_fn_arith ARG...
18371 # ------------------
18372 # Perform arithmetic evaluation on the ARGs, and store the result in the
18373 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18374 # must be portable across $(()) and expr.
18375 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18376 eval 'as_fn_arith ()
18377 {
18378 as_val=$(( $* ))
18379 }'
18380 else
18381 as_fn_arith ()
18382 {
18383 as_val=`expr "$@" || test $? -eq 1`
18384 }
18385 fi # as_fn_arith
18386
18387
18388 if expr a : '\(a\)' >/dev/null 2>&1 &&
18389 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18390 as_expr=expr
18391 else
18392 as_expr=false
18393 fi
18394
18395 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18396 as_basename=basename
18397 else
18398 as_basename=false
18399 fi
18400
18401 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18402 as_dirname=dirname
18403 else
18404 as_dirname=false
18405 fi
18406
18407 as_me=`$as_basename -- "$0" ||
18408 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18409 X"$0" : 'X\(//\)$' \| \
18410 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18411 $as_echo X/"$0" |
18412 sed '/^.*\/\([^/][^/]*\)\/*$/{
18413 s//\1/
18414 q
18415 }
18416 /^X\/\(\/\/\)$/{
18417 s//\1/
18418 q
18419 }
18420 /^X\/\(\/\).*/{
18421 s//\1/
18422 q
18423 }
18424 s/.*/./; q'`
18425
18426 # Avoid depending upon Character Ranges.
18427 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18428 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18429 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18430 as_cr_digits='0123456789'
18431 as_cr_alnum=$as_cr_Letters$as_cr_digits
18432
18433 ECHO_C= ECHO_N= ECHO_T=
18434 case `echo -n x` in #(((((
18435 -n*)
18436 case `echo 'xy\c'` in
18437 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18438 xy) ECHO_C='\c';;
18439 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18440 ECHO_T=' ';;
18441 esac;;
18442 *)
18443 ECHO_N='-n';;
18444 esac
18445
18446 rm -f conf$$ conf$$.exe conf$$.file
18447 if test -d conf$$.dir; then
18448 rm -f conf$$.dir/conf$$.file
18449 else
18450 rm -f conf$$.dir
18451 mkdir conf$$.dir 2>/dev/null
18452 fi
18453 if (echo >conf$$.file) 2>/dev/null; then
18454 if ln -s conf$$.file conf$$ 2>/dev/null; then
18455 as_ln_s='ln -s'
18456 # ... but there are two gotchas:
18457 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18458 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18459 # In both cases, we have to default to `cp -pR'.
18460 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18461 as_ln_s='cp -pR'
18462 elif ln conf$$.file conf$$ 2>/dev/null; then
18463 as_ln_s=ln
18464 else
18465 as_ln_s='cp -pR'
18466 fi
18467 else
18468 as_ln_s='cp -pR'
18469 fi
18470 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18471 rmdir conf$$.dir 2>/dev/null
18472
18473
18474 # as_fn_mkdir_p
18475 # -------------
18476 # Create "$as_dir" as a directory, including parents if necessary.
18477 as_fn_mkdir_p ()
18478 {
18479
18480 case $as_dir in #(
18481 -*) as_dir=./$as_dir;;
18482 esac
18483 test -d "$as_dir" || eval $as_mkdir_p || {
18484 as_dirs=
18485 while :; do
18486 case $as_dir in #(
18487 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18488 *) as_qdir=$as_dir;;
18489 esac
18490 as_dirs="'$as_qdir' $as_dirs"
18491 as_dir=`$as_dirname -- "$as_dir" ||
18492 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18493 X"$as_dir" : 'X\(//\)[^/]' \| \
18494 X"$as_dir" : 'X\(//\)$' \| \
18495 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18496 $as_echo X"$as_dir" |
18497 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18498 s//\1/
18499 q
18500 }
18501 /^X\(\/\/\)[^/].*/{
18502 s//\1/
18503 q
18504 }
18505 /^X\(\/\/\)$/{
18506 s//\1/
18507 q
18508 }
18509 /^X\(\/\).*/{
18510 s//\1/
18511 q
18512 }
18513 s/.*/./; q'`
18514 test -d "$as_dir" && break
18515 done
18516 test -z "$as_dirs" || eval "mkdir $as_dirs"
18517 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18518
18519
18520 } # as_fn_mkdir_p
18521 if mkdir -p . 2>/dev/null; then
18522 as_mkdir_p='mkdir -p "$as_dir"'
18523 else
18524 test -d ./-p && rmdir ./-p
18525 as_mkdir_p=false
18526 fi
18527
18528
18529 # as_fn_executable_p FILE
18530 # -----------------------
18531 # Test if FILE is an executable regular file.
18532 as_fn_executable_p ()
18533 {
18534 test -f "$1" && test -x "$1"
18535 } # as_fn_executable_p
18536 as_test_x='test -x'
18537 as_executable_p=as_fn_executable_p
18538
18539 # Sed expression to map a string onto a valid CPP name.
18540 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18541
18542 # Sed expression to map a string onto a valid variable name.
18543 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18544
18545
18546 exec 6>&1
18547 ## ----------------------------------- ##
18548 ## Main body of $CONFIG_STATUS script. ##
18549 ## ----------------------------------- ##
18550 _ASEOF
18551 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18552
18553 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18554 # Save the log message, to keep $0 and so on meaningful, and to
18555 # report actual input values of CONFIG_FILES etc. instead of their
18556 # values after options handling.
18557 ac_log="
18558 This file was extended by libcec $as_me 2:1:0, which was
18559 generated by GNU Autoconf 2.69. Invocation command line was
18560
18561 CONFIG_FILES = $CONFIG_FILES
18562 CONFIG_HEADERS = $CONFIG_HEADERS
18563 CONFIG_LINKS = $CONFIG_LINKS
18564 CONFIG_COMMANDS = $CONFIG_COMMANDS
18565 $ $0 $@
18566
18567 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18568 "
18569
18570 _ACEOF
18571
18572 case $ac_config_files in *"
18573 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18574 esac
18575
18576 case $ac_config_headers in *"
18577 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18578 esac
18579
18580
18581 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18582 # Files that config.status was made for.
18583 config_files="$ac_config_files"
18584 config_headers="$ac_config_headers"
18585 config_commands="$ac_config_commands"
18586
18587 _ACEOF
18588
18589 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18590 ac_cs_usage="\
18591 \`$as_me' instantiates files and other configuration actions
18592 from templates according to the current configuration. Unless the files
18593 and actions are specified as TAGs, all are instantiated by default.
18594
18595 Usage: $0 [OPTION]... [TAG]...
18596
18597 -h, --help print this help, then exit
18598 -V, --version print version number and configuration settings, then exit
18599 --config print configuration, then exit
18600 -q, --quiet, --silent
18601 do not print progress messages
18602 -d, --debug don't remove temporary files
18603 --recheck update $as_me by reconfiguring in the same conditions
18604 --file=FILE[:TEMPLATE]
18605 instantiate the configuration file FILE
18606 --header=FILE[:TEMPLATE]
18607 instantiate the configuration header FILE
18608
18609 Configuration files:
18610 $config_files
18611
18612 Configuration headers:
18613 $config_headers
18614
18615 Configuration commands:
18616 $config_commands
18617
18618 Report bugs to <http://libcec.pulse-eight.com/>."
18619
18620 _ACEOF
18621 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18622 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18623 ac_cs_version="\\
18624 libcec config.status 2:1:0
18625 configured by $0, generated by GNU Autoconf 2.69,
18626 with options \\"\$ac_cs_config\\"
18627
18628 Copyright (C) 2012 Free Software Foundation, Inc.
18629 This config.status script is free software; the Free Software Foundation
18630 gives unlimited permission to copy, distribute and modify it."
18631
18632 ac_pwd='$ac_pwd'
18633 srcdir='$srcdir'
18634 INSTALL='$INSTALL'
18635 MKDIR_P='$MKDIR_P'
18636 AWK='$AWK'
18637 test -n "\$AWK" || AWK=awk
18638 _ACEOF
18639
18640 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18641 # The default lists apply if the user does not specify any file.
18642 ac_need_defaults=:
18643 while test $# != 0
18644 do
18645 case $1 in
18646 --*=?*)
18647 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18648 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18649 ac_shift=:
18650 ;;
18651 --*=)
18652 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18653 ac_optarg=
18654 ac_shift=:
18655 ;;
18656 *)
18657 ac_option=$1
18658 ac_optarg=$2
18659 ac_shift=shift
18660 ;;
18661 esac
18662
18663 case $ac_option in
18664 # Handling of the options.
18665 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18666 ac_cs_recheck=: ;;
18667 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18668 $as_echo "$ac_cs_version"; exit ;;
18669 --config | --confi | --conf | --con | --co | --c )
18670 $as_echo "$ac_cs_config"; exit ;;
18671 --debug | --debu | --deb | --de | --d | -d )
18672 debug=: ;;
18673 --file | --fil | --fi | --f )
18674 $ac_shift
18675 case $ac_optarg in
18676 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18677 '') as_fn_error $? "missing file argument" ;;
18678 esac
18679 as_fn_append CONFIG_FILES " '$ac_optarg'"
18680 ac_need_defaults=false;;
18681 --header | --heade | --head | --hea )
18682 $ac_shift
18683 case $ac_optarg in
18684 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18685 esac
18686 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18687 ac_need_defaults=false;;
18688 --he | --h)
18689 # Conflict between --help and --header
18690 as_fn_error $? "ambiguous option: \`$1'
18691 Try \`$0 --help' for more information.";;
18692 --help | --hel | -h )
18693 $as_echo "$ac_cs_usage"; exit ;;
18694 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18695 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18696 ac_cs_silent=: ;;
18697
18698 # This is an error.
18699 -*) as_fn_error $? "unrecognized option: \`$1'
18700 Try \`$0 --help' for more information." ;;
18701
18702 *) as_fn_append ac_config_targets " $1"
18703 ac_need_defaults=false ;;
18704
18705 esac
18706 shift
18707 done
18708
18709 ac_configure_extra_args=
18710
18711 if $ac_cs_silent; then
18712 exec 6>/dev/null
18713 ac_configure_extra_args="$ac_configure_extra_args --silent"
18714 fi
18715
18716 _ACEOF
18717 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18718 if \$ac_cs_recheck; then
18719 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18720 shift
18721 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18722 CONFIG_SHELL='$SHELL'
18723 export CONFIG_SHELL
18724 exec "\$@"
18725 fi
18726
18727 _ACEOF
18728 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18729 exec 5>>config.log
18730 {
18731 echo
18732 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18733 ## Running $as_me. ##
18734 _ASBOX
18735 $as_echo "$ac_log"
18736 } >&5
18737
18738 _ACEOF
18739 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18740 #
18741 # INIT-COMMANDS
18742 #
18743 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18744
18745
18746 # The HP-UX ksh and POSIX shell print the target directory to stdout
18747 # if CDPATH is set.
18748 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18749
18750 sed_quote_subst='$sed_quote_subst'
18751 double_quote_subst='$double_quote_subst'
18752 delay_variable_subst='$delay_variable_subst'
18753 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18754 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18755 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18756 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18757 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18758 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18759 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18760 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18761 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18762 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18763 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18764 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18765 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18766 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18767 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18768 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18769 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18770 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18771 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18772 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18773 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18774 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18775 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18776 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18777 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18778 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18779 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18780 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18781 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18782 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18783 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18784 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18785 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18786 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18787 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18788 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18789 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18790 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18791 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18792 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18793 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18794 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18795 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18796 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18797 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18798 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18799 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18800 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18801 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18802 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18803 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18804 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18805 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18806 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18807 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18808 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18809 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"`'
18810 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18811 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18812 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18813 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18814 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18815 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18816 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18817 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18818 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18819 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18820 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18821 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18822 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18823 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18824 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18825 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18826 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18827 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18828 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18829 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18830 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18831 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18832 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18833 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18834 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18835 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18836 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18837 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18838 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18839 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18840 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18841 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18842 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18843 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18844 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18845 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18846 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18847 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18848 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18849 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18850 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18851 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18852 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18853 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18854 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18855 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18856 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18857 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18858 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18859 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18860 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18861 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18862 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18863 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18864 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18865 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18866 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18867 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18868 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18869 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18870 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18871 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18872 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18873 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18874 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18875 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18876 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18877 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18878 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18879 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18880 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18881 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18882 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18883 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18884 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18885 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18886 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18887 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18888 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18889 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18890 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18891 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18892 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18893 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18894 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18895 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18896 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18897 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18898 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18899 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18900 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18901 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18902 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18903 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18904 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18905 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18906 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18907 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18908 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18909 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18910 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18911 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18912 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18913 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18914 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18915 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18916 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18917 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18918 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18919 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18920 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18921 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18922 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18923 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18924 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18925 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18926 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18927 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18928 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18929 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18930 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18931 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18932 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18933 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18934 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18935 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18936 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18937
18938 LTCC='$LTCC'
18939 LTCFLAGS='$LTCFLAGS'
18940 compiler='$compiler_DEFAULT'
18941
18942 # A function that is used when there is no print builtin or printf.
18943 func_fallback_echo ()
18944 {
18945 eval 'cat <<_LTECHO_EOF
18946 \$1
18947 _LTECHO_EOF'
18948 }
18949
18950 # Quote evaled strings.
18951 for var in SHELL \
18952 ECHO \
18953 PATH_SEPARATOR \
18954 SED \
18955 GREP \
18956 EGREP \
18957 FGREP \
18958 LD \
18959 NM \
18960 LN_S \
18961 lt_SP2NL \
18962 lt_NL2SP \
18963 reload_flag \
18964 OBJDUMP \
18965 deplibs_check_method \
18966 file_magic_cmd \
18967 file_magic_glob \
18968 want_nocaseglob \
18969 DLLTOOL \
18970 sharedlib_from_linklib_cmd \
18971 AR \
18972 AR_FLAGS \
18973 archiver_list_spec \
18974 STRIP \
18975 RANLIB \
18976 CC \
18977 CFLAGS \
18978 compiler \
18979 lt_cv_sys_global_symbol_pipe \
18980 lt_cv_sys_global_symbol_to_cdecl \
18981 lt_cv_sys_global_symbol_to_c_name_address \
18982 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18983 nm_file_list_spec \
18984 lt_prog_compiler_no_builtin_flag \
18985 lt_prog_compiler_pic \
18986 lt_prog_compiler_wl \
18987 lt_prog_compiler_static \
18988 lt_cv_prog_compiler_c_o \
18989 need_locks \
18990 MANIFEST_TOOL \
18991 DSYMUTIL \
18992 NMEDIT \
18993 LIPO \
18994 OTOOL \
18995 OTOOL64 \
18996 shrext_cmds \
18997 export_dynamic_flag_spec \
18998 whole_archive_flag_spec \
18999 compiler_needs_object \
19000 with_gnu_ld \
19001 allow_undefined_flag \
19002 no_undefined_flag \
19003 hardcode_libdir_flag_spec \
19004 hardcode_libdir_separator \
19005 exclude_expsyms \
19006 include_expsyms \
19007 file_list_spec \
19008 variables_saved_for_relink \
19009 libname_spec \
19010 library_names_spec \
19011 soname_spec \
19012 install_override_mode \
19013 finish_eval \
19014 old_striplib \
19015 striplib \
19016 compiler_lib_search_dirs \
19017 predep_objects \
19018 postdep_objects \
19019 predeps \
19020 postdeps \
19021 compiler_lib_search_path \
19022 LD_CXX \
19023 reload_flag_CXX \
19024 compiler_CXX \
19025 lt_prog_compiler_no_builtin_flag_CXX \
19026 lt_prog_compiler_pic_CXX \
19027 lt_prog_compiler_wl_CXX \
19028 lt_prog_compiler_static_CXX \
19029 lt_cv_prog_compiler_c_o_CXX \
19030 export_dynamic_flag_spec_CXX \
19031 whole_archive_flag_spec_CXX \
19032 compiler_needs_object_CXX \
19033 with_gnu_ld_CXX \
19034 allow_undefined_flag_CXX \
19035 no_undefined_flag_CXX \
19036 hardcode_libdir_flag_spec_CXX \
19037 hardcode_libdir_separator_CXX \
19038 exclude_expsyms_CXX \
19039 include_expsyms_CXX \
19040 file_list_spec_CXX \
19041 compiler_lib_search_dirs_CXX \
19042 predep_objects_CXX \
19043 postdep_objects_CXX \
19044 predeps_CXX \
19045 postdeps_CXX \
19046 compiler_lib_search_path_CXX; do
19047 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19048 *[\\\\\\\`\\"\\\$]*)
19049 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19050 ;;
19051 *)
19052 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19053 ;;
19054 esac
19055 done
19056
19057 # Double-quote double-evaled strings.
19058 for var in reload_cmds \
19059 old_postinstall_cmds \
19060 old_postuninstall_cmds \
19061 old_archive_cmds \
19062 extract_expsyms_cmds \
19063 old_archive_from_new_cmds \
19064 old_archive_from_expsyms_cmds \
19065 archive_cmds \
19066 archive_expsym_cmds \
19067 module_cmds \
19068 module_expsym_cmds \
19069 export_symbols_cmds \
19070 prelink_cmds \
19071 postlink_cmds \
19072 postinstall_cmds \
19073 postuninstall_cmds \
19074 finish_cmds \
19075 sys_lib_search_path_spec \
19076 sys_lib_dlsearch_path_spec \
19077 reload_cmds_CXX \
19078 old_archive_cmds_CXX \
19079 old_archive_from_new_cmds_CXX \
19080 old_archive_from_expsyms_cmds_CXX \
19081 archive_cmds_CXX \
19082 archive_expsym_cmds_CXX \
19083 module_cmds_CXX \
19084 module_expsym_cmds_CXX \
19085 export_symbols_cmds_CXX \
19086 prelink_cmds_CXX \
19087 postlink_cmds_CXX; do
19088 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19089 *[\\\\\\\`\\"\\\$]*)
19090 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19091 ;;
19092 *)
19093 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19094 ;;
19095 esac
19096 done
19097
19098 ac_aux_dir='$ac_aux_dir'
19099 xsi_shell='$xsi_shell'
19100 lt_shell_append='$lt_shell_append'
19101
19102 # See if we are running on zsh, and set the options which allow our
19103 # commands through without removal of \ escapes INIT.
19104 if test -n "\${ZSH_VERSION+set}" ; then
19105 setopt NO_GLOB_SUBST
19106 fi
19107
19108
19109 PACKAGE='$PACKAGE'
19110 VERSION='$VERSION'
19111 TIMESTAMP='$TIMESTAMP'
19112 RM='$RM'
19113 ofile='$ofile'
19114
19115
19116
19117
19118
19119
19120 _ACEOF
19121
19122 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19123
19124 # Handling of arguments.
19125 for ac_config_target in $ac_config_targets
19126 do
19127 case $ac_config_target in
19128 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19129 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19130 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19131 "src/lib/libcec.pc") CONFIG_FILES="$CONFIG_FILES src/lib/libcec.pc" ;;
19132 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19133 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
19134 "src/testclient/Makefile") CONFIG_FILES="$CONFIG_FILES src/testclient/Makefile" ;;
19135
19136 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19137 esac
19138 done
19139
19140
19141 # If the user did not use the arguments to specify the items to instantiate,
19142 # then the envvar interface is used. Set only those that are not.
19143 # We use the long form for the default assignment because of an extremely
19144 # bizarre bug on SunOS 4.1.3.
19145 if $ac_need_defaults; then
19146 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19147 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19148 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19149 fi
19150
19151 # Have a temporary directory for convenience. Make it in the build tree
19152 # simply because there is no reason against having it here, and in addition,
19153 # creating and moving files from /tmp can sometimes cause problems.
19154 # Hook for its removal unless debugging.
19155 # Note that there is a small window in which the directory will not be cleaned:
19156 # after its creation but before its name has been assigned to `$tmp'.
19157 $debug ||
19158 {
19159 tmp= ac_tmp=
19160 trap 'exit_status=$?
19161 : "${ac_tmp:=$tmp}"
19162 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19163 ' 0
19164 trap 'as_fn_exit 1' 1 2 13 15
19165 }
19166 # Create a (secure) tmp directory for tmp files.
19167
19168 {
19169 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19170 test -d "$tmp"
19171 } ||
19172 {
19173 tmp=./conf$$-$RANDOM
19174 (umask 077 && mkdir "$tmp")
19175 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19176 ac_tmp=$tmp
19177
19178 # Set up the scripts for CONFIG_FILES section.
19179 # No need to generate them if there are no CONFIG_FILES.
19180 # This happens for instance with `./config.status config.h'.
19181 if test -n "$CONFIG_FILES"; then
19182
19183
19184 ac_cr=`echo X | tr X '\015'`
19185 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19186 # But we know of no other shell where ac_cr would be empty at this
19187 # point, so we can use a bashism as a fallback.
19188 if test "x$ac_cr" = x; then
19189 eval ac_cr=\$\'\\r\'
19190 fi
19191 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19192 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19193 ac_cs_awk_cr='\\r'
19194 else
19195 ac_cs_awk_cr=$ac_cr
19196 fi
19197
19198 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19199 _ACEOF
19200
19201
19202 {
19203 echo "cat >conf$$subs.awk <<_ACEOF" &&
19204 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19205 echo "_ACEOF"
19206 } >conf$$subs.sh ||
19207 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19208 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19209 ac_delim='%!_!# '
19210 for ac_last_try in false false false false false :; do
19211 . ./conf$$subs.sh ||
19212 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19213
19214 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19215 if test $ac_delim_n = $ac_delim_num; then
19216 break
19217 elif $ac_last_try; then
19218 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19219 else
19220 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19221 fi
19222 done
19223 rm -f conf$$subs.sh
19224
19225 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19226 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19227 _ACEOF
19228 sed -n '
19229 h
19230 s/^/S["/; s/!.*/"]=/
19231 p
19232 g
19233 s/^[^!]*!//
19234 :repl
19235 t repl
19236 s/'"$ac_delim"'$//
19237 t delim
19238 :nl
19239 h
19240 s/\(.\{148\}\)..*/\1/
19241 t more1
19242 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19243 p
19244 n
19245 b repl
19246 :more1
19247 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19248 p
19249 g
19250 s/.\{148\}//
19251 t nl
19252 :delim
19253 h
19254 s/\(.\{148\}\)..*/\1/
19255 t more2
19256 s/["\\]/\\&/g; s/^/"/; s/$/"/
19257 p
19258 b
19259 :more2
19260 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19261 p
19262 g
19263 s/.\{148\}//
19264 t delim
19265 ' <conf$$subs.awk | sed '
19266 /^[^""]/{
19267 N
19268 s/\n//
19269 }
19270 ' >>$CONFIG_STATUS || ac_write_fail=1
19271 rm -f conf$$subs.awk
19272 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19273 _ACAWK
19274 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19275 for (key in S) S_is_set[key] = 1
19276 FS = "\a"
19277
19278 }
19279 {
19280 line = $ 0
19281 nfields = split(line, field, "@")
19282 substed = 0
19283 len = length(field[1])
19284 for (i = 2; i < nfields; i++) {
19285 key = field[i]
19286 keylen = length(key)
19287 if (S_is_set[key]) {
19288 value = S[key]
19289 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19290 len += length(value) + length(field[++i])
19291 substed = 1
19292 } else
19293 len += 1 + keylen
19294 }
19295
19296 print line
19297 }
19298
19299 _ACAWK
19300 _ACEOF
19301 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19302 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19303 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19304 else
19305 cat
19306 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19307 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19308 _ACEOF
19309
19310 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19311 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19312 # trailing colons and then remove the whole line if VPATH becomes empty
19313 # (actually we leave an empty line to preserve line numbers).
19314 if test "x$srcdir" = x.; then
19315 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19316 h
19317 s///
19318 s/^/:/
19319 s/[ ]*$/:/
19320 s/:\$(srcdir):/:/g
19321 s/:\${srcdir}:/:/g
19322 s/:@srcdir@:/:/g
19323 s/^:*//
19324 s/:*$//
19325 x
19326 s/\(=[ ]*\).*/\1/
19327 G
19328 s/\n//
19329 s/^[^=]*=[ ]*$//
19330 }'
19331 fi
19332
19333 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19334 fi # test -n "$CONFIG_FILES"
19335
19336 # Set up the scripts for CONFIG_HEADERS section.
19337 # No need to generate them if there are no CONFIG_HEADERS.
19338 # This happens for instance with `./config.status Makefile'.
19339 if test -n "$CONFIG_HEADERS"; then
19340 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19341 BEGIN {
19342 _ACEOF
19343
19344 # Transform confdefs.h into an awk script `defines.awk', embedded as
19345 # here-document in config.status, that substitutes the proper values into
19346 # config.h.in to produce config.h.
19347
19348 # Create a delimiter string that does not exist in confdefs.h, to ease
19349 # handling of long lines.
19350 ac_delim='%!_!# '
19351 for ac_last_try in false false :; do
19352 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19353 if test -z "$ac_tt"; then
19354 break
19355 elif $ac_last_try; then
19356 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19357 else
19358 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19359 fi
19360 done
19361
19362 # For the awk script, D is an array of macro values keyed by name,
19363 # likewise P contains macro parameters if any. Preserve backslash
19364 # newline sequences.
19365
19366 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19367 sed -n '
19368 s/.\{148\}/&'"$ac_delim"'/g
19369 t rset
19370 :rset
19371 s/^[ ]*#[ ]*define[ ][ ]*/ /
19372 t def
19373 d
19374 :def
19375 s/\\$//
19376 t bsnl
19377 s/["\\]/\\&/g
19378 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19379 D["\1"]=" \3"/p
19380 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19381 d
19382 :bsnl
19383 s/["\\]/\\&/g
19384 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19385 D["\1"]=" \3\\\\\\n"\\/p
19386 t cont
19387 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19388 t cont
19389 d
19390 :cont
19391 n
19392 s/.\{148\}/&'"$ac_delim"'/g
19393 t clear
19394 :clear
19395 s/\\$//
19396 t bsnlc
19397 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19398 d
19399 :bsnlc
19400 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19401 b cont
19402 ' <confdefs.h | sed '
19403 s/'"$ac_delim"'/"\\\
19404 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19405
19406 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19407 for (key in D) D_is_set[key] = 1
19408 FS = "\a"
19409 }
19410 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19411 line = \$ 0
19412 split(line, arg, " ")
19413 if (arg[1] == "#") {
19414 defundef = arg[2]
19415 mac1 = arg[3]
19416 } else {
19417 defundef = substr(arg[1], 2)
19418 mac1 = arg[2]
19419 }
19420 split(mac1, mac2, "(") #)
19421 macro = mac2[1]
19422 prefix = substr(line, 1, index(line, defundef) - 1)
19423 if (D_is_set[macro]) {
19424 # Preserve the white space surrounding the "#".
19425 print prefix "define", macro P[macro] D[macro]
19426 next
19427 } else {
19428 # Replace #undef with comments. This is necessary, for example,
19429 # in the case of _POSIX_SOURCE, which is predefined and required
19430 # on some systems where configure will not decide to define it.
19431 if (defundef == "undef") {
19432 print "/*", prefix defundef, macro, "*/"
19433 next
19434 }
19435 }
19436 }
19437 { print }
19438 _ACAWK
19439 _ACEOF
19440 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19441 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19442 fi # test -n "$CONFIG_HEADERS"
19443
19444
19445 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19446 shift
19447 for ac_tag
19448 do
19449 case $ac_tag in
19450 :[FHLC]) ac_mode=$ac_tag; continue;;
19451 esac
19452 case $ac_mode$ac_tag in
19453 :[FHL]*:*);;
19454 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19455 :[FH]-) ac_tag=-:-;;
19456 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19457 esac
19458 ac_save_IFS=$IFS
19459 IFS=:
19460 set x $ac_tag
19461 IFS=$ac_save_IFS
19462 shift
19463 ac_file=$1
19464 shift
19465
19466 case $ac_mode in
19467 :L) ac_source=$1;;
19468 :[FH])
19469 ac_file_inputs=
19470 for ac_f
19471 do
19472 case $ac_f in
19473 -) ac_f="$ac_tmp/stdin";;
19474 *) # Look for the file first in the build tree, then in the source tree
19475 # (if the path is not absolute). The absolute path cannot be DOS-style,
19476 # because $ac_f cannot contain `:'.
19477 test -f "$ac_f" ||
19478 case $ac_f in
19479 [\\/$]*) false;;
19480 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19481 esac ||
19482 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19483 esac
19484 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19485 as_fn_append ac_file_inputs " '$ac_f'"
19486 done
19487
19488 # Let's still pretend it is `configure' which instantiates (i.e., don't
19489 # use $as_me), people would be surprised to read:
19490 # /* config.h. Generated by config.status. */
19491 configure_input='Generated from '`
19492 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19493 `' by configure.'
19494 if test x"$ac_file" != x-; then
19495 configure_input="$ac_file. $configure_input"
19496 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19497 $as_echo "$as_me: creating $ac_file" >&6;}
19498 fi
19499 # Neutralize special characters interpreted by sed in replacement strings.
19500 case $configure_input in #(
19501 *\&* | *\|* | *\\* )
19502 ac_sed_conf_input=`$as_echo "$configure_input" |
19503 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19504 *) ac_sed_conf_input=$configure_input;;
19505 esac
19506
19507 case $ac_tag in
19508 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19509 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19510 esac
19511 ;;
19512 esac
19513
19514 ac_dir=`$as_dirname -- "$ac_file" ||
19515 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19516 X"$ac_file" : 'X\(//\)[^/]' \| \
19517 X"$ac_file" : 'X\(//\)$' \| \
19518 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19519 $as_echo X"$ac_file" |
19520 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19521 s//\1/
19522 q
19523 }
19524 /^X\(\/\/\)[^/].*/{
19525 s//\1/
19526 q
19527 }
19528 /^X\(\/\/\)$/{
19529 s//\1/
19530 q
19531 }
19532 /^X\(\/\).*/{
19533 s//\1/
19534 q
19535 }
19536 s/.*/./; q'`
19537 as_dir="$ac_dir"; as_fn_mkdir_p
19538 ac_builddir=.
19539
19540 case "$ac_dir" in
19541 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19542 *)
19543 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19544 # A ".." for each directory in $ac_dir_suffix.
19545 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19546 case $ac_top_builddir_sub in
19547 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19548 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19549 esac ;;
19550 esac
19551 ac_abs_top_builddir=$ac_pwd
19552 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19553 # for backward compatibility:
19554 ac_top_builddir=$ac_top_build_prefix
19555
19556 case $srcdir in
19557 .) # We are building in place.
19558 ac_srcdir=.
19559 ac_top_srcdir=$ac_top_builddir_sub
19560 ac_abs_top_srcdir=$ac_pwd ;;
19561 [\\/]* | ?:[\\/]* ) # Absolute name.
19562 ac_srcdir=$srcdir$ac_dir_suffix;
19563 ac_top_srcdir=$srcdir
19564 ac_abs_top_srcdir=$srcdir ;;
19565 *) # Relative name.
19566 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19567 ac_top_srcdir=$ac_top_build_prefix$srcdir
19568 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19569 esac
19570 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19571
19572
19573 case $ac_mode in
19574 :F)
19575 #
19576 # CONFIG_FILE
19577 #
19578
19579 case $INSTALL in
19580 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19581 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19582 esac
19583 ac_MKDIR_P=$MKDIR_P
19584 case $MKDIR_P in
19585 [\\/$]* | ?:[\\/]* ) ;;
19586 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19587 esac
19588 _ACEOF
19589
19590 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19591 # If the template does not know about datarootdir, expand it.
19592 # FIXME: This hack should be removed a few years after 2.60.
19593 ac_datarootdir_hack=; ac_datarootdir_seen=
19594 ac_sed_dataroot='
19595 /datarootdir/ {
19596 p
19597 q
19598 }
19599 /@datadir@/p
19600 /@docdir@/p
19601 /@infodir@/p
19602 /@localedir@/p
19603 /@mandir@/p'
19604 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19605 *datarootdir*) ac_datarootdir_seen=yes;;
19606 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19608 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19609 _ACEOF
19610 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19611 ac_datarootdir_hack='
19612 s&@datadir@&$datadir&g
19613 s&@docdir@&$docdir&g
19614 s&@infodir@&$infodir&g
19615 s&@localedir@&$localedir&g
19616 s&@mandir@&$mandir&g
19617 s&\\\${datarootdir}&$datarootdir&g' ;;
19618 esac
19619 _ACEOF
19620
19621 # Neutralize VPATH when `$srcdir' = `.'.
19622 # Shell code in configure.ac might set extrasub.
19623 # FIXME: do we really want to maintain this feature?
19624 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19625 ac_sed_extra="$ac_vpsub
19626 $extrasub
19627 _ACEOF
19628 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19629 :t
19630 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19631 s|@configure_input@|$ac_sed_conf_input|;t t
19632 s&@top_builddir@&$ac_top_builddir_sub&;t t
19633 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19634 s&@srcdir@&$ac_srcdir&;t t
19635 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19636 s&@top_srcdir@&$ac_top_srcdir&;t t
19637 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19638 s&@builddir@&$ac_builddir&;t t
19639 s&@abs_builddir@&$ac_abs_builddir&;t t
19640 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19641 s&@INSTALL@&$ac_INSTALL&;t t
19642 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19643 $ac_datarootdir_hack
19644 "
19645 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19646 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19647
19648 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19649 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19650 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19651 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19653 which seems to be undefined. Please make sure it is defined" >&5
19654 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19655 which seems to be undefined. Please make sure it is defined" >&2;}
19656
19657 rm -f "$ac_tmp/stdin"
19658 case $ac_file in
19659 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19660 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19661 esac \
19662 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19663 ;;
19664 :H)
19665 #
19666 # CONFIG_HEADER
19667 #
19668 if test x"$ac_file" != x-; then
19669 {
19670 $as_echo "/* $configure_input */" \
19671 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19672 } >"$ac_tmp/config.h" \
19673 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19674 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19675 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19676 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19677 else
19678 rm -f "$ac_file"
19679 mv "$ac_tmp/config.h" "$ac_file" \
19680 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19681 fi
19682 else
19683 $as_echo "/* $configure_input */" \
19684 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19685 || as_fn_error $? "could not create -" "$LINENO" 5
19686 fi
19687 # Compute "$ac_file"'s index in $config_headers.
19688 _am_arg="$ac_file"
19689 _am_stamp_count=1
19690 for _am_header in $config_headers :; do
19691 case $_am_header in
19692 $_am_arg | $_am_arg:* )
19693 break ;;
19694 * )
19695 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19696 esac
19697 done
19698 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19699 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19700 X"$_am_arg" : 'X\(//\)[^/]' \| \
19701 X"$_am_arg" : 'X\(//\)$' \| \
19702 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19703 $as_echo X"$_am_arg" |
19704 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19705 s//\1/
19706 q
19707 }
19708 /^X\(\/\/\)[^/].*/{
19709 s//\1/
19710 q
19711 }
19712 /^X\(\/\/\)$/{
19713 s//\1/
19714 q
19715 }
19716 /^X\(\/\).*/{
19717 s//\1/
19718 q
19719 }
19720 s/.*/./; q'`/stamp-h$_am_stamp_count
19721 ;;
19722
19723 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19724 $as_echo "$as_me: executing $ac_file commands" >&6;}
19725 ;;
19726 esac
19727
19728
19729 case $ac_file$ac_mode in
19730 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19731 # Older Autoconf quotes --file arguments for eval, but not when files
19732 # are listed without --file. Let's play safe and only enable the eval
19733 # if we detect the quoting.
19734 case $CONFIG_FILES in
19735 *\'*) eval set x "$CONFIG_FILES" ;;
19736 *) set x $CONFIG_FILES ;;
19737 esac
19738 shift
19739 for mf
19740 do
19741 # Strip MF so we end up with the name of the file.
19742 mf=`echo "$mf" | sed -e 's/:.*$//'`
19743 # Check whether this is an Automake generated Makefile or not.
19744 # We used to match only the files named 'Makefile.in', but
19745 # some people rename them; so instead we look at the file content.
19746 # Grep'ing the first line is not enough: some people post-process
19747 # each Makefile.in and add a new line on top of each file to say so.
19748 # Grep'ing the whole file is not good either: AIX grep has a line
19749 # limit of 2048, but all sed's we know have understand at least 4000.
19750 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19751 dirpart=`$as_dirname -- "$mf" ||
19752 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19753 X"$mf" : 'X\(//\)[^/]' \| \
19754 X"$mf" : 'X\(//\)$' \| \
19755 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19756 $as_echo X"$mf" |
19757 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19758 s//\1/
19759 q
19760 }
19761 /^X\(\/\/\)[^/].*/{
19762 s//\1/
19763 q
19764 }
19765 /^X\(\/\/\)$/{
19766 s//\1/
19767 q
19768 }
19769 /^X\(\/\).*/{
19770 s//\1/
19771 q
19772 }
19773 s/.*/./; q'`
19774 else
19775 continue
19776 fi
19777 # Extract the definition of DEPDIR, am__include, and am__quote
19778 # from the Makefile without running 'make'.
19779 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19780 test -z "$DEPDIR" && continue
19781 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19782 test -z "$am__include" && continue
19783 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19784 # Find all dependency output files, they are included files with
19785 # $(DEPDIR) in their names. We invoke sed twice because it is the
19786 # simplest approach to changing $(DEPDIR) to its actual value in the
19787 # expansion.
19788 for file in `sed -n "
19789 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19790 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19791 # Make sure the directory exists.
19792 test -f "$dirpart/$file" && continue
19793 fdir=`$as_dirname -- "$file" ||
19794 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19795 X"$file" : 'X\(//\)[^/]' \| \
19796 X"$file" : 'X\(//\)$' \| \
19797 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19798 $as_echo X"$file" |
19799 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19800 s//\1/
19801 q
19802 }
19803 /^X\(\/\/\)[^/].*/{
19804 s//\1/
19805 q
19806 }
19807 /^X\(\/\/\)$/{
19808 s//\1/
19809 q
19810 }
19811 /^X\(\/\).*/{
19812 s//\1/
19813 q
19814 }
19815 s/.*/./; q'`
19816 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19817 # echo "creating $dirpart/$file"
19818 echo '# dummy' > "$dirpart/$file"
19819 done
19820 done
19821 }
19822 ;;
19823 "libtool":C)
19824
19825 # See if we are running on zsh, and set the options which allow our
19826 # commands through without removal of \ escapes.
19827 if test -n "${ZSH_VERSION+set}" ; then
19828 setopt NO_GLOB_SUBST
19829 fi
19830
19831 cfgfile="${ofile}T"
19832 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19833 $RM "$cfgfile"
19834
19835 cat <<_LT_EOF >> "$cfgfile"
19836 #! $SHELL
19837
19838 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19839 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19840 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19841 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19842 #
19843 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19844 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19845 # Foundation, Inc.
19846 # Written by Gordon Matzigkeit, 1996
19847 #
19848 # This file is part of GNU Libtool.
19849 #
19850 # GNU Libtool is free software; you can redistribute it and/or
19851 # modify it under the terms of the GNU General Public License as
19852 # published by the Free Software Foundation; either version 2 of
19853 # the License, or (at your option) any later version.
19854 #
19855 # As a special exception to the GNU General Public License,
19856 # if you distribute this file as part of a program or library that
19857 # is built using GNU Libtool, you may include this file under the
19858 # same distribution terms that you use for the rest of that program.
19859 #
19860 # GNU Libtool is distributed in the hope that it will be useful,
19861 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19862 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19863 # GNU General Public License for more details.
19864 #
19865 # You should have received a copy of the GNU General Public License
19866 # along with GNU Libtool; see the file COPYING. If not, a copy
19867 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19868 # obtained by writing to the Free Software Foundation, Inc.,
19869 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19870
19871
19872 # The names of the tagged configurations supported by this script.
19873 available_tags="CXX "
19874
19875 # ### BEGIN LIBTOOL CONFIG
19876
19877 # Which release of libtool.m4 was used?
19878 macro_version=$macro_version
19879 macro_revision=$macro_revision
19880
19881 # Whether or not to build shared libraries.
19882 build_libtool_libs=$enable_shared
19883
19884 # Whether or not to build static libraries.
19885 build_old_libs=$enable_static
19886
19887 # What type of objects to build.
19888 pic_mode=$pic_mode
19889
19890 # Whether or not to optimize for fast installation.
19891 fast_install=$enable_fast_install
19892
19893 # Shell to use when invoking shell scripts.
19894 SHELL=$lt_SHELL
19895
19896 # An echo program that protects backslashes.
19897 ECHO=$lt_ECHO
19898
19899 # The PATH separator for the build system.
19900 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19901
19902 # The host system.
19903 host_alias=$host_alias
19904 host=$host
19905 host_os=$host_os
19906
19907 # The build system.
19908 build_alias=$build_alias
19909 build=$build
19910 build_os=$build_os
19911
19912 # A sed program that does not truncate output.
19913 SED=$lt_SED
19914
19915 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19916 Xsed="\$SED -e 1s/^X//"
19917
19918 # A grep program that handles long lines.
19919 GREP=$lt_GREP
19920
19921 # An ERE matcher.
19922 EGREP=$lt_EGREP
19923
19924 # A literal string matcher.
19925 FGREP=$lt_FGREP
19926
19927 # A BSD- or MS-compatible name lister.
19928 NM=$lt_NM
19929
19930 # Whether we need soft or hard links.
19931 LN_S=$lt_LN_S
19932
19933 # What is the maximum length of a command?
19934 max_cmd_len=$max_cmd_len
19935
19936 # Object file suffix (normally "o").
19937 objext=$ac_objext
19938
19939 # Executable file suffix (normally "").
19940 exeext=$exeext
19941
19942 # whether the shell understands "unset".
19943 lt_unset=$lt_unset
19944
19945 # turn spaces into newlines.
19946 SP2NL=$lt_lt_SP2NL
19947
19948 # turn newlines into spaces.
19949 NL2SP=$lt_lt_NL2SP
19950
19951 # convert \$build file names to \$host format.
19952 to_host_file_cmd=$lt_cv_to_host_file_cmd
19953
19954 # convert \$build files to toolchain format.
19955 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19956
19957 # An object symbol dumper.
19958 OBJDUMP=$lt_OBJDUMP
19959
19960 # Method to check whether dependent libraries are shared objects.
19961 deplibs_check_method=$lt_deplibs_check_method
19962
19963 # Command to use when deplibs_check_method = "file_magic".
19964 file_magic_cmd=$lt_file_magic_cmd
19965
19966 # How to find potential files when deplibs_check_method = "file_magic".
19967 file_magic_glob=$lt_file_magic_glob
19968
19969 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19970 want_nocaseglob=$lt_want_nocaseglob
19971
19972 # DLL creation program.
19973 DLLTOOL=$lt_DLLTOOL
19974
19975 # Command to associate shared and link libraries.
19976 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19977
19978 # The archiver.
19979 AR=$lt_AR
19980
19981 # Flags to create an archive.
19982 AR_FLAGS=$lt_AR_FLAGS
19983
19984 # How to feed a file listing to the archiver.
19985 archiver_list_spec=$lt_archiver_list_spec
19986
19987 # A symbol stripping program.
19988 STRIP=$lt_STRIP
19989
19990 # Commands used to install an old-style archive.
19991 RANLIB=$lt_RANLIB
19992 old_postinstall_cmds=$lt_old_postinstall_cmds
19993 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19994
19995 # Whether to use a lock for old archive extraction.
19996 lock_old_archive_extraction=$lock_old_archive_extraction
19997
19998 # A C compiler.
19999 LTCC=$lt_CC
20000
20001 # LTCC compiler flags.
20002 LTCFLAGS=$lt_CFLAGS
20003
20004 # Take the output of nm and produce a listing of raw symbols and C names.
20005 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20006
20007 # Transform the output of nm in a proper C declaration.
20008 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20009
20010 # Transform the output of nm in a C name address pair.
20011 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20012
20013 # Transform the output of nm in a C name address pair when lib prefix is needed.
20014 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20015
20016 # Specify filename containing input files for \$NM.
20017 nm_file_list_spec=$lt_nm_file_list_spec
20018
20019 # The root where to search for dependent libraries,and in which our libraries should be installed.
20020 lt_sysroot=$lt_sysroot
20021
20022 # The name of the directory that contains temporary libtool files.
20023 objdir=$objdir
20024
20025 # Used to examine libraries when file_magic_cmd begins with "file".
20026 MAGIC_CMD=$MAGIC_CMD
20027
20028 # Must we lock files when doing compilation?
20029 need_locks=$lt_need_locks
20030
20031 # Manifest tool.
20032 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20033
20034 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20035 DSYMUTIL=$lt_DSYMUTIL
20036
20037 # Tool to change global to local symbols on Mac OS X.
20038 NMEDIT=$lt_NMEDIT
20039
20040 # Tool to manipulate fat objects and archives on Mac OS X.
20041 LIPO=$lt_LIPO
20042
20043 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20044 OTOOL=$lt_OTOOL
20045
20046 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20047 OTOOL64=$lt_OTOOL64
20048
20049 # Old archive suffix (normally "a").
20050 libext=$libext
20051
20052 # Shared library suffix (normally ".so").
20053 shrext_cmds=$lt_shrext_cmds
20054
20055 # The commands to extract the exported symbol list from a shared archive.
20056 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20057
20058 # Variables whose values should be saved in libtool wrapper scripts and
20059 # restored at link time.
20060 variables_saved_for_relink=$lt_variables_saved_for_relink
20061
20062 # Do we need the "lib" prefix for modules?
20063 need_lib_prefix=$need_lib_prefix
20064
20065 # Do we need a version for libraries?
20066 need_version=$need_version
20067
20068 # Library versioning type.
20069 version_type=$version_type
20070
20071 # Shared library runtime path variable.
20072 runpath_var=$runpath_var
20073
20074 # Shared library path variable.
20075 shlibpath_var=$shlibpath_var
20076
20077 # Is shlibpath searched before the hard-coded library search path?
20078 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20079
20080 # Format of library name prefix.
20081 libname_spec=$lt_libname_spec
20082
20083 # List of archive names. First name is the real one, the rest are links.
20084 # The last name is the one that the linker finds with -lNAME
20085 library_names_spec=$lt_library_names_spec
20086
20087 # The coded name of the library, if different from the real name.
20088 soname_spec=$lt_soname_spec
20089
20090 # Permission mode override for installation of shared libraries.
20091 install_override_mode=$lt_install_override_mode
20092
20093 # Command to use after installation of a shared archive.
20094 postinstall_cmds=$lt_postinstall_cmds
20095
20096 # Command to use after uninstallation of a shared archive.
20097 postuninstall_cmds=$lt_postuninstall_cmds
20098
20099 # Commands used to finish a libtool library installation in a directory.
20100 finish_cmds=$lt_finish_cmds
20101
20102 # As "finish_cmds", except a single script fragment to be evaled but
20103 # not shown.
20104 finish_eval=$lt_finish_eval
20105
20106 # Whether we should hardcode library paths into libraries.
20107 hardcode_into_libs=$hardcode_into_libs
20108
20109 # Compile-time system search path for libraries.
20110 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20111
20112 # Run-time system search path for libraries.
20113 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20114
20115 # Whether dlopen is supported.
20116 dlopen_support=$enable_dlopen
20117
20118 # Whether dlopen of programs is supported.
20119 dlopen_self=$enable_dlopen_self
20120
20121 # Whether dlopen of statically linked programs is supported.
20122 dlopen_self_static=$enable_dlopen_self_static
20123
20124 # Commands to strip libraries.
20125 old_striplib=$lt_old_striplib
20126 striplib=$lt_striplib
20127
20128
20129 # The linker used to build libraries.
20130 LD=$lt_LD
20131
20132 # How to create reloadable object files.
20133 reload_flag=$lt_reload_flag
20134 reload_cmds=$lt_reload_cmds
20135
20136 # Commands used to build an old-style archive.
20137 old_archive_cmds=$lt_old_archive_cmds
20138
20139 # A language specific compiler.
20140 CC=$lt_compiler
20141
20142 # Is the compiler the GNU compiler?
20143 with_gcc=$GCC
20144
20145 # Compiler flag to turn off builtin functions.
20146 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20147
20148 # Additional compiler flags for building library objects.
20149 pic_flag=$lt_lt_prog_compiler_pic
20150
20151 # How to pass a linker flag through the compiler.
20152 wl=$lt_lt_prog_compiler_wl
20153
20154 # Compiler flag to prevent dynamic linking.
20155 link_static_flag=$lt_lt_prog_compiler_static
20156
20157 # Does compiler simultaneously support -c and -o options?
20158 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20159
20160 # Whether or not to add -lc for building shared libraries.
20161 build_libtool_need_lc=$archive_cmds_need_lc
20162
20163 # Whether or not to disallow shared libs when runtime libs are static.
20164 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20165
20166 # Compiler flag to allow reflexive dlopens.
20167 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20168
20169 # Compiler flag to generate shared objects directly from archives.
20170 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20171
20172 # Whether the compiler copes with passing no objects directly.
20173 compiler_needs_object=$lt_compiler_needs_object
20174
20175 # Create an old-style archive from a shared archive.
20176 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20177
20178 # Create a temporary old-style archive to link instead of a shared archive.
20179 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20180
20181 # Commands used to build a shared archive.
20182 archive_cmds=$lt_archive_cmds
20183 archive_expsym_cmds=$lt_archive_expsym_cmds
20184
20185 # Commands used to build a loadable module if different from building
20186 # a shared archive.
20187 module_cmds=$lt_module_cmds
20188 module_expsym_cmds=$lt_module_expsym_cmds
20189
20190 # Whether we are building with GNU ld or not.
20191 with_gnu_ld=$lt_with_gnu_ld
20192
20193 # Flag that allows shared libraries with undefined symbols to be built.
20194 allow_undefined_flag=$lt_allow_undefined_flag
20195
20196 # Flag that enforces no undefined symbols.
20197 no_undefined_flag=$lt_no_undefined_flag
20198
20199 # Flag to hardcode \$libdir into a binary during linking.
20200 # This must work even if \$libdir does not exist
20201 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20202
20203 # Whether we need a single "-rpath" flag with a separated argument.
20204 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20205
20206 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20207 # DIR into the resulting binary.
20208 hardcode_direct=$hardcode_direct
20209
20210 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20211 # DIR into the resulting binary and the resulting library dependency is
20212 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20213 # library is relocated.
20214 hardcode_direct_absolute=$hardcode_direct_absolute
20215
20216 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20217 # into the resulting binary.
20218 hardcode_minus_L=$hardcode_minus_L
20219
20220 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20221 # into the resulting binary.
20222 hardcode_shlibpath_var=$hardcode_shlibpath_var
20223
20224 # Set to "yes" if building a shared library automatically hardcodes DIR
20225 # into the library and all subsequent libraries and executables linked
20226 # against it.
20227 hardcode_automatic=$hardcode_automatic
20228
20229 # Set to yes if linker adds runtime paths of dependent libraries
20230 # to runtime path list.
20231 inherit_rpath=$inherit_rpath
20232
20233 # Whether libtool must link a program against all its dependency libraries.
20234 link_all_deplibs=$link_all_deplibs
20235
20236 # Set to "yes" if exported symbols are required.
20237 always_export_symbols=$always_export_symbols
20238
20239 # The commands to list exported symbols.
20240 export_symbols_cmds=$lt_export_symbols_cmds
20241
20242 # Symbols that should not be listed in the preloaded symbols.
20243 exclude_expsyms=$lt_exclude_expsyms
20244
20245 # Symbols that must always be exported.
20246 include_expsyms=$lt_include_expsyms
20247
20248 # Commands necessary for linking programs (against libraries) with templates.
20249 prelink_cmds=$lt_prelink_cmds
20250
20251 # Commands necessary for finishing linking programs.
20252 postlink_cmds=$lt_postlink_cmds
20253
20254 # Specify filename containing input files.
20255 file_list_spec=$lt_file_list_spec
20256
20257 # How to hardcode a shared library path into an executable.
20258 hardcode_action=$hardcode_action
20259
20260 # The directories searched by this compiler when creating a shared library.
20261 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20262
20263 # Dependencies to place before and after the objects being linked to
20264 # create a shared library.
20265 predep_objects=$lt_predep_objects
20266 postdep_objects=$lt_postdep_objects
20267 predeps=$lt_predeps
20268 postdeps=$lt_postdeps
20269
20270 # The library search path used internally by the compiler when linking
20271 # a shared library.
20272 compiler_lib_search_path=$lt_compiler_lib_search_path
20273
20274 # ### END LIBTOOL CONFIG
20275
20276 _LT_EOF
20277
20278 case $host_os in
20279 aix3*)
20280 cat <<\_LT_EOF >> "$cfgfile"
20281 # AIX sometimes has problems with the GCC collect2 program. For some
20282 # reason, if we set the COLLECT_NAMES environment variable, the problems
20283 # vanish in a puff of smoke.
20284 if test "X${COLLECT_NAMES+set}" != Xset; then
20285 COLLECT_NAMES=
20286 export COLLECT_NAMES
20287 fi
20288 _LT_EOF
20289 ;;
20290 esac
20291
20292
20293 ltmain="$ac_aux_dir/ltmain.sh"
20294
20295
20296 # We use sed instead of cat because bash on DJGPP gets confused if
20297 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20298 # text mode, it properly converts lines to CR/LF. This bash problem
20299 # is reportedly fixed, but why not run on old versions too?
20300 sed '$q' "$ltmain" >> "$cfgfile" \
20301 || (rm -f "$cfgfile"; exit 1)
20302
20303 if test x"$xsi_shell" = xyes; then
20304 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20305 func_dirname ()\
20306 {\
20307 \ case ${1} in\
20308 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20309 \ * ) func_dirname_result="${3}" ;;\
20310 \ esac\
20311 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20312 && mv -f "$cfgfile.tmp" "$cfgfile" \
20313 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20314 test 0 -eq $? || _lt_function_replace_fail=:
20315
20316
20317 sed -e '/^func_basename ()$/,/^} # func_basename /c\
20318 func_basename ()\
20319 {\
20320 \ func_basename_result="${1##*/}"\
20321 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20322 && mv -f "$cfgfile.tmp" "$cfgfile" \
20323 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20324 test 0 -eq $? || _lt_function_replace_fail=:
20325
20326
20327 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20328 func_dirname_and_basename ()\
20329 {\
20330 \ case ${1} in\
20331 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20332 \ * ) func_dirname_result="${3}" ;;\
20333 \ esac\
20334 \ func_basename_result="${1##*/}"\
20335 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20336 && mv -f "$cfgfile.tmp" "$cfgfile" \
20337 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20338 test 0 -eq $? || _lt_function_replace_fail=:
20339
20340
20341 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20342 func_stripname ()\
20343 {\
20344 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20345 \ # positional parameters, so assign one to ordinary parameter first.\
20346 \ func_stripname_result=${3}\
20347 \ func_stripname_result=${func_stripname_result#"${1}"}\
20348 \ func_stripname_result=${func_stripname_result%"${2}"}\
20349 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20350 && mv -f "$cfgfile.tmp" "$cfgfile" \
20351 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20352 test 0 -eq $? || _lt_function_replace_fail=:
20353
20354
20355 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20356 func_split_long_opt ()\
20357 {\
20358 \ func_split_long_opt_name=${1%%=*}\
20359 \ func_split_long_opt_arg=${1#*=}\
20360 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20361 && mv -f "$cfgfile.tmp" "$cfgfile" \
20362 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20363 test 0 -eq $? || _lt_function_replace_fail=:
20364
20365
20366 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20367 func_split_short_opt ()\
20368 {\
20369 \ func_split_short_opt_arg=${1#??}\
20370 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20371 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20372 && mv -f "$cfgfile.tmp" "$cfgfile" \
20373 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20374 test 0 -eq $? || _lt_function_replace_fail=:
20375
20376
20377 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20378 func_lo2o ()\
20379 {\
20380 \ case ${1} in\
20381 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20382 \ *) func_lo2o_result=${1} ;;\
20383 \ esac\
20384 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20385 && mv -f "$cfgfile.tmp" "$cfgfile" \
20386 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20387 test 0 -eq $? || _lt_function_replace_fail=:
20388
20389
20390 sed -e '/^func_xform ()$/,/^} # func_xform /c\
20391 func_xform ()\
20392 {\
20393 func_xform_result=${1%.*}.lo\
20394 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20395 && mv -f "$cfgfile.tmp" "$cfgfile" \
20396 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20397 test 0 -eq $? || _lt_function_replace_fail=:
20398
20399
20400 sed -e '/^func_arith ()$/,/^} # func_arith /c\
20401 func_arith ()\
20402 {\
20403 func_arith_result=$(( $* ))\
20404 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20405 && mv -f "$cfgfile.tmp" "$cfgfile" \
20406 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20407 test 0 -eq $? || _lt_function_replace_fail=:
20408
20409
20410 sed -e '/^func_len ()$/,/^} # func_len /c\
20411 func_len ()\
20412 {\
20413 func_len_result=${#1}\
20414 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20415 && mv -f "$cfgfile.tmp" "$cfgfile" \
20416 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20417 test 0 -eq $? || _lt_function_replace_fail=:
20418
20419 fi
20420
20421 if test x"$lt_shell_append" = xyes; then
20422 sed -e '/^func_append ()$/,/^} # func_append /c\
20423 func_append ()\
20424 {\
20425 eval "${1}+=\\${2}"\
20426 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20427 && mv -f "$cfgfile.tmp" "$cfgfile" \
20428 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20429 test 0 -eq $? || _lt_function_replace_fail=:
20430
20431
20432 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20433 func_append_quoted ()\
20434 {\
20435 \ func_quote_for_eval "${2}"\
20436 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20437 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20438 && mv -f "$cfgfile.tmp" "$cfgfile" \
20439 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20440 test 0 -eq $? || _lt_function_replace_fail=:
20441
20442
20443 # Save a `func_append' function call where possible by direct use of '+='
20444 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20445 && mv -f "$cfgfile.tmp" "$cfgfile" \
20446 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20447 test 0 -eq $? || _lt_function_replace_fail=:
20448 else
20449 # Save a `func_append' function call even when '+=' is not available
20450 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20451 && mv -f "$cfgfile.tmp" "$cfgfile" \
20452 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20453 test 0 -eq $? || _lt_function_replace_fail=:
20454 fi
20455
20456 if test x"$_lt_function_replace_fail" = x":"; then
20457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20458 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20459 fi
20460
20461
20462 mv -f "$cfgfile" "$ofile" ||
20463 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20464 chmod +x "$ofile"
20465
20466
20467 cat <<_LT_EOF >> "$ofile"
20468
20469 # ### BEGIN LIBTOOL TAG CONFIG: CXX
20470
20471 # The linker used to build libraries.
20472 LD=$lt_LD_CXX
20473
20474 # How to create reloadable object files.
20475 reload_flag=$lt_reload_flag_CXX
20476 reload_cmds=$lt_reload_cmds_CXX
20477
20478 # Commands used to build an old-style archive.
20479 old_archive_cmds=$lt_old_archive_cmds_CXX
20480
20481 # A language specific compiler.
20482 CC=$lt_compiler_CXX
20483
20484 # Is the compiler the GNU compiler?
20485 with_gcc=$GCC_CXX
20486
20487 # Compiler flag to turn off builtin functions.
20488 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20489
20490 # Additional compiler flags for building library objects.
20491 pic_flag=$lt_lt_prog_compiler_pic_CXX
20492
20493 # How to pass a linker flag through the compiler.
20494 wl=$lt_lt_prog_compiler_wl_CXX
20495
20496 # Compiler flag to prevent dynamic linking.
20497 link_static_flag=$lt_lt_prog_compiler_static_CXX
20498
20499 # Does compiler simultaneously support -c and -o options?
20500 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20501
20502 # Whether or not to add -lc for building shared libraries.
20503 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20504
20505 # Whether or not to disallow shared libs when runtime libs are static.
20506 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20507
20508 # Compiler flag to allow reflexive dlopens.
20509 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20510
20511 # Compiler flag to generate shared objects directly from archives.
20512 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20513
20514 # Whether the compiler copes with passing no objects directly.
20515 compiler_needs_object=$lt_compiler_needs_object_CXX
20516
20517 # Create an old-style archive from a shared archive.
20518 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20519
20520 # Create a temporary old-style archive to link instead of a shared archive.
20521 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20522
20523 # Commands used to build a shared archive.
20524 archive_cmds=$lt_archive_cmds_CXX
20525 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20526
20527 # Commands used to build a loadable module if different from building
20528 # a shared archive.
20529 module_cmds=$lt_module_cmds_CXX
20530 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20531
20532 # Whether we are building with GNU ld or not.
20533 with_gnu_ld=$lt_with_gnu_ld_CXX
20534
20535 # Flag that allows shared libraries with undefined symbols to be built.
20536 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20537
20538 # Flag that enforces no undefined symbols.
20539 no_undefined_flag=$lt_no_undefined_flag_CXX
20540
20541 # Flag to hardcode \$libdir into a binary during linking.
20542 # This must work even if \$libdir does not exist
20543 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20544
20545 # Whether we need a single "-rpath" flag with a separated argument.
20546 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20547
20548 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20549 # DIR into the resulting binary.
20550 hardcode_direct=$hardcode_direct_CXX
20551
20552 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20553 # DIR into the resulting binary and the resulting library dependency is
20554 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20555 # library is relocated.
20556 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20557
20558 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20559 # into the resulting binary.
20560 hardcode_minus_L=$hardcode_minus_L_CXX
20561
20562 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20563 # into the resulting binary.
20564 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20565
20566 # Set to "yes" if building a shared library automatically hardcodes DIR
20567 # into the library and all subsequent libraries and executables linked
20568 # against it.
20569 hardcode_automatic=$hardcode_automatic_CXX
20570
20571 # Set to yes if linker adds runtime paths of dependent libraries
20572 # to runtime path list.
20573 inherit_rpath=$inherit_rpath_CXX
20574
20575 # Whether libtool must link a program against all its dependency libraries.
20576 link_all_deplibs=$link_all_deplibs_CXX
20577
20578 # Set to "yes" if exported symbols are required.
20579 always_export_symbols=$always_export_symbols_CXX
20580
20581 # The commands to list exported symbols.
20582 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20583
20584 # Symbols that should not be listed in the preloaded symbols.
20585 exclude_expsyms=$lt_exclude_expsyms_CXX
20586
20587 # Symbols that must always be exported.
20588 include_expsyms=$lt_include_expsyms_CXX
20589
20590 # Commands necessary for linking programs (against libraries) with templates.
20591 prelink_cmds=$lt_prelink_cmds_CXX
20592
20593 # Commands necessary for finishing linking programs.
20594 postlink_cmds=$lt_postlink_cmds_CXX
20595
20596 # Specify filename containing input files.
20597 file_list_spec=$lt_file_list_spec_CXX
20598
20599 # How to hardcode a shared library path into an executable.
20600 hardcode_action=$hardcode_action_CXX
20601
20602 # The directories searched by this compiler when creating a shared library.
20603 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20604
20605 # Dependencies to place before and after the objects being linked to
20606 # create a shared library.
20607 predep_objects=$lt_predep_objects_CXX
20608 postdep_objects=$lt_postdep_objects_CXX
20609 predeps=$lt_predeps_CXX
20610 postdeps=$lt_postdeps_CXX
20611
20612 # The library search path used internally by the compiler when linking
20613 # a shared library.
20614 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20615
20616 # ### END LIBTOOL TAG CONFIG: CXX
20617 _LT_EOF
20618
20619 ;;
20620
20621 esac
20622 done # for ac_tag
20623
20624
20625 as_fn_exit 0
20626 _ACEOF
20627 ac_clean_files=$ac_clean_files_save
20628
20629 test $ac_write_fail = 0 ||
20630 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20631
20632
20633 # configure is writing to config.log, and then calls config.status.
20634 # config.status does its own redirection, appending to config.log.
20635 # Unfortunately, on DOS this fails, as config.log is still kept open
20636 # by configure, so config.status won't be able to write to it; its
20637 # output is simply discarded. So we exec the FD to /dev/null,
20638 # effectively closing config.log, so it can be properly (re)opened and
20639 # appended to by config.status. When coming back to configure, we
20640 # need to make the FD available again.
20641 if test "$no_create" != yes; then
20642 ac_cs_success=:
20643 ac_config_status_args=
20644 test "$silent" = yes &&
20645 ac_config_status_args="$ac_config_status_args --quiet"
20646 exec 5>/dev/null
20647 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20648 exec 5>>config.log
20649 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20650 # would make configure fail if this is the last instruction.
20651 $ac_cs_success || as_fn_exit 1
20652 fi
20653 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20655 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20656 fi
20657
20658
20659 cat <<EOB
20660
20661 ##############################################################################
20662
20663 libCEC version $VERSION configured
20664
20665 Compilation flags:
20666 CXXFLAGS : $CXXFLAGS
20667 libCEC LDFLAGS : $LIBS_LIBCEC
20668 client LDFLAGS : $LIBS
20669
20670 EOB
20671
20672 echo -e "$features"
20673
20674 cat <<EOB
20675
20676 You can now build libCEC by running:
20677 make
20678
20679 ##############################################################################
20680
20681 EOB