Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libcompizconfig 0.8.18.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # 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 [email protected] and
278 $0: [email protected] about your system, including any
279 $0: error possibly output before this message. Then install
280 $0: a modern shell, or manually run the script under such a
281 $0: 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='libcompizconfig'
592 PACKAGE_TARNAME='libcompizconfig'
593 PACKAGE_VERSION='0.8.18'
594 PACKAGE_STRING='libcompizconfig 0.8.18'
595 PACKAGE_BUGREPORT='[email protected]'
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_PROTOBUF_FALSE
639 USE_PROTOBUF_TRUE
640 PROTOBUF_LIBS
641 PROTOBUF_CFLAGS
642 have_protoc
643 LIBXML2_REQUIRES
644 LIBXML2_LIBS
645 LIBXML2_CFLAGS
646 plugindir
647 METADATADIR
648 PLUGINDIR
649 COMPIZ_LIBS
650 COMPIZ_CFLAGS
651 LIBX11_LIBS
652 LIBX11_CFLAGS
653 PKG_CONFIG_LIBDIR
654 PKG_CONFIG_PATH
655 PKG_CONFIG
656 CXXCPP
657 LT_SYS_LIBRARY_PATH
658 OTOOL64
659 OTOOL
660 LIPO
661 NMEDIT
662 DSYMUTIL
663 MANIFEST_TOOL
664 RANLIB
665 ac_ct_AR
666 AR
667 DLLTOOL
668 OBJDUMP
669 LN_S
670 NM
671 ac_ct_DUMPBIN
672 DUMPBIN
673 LD
674 FGREP
675 EGREP
676 GREP
677 SED
678 host_os
679 host_vendor
680 host_cpu
681 host
682 build_os
683 build_vendor
684 build_cpu
685 build
686 LIBTOOL
687 CPP
688 am__fastdepCC_FALSE
689 am__fastdepCC_TRUE
690 CCDEPMODE
691 ac_ct_CC
692 CFLAGS
693 CC
694 MAINT
695 MAINTAINER_MODE_FALSE
696 MAINTAINER_MODE_TRUE
697 am__fastdepCXX_FALSE
698 am__fastdepCXX_TRUE
699 CXXDEPMODE
700 am__nodep
701 AMDEPBACKSLASH
702 AMDEP_FALSE
703 AMDEP_TRUE
704 am__quote
705 am__include
706 DEPDIR
707 OBJEXT
708 EXEEXT
709 ac_ct_CXX
710 CPPFLAGS
711 LDFLAGS
712 CXXFLAGS
713 CXX
714 AM_BACKSLASH
715 AM_DEFAULT_VERBOSITY
716 AM_DEFAULT_V
717 AM_V
718 am__untar
719 am__tar
720 AMTAR
721 am__leading_dot
722 SET_MAKE
723 AWK
724 mkdir_p
725 MKDIR_P
726 INSTALL_STRIP_PROGRAM
727 STRIP
728 install_sh
729 MAKEINFO
730 AUTOHEADER
731 AUTOMAKE
732 AUTOCONF
733 ACLOCAL
734 VERSION
735 PACKAGE
736 CYGPATH_W
737 am__isrc
738 INSTALL_DATA
739 INSTALL_SCRIPT
740 INSTALL_PROGRAM
741 target_alias
742 host_alias
743 build_alias
744 LIBS
745 ECHO_T
746 ECHO_N
747 ECHO_C
748 DEFS
749 mandir
750 localedir
751 libdir
752 psdir
753 pdfdir
754 dvidir
755 htmldir
756 infodir
757 docdir
758 oldincludedir
759 includedir
760 runstatedir
761 localstatedir
762 sharedstatedir
763 sysconfdir
764 datadir
765 datarootdir
766 libexecdir
767 sbindir
768 bindir
769 program_transform_name
770 prefix
771 exec_prefix
772 PACKAGE_URL
773 PACKAGE_BUGREPORT
774 PACKAGE_STRING
775 PACKAGE_VERSION
776 PACKAGE_TARNAME
777 PACKAGE_NAME
778 PATH_SEPARATOR
779 SHELL'
780 ac_subst_files=''
781 ac_user_opts='
782 enable_option_checking
783 enable_silent_rules
784 enable_dependency_tracking
785 enable_maintainer_mode
786 enable_shared
787 enable_static
788 with_pic
789 enable_fast_install
790 with_aix_soname
791 with_gnu_ld
792 with_sysroot
793 enable_libtool_lock
794 enable_protobuf
795 enable_debug
796 '
797 ac_precious_vars='build_alias
798 host_alias
799 target_alias
800 CXX
801 CXXFLAGS
802 LDFLAGS
803 LIBS
804 CPPFLAGS
805 CCC
806 CC
807 CFLAGS
808 CPP
809 LT_SYS_LIBRARY_PATH
810 CXXCPP
811 PKG_CONFIG
812 PKG_CONFIG_PATH
813 PKG_CONFIG_LIBDIR
814 LIBX11_CFLAGS
815 LIBX11_LIBS
816 COMPIZ_CFLAGS
817 COMPIZ_LIBS
818 LIBXML2_CFLAGS
819 LIBXML2_LIBS
820 PROTOBUF_CFLAGS
821 PROTOBUF_LIBS'
822
823
824 # Initialize some variables set by options.
825 ac_init_help=
826 ac_init_version=false
827 ac_unrecognized_opts=
828 ac_unrecognized_sep=
829 # The variables have the same names as the options, with
830 # dashes changed to underlines.
831 cache_file=/dev/null
832 exec_prefix=NONE
833 no_create=
834 no_recursion=
835 prefix=NONE
836 program_prefix=NONE
837 program_suffix=NONE
838 program_transform_name=s,x,x,
839 silent=
840 site=
841 srcdir=
842 verbose=
843 x_includes=NONE
844 x_libraries=NONE
845
846 # Installation directory options.
847 # These are left unexpanded so users can "make install exec_prefix=/foo"
848 # and all the variables that are supposed to be based on exec_prefix
849 # by default will actually change.
850 # Use braces instead of parens because sh, perl, etc. also accept them.
851 # (The list follows the same order as the GNU Coding Standards.)
852 bindir='${exec_prefix}/bin'
853 sbindir='${exec_prefix}/sbin'
854 libexecdir='${exec_prefix}/libexec'
855 datarootdir='${prefix}/share'
856 datadir='${datarootdir}'
857 sysconfdir='${prefix}/etc'
858 sharedstatedir='${prefix}/com'
859 localstatedir='${prefix}/var'
860 runstatedir='${localstatedir}/run'
861 includedir='${prefix}/include'
862 oldincludedir='/usr/include'
863 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
864 infodir='${datarootdir}/info'
865 htmldir='${docdir}'
866 dvidir='${docdir}'
867 pdfdir='${docdir}'
868 psdir='${docdir}'
869 libdir='${exec_prefix}/lib'
870 localedir='${datarootdir}/locale'
871 mandir='${datarootdir}/man'
872
873 ac_prev=
874 ac_dashdash=
875 for ac_option
876 do
877 # If the previous option needs an argument, assign it.
878 if test -n "$ac_prev"; then
879 eval $ac_prev=\$ac_option
880 ac_prev=
881 continue
882 fi
883
884 case $ac_option in
885 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
886 *=) ac_optarg= ;;
887 *) ac_optarg=yes ;;
888 esac
889
890 # Accept the important Cygnus configure options, so we can diagnose typos.
891
892 case $ac_dashdash$ac_option in
893 --)
894 ac_dashdash=yes ;;
895
896 -bindir | --bindir | --bindi | --bind | --bin | --bi)
897 ac_prev=bindir ;;
898 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
899 bindir=$ac_optarg ;;
900
901 -build | --build | --buil | --bui | --bu)
902 ac_prev=build_alias ;;
903 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
904 build_alias=$ac_optarg ;;
905
906 -cache-file | --cache-file | --cache-fil | --cache-fi \
907 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
908 ac_prev=cache_file ;;
909 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
910 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
911 cache_file=$ac_optarg ;;
912
913 --config-cache | -C)
914 cache_file=config.cache ;;
915
916 -datadir | --datadir | --datadi | --datad)
917 ac_prev=datadir ;;
918 -datadir=* | --datadir=* | --datadi=* | --datad=*)
919 datadir=$ac_optarg ;;
920
921 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
922 | --dataroo | --dataro | --datar)
923 ac_prev=datarootdir ;;
924 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
925 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
926 datarootdir=$ac_optarg ;;
927
928 -disable-* | --disable-*)
929 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
930 # Reject names that are not valid shell variable names.
931 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
932 as_fn_error $? "invalid feature name: $ac_useropt"
933 ac_useropt_orig=$ac_useropt
934 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
935 case $ac_user_opts in
936 *"
937 "enable_$ac_useropt"
938 "*) ;;
939 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
940 ac_unrecognized_sep=', ';;
941 esac
942 eval enable_$ac_useropt=no ;;
943
944 -docdir | --docdir | --docdi | --doc | --do)
945 ac_prev=docdir ;;
946 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
947 docdir=$ac_optarg ;;
948
949 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
950 ac_prev=dvidir ;;
951 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
952 dvidir=$ac_optarg ;;
953
954 -enable-* | --enable-*)
955 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
956 # Reject names that are not valid shell variable names.
957 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
958 as_fn_error $? "invalid feature name: $ac_useropt"
959 ac_useropt_orig=$ac_useropt
960 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
961 case $ac_user_opts in
962 *"
963 "enable_$ac_useropt"
964 "*) ;;
965 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
966 ac_unrecognized_sep=', ';;
967 esac
968 eval enable_$ac_useropt=\$ac_optarg ;;
969
970 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
971 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
972 | --exec | --exe | --ex)
973 ac_prev=exec_prefix ;;
974 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
975 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
976 | --exec=* | --exe=* | --ex=*)
977 exec_prefix=$ac_optarg ;;
978
979 -gas | --gas | --ga | --g)
980 # Obsolete; use --with-gas.
981 with_gas=yes ;;
982
983 -help | --help | --hel | --he | -h)
984 ac_init_help=long ;;
985 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
986 ac_init_help=recursive ;;
987 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
988 ac_init_help=short ;;
989
990 -host | --host | --hos | --ho)
991 ac_prev=host_alias ;;
992 -host=* | --host=* | --hos=* | --ho=*)
993 host_alias=$ac_optarg ;;
994
995 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
996 ac_prev=htmldir ;;
997 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
998 | --ht=*)
999 htmldir=$ac_optarg ;;
1000
1001 -includedir | --includedir | --includedi | --included | --include \
1002 | --includ | --inclu | --incl | --inc)
1003 ac_prev=includedir ;;
1004 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1005 | --includ=* | --inclu=* | --incl=* | --inc=*)
1006 includedir=$ac_optarg ;;
1007
1008 -infodir | --infodir | --infodi | --infod | --info | --inf)
1009 ac_prev=infodir ;;
1010 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1011 infodir=$ac_optarg ;;
1012
1013 -libdir | --libdir | --libdi | --libd)
1014 ac_prev=libdir ;;
1015 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1016 libdir=$ac_optarg ;;
1017
1018 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1019 | --libexe | --libex | --libe)
1020 ac_prev=libexecdir ;;
1021 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1022 | --libexe=* | --libex=* | --libe=*)
1023 libexecdir=$ac_optarg ;;
1024
1025 -localedir | --localedir | --localedi | --localed | --locale)
1026 ac_prev=localedir ;;
1027 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1028 localedir=$ac_optarg ;;
1029
1030 -localstatedir | --localstatedir | --localstatedi | --localstated \
1031 | --localstate | --localstat | --localsta | --localst | --locals)
1032 ac_prev=localstatedir ;;
1033 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1034 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1035 localstatedir=$ac_optarg ;;
1036
1037 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1038 ac_prev=mandir ;;
1039 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1040 mandir=$ac_optarg ;;
1041
1042 -nfp | --nfp | --nf)
1043 # Obsolete; use --without-fp.
1044 with_fp=no ;;
1045
1046 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1047 | --no-cr | --no-c | -n)
1048 no_create=yes ;;
1049
1050 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1051 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1052 no_recursion=yes ;;
1053
1054 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1055 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1056 | --oldin | --oldi | --old | --ol | --o)
1057 ac_prev=oldincludedir ;;
1058 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1059 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1060 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1061 oldincludedir=$ac_optarg ;;
1062
1063 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1064 ac_prev=prefix ;;
1065 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1066 prefix=$ac_optarg ;;
1067
1068 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1069 | --program-pre | --program-pr | --program-p)
1070 ac_prev=program_prefix ;;
1071 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1072 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1073 program_prefix=$ac_optarg ;;
1074
1075 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1076 | --program-suf | --program-su | --program-s)
1077 ac_prev=program_suffix ;;
1078 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1079 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1080 program_suffix=$ac_optarg ;;
1081
1082 -program-transform-name | --program-transform-name \
1083 | --program-transform-nam | --program-transform-na \
1084 | --program-transform-n | --program-transform- \
1085 | --program-transform | --program-transfor \
1086 | --program-transfo | --program-transf \
1087 | --program-trans | --program-tran \
1088 | --progr-tra | --program-tr | --program-t)
1089 ac_prev=program_transform_name ;;
1090 -program-transform-name=* | --program-transform-name=* \
1091 | --program-transform-nam=* | --program-transform-na=* \
1092 | --program-transform-n=* | --program-transform-=* \
1093 | --program-transform=* | --program-transfor=* \
1094 | --program-transfo=* | --program-transf=* \
1095 | --program-trans=* | --program-tran=* \
1096 | --progr-tra=* | --program-tr=* | --program-t=*)
1097 program_transform_name=$ac_optarg ;;
1098
1099 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1100 ac_prev=pdfdir ;;
1101 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1102 pdfdir=$ac_optarg ;;
1103
1104 -psdir | --psdir | --psdi | --psd | --ps)
1105 ac_prev=psdir ;;
1106 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1107 psdir=$ac_optarg ;;
1108
1109 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1110 | -silent | --silent | --silen | --sile | --sil)
1111 silent=yes ;;
1112
1113 -runstatedir | --runstatedir | --runstatedi | --runstated \
1114 | --runstate | --runstat | --runsta | --runst | --runs \
1115 | --run | --ru | --r)
1116 ac_prev=runstatedir ;;
1117 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1118 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1119 | --run=* | --ru=* | --r=*)
1120 runstatedir=$ac_optarg ;;
1121
1122 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1123 ac_prev=sbindir ;;
1124 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1125 | --sbi=* | --sb=*)
1126 sbindir=$ac_optarg ;;
1127
1128 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1129 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1130 | --sharedst | --shareds | --shared | --share | --shar \
1131 | --sha | --sh)
1132 ac_prev=sharedstatedir ;;
1133 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1134 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1135 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1136 | --sha=* | --sh=*)
1137 sharedstatedir=$ac_optarg ;;
1138
1139 -site | --site | --sit)
1140 ac_prev=site ;;
1141 -site=* | --site=* | --sit=*)
1142 site=$ac_optarg ;;
1143
1144 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1145 ac_prev=srcdir ;;
1146 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1147 srcdir=$ac_optarg ;;
1148
1149 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1150 | --syscon | --sysco | --sysc | --sys | --sy)
1151 ac_prev=sysconfdir ;;
1152 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1153 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1154 sysconfdir=$ac_optarg ;;
1155
1156 -target | --target | --targe | --targ | --tar | --ta | --t)
1157 ac_prev=target_alias ;;
1158 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1159 target_alias=$ac_optarg ;;
1160
1161 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1162 verbose=yes ;;
1163
1164 -version | --version | --versio | --versi | --vers | -V)
1165 ac_init_version=: ;;
1166
1167 -with-* | --with-*)
1168 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1169 # Reject names that are not valid shell variable names.
1170 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1171 as_fn_error $? "invalid package name: $ac_useropt"
1172 ac_useropt_orig=$ac_useropt
1173 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1174 case $ac_user_opts in
1175 *"
1176 "with_$ac_useropt"
1177 "*) ;;
1178 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1179 ac_unrecognized_sep=', ';;
1180 esac
1181 eval with_$ac_useropt=\$ac_optarg ;;
1182
1183 -without-* | --without-*)
1184 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1185 # Reject names that are not valid shell variable names.
1186 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1187 as_fn_error $? "invalid package name: $ac_useropt"
1188 ac_useropt_orig=$ac_useropt
1189 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1190 case $ac_user_opts in
1191 *"
1192 "with_$ac_useropt"
1193 "*) ;;
1194 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1195 ac_unrecognized_sep=', ';;
1196 esac
1197 eval with_$ac_useropt=no ;;
1198
1199 --x)
1200 # Obsolete; use --with-x.
1201 with_x=yes ;;
1202
1203 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1204 | --x-incl | --x-inc | --x-in | --x-i)
1205 ac_prev=x_includes ;;
1206 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1207 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1208 x_includes=$ac_optarg ;;
1209
1210 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1211 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1212 ac_prev=x_libraries ;;
1213 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1214 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1215 x_libraries=$ac_optarg ;;
1216
1217 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1218 Try \`$0 --help' for more information"
1219 ;;
1220
1221 *=*)
1222 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1223 # Reject names that are not valid shell variable names.
1224 case $ac_envvar in #(
1225 '' | [0-9]* | *[!_$as_cr_alnum]* )
1226 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1227 esac
1228 eval $ac_envvar=\$ac_optarg
1229 export $ac_envvar ;;
1230
1231 *)
1232 # FIXME: should be removed in autoconf 3.0.
1233 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1234 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1235 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1236 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1237 ;;
1238
1239 esac
1240 done
1241
1242 if test -n "$ac_prev"; then
1243 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1244 as_fn_error $? "missing argument to $ac_option"
1245 fi
1246
1247 if test -n "$ac_unrecognized_opts"; then
1248 case $enable_option_checking in
1249 no) ;;
1250 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1251 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1252 esac
1253 fi
1254
1255 # Check all directory arguments for consistency.
1256 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1257 datadir sysconfdir sharedstatedir localstatedir includedir \
1258 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1259 libdir localedir mandir runstatedir
1260 do
1261 eval ac_val=\$$ac_var
1262 # Remove trailing slashes.
1263 case $ac_val in
1264 */ )
1265 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1266 eval $ac_var=\$ac_val;;
1267 esac
1268 # Be sure to have absolute directory names.
1269 case $ac_val in
1270 [\\/$]* | ?:[\\/]* ) continue;;
1271 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1272 esac
1273 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1274 done
1275
1276 # There might be people who depend on the old broken behavior: `$host'
1277 # used to hold the argument of --host etc.
1278 # FIXME: To remove some day.
1279 build=$build_alias
1280 host=$host_alias
1281 target=$target_alias
1282
1283 # FIXME: To remove some day.
1284 if test "x$host_alias" != x; then
1285 if test "x$build_alias" = x; then
1286 cross_compiling=maybe
1287 elif test "x$build_alias" != "x$host_alias"; then
1288 cross_compiling=yes
1289 fi
1290 fi
1291
1292 ac_tool_prefix=
1293 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1294
1295 test "$silent" = yes && exec 6>/dev/null
1296
1297
1298 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1299 ac_ls_di=`ls -di .` &&
1300 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1301 as_fn_error $? "working directory cannot be determined"
1302 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1303 as_fn_error $? "pwd does not report name of working directory"
1304
1305
1306 # Find the source files, if location was not specified.
1307 if test -z "$srcdir"; then
1308 ac_srcdir_defaulted=yes
1309 # Try the directory containing this script, then the parent directory.
1310 ac_confdir=`$as_dirname -- "$as_myself" ||
1311 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1312 X"$as_myself" : 'X\(//\)[^/]' \| \
1313 X"$as_myself" : 'X\(//\)$' \| \
1314 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1315 $as_echo X"$as_myself" |
1316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1317 s//\1/
1318 q
1319 }
1320 /^X\(\/\/\)[^/].*/{
1321 s//\1/
1322 q
1323 }
1324 /^X\(\/\/\)$/{
1325 s//\1/
1326 q
1327 }
1328 /^X\(\/\).*/{
1329 s//\1/
1330 q
1331 }
1332 s/.*/./; q'`
1333 srcdir=$ac_confdir
1334 if test ! -r "$srcdir/$ac_unique_file"; then
1335 srcdir=..
1336 fi
1337 else
1338 ac_srcdir_defaulted=no
1339 fi
1340 if test ! -r "$srcdir/$ac_unique_file"; then
1341 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1342 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1343 fi
1344 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1345 ac_abs_confdir=`(
1346 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1347 pwd)`
1348 # When building in place, set srcdir=.
1349 if test "$ac_abs_confdir" = "$ac_pwd"; then
1350 srcdir=.
1351 fi
1352 # Remove unnecessary trailing slashes from srcdir.
1353 # Double slashes in file names in object file debugging info
1354 # mess up M-x gdb in Emacs.
1355 case $srcdir in
1356 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1357 esac
1358 for ac_var in $ac_precious_vars; do
1359 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1360 eval ac_env_${ac_var}_value=\$${ac_var}
1361 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1362 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1363 done
1364
1365 #
1366 # Report the --help message.
1367 #
1368 if test "$ac_init_help" = "long"; then
1369 # Omit some internal or obsolete options to make the list less imposing.
1370 # This message is too long to be a string in the A/UX 3.1 sh.
1371 cat <<_ACEOF
1372 \`configure' configures libcompizconfig 0.8.18 to adapt to many kinds of systems.
1373
1374 Usage: $0 [OPTION]... [VAR=VALUE]...
1375
1376 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1377 VAR=VALUE. See below for descriptions of some of the useful variables.
1378
1379 Defaults for the options are specified in brackets.
1380
1381 Configuration:
1382 -h, --help display this help and exit
1383 --help=short display options specific to this package
1384 --help=recursive display the short help of all the included packages
1385 -V, --version display version information and exit
1386 -q, --quiet, --silent do not print \`checking ...' messages
1387 --cache-file=FILE cache test results in FILE [disabled]
1388 -C, --config-cache alias for \`--cache-file=config.cache'
1389 -n, --no-create do not create output files
1390 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1391
1392 Installation directories:
1393 --prefix=PREFIX install architecture-independent files in PREFIX
1394 [$ac_default_prefix]
1395 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1396 [PREFIX]
1397
1398 By default, \`make install' will install all the files in
1399 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1400 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1401 for instance \`--prefix=\$HOME'.
1402
1403 For better control, use the options below.
1404
1405 Fine tuning of the installation directories:
1406 --bindir=DIR user executables [EPREFIX/bin]
1407 --sbindir=DIR system admin executables [EPREFIX/sbin]
1408 --libexecdir=DIR program executables [EPREFIX/libexec]
1409 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1410 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1411 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1412 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1413 --libdir=DIR object code libraries [EPREFIX/lib]
1414 --includedir=DIR C header files [PREFIX/include]
1415 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1416 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1417 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1418 --infodir=DIR info documentation [DATAROOTDIR/info]
1419 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1420 --mandir=DIR man documentation [DATAROOTDIR/man]
1421 --docdir=DIR documentation root [DATAROOTDIR/doc/libcompizconfig]
1422 --htmldir=DIR html documentation [DOCDIR]
1423 --dvidir=DIR dvi documentation [DOCDIR]
1424 --pdfdir=DIR pdf documentation [DOCDIR]
1425 --psdir=DIR ps documentation [DOCDIR]
1426 _ACEOF
1427
1428 cat <<\_ACEOF
1429
1430 Program names:
1431 --program-prefix=PREFIX prepend PREFIX to installed program names
1432 --program-suffix=SUFFIX append SUFFIX to installed program names
1433 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1434
1435 System types:
1436 --build=BUILD configure for building on BUILD [guessed]
1437 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1438 _ACEOF
1439 fi
1440
1441 if test -n "$ac_init_help"; then
1442 case $ac_init_help in
1443 short | recursive ) echo "Configuration of libcompizconfig 0.8.18:";;
1444 esac
1445 cat <<\_ACEOF
1446
1447 Optional Features:
1448 --disable-option-checking ignore unrecognized --enable/--with options
1449 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1450 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1451 --enable-silent-rules less verbose build output (undo: "make V=1")
1452 --disable-silent-rules verbose build output (undo: "make V=0")
1453 --enable-dependency-tracking
1454 do not reject slow dependency extractors
1455 --disable-dependency-tracking
1456 speeds up one-time build
1457 --enable-maintainer-mode
1458 enable make rules and dependencies not useful (and
1459 sometimes confusing) to the casual installer
1460 --enable-shared[=PKGS] build shared libraries [default=yes]
1461 --enable-static[=PKGS] build static libraries [default=yes]
1462 --enable-fast-install[=PKGS]
1463 optimize for fast installation [default=yes]
1464 --disable-libtool-lock avoid locking (might break parallel builds)
1465 --disable-protobuf Disable Protocol Buffers
1466 --enable-debug=none,normal,full Enable output of debug messages
1467
1468 Optional Packages:
1469 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1470 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1471 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1472 both]
1473 --with-aix-soname=aix|svr4|both
1474 shared library versioning (aka "SONAME") variant to
1475 provide on AIX, [default=aix].
1476 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1477 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1478 compiler's sysroot if not specified).
1479
1480 Some influential environment variables:
1481 CXX C++ compiler command
1482 CXXFLAGS C++ compiler flags
1483 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1484 nonstandard directory <lib dir>
1485 LIBS libraries to pass to the linker, e.g. -l<library>
1486 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1487 you have headers in a nonstandard directory <include dir>
1488 CC C compiler command
1489 CFLAGS C compiler flags
1490 CPP C preprocessor
1491 LT_SYS_LIBRARY_PATH
1492 User-defined run-time library search path.
1493 CXXCPP C++ preprocessor
1494 PKG_CONFIG path to pkg-config utility
1495 PKG_CONFIG_PATH
1496 directories to add to pkg-config's search path
1497 PKG_CONFIG_LIBDIR
1498 path overriding pkg-config's built-in search path
1499 LIBX11_CFLAGS
1500 C compiler flags for LIBX11, overriding pkg-config
1501 LIBX11_LIBS linker flags for LIBX11, overriding pkg-config
1502 COMPIZ_CFLAGS
1503 C compiler flags for COMPIZ, overriding pkg-config
1504 COMPIZ_LIBS linker flags for COMPIZ, overriding pkg-config
1505 LIBXML2_CFLAGS
1506 C compiler flags for LIBXML2, overriding pkg-config
1507 LIBXML2_LIBS
1508 linker flags for LIBXML2, overriding pkg-config
1509 PROTOBUF_CFLAGS
1510 C compiler flags for PROTOBUF, overriding pkg-config
1511 PROTOBUF_LIBS
1512 linker flags for PROTOBUF, overriding pkg-config
1513
1514 Use these variables to override the choices made by `configure' or to help
1515 it to find libraries and programs with nonstandard names/locations.
1516
1517 Report bugs to <[email protected]>.
1518 _ACEOF
1519 ac_status=$?
1520 fi
1521
1522 if test "$ac_init_help" = "recursive"; then
1523 # If there are subdirs, report their specific --help.
1524 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1525 test -d "$ac_dir" ||
1526 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1527 continue
1528 ac_builddir=.
1529
1530 case "$ac_dir" in
1531 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1532 *)
1533 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1534 # A ".." for each directory in $ac_dir_suffix.
1535 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1536 case $ac_top_builddir_sub in
1537 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1538 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1539 esac ;;
1540 esac
1541 ac_abs_top_builddir=$ac_pwd
1542 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1543 # for backward compatibility:
1544 ac_top_builddir=$ac_top_build_prefix
1545
1546 case $srcdir in
1547 .) # We are building in place.
1548 ac_srcdir=.
1549 ac_top_srcdir=$ac_top_builddir_sub
1550 ac_abs_top_srcdir=$ac_pwd ;;
1551 [\\/]* | ?:[\\/]* ) # Absolute name.
1552 ac_srcdir=$srcdir$ac_dir_suffix;
1553 ac_top_srcdir=$srcdir
1554 ac_abs_top_srcdir=$srcdir ;;
1555 *) # Relative name.
1556 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1557 ac_top_srcdir=$ac_top_build_prefix$srcdir
1558 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1559 esac
1560 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1561
1562 cd "$ac_dir" || { ac_status=$?; continue; }
1563 # Check for guested configure.
1564 if test -f "$ac_srcdir/configure.gnu"; then
1565 echo &&
1566 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1567 elif test -f "$ac_srcdir/configure"; then
1568 echo &&
1569 $SHELL "$ac_srcdir/configure" --help=recursive
1570 else
1571 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1572 fi || ac_status=$?
1573 cd "$ac_pwd" || { ac_status=$?; break; }
1574 done
1575 fi
1576
1577 test -n "$ac_init_help" && exit $ac_status
1578 if $ac_init_version; then
1579 cat <<\_ACEOF
1580 libcompizconfig configure 0.8.18
1581 generated by GNU Autoconf 2.69
1582
1583 Copyright (C) 2012 Free Software Foundation, Inc.
1584 This configure script is free software; the Free Software Foundation
1585 gives unlimited permission to copy, distribute and modify it.
1586 _ACEOF
1587 exit
1588 fi
1589
1590 ## ------------------------ ##
1591 ## Autoconf initialization. ##
1592 ## ------------------------ ##
1593
1594 # ac_fn_cxx_try_compile LINENO
1595 # ----------------------------
1596 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1597 ac_fn_cxx_try_compile ()
1598 {
1599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1600 rm -f conftest.$ac_objext
1601 if { { ac_try="$ac_compile"
1602 case "(($ac_try" in
1603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1604 *) ac_try_echo=$ac_try;;
1605 esac
1606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1607 $as_echo "$ac_try_echo"; } >&5
1608 (eval "$ac_compile") 2>conftest.err
1609 ac_status=$?
1610 if test -s conftest.err; then
1611 grep -v '^ *+' conftest.err >conftest.er1
1612 cat conftest.er1 >&5
1613 mv -f conftest.er1 conftest.err
1614 fi
1615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1616 test $ac_status = 0; } && {
1617 test -z "$ac_cxx_werror_flag" ||
1618 test ! -s conftest.err
1619 } && test -s conftest.$ac_objext; then :
1620 ac_retval=0
1621 else
1622 $as_echo "$as_me: failed program was:" >&5
1623 sed 's/^/| /' conftest.$ac_ext >&5
1624
1625 ac_retval=1
1626 fi
1627 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1628 as_fn_set_status $ac_retval
1629
1630 } # ac_fn_cxx_try_compile
1631
1632 # ac_fn_c_try_compile LINENO
1633 # --------------------------
1634 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1635 ac_fn_c_try_compile ()
1636 {
1637 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1638 rm -f conftest.$ac_objext
1639 if { { ac_try="$ac_compile"
1640 case "(($ac_try" in
1641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1642 *) ac_try_echo=$ac_try;;
1643 esac
1644 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1645 $as_echo "$ac_try_echo"; } >&5
1646 (eval "$ac_compile") 2>conftest.err
1647 ac_status=$?
1648 if test -s conftest.err; then
1649 grep -v '^ *+' conftest.err >conftest.er1
1650 cat conftest.er1 >&5
1651 mv -f conftest.er1 conftest.err
1652 fi
1653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1654 test $ac_status = 0; } && {
1655 test -z "$ac_c_werror_flag" ||
1656 test ! -s conftest.err
1657 } && test -s conftest.$ac_objext; then :
1658 ac_retval=0
1659 else
1660 $as_echo "$as_me: failed program was:" >&5
1661 sed 's/^/| /' conftest.$ac_ext >&5
1662
1663 ac_retval=1
1664 fi
1665 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1666 as_fn_set_status $ac_retval
1667
1668 } # ac_fn_c_try_compile
1669
1670 # ac_fn_c_try_link LINENO
1671 # -----------------------
1672 # Try to link conftest.$ac_ext, and return whether this succeeded.
1673 ac_fn_c_try_link ()
1674 {
1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676 rm -f conftest.$ac_objext conftest$ac_exeext
1677 if { { ac_try="$ac_link"
1678 case "(($ac_try" in
1679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1680 *) ac_try_echo=$ac_try;;
1681 esac
1682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1683 $as_echo "$ac_try_echo"; } >&5
1684 (eval "$ac_link") 2>conftest.err
1685 ac_status=$?
1686 if test -s conftest.err; then
1687 grep -v '^ *+' conftest.err >conftest.er1
1688 cat conftest.er1 >&5
1689 mv -f conftest.er1 conftest.err
1690 fi
1691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692 test $ac_status = 0; } && {
1693 test -z "$ac_c_werror_flag" ||
1694 test ! -s conftest.err
1695 } && test -s conftest$ac_exeext && {
1696 test "$cross_compiling" = yes ||
1697 test -x conftest$ac_exeext
1698 }; then :
1699 ac_retval=0
1700 else
1701 $as_echo "$as_me: failed program was:" >&5
1702 sed 's/^/| /' conftest.$ac_ext >&5
1703
1704 ac_retval=1
1705 fi
1706 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1707 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1708 # interfere with the next link command; also delete a directory that is
1709 # left behind by Apple's compiler. We do this before executing the actions.
1710 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1711 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1712 as_fn_set_status $ac_retval
1713
1714 } # ac_fn_c_try_link
1715
1716 # ac_fn_c_try_cpp LINENO
1717 # ----------------------
1718 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1719 ac_fn_c_try_cpp ()
1720 {
1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722 if { { ac_try="$ac_cpp conftest.$ac_ext"
1723 case "(($ac_try" in
1724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1725 *) ac_try_echo=$ac_try;;
1726 esac
1727 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1728 $as_echo "$ac_try_echo"; } >&5
1729 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1730 ac_status=$?
1731 if test -s conftest.err; then
1732 grep -v '^ *+' conftest.err >conftest.er1
1733 cat conftest.er1 >&5
1734 mv -f conftest.er1 conftest.err
1735 fi
1736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1737 test $ac_status = 0; } > conftest.i && {
1738 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1739 test ! -s conftest.err
1740 }; then :
1741 ac_retval=0
1742 else
1743 $as_echo "$as_me: failed program was:" >&5
1744 sed 's/^/| /' conftest.$ac_ext >&5
1745
1746 ac_retval=1
1747 fi
1748 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1749 as_fn_set_status $ac_retval
1750
1751 } # ac_fn_c_try_cpp
1752
1753 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1754 # -------------------------------------------------------
1755 # Tests whether HEADER exists and can be compiled using the include files in
1756 # INCLUDES, setting the cache variable VAR accordingly.
1757 ac_fn_c_check_header_compile ()
1758 {
1759 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1761 $as_echo_n "checking for $2... " >&6; }
1762 if eval \${$3+:} false; then :
1763 $as_echo_n "(cached) " >&6
1764 else
1765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1766 /* end confdefs.h. */
1767 $4
1768 #include <$2>
1769 _ACEOF
1770 if ac_fn_c_try_compile "$LINENO"; then :
1771 eval "$3=yes"
1772 else
1773 eval "$3=no"
1774 fi
1775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1776 fi
1777 eval ac_res=\$$3
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1779 $as_echo "$ac_res" >&6; }
1780 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1781
1782 } # ac_fn_c_check_header_compile
1783
1784 # ac_fn_c_try_run LINENO
1785 # ----------------------
1786 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1787 # that executables *can* be run.
1788 ac_fn_c_try_run ()
1789 {
1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791 if { { ac_try="$ac_link"
1792 case "(($ac_try" in
1793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1794 *) ac_try_echo=$ac_try;;
1795 esac
1796 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1797 $as_echo "$ac_try_echo"; } >&5
1798 (eval "$ac_link") 2>&5
1799 ac_status=$?
1800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1802 { { case "(($ac_try" in
1803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1804 *) ac_try_echo=$ac_try;;
1805 esac
1806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1807 $as_echo "$ac_try_echo"; } >&5
1808 (eval "$ac_try") 2>&5
1809 ac_status=$?
1810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1811 test $ac_status = 0; }; }; then :
1812 ac_retval=0
1813 else
1814 $as_echo "$as_me: program exited with status $ac_status" >&5
1815 $as_echo "$as_me: failed program was:" >&5
1816 sed 's/^/| /' conftest.$ac_ext >&5
1817
1818 ac_retval=$ac_status
1819 fi
1820 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1821 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1822 as_fn_set_status $ac_retval
1823
1824 } # ac_fn_c_try_run
1825
1826 # ac_fn_c_check_func LINENO FUNC VAR
1827 # ----------------------------------
1828 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1829 ac_fn_c_check_func ()
1830 {
1831 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1833 $as_echo_n "checking for $2... " >&6; }
1834 if eval \${$3+:} false; then :
1835 $as_echo_n "(cached) " >&6
1836 else
1837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1838 /* end confdefs.h. */
1839 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1840 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1841 #define $2 innocuous_$2
1842
1843 /* System header to define __stub macros and hopefully few prototypes,
1844 which can conflict with char $2 (); below.
1845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1846 <limits.h> exists even on freestanding compilers. */
1847
1848 #ifdef __STDC__
1849 # include <limits.h>
1850 #else
1851 # include <assert.h>
1852 #endif
1853
1854 #undef $2
1855
1856 /* Override any GCC internal prototype to avoid an error.
1857 Use char because int might match the return type of a GCC
1858 builtin and then its argument prototype would still apply. */
1859 #ifdef __cplusplus
1860 extern "C"
1861 #endif
1862 char $2 ();
1863 /* The GNU C library defines this for functions which it implements
1864 to always fail with ENOSYS. Some functions are actually named
1865 something starting with __ and the normal name is an alias. */
1866 #if defined __stub_$2 || defined __stub___$2
1867 choke me
1868 #endif
1869
1870 int
1871 main ()
1872 {
1873 return $2 ();
1874 ;
1875 return 0;
1876 }
1877 _ACEOF
1878 if ac_fn_c_try_link "$LINENO"; then :
1879 eval "$3=yes"
1880 else
1881 eval "$3=no"
1882 fi
1883 rm -f core conftest.err conftest.$ac_objext \
1884 conftest$ac_exeext conftest.$ac_ext
1885 fi
1886 eval ac_res=\$$3
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1888 $as_echo "$ac_res" >&6; }
1889 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1890
1891 } # ac_fn_c_check_func
1892
1893 # ac_fn_cxx_try_cpp LINENO
1894 # ------------------------
1895 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1896 ac_fn_cxx_try_cpp ()
1897 {
1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899 if { { ac_try="$ac_cpp conftest.$ac_ext"
1900 case "(($ac_try" in
1901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1902 *) ac_try_echo=$ac_try;;
1903 esac
1904 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1905 $as_echo "$ac_try_echo"; } >&5
1906 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1907 ac_status=$?
1908 if test -s conftest.err; then
1909 grep -v '^ *+' conftest.err >conftest.er1
1910 cat conftest.er1 >&5
1911 mv -f conftest.er1 conftest.err
1912 fi
1913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1914 test $ac_status = 0; } > conftest.i && {
1915 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1916 test ! -s conftest.err
1917 }; then :
1918 ac_retval=0
1919 else
1920 $as_echo "$as_me: failed program was:" >&5
1921 sed 's/^/| /' conftest.$ac_ext >&5
1922
1923 ac_retval=1
1924 fi
1925 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1926 as_fn_set_status $ac_retval
1927
1928 } # ac_fn_cxx_try_cpp
1929
1930 # ac_fn_cxx_try_link LINENO
1931 # -------------------------
1932 # Try to link conftest.$ac_ext, and return whether this succeeded.
1933 ac_fn_cxx_try_link ()
1934 {
1935 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1936 rm -f conftest.$ac_objext conftest$ac_exeext
1937 if { { ac_try="$ac_link"
1938 case "(($ac_try" in
1939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1940 *) ac_try_echo=$ac_try;;
1941 esac
1942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1943 $as_echo "$ac_try_echo"; } >&5
1944 (eval "$ac_link") 2>conftest.err
1945 ac_status=$?
1946 if test -s conftest.err; then
1947 grep -v '^ *+' conftest.err >conftest.er1
1948 cat conftest.er1 >&5
1949 mv -f conftest.er1 conftest.err
1950 fi
1951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1952 test $ac_status = 0; } && {
1953 test -z "$ac_cxx_werror_flag" ||
1954 test ! -s conftest.err
1955 } && test -s conftest$ac_exeext && {
1956 test "$cross_compiling" = yes ||
1957 test -x conftest$ac_exeext
1958 }; then :
1959 ac_retval=0
1960 else
1961 $as_echo "$as_me: failed program was:" >&5
1962 sed 's/^/| /' conftest.$ac_ext >&5
1963
1964 ac_retval=1
1965 fi
1966 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1967 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1968 # interfere with the next link command; also delete a directory that is
1969 # left behind by Apple's compiler. We do this before executing the actions.
1970 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1971 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1972 as_fn_set_status $ac_retval
1973
1974 } # ac_fn_cxx_try_link
1975
1976 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1977 # -------------------------------------------------------
1978 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1979 # the include files in INCLUDES and setting the cache variable VAR
1980 # accordingly.
1981 ac_fn_c_check_header_mongrel ()
1982 {
1983 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1984 if eval \${$3+:} false; then :
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1986 $as_echo_n "checking for $2... " >&6; }
1987 if eval \${$3+:} false; then :
1988 $as_echo_n "(cached) " >&6
1989 fi
1990 eval ac_res=\$$3
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1992 $as_echo "$ac_res" >&6; }
1993 else
1994 # Is the header compilable?
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1996 $as_echo_n "checking $2 usability... " >&6; }
1997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1998 /* end confdefs.h. */
1999 $4
2000 #include <$2>
2001 _ACEOF
2002 if ac_fn_c_try_compile "$LINENO"; then :
2003 ac_header_compiler=yes
2004 else
2005 ac_header_compiler=no
2006 fi
2007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2009 $as_echo "$ac_header_compiler" >&6; }
2010
2011 # Is the header present?
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2013 $as_echo_n "checking $2 presence... " >&6; }
2014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015 /* end confdefs.h. */
2016 #include <$2>
2017 _ACEOF
2018 if ac_fn_c_try_cpp "$LINENO"; then :
2019 ac_header_preproc=yes
2020 else
2021 ac_header_preproc=no
2022 fi
2023 rm -f conftest.err conftest.i conftest.$ac_ext
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2025 $as_echo "$ac_header_preproc" >&6; }
2026
2027 # So? What about this header?
2028 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2029 yes:no: )
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2031 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2033 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2034 ;;
2035 no:yes:* )
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2037 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2039 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2041 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2043 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2045 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2046 ( $as_echo "## ----------------------------------- ##
2047 ## Report this to [email protected] ##
2048 ## ----------------------------------- ##"
2049 ) | sed "s/^/$as_me: WARNING: /" >&2
2050 ;;
2051 esac
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2053 $as_echo_n "checking for $2... " >&6; }
2054 if eval \${$3+:} false; then :
2055 $as_echo_n "(cached) " >&6
2056 else
2057 eval "$3=\$ac_header_compiler"
2058 fi
2059 eval ac_res=\$$3
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2061 $as_echo "$ac_res" >&6; }
2062 fi
2063 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2064
2065 } # ac_fn_c_check_header_mongrel
2066 cat >config.log <<_ACEOF
2067 This file contains any messages produced by compilers while
2068 running configure, to aid debugging if configure makes a mistake.
2069
2070 It was created by libcompizconfig $as_me 0.8.18, which was
2071 generated by GNU Autoconf 2.69. Invocation command line was
2072
2073 $ $0 $@
2074
2075 _ACEOF
2076 exec 5>>config.log
2077 {
2078 cat <<_ASUNAME
2079 ## --------- ##
2080 ## Platform. ##
2081 ## --------- ##
2082
2083 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2084 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2085 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2086 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2087 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2088
2089 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2090 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2091
2092 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2093 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2094 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2095 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2096 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2097 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2098 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2099
2100 _ASUNAME
2101
2102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2103 for as_dir in $PATH
2104 do
2105 IFS=$as_save_IFS
2106 test -z "$as_dir" && as_dir=.
2107 $as_echo "PATH: $as_dir"
2108 done
2109 IFS=$as_save_IFS
2110
2111 } >&5
2112
2113 cat >&5 <<_ACEOF
2114
2115
2116 ## ----------- ##
2117 ## Core tests. ##
2118 ## ----------- ##
2119
2120 _ACEOF
2121
2122
2123 # Keep a trace of the command line.
2124 # Strip out --no-create and --no-recursion so they do not pile up.
2125 # Strip out --silent because we don't want to record it for future runs.
2126 # Also quote any args containing shell meta-characters.
2127 # Make two passes to allow for proper duplicate-argument suppression.
2128 ac_configure_args=
2129 ac_configure_args0=
2130 ac_configure_args1=
2131 ac_must_keep_next=false
2132 for ac_pass in 1 2
2133 do
2134 for ac_arg
2135 do
2136 case $ac_arg in
2137 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2138 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2139 | -silent | --silent | --silen | --sile | --sil)
2140 continue ;;
2141 *\'*)
2142 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2143 esac
2144 case $ac_pass in
2145 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2146 2)
2147 as_fn_append ac_configure_args1 " '$ac_arg'"
2148 if test $ac_must_keep_next = true; then
2149 ac_must_keep_next=false # Got value, back to normal.
2150 else
2151 case $ac_arg in
2152 *=* | --config-cache | -C | -disable-* | --disable-* \
2153 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2154 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2155 | -with-* | --with-* | -without-* | --without-* | --x)
2156 case "$ac_configure_args0 " in
2157 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2158 esac
2159 ;;
2160 -* ) ac_must_keep_next=true ;;
2161 esac
2162 fi
2163 as_fn_append ac_configure_args " '$ac_arg'"
2164 ;;
2165 esac
2166 done
2167 done
2168 { ac_configure_args0=; unset ac_configure_args0;}
2169 { ac_configure_args1=; unset ac_configure_args1;}
2170
2171 # When interrupted or exit'd, cleanup temporary files, and complete
2172 # config.log. We remove comments because anyway the quotes in there
2173 # would cause problems or look ugly.
2174 # WARNING: Use '\'' to represent an apostrophe within the trap.
2175 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2176 trap 'exit_status=$?
2177 # Save into config.log some information that might help in debugging.
2178 {
2179 echo
2180
2181 $as_echo "## ---------------- ##
2182 ## Cache variables. ##
2183 ## ---------------- ##"
2184 echo
2185 # The following way of writing the cache mishandles newlines in values,
2186 (
2187 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2188 eval ac_val=\$$ac_var
2189 case $ac_val in #(
2190 *${as_nl}*)
2191 case $ac_var in #(
2192 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2193 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2194 esac
2195 case $ac_var in #(
2196 _ | IFS | as_nl) ;; #(
2197 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2198 *) { eval $ac_var=; unset $ac_var;} ;;
2199 esac ;;
2200 esac
2201 done
2202 (set) 2>&1 |
2203 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2204 *${as_nl}ac_space=\ *)
2205 sed -n \
2206 "s/'\''/'\''\\\\'\'''\''/g;
2207 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2208 ;; #(
2209 *)
2210 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2211 ;;
2212 esac |
2213 sort
2214 )
2215 echo
2216
2217 $as_echo "## ----------------- ##
2218 ## Output variables. ##
2219 ## ----------------- ##"
2220 echo
2221 for ac_var in $ac_subst_vars
2222 do
2223 eval ac_val=\$$ac_var
2224 case $ac_val in
2225 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2226 esac
2227 $as_echo "$ac_var='\''$ac_val'\''"
2228 done | sort
2229 echo
2230
2231 if test -n "$ac_subst_files"; then
2232 $as_echo "## ------------------- ##
2233 ## File substitutions. ##
2234 ## ------------------- ##"
2235 echo
2236 for ac_var in $ac_subst_files
2237 do
2238 eval ac_val=\$$ac_var
2239 case $ac_val in
2240 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2241 esac
2242 $as_echo "$ac_var='\''$ac_val'\''"
2243 done | sort
2244 echo
2245 fi
2246
2247 if test -s confdefs.h; then
2248 $as_echo "## ----------- ##
2249 ## confdefs.h. ##
2250 ## ----------- ##"
2251 echo
2252 cat confdefs.h
2253 echo
2254 fi
2255 test "$ac_signal" != 0 &&
2256 $as_echo "$as_me: caught signal $ac_signal"
2257 $as_echo "$as_me: exit $exit_status"
2258 } >&5
2259 rm -f core *.core core.conftest.* &&
2260 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2261 exit $exit_status
2262 ' 0
2263 for ac_signal in 1 2 13 15; do
2264 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2265 done
2266 ac_signal=0
2267
2268 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2269 rm -f -r conftest* confdefs.h
2270
2271 $as_echo "/* confdefs.h */" > confdefs.h
2272
2273 # Predefined preprocessor variables.
2274
2275 cat >>confdefs.h <<_ACEOF
2276 #define PACKAGE_NAME "$PACKAGE_NAME"
2277 _ACEOF
2278
2279 cat >>confdefs.h <<_ACEOF
2280 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2281 _ACEOF
2282
2283 cat >>confdefs.h <<_ACEOF
2284 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2285 _ACEOF
2286
2287 cat >>confdefs.h <<_ACEOF
2288 #define PACKAGE_STRING "$PACKAGE_STRING"
2289 _ACEOF
2290
2291 cat >>confdefs.h <<_ACEOF
2292 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2293 _ACEOF
2294
2295 cat >>confdefs.h <<_ACEOF
2296 #define PACKAGE_URL "$PACKAGE_URL"
2297 _ACEOF
2298
2299
2300 # Let the site file select an alternate cache file if it wants to.
2301 # Prefer an explicitly selected file to automatically selected ones.
2302 ac_site_file1=NONE
2303 ac_site_file2=NONE
2304 if test -n "$CONFIG_SITE"; then
2305 # We do not want a PATH search for config.site.
2306 case $CONFIG_SITE in #((
2307 -*) ac_site_file1=./$CONFIG_SITE;;
2308 */*) ac_site_file1=$CONFIG_SITE;;
2309 *) ac_site_file1=./$CONFIG_SITE;;
2310 esac
2311 elif test "x$prefix" != xNONE; then
2312 ac_site_file1=$prefix/share/config.site
2313 ac_site_file2=$prefix/etc/config.site
2314 else
2315 ac_site_file1=$ac_default_prefix/share/config.site
2316 ac_site_file2=$ac_default_prefix/etc/config.site
2317 fi
2318 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2319 do
2320 test "x$ac_site_file" = xNONE && continue
2321 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2323 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2324 sed 's/^/| /' "$ac_site_file" >&5
2325 . "$ac_site_file" \
2326 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2327 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2328 as_fn_error $? "failed to load site script $ac_site_file
2329 See \`config.log' for more details" "$LINENO" 5; }
2330 fi
2331 done
2332
2333 if test -r "$cache_file"; then
2334 # Some versions of bash will fail to source /dev/null (special files
2335 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2336 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2338 $as_echo "$as_me: loading cache $cache_file" >&6;}
2339 case $cache_file in
2340 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2341 *) . "./$cache_file";;
2342 esac
2343 fi
2344 else
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2346 $as_echo "$as_me: creating cache $cache_file" >&6;}
2347 >$cache_file
2348 fi
2349
2350 # Check that the precious variables saved in the cache have kept the same
2351 # value.
2352 ac_cache_corrupted=false
2353 for ac_var in $ac_precious_vars; do
2354 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2355 eval ac_new_set=\$ac_env_${ac_var}_set
2356 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2357 eval ac_new_val=\$ac_env_${ac_var}_value
2358 case $ac_old_set,$ac_new_set in
2359 set,)
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2361 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2362 ac_cache_corrupted=: ;;
2363 ,set)
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2365 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2366 ac_cache_corrupted=: ;;
2367 ,);;
2368 *)
2369 if test "x$ac_old_val" != "x$ac_new_val"; then
2370 # differences in whitespace do not lead to failure.
2371 ac_old_val_w=`echo x $ac_old_val`
2372 ac_new_val_w=`echo x $ac_new_val`
2373 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2375 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2376 ac_cache_corrupted=:
2377 else
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2379 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2380 eval $ac_var=\$ac_old_val
2381 fi
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2383 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2385 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2386 fi;;
2387 esac
2388 # Pass precious variables to config.status.
2389 if test "$ac_new_set" = set; then
2390 case $ac_new_val in
2391 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2392 *) ac_arg=$ac_var=$ac_new_val ;;
2393 esac
2394 case " $ac_configure_args " in
2395 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2396 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2397 esac
2398 fi
2399 done
2400 if $ac_cache_corrupted; then
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2402 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2404 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2405 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2406 fi
2407 ## -------------------- ##
2408 ## Main body of script. ##
2409 ## -------------------- ##
2410
2411 ac_ext=c
2412 ac_cpp='$CPP $CPPFLAGS'
2413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2416
2417
2418 am__api_version='1.15'
2419
2420 ac_aux_dir=
2421 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2422 if test -f "$ac_dir/install-sh"; then
2423 ac_aux_dir=$ac_dir
2424 ac_install_sh="$ac_aux_dir/install-sh -c"
2425 break
2426 elif test -f "$ac_dir/install.sh"; then
2427 ac_aux_dir=$ac_dir
2428 ac_install_sh="$ac_aux_dir/install.sh -c"
2429 break
2430 elif test -f "$ac_dir/shtool"; then
2431 ac_aux_dir=$ac_dir
2432 ac_install_sh="$ac_aux_dir/shtool install -c"
2433 break
2434 fi
2435 done
2436 if test -z "$ac_aux_dir"; then
2437 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2438 fi
2439
2440 # These three variables are undocumented and unsupported,
2441 # and are intended to be withdrawn in a future Autoconf release.
2442 # They can cause serious problems if a builder's source tree is in a directory
2443 # whose full name contains unusual characters.
2444 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2445 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2446 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2447
2448
2449 # Find a good install program. We prefer a C program (faster),
2450 # so one script is as good as another. But avoid the broken or
2451 # incompatible versions:
2452 # SysV /etc/install, /usr/sbin/install
2453 # SunOS /usr/etc/install
2454 # IRIX /sbin/install
2455 # AIX /bin/install
2456 # AmigaOS /C/install, which installs bootblocks on floppy discs
2457 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2458 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2459 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2460 # OS/2's system install, which has a completely different semantic
2461 # ./install, which can be erroneously created by make from ./install.sh.
2462 # Reject install programs that cannot install multiple files.
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2464 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2465 if test -z "$INSTALL"; then
2466 if ${ac_cv_path_install+:} false; then :
2467 $as_echo_n "(cached) " >&6
2468 else
2469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2470 for as_dir in $PATH
2471 do
2472 IFS=$as_save_IFS
2473 test -z "$as_dir" && as_dir=.
2474 # Account for people who put trailing slashes in PATH elements.
2475 case $as_dir/ in #((
2476 ./ | .// | /[cC]/* | \
2477 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2478 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2479 /usr/ucb/* ) ;;
2480 *)
2481 # OSF1 and SCO ODT 3.0 have their own names for install.
2482 # Don't use installbsd from OSF since it installs stuff as root
2483 # by default.
2484 for ac_prog in ginstall scoinst install; do
2485 for ac_exec_ext in '' $ac_executable_extensions; do
2486 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2487 if test $ac_prog = install &&
2488 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2489 # AIX install. It has an incompatible calling convention.
2490 :
2491 elif test $ac_prog = install &&
2492 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2493 # program-specific install script used by HP pwplus--don't use.
2494 :
2495 else
2496 rm -rf conftest.one conftest.two conftest.dir
2497 echo one > conftest.one
2498 echo two > conftest.two
2499 mkdir conftest.dir
2500 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2501 test -s conftest.one && test -s conftest.two &&
2502 test -s conftest.dir/conftest.one &&
2503 test -s conftest.dir/conftest.two
2504 then
2505 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2506 break 3
2507 fi
2508 fi
2509 fi
2510 done
2511 done
2512 ;;
2513 esac
2514
2515 done
2516 IFS=$as_save_IFS
2517
2518 rm -rf conftest.one conftest.two conftest.dir
2519
2520 fi
2521 if test "${ac_cv_path_install+set}" = set; then
2522 INSTALL=$ac_cv_path_install
2523 else
2524 # As a last resort, use the slow shell script. Don't cache a
2525 # value for INSTALL within a source directory, because that will
2526 # break other packages using the cache if that directory is
2527 # removed, or if the value is a relative name.
2528 INSTALL=$ac_install_sh
2529 fi
2530 fi
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2532 $as_echo "$INSTALL" >&6; }
2533
2534 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2535 # It thinks the first close brace ends the variable substitution.
2536 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2537
2538 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2539
2540 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2541
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2543 $as_echo_n "checking whether build environment is sane... " >&6; }
2544 # Reject unsafe characters in $srcdir or the absolute working directory
2545 # name. Accept space and tab only in the latter.
2546 am_lf='
2547 '
2548 case `pwd` in
2549 *[\\\"\#\$\&\'\`$am_lf]*)
2550 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2551 esac
2552 case $srcdir in
2553 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2554 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2555 esac
2556
2557 # Do 'set' in a subshell so we don't clobber the current shell's
2558 # arguments. Must try -L first in case configure is actually a
2559 # symlink; some systems play weird games with the mod time of symlinks
2560 # (eg FreeBSD returns the mod time of the symlink's containing
2561 # directory).
2562 if (
2563 am_has_slept=no
2564 for am_try in 1 2; do
2565 echo "timestamp, slept: $am_has_slept" > conftest.file
2566 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2567 if test "$*" = "X"; then
2568 # -L didn't work.
2569 set X `ls -t "$srcdir/configure" conftest.file`
2570 fi
2571 if test "$*" != "X $srcdir/configure conftest.file" \
2572 && test "$*" != "X conftest.file $srcdir/configure"; then
2573
2574 # If neither matched, then we have a broken ls. This can happen
2575 # if, for instance, CONFIG_SHELL is bash and it inherits a
2576 # broken ls alias from the environment. This has actually
2577 # happened. Such a system could not be considered "sane".
2578 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2579 alias in your environment" "$LINENO" 5
2580 fi
2581 if test "$2" = conftest.file || test $am_try -eq 2; then
2582 break
2583 fi
2584 # Just in case.
2585 sleep 1
2586 am_has_slept=yes
2587 done
2588 test "$2" = conftest.file
2589 )
2590 then
2591 # Ok.
2592 :
2593 else
2594 as_fn_error $? "newly created file is older than distributed files!
2595 Check your system clock" "$LINENO" 5
2596 fi
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2598 $as_echo "yes" >&6; }
2599 # If we didn't sleep, we still need to ensure time stamps of config.status and
2600 # generated files are strictly newer.
2601 am_sleep_pid=
2602 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2603 ( sleep 1 ) &
2604 am_sleep_pid=$!
2605 fi
2606
2607 rm -f conftest.file
2608
2609 test "$program_prefix" != NONE &&
2610 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2611 # Use a double $ so make ignores it.
2612 test "$program_suffix" != NONE &&
2613 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2614 # Double any \ or $.
2615 # By default was `s,x,x', remove it if useless.
2616 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2617 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2618
2619 # Expand $ac_aux_dir to an absolute path.
2620 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2621
2622 if test x"${MISSING+set}" != xset; then
2623 case $am_aux_dir in
2624 *\ * | *\ *)
2625 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2626 *)
2627 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2628 esac
2629 fi
2630 # Use eval to expand $SHELL
2631 if eval "$MISSING --is-lightweight"; then
2632 am_missing_run="$MISSING "
2633 else
2634 am_missing_run=
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2636 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2637 fi
2638
2639 if test x"${install_sh+set}" != xset; then
2640 case $am_aux_dir in
2641 *\ * | *\ *)
2642 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2643 *)
2644 install_sh="\${SHELL} $am_aux_dir/install-sh"
2645 esac
2646 fi
2647
2648 # Installed binaries are usually stripped using 'strip' when the user
2649 # run "make install-strip". However 'strip' might not be the right
2650 # tool to use in cross-compilation environments, therefore Automake
2651 # will honor the 'STRIP' environment variable to overrule this program.
2652 if test "$cross_compiling" != no; then
2653 if test -n "$ac_tool_prefix"; then
2654 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2655 set dummy ${ac_tool_prefix}strip; ac_word=$2
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2657 $as_echo_n "checking for $ac_word... " >&6; }
2658 if ${ac_cv_prog_STRIP+:} false; then :
2659 $as_echo_n "(cached) " >&6
2660 else
2661 if test -n "$STRIP"; then
2662 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2663 else
2664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2665 for as_dir in $PATH
2666 do
2667 IFS=$as_save_IFS
2668 test -z "$as_dir" && as_dir=.
2669 for ac_exec_ext in '' $ac_executable_extensions; do
2670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2671 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2673 break 2
2674 fi
2675 done
2676 done
2677 IFS=$as_save_IFS
2678
2679 fi
2680 fi
2681 STRIP=$ac_cv_prog_STRIP
2682 if test -n "$STRIP"; then
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2684 $as_echo "$STRIP" >&6; }
2685 else
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2687 $as_echo "no" >&6; }
2688 fi
2689
2690
2691 fi
2692 if test -z "$ac_cv_prog_STRIP"; then
2693 ac_ct_STRIP=$STRIP
2694 # Extract the first word of "strip", so it can be a program name with args.
2695 set dummy strip; ac_word=$2
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2697 $as_echo_n "checking for $ac_word... " >&6; }
2698 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2699 $as_echo_n "(cached) " >&6
2700 else
2701 if test -n "$ac_ct_STRIP"; then
2702 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2703 else
2704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2705 for as_dir in $PATH
2706 do
2707 IFS=$as_save_IFS
2708 test -z "$as_dir" && as_dir=.
2709 for ac_exec_ext in '' $ac_executable_extensions; do
2710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2711 ac_cv_prog_ac_ct_STRIP="strip"
2712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2713 break 2
2714 fi
2715 done
2716 done
2717 IFS=$as_save_IFS
2718
2719 fi
2720 fi
2721 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2722 if test -n "$ac_ct_STRIP"; then
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2724 $as_echo "$ac_ct_STRIP" >&6; }
2725 else
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2727 $as_echo "no" >&6; }
2728 fi
2729
2730 if test "x$ac_ct_STRIP" = x; then
2731 STRIP=":"
2732 else
2733 case $cross_compiling:$ac_tool_warned in
2734 yes:)
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2736 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2737 ac_tool_warned=yes ;;
2738 esac
2739 STRIP=$ac_ct_STRIP
2740 fi
2741 else
2742 STRIP="$ac_cv_prog_STRIP"
2743 fi
2744
2745 fi
2746 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2747
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2749 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2750 if test -z "$MKDIR_P"; then
2751 if ${ac_cv_path_mkdir+:} false; then :
2752 $as_echo_n "(cached) " >&6
2753 else
2754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2755 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2756 do
2757 IFS=$as_save_IFS
2758 test -z "$as_dir" && as_dir=.
2759 for ac_prog in mkdir gmkdir; do
2760 for ac_exec_ext in '' $ac_executable_extensions; do
2761 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2762 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2763 'mkdir (GNU coreutils) '* | \
2764 'mkdir (coreutils) '* | \
2765 'mkdir (fileutils) '4.1*)
2766 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2767 break 3;;
2768 esac
2769 done
2770 done
2771 done
2772 IFS=$as_save_IFS
2773
2774 fi
2775
2776 test -d ./--version && rmdir ./--version
2777 if test "${ac_cv_path_mkdir+set}" = set; then
2778 MKDIR_P="$ac_cv_path_mkdir -p"
2779 else
2780 # As a last resort, use the slow shell script. Don't cache a
2781 # value for MKDIR_P within a source directory, because that will
2782 # break other packages using the cache if that directory is
2783 # removed, or if the value is a relative name.
2784 MKDIR_P="$ac_install_sh -d"
2785 fi
2786 fi
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2788 $as_echo "$MKDIR_P" >&6; }
2789
2790 for ac_prog in gawk mawk nawk awk
2791 do
2792 # Extract the first word of "$ac_prog", so it can be a program name with args.
2793 set dummy $ac_prog; ac_word=$2
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2795 $as_echo_n "checking for $ac_word... " >&6; }
2796 if ${ac_cv_prog_AWK+:} false; then :
2797 $as_echo_n "(cached) " >&6
2798 else
2799 if test -n "$AWK"; then
2800 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2801 else
2802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2803 for as_dir in $PATH
2804 do
2805 IFS=$as_save_IFS
2806 test -z "$as_dir" && as_dir=.
2807 for ac_exec_ext in '' $ac_executable_extensions; do
2808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2809 ac_cv_prog_AWK="$ac_prog"
2810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2811 break 2
2812 fi
2813 done
2814 done
2815 IFS=$as_save_IFS
2816
2817 fi
2818 fi
2819 AWK=$ac_cv_prog_AWK
2820 if test -n "$AWK"; then
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2822 $as_echo "$AWK" >&6; }
2823 else
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2825 $as_echo "no" >&6; }
2826 fi
2827
2828
2829 test -n "$AWK" && break
2830 done
2831
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2833 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2834 set x ${MAKE-make}
2835 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2836 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2837 $as_echo_n "(cached) " >&6
2838 else
2839 cat >conftest.make <<\_ACEOF
2840 SHELL = /bin/sh
2841 all:
2842 @echo '@@@%%%=$(MAKE)=@@@%%%'
2843 _ACEOF
2844 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2845 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2846 *@@@%%%=?*=@@@%%%*)
2847 eval ac_cv_prog_make_${ac_make}_set=yes;;
2848 *)
2849 eval ac_cv_prog_make_${ac_make}_set=no;;
2850 esac
2851 rm -f conftest.make
2852 fi
2853 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2855 $as_echo "yes" >&6; }
2856 SET_MAKE=
2857 else
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2859 $as_echo "no" >&6; }
2860 SET_MAKE="MAKE=${MAKE-make}"
2861 fi
2862
2863 rm -rf .tst 2>/dev/null
2864 mkdir .tst 2>/dev/null
2865 if test -d .tst; then
2866 am__leading_dot=.
2867 else
2868 am__leading_dot=_
2869 fi
2870 rmdir .tst 2>/dev/null
2871
2872 # Check whether --enable-silent-rules was given.
2873 if test "${enable_silent_rules+set}" = set; then :
2874 enableval=$enable_silent_rules;
2875 fi
2876
2877 case $enable_silent_rules in # (((
2878 yes) AM_DEFAULT_VERBOSITY=0;;
2879 no) AM_DEFAULT_VERBOSITY=1;;
2880 *) AM_DEFAULT_VERBOSITY=1;;
2881 esac
2882 am_make=${MAKE-make}
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2884 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2885 if ${am_cv_make_support_nested_variables+:} false; then :
2886 $as_echo_n "(cached) " >&6
2887 else
2888 if $as_echo 'TRUE=$(BAR$(V))
2889 BAR0=false
2890 BAR1=true
2891 V=1
2892 am__doit:
2893 @$(TRUE)
2894 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2895 am_cv_make_support_nested_variables=yes
2896 else
2897 am_cv_make_support_nested_variables=no
2898 fi
2899 fi
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2901 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2902 if test $am_cv_make_support_nested_variables = yes; then
2903 AM_V='$(V)'
2904 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2905 else
2906 AM_V=$AM_DEFAULT_VERBOSITY
2907 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2908 fi
2909 AM_BACKSLASH='\'
2910
2911 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2912 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2913 # is not polluted with repeated "-I."
2914 am__isrc=' -I$(srcdir)'
2915 # test to see if srcdir already configured
2916 if test -f $srcdir/config.status; then
2917 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2918 fi
2919 fi
2920
2921 # test whether we have cygpath
2922 if test -z "$CYGPATH_W"; then
2923 if (cygpath --version) >/dev/null 2>/dev/null; then
2924 CYGPATH_W='cygpath -w'
2925 else
2926 CYGPATH_W=echo
2927 fi
2928 fi
2929
2930
2931 # Define the identity of the package.
2932 PACKAGE='libcompizconfig'
2933 VERSION='0.8.18'
2934
2935
2936 cat >>confdefs.h <<_ACEOF
2937 #define PACKAGE "$PACKAGE"
2938 _ACEOF
2939
2940
2941 cat >>confdefs.h <<_ACEOF
2942 #define VERSION "$VERSION"
2943 _ACEOF
2944
2945 # Some tools Automake needs.
2946
2947 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2948
2949
2950 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2951
2952
2953 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2954
2955
2956 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2957
2958
2959 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2960
2961 # For better backward compatibility. To be removed once Automake 1.9.x
2962 # dies out for good. For more background, see:
2963 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2964 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2965 mkdir_p='$(MKDIR_P)'
2966
2967 # We need awk for the "check" target (and possibly the TAP driver). The
2968 # system "awk" is bad on some platforms.
2969 # Always define AMTAR for backward compatibility. Yes, it's still used
2970 # in the wild :-( We should find a proper way to deprecate it ...
2971 AMTAR='$${TAR-tar}'
2972
2973
2974 # We'll loop over all known methods to create a tar archive until one works.
2975 _am_tools='gnutar plaintar pax cpio none'
2976
2977 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
2978 # There is notably a 21 bits limit for the UID and the GID. In fact,
2979 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
2980 # and bug#13588).
2981 am_max_uid=2097151 # 2^21 - 1
2982 am_max_gid=$am_max_uid
2983 # The $UID and $GID variables are not portable, so we need to resort
2984 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
2985 # below are definitely unexpected, so allow the users to see them
2986 # (that is, avoid stderr redirection).
2987 am_uid=`id -u || echo unknown`
2988 am_gid=`id -g || echo unknown`
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
2990 $as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
2991 if test $am_uid -le $am_max_uid; then
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2993 $as_echo "yes" >&6; }
2994 else
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2996 $as_echo "no" >&6; }
2997 _am_tools=none
2998 fi
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3000 $as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3001 if test $am_gid -le $am_max_gid; then
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3003 $as_echo "yes" >&6; }
3004 else
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3006 $as_echo "no" >&6; }
3007 _am_tools=none
3008 fi
3009
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3011 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
3012
3013 # Go ahead even if we have the value already cached. We do so because we
3014 # need to set the values for the 'am__tar' and 'am__untar' variables.
3015 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3016
3017 for _am_tool in $_am_tools; do
3018 case $_am_tool in
3019 gnutar)
3020 for _am_tar in tar gnutar gtar; do
3021 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3022 ($_am_tar --version) >&5 2>&5
3023 ac_status=$?
3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025 (exit $ac_status); } && break
3026 done
3027 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3028 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3029 am__untar="$_am_tar -xf -"
3030 ;;
3031 plaintar)
3032 # Must skip GNU tar: if it does not support --format= it doesn't create
3033 # ustar tarball either.
3034 (tar --version) >/dev/null 2>&1 && continue
3035 am__tar='tar chf - "$$tardir"'
3036 am__tar_='tar chf - "$tardir"'
3037 am__untar='tar xf -'
3038 ;;
3039 pax)
3040 am__tar='pax -L -x ustar -w "$$tardir"'
3041 am__tar_='pax -L -x ustar -w "$tardir"'
3042 am__untar='pax -r'
3043 ;;
3044 cpio)
3045 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3046 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3047 am__untar='cpio -i -H ustar -d'
3048 ;;
3049 none)
3050 am__tar=false
3051 am__tar_=false
3052 am__untar=false
3053 ;;
3054 esac
3055
3056 # If the value was cached, stop now. We just wanted to have am__tar
3057 # and am__untar set.
3058 test -n "${am_cv_prog_tar_ustar}" && break
3059
3060 # tar/untar a dummy directory, and stop if the command works.
3061 rm -rf conftest.dir
3062 mkdir conftest.dir
3063 echo GrepMe > conftest.dir/file
3064 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3065 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3066 ac_status=$?
3067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068 (exit $ac_status); }
3069 rm -rf conftest.dir
3070 if test -s conftest.tar; then
3071 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3072 ($am__untar <conftest.tar) >&5 2>&5
3073 ac_status=$?
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); }
3076 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3077 (cat conftest.dir/file) >&5 2>&5
3078 ac_status=$?
3079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 (exit $ac_status); }
3081 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3082 fi
3083 done
3084 rm -rf conftest.dir
3085
3086 if ${am_cv_prog_tar_ustar+:} false; then :
3087 $as_echo_n "(cached) " >&6
3088 else
3089 am_cv_prog_tar_ustar=$_am_tool
3090 fi
3091
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3093 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3094
3095
3096
3097
3098
3099
3100 # POSIX will say in a future version that running "rm -f" with no argument
3101 # is OK; and we want to be able to make that assumption in our Makefile
3102 # recipes. So use an aggressive probe to check that the usage we want is
3103 # actually supported "in the wild" to an acceptable degree.
3104 # See automake bug#10828.
3105 # To make any issue more visible, cause the running configure to be aborted
3106 # by default if the 'rm' program in use doesn't match our expectations; the
3107 # user can still override this though.
3108 if rm -f && rm -fr && rm -rf; then : OK; else
3109 cat >&2 <<'END'
3110 Oops!
3111
3112 Your 'rm' program seems unable to run without file operands specified
3113 on the command line, even when the '-f' option is present. This is contrary
3114 to the behaviour of most rm programs out there, and not conforming with
3115 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3116
3117 Please tell [email protected] about your system, including the value
3118 of your $PATH and any error possibly output before this message. This
3119 can help us improve future automake versions.
3120
3121 END
3122 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3123 echo 'Configuration will proceed anyway, since you have set the' >&2
3124 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3125 echo >&2
3126 else
3127 cat >&2 <<'END'
3128 Aborting the configuration process, to ensure you take notice of the issue.
3129
3130 You can download and install GNU coreutils to get an 'rm' implementation
3131 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3132
3133 If you want to complete the configuration process using your problematic
3134 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3135 to "yes", and re-run configure.
3136
3137 END
3138 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3139 fi
3140 fi
3141
3142
3143 ac_ext=cpp
3144 ac_cpp='$CXXCPP $CPPFLAGS'
3145 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3146 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3147 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3148 if test -z "$CXX"; then
3149 if test -n "$CCC"; then
3150 CXX=$CCC
3151 else
3152 if test -n "$ac_tool_prefix"; then
3153 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3154 do
3155 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3156 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3158 $as_echo_n "checking for $ac_word... " >&6; }
3159 if ${ac_cv_prog_CXX+:} false; then :
3160 $as_echo_n "(cached) " >&6
3161 else
3162 if test -n "$CXX"; then
3163 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3164 else
3165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3166 for as_dir in $PATH
3167 do
3168 IFS=$as_save_IFS
3169 test -z "$as_dir" && as_dir=.
3170 for ac_exec_ext in '' $ac_executable_extensions; do
3171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3172 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3174 break 2
3175 fi
3176 done
3177 done
3178 IFS=$as_save_IFS
3179
3180 fi
3181 fi
3182 CXX=$ac_cv_prog_CXX
3183 if test -n "$CXX"; then
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3185 $as_echo "$CXX" >&6; }
3186 else
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3188 $as_echo "no" >&6; }
3189 fi
3190
3191
3192 test -n "$CXX" && break
3193 done
3194 fi
3195 if test -z "$CXX"; then
3196 ac_ct_CXX=$CXX
3197 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3198 do
3199 # Extract the first word of "$ac_prog", so it can be a program name with args.
3200 set dummy $ac_prog; ac_word=$2
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3202 $as_echo_n "checking for $ac_word... " >&6; }
3203 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3204 $as_echo_n "(cached) " >&6
3205 else
3206 if test -n "$ac_ct_CXX"; then
3207 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3208 else
3209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3210 for as_dir in $PATH
3211 do
3212 IFS=$as_save_IFS
3213 test -z "$as_dir" && as_dir=.
3214 for ac_exec_ext in '' $ac_executable_extensions; do
3215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3216 ac_cv_prog_ac_ct_CXX="$ac_prog"
3217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3218 break 2
3219 fi
3220 done
3221 done
3222 IFS=$as_save_IFS
3223
3224 fi
3225 fi
3226 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3227 if test -n "$ac_ct_CXX"; then
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3229 $as_echo "$ac_ct_CXX" >&6; }
3230 else
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3232 $as_echo "no" >&6; }
3233 fi
3234
3235
3236 test -n "$ac_ct_CXX" && break
3237 done
3238
3239 if test "x$ac_ct_CXX" = x; then
3240 CXX="g++"
3241 else
3242 case $cross_compiling:$ac_tool_warned in
3243 yes:)
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3245 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3246 ac_tool_warned=yes ;;
3247 esac
3248 CXX=$ac_ct_CXX
3249 fi
3250 fi
3251
3252 fi
3253 fi
3254 # Provide some information about the compiler.
3255 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3256 set X $ac_compile
3257 ac_compiler=$2
3258 for ac_option in --version -v -V -qversion; do
3259 { { ac_try="$ac_compiler $ac_option >&5"
3260 case "(($ac_try" in
3261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3262 *) ac_try_echo=$ac_try;;
3263 esac
3264 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3265 $as_echo "$ac_try_echo"; } >&5
3266 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3267 ac_status=$?
3268 if test -s conftest.err; then
3269 sed '10a\
3270 ... rest of stderr output deleted ...
3271 10q' conftest.err >conftest.er1
3272 cat conftest.er1 >&5
3273 fi
3274 rm -f conftest.er1 conftest.err
3275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3276 test $ac_status = 0; }
3277 done
3278
3279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3280 /* end confdefs.h. */
3281
3282 int
3283 main ()
3284 {
3285
3286 ;
3287 return 0;
3288 }
3289 _ACEOF
3290 ac_clean_files_save=$ac_clean_files
3291 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3292 # Try to create an executable without -o first, disregard a.out.
3293 # It will help us diagnose broken compilers, and finding out an intuition
3294 # of exeext.
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3296 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3297 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3298
3299 # The possible output files:
3300 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3301
3302 ac_rmfiles=
3303 for ac_file in $ac_files
3304 do
3305 case $ac_file in
3306 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3307 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3308 esac
3309 done
3310 rm -f $ac_rmfiles
3311
3312 if { { ac_try="$ac_link_default"
3313 case "(($ac_try" in
3314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3315 *) ac_try_echo=$ac_try;;
3316 esac
3317 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3318 $as_echo "$ac_try_echo"; } >&5
3319 (eval "$ac_link_default") 2>&5
3320 ac_status=$?
3321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3322 test $ac_status = 0; }; then :
3323 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3324 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3325 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3326 # so that the user can short-circuit this test for compilers unknown to
3327 # Autoconf.
3328 for ac_file in $ac_files ''
3329 do
3330 test -f "$ac_file" || continue
3331 case $ac_file in
3332 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3333 ;;
3334 [ab].out )
3335 # We found the default executable, but exeext='' is most
3336 # certainly right.
3337 break;;
3338 *.* )
3339 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3340 then :; else
3341 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3342 fi
3343 # We set ac_cv_exeext here because the later test for it is not
3344 # safe: cross compilers may not add the suffix if given an `-o'
3345 # argument, so we may need to know it at that point already.
3346 # Even if this section looks crufty: it has the advantage of
3347 # actually working.
3348 break;;
3349 * )
3350 break;;
3351 esac
3352 done
3353 test "$ac_cv_exeext" = no && ac_cv_exeext=
3354
3355 else
3356 ac_file=''
3357 fi
3358 if test -z "$ac_file"; then :
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3360 $as_echo "no" >&6; }
3361 $as_echo "$as_me: failed program was:" >&5
3362 sed 's/^/| /' conftest.$ac_ext >&5
3363
3364 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3365 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3366 as_fn_error 77 "C++ compiler cannot create executables
3367 See \`config.log' for more details" "$LINENO" 5; }
3368 else
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3370 $as_echo "yes" >&6; }
3371 fi
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3373 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3375 $as_echo "$ac_file" >&6; }
3376 ac_exeext=$ac_cv_exeext
3377
3378 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3379 ac_clean_files=$ac_clean_files_save
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3381 $as_echo_n "checking for suffix of executables... " >&6; }
3382 if { { ac_try="$ac_link"
3383 case "(($ac_try" in
3384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385 *) ac_try_echo=$ac_try;;
3386 esac
3387 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3388 $as_echo "$ac_try_echo"; } >&5
3389 (eval "$ac_link") 2>&5
3390 ac_status=$?
3391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3392 test $ac_status = 0; }; then :
3393 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3394 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3395 # work properly (i.e., refer to `conftest.exe'), while it won't with
3396 # `rm'.
3397 for ac_file in conftest.exe conftest conftest.*; do
3398 test -f "$ac_file" || continue
3399 case $ac_file in
3400 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3401 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3402 break;;
3403 * ) break;;
3404 esac
3405 done
3406 else
3407 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3408 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3409 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3410 See \`config.log' for more details" "$LINENO" 5; }
3411 fi
3412 rm -f conftest conftest$ac_cv_exeext
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3414 $as_echo "$ac_cv_exeext" >&6; }
3415
3416 rm -f conftest.$ac_ext
3417 EXEEXT=$ac_cv_exeext
3418 ac_exeext=$EXEEXT
3419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3420 /* end confdefs.h. */
3421 #include <stdio.h>
3422 int
3423 main ()
3424 {
3425 FILE *f = fopen ("conftest.out", "w");
3426 return ferror (f) || fclose (f) != 0;
3427
3428 ;
3429 return 0;
3430 }
3431 _ACEOF
3432 ac_clean_files="$ac_clean_files conftest.out"
3433 # Check that the compiler produces executables we can run. If not, either
3434 # the compiler is broken, or we cross compile.
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3436 $as_echo_n "checking whether we are cross compiling... " >&6; }
3437 if test "$cross_compiling" != yes; then
3438 { { ac_try="$ac_link"
3439 case "(($ac_try" in
3440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3441 *) ac_try_echo=$ac_try;;
3442 esac
3443 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3444 $as_echo "$ac_try_echo"; } >&5
3445 (eval "$ac_link") 2>&5
3446 ac_status=$?
3447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3448 test $ac_status = 0; }
3449 if { ac_try='./conftest$ac_cv_exeext'
3450 { { case "(($ac_try" in
3451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3452 *) ac_try_echo=$ac_try;;
3453 esac
3454 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3455 $as_echo "$ac_try_echo"; } >&5
3456 (eval "$ac_try") 2>&5
3457 ac_status=$?
3458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3459 test $ac_status = 0; }; }; then
3460 cross_compiling=no
3461 else
3462 if test "$cross_compiling" = maybe; then
3463 cross_compiling=yes
3464 else
3465 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3466 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3467 as_fn_error $? "cannot run C++ compiled programs.
3468 If you meant to cross compile, use \`--host'.
3469 See \`config.log' for more details" "$LINENO" 5; }
3470 fi
3471 fi
3472 fi
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3474 $as_echo "$cross_compiling" >&6; }
3475
3476 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3477 ac_clean_files=$ac_clean_files_save
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3479 $as_echo_n "checking for suffix of object files... " >&6; }
3480 if ${ac_cv_objext+:} false; then :
3481 $as_echo_n "(cached) " >&6
3482 else
3483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3484 /* end confdefs.h. */
3485
3486 int
3487 main ()
3488 {
3489
3490 ;
3491 return 0;
3492 }
3493 _ACEOF
3494 rm -f conftest.o conftest.obj
3495 if { { ac_try="$ac_compile"
3496 case "(($ac_try" in
3497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3498 *) ac_try_echo=$ac_try;;
3499 esac
3500 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3501 $as_echo "$ac_try_echo"; } >&5
3502 (eval "$ac_compile") 2>&5
3503 ac_status=$?
3504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3505 test $ac_status = 0; }; then :
3506 for ac_file in conftest.o conftest.obj conftest.*; do
3507 test -f "$ac_file" || continue;
3508 case $ac_file in
3509 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3510 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3511 break;;
3512 esac
3513 done
3514 else
3515 $as_echo "$as_me: failed program was:" >&5
3516 sed 's/^/| /' conftest.$ac_ext >&5
3517
3518 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3519 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3520 as_fn_error $? "cannot compute suffix of object files: cannot compile
3521 See \`config.log' for more details" "$LINENO" 5; }
3522 fi
3523 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3524 fi
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3526 $as_echo "$ac_cv_objext" >&6; }
3527 OBJEXT=$ac_cv_objext
3528 ac_objext=$OBJEXT
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3530 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3531 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3532 $as_echo_n "(cached) " >&6
3533 else
3534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3535 /* end confdefs.h. */
3536
3537 int
3538 main ()
3539 {
3540 #ifndef __GNUC__
3541 choke me
3542 #endif
3543
3544 ;
3545 return 0;
3546 }
3547 _ACEOF
3548 if ac_fn_cxx_try_compile "$LINENO"; then :
3549 ac_compiler_gnu=yes
3550 else
3551 ac_compiler_gnu=no
3552 fi
3553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3554 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3555
3556 fi
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3558 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3559 if test $ac_compiler_gnu = yes; then
3560 GXX=yes
3561 else
3562 GXX=
3563 fi
3564 ac_test_CXXFLAGS=${CXXFLAGS+set}
3565 ac_save_CXXFLAGS=$CXXFLAGS
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3567 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3568 if ${ac_cv_prog_cxx_g+:} false; then :
3569 $as_echo_n "(cached) " >&6
3570 else
3571 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3572 ac_cxx_werror_flag=yes
3573 ac_cv_prog_cxx_g=no
3574 CXXFLAGS="-g"
3575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3576 /* end confdefs.h. */
3577
3578 int
3579 main ()
3580 {
3581
3582 ;
3583 return 0;
3584 }
3585 _ACEOF
3586 if ac_fn_cxx_try_compile "$LINENO"; then :
3587 ac_cv_prog_cxx_g=yes
3588 else
3589 CXXFLAGS=""
3590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3591 /* end confdefs.h. */
3592
3593 int
3594 main ()
3595 {
3596
3597 ;
3598 return 0;
3599 }
3600 _ACEOF
3601 if ac_fn_cxx_try_compile "$LINENO"; then :
3602
3603 else
3604 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3605 CXXFLAGS="-g"
3606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3607 /* end confdefs.h. */
3608
3609 int
3610 main ()
3611 {
3612
3613 ;
3614 return 0;
3615 }
3616 _ACEOF
3617 if ac_fn_cxx_try_compile "$LINENO"; then :
3618 ac_cv_prog_cxx_g=yes
3619 fi
3620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3621 fi
3622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3623 fi
3624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3625 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3626 fi
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3628 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3629 if test "$ac_test_CXXFLAGS" = set; then
3630 CXXFLAGS=$ac_save_CXXFLAGS
3631 elif test $ac_cv_prog_cxx_g = yes; then
3632 if test "$GXX" = yes; then
3633 CXXFLAGS="-g -O2"
3634 else
3635 CXXFLAGS="-g"
3636 fi
3637 else
3638 if test "$GXX" = yes; then
3639 CXXFLAGS="-O2"
3640 else
3641 CXXFLAGS=
3642 fi
3643 fi
3644 ac_ext=c
3645 ac_cpp='$CPP $CPPFLAGS'
3646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3649 DEPDIR="${am__leading_dot}deps"
3650
3651 ac_config_commands="$ac_config_commands depfiles"
3652
3653
3654 am_make=${MAKE-make}
3655 cat > confinc << 'END'
3656 am__doit:
3657 @echo this is the am__doit target
3658 .PHONY: am__doit
3659 END
3660 # If we don't find an include directive, just comment out the code.
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3662 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3663 am__include="#"
3664 am__quote=
3665 _am_result=none
3666 # First try GNU make style include.
3667 echo "include confinc" > confmf
3668 # Ignore all kinds of additional output from 'make'.
3669 case `$am_make -s -f confmf 2> /dev/null` in #(
3670 *the\ am__doit\ target*)
3671 am__include=include
3672 am__quote=
3673 _am_result=GNU
3674 ;;
3675 esac
3676 # Now try BSD make style include.
3677 if test "$am__include" = "#"; then
3678 echo '.include "confinc"' > confmf
3679 case `$am_make -s -f confmf 2> /dev/null` in #(
3680 *the\ am__doit\ target*)
3681 am__include=.include
3682 am__quote="\""
3683 _am_result=BSD
3684 ;;
3685 esac
3686 fi
3687
3688
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3690 $as_echo "$_am_result" >&6; }
3691 rm -f confinc confmf
3692
3693 # Check whether --enable-dependency-tracking was given.
3694 if test "${enable_dependency_tracking+set}" = set; then :
3695 enableval=$enable_dependency_tracking;
3696 fi
3697
3698 if test "x$enable_dependency_tracking" != xno; then
3699 am_depcomp="$ac_aux_dir/depcomp"
3700 AMDEPBACKSLASH='\'
3701 am__nodep='_no'
3702 fi
3703 if test "x$enable_dependency_tracking" != xno; then
3704 AMDEP_TRUE=
3705 AMDEP_FALSE='#'
3706 else
3707 AMDEP_TRUE='#'
3708 AMDEP_FALSE=
3709 fi
3710
3711
3712
3713 depcc="$CXX" am_compiler_list=
3714
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3716 $as_echo_n "checking dependency style of $depcc... " >&6; }
3717 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
3718 $as_echo_n "(cached) " >&6
3719 else
3720 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3721 # We make a subdir and do the tests there. Otherwise we can end up
3722 # making bogus files that we don't know about and never remove. For
3723 # instance it was reported that on HP-UX the gcc test will end up
3724 # making a dummy file named 'D' -- because '-MD' means "put the output
3725 # in D".
3726 rm -rf conftest.dir
3727 mkdir conftest.dir
3728 # Copy depcomp to subdir because otherwise we won't find it if we're
3729 # using a relative directory.
3730 cp "$am_depcomp" conftest.dir
3731 cd conftest.dir
3732 # We will build objects and dependencies in a subdirectory because
3733 # it helps to detect inapplicable dependency modes. For instance
3734 # both Tru64's cc and ICC support -MD to output dependencies as a
3735 # side effect of compilation, but ICC will put the dependencies in
3736 # the current directory while Tru64 will put them in the object
3737 # directory.
3738 mkdir sub
3739
3740 am_cv_CXX_dependencies_compiler_type=none
3741 if test "$am_compiler_list" = ""; then
3742 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3743 fi
3744 am__universal=false
3745 case " $depcc " in #(
3746 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3747 esac
3748
3749 for depmode in $am_compiler_list; do
3750 # Setup a source with many dependencies, because some compilers
3751 # like to wrap large dependency lists on column 80 (with \), and
3752 # we should not choose a depcomp mode which is confused by this.
3753 #
3754 # We need to recreate these files for each test, as the compiler may
3755 # overwrite some of them when testing with obscure command lines.
3756 # This happens at least with the AIX C compiler.
3757 : > sub/conftest.c
3758 for i in 1 2 3 4 5 6; do
3759 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3760 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3761 # Solaris 10 /bin/sh.
3762 echo '/* dummy */' > sub/conftst$i.h
3763 done
3764 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3765
3766 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3767 # mode. It turns out that the SunPro C++ compiler does not properly
3768 # handle '-M -o', and we need to detect this. Also, some Intel
3769 # versions had trouble with output in subdirs.
3770 am__obj=sub/conftest.${OBJEXT-o}
3771 am__minus_obj="-o $am__obj"
3772 case $depmode in
3773 gcc)
3774 # This depmode causes a compiler race in universal mode.
3775 test "$am__universal" = false || continue
3776 ;;
3777 nosideeffect)
3778 # After this tag, mechanisms are not by side-effect, so they'll
3779 # only be used when explicitly requested.
3780 if test "x$enable_dependency_tracking" = xyes; then
3781 continue
3782 else
3783 break
3784 fi
3785 ;;
3786 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3787 # This compiler won't grok '-c -o', but also, the minuso test has
3788 # not run yet. These depmodes are late enough in the game, and
3789 # so weak that their functioning should not be impacted.
3790 am__obj=conftest.${OBJEXT-o}
3791 am__minus_obj=
3792 ;;
3793 none) break ;;
3794 esac
3795 if depmode=$depmode \
3796 source=sub/conftest.c object=$am__obj \
3797 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3798 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3799 >/dev/null 2>conftest.err &&
3800 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3801 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3802 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3803 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3804 # icc doesn't choke on unknown options, it will just issue warnings
3805 # or remarks (even with -Werror). So we grep stderr for any message
3806 # that says an option was ignored or not supported.
3807 # When given -MP, icc 7.0 and 7.1 complain thusly:
3808 # icc: Command line warning: ignoring option '-M'; no argument required
3809 # The diagnosis changed in icc 8.0:
3810 # icc: Command line remark: option '-MP' not supported
3811 if (grep 'ignoring option' conftest.err ||
3812 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3813 am_cv_CXX_dependencies_compiler_type=$depmode
3814 break
3815 fi
3816 fi
3817 done
3818
3819 cd ..
3820 rm -rf conftest.dir
3821 else
3822 am_cv_CXX_dependencies_compiler_type=none
3823 fi
3824
3825 fi
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3827 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3828 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3829
3830 if
3831 test "x$enable_dependency_tracking" != xno \
3832 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3833 am__fastdepCXX_TRUE=
3834 am__fastdepCXX_FALSE='#'
3835 else
3836 am__fastdepCXX_TRUE='#'
3837 am__fastdepCXX_FALSE=
3838 fi
3839
3840
3841
3842 ac_config_headers="$ac_config_headers config.h"
3843
3844
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3846 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3847 # Check whether --enable-maintainer-mode was given.
3848 if test "${enable_maintainer_mode+set}" = set; then :
3849 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3850 else
3851 USE_MAINTAINER_MODE=no
3852 fi
3853
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3855 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3856 if test $USE_MAINTAINER_MODE = yes; then
3857 MAINTAINER_MODE_TRUE=
3858 MAINTAINER_MODE_FALSE='#'
3859 else
3860 MAINTAINER_MODE_TRUE='#'
3861 MAINTAINER_MODE_FALSE=
3862 fi
3863
3864 MAINT=$MAINTAINER_MODE_TRUE
3865
3866
3867
3868 ac_ext=c
3869 ac_cpp='$CPP $CPPFLAGS'
3870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3873 if test -n "$ac_tool_prefix"; then
3874 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3875 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3877 $as_echo_n "checking for $ac_word... " >&6; }
3878 if ${ac_cv_prog_CC+:} false; then :
3879 $as_echo_n "(cached) " >&6
3880 else
3881 if test -n "$CC"; then
3882 ac_cv_prog_CC="$CC" # Let the user override the test.
3883 else
3884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3885 for as_dir in $PATH
3886 do
3887 IFS=$as_save_IFS
3888 test -z "$as_dir" && as_dir=.
3889 for ac_exec_ext in '' $ac_executable_extensions; do
3890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3891 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3893 break 2
3894 fi
3895 done
3896 done
3897 IFS=$as_save_IFS
3898
3899 fi
3900 fi
3901 CC=$ac_cv_prog_CC
3902 if test -n "$CC"; then
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3904 $as_echo "$CC" >&6; }
3905 else
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3907 $as_echo "no" >&6; }
3908 fi
3909
3910
3911 fi
3912 if test -z "$ac_cv_prog_CC"; then
3913 ac_ct_CC=$CC
3914 # Extract the first word of "gcc", so it can be a program name with args.
3915 set dummy gcc; ac_word=$2
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3917 $as_echo_n "checking for $ac_word... " >&6; }
3918 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3919 $as_echo_n "(cached) " >&6
3920 else
3921 if test -n "$ac_ct_CC"; then
3922 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3923 else
3924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3925 for as_dir in $PATH
3926 do
3927 IFS=$as_save_IFS
3928 test -z "$as_dir" && as_dir=.
3929 for ac_exec_ext in '' $ac_executable_extensions; do
3930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3931 ac_cv_prog_ac_ct_CC="gcc"
3932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3933 break 2
3934 fi
3935 done
3936 done
3937 IFS=$as_save_IFS
3938
3939 fi
3940 fi
3941 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3942 if test -n "$ac_ct_CC"; then
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3944 $as_echo "$ac_ct_CC" >&6; }
3945 else
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3947 $as_echo "no" >&6; }
3948 fi
3949
3950 if test "x$ac_ct_CC" = x; then
3951 CC=""
3952 else
3953 case $cross_compiling:$ac_tool_warned in
3954 yes:)
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3956 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3957 ac_tool_warned=yes ;;
3958 esac
3959 CC=$ac_ct_CC
3960 fi
3961 else
3962 CC="$ac_cv_prog_CC"
3963 fi
3964
3965 if test -z "$CC"; then
3966 if test -n "$ac_tool_prefix"; then
3967 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3968 set dummy ${ac_tool_prefix}cc; ac_word=$2
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3970 $as_echo_n "checking for $ac_word... " >&6; }
3971 if ${ac_cv_prog_CC+:} false; then :
3972 $as_echo_n "(cached) " >&6
3973 else
3974 if test -n "$CC"; then
3975 ac_cv_prog_CC="$CC" # Let the user override the test.
3976 else
3977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3978 for as_dir in $PATH
3979 do
3980 IFS=$as_save_IFS
3981 test -z "$as_dir" && as_dir=.
3982 for ac_exec_ext in '' $ac_executable_extensions; do
3983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3984 ac_cv_prog_CC="${ac_tool_prefix}cc"
3985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3986 break 2
3987 fi
3988 done
3989 done
3990 IFS=$as_save_IFS
3991
3992 fi
3993 fi
3994 CC=$ac_cv_prog_CC
3995 if test -n "$CC"; then
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3997 $as_echo "$CC" >&6; }
3998 else
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4000 $as_echo "no" >&6; }
4001 fi
4002
4003
4004 fi
4005 fi
4006 if test -z "$CC"; then
4007 # Extract the first word of "cc", so it can be a program name with args.
4008 set dummy cc; ac_word=$2
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4010 $as_echo_n "checking for $ac_word... " >&6; }
4011 if ${ac_cv_prog_CC+:} false; then :
4012 $as_echo_n "(cached) " >&6
4013 else
4014 if test -n "$CC"; then
4015 ac_cv_prog_CC="$CC" # Let the user override the test.
4016 else
4017 ac_prog_rejected=no
4018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4019 for as_dir in $PATH
4020 do
4021 IFS=$as_save_IFS
4022 test -z "$as_dir" && as_dir=.
4023 for ac_exec_ext in '' $ac_executable_extensions; do
4024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4025 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4026 ac_prog_rejected=yes
4027 continue
4028 fi
4029 ac_cv_prog_CC="cc"
4030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4031 break 2
4032 fi
4033 done
4034 done
4035 IFS=$as_save_IFS
4036
4037 if test $ac_prog_rejected = yes; then
4038 # We found a bogon in the path, so make sure we never use it.
4039 set dummy $ac_cv_prog_CC
4040 shift
4041 if test $# != 0; then
4042 # We chose a different compiler from the bogus one.
4043 # However, it has the same basename, so the bogon will be chosen
4044 # first if we set CC to just the basename; use the full file name.
4045 shift
4046 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4047 fi
4048 fi
4049 fi
4050 fi
4051 CC=$ac_cv_prog_CC
4052 if test -n "$CC"; then
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4054 $as_echo "$CC" >&6; }
4055 else
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4057 $as_echo "no" >&6; }
4058 fi
4059
4060
4061 fi
4062 if test -z "$CC"; then
4063 if test -n "$ac_tool_prefix"; then
4064 for ac_prog in cl.exe
4065 do
4066 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4067 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4069 $as_echo_n "checking for $ac_word... " >&6; }
4070 if ${ac_cv_prog_CC+:} false; then :
4071 $as_echo_n "(cached) " >&6
4072 else
4073 if test -n "$CC"; then
4074 ac_cv_prog_CC="$CC" # Let the user override the test.
4075 else
4076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4077 for as_dir in $PATH
4078 do
4079 IFS=$as_save_IFS
4080 test -z "$as_dir" && as_dir=.
4081 for ac_exec_ext in '' $ac_executable_extensions; do
4082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4083 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4085 break 2
4086 fi
4087 done
4088 done
4089 IFS=$as_save_IFS
4090
4091 fi
4092 fi
4093 CC=$ac_cv_prog_CC
4094 if test -n "$CC"; then
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4096 $as_echo "$CC" >&6; }
4097 else
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4099 $as_echo "no" >&6; }
4100 fi
4101
4102
4103 test -n "$CC" && break
4104 done
4105 fi
4106 if test -z "$CC"; then
4107 ac_ct_CC=$CC
4108 for ac_prog in cl.exe
4109 do
4110 # Extract the first word of "$ac_prog", so it can be a program name with args.
4111 set dummy $ac_prog; ac_word=$2
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4113 $as_echo_n "checking for $ac_word... " >&6; }
4114 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4115 $as_echo_n "(cached) " >&6
4116 else
4117 if test -n "$ac_ct_CC"; then
4118 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4119 else
4120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4121 for as_dir in $PATH
4122 do
4123 IFS=$as_save_IFS
4124 test -z "$as_dir" && as_dir=.
4125 for ac_exec_ext in '' $ac_executable_extensions; do
4126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4127 ac_cv_prog_ac_ct_CC="$ac_prog"
4128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4129 break 2
4130 fi
4131 done
4132 done
4133 IFS=$as_save_IFS
4134
4135 fi
4136 fi
4137 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4138 if test -n "$ac_ct_CC"; then
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4140 $as_echo "$ac_ct_CC" >&6; }
4141 else
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4143 $as_echo "no" >&6; }
4144 fi
4145
4146
4147 test -n "$ac_ct_CC" && break
4148 done
4149
4150 if test "x$ac_ct_CC" = x; then
4151 CC=""
4152 else
4153 case $cross_compiling:$ac_tool_warned in
4154 yes:)
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4156 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4157 ac_tool_warned=yes ;;
4158 esac
4159 CC=$ac_ct_CC
4160 fi
4161 fi
4162
4163 fi
4164
4165
4166 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4167 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4168 as_fn_error $? "no acceptable C compiler found in \$PATH
4169 See \`config.log' for more details" "$LINENO" 5; }
4170
4171 # Provide some information about the compiler.
4172 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4173 set X $ac_compile
4174 ac_compiler=$2
4175 for ac_option in --version -v -V -qversion; do
4176 { { ac_try="$ac_compiler $ac_option >&5"
4177 case "(($ac_try" in
4178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4179 *) ac_try_echo=$ac_try;;
4180 esac
4181 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4182 $as_echo "$ac_try_echo"; } >&5
4183 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4184 ac_status=$?
4185 if test -s conftest.err; then
4186 sed '10a\
4187 ... rest of stderr output deleted ...
4188 10q' conftest.err >conftest.er1
4189 cat conftest.er1 >&5
4190 fi
4191 rm -f conftest.er1 conftest.err
4192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4193 test $ac_status = 0; }
4194 done
4195
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4197 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4198 if ${ac_cv_c_compiler_gnu+:} false; then :
4199 $as_echo_n "(cached) " >&6
4200 else
4201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4202 /* end confdefs.h. */
4203
4204 int
4205 main ()
4206 {
4207 #ifndef __GNUC__
4208 choke me
4209 #endif
4210
4211 ;
4212 return 0;
4213 }
4214 _ACEOF
4215 if ac_fn_c_try_compile "$LINENO"; then :
4216 ac_compiler_gnu=yes
4217 else
4218 ac_compiler_gnu=no
4219 fi
4220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4221 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4222
4223 fi
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4225 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4226 if test $ac_compiler_gnu = yes; then
4227 GCC=yes
4228 else
4229 GCC=
4230 fi
4231 ac_test_CFLAGS=${CFLAGS+set}
4232 ac_save_CFLAGS=$CFLAGS
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4234 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4235 if ${ac_cv_prog_cc_g+:} false; then :
4236 $as_echo_n "(cached) " >&6
4237 else
4238 ac_save_c_werror_flag=$ac_c_werror_flag
4239 ac_c_werror_flag=yes
4240 ac_cv_prog_cc_g=no
4241 CFLAGS="-g"
4242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4243 /* end confdefs.h. */
4244
4245 int
4246 main ()
4247 {
4248
4249 ;
4250 return 0;
4251 }
4252 _ACEOF
4253 if ac_fn_c_try_compile "$LINENO"; then :
4254 ac_cv_prog_cc_g=yes
4255 else
4256 CFLAGS=""
4257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4258 /* end confdefs.h. */
4259
4260 int
4261 main ()
4262 {
4263
4264 ;
4265 return 0;
4266 }
4267 _ACEOF
4268 if ac_fn_c_try_compile "$LINENO"; then :
4269
4270 else
4271 ac_c_werror_flag=$ac_save_c_werror_flag
4272 CFLAGS="-g"
4273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4274 /* end confdefs.h. */
4275
4276 int
4277 main ()
4278 {
4279
4280 ;
4281 return 0;
4282 }
4283 _ACEOF
4284 if ac_fn_c_try_compile "$LINENO"; then :
4285 ac_cv_prog_cc_g=yes
4286 fi
4287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4288 fi
4289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4290 fi
4291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4292 ac_c_werror_flag=$ac_save_c_werror_flag
4293 fi
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4295 $as_echo "$ac_cv_prog_cc_g" >&6; }
4296 if test "$ac_test_CFLAGS" = set; then
4297 CFLAGS=$ac_save_CFLAGS
4298 elif test $ac_cv_prog_cc_g = yes; then
4299 if test "$GCC" = yes; then
4300 CFLAGS="-g -O2"
4301 else
4302 CFLAGS="-g"
4303 fi
4304 else
4305 if test "$GCC" = yes; then
4306 CFLAGS="-O2"
4307 else
4308 CFLAGS=
4309 fi
4310 fi
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4312 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4313 if ${ac_cv_prog_cc_c89+:} false; then :
4314 $as_echo_n "(cached) " >&6
4315 else
4316 ac_cv_prog_cc_c89=no
4317 ac_save_CC=$CC
4318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4319 /* end confdefs.h. */
4320 #include <stdarg.h>
4321 #include <stdio.h>
4322 struct stat;
4323 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4324 struct buf { int x; };
4325 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4326 static char *e (p, i)
4327 char **p;
4328 int i;
4329 {
4330 return p[i];
4331 }
4332 static char *f (char * (*g) (char **, int), char **p, ...)
4333 {
4334 char *s;
4335 va_list v;
4336 va_start (v,p);
4337 s = g (p, va_arg (v,int));
4338 va_end (v);
4339 return s;
4340 }
4341
4342 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4343 function prototypes and stuff, but not '\xHH' hex character constants.
4344 These don't provoke an error unfortunately, instead are silently treated
4345 as 'x'. The following induces an error, until -std is added to get
4346 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4347 array size at least. It's necessary to write '\x00'==0 to get something
4348 that's true only with -std. */
4349 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4350
4351 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4352 inside strings and character constants. */
4353 #define FOO(x) 'x'
4354 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4355
4356 int test (int i, double x);
4357 struct s1 {int (*f) (int a);};
4358 struct s2 {int (*f) (double a);};
4359 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4360 int argc;
4361 char **argv;
4362 int
4363 main ()
4364 {
4365 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4366 ;
4367 return 0;
4368 }
4369 _ACEOF
4370 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4371 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4372 do
4373 CC="$ac_save_CC $ac_arg"
4374 if ac_fn_c_try_compile "$LINENO"; then :
4375 ac_cv_prog_cc_c89=$ac_arg
4376 fi
4377 rm -f core conftest.err conftest.$ac_objext
4378 test "x$ac_cv_prog_cc_c89" != "xno" && break
4379 done
4380 rm -f conftest.$ac_ext
4381 CC=$ac_save_CC
4382
4383 fi
4384 # AC_CACHE_VAL
4385 case "x$ac_cv_prog_cc_c89" in
4386 x)
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4388 $as_echo "none needed" >&6; } ;;
4389 xno)
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4391 $as_echo "unsupported" >&6; } ;;
4392 *)
4393 CC="$CC $ac_cv_prog_cc_c89"
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4395 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4396 esac
4397 if test "x$ac_cv_prog_cc_c89" != xno; then :
4398
4399 fi
4400
4401 ac_ext=c
4402 ac_cpp='$CPP $CPPFLAGS'
4403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4406
4407 ac_ext=c
4408 ac_cpp='$CPP $CPPFLAGS'
4409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4413 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4414 if ${am_cv_prog_cc_c_o+:} false; then :
4415 $as_echo_n "(cached) " >&6
4416 else
4417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4418 /* end confdefs.h. */
4419
4420 int
4421 main ()
4422 {
4423
4424 ;
4425 return 0;
4426 }
4427 _ACEOF
4428 # Make sure it works both with $CC and with simple cc.
4429 # Following AC_PROG_CC_C_O, we do the test twice because some
4430 # compilers refuse to overwrite an existing .o file with -o,
4431 # though they will create one.
4432 am_cv_prog_cc_c_o=yes
4433 for am_i in 1 2; do
4434 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4435 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4436 ac_status=$?
4437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4438 (exit $ac_status); } \
4439 && test -f conftest2.$ac_objext; then
4440 : OK
4441 else
4442 am_cv_prog_cc_c_o=no
4443 break
4444 fi
4445 done
4446 rm -f core conftest*
4447 unset am_i
4448 fi
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4450 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4451 if test "$am_cv_prog_cc_c_o" != yes; then
4452 # Losing compiler, so override with the script.
4453 # FIXME: It is wrong to rewrite CC.
4454 # But if we don't then we get into trouble of one sort or another.
4455 # A longer-term fix would be to have automake use am__CC in this case,
4456 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4457 CC="$am_aux_dir/compile $CC"
4458 fi
4459 ac_ext=c
4460 ac_cpp='$CPP $CPPFLAGS'
4461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4464
4465
4466 depcc="$CC" am_compiler_list=
4467
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4469 $as_echo_n "checking dependency style of $depcc... " >&6; }
4470 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4471 $as_echo_n "(cached) " >&6
4472 else
4473 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4474 # We make a subdir and do the tests there. Otherwise we can end up
4475 # making bogus files that we don't know about and never remove. For
4476 # instance it was reported that on HP-UX the gcc test will end up
4477 # making a dummy file named 'D' -- because '-MD' means "put the output
4478 # in D".
4479 rm -rf conftest.dir
4480 mkdir conftest.dir
4481 # Copy depcomp to subdir because otherwise we won't find it if we're
4482 # using a relative directory.
4483 cp "$am_depcomp" conftest.dir
4484 cd conftest.dir
4485 # We will build objects and dependencies in a subdirectory because
4486 # it helps to detect inapplicable dependency modes. For instance
4487 # both Tru64's cc and ICC support -MD to output dependencies as a
4488 # side effect of compilation, but ICC will put the dependencies in
4489 # the current directory while Tru64 will put them in the object
4490 # directory.
4491 mkdir sub
4492
4493 am_cv_CC_dependencies_compiler_type=none
4494 if test "$am_compiler_list" = ""; then
4495 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4496 fi
4497 am__universal=false
4498 case " $depcc " in #(
4499 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4500 esac
4501
4502 for depmode in $am_compiler_list; do
4503 # Setup a source with many dependencies, because some compilers
4504 # like to wrap large dependency lists on column 80 (with \), and
4505 # we should not choose a depcomp mode which is confused by this.
4506 #
4507 # We need to recreate these files for each test, as the compiler may
4508 # overwrite some of them when testing with obscure command lines.
4509 # This happens at least with the AIX C compiler.
4510 : > sub/conftest.c
4511 for i in 1 2 3 4 5 6; do
4512 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4513 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4514 # Solaris 10 /bin/sh.
4515 echo '/* dummy */' > sub/conftst$i.h
4516 done
4517 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4518
4519 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4520 # mode. It turns out that the SunPro C++ compiler does not properly
4521 # handle '-M -o', and we need to detect this. Also, some Intel
4522 # versions had trouble with output in subdirs.
4523 am__obj=sub/conftest.${OBJEXT-o}
4524 am__minus_obj="-o $am__obj"
4525 case $depmode in
4526 gcc)
4527 # This depmode causes a compiler race in universal mode.
4528 test "$am__universal" = false || continue
4529 ;;
4530 nosideeffect)
4531 # After this tag, mechanisms are not by side-effect, so they'll
4532 # only be used when explicitly requested.
4533 if test "x$enable_dependency_tracking" = xyes; then
4534 continue
4535 else
4536 break
4537 fi
4538 ;;
4539 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4540 # This compiler won't grok '-c -o', but also, the minuso test has
4541 # not run yet. These depmodes are late enough in the game, and
4542 # so weak that their functioning should not be impacted.
4543 am__obj=conftest.${OBJEXT-o}
4544 am__minus_obj=
4545 ;;
4546 none) break ;;
4547 esac
4548 if depmode=$depmode \
4549 source=sub/conftest.c object=$am__obj \
4550 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4551 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4552 >/dev/null 2>conftest.err &&
4553 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4554 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4555 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4556 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4557 # icc doesn't choke on unknown options, it will just issue warnings
4558 # or remarks (even with -Werror). So we grep stderr for any message
4559 # that says an option was ignored or not supported.
4560 # When given -MP, icc 7.0 and 7.1 complain thusly:
4561 # icc: Command line warning: ignoring option '-M'; no argument required
4562 # The diagnosis changed in icc 8.0:
4563 # icc: Command line remark: option '-MP' not supported
4564 if (grep 'ignoring option' conftest.err ||
4565 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4566 am_cv_CC_dependencies_compiler_type=$depmode
4567 break
4568 fi
4569 fi
4570 done
4571
4572 cd ..
4573 rm -rf conftest.dir
4574 else
4575 am_cv_CC_dependencies_compiler_type=none
4576 fi
4577
4578 fi
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4580 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4581 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4582
4583 if
4584 test "x$enable_dependency_tracking" != xno \
4585 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4586 am__fastdepCC_TRUE=
4587 am__fastdepCC_FALSE='#'
4588 else
4589 am__fastdepCC_TRUE='#'
4590 am__fastdepCC_FALSE=
4591 fi
4592
4593
4594
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
4596 $as_echo_n "checking for library containing strerror... " >&6; }
4597 if ${ac_cv_search_strerror+:} false; then :
4598 $as_echo_n "(cached) " >&6
4599 else
4600 ac_func_search_save_LIBS=$LIBS
4601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4602 /* end confdefs.h. */
4603
4604 /* Override any GCC internal prototype to avoid an error.
4605 Use char because int might match the return type of a GCC
4606 builtin and then its argument prototype would still apply. */
4607 #ifdef __cplusplus
4608 extern "C"
4609 #endif
4610 char strerror ();
4611 int
4612 main ()
4613 {
4614 return strerror ();
4615 ;
4616 return 0;
4617 }
4618 _ACEOF
4619 for ac_lib in '' cposix; do
4620 if test -z "$ac_lib"; then
4621 ac_res="none required"
4622 else
4623 ac_res=-l$ac_lib
4624 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4625 fi
4626 if ac_fn_c_try_link "$LINENO"; then :
4627 ac_cv_search_strerror=$ac_res
4628 fi
4629 rm -f core conftest.err conftest.$ac_objext \
4630 conftest$ac_exeext
4631 if ${ac_cv_search_strerror+:} false; then :
4632 break
4633 fi
4634 done
4635 if ${ac_cv_search_strerror+:} false; then :
4636
4637 else
4638 ac_cv_search_strerror=no
4639 fi
4640 rm conftest.$ac_ext
4641 LIBS=$ac_func_search_save_LIBS
4642 fi
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
4644 $as_echo "$ac_cv_search_strerror" >&6; }
4645 ac_res=$ac_cv_search_strerror
4646 if test "$ac_res" != no; then :
4647 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4648
4649 fi
4650
4651 ac_ext=c
4652 ac_cpp='$CPP $CPPFLAGS'
4653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4656 if test -n "$ac_tool_prefix"; then
4657 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4658 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4660 $as_echo_n "checking for $ac_word... " >&6; }
4661 if ${ac_cv_prog_CC+:} false; then :
4662 $as_echo_n "(cached) " >&6
4663 else
4664 if test -n "$CC"; then
4665 ac_cv_prog_CC="$CC" # Let the user override the test.
4666 else
4667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4668 for as_dir in $PATH
4669 do
4670 IFS=$as_save_IFS
4671 test -z "$as_dir" && as_dir=.
4672 for ac_exec_ext in '' $ac_executable_extensions; do
4673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4674 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4676 break 2
4677 fi
4678 done
4679 done
4680 IFS=$as_save_IFS
4681
4682 fi
4683 fi
4684 CC=$ac_cv_prog_CC
4685 if test -n "$CC"; then
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4687 $as_echo "$CC" >&6; }
4688 else
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4690 $as_echo "no" >&6; }
4691 fi
4692
4693
4694 fi
4695 if test -z "$ac_cv_prog_CC"; then
4696 ac_ct_CC=$CC
4697 # Extract the first word of "gcc", so it can be a program name with args.
4698 set dummy gcc; ac_word=$2
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4700 $as_echo_n "checking for $ac_word... " >&6; }
4701 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4702 $as_echo_n "(cached) " >&6
4703 else
4704 if test -n "$ac_ct_CC"; then
4705 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4706 else
4707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4708 for as_dir in $PATH
4709 do
4710 IFS=$as_save_IFS
4711 test -z "$as_dir" && as_dir=.
4712 for ac_exec_ext in '' $ac_executable_extensions; do
4713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4714 ac_cv_prog_ac_ct_CC="gcc"
4715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4716 break 2
4717 fi
4718 done
4719 done
4720 IFS=$as_save_IFS
4721
4722 fi
4723 fi
4724 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4725 if test -n "$ac_ct_CC"; then
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4727 $as_echo "$ac_ct_CC" >&6; }
4728 else
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4730 $as_echo "no" >&6; }
4731 fi
4732
4733 if test "x$ac_ct_CC" = x; then
4734 CC=""
4735 else
4736 case $cross_compiling:$ac_tool_warned in
4737 yes:)
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4739 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4740 ac_tool_warned=yes ;;
4741 esac
4742 CC=$ac_ct_CC
4743 fi
4744 else
4745 CC="$ac_cv_prog_CC"
4746 fi
4747
4748 if test -z "$CC"; then
4749 if test -n "$ac_tool_prefix"; then
4750 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4751 set dummy ${ac_tool_prefix}cc; ac_word=$2
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4753 $as_echo_n "checking for $ac_word... " >&6; }
4754 if ${ac_cv_prog_CC+:} false; then :
4755 $as_echo_n "(cached) " >&6
4756 else
4757 if test -n "$CC"; then
4758 ac_cv_prog_CC="$CC" # Let the user override the test.
4759 else
4760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4761 for as_dir in $PATH
4762 do
4763 IFS=$as_save_IFS
4764 test -z "$as_dir" && as_dir=.
4765 for ac_exec_ext in '' $ac_executable_extensions; do
4766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4767 ac_cv_prog_CC="${ac_tool_prefix}cc"
4768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4769 break 2
4770 fi
4771 done
4772 done
4773 IFS=$as_save_IFS
4774
4775 fi
4776 fi
4777 CC=$ac_cv_prog_CC
4778 if test -n "$CC"; then
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4780 $as_echo "$CC" >&6; }
4781 else
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4783 $as_echo "no" >&6; }
4784 fi
4785
4786
4787 fi
4788 fi
4789 if test -z "$CC"; then
4790 # Extract the first word of "cc", so it can be a program name with args.
4791 set dummy cc; ac_word=$2
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4793 $as_echo_n "checking for $ac_word... " >&6; }
4794 if ${ac_cv_prog_CC+:} false; then :
4795 $as_echo_n "(cached) " >&6
4796 else
4797 if test -n "$CC"; then
4798 ac_cv_prog_CC="$CC" # Let the user override the test.
4799 else
4800 ac_prog_rejected=no
4801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4802 for as_dir in $PATH
4803 do
4804 IFS=$as_save_IFS
4805 test -z "$as_dir" && as_dir=.
4806 for ac_exec_ext in '' $ac_executable_extensions; do
4807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4808 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4809 ac_prog_rejected=yes
4810 continue
4811 fi
4812 ac_cv_prog_CC="cc"
4813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4814 break 2
4815 fi
4816 done
4817 done
4818 IFS=$as_save_IFS
4819
4820 if test $ac_prog_rejected = yes; then
4821 # We found a bogon in the path, so make sure we never use it.
4822 set dummy $ac_cv_prog_CC
4823 shift
4824 if test $# != 0; then
4825 # We chose a different compiler from the bogus one.
4826 # However, it has the same basename, so the bogon will be chosen
4827 # first if we set CC to just the basename; use the full file name.
4828 shift
4829 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4830 fi
4831 fi
4832 fi
4833 fi
4834 CC=$ac_cv_prog_CC
4835 if test -n "$CC"; then
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4837 $as_echo "$CC" >&6; }
4838 else
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4840 $as_echo "no" >&6; }
4841 fi
4842
4843
4844 fi
4845 if test -z "$CC"; then
4846 if test -n "$ac_tool_prefix"; then
4847 for ac_prog in cl.exe
4848 do
4849 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4850 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4852 $as_echo_n "checking for $ac_word... " >&6; }
4853 if ${ac_cv_prog_CC+:} false; then :
4854 $as_echo_n "(cached) " >&6
4855 else
4856 if test -n "$CC"; then
4857 ac_cv_prog_CC="$CC" # Let the user override the test.
4858 else
4859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4860 for as_dir in $PATH
4861 do
4862 IFS=$as_save_IFS
4863 test -z "$as_dir" && as_dir=.
4864 for ac_exec_ext in '' $ac_executable_extensions; do
4865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4866 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4868 break 2
4869 fi
4870 done
4871 done
4872 IFS=$as_save_IFS
4873
4874 fi
4875 fi
4876 CC=$ac_cv_prog_CC
4877 if test -n "$CC"; then
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4879 $as_echo "$CC" >&6; }
4880 else
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4882 $as_echo "no" >&6; }
4883 fi
4884
4885
4886 test -n "$CC" && break
4887 done
4888 fi
4889 if test -z "$CC"; then
4890 ac_ct_CC=$CC
4891 for ac_prog in cl.exe
4892 do
4893 # Extract the first word of "$ac_prog", so it can be a program name with args.
4894 set dummy $ac_prog; ac_word=$2
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4896 $as_echo_n "checking for $ac_word... " >&6; }
4897 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4898 $as_echo_n "(cached) " >&6
4899 else
4900 if test -n "$ac_ct_CC"; then
4901 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4902 else
4903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4904 for as_dir in $PATH
4905 do
4906 IFS=$as_save_IFS
4907 test -z "$as_dir" && as_dir=.
4908 for ac_exec_ext in '' $ac_executable_extensions; do
4909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4910 ac_cv_prog_ac_ct_CC="$ac_prog"
4911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4912 break 2
4913 fi
4914 done
4915 done
4916 IFS=$as_save_IFS
4917
4918 fi
4919 fi
4920 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4921 if test -n "$ac_ct_CC"; then
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4923 $as_echo "$ac_ct_CC" >&6; }
4924 else
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4926 $as_echo "no" >&6; }
4927 fi
4928
4929
4930 test -n "$ac_ct_CC" && break
4931 done
4932
4933 if test "x$ac_ct_CC" = x; then
4934 CC=""
4935 else
4936 case $cross_compiling:$ac_tool_warned in
4937 yes:)
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4939 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4940 ac_tool_warned=yes ;;
4941 esac
4942 CC=$ac_ct_CC
4943 fi
4944 fi
4945
4946 fi
4947
4948
4949 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4950 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4951 as_fn_error $? "no acceptable C compiler found in \$PATH
4952 See \`config.log' for more details" "$LINENO" 5; }
4953
4954 # Provide some information about the compiler.
4955 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4956 set X $ac_compile
4957 ac_compiler=$2
4958 for ac_option in --version -v -V -qversion; do
4959 { { ac_try="$ac_compiler $ac_option >&5"
4960 case "(($ac_try" in
4961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4962 *) ac_try_echo=$ac_try;;
4963 esac
4964 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4965 $as_echo "$ac_try_echo"; } >&5
4966 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4967 ac_status=$?
4968 if test -s conftest.err; then
4969 sed '10a\
4970 ... rest of stderr output deleted ...
4971 10q' conftest.err >conftest.er1
4972 cat conftest.er1 >&5
4973 fi
4974 rm -f conftest.er1 conftest.err
4975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4976 test $ac_status = 0; }
4977 done
4978
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4980 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4981 if ${ac_cv_c_compiler_gnu+:} false; then :
4982 $as_echo_n "(cached) " >&6
4983 else
4984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4985 /* end confdefs.h. */
4986
4987 int
4988 main ()
4989 {
4990 #ifndef __GNUC__
4991 choke me
4992 #endif
4993
4994 ;
4995 return 0;
4996 }
4997 _ACEOF
4998 if ac_fn_c_try_compile "$LINENO"; then :
4999 ac_compiler_gnu=yes
5000 else
5001 ac_compiler_gnu=no
5002 fi
5003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5004 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5005
5006 fi
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5008 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5009 if test $ac_compiler_gnu = yes; then
5010 GCC=yes
5011 else
5012 GCC=
5013 fi
5014 ac_test_CFLAGS=${CFLAGS+set}
5015 ac_save_CFLAGS=$CFLAGS
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5017 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5018 if ${ac_cv_prog_cc_g+:} false; then :
5019 $as_echo_n "(cached) " >&6
5020 else
5021 ac_save_c_werror_flag=$ac_c_werror_flag
5022 ac_c_werror_flag=yes
5023 ac_cv_prog_cc_g=no
5024 CFLAGS="-g"
5025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5026 /* end confdefs.h. */
5027
5028 int
5029 main ()
5030 {
5031
5032 ;
5033 return 0;
5034 }
5035 _ACEOF
5036 if ac_fn_c_try_compile "$LINENO"; then :
5037 ac_cv_prog_cc_g=yes
5038 else
5039 CFLAGS=""
5040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5041 /* end confdefs.h. */
5042
5043 int
5044 main ()
5045 {
5046
5047 ;
5048 return 0;
5049 }
5050 _ACEOF
5051 if ac_fn_c_try_compile "$LINENO"; then :
5052
5053 else
5054 ac_c_werror_flag=$ac_save_c_werror_flag
5055 CFLAGS="-g"
5056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5057 /* end confdefs.h. */
5058
5059 int
5060 main ()
5061 {
5062
5063 ;
5064 return 0;
5065 }
5066 _ACEOF
5067 if ac_fn_c_try_compile "$LINENO"; then :
5068 ac_cv_prog_cc_g=yes
5069 fi
5070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5071 fi
5072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5073 fi
5074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5075 ac_c_werror_flag=$ac_save_c_werror_flag
5076 fi
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5078 $as_echo "$ac_cv_prog_cc_g" >&6; }
5079 if test "$ac_test_CFLAGS" = set; then
5080 CFLAGS=$ac_save_CFLAGS
5081 elif test $ac_cv_prog_cc_g = yes; then
5082 if test "$GCC" = yes; then
5083 CFLAGS="-g -O2"
5084 else
5085 CFLAGS="-g"
5086 fi
5087 else
5088 if test "$GCC" = yes; then
5089 CFLAGS="-O2"
5090 else
5091 CFLAGS=
5092 fi
5093 fi
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5095 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5096 if ${ac_cv_prog_cc_c89+:} false; then :
5097 $as_echo_n "(cached) " >&6
5098 else
5099 ac_cv_prog_cc_c89=no
5100 ac_save_CC=$CC
5101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5102 /* end confdefs.h. */
5103 #include <stdarg.h>
5104 #include <stdio.h>
5105 struct stat;
5106 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5107 struct buf { int x; };
5108 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5109 static char *e (p, i)
5110 char **p;
5111 int i;
5112 {
5113 return p[i];
5114 }
5115 static char *f (char * (*g) (char **, int), char **p, ...)
5116 {
5117 char *s;
5118 va_list v;
5119 va_start (v,p);
5120 s = g (p, va_arg (v,int));
5121 va_end (v);
5122 return s;
5123 }
5124
5125 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5126 function prototypes and stuff, but not '\xHH' hex character constants.
5127 These don't provoke an error unfortunately, instead are silently treated
5128 as 'x'. The following induces an error, until -std is added to get
5129 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5130 array size at least. It's necessary to write '\x00'==0 to get something
5131 that's true only with -std. */
5132 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5133
5134 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5135 inside strings and character constants. */
5136 #define FOO(x) 'x'
5137 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5138
5139 int test (int i, double x);
5140 struct s1 {int (*f) (int a);};
5141 struct s2 {int (*f) (double a);};
5142 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5143 int argc;
5144 char **argv;
5145 int
5146 main ()
5147 {
5148 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5149 ;
5150 return 0;
5151 }
5152 _ACEOF
5153 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5154 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5155 do
5156 CC="$ac_save_CC $ac_arg"
5157 if ac_fn_c_try_compile "$LINENO"; then :
5158 ac_cv_prog_cc_c89=$ac_arg
5159 fi
5160 rm -f core conftest.err conftest.$ac_objext
5161 test "x$ac_cv_prog_cc_c89" != "xno" && break
5162 done
5163 rm -f conftest.$ac_ext
5164 CC=$ac_save_CC
5165
5166 fi
5167 # AC_CACHE_VAL
5168 case "x$ac_cv_prog_cc_c89" in
5169 x)
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5171 $as_echo "none needed" >&6; } ;;
5172 xno)
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5174 $as_echo "unsupported" >&6; } ;;
5175 *)
5176 CC="$CC $ac_cv_prog_cc_c89"
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5178 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5179 esac
5180 if test "x$ac_cv_prog_cc_c89" != xno; then :
5181
5182 fi
5183
5184 ac_ext=c
5185 ac_cpp='$CPP $CPPFLAGS'
5186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5189
5190 ac_ext=c
5191 ac_cpp='$CPP $CPPFLAGS'
5192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5196 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5197 if ${am_cv_prog_cc_c_o+:} false; then :
5198 $as_echo_n "(cached) " >&6
5199 else
5200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5201 /* end confdefs.h. */
5202
5203 int
5204 main ()
5205 {
5206
5207 ;
5208 return 0;
5209 }
5210 _ACEOF
5211 # Make sure it works both with $CC and with simple cc.
5212 # Following AC_PROG_CC_C_O, we do the test twice because some
5213 # compilers refuse to overwrite an existing .o file with -o,
5214 # though they will create one.
5215 am_cv_prog_cc_c_o=yes
5216 for am_i in 1 2; do
5217 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5218 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5219 ac_status=$?
5220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221 (exit $ac_status); } \
5222 && test -f conftest2.$ac_objext; then
5223 : OK
5224 else
5225 am_cv_prog_cc_c_o=no
5226 break
5227 fi
5228 done
5229 rm -f core conftest*
5230 unset am_i
5231 fi
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5233 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5234 if test "$am_cv_prog_cc_c_o" != yes; then
5235 # Losing compiler, so override with the script.
5236 # FIXME: It is wrong to rewrite CC.
5237 # But if we don't then we get into trouble of one sort or another.
5238 # A longer-term fix would be to have automake use am__CC in this case,
5239 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5240 CC="$am_aux_dir/compile $CC"
5241 fi
5242 ac_ext=c
5243 ac_cpp='$CPP $CPPFLAGS'
5244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5247
5248
5249 depcc="$CC" am_compiler_list=
5250
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5252 $as_echo_n "checking dependency style of $depcc... " >&6; }
5253 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5254 $as_echo_n "(cached) " >&6
5255 else
5256 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5257 # We make a subdir and do the tests there. Otherwise we can end up
5258 # making bogus files that we don't know about and never remove. For
5259 # instance it was reported that on HP-UX the gcc test will end up
5260 # making a dummy file named 'D' -- because '-MD' means "put the output
5261 # in D".
5262 rm -rf conftest.dir
5263 mkdir conftest.dir
5264 # Copy depcomp to subdir because otherwise we won't find it if we're
5265 # using a relative directory.
5266 cp "$am_depcomp" conftest.dir
5267 cd conftest.dir
5268 # We will build objects and dependencies in a subdirectory because
5269 # it helps to detect inapplicable dependency modes. For instance
5270 # both Tru64's cc and ICC support -MD to output dependencies as a
5271 # side effect of compilation, but ICC will put the dependencies in
5272 # the current directory while Tru64 will put them in the object
5273 # directory.
5274 mkdir sub
5275
5276 am_cv_CC_dependencies_compiler_type=none
5277 if test "$am_compiler_list" = ""; then
5278 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5279 fi
5280 am__universal=false
5281 case " $depcc " in #(
5282 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5283 esac
5284
5285 for depmode in $am_compiler_list; do
5286 # Setup a source with many dependencies, because some compilers
5287 # like to wrap large dependency lists on column 80 (with \), and
5288 # we should not choose a depcomp mode which is confused by this.
5289 #
5290 # We need to recreate these files for each test, as the compiler may
5291 # overwrite some of them when testing with obscure command lines.
5292 # This happens at least with the AIX C compiler.
5293 : > sub/conftest.c
5294 for i in 1 2 3 4 5 6; do
5295 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5296 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5297 # Solaris 10 /bin/sh.
5298 echo '/* dummy */' > sub/conftst$i.h
5299 done
5300 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5301
5302 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5303 # mode. It turns out that the SunPro C++ compiler does not properly
5304 # handle '-M -o', and we need to detect this. Also, some Intel
5305 # versions had trouble with output in subdirs.
5306 am__obj=sub/conftest.${OBJEXT-o}
5307 am__minus_obj="-o $am__obj"
5308 case $depmode in
5309 gcc)
5310 # This depmode causes a compiler race in universal mode.
5311 test "$am__universal" = false || continue
5312 ;;
5313 nosideeffect)
5314 # After this tag, mechanisms are not by side-effect, so they'll
5315 # only be used when explicitly requested.
5316 if test "x$enable_dependency_tracking" = xyes; then
5317 continue
5318 else
5319 break
5320 fi
5321 ;;
5322 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5323 # This compiler won't grok '-c -o', but also, the minuso test has
5324 # not run yet. These depmodes are late enough in the game, and
5325 # so weak that their functioning should not be impacted.
5326 am__obj=conftest.${OBJEXT-o}
5327 am__minus_obj=
5328 ;;
5329 none) break ;;
5330 esac
5331 if depmode=$depmode \
5332 source=sub/conftest.c object=$am__obj \
5333 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5334 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5335 >/dev/null 2>conftest.err &&
5336 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5337 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5338 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5339 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5340 # icc doesn't choke on unknown options, it will just issue warnings
5341 # or remarks (even with -Werror). So we grep stderr for any message
5342 # that says an option was ignored or not supported.
5343 # When given -MP, icc 7.0 and 7.1 complain thusly:
5344 # icc: Command line warning: ignoring option '-M'; no argument required
5345 # The diagnosis changed in icc 8.0:
5346 # icc: Command line remark: option '-MP' not supported
5347 if (grep 'ignoring option' conftest.err ||
5348 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5349 am_cv_CC_dependencies_compiler_type=$depmode
5350 break
5351 fi
5352 fi
5353 done
5354
5355 cd ..
5356 rm -rf conftest.dir
5357 else
5358 am_cv_CC_dependencies_compiler_type=none
5359 fi
5360
5361 fi
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5363 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5364 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5365
5366 if
5367 test "x$enable_dependency_tracking" != xno \
5368 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5369 am__fastdepCC_TRUE=
5370 am__fastdepCC_FALSE='#'
5371 else
5372 am__fastdepCC_TRUE='#'
5373 am__fastdepCC_FALSE=
5374 fi
5375
5376
5377 ac_ext=c
5378 ac_cpp='$CPP $CPPFLAGS'
5379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5383 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5384 # On Suns, sometimes $CPP names a directory.
5385 if test -n "$CPP" && test -d "$CPP"; then
5386 CPP=
5387 fi
5388 if test -z "$CPP"; then
5389 if ${ac_cv_prog_CPP+:} false; then :
5390 $as_echo_n "(cached) " >&6
5391 else
5392 # Double quotes because CPP needs to be expanded
5393 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5394 do
5395 ac_preproc_ok=false
5396 for ac_c_preproc_warn_flag in '' yes
5397 do
5398 # Use a header file that comes with gcc, so configuring glibc
5399 # with a fresh cross-compiler works.
5400 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5401 # <limits.h> exists even on freestanding compilers.
5402 # On the NeXT, cc -E runs the code through the compiler's parser,
5403 # not just through cpp. "Syntax error" is here to catch this case.
5404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5405 /* end confdefs.h. */
5406 #ifdef __STDC__
5407 # include <limits.h>
5408 #else
5409 # include <assert.h>
5410 #endif
5411 Syntax error
5412 _ACEOF
5413 if ac_fn_c_try_cpp "$LINENO"; then :
5414
5415 else
5416 # Broken: fails on valid input.
5417 continue
5418 fi
5419 rm -f conftest.err conftest.i conftest.$ac_ext
5420
5421 # OK, works on sane cases. Now check whether nonexistent headers
5422 # can be detected and how.
5423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5424 /* end confdefs.h. */
5425 #include <ac_nonexistent.h>
5426 _ACEOF
5427 if ac_fn_c_try_cpp "$LINENO"; then :
5428 # Broken: success on invalid input.
5429 continue
5430 else
5431 # Passes both tests.
5432 ac_preproc_ok=:
5433 break
5434 fi
5435 rm -f conftest.err conftest.i conftest.$ac_ext
5436
5437 done
5438 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5439 rm -f conftest.i conftest.err conftest.$ac_ext
5440 if $ac_preproc_ok; then :
5441 break
5442 fi
5443
5444 done
5445 ac_cv_prog_CPP=$CPP
5446
5447 fi
5448 CPP=$ac_cv_prog_CPP
5449 else
5450 ac_cv_prog_CPP=$CPP
5451 fi
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5453 $as_echo "$CPP" >&6; }
5454 ac_preproc_ok=false
5455 for ac_c_preproc_warn_flag in '' yes
5456 do
5457 # Use a header file that comes with gcc, so configuring glibc
5458 # with a fresh cross-compiler works.
5459 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5460 # <limits.h> exists even on freestanding compilers.
5461 # On the NeXT, cc -E runs the code through the compiler's parser,
5462 # not just through cpp. "Syntax error" is here to catch this case.
5463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5464 /* end confdefs.h. */
5465 #ifdef __STDC__
5466 # include <limits.h>
5467 #else
5468 # include <assert.h>
5469 #endif
5470 Syntax error
5471 _ACEOF
5472 if ac_fn_c_try_cpp "$LINENO"; then :
5473
5474 else
5475 # Broken: fails on valid input.
5476 continue
5477 fi
5478 rm -f conftest.err conftest.i conftest.$ac_ext
5479
5480 # OK, works on sane cases. Now check whether nonexistent headers
5481 # can be detected and how.
5482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5483 /* end confdefs.h. */
5484 #include <ac_nonexistent.h>
5485 _ACEOF
5486 if ac_fn_c_try_cpp "$LINENO"; then :
5487 # Broken: success on invalid input.
5488 continue
5489 else
5490 # Passes both tests.
5491 ac_preproc_ok=:
5492 break
5493 fi
5494 rm -f conftest.err conftest.i conftest.$ac_ext
5495
5496 done
5497 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5498 rm -f conftest.i conftest.err conftest.$ac_ext
5499 if $ac_preproc_ok; then :
5500
5501 else
5502 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5503 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5504 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5505 See \`config.log' for more details" "$LINENO" 5; }
5506 fi
5507
5508 ac_ext=c
5509 ac_cpp='$CPP $CPPFLAGS'
5510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5513
5514 case `pwd` in
5515 *\ * | *\ *)
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5517 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5518 esac
5519
5520
5521
5522 macro_version='2.4.6'
5523 macro_revision='2.4.6'
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537 ltmain=$ac_aux_dir/ltmain.sh
5538
5539 # Make sure we can run config.sub.
5540 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5541 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5542
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5544 $as_echo_n "checking build system type... " >&6; }
5545 if ${ac_cv_build+:} false; then :
5546 $as_echo_n "(cached) " >&6
5547 else
5548 ac_build_alias=$build_alias
5549 test "x$ac_build_alias" = x &&
5550 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5551 test "x$ac_build_alias" = x &&
5552 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5553 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5554 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5555
5556 fi
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5558 $as_echo "$ac_cv_build" >&6; }
5559 case $ac_cv_build in
5560 *-*-*) ;;
5561 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5562 esac
5563 build=$ac_cv_build
5564 ac_save_IFS=$IFS; IFS='-'
5565 set x $ac_cv_build
5566 shift
5567 build_cpu=$1
5568 build_vendor=$2
5569 shift; shift
5570 # Remember, the first character of IFS is used to create $*,
5571 # except with old shells:
5572 build_os=$*
5573 IFS=$ac_save_IFS
5574 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5575
5576
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5578 $as_echo_n "checking host system type... " >&6; }
5579 if ${ac_cv_host+:} false; then :
5580 $as_echo_n "(cached) " >&6
5581 else
5582 if test "x$host_alias" = x; then
5583 ac_cv_host=$ac_cv_build
5584 else
5585 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5586 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5587 fi
5588
5589 fi
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5591 $as_echo "$ac_cv_host" >&6; }
5592 case $ac_cv_host in
5593 *-*-*) ;;
5594 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5595 esac
5596 host=$ac_cv_host
5597 ac_save_IFS=$IFS; IFS='-'
5598 set x $ac_cv_host
5599 shift
5600 host_cpu=$1
5601 host_vendor=$2
5602 shift; shift
5603 # Remember, the first character of IFS is used to create $*,
5604 # except with old shells:
5605 host_os=$*
5606 IFS=$ac_save_IFS
5607 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5608
5609
5610 # Backslashify metacharacters that are still active within
5611 # double-quoted strings.
5612 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5613
5614 # Same as above, but do not quote variable references.
5615 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5616
5617 # Sed substitution to delay expansion of an escaped shell variable in a
5618 # double_quote_subst'ed string.
5619 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5620
5621 # Sed substitution to delay expansion of an escaped single quote.
5622 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5623
5624 # Sed substitution to avoid accidental globbing in evaled expressions
5625 no_glob_subst='s/\*/\\\*/g'
5626
5627 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5628 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5629 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5630
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5632 $as_echo_n "checking how to print strings... " >&6; }
5633 # Test print first, because it will be a builtin if present.
5634 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5635 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5636 ECHO='print -r --'
5637 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5638 ECHO='printf %s\n'
5639 else
5640 # Use this function as a fallback that always works.
5641 func_fallback_echo ()
5642 {
5643 eval 'cat <<_LTECHO_EOF
5644 $1
5645 _LTECHO_EOF'
5646 }
5647 ECHO='func_fallback_echo'
5648 fi
5649
5650 # func_echo_all arg...
5651 # Invoke $ECHO with all args, space-separated.
5652 func_echo_all ()
5653 {
5654 $ECHO ""
5655 }
5656
5657 case $ECHO in
5658 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5659 $as_echo "printf" >&6; } ;;
5660 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5661 $as_echo "print -r" >&6; } ;;
5662 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5663 $as_echo "cat" >&6; } ;;
5664 esac
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5680 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5681 if ${ac_cv_path_SED+:} false; then :
5682 $as_echo_n "(cached) " >&6
5683 else
5684 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5685 for ac_i in 1 2 3 4 5 6 7; do
5686 ac_script="$ac_script$as_nl$ac_script"
5687 done
5688 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5689 { ac_script=; unset ac_script;}
5690 if test -z "$SED"; then
5691 ac_path_SED_found=false
5692 # Loop through the user's path and test for each of PROGNAME-LIST
5693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5694 for as_dir in $PATH
5695 do
5696 IFS=$as_save_IFS
5697 test -z "$as_dir" && as_dir=.
5698 for ac_prog in sed gsed; do
5699 for ac_exec_ext in '' $ac_executable_extensions; do
5700 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5701 as_fn_executable_p "$ac_path_SED" || continue
5702 # Check for GNU ac_path_SED and select it if it is found.
5703 # Check for GNU $ac_path_SED
5704 case `"$ac_path_SED" --version 2>&1` in
5705 *GNU*)
5706 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5707 *)
5708 ac_count=0
5709 $as_echo_n 0123456789 >"conftest.in"
5710 while :
5711 do
5712 cat "conftest.in" "conftest.in" >"conftest.tmp"
5713 mv "conftest.tmp" "conftest.in"
5714 cp "conftest.in" "conftest.nl"
5715 $as_echo '' >> "conftest.nl"
5716 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5717 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5718 as_fn_arith $ac_count + 1 && ac_count=$as_val
5719 if test $ac_count -gt ${ac_path_SED_max-0}; then
5720 # Best one so far, save it but keep looking for a better one
5721 ac_cv_path_SED="$ac_path_SED"
5722 ac_path_SED_max=$ac_count
5723 fi
5724 # 10*(2^10) chars as input seems more than enough
5725 test $ac_count -gt 10 && break
5726 done
5727 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5728 esac
5729
5730 $ac_path_SED_found && break 3
5731 done
5732 done
5733 done
5734 IFS=$as_save_IFS
5735 if test -z "$ac_cv_path_SED"; then
5736 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5737 fi
5738 else
5739 ac_cv_path_SED=$SED
5740 fi
5741
5742 fi
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5744 $as_echo "$ac_cv_path_SED" >&6; }
5745 SED="$ac_cv_path_SED"
5746 rm -f conftest.sed
5747
5748 test -z "$SED" && SED=sed
5749 Xsed="$SED -e 1s/^X//"
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5762 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5763 if ${ac_cv_path_GREP+:} false; then :
5764 $as_echo_n "(cached) " >&6
5765 else
5766 if test -z "$GREP"; then
5767 ac_path_GREP_found=false
5768 # Loop through the user's path and test for each of PROGNAME-LIST
5769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5770 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5771 do
5772 IFS=$as_save_IFS
5773 test -z "$as_dir" && as_dir=.
5774 for ac_prog in grep ggrep; do
5775 for ac_exec_ext in '' $ac_executable_extensions; do
5776 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5777 as_fn_executable_p "$ac_path_GREP" || continue
5778 # Check for GNU ac_path_GREP and select it if it is found.
5779 # Check for GNU $ac_path_GREP
5780 case `"$ac_path_GREP" --version 2>&1` in
5781 *GNU*)
5782 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5783 *)
5784 ac_count=0
5785 $as_echo_n 0123456789 >"conftest.in"
5786 while :
5787 do
5788 cat "conftest.in" "conftest.in" >"conftest.tmp"
5789 mv "conftest.tmp" "conftest.in"
5790 cp "conftest.in" "conftest.nl"
5791 $as_echo 'GREP' >> "conftest.nl"
5792 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5793 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5794 as_fn_arith $ac_count + 1 && ac_count=$as_val
5795 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5796 # Best one so far, save it but keep looking for a better one
5797 ac_cv_path_GREP="$ac_path_GREP"
5798 ac_path_GREP_max=$ac_count
5799 fi
5800 # 10*(2^10) chars as input seems more than enough
5801 test $ac_count -gt 10 && break
5802 done
5803 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5804 esac
5805
5806 $ac_path_GREP_found && break 3
5807 done
5808 done
5809 done
5810 IFS=$as_save_IFS
5811 if test -z "$ac_cv_path_GREP"; then
5812 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5813 fi
5814 else
5815 ac_cv_path_GREP=$GREP
5816 fi
5817
5818 fi
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5820 $as_echo "$ac_cv_path_GREP" >&6; }
5821 GREP="$ac_cv_path_GREP"
5822
5823
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5825 $as_echo_n "checking for egrep... " >&6; }
5826 if ${ac_cv_path_EGREP+:} false; then :
5827 $as_echo_n "(cached) " >&6
5828 else
5829 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5830 then ac_cv_path_EGREP="$GREP -E"
5831 else
5832 if test -z "$EGREP"; then
5833 ac_path_EGREP_found=false
5834 # Loop through the user's path and test for each of PROGNAME-LIST
5835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5836 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5837 do
5838 IFS=$as_save_IFS
5839 test -z "$as_dir" && as_dir=.
5840 for ac_prog in egrep; do
5841 for ac_exec_ext in '' $ac_executable_extensions; do
5842 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5843 as_fn_executable_p "$ac_path_EGREP" || continue
5844 # Check for GNU ac_path_EGREP and select it if it is found.
5845 # Check for GNU $ac_path_EGREP
5846 case `"$ac_path_EGREP" --version 2>&1` in
5847 *GNU*)
5848 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5849 *)
5850 ac_count=0
5851 $as_echo_n 0123456789 >"conftest.in"
5852 while :
5853 do
5854 cat "conftest.in" "conftest.in" >"conftest.tmp"
5855 mv "conftest.tmp" "conftest.in"
5856 cp "conftest.in" "conftest.nl"
5857 $as_echo 'EGREP' >> "conftest.nl"
5858 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5859 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5860 as_fn_arith $ac_count + 1 && ac_count=$as_val
5861 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5862 # Best one so far, save it but keep looking for a better one
5863 ac_cv_path_EGREP="$ac_path_EGREP"
5864 ac_path_EGREP_max=$ac_count
5865 fi
5866 # 10*(2^10) chars as input seems more than enough
5867 test $ac_count -gt 10 && break
5868 done
5869 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5870 esac
5871
5872 $ac_path_EGREP_found && break 3
5873 done
5874 done
5875 done
5876 IFS=$as_save_IFS
5877 if test -z "$ac_cv_path_EGREP"; then
5878 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5879 fi
5880 else
5881 ac_cv_path_EGREP=$EGREP
5882 fi
5883
5884 fi
5885 fi
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5887 $as_echo "$ac_cv_path_EGREP" >&6; }
5888 EGREP="$ac_cv_path_EGREP"
5889
5890
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5892 $as_echo_n "checking for fgrep... " >&6; }
5893 if ${ac_cv_path_FGREP+:} false; then :
5894 $as_echo_n "(cached) " >&6
5895 else
5896 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5897 then ac_cv_path_FGREP="$GREP -F"
5898 else
5899 if test -z "$FGREP"; then
5900 ac_path_FGREP_found=false
5901 # Loop through the user's path and test for each of PROGNAME-LIST
5902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5903 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5904 do
5905 IFS=$as_save_IFS
5906 test -z "$as_dir" && as_dir=.
5907 for ac_prog in fgrep; do
5908 for ac_exec_ext in '' $ac_executable_extensions; do
5909 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5910 as_fn_executable_p "$ac_path_FGREP" || continue
5911 # Check for GNU ac_path_FGREP and select it if it is found.
5912 # Check for GNU $ac_path_FGREP
5913 case `"$ac_path_FGREP" --version 2>&1` in
5914 *GNU*)
5915 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5916 *)
5917 ac_count=0
5918 $as_echo_n 0123456789 >"conftest.in"
5919 while :
5920 do
5921 cat "conftest.in" "conftest.in" >"conftest.tmp"
5922 mv "conftest.tmp" "conftest.in"
5923 cp "conftest.in" "conftest.nl"
5924 $as_echo 'FGREP' >> "conftest.nl"
5925 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5926 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5927 as_fn_arith $ac_count + 1 && ac_count=$as_val
5928 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5929 # Best one so far, save it but keep looking for a better one
5930 ac_cv_path_FGREP="$ac_path_FGREP"
5931 ac_path_FGREP_max=$ac_count
5932 fi
5933 # 10*(2^10) chars as input seems more than enough
5934 test $ac_count -gt 10 && break
5935 done
5936 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5937 esac
5938
5939 $ac_path_FGREP_found && break 3
5940 done
5941 done
5942 done
5943 IFS=$as_save_IFS
5944 if test -z "$ac_cv_path_FGREP"; then
5945 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5946 fi
5947 else
5948 ac_cv_path_FGREP=$FGREP
5949 fi
5950
5951 fi
5952 fi
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5954 $as_echo "$ac_cv_path_FGREP" >&6; }
5955 FGREP="$ac_cv_path_FGREP"
5956
5957
5958 test -z "$GREP" && GREP=grep
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978 # Check whether --with-gnu-ld was given.
5979 if test "${with_gnu_ld+set}" = set; then :
5980 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5981 else
5982 with_gnu_ld=no
5983 fi
5984
5985 ac_prog=ld
5986 if test yes = "$GCC"; then
5987 # Check if gcc -print-prog-name=ld gives a path.
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5989 $as_echo_n "checking for ld used by $CC... " >&6; }
5990 case $host in
5991 *-*-mingw*)
5992 # gcc leaves a trailing carriage return, which upsets mingw
5993 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5994 *)
5995 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5996 esac
5997 case $ac_prog in
5998 # Accept absolute paths.
5999 [\\/]* | ?:[\\/]*)
6000 re_direlt='/[^/][^/]*/\.\./'
6001 # Canonicalize the pathname of ld
6002 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6003 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6004 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6005 done
6006 test -z "$LD" && LD=$ac_prog
6007 ;;
6008 "")
6009 # If it fails, then pretend we aren't using GCC.
6010 ac_prog=ld
6011 ;;
6012 *)
6013 # If it is relative, then search for the first ld in PATH.
6014 with_gnu_ld=unknown
6015 ;;
6016 esac
6017 elif test yes = "$with_gnu_ld"; then
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6019 $as_echo_n "checking for GNU ld... " >&6; }
6020 else
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6022 $as_echo_n "checking for non-GNU ld... " >&6; }
6023 fi
6024 if ${lt_cv_path_LD+:} false; then :
6025 $as_echo_n "(cached) " >&6
6026 else
6027 if test -z "$LD"; then
6028 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6029 for ac_dir in $PATH; do
6030 IFS=$lt_save_ifs
6031 test -z "$ac_dir" && ac_dir=.
6032 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6033 lt_cv_path_LD=$ac_dir/$ac_prog
6034 # Check to see if the program is GNU ld. I'd rather use --version,
6035 # but apparently some variants of GNU ld only accept -v.
6036 # Break only if it was the GNU/non-GNU ld that we prefer.
6037 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6038 *GNU* | *'with BFD'*)
6039 test no != "$with_gnu_ld" && break
6040 ;;
6041 *)
6042 test yes != "$with_gnu_ld" && break
6043 ;;
6044 esac
6045 fi
6046 done
6047 IFS=$lt_save_ifs
6048 else
6049 lt_cv_path_LD=$LD # Let the user override the test with a path.
6050 fi
6051 fi
6052
6053 LD=$lt_cv_path_LD
6054 if test -n "$LD"; then
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6056 $as_echo "$LD" >&6; }
6057 else
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6059 $as_echo "no" >&6; }
6060 fi
6061 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6063 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6064 if ${lt_cv_prog_gnu_ld+:} false; then :
6065 $as_echo_n "(cached) " >&6
6066 else
6067 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6068 case `$LD -v 2>&1 </dev/null` in
6069 *GNU* | *'with BFD'*)
6070 lt_cv_prog_gnu_ld=yes
6071 ;;
6072 *)
6073 lt_cv_prog_gnu_ld=no
6074 ;;
6075 esac
6076 fi
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6078 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6079 with_gnu_ld=$lt_cv_prog_gnu_ld
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6090 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6091 if ${lt_cv_path_NM+:} false; then :
6092 $as_echo_n "(cached) " >&6
6093 else
6094 if test -n "$NM"; then
6095 # Let the user override the test.
6096 lt_cv_path_NM=$NM
6097 else
6098 lt_nm_to_check=${ac_tool_prefix}nm
6099 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6100 lt_nm_to_check="$lt_nm_to_check nm"
6101 fi
6102 for lt_tmp_nm in $lt_nm_to_check; do
6103 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6104 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6105 IFS=$lt_save_ifs
6106 test -z "$ac_dir" && ac_dir=.
6107 tmp_nm=$ac_dir/$lt_tmp_nm
6108 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6109 # Check to see if the nm accepts a BSD-compat flag.
6110 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6111 # nm: unknown option "B" ignored
6112 # Tru64's nm complains that /dev/null is an invalid object file
6113 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6114 case $build_os in
6115 mingw*) lt_bad_file=conftest.nm/nofile ;;
6116 *) lt_bad_file=/dev/null ;;
6117 esac
6118 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6119 *$lt_bad_file* | *'Invalid file or object type'*)
6120 lt_cv_path_NM="$tmp_nm -B"
6121 break 2
6122 ;;
6123 *)
6124 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6125 */dev/null*)
6126 lt_cv_path_NM="$tmp_nm -p"
6127 break 2
6128 ;;
6129 *)
6130 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6131 continue # so that we can try to find one that supports BSD flags
6132 ;;
6133 esac
6134 ;;
6135 esac
6136 fi
6137 done
6138 IFS=$lt_save_ifs
6139 done
6140 : ${lt_cv_path_NM=no}
6141 fi
6142 fi
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6144 $as_echo "$lt_cv_path_NM" >&6; }
6145 if test no != "$lt_cv_path_NM"; then
6146 NM=$lt_cv_path_NM
6147 else
6148 # Didn't find any BSD compatible name lister, look for dumpbin.
6149 if test -n "$DUMPBIN"; then :
6150 # Let the user override the test.
6151 else
6152 if test -n "$ac_tool_prefix"; then
6153 for ac_prog in dumpbin "link -dump"
6154 do
6155 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6156 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6158 $as_echo_n "checking for $ac_word... " >&6; }
6159 if ${ac_cv_prog_DUMPBIN+:} false; then :
6160 $as_echo_n "(cached) " >&6
6161 else
6162 if test -n "$DUMPBIN"; then
6163 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6164 else
6165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6166 for as_dir in $PATH
6167 do
6168 IFS=$as_save_IFS
6169 test -z "$as_dir" && as_dir=.
6170 for ac_exec_ext in '' $ac_executable_extensions; do
6171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6172 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6174 break 2
6175 fi
6176 done
6177 done
6178 IFS=$as_save_IFS
6179
6180 fi
6181 fi
6182 DUMPBIN=$ac_cv_prog_DUMPBIN
6183 if test -n "$DUMPBIN"; then
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6185 $as_echo "$DUMPBIN" >&6; }
6186 else
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6188 $as_echo "no" >&6; }
6189 fi
6190
6191
6192 test -n "$DUMPBIN" && break
6193 done
6194 fi
6195 if test -z "$DUMPBIN"; then
6196 ac_ct_DUMPBIN=$DUMPBIN
6197 for ac_prog in dumpbin "link -dump"
6198 do
6199 # Extract the first word of "$ac_prog", so it can be a program name with args.
6200 set dummy $ac_prog; ac_word=$2
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6202 $as_echo_n "checking for $ac_word... " >&6; }
6203 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6204 $as_echo_n "(cached) " >&6
6205 else
6206 if test -n "$ac_ct_DUMPBIN"; then
6207 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6208 else
6209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6210 for as_dir in $PATH
6211 do
6212 IFS=$as_save_IFS
6213 test -z "$as_dir" && as_dir=.
6214 for ac_exec_ext in '' $ac_executable_extensions; do
6215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6216 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6218 break 2
6219 fi
6220 done
6221 done
6222 IFS=$as_save_IFS
6223
6224 fi
6225 fi
6226 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6227 if test -n "$ac_ct_DUMPBIN"; then
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6229 $as_echo "$ac_ct_DUMPBIN" >&6; }
6230 else
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6232 $as_echo "no" >&6; }
6233 fi
6234
6235
6236 test -n "$ac_ct_DUMPBIN" && break
6237 done
6238
6239 if test "x$ac_ct_DUMPBIN" = x; then
6240 DUMPBIN=":"
6241 else
6242 case $cross_compiling:$ac_tool_warned in
6243 yes:)
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6245 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6246 ac_tool_warned=yes ;;
6247 esac
6248 DUMPBIN=$ac_ct_DUMPBIN
6249 fi
6250 fi
6251
6252 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6253 *COFF*)
6254 DUMPBIN="$DUMPBIN -symbols -headers"
6255 ;;
6256 *)
6257 DUMPBIN=:
6258 ;;
6259 esac
6260 fi
6261
6262 if test : != "$DUMPBIN"; then
6263 NM=$DUMPBIN
6264 fi
6265 fi
6266 test -z "$NM" && NM=nm
6267
6268
6269
6270
6271
6272
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6274 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6275 if ${lt_cv_nm_interface+:} false; then :
6276 $as_echo_n "(cached) " >&6
6277 else
6278 lt_cv_nm_interface="BSD nm"
6279 echo "int some_variable = 0;" > conftest.$ac_ext
6280 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6281 (eval "$ac_compile" 2>conftest.err)
6282 cat conftest.err >&5
6283 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6284 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6285 cat conftest.err >&5
6286 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6287 cat conftest.out >&5
6288 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6289 lt_cv_nm_interface="MS dumpbin"
6290 fi
6291 rm -f conftest*
6292 fi
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6294 $as_echo "$lt_cv_nm_interface" >&6; }
6295
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6297 $as_echo_n "checking whether ln -s works... " >&6; }
6298 LN_S=$as_ln_s
6299 if test "$LN_S" = "ln -s"; then
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6301 $as_echo "yes" >&6; }
6302 else
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6304 $as_echo "no, using $LN_S" >&6; }
6305 fi
6306
6307 # find the maximum length of command line arguments
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6309 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6310 if ${lt_cv_sys_max_cmd_len+:} false; then :
6311 $as_echo_n "(cached) " >&6
6312 else
6313 i=0
6314 teststring=ABCD
6315
6316 case $build_os in
6317 msdosdjgpp*)
6318 # On DJGPP, this test can blow up pretty badly due to problems in libc
6319 # (any single argument exceeding 2000 bytes causes a buffer overrun
6320 # during glob expansion). Even if it were fixed, the result of this
6321 # check would be larger than it should be.
6322 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6323 ;;
6324
6325 gnu*)
6326 # Under GNU Hurd, this test is not required because there is
6327 # no limit to the length of command line arguments.
6328 # Libtool will interpret -1 as no limit whatsoever
6329 lt_cv_sys_max_cmd_len=-1;
6330 ;;
6331
6332 cygwin* | mingw* | cegcc*)
6333 # On Win9x/ME, this test blows up -- it succeeds, but takes
6334 # about 5 minutes as the teststring grows exponentially.
6335 # Worse, since 9x/ME are not pre-emptively multitasking,
6336 # you end up with a "frozen" computer, even though with patience
6337 # the test eventually succeeds (with a max line length of 256k).
6338 # Instead, let's just punt: use the minimum linelength reported by
6339 # all of the supported platforms: 8192 (on NT/2K/XP).
6340 lt_cv_sys_max_cmd_len=8192;
6341 ;;
6342
6343 mint*)
6344 # On MiNT this can take a long time and run out of memory.
6345 lt_cv_sys_max_cmd_len=8192;
6346 ;;
6347
6348 amigaos*)
6349 # On AmigaOS with pdksh, this test takes hours, literally.
6350 # So we just punt and use a minimum line length of 8192.
6351 lt_cv_sys_max_cmd_len=8192;
6352 ;;
6353
6354 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6355 # This has been around since 386BSD, at least. Likely further.
6356 if test -x /sbin/sysctl; then
6357 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6358 elif test -x /usr/sbin/sysctl; then
6359 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6360 else
6361 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6362 fi
6363 # And add a safety zone
6364 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6365 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6366 ;;
6367
6368 interix*)
6369 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6370 lt_cv_sys_max_cmd_len=196608
6371 ;;
6372
6373 os2*)
6374 # The test takes a long time on OS/2.
6375 lt_cv_sys_max_cmd_len=8192
6376 ;;
6377
6378 osf*)
6379 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6380 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6381 # nice to cause kernel panics so lets avoid the loop below.
6382 # First set a reasonable default.
6383 lt_cv_sys_max_cmd_len=16384
6384 #
6385 if test -x /sbin/sysconfig; then
6386 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6387 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6388 esac
6389 fi
6390 ;;
6391 sco3.2v5*)
6392 lt_cv_sys_max_cmd_len=102400
6393 ;;
6394 sysv5* | sco5v6* | sysv4.2uw2*)
6395 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6396 if test -n "$kargmax"; then
6397 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6398 else
6399 lt_cv_sys_max_cmd_len=32768
6400 fi
6401 ;;
6402 *)
6403 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6404 if test -n "$lt_cv_sys_max_cmd_len" && \
6405 test undefined != "$lt_cv_sys_max_cmd_len"; then
6406 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6407 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6408 else
6409 # Make teststring a little bigger before we do anything with it.
6410 # a 1K string should be a reasonable start.
6411 for i in 1 2 3 4 5 6 7 8; do
6412 teststring=$teststring$teststring
6413 done
6414 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6415 # If test is not a shell built-in, we'll probably end up computing a
6416 # maximum length that is only half of the actual maximum length, but
6417 # we can't tell.
6418 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6419 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6420 test 17 != "$i" # 1/2 MB should be enough
6421 do
6422 i=`expr $i + 1`
6423 teststring=$teststring$teststring
6424 done
6425 # Only check the string length outside the loop.
6426 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6427 teststring=
6428 # Add a significant safety factor because C++ compilers can tack on
6429 # massive amounts of additional arguments before passing them to the
6430 # linker. It appears as though 1/2 is a usable value.
6431 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6432 fi
6433 ;;
6434 esac
6435
6436 fi
6437
6438 if test -n "$lt_cv_sys_max_cmd_len"; then
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6440 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6441 else
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6443 $as_echo "none" >&6; }
6444 fi
6445 max_cmd_len=$lt_cv_sys_max_cmd_len
6446
6447
6448
6449
6450
6451
6452 : ${CP="cp -f"}
6453 : ${MV="mv -f"}
6454 : ${RM="rm -f"}
6455
6456 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6457 lt_unset=unset
6458 else
6459 lt_unset=false
6460 fi
6461
6462
6463
6464
6465
6466 # test EBCDIC or ASCII
6467 case `echo X|tr X '\101'` in
6468 A) # ASCII based system
6469 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6470 lt_SP2NL='tr \040 \012'
6471 lt_NL2SP='tr \015\012 \040\040'
6472 ;;
6473 *) # EBCDIC based system
6474 lt_SP2NL='tr \100 \n'
6475 lt_NL2SP='tr \r\n \100\100'
6476 ;;
6477 esac
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6488 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6489 if ${lt_cv_to_host_file_cmd+:} false; then :
6490 $as_echo_n "(cached) " >&6
6491 else
6492 case $host in
6493 *-*-mingw* )
6494 case $build in
6495 *-*-mingw* ) # actually msys
6496 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6497 ;;
6498 *-*-cygwin* )
6499 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6500 ;;
6501 * ) # otherwise, assume *nix
6502 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6503 ;;
6504 esac
6505 ;;
6506 *-*-cygwin* )
6507 case $build in
6508 *-*-mingw* ) # actually msys
6509 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6510 ;;
6511 *-*-cygwin* )
6512 lt_cv_to_host_file_cmd=func_convert_file_noop
6513 ;;
6514 * ) # otherwise, assume *nix
6515 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6516 ;;
6517 esac
6518 ;;
6519 * ) # unhandled hosts (and "normal" native builds)
6520 lt_cv_to_host_file_cmd=func_convert_file_noop
6521 ;;
6522 esac
6523
6524 fi
6525
6526 to_host_file_cmd=$lt_cv_to_host_file_cmd
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6528 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6529
6530
6531
6532
6533
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6535 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6536 if ${lt_cv_to_tool_file_cmd+:} false; then :
6537 $as_echo_n "(cached) " >&6
6538 else
6539 #assume ordinary cross tools, or native build.
6540 lt_cv_to_tool_file_cmd=func_convert_file_noop
6541 case $host in
6542 *-*-mingw* )
6543 case $build in
6544 *-*-mingw* ) # actually msys
6545 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6546 ;;
6547 esac
6548 ;;
6549 esac
6550
6551 fi
6552
6553 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6555 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6556
6557
6558
6559
6560
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6562 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6563 if ${lt_cv_ld_reload_flag+:} false; then :
6564 $as_echo_n "(cached) " >&6
6565 else
6566 lt_cv_ld_reload_flag='-r'
6567 fi
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6569 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6570 reload_flag=$lt_cv_ld_reload_flag
6571 case $reload_flag in
6572 "" | " "*) ;;
6573 *) reload_flag=" $reload_flag" ;;
6574 esac
6575 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6576 case $host_os in
6577 cygwin* | mingw* | pw32* | cegcc*)
6578 if test yes != "$GCC"; then
6579 reload_cmds=false
6580 fi
6581 ;;
6582 darwin*)
6583 if test yes = "$GCC"; then
6584 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6585 else
6586 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6587 fi
6588 ;;
6589 esac
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599 if test -n "$ac_tool_prefix"; then
6600 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6601 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6603 $as_echo_n "checking for $ac_word... " >&6; }
6604 if ${ac_cv_prog_OBJDUMP+:} false; then :
6605 $as_echo_n "(cached) " >&6
6606 else
6607 if test -n "$OBJDUMP"; then
6608 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6609 else
6610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6611 for as_dir in $PATH
6612 do
6613 IFS=$as_save_IFS
6614 test -z "$as_dir" && as_dir=.
6615 for ac_exec_ext in '' $ac_executable_extensions; do
6616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6617 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6619 break 2
6620 fi
6621 done
6622 done
6623 IFS=$as_save_IFS
6624
6625 fi
6626 fi
6627 OBJDUMP=$ac_cv_prog_OBJDUMP
6628 if test -n "$OBJDUMP"; then
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6630 $as_echo "$OBJDUMP" >&6; }
6631 else
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6633 $as_echo "no" >&6; }
6634 fi
6635
6636
6637 fi
6638 if test -z "$ac_cv_prog_OBJDUMP"; then
6639 ac_ct_OBJDUMP=$OBJDUMP
6640 # Extract the first word of "objdump", so it can be a program name with args.
6641 set dummy objdump; ac_word=$2
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6643 $as_echo_n "checking for $ac_word... " >&6; }
6644 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6645 $as_echo_n "(cached) " >&6
6646 else
6647 if test -n "$ac_ct_OBJDUMP"; then
6648 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6649 else
6650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6651 for as_dir in $PATH
6652 do
6653 IFS=$as_save_IFS
6654 test -z "$as_dir" && as_dir=.
6655 for ac_exec_ext in '' $ac_executable_extensions; do
6656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6657 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6659 break 2
6660 fi
6661 done
6662 done
6663 IFS=$as_save_IFS
6664
6665 fi
6666 fi
6667 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6668 if test -n "$ac_ct_OBJDUMP"; then
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6670 $as_echo "$ac_ct_OBJDUMP" >&6; }
6671 else
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6673 $as_echo "no" >&6; }
6674 fi
6675
6676 if test "x$ac_ct_OBJDUMP" = x; then
6677 OBJDUMP="false"
6678 else
6679 case $cross_compiling:$ac_tool_warned in
6680 yes:)
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6682 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6683 ac_tool_warned=yes ;;
6684 esac
6685 OBJDUMP=$ac_ct_OBJDUMP
6686 fi
6687 else
6688 OBJDUMP="$ac_cv_prog_OBJDUMP"
6689 fi
6690
6691 test -z "$OBJDUMP" && OBJDUMP=objdump
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6702 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6703 if ${lt_cv_deplibs_check_method+:} false; then :
6704 $as_echo_n "(cached) " >&6
6705 else
6706 lt_cv_file_magic_cmd='$MAGIC_CMD'
6707 lt_cv_file_magic_test_file=
6708 lt_cv_deplibs_check_method='unknown'
6709 # Need to set the preceding variable on all platforms that support
6710 # interlibrary dependencies.
6711 # 'none' -- dependencies not supported.
6712 # 'unknown' -- same as none, but documents that we really don't know.
6713 # 'pass_all' -- all dependencies passed with no checks.
6714 # 'test_compile' -- check by making test program.
6715 # 'file_magic [[regex]]' -- check by looking for files in library path
6716 # that responds to the $file_magic_cmd with a given extended regex.
6717 # If you have 'file' or equivalent on your system and you're not sure
6718 # whether 'pass_all' will *always* work, you probably want this one.
6719
6720 case $host_os in
6721 aix[4-9]*)
6722 lt_cv_deplibs_check_method=pass_all
6723 ;;
6724
6725 beos*)
6726 lt_cv_deplibs_check_method=pass_all
6727 ;;
6728
6729 bsdi[45]*)
6730 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6731 lt_cv_file_magic_cmd='/usr/bin/file -L'
6732 lt_cv_file_magic_test_file=/shlib/libc.so
6733 ;;
6734
6735 cygwin*)
6736 # func_win32_libid is a shell function defined in ltmain.sh
6737 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6738 lt_cv_file_magic_cmd='func_win32_libid'
6739 ;;
6740
6741 mingw* | pw32*)
6742 # Base MSYS/MinGW do not provide the 'file' command needed by
6743 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6744 # unless we find 'file', for example because we are cross-compiling.
6745 if ( file / ) >/dev/null 2>&1; then
6746 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6747 lt_cv_file_magic_cmd='func_win32_libid'
6748 else
6749 # Keep this pattern in sync with the one in func_win32_libid.
6750 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6751 lt_cv_file_magic_cmd='$OBJDUMP -f'
6752 fi
6753 ;;
6754
6755 cegcc*)
6756 # use the weaker test based on 'objdump'. See mingw*.
6757 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6758 lt_cv_file_magic_cmd='$OBJDUMP -f'
6759 ;;
6760
6761 darwin* | rhapsody*)
6762 lt_cv_deplibs_check_method=pass_all
6763 ;;
6764
6765 freebsd* | dragonfly*)
6766 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6767 case $host_cpu in
6768 i*86 )
6769 # Not sure whether the presence of OpenBSD here was a mistake.
6770 # Let's accept both of them until this is cleared up.
6771 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6772 lt_cv_file_magic_cmd=/usr/bin/file
6773 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6774 ;;
6775 esac
6776 else
6777 lt_cv_deplibs_check_method=pass_all
6778 fi
6779 ;;
6780
6781 haiku*)
6782 lt_cv_deplibs_check_method=pass_all
6783 ;;
6784
6785 hpux10.20* | hpux11*)
6786 lt_cv_file_magic_cmd=/usr/bin/file
6787 case $host_cpu in
6788 ia64*)
6789 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6790 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6791 ;;
6792 hppa*64*)
6793 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]'
6794 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6795 ;;
6796 *)
6797 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6798 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6799 ;;
6800 esac
6801 ;;
6802
6803 interix[3-9]*)
6804 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6805 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6806 ;;
6807
6808 irix5* | irix6* | nonstopux*)
6809 case $LD in
6810 *-32|*"-32 ") libmagic=32-bit;;
6811 *-n32|*"-n32 ") libmagic=N32;;
6812 *-64|*"-64 ") libmagic=64-bit;;
6813 *) libmagic=never-match;;
6814 esac
6815 lt_cv_deplibs_check_method=pass_all
6816 ;;
6817
6818 # This must be glibc/ELF.
6819 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6820 lt_cv_deplibs_check_method=pass_all
6821 ;;
6822
6823 netbsd* | netbsdelf*-gnu)
6824 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6825 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6826 else
6827 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6828 fi
6829 ;;
6830
6831 newos6*)
6832 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6833 lt_cv_file_magic_cmd=/usr/bin/file
6834 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6835 ;;
6836
6837 *nto* | *qnx*)
6838 lt_cv_deplibs_check_method=pass_all
6839 ;;
6840
6841 openbsd* | bitrig*)
6842 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6843 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6844 else
6845 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6846 fi
6847 ;;
6848
6849 osf3* | osf4* | osf5*)
6850 lt_cv_deplibs_check_method=pass_all
6851 ;;
6852
6853 rdos*)
6854 lt_cv_deplibs_check_method=pass_all
6855 ;;
6856
6857 solaris*)
6858 lt_cv_deplibs_check_method=pass_all
6859 ;;
6860
6861 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6862 lt_cv_deplibs_check_method=pass_all
6863 ;;
6864
6865 sysv4 | sysv4.3*)
6866 case $host_vendor in
6867 motorola)
6868 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]'
6869 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6870 ;;
6871 ncr)
6872 lt_cv_deplibs_check_method=pass_all
6873 ;;
6874 sequent)
6875 lt_cv_file_magic_cmd='/bin/file'
6876 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6877 ;;
6878 sni)
6879 lt_cv_file_magic_cmd='/bin/file'
6880 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6881 lt_cv_file_magic_test_file=/lib/libc.so
6882 ;;
6883 siemens)
6884 lt_cv_deplibs_check_method=pass_all
6885 ;;
6886 pc)
6887 lt_cv_deplibs_check_method=pass_all
6888 ;;
6889 esac
6890 ;;
6891
6892 tpf*)
6893 lt_cv_deplibs_check_method=pass_all
6894 ;;
6895 os2*)
6896 lt_cv_deplibs_check_method=pass_all
6897 ;;
6898 esac
6899
6900 fi
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6902 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6903
6904 file_magic_glob=
6905 want_nocaseglob=no
6906 if test "$build" = "$host"; then
6907 case $host_os in
6908 mingw* | pw32*)
6909 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6910 want_nocaseglob=yes
6911 else
6912 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6913 fi
6914 ;;
6915 esac
6916 fi
6917
6918 file_magic_cmd=$lt_cv_file_magic_cmd
6919 deplibs_check_method=$lt_cv_deplibs_check_method
6920 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943 if test -n "$ac_tool_prefix"; then
6944 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6945 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6947 $as_echo_n "checking for $ac_word... " >&6; }
6948 if ${ac_cv_prog_DLLTOOL+:} false; then :
6949 $as_echo_n "(cached) " >&6
6950 else
6951 if test -n "$DLLTOOL"; then
6952 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6953 else
6954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6955 for as_dir in $PATH
6956 do
6957 IFS=$as_save_IFS
6958 test -z "$as_dir" && as_dir=.
6959 for ac_exec_ext in '' $ac_executable_extensions; do
6960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6961 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6963 break 2
6964 fi
6965 done
6966 done
6967 IFS=$as_save_IFS
6968
6969 fi
6970 fi
6971 DLLTOOL=$ac_cv_prog_DLLTOOL
6972 if test -n "$DLLTOOL"; then
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6974 $as_echo "$DLLTOOL" >&6; }
6975 else
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6977 $as_echo "no" >&6; }
6978 fi
6979
6980
6981 fi
6982 if test -z "$ac_cv_prog_DLLTOOL"; then
6983 ac_ct_DLLTOOL=$DLLTOOL
6984 # Extract the first word of "dlltool", so it can be a program name with args.
6985 set dummy dlltool; ac_word=$2
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6987 $as_echo_n "checking for $ac_word... " >&6; }
6988 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6989 $as_echo_n "(cached) " >&6
6990 else
6991 if test -n "$ac_ct_DLLTOOL"; then
6992 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6993 else
6994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6995 for as_dir in $PATH
6996 do
6997 IFS=$as_save_IFS
6998 test -z "$as_dir" && as_dir=.
6999 for ac_exec_ext in '' $ac_executable_extensions; do
7000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7001 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7003 break 2
7004 fi
7005 done
7006 done
7007 IFS=$as_save_IFS
7008
7009 fi
7010 fi
7011 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7012 if test -n "$ac_ct_DLLTOOL"; then
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7014 $as_echo "$ac_ct_DLLTOOL" >&6; }
7015 else
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7017 $as_echo "no" >&6; }
7018 fi
7019
7020 if test "x$ac_ct_DLLTOOL" = x; then
7021 DLLTOOL="false"
7022 else
7023 case $cross_compiling:$ac_tool_warned in
7024 yes:)
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7026 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7027 ac_tool_warned=yes ;;
7028 esac
7029 DLLTOOL=$ac_ct_DLLTOOL
7030 fi
7031 else
7032 DLLTOOL="$ac_cv_prog_DLLTOOL"
7033 fi
7034
7035 test -z "$DLLTOOL" && DLLTOOL=dlltool
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7047 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7048 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7049 $as_echo_n "(cached) " >&6
7050 else
7051 lt_cv_sharedlib_from_linklib_cmd='unknown'
7052
7053 case $host_os in
7054 cygwin* | mingw* | pw32* | cegcc*)
7055 # two different shell functions defined in ltmain.sh;
7056 # decide which one to use based on capabilities of $DLLTOOL
7057 case `$DLLTOOL --help 2>&1` in
7058 *--identify-strict*)
7059 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7060 ;;
7061 *)
7062 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7063 ;;
7064 esac
7065 ;;
7066 *)
7067 # fallback: assume linklib IS sharedlib
7068 lt_cv_sharedlib_from_linklib_cmd=$ECHO
7069 ;;
7070 esac
7071
7072 fi
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7074 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7075 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7076 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7077
7078
7079
7080
7081
7082
7083
7084 if test -n "$ac_tool_prefix"; then
7085 for ac_prog in ar
7086 do
7087 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7088 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7090 $as_echo_n "checking for $ac_word... " >&6; }
7091 if ${ac_cv_prog_AR+:} false; then :
7092 $as_echo_n "(cached) " >&6
7093 else
7094 if test -n "$AR"; then
7095 ac_cv_prog_AR="$AR" # Let the user override the test.
7096 else
7097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7098 for as_dir in $PATH
7099 do
7100 IFS=$as_save_IFS
7101 test -z "$as_dir" && as_dir=.
7102 for ac_exec_ext in '' $ac_executable_extensions; do
7103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7104 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7106 break 2
7107 fi
7108 done
7109 done
7110 IFS=$as_save_IFS
7111
7112 fi
7113 fi
7114 AR=$ac_cv_prog_AR
7115 if test -n "$AR"; then
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7117 $as_echo "$AR" >&6; }
7118 else
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7120 $as_echo "no" >&6; }
7121 fi
7122
7123
7124 test -n "$AR" && break
7125 done
7126 fi
7127 if test -z "$AR"; then
7128 ac_ct_AR=$AR
7129 for ac_prog in ar
7130 do
7131 # Extract the first word of "$ac_prog", so it can be a program name with args.
7132 set dummy $ac_prog; ac_word=$2
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7134 $as_echo_n "checking for $ac_word... " >&6; }
7135 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7136 $as_echo_n "(cached) " >&6
7137 else
7138 if test -n "$ac_ct_AR"; then
7139 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7140 else
7141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7142 for as_dir in $PATH
7143 do
7144 IFS=$as_save_IFS
7145 test -z "$as_dir" && as_dir=.
7146 for ac_exec_ext in '' $ac_executable_extensions; do
7147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7148 ac_cv_prog_ac_ct_AR="$ac_prog"
7149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7150 break 2
7151 fi
7152 done
7153 done
7154 IFS=$as_save_IFS
7155
7156 fi
7157 fi
7158 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7159 if test -n "$ac_ct_AR"; then
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7161 $as_echo "$ac_ct_AR" >&6; }
7162 else
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7164 $as_echo "no" >&6; }
7165 fi
7166
7167
7168 test -n "$ac_ct_AR" && break
7169 done
7170
7171 if test "x$ac_ct_AR" = x; then
7172 AR="false"
7173 else
7174 case $cross_compiling:$ac_tool_warned in
7175 yes:)
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7177 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7178 ac_tool_warned=yes ;;
7179 esac
7180 AR=$ac_ct_AR
7181 fi
7182 fi
7183
7184 : ${AR=ar}
7185 : ${AR_FLAGS=cru}
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7198 $as_echo_n "checking for archiver @FILE support... " >&6; }
7199 if ${lt_cv_ar_at_file+:} false; then :
7200 $as_echo_n "(cached) " >&6
7201 else
7202 lt_cv_ar_at_file=no
7203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7204 /* end confdefs.h. */
7205
7206 int
7207 main ()
7208 {
7209
7210 ;
7211 return 0;
7212 }
7213 _ACEOF
7214 if ac_fn_c_try_compile "$LINENO"; then :
7215 echo conftest.$ac_objext > conftest.lst
7216 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7217 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7218 (eval $lt_ar_try) 2>&5
7219 ac_status=$?
7220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7221 test $ac_status = 0; }
7222 if test 0 -eq "$ac_status"; then
7223 # Ensure the archiver fails upon bogus file names.
7224 rm -f conftest.$ac_objext libconftest.a
7225 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7226 (eval $lt_ar_try) 2>&5
7227 ac_status=$?
7228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7229 test $ac_status = 0; }
7230 if test 0 -ne "$ac_status"; then
7231 lt_cv_ar_at_file=@
7232 fi
7233 fi
7234 rm -f conftest.* libconftest.a
7235
7236 fi
7237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7238
7239 fi
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7241 $as_echo "$lt_cv_ar_at_file" >&6; }
7242
7243 if test no = "$lt_cv_ar_at_file"; then
7244 archiver_list_spec=
7245 else
7246 archiver_list_spec=$lt_cv_ar_at_file
7247 fi
7248
7249
7250
7251
7252
7253
7254
7255 if test -n "$ac_tool_prefix"; then
7256 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7257 set dummy ${ac_tool_prefix}strip; ac_word=$2
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7259 $as_echo_n "checking for $ac_word... " >&6; }
7260 if ${ac_cv_prog_STRIP+:} false; then :
7261 $as_echo_n "(cached) " >&6
7262 else
7263 if test -n "$STRIP"; then
7264 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7265 else
7266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7267 for as_dir in $PATH
7268 do
7269 IFS=$as_save_IFS
7270 test -z "$as_dir" && as_dir=.
7271 for ac_exec_ext in '' $ac_executable_extensions; do
7272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7273 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7275 break 2
7276 fi
7277 done
7278 done
7279 IFS=$as_save_IFS
7280
7281 fi
7282 fi
7283 STRIP=$ac_cv_prog_STRIP
7284 if test -n "$STRIP"; then
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7286 $as_echo "$STRIP" >&6; }
7287 else
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7289 $as_echo "no" >&6; }
7290 fi
7291
7292
7293 fi
7294 if test -z "$ac_cv_prog_STRIP"; then
7295 ac_ct_STRIP=$STRIP
7296 # Extract the first word of "strip", so it can be a program name with args.
7297 set dummy strip; ac_word=$2
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7299 $as_echo_n "checking for $ac_word... " >&6; }
7300 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7301 $as_echo_n "(cached) " >&6
7302 else
7303 if test -n "$ac_ct_STRIP"; then
7304 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7305 else
7306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7307 for as_dir in $PATH
7308 do
7309 IFS=$as_save_IFS
7310 test -z "$as_dir" && as_dir=.
7311 for ac_exec_ext in '' $ac_executable_extensions; do
7312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7313 ac_cv_prog_ac_ct_STRIP="strip"
7314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7315 break 2
7316 fi
7317 done
7318 done
7319 IFS=$as_save_IFS
7320
7321 fi
7322 fi
7323 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7324 if test -n "$ac_ct_STRIP"; then
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7326 $as_echo "$ac_ct_STRIP" >&6; }
7327 else
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7329 $as_echo "no" >&6; }
7330 fi
7331
7332 if test "x$ac_ct_STRIP" = x; then
7333 STRIP=":"
7334 else
7335 case $cross_compiling:$ac_tool_warned in
7336 yes:)
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7338 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7339 ac_tool_warned=yes ;;
7340 esac
7341 STRIP=$ac_ct_STRIP
7342 fi
7343 else
7344 STRIP="$ac_cv_prog_STRIP"
7345 fi
7346
7347 test -z "$STRIP" && STRIP=:
7348
7349
7350
7351
7352
7353
7354 if test -n "$ac_tool_prefix"; then
7355 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7356 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7358 $as_echo_n "checking for $ac_word... " >&6; }
7359 if ${ac_cv_prog_RANLIB+:} false; then :
7360 $as_echo_n "(cached) " >&6
7361 else
7362 if test -n "$RANLIB"; then
7363 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7364 else
7365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7366 for as_dir in $PATH
7367 do
7368 IFS=$as_save_IFS
7369 test -z "$as_dir" && as_dir=.
7370 for ac_exec_ext in '' $ac_executable_extensions; do
7371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7372 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7374 break 2
7375 fi
7376 done
7377 done
7378 IFS=$as_save_IFS
7379
7380 fi
7381 fi
7382 RANLIB=$ac_cv_prog_RANLIB
7383 if test -n "$RANLIB"; then
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7385 $as_echo "$RANLIB" >&6; }
7386 else
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7388 $as_echo "no" >&6; }
7389 fi
7390
7391
7392 fi
7393 if test -z "$ac_cv_prog_RANLIB"; then
7394 ac_ct_RANLIB=$RANLIB
7395 # Extract the first word of "ranlib", so it can be a program name with args.
7396 set dummy ranlib; ac_word=$2
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7398 $as_echo_n "checking for $ac_word... " >&6; }
7399 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7400 $as_echo_n "(cached) " >&6
7401 else
7402 if test -n "$ac_ct_RANLIB"; then
7403 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7404 else
7405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7406 for as_dir in $PATH
7407 do
7408 IFS=$as_save_IFS
7409 test -z "$as_dir" && as_dir=.
7410 for ac_exec_ext in '' $ac_executable_extensions; do
7411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7412 ac_cv_prog_ac_ct_RANLIB="ranlib"
7413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7414 break 2
7415 fi
7416 done
7417 done
7418 IFS=$as_save_IFS
7419
7420 fi
7421 fi
7422 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7423 if test -n "$ac_ct_RANLIB"; then
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7425 $as_echo "$ac_ct_RANLIB" >&6; }
7426 else
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7428 $as_echo "no" >&6; }
7429 fi
7430
7431 if test "x$ac_ct_RANLIB" = x; then
7432 RANLIB=":"
7433 else
7434 case $cross_compiling:$ac_tool_warned in
7435 yes:)
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7437 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7438 ac_tool_warned=yes ;;
7439 esac
7440 RANLIB=$ac_ct_RANLIB
7441 fi
7442 else
7443 RANLIB="$ac_cv_prog_RANLIB"
7444 fi
7445
7446 test -z "$RANLIB" && RANLIB=:
7447
7448
7449
7450
7451
7452
7453 # Determine commands to create old-style static archives.
7454 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7455 old_postinstall_cmds='chmod 644 $oldlib'
7456 old_postuninstall_cmds=
7457
7458 if test -n "$RANLIB"; then
7459 case $host_os in
7460 bitrig* | openbsd*)
7461 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7462 ;;
7463 *)
7464 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7465 ;;
7466 esac
7467 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7468 fi
7469
7470 case $host_os in
7471 darwin*)
7472 lock_old_archive_extraction=yes ;;
7473 *)
7474 lock_old_archive_extraction=no ;;
7475 esac
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515 # If no C compiler was specified, use CC.
7516 LTCC=${LTCC-"$CC"}
7517
7518 # If no C compiler flags were specified, use CFLAGS.
7519 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7520
7521 # Allow CC to be a program name with arguments.
7522 compiler=$CC
7523
7524
7525 # Check for command to grab the raw symbol name followed by C symbol from nm.
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7527 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7528 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7529 $as_echo_n "(cached) " >&6
7530 else
7531
7532 # These are sane defaults that work on at least a few old systems.
7533 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7534
7535 # Character class describing NM global symbol codes.
7536 symcode='[BCDEGRST]'
7537
7538 # Regexp to match symbols that can be accessed directly from C.
7539 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7540
7541 # Define system-specific variables.
7542 case $host_os in
7543 aix*)
7544 symcode='[BCDT]'
7545 ;;
7546 cygwin* | mingw* | pw32* | cegcc*)
7547 symcode='[ABCDGISTW]'
7548 ;;
7549 hpux*)
7550 if test ia64 = "$host_cpu"; then
7551 symcode='[ABCDEGRST]'
7552 fi
7553 ;;
7554 irix* | nonstopux*)
7555 symcode='[BCDEGRST]'
7556 ;;
7557 osf*)
7558 symcode='[BCDEGQRST]'
7559 ;;
7560 solaris*)
7561 symcode='[BDRT]'
7562 ;;
7563 sco3.2v5*)
7564 symcode='[DT]'
7565 ;;
7566 sysv4.2uw2*)
7567 symcode='[DT]'
7568 ;;
7569 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7570 symcode='[ABDT]'
7571 ;;
7572 sysv4)
7573 symcode='[DFNSTU]'
7574 ;;
7575 esac
7576
7577 # If we're using GNU nm, then use its standard symbol codes.
7578 case `$NM -V 2>&1` in
7579 *GNU* | *'with BFD'*)
7580 symcode='[ABCDGIRSTW]' ;;
7581 esac
7582
7583 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7584 # Gets list of data symbols to import.
7585 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7586 # Adjust the below global symbol transforms to fixup imported variables.
7587 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7588 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7589 lt_c_name_lib_hook="\
7590 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7591 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7592 else
7593 # Disable hooks by default.
7594 lt_cv_sys_global_symbol_to_import=
7595 lt_cdecl_hook=
7596 lt_c_name_hook=
7597 lt_c_name_lib_hook=
7598 fi
7599
7600 # Transform an extracted symbol line into a proper C declaration.
7601 # Some systems (esp. on ia64) link data and code symbols differently,
7602 # so use this general approach.
7603 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7604 $lt_cdecl_hook\
7605 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7606 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7607
7608 # Transform an extracted symbol line into symbol name and symbol address
7609 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7610 $lt_c_name_hook\
7611 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7612 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7613
7614 # Transform an extracted symbol line into symbol name with lib prefix and
7615 # symbol address.
7616 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7617 $lt_c_name_lib_hook\
7618 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7619 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7620 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7621
7622 # Handle CRLF in mingw tool chain
7623 opt_cr=
7624 case $build_os in
7625 mingw*)
7626 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7627 ;;
7628 esac
7629
7630 # Try without a prefix underscore, then with it.
7631 for ac_symprfx in "" "_"; do
7632
7633 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7634 symxfrm="\\1 $ac_symprfx\\2 \\2"
7635
7636 # Write the raw and C identifiers.
7637 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7638 # Fake it for dumpbin and say T for any non-static function,
7639 # D for any global variable and I for any imported variable.
7640 # Also find C++ and __fastcall symbols from MSVC++,
7641 # which start with @ or ?.
7642 lt_cv_sys_global_symbol_pipe="$AWK '"\
7643 " {last_section=section; section=\$ 3};"\
7644 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7645 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7646 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7647 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7648 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7649 " \$ 0!~/External *\|/{next};"\
7650 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7651 " {if(hide[section]) next};"\
7652 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7653 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7654 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7655 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7656 " ' prfx=^$ac_symprfx"
7657 else
7658 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7659 fi
7660 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7661
7662 # Check to see that the pipe works correctly.
7663 pipe_works=no
7664
7665 rm -f conftest*
7666 cat > conftest.$ac_ext <<_LT_EOF
7667 #ifdef __cplusplus
7668 extern "C" {
7669 #endif
7670 char nm_test_var;
7671 void nm_test_func(void);
7672 void nm_test_func(void){}
7673 #ifdef __cplusplus
7674 }
7675 #endif
7676 int main(){nm_test_var='a';nm_test_func();return(0);}
7677 _LT_EOF
7678
7679 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7680 (eval $ac_compile) 2>&5
7681 ac_status=$?
7682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7683 test $ac_status = 0; }; then
7684 # Now try to grab the symbols.
7685 nlist=conftest.nm
7686 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7687 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7688 ac_status=$?
7689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7690 test $ac_status = 0; } && test -s "$nlist"; then
7691 # Try sorting and uniquifying the output.
7692 if sort "$nlist" | uniq > "$nlist"T; then
7693 mv -f "$nlist"T "$nlist"
7694 else
7695 rm -f "$nlist"T
7696 fi
7697
7698 # Make sure that we snagged all the symbols we need.
7699 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7700 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7701 cat <<_LT_EOF > conftest.$ac_ext
7702 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7703 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7704 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7705 relocations are performed -- see ld's documentation on pseudo-relocs. */
7706 # define LT_DLSYM_CONST
7707 #elif defined __osf__
7708 /* This system does not cope well with relocations in const data. */
7709 # define LT_DLSYM_CONST
7710 #else
7711 # define LT_DLSYM_CONST const
7712 #endif
7713
7714 #ifdef __cplusplus
7715 extern "C" {
7716 #endif
7717
7718 _LT_EOF
7719 # Now generate the symbol file.
7720 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7721
7722 cat <<_LT_EOF >> conftest.$ac_ext
7723
7724 /* The mapping between symbol names and symbols. */
7725 LT_DLSYM_CONST struct {
7726 const char *name;
7727 void *address;
7728 }
7729 lt__PROGRAM__LTX_preloaded_symbols[] =
7730 {
7731 { "@PROGRAM@", (void *) 0 },
7732 _LT_EOF
7733 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7734 cat <<\_LT_EOF >> conftest.$ac_ext
7735 {0, (void *) 0}
7736 };
7737
7738 /* This works around a problem in FreeBSD linker */
7739 #ifdef FREEBSD_WORKAROUND
7740 static const void *lt_preloaded_setup() {
7741 return lt__PROGRAM__LTX_preloaded_symbols;
7742 }
7743 #endif
7744
7745 #ifdef __cplusplus
7746 }
7747 #endif
7748 _LT_EOF
7749 # Now try linking the two files.
7750 mv conftest.$ac_objext conftstm.$ac_objext
7751 lt_globsym_save_LIBS=$LIBS
7752 lt_globsym_save_CFLAGS=$CFLAGS
7753 LIBS=conftstm.$ac_objext
7754 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7755 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7756 (eval $ac_link) 2>&5
7757 ac_status=$?
7758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7759 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7760 pipe_works=yes
7761 fi
7762 LIBS=$lt_globsym_save_LIBS
7763 CFLAGS=$lt_globsym_save_CFLAGS
7764 else
7765 echo "cannot find nm_test_func in $nlist" >&5
7766 fi
7767 else
7768 echo "cannot find nm_test_var in $nlist" >&5
7769 fi
7770 else
7771 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7772 fi
7773 else
7774 echo "$progname: failed program was:" >&5
7775 cat conftest.$ac_ext >&5
7776 fi
7777 rm -rf conftest* conftst*
7778
7779 # Do not use the global_symbol_pipe unless it works.
7780 if test yes = "$pipe_works"; then
7781 break
7782 else
7783 lt_cv_sys_global_symbol_pipe=
7784 fi
7785 done
7786
7787 fi
7788
7789 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7790 lt_cv_sys_global_symbol_to_cdecl=
7791 fi
7792 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7794 $as_echo "failed" >&6; }
7795 else
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7797 $as_echo "ok" >&6; }
7798 fi
7799
7800 # Response file support.
7801 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7802 nm_file_list_spec='@'
7803 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7804 nm_file_list_spec='@'
7805 fi
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7844 $as_echo_n "checking for sysroot... " >&6; }
7845
7846 # Check whether --with-sysroot was given.
7847 if test "${with_sysroot+set}" = set; then :
7848 withval=$with_sysroot;
7849 else
7850 with_sysroot=no
7851 fi
7852
7853
7854 lt_sysroot=
7855 case $with_sysroot in #(
7856 yes)
7857 if test yes = "$GCC"; then
7858 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7859 fi
7860 ;; #(
7861 /*)
7862 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7863 ;; #(
7864 no|'')
7865 ;; #(
7866 *)
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7868 $as_echo "$with_sysroot" >&6; }
7869 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7870 ;;
7871 esac
7872
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7874 $as_echo "${lt_sysroot:-no}" >&6; }
7875
7876
7877
7878
7879
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7881 $as_echo_n "checking for a working dd... " >&6; }
7882 if ${ac_cv_path_lt_DD+:} false; then :
7883 $as_echo_n "(cached) " >&6
7884 else
7885 printf 0123456789abcdef0123456789abcdef >conftest.i
7886 cat conftest.i conftest.i >conftest2.i
7887 : ${lt_DD:=$DD}
7888 if test -z "$lt_DD"; then
7889 ac_path_lt_DD_found=false
7890 # Loop through the user's path and test for each of PROGNAME-LIST
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_prog in dd; do
7897 for ac_exec_ext in '' $ac_executable_extensions; do
7898 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7899 as_fn_executable_p "$ac_path_lt_DD" || continue
7900 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7901 cmp -s conftest.i conftest.out \
7902 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7903 fi
7904 $ac_path_lt_DD_found && break 3
7905 done
7906 done
7907 done
7908 IFS=$as_save_IFS
7909 if test -z "$ac_cv_path_lt_DD"; then
7910 :
7911 fi
7912 else
7913 ac_cv_path_lt_DD=$lt_DD
7914 fi
7915
7916 rm -f conftest.i conftest2.i conftest.out
7917 fi
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7919 $as_echo "$ac_cv_path_lt_DD" >&6; }
7920
7921
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7923 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7924 if ${lt_cv_truncate_bin+:} false; then :
7925 $as_echo_n "(cached) " >&6
7926 else
7927 printf 0123456789abcdef0123456789abcdef >conftest.i
7928 cat conftest.i conftest.i >conftest2.i
7929 lt_cv_truncate_bin=
7930 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7931 cmp -s conftest.i conftest.out \
7932 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7933 fi
7934 rm -f conftest.i conftest2.i conftest.out
7935 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7936 fi
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7938 $as_echo "$lt_cv_truncate_bin" >&6; }
7939
7940
7941
7942
7943
7944
7945
7946 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7947 func_cc_basename ()
7948 {
7949 for cc_temp in $*""; do
7950 case $cc_temp in
7951 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7952 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7953 \-*) ;;
7954 *) break;;
7955 esac
7956 done
7957 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7958 }
7959
7960 # Check whether --enable-libtool-lock was given.
7961 if test "${enable_libtool_lock+set}" = set; then :
7962 enableval=$enable_libtool_lock;
7963 fi
7964
7965 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7966
7967 # Some flags need to be propagated to the compiler or linker for good
7968 # libtool support.
7969 case $host in
7970 ia64-*-hpux*)
7971 # Find out what ABI is being produced by ac_compile, and set mode
7972 # options accordingly.
7973 echo 'int i;' > conftest.$ac_ext
7974 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7975 (eval $ac_compile) 2>&5
7976 ac_status=$?
7977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7978 test $ac_status = 0; }; then
7979 case `/usr/bin/file conftest.$ac_objext` in
7980 *ELF-32*)
7981 HPUX_IA64_MODE=32
7982 ;;
7983 *ELF-64*)
7984 HPUX_IA64_MODE=64
7985 ;;
7986 esac
7987 fi
7988 rm -rf conftest*
7989 ;;
7990 *-*-irix6*)
7991 # Find out what ABI is being produced by ac_compile, and set linker
7992 # options accordingly.
7993 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7994 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7995 (eval $ac_compile) 2>&5
7996 ac_status=$?
7997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7998 test $ac_status = 0; }; then
7999 if test yes = "$lt_cv_prog_gnu_ld"; then
8000 case `/usr/bin/file conftest.$ac_objext` in
8001 *32-bit*)
8002 LD="${LD-ld} -melf32bsmip"
8003 ;;
8004 *N32*)
8005 LD="${LD-ld} -melf32bmipn32"
8006 ;;
8007 *64-bit*)
8008 LD="${LD-ld} -melf64bmip"
8009 ;;
8010 esac
8011 else
8012 case `/usr/bin/file conftest.$ac_objext` in
8013 *32-bit*)
8014 LD="${LD-ld} -32"
8015 ;;
8016 *N32*)
8017 LD="${LD-ld} -n32"
8018 ;;
8019 *64-bit*)
8020 LD="${LD-ld} -64"
8021 ;;
8022 esac
8023 fi
8024 fi
8025 rm -rf conftest*
8026 ;;
8027
8028 mips64*-*linux*)
8029 # Find out what ABI is being produced by ac_compile, and set linker
8030 # options accordingly.
8031 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8032 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8033 (eval $ac_compile) 2>&5
8034 ac_status=$?
8035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8036 test $ac_status = 0; }; then
8037 emul=elf
8038 case `/usr/bin/file conftest.$ac_objext` in
8039 *32-bit*)
8040 emul="${emul}32"
8041 ;;
8042 *64-bit*)
8043 emul="${emul}64"
8044 ;;
8045 esac
8046 case `/usr/bin/file conftest.$ac_objext` in
8047 *MSB*)
8048 emul="${emul}btsmip"
8049 ;;
8050 *LSB*)
8051 emul="${emul}ltsmip"
8052 ;;
8053 esac
8054 case `/usr/bin/file conftest.$ac_objext` in
8055 *N32*)
8056 emul="${emul}n32"
8057 ;;
8058 esac
8059 LD="${LD-ld} -m $emul"
8060 fi
8061 rm -rf conftest*
8062 ;;
8063
8064 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8065 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8066 # Find out what ABI is being produced by ac_compile, and set linker
8067 # options accordingly. Note that the listed cases only cover the
8068 # situations where additional linker options are needed (such as when
8069 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8070 # vice versa); the common cases where no linker options are needed do
8071 # not appear in the list.
8072 echo 'int i;' > conftest.$ac_ext
8073 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8074 (eval $ac_compile) 2>&5
8075 ac_status=$?
8076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8077 test $ac_status = 0; }; then
8078 case `/usr/bin/file conftest.o` in
8079 *32-bit*)
8080 case $host in
8081 x86_64-*kfreebsd*-gnu)
8082 LD="${LD-ld} -m elf_i386_fbsd"
8083 ;;
8084 x86_64-*linux*)
8085 case `/usr/bin/file conftest.o` in
8086 *x86-64*)
8087 LD="${LD-ld} -m elf32_x86_64"
8088 ;;
8089 *)
8090 LD="${LD-ld} -m elf_i386"
8091 ;;
8092 esac
8093 ;;
8094 powerpc64le-*linux*)
8095 LD="${LD-ld} -m elf32lppclinux"
8096 ;;
8097 powerpc64-*linux*)
8098 LD="${LD-ld} -m elf32ppclinux"
8099 ;;
8100 s390x-*linux*)
8101 LD="${LD-ld} -m elf_s390"
8102 ;;
8103 sparc64-*linux*)
8104 LD="${LD-ld} -m elf32_sparc"
8105 ;;
8106 esac
8107 ;;
8108 *64-bit*)
8109 case $host in
8110 x86_64-*kfreebsd*-gnu)
8111 LD="${LD-ld} -m elf_x86_64_fbsd"
8112 ;;
8113 x86_64-*linux*)
8114 LD="${LD-ld} -m elf_x86_64"
8115 ;;
8116 powerpcle-*linux*)
8117 LD="${LD-ld} -m elf64lppc"
8118 ;;
8119 powerpc-*linux*)
8120 LD="${LD-ld} -m elf64ppc"
8121 ;;
8122 s390*-*linux*|s390*-*tpf*)
8123 LD="${LD-ld} -m elf64_s390"
8124 ;;
8125 sparc*-*linux*)
8126 LD="${LD-ld} -m elf64_sparc"
8127 ;;
8128 esac
8129 ;;
8130 esac
8131 fi
8132 rm -rf conftest*
8133 ;;
8134
8135 *-*-sco3.2v5*)
8136 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8137 SAVE_CFLAGS=$CFLAGS
8138 CFLAGS="$CFLAGS -belf"
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8140 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8141 if ${lt_cv_cc_needs_belf+:} false; then :
8142 $as_echo_n "(cached) " >&6
8143 else
8144 ac_ext=c
8145 ac_cpp='$CPP $CPPFLAGS'
8146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8149
8150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8151 /* end confdefs.h. */
8152
8153 int
8154 main ()
8155 {
8156
8157 ;
8158 return 0;
8159 }
8160 _ACEOF
8161 if ac_fn_c_try_link "$LINENO"; then :
8162 lt_cv_cc_needs_belf=yes
8163 else
8164 lt_cv_cc_needs_belf=no
8165 fi
8166 rm -f core conftest.err conftest.$ac_objext \
8167 conftest$ac_exeext conftest.$ac_ext
8168 ac_ext=c
8169 ac_cpp='$CPP $CPPFLAGS'
8170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8173
8174 fi
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8176 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8177 if test yes != "$lt_cv_cc_needs_belf"; then
8178 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8179 CFLAGS=$SAVE_CFLAGS
8180 fi
8181 ;;
8182 *-*solaris*)
8183 # Find out what ABI is being produced by ac_compile, and set linker
8184 # options accordingly.
8185 echo 'int i;' > conftest.$ac_ext
8186 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8187 (eval $ac_compile) 2>&5
8188 ac_status=$?
8189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8190 test $ac_status = 0; }; then
8191 case `/usr/bin/file conftest.o` in
8192 *64-bit*)
8193 case $lt_cv_prog_gnu_ld in
8194 yes*)
8195 case $host in
8196 i?86-*-solaris*|x86_64-*-solaris*)
8197 LD="${LD-ld} -m elf_x86_64"
8198 ;;
8199 sparc*-*-solaris*)
8200 LD="${LD-ld} -m elf64_sparc"
8201 ;;
8202 esac
8203 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8204 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8205 LD=${LD-ld}_sol2
8206 fi
8207 ;;
8208 *)
8209 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8210 LD="${LD-ld} -64"
8211 fi
8212 ;;
8213 esac
8214 ;;
8215 esac
8216 fi
8217 rm -rf conftest*
8218 ;;
8219 esac
8220
8221 need_locks=$enable_libtool_lock
8222
8223 if test -n "$ac_tool_prefix"; then
8224 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8225 set dummy ${ac_tool_prefix}mt; ac_word=$2
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8227 $as_echo_n "checking for $ac_word... " >&6; }
8228 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8229 $as_echo_n "(cached) " >&6
8230 else
8231 if test -n "$MANIFEST_TOOL"; then
8232 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8233 else
8234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8235 for as_dir in $PATH
8236 do
8237 IFS=$as_save_IFS
8238 test -z "$as_dir" && as_dir=.
8239 for ac_exec_ext in '' $ac_executable_extensions; do
8240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8241 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8243 break 2
8244 fi
8245 done
8246 done
8247 IFS=$as_save_IFS
8248
8249 fi
8250 fi
8251 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8252 if test -n "$MANIFEST_TOOL"; then
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8254 $as_echo "$MANIFEST_TOOL" >&6; }
8255 else
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8257 $as_echo "no" >&6; }
8258 fi
8259
8260
8261 fi
8262 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8263 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8264 # Extract the first word of "mt", so it can be a program name with args.
8265 set dummy mt; ac_word=$2
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8267 $as_echo_n "checking for $ac_word... " >&6; }
8268 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8269 $as_echo_n "(cached) " >&6
8270 else
8271 if test -n "$ac_ct_MANIFEST_TOOL"; then
8272 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8273 else
8274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8275 for as_dir in $PATH
8276 do
8277 IFS=$as_save_IFS
8278 test -z "$as_dir" && as_dir=.
8279 for ac_exec_ext in '' $ac_executable_extensions; do
8280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8281 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8283 break 2
8284 fi
8285 done
8286 done
8287 IFS=$as_save_IFS
8288
8289 fi
8290 fi
8291 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8292 if test -n "$ac_ct_MANIFEST_TOOL"; then
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8294 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8295 else
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8297 $as_echo "no" >&6; }
8298 fi
8299
8300 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8301 MANIFEST_TOOL=":"
8302 else
8303 case $cross_compiling:$ac_tool_warned in
8304 yes:)
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8306 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8307 ac_tool_warned=yes ;;
8308 esac
8309 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8310 fi
8311 else
8312 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8313 fi
8314
8315 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8317 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8318 if ${lt_cv_path_mainfest_tool+:} false; then :
8319 $as_echo_n "(cached) " >&6
8320 else
8321 lt_cv_path_mainfest_tool=no
8322 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8323 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8324 cat conftest.err >&5
8325 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8326 lt_cv_path_mainfest_tool=yes
8327 fi
8328 rm -f conftest*
8329 fi
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8331 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8332 if test yes != "$lt_cv_path_mainfest_tool"; then
8333 MANIFEST_TOOL=:
8334 fi
8335
8336
8337
8338
8339
8340
8341 case $host_os in
8342 rhapsody* | darwin*)
8343 if test -n "$ac_tool_prefix"; then
8344 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8345 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8347 $as_echo_n "checking for $ac_word... " >&6; }
8348 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8349 $as_echo_n "(cached) " >&6
8350 else
8351 if test -n "$DSYMUTIL"; then
8352 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8353 else
8354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8355 for as_dir in $PATH
8356 do
8357 IFS=$as_save_IFS
8358 test -z "$as_dir" && as_dir=.
8359 for ac_exec_ext in '' $ac_executable_extensions; do
8360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8361 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8363 break 2
8364 fi
8365 done
8366 done
8367 IFS=$as_save_IFS
8368
8369 fi
8370 fi
8371 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8372 if test -n "$DSYMUTIL"; then
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8374 $as_echo "$DSYMUTIL" >&6; }
8375 else
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8377 $as_echo "no" >&6; }
8378 fi
8379
8380
8381 fi
8382 if test -z "$ac_cv_prog_DSYMUTIL"; then
8383 ac_ct_DSYMUTIL=$DSYMUTIL
8384 # Extract the first word of "dsymutil", so it can be a program name with args.
8385 set dummy dsymutil; ac_word=$2
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8387 $as_echo_n "checking for $ac_word... " >&6; }
8388 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8389 $as_echo_n "(cached) " >&6
8390 else
8391 if test -n "$ac_ct_DSYMUTIL"; then
8392 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8393 else
8394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8395 for as_dir in $PATH
8396 do
8397 IFS=$as_save_IFS
8398 test -z "$as_dir" && as_dir=.
8399 for ac_exec_ext in '' $ac_executable_extensions; do
8400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8401 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8403 break 2
8404 fi
8405 done
8406 done
8407 IFS=$as_save_IFS
8408
8409 fi
8410 fi
8411 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8412 if test -n "$ac_ct_DSYMUTIL"; then
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8414 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8415 else
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8417 $as_echo "no" >&6; }
8418 fi
8419
8420 if test "x$ac_ct_DSYMUTIL" = x; then
8421 DSYMUTIL=":"
8422 else
8423 case $cross_compiling:$ac_tool_warned in
8424 yes:)
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8426 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8427 ac_tool_warned=yes ;;
8428 esac
8429 DSYMUTIL=$ac_ct_DSYMUTIL
8430 fi
8431 else
8432 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8433 fi
8434
8435 if test -n "$ac_tool_prefix"; then
8436 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8437 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8439 $as_echo_n "checking for $ac_word... " >&6; }
8440 if ${ac_cv_prog_NMEDIT+:} false; then :
8441 $as_echo_n "(cached) " >&6
8442 else
8443 if test -n "$NMEDIT"; then
8444 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8445 else
8446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8447 for as_dir in $PATH
8448 do
8449 IFS=$as_save_IFS
8450 test -z "$as_dir" && as_dir=.
8451 for ac_exec_ext in '' $ac_executable_extensions; do
8452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8453 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8455 break 2
8456 fi
8457 done
8458 done
8459 IFS=$as_save_IFS
8460
8461 fi
8462 fi
8463 NMEDIT=$ac_cv_prog_NMEDIT
8464 if test -n "$NMEDIT"; then
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8466 $as_echo "$NMEDIT" >&6; }
8467 else
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8469 $as_echo "no" >&6; }
8470 fi
8471
8472
8473 fi
8474 if test -z "$ac_cv_prog_NMEDIT"; then
8475 ac_ct_NMEDIT=$NMEDIT
8476 # Extract the first word of "nmedit", so it can be a program name with args.
8477 set dummy nmedit; ac_word=$2
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8479 $as_echo_n "checking for $ac_word... " >&6; }
8480 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8481 $as_echo_n "(cached) " >&6
8482 else
8483 if test -n "$ac_ct_NMEDIT"; then
8484 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8485 else
8486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8487 for as_dir in $PATH
8488 do
8489 IFS=$as_save_IFS
8490 test -z "$as_dir" && as_dir=.
8491 for ac_exec_ext in '' $ac_executable_extensions; do
8492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8493 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8495 break 2
8496 fi
8497 done
8498 done
8499 IFS=$as_save_IFS
8500
8501 fi
8502 fi
8503 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8504 if test -n "$ac_ct_NMEDIT"; then
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8506 $as_echo "$ac_ct_NMEDIT" >&6; }
8507 else
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8509 $as_echo "no" >&6; }
8510 fi
8511
8512 if test "x$ac_ct_NMEDIT" = x; then
8513 NMEDIT=":"
8514 else
8515 case $cross_compiling:$ac_tool_warned in
8516 yes:)
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8518 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8519 ac_tool_warned=yes ;;
8520 esac
8521 NMEDIT=$ac_ct_NMEDIT
8522 fi
8523 else
8524 NMEDIT="$ac_cv_prog_NMEDIT"
8525 fi
8526
8527 if test -n "$ac_tool_prefix"; then
8528 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8529 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8531 $as_echo_n "checking for $ac_word... " >&6; }
8532 if ${ac_cv_prog_LIPO+:} false; then :
8533 $as_echo_n "(cached) " >&6
8534 else
8535 if test -n "$LIPO"; then
8536 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8537 else
8538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8539 for as_dir in $PATH
8540 do
8541 IFS=$as_save_IFS
8542 test -z "$as_dir" && as_dir=.
8543 for ac_exec_ext in '' $ac_executable_extensions; do
8544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8545 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8547 break 2
8548 fi
8549 done
8550 done
8551 IFS=$as_save_IFS
8552
8553 fi
8554 fi
8555 LIPO=$ac_cv_prog_LIPO
8556 if test -n "$LIPO"; then
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8558 $as_echo "$LIPO" >&6; }
8559 else
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8561 $as_echo "no" >&6; }
8562 fi
8563
8564
8565 fi
8566 if test -z "$ac_cv_prog_LIPO"; then
8567 ac_ct_LIPO=$LIPO
8568 # Extract the first word of "lipo", so it can be a program name with args.
8569 set dummy lipo; ac_word=$2
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8571 $as_echo_n "checking for $ac_word... " >&6; }
8572 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8573 $as_echo_n "(cached) " >&6
8574 else
8575 if test -n "$ac_ct_LIPO"; then
8576 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8577 else
8578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8579 for as_dir in $PATH
8580 do
8581 IFS=$as_save_IFS
8582 test -z "$as_dir" && as_dir=.
8583 for ac_exec_ext in '' $ac_executable_extensions; do
8584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8585 ac_cv_prog_ac_ct_LIPO="lipo"
8586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8587 break 2
8588 fi
8589 done
8590 done
8591 IFS=$as_save_IFS
8592
8593 fi
8594 fi
8595 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8596 if test -n "$ac_ct_LIPO"; then
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8598 $as_echo "$ac_ct_LIPO" >&6; }
8599 else
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8601 $as_echo "no" >&6; }
8602 fi
8603
8604 if test "x$ac_ct_LIPO" = x; then
8605 LIPO=":"
8606 else
8607 case $cross_compiling:$ac_tool_warned in
8608 yes:)
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8610 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8611 ac_tool_warned=yes ;;
8612 esac
8613 LIPO=$ac_ct_LIPO
8614 fi
8615 else
8616 LIPO="$ac_cv_prog_LIPO"
8617 fi
8618
8619 if test -n "$ac_tool_prefix"; then
8620 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8621 set dummy ${ac_tool_prefix}otool; ac_word=$2
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8623 $as_echo_n "checking for $ac_word... " >&6; }
8624 if ${ac_cv_prog_OTOOL+:} false; then :
8625 $as_echo_n "(cached) " >&6
8626 else
8627 if test -n "$OTOOL"; then
8628 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8629 else
8630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8631 for as_dir in $PATH
8632 do
8633 IFS=$as_save_IFS
8634 test -z "$as_dir" && as_dir=.
8635 for ac_exec_ext in '' $ac_executable_extensions; do
8636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8637 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8639 break 2
8640 fi
8641 done
8642 done
8643 IFS=$as_save_IFS
8644
8645 fi
8646 fi
8647 OTOOL=$ac_cv_prog_OTOOL
8648 if test -n "$OTOOL"; then
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8650 $as_echo "$OTOOL" >&6; }
8651 else
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8653 $as_echo "no" >&6; }
8654 fi
8655
8656
8657 fi
8658 if test -z "$ac_cv_prog_OTOOL"; then
8659 ac_ct_OTOOL=$OTOOL
8660 # Extract the first word of "otool", so it can be a program name with args.
8661 set dummy otool; ac_word=$2
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8663 $as_echo_n "checking for $ac_word... " >&6; }
8664 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8665 $as_echo_n "(cached) " >&6
8666 else
8667 if test -n "$ac_ct_OTOOL"; then
8668 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8669 else
8670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8671 for as_dir in $PATH
8672 do
8673 IFS=$as_save_IFS
8674 test -z "$as_dir" && as_dir=.
8675 for ac_exec_ext in '' $ac_executable_extensions; do
8676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8677 ac_cv_prog_ac_ct_OTOOL="otool"
8678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8679 break 2
8680 fi
8681 done
8682 done
8683 IFS=$as_save_IFS
8684
8685 fi
8686 fi
8687 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8688 if test -n "$ac_ct_OTOOL"; then
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8690 $as_echo "$ac_ct_OTOOL" >&6; }
8691 else
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8693 $as_echo "no" >&6; }
8694 fi
8695
8696 if test "x$ac_ct_OTOOL" = x; then
8697 OTOOL=":"
8698 else
8699 case $cross_compiling:$ac_tool_warned in
8700 yes:)
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8702 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8703 ac_tool_warned=yes ;;
8704 esac
8705 OTOOL=$ac_ct_OTOOL
8706 fi
8707 else
8708 OTOOL="$ac_cv_prog_OTOOL"
8709 fi
8710
8711 if test -n "$ac_tool_prefix"; then
8712 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8713 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8715 $as_echo_n "checking for $ac_word... " >&6; }
8716 if ${ac_cv_prog_OTOOL64+:} false; then :
8717 $as_echo_n "(cached) " >&6
8718 else
8719 if test -n "$OTOOL64"; then
8720 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8721 else
8722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8723 for as_dir in $PATH
8724 do
8725 IFS=$as_save_IFS
8726 test -z "$as_dir" && as_dir=.
8727 for ac_exec_ext in '' $ac_executable_extensions; do
8728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8729 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8731 break 2
8732 fi
8733 done
8734 done
8735 IFS=$as_save_IFS
8736
8737 fi
8738 fi
8739 OTOOL64=$ac_cv_prog_OTOOL64
8740 if test -n "$OTOOL64"; then
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8742 $as_echo "$OTOOL64" >&6; }
8743 else
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8745 $as_echo "no" >&6; }
8746 fi
8747
8748
8749 fi
8750 if test -z "$ac_cv_prog_OTOOL64"; then
8751 ac_ct_OTOOL64=$OTOOL64
8752 # Extract the first word of "otool64", so it can be a program name with args.
8753 set dummy otool64; ac_word=$2
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8755 $as_echo_n "checking for $ac_word... " >&6; }
8756 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8757 $as_echo_n "(cached) " >&6
8758 else
8759 if test -n "$ac_ct_OTOOL64"; then
8760 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8761 else
8762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8763 for as_dir in $PATH
8764 do
8765 IFS=$as_save_IFS
8766 test -z "$as_dir" && as_dir=.
8767 for ac_exec_ext in '' $ac_executable_extensions; do
8768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8769 ac_cv_prog_ac_ct_OTOOL64="otool64"
8770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8771 break 2
8772 fi
8773 done
8774 done
8775 IFS=$as_save_IFS
8776
8777 fi
8778 fi
8779 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8780 if test -n "$ac_ct_OTOOL64"; then
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8782 $as_echo "$ac_ct_OTOOL64" >&6; }
8783 else
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8785 $as_echo "no" >&6; }
8786 fi
8787
8788 if test "x$ac_ct_OTOOL64" = x; then
8789 OTOOL64=":"
8790 else
8791 case $cross_compiling:$ac_tool_warned in
8792 yes:)
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8794 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8795 ac_tool_warned=yes ;;
8796 esac
8797 OTOOL64=$ac_ct_OTOOL64
8798 fi
8799 else
8800 OTOOL64="$ac_cv_prog_OTOOL64"
8801 fi
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8830 $as_echo_n "checking for -single_module linker flag... " >&6; }
8831 if ${lt_cv_apple_cc_single_mod+:} false; then :
8832 $as_echo_n "(cached) " >&6
8833 else
8834 lt_cv_apple_cc_single_mod=no
8835 if test -z "$LT_MULTI_MODULE"; then
8836 # By default we will add the -single_module flag. You can override
8837 # by either setting the environment variable LT_MULTI_MODULE
8838 # non-empty at configure time, or by adding -multi_module to the
8839 # link flags.
8840 rm -rf libconftest.dylib*
8841 echo "int foo(void){return 1;}" > conftest.c
8842 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8843 -dynamiclib -Wl,-single_module conftest.c" >&5
8844 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8845 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8846 _lt_result=$?
8847 # If there is a non-empty error log, and "single_module"
8848 # appears in it, assume the flag caused a linker warning
8849 if test -s conftest.err && $GREP single_module conftest.err; then
8850 cat conftest.err >&5
8851 # Otherwise, if the output was created with a 0 exit code from
8852 # the compiler, it worked.
8853 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8854 lt_cv_apple_cc_single_mod=yes
8855 else
8856 cat conftest.err >&5
8857 fi
8858 rm -rf libconftest.dylib*
8859 rm -f conftest.*
8860 fi
8861 fi
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8863 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8864
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8866 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8867 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8868 $as_echo_n "(cached) " >&6
8869 else
8870 lt_cv_ld_exported_symbols_list=no
8871 save_LDFLAGS=$LDFLAGS
8872 echo "_main" > conftest.sym
8873 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8875 /* end confdefs.h. */
8876
8877 int
8878 main ()
8879 {
8880
8881 ;
8882 return 0;
8883 }
8884 _ACEOF
8885 if ac_fn_c_try_link "$LINENO"; then :
8886 lt_cv_ld_exported_symbols_list=yes
8887 else
8888 lt_cv_ld_exported_symbols_list=no
8889 fi
8890 rm -f core conftest.err conftest.$ac_objext \
8891 conftest$ac_exeext conftest.$ac_ext
8892 LDFLAGS=$save_LDFLAGS
8893
8894 fi
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8896 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8897
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8899 $as_echo_n "checking for -force_load linker flag... " >&6; }
8900 if ${lt_cv_ld_force_load+:} false; then :
8901 $as_echo_n "(cached) " >&6
8902 else
8903 lt_cv_ld_force_load=no
8904 cat > conftest.c << _LT_EOF
8905 int forced_loaded() { return 2;}
8906 _LT_EOF
8907 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8908 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8909 echo "$AR cru libconftest.a conftest.o" >&5
8910 $AR cru libconftest.a conftest.o 2>&5
8911 echo "$RANLIB libconftest.a" >&5
8912 $RANLIB libconftest.a 2>&5
8913 cat > conftest.c << _LT_EOF
8914 int main() { return 0;}
8915 _LT_EOF
8916 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8917 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8918 _lt_result=$?
8919 if test -s conftest.err && $GREP force_load conftest.err; then
8920 cat conftest.err >&5
8921 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8922 lt_cv_ld_force_load=yes
8923 else
8924 cat conftest.err >&5
8925 fi
8926 rm -f conftest.err libconftest.a conftest conftest.c
8927 rm -rf conftest.dSYM
8928
8929 fi
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8931 $as_echo "$lt_cv_ld_force_load" >&6; }
8932 case $host_os in
8933 rhapsody* | darwin1.[012])
8934 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8935 darwin1.*)
8936 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8937 darwin*) # darwin 5.x on
8938 # if running on 10.5 or later, the deployment target defaults
8939 # to the OS version, if on x86, and 10.4, the deployment
8940 # target defaults to 10.4. Don't you love it?
8941 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8942 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8943 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8944 10.[012][,.]*)
8945 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8946 10.*)
8947 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8948 esac
8949 ;;
8950 esac
8951 if test yes = "$lt_cv_apple_cc_single_mod"; then
8952 _lt_dar_single_mod='$single_module'
8953 fi
8954 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8955 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8956 else
8957 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8958 fi
8959 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8960 _lt_dsymutil='~$DSYMUTIL $lib || :'
8961 else
8962 _lt_dsymutil=
8963 fi
8964 ;;
8965 esac
8966
8967 # func_munge_path_list VARIABLE PATH
8968 # -----------------------------------
8969 # VARIABLE is name of variable containing _space_ separated list of
8970 # directories to be munged by the contents of PATH, which is string
8971 # having a format:
8972 # "DIR[:DIR]:"
8973 # string "DIR[ DIR]" will be prepended to VARIABLE
8974 # ":DIR[:DIR]"
8975 # string "DIR[ DIR]" will be appended to VARIABLE
8976 # "DIRP[:DIRP]::[DIRA:]DIRA"
8977 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8978 # "DIRA[ DIRA]" will be appended to VARIABLE
8979 # "DIR[:DIR]"
8980 # VARIABLE will be replaced by "DIR[ DIR]"
8981 func_munge_path_list ()
8982 {
8983 case x$2 in
8984 x)
8985 ;;
8986 *:)
8987 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8988 ;;
8989 x:*)
8990 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8991 ;;
8992 *::*)
8993 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8994 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8995 ;;
8996 *)
8997 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8998 ;;
8999 esac
9000 }
9001
9002
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9004 $as_echo_n "checking for ANSI C header files... " >&6; }
9005 if ${ac_cv_header_stdc+:} false; then :
9006 $as_echo_n "(cached) " >&6
9007 else
9008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9009 /* end confdefs.h. */
9010 #include <stdlib.h>
9011 #include <stdarg.h>
9012 #include <string.h>
9013 #include <float.h>
9014
9015 int
9016 main ()
9017 {
9018
9019 ;
9020 return 0;
9021 }
9022 _ACEOF
9023 if ac_fn_c_try_compile "$LINENO"; then :
9024 ac_cv_header_stdc=yes
9025 else
9026 ac_cv_header_stdc=no
9027 fi
9028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9029
9030 if test $ac_cv_header_stdc = yes; then
9031 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9033 /* end confdefs.h. */
9034 #include <string.h>
9035
9036 _ACEOF
9037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9038 $EGREP "memchr" >/dev/null 2>&1; then :
9039
9040 else
9041 ac_cv_header_stdc=no
9042 fi
9043 rm -f conftest*
9044
9045 fi
9046
9047 if test $ac_cv_header_stdc = yes; then
9048 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9050 /* end confdefs.h. */
9051 #include <stdlib.h>
9052
9053 _ACEOF
9054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9055 $EGREP "free" >/dev/null 2>&1; then :
9056
9057 else
9058 ac_cv_header_stdc=no
9059 fi
9060 rm -f conftest*
9061
9062 fi
9063
9064 if test $ac_cv_header_stdc = yes; then
9065 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9066 if test "$cross_compiling" = yes; then :
9067 :
9068 else
9069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9070 /* end confdefs.h. */
9071 #include <ctype.h>
9072 #include <stdlib.h>
9073 #if ((' ' & 0x0FF) == 0x020)
9074 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9075 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9076 #else
9077 # define ISLOWER(c) \
9078 (('a' <= (c) && (c) <= 'i') \
9079 || ('j' <= (c) && (c) <= 'r') \
9080 || ('s' <= (c) && (c) <= 'z'))
9081 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9082 #endif
9083
9084 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9085 int
9086 main ()
9087 {
9088 int i;
9089 for (i = 0; i < 256; i++)
9090 if (XOR (islower (i), ISLOWER (i))
9091 || toupper (i) != TOUPPER (i))
9092 return 2;
9093 return 0;
9094 }
9095 _ACEOF
9096 if ac_fn_c_try_run "$LINENO"; then :
9097
9098 else
9099 ac_cv_header_stdc=no
9100 fi
9101 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9102 conftest.$ac_objext conftest.beam conftest.$ac_ext
9103 fi
9104
9105 fi
9106 fi
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9108 $as_echo "$ac_cv_header_stdc" >&6; }
9109 if test $ac_cv_header_stdc = yes; then
9110
9111 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9112
9113 fi
9114
9115 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9116 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9117 inttypes.h stdint.h unistd.h
9118 do :
9119 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9120 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9121 "
9122 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9123 cat >>confdefs.h <<_ACEOF
9124 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9125 _ACEOF
9126
9127 fi
9128
9129 done
9130
9131
9132 for ac_header in dlfcn.h
9133 do :
9134 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9135 "
9136 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9137 cat >>confdefs.h <<_ACEOF
9138 #define HAVE_DLFCN_H 1
9139 _ACEOF
9140
9141 fi
9142
9143 done
9144
9145
9146
9147
9148 func_stripname_cnf ()
9149 {
9150 case $2 in
9151 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
9152 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
9153 esac
9154 } # func_stripname_cnf
9155
9156
9157
9158
9159
9160 # Set options
9161
9162
9163
9164 enable_dlopen=no
9165
9166
9167 enable_win32_dll=no
9168
9169
9170 # Check whether --enable-shared was given.
9171 if test "${enable_shared+set}" = set; then :
9172 enableval=$enable_shared; p=${PACKAGE-default}
9173 case $enableval in
9174 yes) enable_shared=yes ;;
9175 no) enable_shared=no ;;
9176 *)
9177 enable_shared=no
9178 # Look at the argument we got. We use all the common list separators.
9179 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9180 for pkg in $enableval; do
9181 IFS=$lt_save_ifs
9182 if test "X$pkg" = "X$p"; then
9183 enable_shared=yes
9184 fi
9185 done
9186 IFS=$lt_save_ifs
9187 ;;
9188 esac
9189 else
9190 enable_shared=yes
9191 fi
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201 # Check whether --enable-static was given.
9202 if test "${enable_static+set}" = set; then :
9203 enableval=$enable_static; p=${PACKAGE-default}
9204 case $enableval in
9205 yes) enable_static=yes ;;
9206 no) enable_static=no ;;
9207 *)
9208 enable_static=no
9209 # Look at the argument we got. We use all the common list separators.
9210 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9211 for pkg in $enableval; do
9212 IFS=$lt_save_ifs
9213 if test "X$pkg" = "X$p"; then
9214 enable_static=yes
9215 fi
9216 done
9217 IFS=$lt_save_ifs
9218 ;;
9219 esac
9220 else
9221 enable_static=yes
9222 fi
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233 # Check whether --with-pic was given.
9234 if test "${with_pic+set}" = set; then :
9235 withval=$with_pic; lt_p=${PACKAGE-default}
9236 case $withval in
9237 yes|no) pic_mode=$withval ;;
9238 *)
9239 pic_mode=default
9240 # Look at the argument we got. We use all the common list separators.
9241 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9242 for lt_pkg in $withval; do
9243 IFS=$lt_save_ifs
9244 if test "X$lt_pkg" = "X$lt_p"; then
9245 pic_mode=yes
9246 fi
9247 done
9248 IFS=$lt_save_ifs
9249 ;;
9250 esac
9251 else
9252 pic_mode=default
9253 fi
9254
9255
9256
9257
9258
9259
9260
9261
9262 # Check whether --enable-fast-install was given.
9263 if test "${enable_fast_install+set}" = set; then :
9264 enableval=$enable_fast_install; p=${PACKAGE-default}
9265 case $enableval in
9266 yes) enable_fast_install=yes ;;
9267 no) enable_fast_install=no ;;
9268 *)
9269 enable_fast_install=no
9270 # Look at the argument we got. We use all the common list separators.
9271 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9272 for pkg in $enableval; do
9273 IFS=$lt_save_ifs
9274 if test "X$pkg" = "X$p"; then
9275 enable_fast_install=yes
9276 fi
9277 done
9278 IFS=$lt_save_ifs
9279 ;;
9280 esac
9281 else
9282 enable_fast_install=yes
9283 fi
9284
9285
9286
9287
9288
9289
9290
9291
9292 shared_archive_member_spec=
9293 case $host,$enable_shared in
9294 power*-*-aix[5-9]*,yes)
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9296 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9297
9298 # Check whether --with-aix-soname was given.
9299 if test "${with_aix_soname+set}" = set; then :
9300 withval=$with_aix_soname; case $withval in
9301 aix|svr4|both)
9302 ;;
9303 *)
9304 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9305 ;;
9306 esac
9307 lt_cv_with_aix_soname=$with_aix_soname
9308 else
9309 if ${lt_cv_with_aix_soname+:} false; then :
9310 $as_echo_n "(cached) " >&6
9311 else
9312 lt_cv_with_aix_soname=aix
9313 fi
9314
9315 with_aix_soname=$lt_cv_with_aix_soname
9316 fi
9317
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9319 $as_echo "$with_aix_soname" >&6; }
9320 if test aix != "$with_aix_soname"; then
9321 # For the AIX way of multilib, we name the shared archive member
9322 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9323 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9324 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9325 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9326 if test 64 = "${OBJECT_MODE-32}"; then
9327 shared_archive_member_spec=shr_64
9328 else
9329 shared_archive_member_spec=shr
9330 fi
9331 fi
9332 ;;
9333 *)
9334 with_aix_soname=aix
9335 ;;
9336 esac
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347 # This can be used to rebuild libtool when needed
9348 LIBTOOL_DEPS=$ltmain
9349
9350 # Always use our own libtool.
9351 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382 test -z "$LN_S" && LN_S="ln -s"
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397 if test -n "${ZSH_VERSION+set}"; then
9398 setopt NO_GLOB_SUBST
9399 fi
9400
9401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9402 $as_echo_n "checking for objdir... " >&6; }
9403 if ${lt_cv_objdir+:} false; then :
9404 $as_echo_n "(cached) " >&6
9405 else
9406 rm -f .libs 2>/dev/null
9407 mkdir .libs 2>/dev/null
9408 if test -d .libs; then
9409 lt_cv_objdir=.libs
9410 else
9411 # MS-DOS does not allow filenames that begin with a dot.
9412 lt_cv_objdir=_libs
9413 fi
9414 rmdir .libs 2>/dev/null
9415 fi
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9417 $as_echo "$lt_cv_objdir" >&6; }
9418 objdir=$lt_cv_objdir
9419
9420
9421
9422
9423
9424 cat >>confdefs.h <<_ACEOF
9425 #define LT_OBJDIR "$lt_cv_objdir/"
9426 _ACEOF
9427
9428
9429
9430
9431 case $host_os in
9432 aix3*)
9433 # AIX sometimes has problems with the GCC collect2 program. For some
9434 # reason, if we set the COLLECT_NAMES environment variable, the problems
9435 # vanish in a puff of smoke.
9436 if test set != "${COLLECT_NAMES+set}"; then
9437 COLLECT_NAMES=
9438 export COLLECT_NAMES
9439 fi
9440 ;;
9441 esac
9442
9443 # Global variables:
9444 ofile=libtool
9445 can_build_shared=yes
9446
9447 # All known linkers require a '.a' archive for static linking (except MSVC,
9448 # which needs '.lib').
9449 libext=a
9450
9451 with_gnu_ld=$lt_cv_prog_gnu_ld
9452
9453 old_CC=$CC
9454 old_CFLAGS=$CFLAGS
9455
9456 # Set sane defaults for various variables
9457 test -z "$CC" && CC=cc
9458 test -z "$LTCC" && LTCC=$CC
9459 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9460 test -z "$LD" && LD=ld
9461 test -z "$ac_objext" && ac_objext=o
9462
9463 func_cc_basename $compiler
9464 cc_basename=$func_cc_basename_result
9465
9466
9467 # Only perform the check for file, if the check method requires it
9468 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9469 case $deplibs_check_method in
9470 file_magic*)
9471 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9473 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9474 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9475 $as_echo_n "(cached) " >&6
9476 else
9477 case $MAGIC_CMD in
9478 [\\/*] | ?:[\\/]*)
9479 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9480 ;;
9481 *)
9482 lt_save_MAGIC_CMD=$MAGIC_CMD
9483 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9484 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9485 for ac_dir in $ac_dummy; do
9486 IFS=$lt_save_ifs
9487 test -z "$ac_dir" && ac_dir=.
9488 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9489 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9490 if test -n "$file_magic_test_file"; then
9491 case $deplibs_check_method in
9492 "file_magic "*)
9493 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9494 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9495 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9496 $EGREP "$file_magic_regex" > /dev/null; then
9497 :
9498 else
9499 cat <<_LT_EOF 1>&2
9500
9501 *** Warning: the command libtool uses to detect shared libraries,
9502 *** $file_magic_cmd, produces output that libtool cannot recognize.
9503 *** The result is that libtool may fail to recognize shared libraries
9504 *** as such. This will affect the creation of libtool libraries that
9505 *** depend on shared libraries, but programs linked with such libtool
9506 *** libraries will work regardless of this problem. Nevertheless, you
9507 *** may want to report the problem to your system manager and/or to
9508 *** [email protected]
9509
9510 _LT_EOF
9511 fi ;;
9512 esac
9513 fi
9514 break
9515 fi
9516 done
9517 IFS=$lt_save_ifs
9518 MAGIC_CMD=$lt_save_MAGIC_CMD
9519 ;;
9520 esac
9521 fi
9522
9523 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9524 if test -n "$MAGIC_CMD"; then
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9526 $as_echo "$MAGIC_CMD" >&6; }
9527 else
9528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9529 $as_echo "no" >&6; }
9530 fi
9531
9532
9533
9534
9535
9536 if test -z "$lt_cv_path_MAGIC_CMD"; then
9537 if test -n "$ac_tool_prefix"; then
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9539 $as_echo_n "checking for file... " >&6; }
9540 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9541 $as_echo_n "(cached) " >&6
9542 else
9543 case $MAGIC_CMD in
9544 [\\/*] | ?:[\\/]*)
9545 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9546 ;;
9547 *)
9548 lt_save_MAGIC_CMD=$MAGIC_CMD
9549 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9550 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9551 for ac_dir in $ac_dummy; do
9552 IFS=$lt_save_ifs
9553 test -z "$ac_dir" && ac_dir=.
9554 if test -f "$ac_dir/file"; then
9555 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9556 if test -n "$file_magic_test_file"; then
9557 case $deplibs_check_method in
9558 "file_magic "*)
9559 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9560 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9561 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9562 $EGREP "$file_magic_regex" > /dev/null; then
9563 :
9564 else
9565 cat <<_LT_EOF 1>&2
9566
9567 *** Warning: the command libtool uses to detect shared libraries,
9568 *** $file_magic_cmd, produces output that libtool cannot recognize.
9569 *** The result is that libtool may fail to recognize shared libraries
9570 *** as such. This will affect the creation of libtool libraries that
9571 *** depend on shared libraries, but programs linked with such libtool
9572 *** libraries will work regardless of this problem. Nevertheless, you
9573 *** may want to report the problem to your system manager and/or to
9574 *** [email protected]
9575
9576 _LT_EOF
9577 fi ;;
9578 esac
9579 fi
9580 break
9581 fi
9582 done
9583 IFS=$lt_save_ifs
9584 MAGIC_CMD=$lt_save_MAGIC_CMD
9585 ;;
9586 esac
9587 fi
9588
9589 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9590 if test -n "$MAGIC_CMD"; then
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9592 $as_echo "$MAGIC_CMD" >&6; }
9593 else
9594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9595 $as_echo "no" >&6; }
9596 fi
9597
9598
9599 else
9600 MAGIC_CMD=:
9601 fi
9602 fi
9603
9604 fi
9605 ;;
9606 esac
9607
9608 # Use C for the default configuration in the libtool script
9609
9610 lt_save_CC=$CC
9611 ac_ext=c
9612 ac_cpp='$CPP $CPPFLAGS'
9613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9616
9617
9618 # Source file extension for C test sources.
9619 ac_ext=c
9620
9621 # Object file extension for compiled C test sources.
9622 objext=o
9623 objext=$objext
9624
9625 # Code to be used in simple compile tests
9626 lt_simple_compile_test_code="int some_variable = 0;"
9627
9628 # Code to be used in simple link tests
9629 lt_simple_link_test_code='int main(){return(0);}'
9630
9631
9632
9633
9634
9635
9636
9637 # If no C compiler was specified, use CC.
9638 LTCC=${LTCC-"$CC"}
9639
9640 # If no C compiler flags were specified, use CFLAGS.
9641 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9642
9643 # Allow CC to be a program name with arguments.
9644 compiler=$CC
9645
9646 # Save the default compiler, since it gets overwritten when the other
9647 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9648 compiler_DEFAULT=$CC
9649
9650 # save warnings/boilerplate of simple test code
9651 ac_outfile=conftest.$ac_objext
9652 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9653 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9654 _lt_compiler_boilerplate=`cat conftest.err`
9655 $RM conftest*
9656
9657 ac_outfile=conftest.$ac_objext
9658 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9659 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9660 _lt_linker_boilerplate=`cat conftest.err`
9661 $RM -r conftest*
9662
9663
9664 ## CAVEAT EMPTOR:
9665 ## There is no encapsulation within the following macros, do not change
9666 ## the running order or otherwise move them around unless you know exactly
9667 ## what you are doing...
9668 if test -n "$compiler"; then
9669
9670 lt_prog_compiler_no_builtin_flag=
9671
9672 if test yes = "$GCC"; then
9673 case $cc_basename in
9674 nvcc*)
9675 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9676 *)
9677 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9678 esac
9679
9680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9681 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9682 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9683 $as_echo_n "(cached) " >&6
9684 else
9685 lt_cv_prog_compiler_rtti_exceptions=no
9686 ac_outfile=conftest.$ac_objext
9687 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9688 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9689 # Insert the option either (1) after the last *FLAGS variable, or
9690 # (2) before a word containing "conftest.", or (3) at the end.
9691 # Note that $ac_compile itself does not contain backslashes and begins
9692 # with a dollar sign (not a hyphen), so the echo should work correctly.
9693 # The option is referenced via a variable to avoid confusing sed.
9694 lt_compile=`echo "$ac_compile" | $SED \
9695 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9696 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9697 -e 's:$: $lt_compiler_flag:'`
9698 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9699 (eval "$lt_compile" 2>conftest.err)
9700 ac_status=$?
9701 cat conftest.err >&5
9702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9703 if (exit $ac_status) && test -s "$ac_outfile"; then
9704 # The compiler can only warn and ignore the option if not recognized
9705 # So say no if there are warnings other than the usual output.
9706 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9707 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9708 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9709 lt_cv_prog_compiler_rtti_exceptions=yes
9710 fi
9711 fi
9712 $RM conftest*
9713
9714 fi
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9716 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9717
9718 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9719 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9720 else
9721 :
9722 fi
9723
9724 fi
9725
9726
9727
9728
9729
9730
9731 lt_prog_compiler_wl=
9732 lt_prog_compiler_pic=
9733 lt_prog_compiler_static=
9734
9735
9736 if test yes = "$GCC"; then
9737 lt_prog_compiler_wl='-Wl,'
9738 lt_prog_compiler_static='-static'
9739
9740 case $host_os in
9741 aix*)
9742 # All AIX code is PIC.
9743 if test ia64 = "$host_cpu"; then
9744 # AIX 5 now supports IA64 processor
9745 lt_prog_compiler_static='-Bstatic'
9746 fi
9747 lt_prog_compiler_pic='-fPIC'
9748 ;;
9749
9750 amigaos*)
9751 case $host_cpu in
9752 powerpc)
9753 # see comment about AmigaOS4 .so support
9754 lt_prog_compiler_pic='-fPIC'
9755 ;;
9756 m68k)
9757 # FIXME: we need at least 68020 code to build shared libraries, but
9758 # adding the '-m68020' flag to GCC prevents building anything better,
9759 # like '-m68040'.
9760 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9761 ;;
9762 esac
9763 ;;
9764
9765 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9766 # PIC is the default for these OSes.
9767 ;;
9768
9769 mingw* | cygwin* | pw32* | os2* | cegcc*)
9770 # This hack is so that the source file can tell whether it is being
9771 # built for inclusion in a dll (and should export symbols for example).
9772 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9773 # (--disable-auto-import) libraries
9774 lt_prog_compiler_pic='-DDLL_EXPORT'
9775 case $host_os in
9776 os2*)
9777 lt_prog_compiler_static='$wl-static'
9778 ;;
9779 esac
9780 ;;
9781
9782 darwin* | rhapsody*)
9783 # PIC is the default on this platform
9784 # Common symbols not allowed in MH_DYLIB files
9785 lt_prog_compiler_pic='-fno-common'
9786 ;;
9787
9788 haiku*)
9789 # PIC is the default for Haiku.
9790 # The "-static" flag exists, but is broken.
9791 lt_prog_compiler_static=
9792 ;;
9793
9794 hpux*)
9795 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9796 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9797 # sets the default TLS model and affects inlining.
9798 case $host_cpu in
9799 hppa*64*)
9800 # +Z the default
9801 ;;
9802 *)
9803 lt_prog_compiler_pic='-fPIC'
9804 ;;
9805 esac
9806 ;;
9807
9808 interix[3-9]*)
9809 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9810 # Instead, we relocate shared libraries at runtime.
9811 ;;
9812
9813 msdosdjgpp*)
9814 # Just because we use GCC doesn't mean we suddenly get shared libraries
9815 # on systems that don't support them.
9816 lt_prog_compiler_can_build_shared=no
9817 enable_shared=no
9818 ;;
9819
9820 *nto* | *qnx*)
9821 # QNX uses GNU C++, but need to define -shared option too, otherwise
9822 # it will coredump.
9823 lt_prog_compiler_pic='-fPIC -shared'
9824 ;;
9825
9826 sysv4*MP*)
9827 if test -d /usr/nec; then
9828 lt_prog_compiler_pic=-Kconform_pic
9829 fi
9830 ;;
9831
9832 *)
9833 lt_prog_compiler_pic='-fPIC'
9834 ;;
9835 esac
9836
9837 case $cc_basename in
9838 nvcc*) # Cuda Compiler Driver 2.2
9839 lt_prog_compiler_wl='-Xlinker '
9840 if test -n "$lt_prog_compiler_pic"; then
9841 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9842 fi
9843 ;;
9844 esac
9845 else
9846 # PORTME Check for flag to pass linker flags through the system compiler.
9847 case $host_os in
9848 aix*)
9849 lt_prog_compiler_wl='-Wl,'
9850 if test ia64 = "$host_cpu"; then
9851 # AIX 5 now supports IA64 processor
9852 lt_prog_compiler_static='-Bstatic'
9853 else
9854 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9855 fi
9856 ;;
9857
9858 darwin* | rhapsody*)
9859 # PIC is the default on this platform
9860 # Common symbols not allowed in MH_DYLIB files
9861 lt_prog_compiler_pic='-fno-common'
9862 case $cc_basename in
9863 nagfor*)
9864 # NAG Fortran compiler
9865 lt_prog_compiler_wl='-Wl,-Wl,,'
9866 lt_prog_compiler_pic='-PIC'
9867 lt_prog_compiler_static='-Bstatic'
9868 ;;
9869 esac
9870 ;;
9871
9872 mingw* | cygwin* | pw32* | os2* | cegcc*)
9873 # This hack is so that the source file can tell whether it is being
9874 # built for inclusion in a dll (and should export symbols for example).
9875 lt_prog_compiler_pic='-DDLL_EXPORT'
9876 case $host_os in
9877 os2*)
9878 lt_prog_compiler_static='$wl-static'
9879 ;;
9880 esac
9881 ;;
9882
9883 hpux9* | hpux10* | hpux11*)
9884 lt_prog_compiler_wl='-Wl,'
9885 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9886 # not for PA HP-UX.
9887 case $host_cpu in
9888 hppa*64*|ia64*)
9889 # +Z the default
9890 ;;
9891 *)
9892 lt_prog_compiler_pic='+Z'
9893 ;;
9894 esac
9895 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9896 lt_prog_compiler_static='$wl-a ${wl}archive'
9897 ;;
9898
9899 irix5* | irix6* | nonstopux*)
9900 lt_prog_compiler_wl='-Wl,'
9901 # PIC (with -KPIC) is the default.
9902 lt_prog_compiler_static='-non_shared'
9903 ;;
9904
9905 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9906 case $cc_basename in
9907 # old Intel for x86_64, which still supported -KPIC.
9908 ecc*)
9909 lt_prog_compiler_wl='-Wl,'
9910 lt_prog_compiler_pic='-KPIC'
9911 lt_prog_compiler_static='-static'
9912 ;;
9913 # icc used to be incompatible with GCC.
9914 # ICC 10 doesn't accept -KPIC any more.
9915 icc* | ifort*)
9916 lt_prog_compiler_wl='-Wl,'
9917 lt_prog_compiler_pic='-fPIC'
9918 lt_prog_compiler_static='-static'
9919 ;;
9920 # Lahey Fortran 8.1.
9921 lf95*)
9922 lt_prog_compiler_wl='-Wl,'
9923 lt_prog_compiler_pic='--shared'
9924 lt_prog_compiler_static='--static'
9925 ;;
9926 nagfor*)
9927 # NAG Fortran compiler
9928 lt_prog_compiler_wl='-Wl,-Wl,,'
9929 lt_prog_compiler_pic='-PIC'
9930 lt_prog_compiler_static='-Bstatic'
9931 ;;
9932 tcc*)
9933 # Fabrice Bellard et al's Tiny C Compiler
9934 lt_prog_compiler_wl='-Wl,'
9935 lt_prog_compiler_pic='-fPIC'
9936 lt_prog_compiler_static='-static'
9937 ;;
9938 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9939 # Portland Group compilers (*not* the Pentium gcc compiler,
9940 # which looks to be a dead project)
9941 lt_prog_compiler_wl='-Wl,'
9942 lt_prog_compiler_pic='-fpic'
9943 lt_prog_compiler_static='-Bstatic'
9944 ;;
9945 ccc*)
9946 lt_prog_compiler_wl='-Wl,'
9947 # All Alpha code is PIC.
9948 lt_prog_compiler_static='-non_shared'
9949 ;;
9950 xl* | bgxl* | bgf* | mpixl*)
9951 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9952 lt_prog_compiler_wl='-Wl,'
9953 lt_prog_compiler_pic='-qpic'
9954 lt_prog_compiler_static='-qstaticlink'
9955 ;;
9956 *)
9957 case `$CC -V 2>&1 | sed 5q` in
9958 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9959 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9960 lt_prog_compiler_pic='-KPIC'
9961 lt_prog_compiler_static='-Bstatic'
9962 lt_prog_compiler_wl=''
9963 ;;
9964 *Sun\ F* | *Sun*Fortran*)
9965 lt_prog_compiler_pic='-KPIC'
9966 lt_prog_compiler_static='-Bstatic'
9967 lt_prog_compiler_wl='-Qoption ld '
9968 ;;
9969 *Sun\ C*)
9970 # Sun C 5.9
9971 lt_prog_compiler_pic='-KPIC'
9972 lt_prog_compiler_static='-Bstatic'
9973 lt_prog_compiler_wl='-Wl,'
9974 ;;
9975 *Intel*\ [CF]*Compiler*)
9976 lt_prog_compiler_wl='-Wl,'
9977 lt_prog_compiler_pic='-fPIC'
9978 lt_prog_compiler_static='-static'
9979 ;;
9980 *Portland\ Group*)
9981 lt_prog_compiler_wl='-Wl,'
9982 lt_prog_compiler_pic='-fpic'
9983 lt_prog_compiler_static='-Bstatic'
9984 ;;
9985 esac
9986 ;;
9987 esac
9988 ;;
9989
9990 newsos6)
9991 lt_prog_compiler_pic='-KPIC'
9992 lt_prog_compiler_static='-Bstatic'
9993 ;;
9994
9995 *nto* | *qnx*)
9996 # QNX uses GNU C++, but need to define -shared option too, otherwise
9997 # it will coredump.
9998 lt_prog_compiler_pic='-fPIC -shared'
9999 ;;
10000
10001 osf3* | osf4* | osf5*)
10002 lt_prog_compiler_wl='-Wl,'
10003 # All OSF/1 code is PIC.
10004 lt_prog_compiler_static='-non_shared'
10005 ;;
10006
10007 rdos*)
10008 lt_prog_compiler_static='-non_shared'
10009 ;;
10010
10011 solaris*)
10012 lt_prog_compiler_pic='-KPIC'
10013 lt_prog_compiler_static='-Bstatic'
10014 case $cc_basename in
10015 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10016 lt_prog_compiler_wl='-Qoption ld ';;
10017 *)
10018 lt_prog_compiler_wl='-Wl,';;
10019 esac
10020 ;;
10021
10022 sunos4*)
10023 lt_prog_compiler_wl='-Qoption ld '
10024 lt_prog_compiler_pic='-PIC'
10025 lt_prog_compiler_static='-Bstatic'
10026 ;;
10027
10028 sysv4 | sysv4.2uw2* | sysv4.3*)
10029 lt_prog_compiler_wl='-Wl,'
10030 lt_prog_compiler_pic='-KPIC'
10031 lt_prog_compiler_static='-Bstatic'
10032 ;;
10033
10034 sysv4*MP*)
10035 if test -d /usr/nec; then
10036 lt_prog_compiler_pic='-Kconform_pic'
10037 lt_prog_compiler_static='-Bstatic'
10038 fi
10039 ;;
10040
10041 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10042 lt_prog_compiler_wl='-Wl,'
10043 lt_prog_compiler_pic='-KPIC'
10044 lt_prog_compiler_static='-Bstatic'
10045 ;;
10046
10047 unicos*)
10048 lt_prog_compiler_wl='-Wl,'
10049 lt_prog_compiler_can_build_shared=no
10050 ;;
10051
10052 uts4*)
10053 lt_prog_compiler_pic='-pic'
10054 lt_prog_compiler_static='-Bstatic'
10055 ;;
10056
10057 *)
10058 lt_prog_compiler_can_build_shared=no
10059 ;;
10060 esac
10061 fi
10062
10063 case $host_os in
10064 # For platforms that do not support PIC, -DPIC is meaningless:
10065 *djgpp*)
10066 lt_prog_compiler_pic=
10067 ;;
10068 *)
10069 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10070 ;;
10071 esac
10072
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10074 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10075 if ${lt_cv_prog_compiler_pic+:} false; then :
10076 $as_echo_n "(cached) " >&6
10077 else
10078 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10079 fi
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10081 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10082 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10083
10084 #
10085 # Check to make sure the PIC flag actually works.
10086 #
10087 if test -n "$lt_prog_compiler_pic"; then
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10089 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10090 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10091 $as_echo_n "(cached) " >&6
10092 else
10093 lt_cv_prog_compiler_pic_works=no
10094 ac_outfile=conftest.$ac_objext
10095 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10096 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10097 # Insert the option either (1) after the last *FLAGS variable, or
10098 # (2) before a word containing "conftest.", or (3) at the end.
10099 # Note that $ac_compile itself does not contain backslashes and begins
10100 # with a dollar sign (not a hyphen), so the echo should work correctly.
10101 # The option is referenced via a variable to avoid confusing sed.
10102 lt_compile=`echo "$ac_compile" | $SED \
10103 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10104 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10105 -e 's:$: $lt_compiler_flag:'`
10106 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10107 (eval "$lt_compile" 2>conftest.err)
10108 ac_status=$?
10109 cat conftest.err >&5
10110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111 if (exit $ac_status) && test -s "$ac_outfile"; then
10112 # The compiler can only warn and ignore the option if not recognized
10113 # So say no if there are warnings other than the usual output.
10114 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10115 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10116 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10117 lt_cv_prog_compiler_pic_works=yes
10118 fi
10119 fi
10120 $RM conftest*
10121
10122 fi
10123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10124 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10125
10126 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10127 case $lt_prog_compiler_pic in
10128 "" | " "*) ;;
10129 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10130 esac
10131 else
10132 lt_prog_compiler_pic=
10133 lt_prog_compiler_can_build_shared=no
10134 fi
10135
10136 fi
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148 #
10149 # Check to make sure the static flag actually works.
10150 #
10151 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10153 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10154 if ${lt_cv_prog_compiler_static_works+:} false; then :
10155 $as_echo_n "(cached) " >&6
10156 else
10157 lt_cv_prog_compiler_static_works=no
10158 save_LDFLAGS=$LDFLAGS
10159 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10160 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10161 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10162 # The linker can only warn and ignore the option if not recognized
10163 # So say no if there are warnings
10164 if test -s conftest.err; then
10165 # Append any errors to the config.log.
10166 cat conftest.err 1>&5
10167 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10168 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10169 if diff conftest.exp conftest.er2 >/dev/null; then
10170 lt_cv_prog_compiler_static_works=yes
10171 fi
10172 else
10173 lt_cv_prog_compiler_static_works=yes
10174 fi
10175 fi
10176 $RM -r conftest*
10177 LDFLAGS=$save_LDFLAGS
10178
10179 fi
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10181 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10182
10183 if test yes = "$lt_cv_prog_compiler_static_works"; then
10184 :
10185 else
10186 lt_prog_compiler_static=
10187 fi
10188
10189
10190
10191
10192
10193
10194
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10196 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10197 if ${lt_cv_prog_compiler_c_o+:} false; then :
10198 $as_echo_n "(cached) " >&6
10199 else
10200 lt_cv_prog_compiler_c_o=no
10201 $RM -r conftest 2>/dev/null
10202 mkdir conftest
10203 cd conftest
10204 mkdir out
10205 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10206
10207 lt_compiler_flag="-o out/conftest2.$ac_objext"
10208 # Insert the option either (1) after the last *FLAGS variable, or
10209 # (2) before a word containing "conftest.", or (3) at the end.
10210 # Note that $ac_compile itself does not contain backslashes and begins
10211 # with a dollar sign (not a hyphen), so the echo should work correctly.
10212 lt_compile=`echo "$ac_compile" | $SED \
10213 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10214 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10215 -e 's:$: $lt_compiler_flag:'`
10216 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10217 (eval "$lt_compile" 2>out/conftest.err)
10218 ac_status=$?
10219 cat out/conftest.err >&5
10220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10222 then
10223 # The compiler can only warn and ignore the option if not recognized
10224 # So say no if there are warnings
10225 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10226 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10227 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10228 lt_cv_prog_compiler_c_o=yes
10229 fi
10230 fi
10231 chmod u+w . 2>&5
10232 $RM conftest*
10233 # SGI C++ compiler will create directory out/ii_files/ for
10234 # template instantiation
10235 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10236 $RM out/* && rmdir out
10237 cd ..
10238 $RM -r conftest
10239 $RM conftest*
10240
10241 fi
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10243 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10244
10245
10246
10247
10248
10249
10250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10251 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10252 if ${lt_cv_prog_compiler_c_o+:} false; then :
10253 $as_echo_n "(cached) " >&6
10254 else
10255 lt_cv_prog_compiler_c_o=no
10256 $RM -r conftest 2>/dev/null
10257 mkdir conftest
10258 cd conftest
10259 mkdir out
10260 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10261
10262 lt_compiler_flag="-o out/conftest2.$ac_objext"
10263 # Insert the option either (1) after the last *FLAGS variable, or
10264 # (2) before a word containing "conftest.", or (3) at the end.
10265 # Note that $ac_compile itself does not contain backslashes and begins
10266 # with a dollar sign (not a hyphen), so the echo should work correctly.
10267 lt_compile=`echo "$ac_compile" | $SED \
10268 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10269 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10270 -e 's:$: $lt_compiler_flag:'`
10271 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10272 (eval "$lt_compile" 2>out/conftest.err)
10273 ac_status=$?
10274 cat out/conftest.err >&5
10275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10277 then
10278 # The compiler can only warn and ignore the option if not recognized
10279 # So say no if there are warnings
10280 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10281 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10282 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10283 lt_cv_prog_compiler_c_o=yes
10284 fi
10285 fi
10286 chmod u+w . 2>&5
10287 $RM conftest*
10288 # SGI C++ compiler will create directory out/ii_files/ for
10289 # template instantiation
10290 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10291 $RM out/* && rmdir out
10292 cd ..
10293 $RM -r conftest
10294 $RM conftest*
10295
10296 fi
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10298 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10299
10300
10301
10302
10303 hard_links=nottested
10304 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10305 # do not overwrite the value of need_locks provided by the user
10306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10307 $as_echo_n "checking if we can lock with hard links... " >&6; }
10308 hard_links=yes
10309 $RM conftest*
10310 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10311 touch conftest.a
10312 ln conftest.a conftest.b 2>&5 || hard_links=no
10313 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10315 $as_echo "$hard_links" >&6; }
10316 if test no = "$hard_links"; then
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10318 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10319 need_locks=warn
10320 fi
10321 else
10322 need_locks=no
10323 fi
10324
10325
10326
10327
10328
10329
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10331 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10332
10333 runpath_var=
10334 allow_undefined_flag=
10335 always_export_symbols=no
10336 archive_cmds=
10337 archive_expsym_cmds=
10338 compiler_needs_object=no
10339 enable_shared_with_static_runtimes=no
10340 export_dynamic_flag_spec=
10341 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10342 hardcode_automatic=no
10343 hardcode_direct=no
10344 hardcode_direct_absolute=no
10345 hardcode_libdir_flag_spec=
10346 hardcode_libdir_separator=
10347 hardcode_minus_L=no
10348 hardcode_shlibpath_var=unsupported
10349 inherit_rpath=no
10350 link_all_deplibs=unknown
10351 module_cmds=
10352 module_expsym_cmds=
10353 old_archive_from_new_cmds=
10354 old_archive_from_expsyms_cmds=
10355 thread_safe_flag_spec=
10356 whole_archive_flag_spec=
10357 # include_expsyms should be a list of space-separated symbols to be *always*
10358 # included in the symbol list
10359 include_expsyms=
10360 # exclude_expsyms can be an extended regexp of symbols to exclude
10361 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10362 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10363 # as well as any symbol that contains 'd'.
10364 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10365 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10366 # platforms (ab)use it in PIC code, but their linkers get confused if
10367 # the symbol is explicitly referenced. Since portable code cannot
10368 # rely on this symbol name, it's probably fine to never include it in
10369 # preloaded symbol tables.
10370 # Exclude shared library initialization/finalization symbols.
10371 extract_expsyms_cmds=
10372
10373 case $host_os in
10374 cygwin* | mingw* | pw32* | cegcc*)
10375 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10376 # When not using gcc, we currently assume that we are using
10377 # Microsoft Visual C++.
10378 if test yes != "$GCC"; then
10379 with_gnu_ld=no
10380 fi
10381 ;;
10382 interix*)
10383 # we just hope/assume this is gcc and not c89 (= MSVC++)
10384 with_gnu_ld=yes
10385 ;;
10386 openbsd* | bitrig*)
10387 with_gnu_ld=no
10388 ;;
10389 linux* | k*bsd*-gnu | gnu*)
10390 link_all_deplibs=no
10391 ;;
10392 esac
10393
10394 ld_shlibs=yes
10395
10396 # On some targets, GNU ld is compatible enough with the native linker
10397 # that we're better off using the native interface for both.
10398 lt_use_gnu_ld_interface=no
10399 if test yes = "$with_gnu_ld"; then
10400 case $host_os in
10401 aix*)
10402 # The AIX port of GNU ld has always aspired to compatibility
10403 # with the native linker. However, as the warning in the GNU ld
10404 # block says, versions before 2.19.5* couldn't really create working
10405 # shared libraries, regardless of the interface used.
10406 case `$LD -v 2>&1` in
10407 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10408 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10409 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10410 *)
10411 lt_use_gnu_ld_interface=yes
10412 ;;
10413 esac
10414 ;;
10415 *)
10416 lt_use_gnu_ld_interface=yes
10417 ;;
10418 esac
10419 fi
10420
10421 if test yes = "$lt_use_gnu_ld_interface"; then
10422 # If archive_cmds runs LD, not CC, wlarc should be empty
10423 wlarc='$wl'
10424
10425 # Set some defaults for GNU ld with shared library support. These
10426 # are reset later if shared libraries are not supported. Putting them
10427 # here allows them to be overridden if necessary.
10428 runpath_var=LD_RUN_PATH
10429 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10430 export_dynamic_flag_spec='$wl--export-dynamic'
10431 # ancient GNU ld didn't support --whole-archive et. al.
10432 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10433 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10434 else
10435 whole_archive_flag_spec=
10436 fi
10437 supports_anon_versioning=no
10438 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10439 *GNU\ gold*) supports_anon_versioning=yes ;;
10440 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10441 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10442 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10443 *\ 2.11.*) ;; # other 2.11 versions
10444 *) supports_anon_versioning=yes ;;
10445 esac
10446
10447 # See if GNU ld supports shared libraries.
10448 case $host_os in
10449 aix[3-9]*)
10450 # On AIX/PPC, the GNU linker is very broken
10451 if test ia64 != "$host_cpu"; then
10452 ld_shlibs=no
10453 cat <<_LT_EOF 1>&2
10454
10455 *** Warning: the GNU linker, at least up to release 2.19, is reported
10456 *** to be unable to reliably create shared libraries on AIX.
10457 *** Therefore, libtool is disabling shared libraries support. If you
10458 *** really care for shared libraries, you may want to install binutils
10459 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10460 *** You will then need to restart the configuration process.
10461
10462 _LT_EOF
10463 fi
10464 ;;
10465
10466 amigaos*)
10467 case $host_cpu in
10468 powerpc)
10469 # see comment about AmigaOS4 .so support
10470 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10471 archive_expsym_cmds=''
10472 ;;
10473 m68k)
10474 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)'
10475 hardcode_libdir_flag_spec='-L$libdir'
10476 hardcode_minus_L=yes
10477 ;;
10478 esac
10479 ;;
10480
10481 beos*)
10482 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10483 allow_undefined_flag=unsupported
10484 # Joseph Beckenbach <[email protected]> says some releases of gcc
10485 # support --undefined. This deserves some investigation. FIXME
10486 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10487 else
10488 ld_shlibs=no
10489 fi
10490 ;;
10491
10492 cygwin* | mingw* | pw32* | cegcc*)
10493 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10494 # as there is no search path for DLLs.
10495 hardcode_libdir_flag_spec='-L$libdir'
10496 export_dynamic_flag_spec='$wl--export-all-symbols'
10497 allow_undefined_flag=unsupported
10498 always_export_symbols=no
10499 enable_shared_with_static_runtimes=yes
10500 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'
10501 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10502
10503 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10504 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10505 # If the export-symbols file already is a .def file, use it as
10506 # is; otherwise, prepend EXPORTS...
10507 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10508 cp $export_symbols $output_objdir/$soname.def;
10509 else
10510 echo EXPORTS > $output_objdir/$soname.def;
10511 cat $export_symbols >> $output_objdir/$soname.def;
10512 fi~
10513 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10514 else
10515 ld_shlibs=no
10516 fi
10517 ;;
10518
10519 haiku*)
10520 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10521 link_all_deplibs=yes
10522 ;;
10523
10524 os2*)
10525 hardcode_libdir_flag_spec='-L$libdir'
10526 hardcode_minus_L=yes
10527 allow_undefined_flag=unsupported
10528 shrext_cmds=.dll
10529 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10530 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10531 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10532 $ECHO EXPORTS >> $output_objdir/$libname.def~
10533 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10534 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10535 emximp -o $lib $output_objdir/$libname.def'
10536 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10537 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10538 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10539 $ECHO EXPORTS >> $output_objdir/$libname.def~
10540 prefix_cmds="$SED"~
10541 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10542 prefix_cmds="$prefix_cmds -e 1d";
10543 fi~
10544 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10545 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10546 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10547 emximp -o $lib $output_objdir/$libname.def'
10548 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10549 enable_shared_with_static_runtimes=yes
10550 ;;
10551
10552 interix[3-9]*)
10553 hardcode_direct=no
10554 hardcode_shlibpath_var=no
10555 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10556 export_dynamic_flag_spec='$wl-E'
10557 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10558 # Instead, shared libraries are loaded at an image base (0x10000000 by
10559 # default) and relocated if they conflict, which is a slow very memory
10560 # consuming and fragmenting process. To avoid this, we pick a random,
10561 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10562 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10563 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10564 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'
10565 ;;
10566
10567 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10568 tmp_diet=no
10569 if test linux-dietlibc = "$host_os"; then
10570 case $cc_basename in
10571 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10572 esac
10573 fi
10574 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10575 && test no = "$tmp_diet"
10576 then
10577 tmp_addflag=' $pic_flag'
10578 tmp_sharedflag='-shared'
10579 case $cc_basename,$host_cpu in
10580 pgcc*) # Portland Group C compiler
10581 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'
10582 tmp_addflag=' $pic_flag'
10583 ;;
10584 pgf77* | pgf90* | pgf95* | pgfortran*)
10585 # Portland Group f77 and f90 compilers
10586 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'
10587 tmp_addflag=' $pic_flag -Mnomain' ;;
10588 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10589 tmp_addflag=' -i_dynamic' ;;
10590 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10591 tmp_addflag=' -i_dynamic -nofor_main' ;;
10592 ifc* | ifort*) # Intel Fortran compiler
10593 tmp_addflag=' -nofor_main' ;;
10594 lf95*) # Lahey Fortran 8.1
10595 whole_archive_flag_spec=
10596 tmp_sharedflag='--shared' ;;
10597 nagfor*) # NAGFOR 5.3
10598 tmp_sharedflag='-Wl,-shared' ;;
10599 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10600 tmp_sharedflag='-qmkshrobj'
10601 tmp_addflag= ;;
10602 nvcc*) # Cuda Compiler Driver 2.2
10603 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'
10604 compiler_needs_object=yes
10605 ;;
10606 esac
10607 case `$CC -V 2>&1 | sed 5q` in
10608 *Sun\ C*) # Sun C 5.9
10609 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'
10610 compiler_needs_object=yes
10611 tmp_sharedflag='-G' ;;
10612 *Sun\ F*) # Sun Fortran 8.3
10613 tmp_sharedflag='-G' ;;
10614 esac
10615 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10616
10617 if test yes = "$supports_anon_versioning"; then
10618 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10619 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10620 echo "local: *; };" >> $output_objdir/$libname.ver~
10621 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10622 fi
10623
10624 case $cc_basename in
10625 tcc*)
10626 export_dynamic_flag_spec='-rdynamic'
10627 ;;
10628 xlf* | bgf* | bgxlf* | mpixlf*)
10629 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10630 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10631 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10632 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10633 if test yes = "$supports_anon_versioning"; then
10634 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10635 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10636 echo "local: *; };" >> $output_objdir/$libname.ver~
10637 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10638 fi
10639 ;;
10640 esac
10641 else
10642 ld_shlibs=no
10643 fi
10644 ;;
10645
10646 netbsd* | netbsdelf*-gnu)
10647 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10648 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10649 wlarc=
10650 else
10651 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10652 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10653 fi
10654 ;;
10655
10656 solaris*)
10657 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10658 ld_shlibs=no
10659 cat <<_LT_EOF 1>&2
10660
10661 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10662 *** create shared libraries on Solaris systems. Therefore, libtool
10663 *** is disabling shared libraries support. We urge you to upgrade GNU
10664 *** binutils to release 2.9.1 or newer. Another option is to modify
10665 *** your PATH or compiler configuration so that the native linker is
10666 *** used, and then restart.
10667
10668 _LT_EOF
10669 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10670 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10671 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10672 else
10673 ld_shlibs=no
10674 fi
10675 ;;
10676
10677 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10678 case `$LD -v 2>&1` in
10679 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10680 ld_shlibs=no
10681 cat <<_LT_EOF 1>&2
10682
10683 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10684 *** reliably create shared libraries on SCO systems. Therefore, libtool
10685 *** is disabling shared libraries support. We urge you to upgrade GNU
10686 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10687 *** your PATH or compiler configuration so that the native linker is
10688 *** used, and then restart.
10689
10690 _LT_EOF
10691 ;;
10692 *)
10693 # For security reasons, it is highly recommended that you always
10694 # use absolute paths for naming shared libraries, and exclude the
10695 # DT_RUNPATH tag from executables and libraries. But doing so
10696 # requires that you compile everything twice, which is a pain.
10697 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10698 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10699 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10700 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10701 else
10702 ld_shlibs=no
10703 fi
10704 ;;
10705 esac
10706 ;;
10707
10708 sunos4*)
10709 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10710 wlarc=
10711 hardcode_direct=yes
10712 hardcode_shlibpath_var=no
10713 ;;
10714
10715 *)
10716 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10717 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10718 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10719 else
10720 ld_shlibs=no
10721 fi
10722 ;;
10723 esac
10724
10725 if test no = "$ld_shlibs"; then
10726 runpath_var=
10727 hardcode_libdir_flag_spec=
10728 export_dynamic_flag_spec=
10729 whole_archive_flag_spec=
10730 fi
10731 else
10732 # PORTME fill in a description of your system's linker (not GNU ld)
10733 case $host_os in
10734 aix3*)
10735 allow_undefined_flag=unsupported
10736 always_export_symbols=yes
10737 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'
10738 # Note: this linker hardcodes the directories in LIBPATH if there
10739 # are no directories specified by -L.
10740 hardcode_minus_L=yes
10741 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10742 # Neither direct hardcoding nor static linking is supported with a
10743 # broken collect2.
10744 hardcode_direct=unsupported
10745 fi
10746 ;;
10747
10748 aix[4-9]*)
10749 if test ia64 = "$host_cpu"; then
10750 # On IA64, the linker does run time linking by default, so we don't
10751 # have to do anything special.
10752 aix_use_runtimelinking=no
10753 exp_sym_flag='-Bexport'
10754 no_entry_flag=
10755 else
10756 # If we're using GNU nm, then we don't want the "-C" option.
10757 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10758 # Without the "-l" option, or with the "-B" option, AIX nm treats
10759 # weak defined symbols like other global defined symbols, whereas
10760 # GNU nm marks them as "W".
10761 # While the 'weak' keyword is ignored in the Export File, we need
10762 # it in the Import File for the 'aix-soname' feature, so we have
10763 # to replace the "-B" option with "-P" for AIX nm.
10764 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10765 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10766 else
10767 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10768 fi
10769 aix_use_runtimelinking=no
10770
10771 # Test if we are trying to use run time linking or normal
10772 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10773 # have runtime linking enabled, and use it for executables.
10774 # For shared libraries, we enable/disable runtime linking
10775 # depending on the kind of the shared library created -
10776 # when "with_aix_soname,aix_use_runtimelinking" is:
10777 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10778 # "aix,yes" lib.so shared, rtl:yes, for executables
10779 # lib.a static archive
10780 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10781 # lib.a(lib.so.V) shared, rtl:no, for executables
10782 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10783 # lib.a(lib.so.V) shared, rtl:no
10784 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10785 # lib.a static archive
10786 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10787 for ld_flag in $LDFLAGS; do
10788 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10789 aix_use_runtimelinking=yes
10790 break
10791 fi
10792 done
10793 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10794 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10795 # so we don't have lib.a shared libs to link our executables.
10796 # We have to force runtime linking in this case.
10797 aix_use_runtimelinking=yes
10798 LDFLAGS="$LDFLAGS -Wl,-brtl"
10799 fi
10800 ;;
10801 esac
10802
10803 exp_sym_flag='-bexport'
10804 no_entry_flag='-bnoentry'
10805 fi
10806
10807 # When large executables or shared objects are built, AIX ld can
10808 # have problems creating the table of contents. If linking a library
10809 # or program results in "error TOC overflow" add -mminimal-toc to
10810 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10811 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10812
10813 archive_cmds=''
10814 hardcode_direct=yes
10815 hardcode_direct_absolute=yes
10816 hardcode_libdir_separator=':'
10817 link_all_deplibs=yes
10818 file_list_spec='$wl-f,'
10819 case $with_aix_soname,$aix_use_runtimelinking in
10820 aix,*) ;; # traditional, no import file
10821 svr4,* | *,yes) # use import file
10822 # The Import File defines what to hardcode.
10823 hardcode_direct=no
10824 hardcode_direct_absolute=no
10825 ;;
10826 esac
10827
10828 if test yes = "$GCC"; then
10829 case $host_os in aix4.[012]|aix4.[012].*)
10830 # We only want to do this on AIX 4.2 and lower, the check
10831 # below for broken collect2 doesn't work under 4.3+
10832 collect2name=`$CC -print-prog-name=collect2`
10833 if test -f "$collect2name" &&
10834 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10835 then
10836 # We have reworked collect2
10837 :
10838 else
10839 # We have old collect2
10840 hardcode_direct=unsupported
10841 # It fails to find uninstalled libraries when the uninstalled
10842 # path is not listed in the libpath. Setting hardcode_minus_L
10843 # to unsupported forces relinking
10844 hardcode_minus_L=yes
10845 hardcode_libdir_flag_spec='-L$libdir'
10846 hardcode_libdir_separator=
10847 fi
10848 ;;
10849 esac
10850 shared_flag='-shared'
10851 if test yes = "$aix_use_runtimelinking"; then
10852 shared_flag="$shared_flag "'$wl-G'
10853 fi
10854 # Need to ensure runtime linking is disabled for the traditional
10855 # shared library, or the linker may eventually find shared libraries
10856 # /with/ Import File - we do not want to mix them.
10857 shared_flag_aix='-shared'
10858 shared_flag_svr4='-shared $wl-G'
10859 else
10860 # not using gcc
10861 if test ia64 = "$host_cpu"; then
10862 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10863 # chokes on -Wl,-G. The following line is correct:
10864 shared_flag='-G'
10865 else
10866 if test yes = "$aix_use_runtimelinking"; then
10867 shared_flag='$wl-G'
10868 else
10869 shared_flag='$wl-bM:SRE'
10870 fi
10871 shared_flag_aix='$wl-bM:SRE'
10872 shared_flag_svr4='$wl-G'
10873 fi
10874 fi
10875
10876 export_dynamic_flag_spec='$wl-bexpall'
10877 # It seems that -bexpall does not export symbols beginning with
10878 # underscore (_), so it is better to generate a list of symbols to export.
10879 always_export_symbols=yes
10880 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10881 # Warning - without using the other runtime loading flags (-brtl),
10882 # -berok will link without error, but may produce a broken library.
10883 allow_undefined_flag='-berok'
10884 # Determine the default libpath from the value encoded in an
10885 # empty executable.
10886 if test set = "${lt_cv_aix_libpath+set}"; then
10887 aix_libpath=$lt_cv_aix_libpath
10888 else
10889 if ${lt_cv_aix_libpath_+:} false; then :
10890 $as_echo_n "(cached) " >&6
10891 else
10892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10893 /* end confdefs.h. */
10894
10895 int
10896 main ()
10897 {
10898
10899 ;
10900 return 0;
10901 }
10902 _ACEOF
10903 if ac_fn_c_try_link "$LINENO"; then :
10904
10905 lt_aix_libpath_sed='
10906 /Import File Strings/,/^$/ {
10907 /^0/ {
10908 s/^0 *\([^ ]*\) *$/\1/
10909 p
10910 }
10911 }'
10912 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10913 # Check for a 64-bit object if we didn't find anything.
10914 if test -z "$lt_cv_aix_libpath_"; then
10915 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10916 fi
10917 fi
10918 rm -f core conftest.err conftest.$ac_objext \
10919 conftest$ac_exeext conftest.$ac_ext
10920 if test -z "$lt_cv_aix_libpath_"; then
10921 lt_cv_aix_libpath_=/usr/lib:/lib
10922 fi
10923
10924 fi
10925
10926 aix_libpath=$lt_cv_aix_libpath_
10927 fi
10928
10929 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10930 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10931 else
10932 if test ia64 = "$host_cpu"; then
10933 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10934 allow_undefined_flag="-z nodefs"
10935 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"
10936 else
10937 # Determine the default libpath from the value encoded in an
10938 # empty executable.
10939 if test set = "${lt_cv_aix_libpath+set}"; then
10940 aix_libpath=$lt_cv_aix_libpath
10941 else
10942 if ${lt_cv_aix_libpath_+:} false; then :
10943 $as_echo_n "(cached) " >&6
10944 else
10945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10946 /* end confdefs.h. */
10947
10948 int
10949 main ()
10950 {
10951
10952 ;
10953 return 0;
10954 }
10955 _ACEOF
10956 if ac_fn_c_try_link "$LINENO"; then :
10957
10958 lt_aix_libpath_sed='
10959 /Import File Strings/,/^$/ {
10960 /^0/ {
10961 s/^0 *\([^ ]*\) *$/\1/
10962 p
10963 }
10964 }'
10965 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10966 # Check for a 64-bit object if we didn't find anything.
10967 if test -z "$lt_cv_aix_libpath_"; then
10968 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10969 fi
10970 fi
10971 rm -f core conftest.err conftest.$ac_objext \
10972 conftest$ac_exeext conftest.$ac_ext
10973 if test -z "$lt_cv_aix_libpath_"; then
10974 lt_cv_aix_libpath_=/usr/lib:/lib
10975 fi
10976
10977 fi
10978
10979 aix_libpath=$lt_cv_aix_libpath_
10980 fi
10981
10982 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10983 # Warning - without using the other run time loading flags,
10984 # -berok will link without error, but may produce a broken library.
10985 no_undefined_flag=' $wl-bernotok'
10986 allow_undefined_flag=' $wl-berok'
10987 if test yes = "$with_gnu_ld"; then
10988 # We only use this code for GNU lds that support --whole-archive.
10989 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10990 else
10991 # Exported symbols can be pulled into shared objects from archives
10992 whole_archive_flag_spec='$convenience'
10993 fi
10994 archive_cmds_need_lc=yes
10995 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10996 # -brtl affects multiple linker settings, -berok does not and is overridden later
10997 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10998 if test svr4 != "$with_aix_soname"; then
10999 # This is similar to how AIX traditionally builds its shared libraries.
11000 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
11001 fi
11002 if test aix != "$with_aix_soname"; then
11003 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
11004 else
11005 # used by -dlpreopen to get the symbols
11006 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11007 fi
11008 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11009 fi
11010 fi
11011 ;;
11012
11013 amigaos*)
11014 case $host_cpu in
11015 powerpc)
11016 # see comment about AmigaOS4 .so support
11017 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11018 archive_expsym_cmds=''
11019 ;;
11020 m68k)
11021 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)'
11022 hardcode_libdir_flag_spec='-L$libdir'
11023 hardcode_minus_L=yes
11024 ;;
11025 esac
11026 ;;
11027
11028 bsdi[45]*)
11029 export_dynamic_flag_spec=-rdynamic
11030 ;;
11031
11032 cygwin* | mingw* | pw32* | cegcc*)
11033 # When not using gcc, we currently assume that we are using
11034 # Microsoft Visual C++.
11035 # hardcode_libdir_flag_spec is actually meaningless, as there is
11036 # no search path for DLLs.
11037 case $cc_basename in
11038 cl*)
11039 # Native MSVC
11040 hardcode_libdir_flag_spec=' '
11041 allow_undefined_flag=unsupported
11042 always_export_symbols=yes
11043 file_list_spec='@'
11044 # Tell ltmain to make .lib files, not .a files.
11045 libext=lib
11046 # Tell ltmain to make .dll files, not .so files.
11047 shrext_cmds=.dll
11048 # FIXME: Setting linknames here is a bad hack.
11049 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11050 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11051 cp "$export_symbols" "$output_objdir/$soname.def";
11052 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11053 else
11054 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11055 fi~
11056 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11057 linknames='
11058 # The linker will not automatically build a static lib if we build a DLL.
11059 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11060 enable_shared_with_static_runtimes=yes
11061 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11062 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11063 # Don't use ranlib
11064 old_postinstall_cmds='chmod 644 $oldlib'
11065 postlink_cmds='lt_outputfile="@OUTPUT@"~
11066 lt_tool_outputfile="@TOOL_OUTPUT@"~
11067 case $lt_outputfile in
11068 *.exe|*.EXE) ;;
11069 *)
11070 lt_outputfile=$lt_outputfile.exe
11071 lt_tool_outputfile=$lt_tool_outputfile.exe
11072 ;;
11073 esac~
11074 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11075 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11076 $RM "$lt_outputfile.manifest";
11077 fi'
11078 ;;
11079 *)
11080 # Assume MSVC wrapper
11081 hardcode_libdir_flag_spec=' '
11082 allow_undefined_flag=unsupported
11083 # Tell ltmain to make .lib files, not .a files.
11084 libext=lib
11085 # Tell ltmain to make .dll files, not .so files.
11086 shrext_cmds=.dll
11087 # FIXME: Setting linknames here is a bad hack.
11088 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11089 # The linker will automatically build a .lib file if we build a DLL.
11090 old_archive_from_new_cmds='true'
11091 # FIXME: Should let the user specify the lib program.
11092 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11093 enable_shared_with_static_runtimes=yes
11094 ;;
11095 esac
11096 ;;
11097
11098 darwin* | rhapsody*)
11099
11100
11101 archive_cmds_need_lc=no
11102 hardcode_direct=no
11103 hardcode_automatic=yes
11104 hardcode_shlibpath_var=unsupported
11105 if test yes = "$lt_cv_ld_force_load"; then
11106 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\"`'
11107
11108 else
11109 whole_archive_flag_spec=''
11110 fi
11111 link_all_deplibs=yes
11112 allow_undefined_flag=$_lt_dar_allow_undefined
11113 case $cc_basename in
11114 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11115 *) _lt_dar_can_shared=$GCC ;;
11116 esac
11117 if test yes = "$_lt_dar_can_shared"; then
11118 output_verbose_link_cmd=func_echo_all
11119 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11120 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11121 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"
11122 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"
11123
11124 else
11125 ld_shlibs=no
11126 fi
11127
11128 ;;
11129
11130 dgux*)
11131 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11132 hardcode_libdir_flag_spec='-L$libdir'
11133 hardcode_shlibpath_var=no
11134 ;;
11135
11136 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11137 # support. Future versions do this automatically, but an explicit c++rt0.o
11138 # does not break anything, and helps significantly (at the cost of a little
11139 # extra space).
11140 freebsd2.2*)
11141 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11142 hardcode_libdir_flag_spec='-R$libdir'
11143 hardcode_direct=yes
11144 hardcode_shlibpath_var=no
11145 ;;
11146
11147 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11148 freebsd2.*)
11149 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11150 hardcode_direct=yes
11151 hardcode_minus_L=yes
11152 hardcode_shlibpath_var=no
11153 ;;
11154
11155 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11156 freebsd* | dragonfly*)
11157 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11158 hardcode_libdir_flag_spec='-R$libdir'
11159 hardcode_direct=yes
11160 hardcode_shlibpath_var=no
11161 ;;
11162
11163 hpux9*)
11164 if test yes = "$GCC"; then
11165 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11166 else
11167 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11168 fi
11169 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11170 hardcode_libdir_separator=:
11171 hardcode_direct=yes
11172
11173 # hardcode_minus_L: Not really in the search PATH,
11174 # but as the default location of the library.
11175 hardcode_minus_L=yes
11176 export_dynamic_flag_spec='$wl-E'
11177 ;;
11178
11179 hpux10*)
11180 if test yes,no = "$GCC,$with_gnu_ld"; then
11181 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11182 else
11183 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11184 fi
11185 if test no = "$with_gnu_ld"; then
11186 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11187 hardcode_libdir_separator=:
11188 hardcode_direct=yes
11189 hardcode_direct_absolute=yes
11190 export_dynamic_flag_spec='$wl-E'
11191 # hardcode_minus_L: Not really in the search PATH,
11192 # but as the default location of the library.
11193 hardcode_minus_L=yes
11194 fi
11195 ;;
11196
11197 hpux11*)
11198 if test yes,no = "$GCC,$with_gnu_ld"; then
11199 case $host_cpu in
11200 hppa*64*)
11201 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11202 ;;
11203 ia64*)
11204 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11205 ;;
11206 *)
11207 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11208 ;;
11209 esac
11210 else
11211 case $host_cpu in
11212 hppa*64*)
11213 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11214 ;;
11215 ia64*)
11216 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11217 ;;
11218 *)
11219
11220 # Older versions of the 11.00 compiler do not understand -b yet
11221 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11223 $as_echo_n "checking if $CC understands -b... " >&6; }
11224 if ${lt_cv_prog_compiler__b+:} false; then :
11225 $as_echo_n "(cached) " >&6
11226 else
11227 lt_cv_prog_compiler__b=no
11228 save_LDFLAGS=$LDFLAGS
11229 LDFLAGS="$LDFLAGS -b"
11230 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11231 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11232 # The linker can only warn and ignore the option if not recognized
11233 # So say no if there are warnings
11234 if test -s conftest.err; then
11235 # Append any errors to the config.log.
11236 cat conftest.err 1>&5
11237 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11238 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11239 if diff conftest.exp conftest.er2 >/dev/null; then
11240 lt_cv_prog_compiler__b=yes
11241 fi
11242 else
11243 lt_cv_prog_compiler__b=yes
11244 fi
11245 fi
11246 $RM -r conftest*
11247 LDFLAGS=$save_LDFLAGS
11248
11249 fi
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11251 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11252
11253 if test yes = "$lt_cv_prog_compiler__b"; then
11254 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11255 else
11256 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11257 fi
11258
11259 ;;
11260 esac
11261 fi
11262 if test no = "$with_gnu_ld"; then
11263 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11264 hardcode_libdir_separator=:
11265
11266 case $host_cpu in
11267 hppa*64*|ia64*)
11268 hardcode_direct=no
11269 hardcode_shlibpath_var=no
11270 ;;
11271 *)
11272 hardcode_direct=yes
11273 hardcode_direct_absolute=yes
11274 export_dynamic_flag_spec='$wl-E'
11275
11276 # hardcode_minus_L: Not really in the search PATH,
11277 # but as the default location of the library.
11278 hardcode_minus_L=yes
11279 ;;
11280 esac
11281 fi
11282 ;;
11283
11284 irix5* | irix6* | nonstopux*)
11285 if test yes = "$GCC"; then
11286 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'
11287 # Try to use the -exported_symbol ld option, if it does not
11288 # work, assume that -exports_file does not work either and
11289 # implicitly export all symbols.
11290 # This should be the same for all languages, so no per-tag cache variable.
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11292 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11293 if ${lt_cv_irix_exported_symbol+:} false; then :
11294 $as_echo_n "(cached) " >&6
11295 else
11296 save_LDFLAGS=$LDFLAGS
11297 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11299 /* end confdefs.h. */
11300 int foo (void) { return 0; }
11301 _ACEOF
11302 if ac_fn_c_try_link "$LINENO"; then :
11303 lt_cv_irix_exported_symbol=yes
11304 else
11305 lt_cv_irix_exported_symbol=no
11306 fi
11307 rm -f core conftest.err conftest.$ac_objext \
11308 conftest$ac_exeext conftest.$ac_ext
11309 LDFLAGS=$save_LDFLAGS
11310 fi
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11312 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11313 if test yes = "$lt_cv_irix_exported_symbol"; then
11314 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'
11315 fi
11316 link_all_deplibs=no
11317 else
11318 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'
11319 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'
11320 fi
11321 archive_cmds_need_lc='no'
11322 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11323 hardcode_libdir_separator=:
11324 inherit_rpath=yes
11325 link_all_deplibs=yes
11326 ;;
11327
11328 linux*)
11329 case $cc_basename in
11330 tcc*)
11331 # Fabrice Bellard et al's Tiny C Compiler
11332 ld_shlibs=yes
11333 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11334 ;;
11335 esac
11336 ;;
11337
11338 netbsd* | netbsdelf*-gnu)
11339 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11340 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11341 else
11342 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11343 fi
11344 hardcode_libdir_flag_spec='-R$libdir'
11345 hardcode_direct=yes
11346 hardcode_shlibpath_var=no
11347 ;;
11348
11349 newsos6)
11350 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11351 hardcode_direct=yes
11352 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11353 hardcode_libdir_separator=:
11354 hardcode_shlibpath_var=no
11355 ;;
11356
11357 *nto* | *qnx*)
11358 ;;
11359
11360 openbsd* | bitrig*)
11361 if test -f /usr/libexec/ld.so; then
11362 hardcode_direct=yes
11363 hardcode_shlibpath_var=no
11364 hardcode_direct_absolute=yes
11365 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11366 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11367 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11368 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11369 export_dynamic_flag_spec='$wl-E'
11370 else
11371 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11372 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11373 fi
11374 else
11375 ld_shlibs=no
11376 fi
11377 ;;
11378
11379 os2*)
11380 hardcode_libdir_flag_spec='-L$libdir'
11381 hardcode_minus_L=yes
11382 allow_undefined_flag=unsupported
11383 shrext_cmds=.dll
11384 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11385 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11386 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11387 $ECHO EXPORTS >> $output_objdir/$libname.def~
11388 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11389 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11390 emximp -o $lib $output_objdir/$libname.def'
11391 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11392 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11393 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11394 $ECHO EXPORTS >> $output_objdir/$libname.def~
11395 prefix_cmds="$SED"~
11396 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11397 prefix_cmds="$prefix_cmds -e 1d";
11398 fi~
11399 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11400 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11401 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11402 emximp -o $lib $output_objdir/$libname.def'
11403 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11404 enable_shared_with_static_runtimes=yes
11405 ;;
11406
11407 osf3*)
11408 if test yes = "$GCC"; then
11409 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11410 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'
11411 else
11412 allow_undefined_flag=' -expect_unresolved \*'
11413 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'
11414 fi
11415 archive_cmds_need_lc='no'
11416 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11417 hardcode_libdir_separator=:
11418 ;;
11419
11420 osf4* | osf5*) # as osf3* with the addition of -msym flag
11421 if test yes = "$GCC"; then
11422 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11423 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'
11424 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11425 else
11426 allow_undefined_flag=' -expect_unresolved \*'
11427 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'
11428 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~
11429 $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'
11430
11431 # Both c and cxx compiler support -rpath directly
11432 hardcode_libdir_flag_spec='-rpath $libdir'
11433 fi
11434 archive_cmds_need_lc='no'
11435 hardcode_libdir_separator=:
11436 ;;
11437
11438 solaris*)
11439 no_undefined_flag=' -z defs'
11440 if test yes = "$GCC"; then
11441 wlarc='$wl'
11442 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11443 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11444 $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'
11445 else
11446 case `$CC -V 2>&1` in
11447 *"Compilers 5.0"*)
11448 wlarc=''
11449 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11450 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11451 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11452 ;;
11453 *)
11454 wlarc='$wl'
11455 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11456 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11457 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11458 ;;
11459 esac
11460 fi
11461 hardcode_libdir_flag_spec='-R$libdir'
11462 hardcode_shlibpath_var=no
11463 case $host_os in
11464 solaris2.[0-5] | solaris2.[0-5].*) ;;
11465 *)
11466 # The compiler driver will combine and reorder linker options,
11467 # but understands '-z linker_flag'. GCC discards it without '$wl',
11468 # but is careful enough not to reorder.
11469 # Supported since Solaris 2.6 (maybe 2.5.1?)
11470 if test yes = "$GCC"; then
11471 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11472 else
11473 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11474 fi
11475 ;;
11476 esac
11477 link_all_deplibs=yes
11478 ;;
11479
11480 sunos4*)
11481 if test sequent = "$host_vendor"; then
11482 # Use $CC to link under sequent, because it throws in some extra .o
11483 # files that make .init and .fini sections work.
11484 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11485 else
11486 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11487 fi
11488 hardcode_libdir_flag_spec='-L$libdir'
11489 hardcode_direct=yes
11490 hardcode_minus_L=yes
11491 hardcode_shlibpath_var=no
11492 ;;
11493
11494 sysv4)
11495 case $host_vendor in
11496 sni)
11497 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11498 hardcode_direct=yes # is this really true???
11499 ;;
11500 siemens)
11501 ## LD is ld it makes a PLAMLIB
11502 ## CC just makes a GrossModule.
11503 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11504 reload_cmds='$CC -r -o $output$reload_objs'
11505 hardcode_direct=no
11506 ;;
11507 motorola)
11508 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11509 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11510 ;;
11511 esac
11512 runpath_var='LD_RUN_PATH'
11513 hardcode_shlibpath_var=no
11514 ;;
11515
11516 sysv4.3*)
11517 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11518 hardcode_shlibpath_var=no
11519 export_dynamic_flag_spec='-Bexport'
11520 ;;
11521
11522 sysv4*MP*)
11523 if test -d /usr/nec; then
11524 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11525 hardcode_shlibpath_var=no
11526 runpath_var=LD_RUN_PATH
11527 hardcode_runpath_var=yes
11528 ld_shlibs=yes
11529 fi
11530 ;;
11531
11532 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11533 no_undefined_flag='$wl-z,text'
11534 archive_cmds_need_lc=no
11535 hardcode_shlibpath_var=no
11536 runpath_var='LD_RUN_PATH'
11537
11538 if test yes = "$GCC"; then
11539 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11540 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11541 else
11542 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11543 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11544 fi
11545 ;;
11546
11547 sysv5* | sco3.2v5* | sco5v6*)
11548 # Note: We CANNOT use -z defs as we might desire, because we do not
11549 # link with -lc, and that would cause any symbols used from libc to
11550 # always be unresolved, which means just about no library would
11551 # ever link correctly. If we're not using GNU ld we use -z text
11552 # though, which does catch some bad symbols but isn't as heavy-handed
11553 # as -z defs.
11554 no_undefined_flag='$wl-z,text'
11555 allow_undefined_flag='$wl-z,nodefs'
11556 archive_cmds_need_lc=no
11557 hardcode_shlibpath_var=no
11558 hardcode_libdir_flag_spec='$wl-R,$libdir'
11559 hardcode_libdir_separator=':'
11560 link_all_deplibs=yes
11561 export_dynamic_flag_spec='$wl-Bexport'
11562 runpath_var='LD_RUN_PATH'
11563
11564 if test yes = "$GCC"; then
11565 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11566 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11567 else
11568 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11569 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11570 fi
11571 ;;
11572
11573 uts4*)
11574 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11575 hardcode_libdir_flag_spec='-L$libdir'
11576 hardcode_shlibpath_var=no
11577 ;;
11578
11579 *)
11580 ld_shlibs=no
11581 ;;
11582 esac
11583
11584 if test sni = "$host_vendor"; then
11585 case $host in
11586 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11587 export_dynamic_flag_spec='$wl-Blargedynsym'
11588 ;;
11589 esac
11590 fi
11591 fi
11592
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11594 $as_echo "$ld_shlibs" >&6; }
11595 test no = "$ld_shlibs" && can_build_shared=no
11596
11597 with_gnu_ld=$with_gnu_ld
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613 #
11614 # Do we need to explicitly link libc?
11615 #
11616 case "x$archive_cmds_need_lc" in
11617 x|xyes)
11618 # Assume -lc should be added
11619 archive_cmds_need_lc=yes
11620
11621 if test yes,yes = "$GCC,$enable_shared"; then
11622 case $archive_cmds in
11623 *'~'*)
11624 # FIXME: we may have to deal with multi-command sequences.
11625 ;;
11626 '$CC '*)
11627 # Test whether the compiler implicitly links with -lc since on some
11628 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11629 # to ld, don't add -lc before -lgcc.
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11631 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11632 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11633 $as_echo_n "(cached) " >&6
11634 else
11635 $RM conftest*
11636 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11637
11638 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11639 (eval $ac_compile) 2>&5
11640 ac_status=$?
11641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11642 test $ac_status = 0; } 2>conftest.err; then
11643 soname=conftest
11644 lib=conftest
11645 libobjs=conftest.$ac_objext
11646 deplibs=
11647 wl=$lt_prog_compiler_wl
11648 pic_flag=$lt_prog_compiler_pic
11649 compiler_flags=-v
11650 linker_flags=-v
11651 verstring=
11652 output_objdir=.
11653 libname=conftest
11654 lt_save_allow_undefined_flag=$allow_undefined_flag
11655 allow_undefined_flag=
11656 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11657 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11658 ac_status=$?
11659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11660 test $ac_status = 0; }
11661 then
11662 lt_cv_archive_cmds_need_lc=no
11663 else
11664 lt_cv_archive_cmds_need_lc=yes
11665 fi
11666 allow_undefined_flag=$lt_save_allow_undefined_flag
11667 else
11668 cat conftest.err 1>&5
11669 fi
11670 $RM conftest*
11671
11672 fi
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11674 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11675 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11676 ;;
11677 esac
11678 fi
11679 ;;
11680 esac
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11834 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11835
11836 if test yes = "$GCC"; then
11837 case $host_os in
11838 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11839 *) lt_awk_arg='/^libraries:/' ;;
11840 esac
11841 case $host_os in
11842 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11843 *) lt_sed_strip_eq='s|=/|/|g' ;;
11844 esac
11845 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11846 case $lt_search_path_spec in
11847 *\;*)
11848 # if the path contains ";" then we assume it to be the separator
11849 # otherwise default to the standard path separator (i.e. ":") - it is
11850 # assumed that no part of a normal pathname contains ";" but that should
11851 # okay in the real world where ";" in dirpaths is itself problematic.
11852 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11853 ;;
11854 *)
11855 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11856 ;;
11857 esac
11858 # Ok, now we have the path, separated by spaces, we can step through it
11859 # and add multilib dir if necessary...
11860 lt_tmp_lt_search_path_spec=
11861 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11862 # ...but if some path component already ends with the multilib dir we assume
11863 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11864 case "$lt_multi_os_dir; $lt_search_path_spec " in
11865 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11866 lt_multi_os_dir=
11867 ;;
11868 esac
11869 for lt_sys_path in $lt_search_path_spec; do
11870 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11871 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11872 elif test -n "$lt_multi_os_dir"; then
11873 test -d "$lt_sys_path" && \
11874 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11875 fi
11876 done
11877 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11878 BEGIN {RS = " "; FS = "/|\n";} {
11879 lt_foo = "";
11880 lt_count = 0;
11881 for (lt_i = NF; lt_i > 0; lt_i--) {
11882 if ($lt_i != "" && $lt_i != ".") {
11883 if ($lt_i == "..") {
11884 lt_count++;
11885 } else {
11886 if (lt_count == 0) {
11887 lt_foo = "/" $lt_i lt_foo;
11888 } else {
11889 lt_count--;
11890 }
11891 }
11892 }
11893 }
11894 if (lt_foo != "") { lt_freq[lt_foo]++; }
11895 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11896 }'`
11897 # AWK program above erroneously prepends '/' to C:/dos/paths
11898 # for these hosts.
11899 case $host_os in
11900 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11901 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11902 esac
11903 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11904 else
11905 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11906 fi
11907 library_names_spec=
11908 libname_spec='lib$name'
11909 soname_spec=
11910 shrext_cmds=.so
11911 postinstall_cmds=
11912 postuninstall_cmds=
11913 finish_cmds=
11914 finish_eval=
11915 shlibpath_var=
11916 shlibpath_overrides_runpath=unknown
11917 version_type=none
11918 dynamic_linker="$host_os ld.so"
11919 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11920 need_lib_prefix=unknown
11921 hardcode_into_libs=no
11922
11923 # when you set need_version to no, make sure it does not cause -set_version
11924 # flags to be left without arguments
11925 need_version=unknown
11926
11927
11928
11929 case $host_os in
11930 aix3*)
11931 version_type=linux # correct to gnu/linux during the next big refactor
11932 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11933 shlibpath_var=LIBPATH
11934
11935 # AIX 3 has no versioning support, so we append a major version to the name.
11936 soname_spec='$libname$release$shared_ext$major'
11937 ;;
11938
11939 aix[4-9]*)
11940 version_type=linux # correct to gnu/linux during the next big refactor
11941 need_lib_prefix=no
11942 need_version=no
11943 hardcode_into_libs=yes
11944 if test ia64 = "$host_cpu"; then
11945 # AIX 5 supports IA64
11946 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11947 shlibpath_var=LD_LIBRARY_PATH
11948 else
11949 # With GCC up to 2.95.x, collect2 would create an import file
11950 # for dependence libraries. The import file would start with
11951 # the line '#! .'. This would cause the generated library to
11952 # depend on '.', always an invalid library. This was fixed in
11953 # development snapshots of GCC prior to 3.0.
11954 case $host_os in
11955 aix4 | aix4.[01] | aix4.[01].*)
11956 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11957 echo ' yes '
11958 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11959 :
11960 else
11961 can_build_shared=no
11962 fi
11963 ;;
11964 esac
11965 # Using Import Files as archive members, it is possible to support
11966 # filename-based versioning of shared library archives on AIX. While
11967 # this would work for both with and without runtime linking, it will
11968 # prevent static linking of such archives. So we do filename-based
11969 # shared library versioning with .so extension only, which is used
11970 # when both runtime linking and shared linking is enabled.
11971 # Unfortunately, runtime linking may impact performance, so we do
11972 # not want this to be the default eventually. Also, we use the
11973 # versioned .so libs for executables only if there is the -brtl
11974 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11975 # To allow for filename-based versioning support, we need to create
11976 # libNAME.so.V as an archive file, containing:
11977 # *) an Import File, referring to the versioned filename of the
11978 # archive as well as the shared archive member, telling the
11979 # bitwidth (32 or 64) of that shared object, and providing the
11980 # list of exported symbols of that shared object, eventually
11981 # decorated with the 'weak' keyword
11982 # *) the shared object with the F_LOADONLY flag set, to really avoid
11983 # it being seen by the linker.
11984 # At run time we better use the real file rather than another symlink,
11985 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11986
11987 case $with_aix_soname,$aix_use_runtimelinking in
11988 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11989 # soname into executable. Probably we can add versioning support to
11990 # collect2, so additional links can be useful in future.
11991 aix,yes) # traditional libtool
11992 dynamic_linker='AIX unversionable lib.so'
11993 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11994 # instead of lib<name>.a to let people know that these are not
11995 # typical AIX shared libraries.
11996 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11997 ;;
11998 aix,no) # traditional AIX only
11999 dynamic_linker='AIX lib.a(lib.so.V)'
12000 # We preserve .a as extension for shared libraries through AIX4.2
12001 # and later when we are not doing run time linking.
12002 library_names_spec='$libname$release.a $libname.a'
12003 soname_spec='$libname$release$shared_ext$major'
12004 ;;
12005 svr4,*) # full svr4 only
12006 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12007 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12008 # We do not specify a path in Import Files, so LIBPATH fires.
12009 shlibpath_overrides_runpath=yes
12010 ;;
12011 *,yes) # both, prefer svr4
12012 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12013 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12014 # unpreferred sharedlib libNAME.a needs extra handling
12015 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
12016 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
12017 # We do not specify a path in Import Files, so LIBPATH fires.
12018 shlibpath_overrides_runpath=yes
12019 ;;
12020 *,no) # both, prefer aix
12021 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12022 library_names_spec='$libname$release.a $libname.a'
12023 soname_spec='$libname$release$shared_ext$major'
12024 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12025 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
12026 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
12027 ;;
12028 esac
12029 shlibpath_var=LIBPATH
12030 fi
12031 ;;
12032
12033 amigaos*)
12034 case $host_cpu in
12035 powerpc)
12036 # Since July 2007 AmigaOS4 officially supports .so libraries.
12037 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12038 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12039 ;;
12040 m68k)
12041 library_names_spec='$libname.ixlibrary $libname.a'
12042 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12043 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12044 ;;
12045 esac
12046 ;;
12047
12048 beos*)
12049 library_names_spec='$libname$shared_ext'
12050 dynamic_linker="$host_os ld.so"
12051 shlibpath_var=LIBRARY_PATH
12052 ;;
12053
12054 bsdi[45]*)
12055 version_type=linux # correct to gnu/linux during the next big refactor
12056 need_version=no
12057 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12058 soname_spec='$libname$release$shared_ext$major'
12059 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12060 shlibpath_var=LD_LIBRARY_PATH
12061 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12062 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12063 # the default ld.so.conf also contains /usr/contrib/lib and
12064 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12065 # libtool to hard-code these into programs
12066 ;;
12067
12068 cygwin* | mingw* | pw32* | cegcc*)
12069 version_type=windows
12070 shrext_cmds=.dll
12071 need_version=no
12072 need_lib_prefix=no
12073
12074 case $GCC,$cc_basename in
12075 yes,*)
12076 # gcc
12077 library_names_spec='$libname.dll.a'
12078 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12079 postinstall_cmds='base_file=`basename \$file`~
12080 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12081 dldir=$destdir/`dirname \$dlpath`~
12082 test -d \$dldir || mkdir -p \$dldir~
12083 $install_prog $dir/$dlname \$dldir/$dlname~
12084 chmod a+x \$dldir/$dlname~
12085 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12086 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12087 fi'
12088 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12089 dlpath=$dir/\$dldll~
12090 $RM \$dlpath'
12091 shlibpath_overrides_runpath=yes
12092
12093 case $host_os in
12094 cygwin*)
12095 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12096 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12097
12098 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12099 ;;
12100 mingw* | cegcc*)
12101 # MinGW DLLs use traditional 'lib' prefix
12102 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12103 ;;
12104 pw32*)
12105 # pw32 DLLs use 'pw' prefix rather than 'lib'
12106 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12107 ;;
12108 esac
12109 dynamic_linker='Win32 ld.exe'
12110 ;;
12111
12112 *,cl*)
12113 # Native MSVC
12114 libname_spec='$name'
12115 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12116 library_names_spec='$libname.dll.lib'
12117
12118 case $build_os in
12119 mingw*)
12120 sys_lib_search_path_spec=
12121 lt_save_ifs=$IFS
12122 IFS=';'
12123 for lt_path in $LIB
12124 do
12125 IFS=$lt_save_ifs
12126 # Let DOS variable expansion print the short 8.3 style file name.
12127 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12128 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12129 done
12130 IFS=$lt_save_ifs
12131 # Convert to MSYS style.
12132 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12133 ;;
12134 cygwin*)
12135 # Convert to unix form, then to dos form, then back to unix form
12136 # but this time dos style (no spaces!) so that the unix form looks
12137 # like /cygdrive/c/PROGRA~1:/cygdr...
12138 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12139 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12140 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12141 ;;
12142 *)
12143 sys_lib_search_path_spec=$LIB
12144 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12145 # It is most probably a Windows format PATH.
12146 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12147 else
12148 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12149 fi
12150 # FIXME: find the short name or the path components, as spaces are
12151 # common. (e.g. "Program Files" -> "PROGRA~1")
12152 ;;
12153 esac
12154
12155 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12156 postinstall_cmds='base_file=`basename \$file`~
12157 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12158 dldir=$destdir/`dirname \$dlpath`~
12159 test -d \$dldir || mkdir -p \$dldir~
12160 $install_prog $dir/$dlname \$dldir/$dlname'
12161 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12162 dlpath=$dir/\$dldll~
12163 $RM \$dlpath'
12164 shlibpath_overrides_runpath=yes
12165 dynamic_linker='Win32 link.exe'
12166 ;;
12167
12168 *)
12169 # Assume MSVC wrapper
12170 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12171 dynamic_linker='Win32 ld.exe'
12172 ;;
12173 esac
12174 # FIXME: first we should search . and the directory the executable is in
12175 shlibpath_var=PATH
12176 ;;
12177
12178 darwin* | rhapsody*)
12179 dynamic_linker="$host_os dyld"
12180 version_type=darwin
12181 need_lib_prefix=no
12182 need_version=no
12183 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12184 soname_spec='$libname$release$major$shared_ext'
12185 shlibpath_overrides_runpath=yes
12186 shlibpath_var=DYLD_LIBRARY_PATH
12187 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12188
12189 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12190 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12191 ;;
12192
12193 dgux*)
12194 version_type=linux # correct to gnu/linux during the next big refactor
12195 need_lib_prefix=no
12196 need_version=no
12197 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12198 soname_spec='$libname$release$shared_ext$major'
12199 shlibpath_var=LD_LIBRARY_PATH
12200 ;;
12201
12202 freebsd* | dragonfly*)
12203 # DragonFly does not have aout. When/if they implement a new
12204 # versioning mechanism, adjust this.
12205 if test -x /usr/bin/objformat; then
12206 objformat=`/usr/bin/objformat`
12207 else
12208 case $host_os in
12209 freebsd[23].*) objformat=aout ;;
12210 *) objformat=elf ;;
12211 esac
12212 fi
12213 version_type=freebsd-$objformat
12214 case $version_type in
12215 freebsd-elf*)
12216 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12217 soname_spec='$libname$release$shared_ext$major'
12218 need_version=no
12219 need_lib_prefix=no
12220 ;;
12221 freebsd-*)
12222 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12223 need_version=yes
12224 ;;
12225 esac
12226 shlibpath_var=LD_LIBRARY_PATH
12227 case $host_os in
12228 freebsd2.*)
12229 shlibpath_overrides_runpath=yes
12230 ;;
12231 freebsd3.[01]* | freebsdelf3.[01]*)
12232 shlibpath_overrides_runpath=yes
12233 hardcode_into_libs=yes
12234 ;;
12235 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12236 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12237 shlibpath_overrides_runpath=no
12238 hardcode_into_libs=yes
12239 ;;
12240 *) # from 4.6 on, and DragonFly
12241 shlibpath_overrides_runpath=yes
12242 hardcode_into_libs=yes
12243 ;;
12244 esac
12245 ;;
12246
12247 haiku*)
12248 version_type=linux # correct to gnu/linux during the next big refactor
12249 need_lib_prefix=no
12250 need_version=no
12251 dynamic_linker="$host_os runtime_loader"
12252 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12253 soname_spec='$libname$release$shared_ext$major'
12254 shlibpath_var=LIBRARY_PATH
12255 shlibpath_overrides_runpath=no
12256 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12257 hardcode_into_libs=yes
12258 ;;
12259
12260 hpux9* | hpux10* | hpux11*)
12261 # Give a soname corresponding to the major version so that dld.sl refuses to
12262 # link against other versions.
12263 version_type=sunos
12264 need_lib_prefix=no
12265 need_version=no
12266 case $host_cpu in
12267 ia64*)
12268 shrext_cmds='.so'
12269 hardcode_into_libs=yes
12270 dynamic_linker="$host_os dld.so"
12271 shlibpath_var=LD_LIBRARY_PATH
12272 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12273 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12274 soname_spec='$libname$release$shared_ext$major'
12275 if test 32 = "$HPUX_IA64_MODE"; then
12276 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12277 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12278 else
12279 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12280 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12281 fi
12282 ;;
12283 hppa*64*)
12284 shrext_cmds='.sl'
12285 hardcode_into_libs=yes
12286 dynamic_linker="$host_os dld.sl"
12287 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12288 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12289 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12290 soname_spec='$libname$release$shared_ext$major'
12291 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12292 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12293 ;;
12294 *)
12295 shrext_cmds='.sl'
12296 dynamic_linker="$host_os dld.sl"
12297 shlibpath_var=SHLIB_PATH
12298 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12299 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12300 soname_spec='$libname$release$shared_ext$major'
12301 ;;
12302 esac
12303 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12304 postinstall_cmds='chmod 555 $lib'
12305 # or fails outright, so override atomically:
12306 install_override_mode=555
12307 ;;
12308
12309 interix[3-9]*)
12310 version_type=linux # correct to gnu/linux during the next big refactor
12311 need_lib_prefix=no
12312 need_version=no
12313 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12314 soname_spec='$libname$release$shared_ext$major'
12315 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12316 shlibpath_var=LD_LIBRARY_PATH
12317 shlibpath_overrides_runpath=no
12318 hardcode_into_libs=yes
12319 ;;
12320
12321 irix5* | irix6* | nonstopux*)
12322 case $host_os in
12323 nonstopux*) version_type=nonstopux ;;
12324 *)
12325 if test yes = "$lt_cv_prog_gnu_ld"; then
12326 version_type=linux # correct to gnu/linux during the next big refactor
12327 else
12328 version_type=irix
12329 fi ;;
12330 esac
12331 need_lib_prefix=no
12332 need_version=no
12333 soname_spec='$libname$release$shared_ext$major'
12334 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12335 case $host_os in
12336 irix5* | nonstopux*)
12337 libsuff= shlibsuff=
12338 ;;
12339 *)
12340 case $LD in # libtool.m4 will add one of these switches to LD
12341 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12342 libsuff= shlibsuff= libmagic=32-bit;;
12343 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12344 libsuff=32 shlibsuff=N32 libmagic=N32;;
12345 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12346 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12347 *) libsuff= shlibsuff= libmagic=never-match;;
12348 esac
12349 ;;
12350 esac
12351 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12352 shlibpath_overrides_runpath=no
12353 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12354 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12355 hardcode_into_libs=yes
12356 ;;
12357
12358 # No shared lib support for Linux oldld, aout, or coff.
12359 linux*oldld* | linux*aout* | linux*coff*)
12360 dynamic_linker=no
12361 ;;
12362
12363 linux*android*)
12364 version_type=none # Android doesn't support versioned libraries.
12365 need_lib_prefix=no
12366 need_version=no
12367 library_names_spec='$libname$release$shared_ext'
12368 soname_spec='$libname$release$shared_ext'
12369 finish_cmds=
12370 shlibpath_var=LD_LIBRARY_PATH
12371 shlibpath_overrides_runpath=yes
12372
12373 # This implies no fast_install, which is unacceptable.
12374 # Some rework will be needed to allow for fast_install
12375 # before this can be enabled.
12376 hardcode_into_libs=yes
12377
12378 dynamic_linker='Android linker'
12379 # Don't embed -rpath directories since the linker doesn't support them.
12380 hardcode_libdir_flag_spec='-L$libdir'
12381 ;;
12382
12383 # This must be glibc/ELF.
12384 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12385 version_type=linux # correct to gnu/linux during the next big refactor
12386 need_lib_prefix=no
12387 need_version=no
12388 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12389 soname_spec='$libname$release$shared_ext$major'
12390 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12391 shlibpath_var=LD_LIBRARY_PATH
12392 shlibpath_overrides_runpath=no
12393
12394 # Some binutils ld are patched to set DT_RUNPATH
12395 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12396 $as_echo_n "(cached) " >&6
12397 else
12398 lt_cv_shlibpath_overrides_runpath=no
12399 save_LDFLAGS=$LDFLAGS
12400 save_libdir=$libdir
12401 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12402 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12404 /* end confdefs.h. */
12405
12406 int
12407 main ()
12408 {
12409
12410 ;
12411 return 0;
12412 }
12413 _ACEOF
12414 if ac_fn_c_try_link "$LINENO"; then :
12415 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12416 lt_cv_shlibpath_overrides_runpath=yes
12417 fi
12418 fi
12419 rm -f core conftest.err conftest.$ac_objext \
12420 conftest$ac_exeext conftest.$ac_ext
12421 LDFLAGS=$save_LDFLAGS
12422 libdir=$save_libdir
12423
12424 fi
12425
12426 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12427
12428 # This implies no fast_install, which is unacceptable.
12429 # Some rework will be needed to allow for fast_install
12430 # before this can be enabled.
12431 hardcode_into_libs=yes
12432
12433 # Ideally, we could use ldconfig to report *all* directores which are
12434 # searched for libraries, however this is still not possible. Aside from not
12435 # being certain /sbin/ldconfig is available, command
12436 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12437 # even though it is searched at run-time. Try to do the best guess by
12438 # appending ld.so.conf contents (and includes) to the search path.
12439 if test -f /etc/ld.so.conf; then
12440 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' ' '`
12441 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12442 fi
12443
12444 # We used to test for /lib/ld.so.1 and disable shared libraries on
12445 # powerpc, because MkLinux only supported shared libraries with the
12446 # GNU dynamic linker. Since this was broken with cross compilers,
12447 # most powerpc-linux boxes support dynamic linking these days and
12448 # people can always --disable-shared, the test was removed, and we
12449 # assume the GNU/Linux dynamic linker is in use.
12450 dynamic_linker='GNU/Linux ld.so'
12451 ;;
12452
12453 netbsdelf*-gnu)
12454 version_type=linux
12455 need_lib_prefix=no
12456 need_version=no
12457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12458 soname_spec='${libname}${release}${shared_ext}$major'
12459 shlibpath_var=LD_LIBRARY_PATH
12460 shlibpath_overrides_runpath=no
12461 hardcode_into_libs=yes
12462 dynamic_linker='NetBSD ld.elf_so'
12463 ;;
12464
12465 netbsd*)
12466 version_type=sunos
12467 need_lib_prefix=no
12468 need_version=no
12469 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12470 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12471 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12472 dynamic_linker='NetBSD (a.out) ld.so'
12473 else
12474 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12475 soname_spec='$libname$release$shared_ext$major'
12476 dynamic_linker='NetBSD ld.elf_so'
12477 fi
12478 shlibpath_var=LD_LIBRARY_PATH
12479 shlibpath_overrides_runpath=yes
12480 hardcode_into_libs=yes
12481 ;;
12482
12483 newsos6)
12484 version_type=linux # correct to gnu/linux during the next big refactor
12485 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12486 shlibpath_var=LD_LIBRARY_PATH
12487 shlibpath_overrides_runpath=yes
12488 ;;
12489
12490 *nto* | *qnx*)
12491 version_type=qnx
12492 need_lib_prefix=no
12493 need_version=no
12494 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12495 soname_spec='$libname$release$shared_ext$major'
12496 shlibpath_var=LD_LIBRARY_PATH
12497 shlibpath_overrides_runpath=no
12498 hardcode_into_libs=yes
12499 dynamic_linker='ldqnx.so'
12500 ;;
12501
12502 openbsd* | bitrig*)
12503 version_type=sunos
12504 sys_lib_dlsearch_path_spec=/usr/lib
12505 need_lib_prefix=no
12506 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12507 need_version=no
12508 else
12509 need_version=yes
12510 fi
12511 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12512 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12513 shlibpath_var=LD_LIBRARY_PATH
12514 shlibpath_overrides_runpath=yes
12515 ;;
12516
12517 os2*)
12518 libname_spec='$name'
12519 version_type=windows
12520 shrext_cmds=.dll
12521 need_version=no
12522 need_lib_prefix=no
12523 # OS/2 can only load a DLL with a base name of 8 characters or less.
12524 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12525 v=$($ECHO $release$versuffix | tr -d .-);
12526 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12527 $ECHO $n$v`$shared_ext'
12528 library_names_spec='${libname}_dll.$libext'
12529 dynamic_linker='OS/2 ld.exe'
12530 shlibpath_var=BEGINLIBPATH
12531 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12532 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12533 postinstall_cmds='base_file=`basename \$file`~
12534 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12535 dldir=$destdir/`dirname \$dlpath`~
12536 test -d \$dldir || mkdir -p \$dldir~
12537 $install_prog $dir/$dlname \$dldir/$dlname~
12538 chmod a+x \$dldir/$dlname~
12539 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12540 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12541 fi'
12542 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12543 dlpath=$dir/\$dldll~
12544 $RM \$dlpath'
12545 ;;
12546
12547 osf3* | osf4* | osf5*)
12548 version_type=osf
12549 need_lib_prefix=no
12550 need_version=no
12551 soname_spec='$libname$release$shared_ext$major'
12552 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12553 shlibpath_var=LD_LIBRARY_PATH
12554 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12555 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12556 ;;
12557
12558 rdos*)
12559 dynamic_linker=no
12560 ;;
12561
12562 solaris*)
12563 version_type=linux # correct to gnu/linux during the next big refactor
12564 need_lib_prefix=no
12565 need_version=no
12566 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12567 soname_spec='$libname$release$shared_ext$major'
12568 shlibpath_var=LD_LIBRARY_PATH
12569 shlibpath_overrides_runpath=yes
12570 hardcode_into_libs=yes
12571 # ldd complains unless libraries are executable
12572 postinstall_cmds='chmod +x $lib'
12573 ;;
12574
12575 sunos4*)
12576 version_type=sunos
12577 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12578 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12579 shlibpath_var=LD_LIBRARY_PATH
12580 shlibpath_overrides_runpath=yes
12581 if test yes = "$with_gnu_ld"; then
12582 need_lib_prefix=no
12583 fi
12584 need_version=yes
12585 ;;
12586
12587 sysv4 | sysv4.3*)
12588 version_type=linux # correct to gnu/linux during the next big refactor
12589 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12590 soname_spec='$libname$release$shared_ext$major'
12591 shlibpath_var=LD_LIBRARY_PATH
12592 case $host_vendor in
12593 sni)
12594 shlibpath_overrides_runpath=no
12595 need_lib_prefix=no
12596 runpath_var=LD_RUN_PATH
12597 ;;
12598 siemens)
12599 need_lib_prefix=no
12600 ;;
12601 motorola)
12602 need_lib_prefix=no
12603 need_version=no
12604 shlibpath_overrides_runpath=no
12605 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12606 ;;
12607 esac
12608 ;;
12609
12610 sysv4*MP*)
12611 if test -d /usr/nec; then
12612 version_type=linux # correct to gnu/linux during the next big refactor
12613 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12614 soname_spec='$libname$shared_ext.$major'
12615 shlibpath_var=LD_LIBRARY_PATH
12616 fi
12617 ;;
12618
12619 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12620 version_type=sco
12621 need_lib_prefix=no
12622 need_version=no
12623 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12624 soname_spec='$libname$release$shared_ext$major'
12625 shlibpath_var=LD_LIBRARY_PATH
12626 shlibpath_overrides_runpath=yes
12627 hardcode_into_libs=yes
12628 if test yes = "$with_gnu_ld"; then
12629 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12630 else
12631 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12632 case $host_os in
12633 sco3.2v5*)
12634 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12635 ;;
12636 esac
12637 fi
12638 sys_lib_dlsearch_path_spec='/usr/lib'
12639 ;;
12640
12641 tpf*)
12642 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12643 version_type=linux # correct to gnu/linux during the next big refactor
12644 need_lib_prefix=no
12645 need_version=no
12646 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12647 shlibpath_var=LD_LIBRARY_PATH
12648 shlibpath_overrides_runpath=no
12649 hardcode_into_libs=yes
12650 ;;
12651
12652 uts4*)
12653 version_type=linux # correct to gnu/linux during the next big refactor
12654 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12655 soname_spec='$libname$release$shared_ext$major'
12656 shlibpath_var=LD_LIBRARY_PATH
12657 ;;
12658
12659 *)
12660 dynamic_linker=no
12661 ;;
12662 esac
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12664 $as_echo "$dynamic_linker" >&6; }
12665 test no = "$dynamic_linker" && can_build_shared=no
12666
12667 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12668 if test yes = "$GCC"; then
12669 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12670 fi
12671
12672 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12673 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12674 fi
12675
12676 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12677 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12678 fi
12679
12680 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12681 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12682
12683 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12684 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12685
12686 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12687 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12786 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12787 hardcode_action=
12788 if test -n "$hardcode_libdir_flag_spec" ||
12789 test -n "$runpath_var" ||
12790 test yes = "$hardcode_automatic"; then
12791
12792 # We can hardcode non-existent directories.
12793 if test no != "$hardcode_direct" &&
12794 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12795 # have to relink, otherwise we might link with an installed library
12796 # when we should be linking with a yet-to-be-installed one
12797 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12798 test no != "$hardcode_minus_L"; then
12799 # Linking always hardcodes the temporary library directory.
12800 hardcode_action=relink
12801 else
12802 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12803 hardcode_action=immediate
12804 fi
12805 else
12806 # We cannot hardcode anything, or else we can only hardcode existing
12807 # directories.
12808 hardcode_action=unsupported
12809 fi
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12811 $as_echo "$hardcode_action" >&6; }
12812
12813 if test relink = "$hardcode_action" ||
12814 test yes = "$inherit_rpath"; then
12815 # Fast installation is not supported
12816 enable_fast_install=no
12817 elif test yes = "$shlibpath_overrides_runpath" ||
12818 test no = "$enable_shared"; then
12819 # Fast installation is not necessary
12820 enable_fast_install=needless
12821 fi
12822
12823
12824
12825
12826
12827
12828 if test yes != "$enable_dlopen"; then
12829 enable_dlopen=unknown
12830 enable_dlopen_self=unknown
12831 enable_dlopen_self_static=unknown
12832 else
12833 lt_cv_dlopen=no
12834 lt_cv_dlopen_libs=
12835
12836 case $host_os in
12837 beos*)
12838 lt_cv_dlopen=load_add_on
12839 lt_cv_dlopen_libs=
12840 lt_cv_dlopen_self=yes
12841 ;;
12842
12843 mingw* | pw32* | cegcc*)
12844 lt_cv_dlopen=LoadLibrary
12845 lt_cv_dlopen_libs=
12846 ;;
12847
12848 cygwin*)
12849 lt_cv_dlopen=dlopen
12850 lt_cv_dlopen_libs=
12851 ;;
12852
12853 darwin*)
12854 # if libdl is installed we need to link against it
12855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12856 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12857 if ${ac_cv_lib_dl_dlopen+:} false; then :
12858 $as_echo_n "(cached) " >&6
12859 else
12860 ac_check_lib_save_LIBS=$LIBS
12861 LIBS="-ldl $LIBS"
12862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12863 /* end confdefs.h. */
12864
12865 /* Override any GCC internal prototype to avoid an error.
12866 Use char because int might match the return type of a GCC
12867 builtin and then its argument prototype would still apply. */
12868 #ifdef __cplusplus
12869 extern "C"
12870 #endif
12871 char dlopen ();
12872 int
12873 main ()
12874 {
12875 return dlopen ();
12876 ;
12877 return 0;
12878 }
12879 _ACEOF
12880 if ac_fn_c_try_link "$LINENO"; then :
12881 ac_cv_lib_dl_dlopen=yes
12882 else
12883 ac_cv_lib_dl_dlopen=no
12884 fi
12885 rm -f core conftest.err conftest.$ac_objext \
12886 conftest$ac_exeext conftest.$ac_ext
12887 LIBS=$ac_check_lib_save_LIBS
12888 fi
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12890 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12891 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12892 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12893 else
12894
12895 lt_cv_dlopen=dyld
12896 lt_cv_dlopen_libs=
12897 lt_cv_dlopen_self=yes
12898
12899 fi
12900
12901 ;;
12902
12903 tpf*)
12904 # Don't try to run any link tests for TPF. We know it's impossible
12905 # because TPF is a cross-compiler, and we know how we open DSOs.
12906 lt_cv_dlopen=dlopen
12907 lt_cv_dlopen_libs=
12908 lt_cv_dlopen_self=no
12909 ;;
12910
12911 *)
12912 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12913 if test "x$ac_cv_func_shl_load" = xyes; then :
12914 lt_cv_dlopen=shl_load
12915 else
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12917 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12918 if ${ac_cv_lib_dld_shl_load+:} false; then :
12919 $as_echo_n "(cached) " >&6
12920 else
12921 ac_check_lib_save_LIBS=$LIBS
12922 LIBS="-ldld $LIBS"
12923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12924 /* end confdefs.h. */
12925
12926 /* Override any GCC internal prototype to avoid an error.
12927 Use char because int might match the return type of a GCC
12928 builtin and then its argument prototype would still apply. */
12929 #ifdef __cplusplus
12930 extern "C"
12931 #endif
12932 char shl_load ();
12933 int
12934 main ()
12935 {
12936 return shl_load ();
12937 ;
12938 return 0;
12939 }
12940 _ACEOF
12941 if ac_fn_c_try_link "$LINENO"; then :
12942 ac_cv_lib_dld_shl_load=yes
12943 else
12944 ac_cv_lib_dld_shl_load=no
12945 fi
12946 rm -f core conftest.err conftest.$ac_objext \
12947 conftest$ac_exeext conftest.$ac_ext
12948 LIBS=$ac_check_lib_save_LIBS
12949 fi
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12951 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12952 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12953 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12954 else
12955 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12956 if test "x$ac_cv_func_dlopen" = xyes; then :
12957 lt_cv_dlopen=dlopen
12958 else
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12960 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12961 if ${ac_cv_lib_dl_dlopen+:} false; then :
12962 $as_echo_n "(cached) " >&6
12963 else
12964 ac_check_lib_save_LIBS=$LIBS
12965 LIBS="-ldl $LIBS"
12966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12967 /* end confdefs.h. */
12968
12969 /* Override any GCC internal prototype to avoid an error.
12970 Use char because int might match the return type of a GCC
12971 builtin and then its argument prototype would still apply. */
12972 #ifdef __cplusplus
12973 extern "C"
12974 #endif
12975 char dlopen ();
12976 int
12977 main ()
12978 {
12979 return dlopen ();
12980 ;
12981 return 0;
12982 }
12983 _ACEOF
12984 if ac_fn_c_try_link "$LINENO"; then :
12985 ac_cv_lib_dl_dlopen=yes
12986 else
12987 ac_cv_lib_dl_dlopen=no
12988 fi
12989 rm -f core conftest.err conftest.$ac_objext \
12990 conftest$ac_exeext conftest.$ac_ext
12991 LIBS=$ac_check_lib_save_LIBS
12992 fi
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12994 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12995 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12996 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12997 else
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12999 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13000 if ${ac_cv_lib_svld_dlopen+:} false; then :
13001 $as_echo_n "(cached) " >&6
13002 else
13003 ac_check_lib_save_LIBS=$LIBS
13004 LIBS="-lsvld $LIBS"
13005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13006 /* end confdefs.h. */
13007
13008 /* Override any GCC internal prototype to avoid an error.
13009 Use char because int might match the return type of a GCC
13010 builtin and then its argument prototype would still apply. */
13011 #ifdef __cplusplus
13012 extern "C"
13013 #endif
13014 char dlopen ();
13015 int
13016 main ()
13017 {
13018 return dlopen ();
13019 ;
13020 return 0;
13021 }
13022 _ACEOF
13023 if ac_fn_c_try_link "$LINENO"; then :
13024 ac_cv_lib_svld_dlopen=yes
13025 else
13026 ac_cv_lib_svld_dlopen=no
13027 fi
13028 rm -f core conftest.err conftest.$ac_objext \
13029 conftest$ac_exeext conftest.$ac_ext
13030 LIBS=$ac_check_lib_save_LIBS
13031 fi
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13033 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13034 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13035 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13036 else
13037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13038 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13039 if ${ac_cv_lib_dld_dld_link+:} false; then :
13040 $as_echo_n "(cached) " >&6
13041 else
13042 ac_check_lib_save_LIBS=$LIBS
13043 LIBS="-ldld $LIBS"
13044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13045 /* end confdefs.h. */
13046
13047 /* Override any GCC internal prototype to avoid an error.
13048 Use char because int might match the return type of a GCC
13049 builtin and then its argument prototype would still apply. */
13050 #ifdef __cplusplus
13051 extern "C"
13052 #endif
13053 char dld_link ();
13054 int
13055 main ()
13056 {
13057 return dld_link ();
13058 ;
13059 return 0;
13060 }
13061 _ACEOF
13062 if ac_fn_c_try_link "$LINENO"; then :
13063 ac_cv_lib_dld_dld_link=yes
13064 else
13065 ac_cv_lib_dld_dld_link=no
13066 fi
13067 rm -f core conftest.err conftest.$ac_objext \
13068 conftest$ac_exeext conftest.$ac_ext
13069 LIBS=$ac_check_lib_save_LIBS
13070 fi
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13072 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13073 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13074 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13075 fi
13076
13077
13078 fi
13079
13080
13081 fi
13082
13083
13084 fi
13085
13086
13087 fi
13088
13089
13090 fi
13091
13092 ;;
13093 esac
13094
13095 if test no = "$lt_cv_dlopen"; then
13096 enable_dlopen=no
13097 else
13098 enable_dlopen=yes
13099 fi
13100
13101 case $lt_cv_dlopen in
13102 dlopen)
13103 save_CPPFLAGS=$CPPFLAGS
13104 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13105
13106 save_LDFLAGS=$LDFLAGS
13107 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13108
13109 save_LIBS=$LIBS
13110 LIBS="$lt_cv_dlopen_libs $LIBS"
13111
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13113 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13114 if ${lt_cv_dlopen_self+:} false; then :
13115 $as_echo_n "(cached) " >&6
13116 else
13117 if test yes = "$cross_compiling"; then :
13118 lt_cv_dlopen_self=cross
13119 else
13120 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13121 lt_status=$lt_dlunknown
13122 cat > conftest.$ac_ext <<_LT_EOF
13123 #line $LINENO "configure"
13124 #include "confdefs.h"
13125
13126 #if HAVE_DLFCN_H
13127 #include <dlfcn.h>
13128 #endif
13129
13130 #include <stdio.h>
13131
13132 #ifdef RTLD_GLOBAL
13133 # define LT_DLGLOBAL RTLD_GLOBAL
13134 #else
13135 # ifdef DL_GLOBAL
13136 # define LT_DLGLOBAL DL_GLOBAL
13137 # else
13138 # define LT_DLGLOBAL 0
13139 # endif
13140 #endif
13141
13142 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13143 find out it does not work in some platform. */
13144 #ifndef LT_DLLAZY_OR_NOW
13145 # ifdef RTLD_LAZY
13146 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13147 # else
13148 # ifdef DL_LAZY
13149 # define LT_DLLAZY_OR_NOW DL_LAZY
13150 # else
13151 # ifdef RTLD_NOW
13152 # define LT_DLLAZY_OR_NOW RTLD_NOW
13153 # else
13154 # ifdef DL_NOW
13155 # define LT_DLLAZY_OR_NOW DL_NOW
13156 # else
13157 # define LT_DLLAZY_OR_NOW 0
13158 # endif
13159 # endif
13160 # endif
13161 # endif
13162 #endif
13163
13164 /* When -fvisibility=hidden is used, assume the code has been annotated
13165 correspondingly for the symbols needed. */
13166 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13167 int fnord () __attribute__((visibility("default")));
13168 #endif
13169
13170 int fnord () { return 42; }
13171 int main ()
13172 {
13173 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13174 int status = $lt_dlunknown;
13175
13176 if (self)
13177 {
13178 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13179 else
13180 {
13181 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13182 else puts (dlerror ());
13183 }
13184 /* dlclose (self); */
13185 }
13186 else
13187 puts (dlerror ());
13188
13189 return status;
13190 }
13191 _LT_EOF
13192 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13193 (eval $ac_link) 2>&5
13194 ac_status=$?
13195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13196 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13197 (./conftest; exit; ) >&5 2>/dev/null
13198 lt_status=$?
13199 case x$lt_status in
13200 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13201 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13202 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13203 esac
13204 else :
13205 # compilation failed
13206 lt_cv_dlopen_self=no
13207 fi
13208 fi
13209 rm -fr conftest*
13210
13211
13212 fi
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13214 $as_echo "$lt_cv_dlopen_self" >&6; }
13215
13216 if test yes = "$lt_cv_dlopen_self"; then
13217 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13219 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13220 if ${lt_cv_dlopen_self_static+:} false; then :
13221 $as_echo_n "(cached) " >&6
13222 else
13223 if test yes = "$cross_compiling"; then :
13224 lt_cv_dlopen_self_static=cross
13225 else
13226 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13227 lt_status=$lt_dlunknown
13228 cat > conftest.$ac_ext <<_LT_EOF
13229 #line $LINENO "configure"
13230 #include "confdefs.h"
13231
13232 #if HAVE_DLFCN_H
13233 #include <dlfcn.h>
13234 #endif
13235
13236 #include <stdio.h>
13237
13238 #ifdef RTLD_GLOBAL
13239 # define LT_DLGLOBAL RTLD_GLOBAL
13240 #else
13241 # ifdef DL_GLOBAL
13242 # define LT_DLGLOBAL DL_GLOBAL
13243 # else
13244 # define LT_DLGLOBAL 0
13245 # endif
13246 #endif
13247
13248 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13249 find out it does not work in some platform. */
13250 #ifndef LT_DLLAZY_OR_NOW
13251 # ifdef RTLD_LAZY
13252 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13253 # else
13254 # ifdef DL_LAZY
13255 # define LT_DLLAZY_OR_NOW DL_LAZY
13256 # else
13257 # ifdef RTLD_NOW
13258 # define LT_DLLAZY_OR_NOW RTLD_NOW
13259 # else
13260 # ifdef DL_NOW
13261 # define LT_DLLAZY_OR_NOW DL_NOW
13262 # else
13263 # define LT_DLLAZY_OR_NOW 0
13264 # endif
13265 # endif
13266 # endif
13267 # endif
13268 #endif
13269
13270 /* When -fvisibility=hidden is used, assume the code has been annotated
13271 correspondingly for the symbols needed. */
13272 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13273 int fnord () __attribute__((visibility("default")));
13274 #endif
13275
13276 int fnord () { return 42; }
13277 int main ()
13278 {
13279 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13280 int status = $lt_dlunknown;
13281
13282 if (self)
13283 {
13284 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13285 else
13286 {
13287 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13288 else puts (dlerror ());
13289 }
13290 /* dlclose (self); */
13291 }
13292 else
13293 puts (dlerror ());
13294
13295 return status;
13296 }
13297 _LT_EOF
13298 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13299 (eval $ac_link) 2>&5
13300 ac_status=$?
13301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13302 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13303 (./conftest; exit; ) >&5 2>/dev/null
13304 lt_status=$?
13305 case x$lt_status in
13306 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13307 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13308 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13309 esac
13310 else :
13311 # compilation failed
13312 lt_cv_dlopen_self_static=no
13313 fi
13314 fi
13315 rm -fr conftest*
13316
13317
13318 fi
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13320 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13321 fi
13322
13323 CPPFLAGS=$save_CPPFLAGS
13324 LDFLAGS=$save_LDFLAGS
13325 LIBS=$save_LIBS
13326 ;;
13327 esac
13328
13329 case $lt_cv_dlopen_self in
13330 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13331 *) enable_dlopen_self=unknown ;;
13332 esac
13333
13334 case $lt_cv_dlopen_self_static in
13335 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13336 *) enable_dlopen_self_static=unknown ;;
13337 esac
13338 fi
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356 striplib=
13357 old_striplib=
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13359 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13360 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13361 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13362 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13364 $as_echo "yes" >&6; }
13365 else
13366 # FIXME - insert some real tests, host_os isn't really good enough
13367 case $host_os in
13368 darwin*)
13369 if test -n "$STRIP"; then
13370 striplib="$STRIP -x"
13371 old_striplib="$STRIP -S"
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13373 $as_echo "yes" >&6; }
13374 else
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13376 $as_echo "no" >&6; }
13377 fi
13378 ;;
13379 *)
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13381 $as_echo "no" >&6; }
13382 ;;
13383 esac
13384 fi
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397 # Report what library types will actually be built
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13399 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13401 $as_echo "$can_build_shared" >&6; }
13402
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13404 $as_echo_n "checking whether to build shared libraries... " >&6; }
13405 test no = "$can_build_shared" && enable_shared=no
13406
13407 # On AIX, shared libraries and static libraries use the same namespace, and
13408 # are all built from PIC.
13409 case $host_os in
13410 aix3*)
13411 test yes = "$enable_shared" && enable_static=no
13412 if test -n "$RANLIB"; then
13413 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13414 postinstall_cmds='$RANLIB $lib'
13415 fi
13416 ;;
13417
13418 aix[4-9]*)
13419 if test ia64 != "$host_cpu"; then
13420 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13421 yes,aix,yes) ;; # shared object as lib.so file only
13422 yes,svr4,*) ;; # shared object as lib.so archive member only
13423 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13424 esac
13425 fi
13426 ;;
13427 esac
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13429 $as_echo "$enable_shared" >&6; }
13430
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13432 $as_echo_n "checking whether to build static libraries... " >&6; }
13433 # Make sure either enable_shared or enable_static is yes.
13434 test yes = "$enable_shared" || enable_static=yes
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13436 $as_echo "$enable_static" >&6; }
13437
13438
13439
13440
13441 fi
13442 ac_ext=c
13443 ac_cpp='$CPP $CPPFLAGS'
13444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13447
13448 CC=$lt_save_CC
13449
13450 if test -n "$CXX" && ( test no != "$CXX" &&
13451 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
13452 (test g++ != "$CXX"))); then
13453 ac_ext=cpp
13454 ac_cpp='$CXXCPP $CPPFLAGS'
13455 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13456 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13457 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13459 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13460 if test -z "$CXXCPP"; then
13461 if ${ac_cv_prog_CXXCPP+:} false; then :
13462 $as_echo_n "(cached) " >&6
13463 else
13464 # Double quotes because CXXCPP needs to be expanded
13465 for CXXCPP in "$CXX -E" "/lib/cpp"
13466 do
13467 ac_preproc_ok=false
13468 for ac_cxx_preproc_warn_flag in '' yes
13469 do
13470 # Use a header file that comes with gcc, so configuring glibc
13471 # with a fresh cross-compiler works.
13472 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13473 # <limits.h> exists even on freestanding compilers.
13474 # On the NeXT, cc -E runs the code through the compiler's parser,
13475 # not just through cpp. "Syntax error" is here to catch this case.
13476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13477 /* end confdefs.h. */
13478 #ifdef __STDC__
13479 # include <limits.h>
13480 #else
13481 # include <assert.h>
13482 #endif
13483 Syntax error
13484 _ACEOF
13485 if ac_fn_cxx_try_cpp "$LINENO"; then :
13486
13487 else
13488 # Broken: fails on valid input.
13489 continue
13490 fi
13491 rm -f conftest.err conftest.i conftest.$ac_ext
13492
13493 # OK, works on sane cases. Now check whether nonexistent headers
13494 # can be detected and how.
13495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13496 /* end confdefs.h. */
13497 #include <ac_nonexistent.h>
13498 _ACEOF
13499 if ac_fn_cxx_try_cpp "$LINENO"; then :
13500 # Broken: success on invalid input.
13501 continue
13502 else
13503 # Passes both tests.
13504 ac_preproc_ok=:
13505 break
13506 fi
13507 rm -f conftest.err conftest.i conftest.$ac_ext
13508
13509 done
13510 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13511 rm -f conftest.i conftest.err conftest.$ac_ext
13512 if $ac_preproc_ok; then :
13513 break
13514 fi
13515
13516 done
13517 ac_cv_prog_CXXCPP=$CXXCPP
13518
13519 fi
13520 CXXCPP=$ac_cv_prog_CXXCPP
13521 else
13522 ac_cv_prog_CXXCPP=$CXXCPP
13523 fi
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13525 $as_echo "$CXXCPP" >&6; }
13526 ac_preproc_ok=false
13527 for ac_cxx_preproc_warn_flag in '' yes
13528 do
13529 # Use a header file that comes with gcc, so configuring glibc
13530 # with a fresh cross-compiler works.
13531 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13532 # <limits.h> exists even on freestanding compilers.
13533 # On the NeXT, cc -E runs the code through the compiler's parser,
13534 # not just through cpp. "Syntax error" is here to catch this case.
13535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13536 /* end confdefs.h. */
13537 #ifdef __STDC__
13538 # include <limits.h>
13539 #else
13540 # include <assert.h>
13541 #endif
13542 Syntax error
13543 _ACEOF
13544 if ac_fn_cxx_try_cpp "$LINENO"; then :
13545
13546 else
13547 # Broken: fails on valid input.
13548 continue
13549 fi
13550 rm -f conftest.err conftest.i conftest.$ac_ext
13551
13552 # OK, works on sane cases. Now check whether nonexistent headers
13553 # can be detected and how.
13554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13555 /* end confdefs.h. */
13556 #include <ac_nonexistent.h>
13557 _ACEOF
13558 if ac_fn_cxx_try_cpp "$LINENO"; then :
13559 # Broken: success on invalid input.
13560 continue
13561 else
13562 # Passes both tests.
13563 ac_preproc_ok=:
13564 break
13565 fi
13566 rm -f conftest.err conftest.i conftest.$ac_ext
13567
13568 done
13569 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13570 rm -f conftest.i conftest.err conftest.$ac_ext
13571 if $ac_preproc_ok; then :
13572
13573 else
13574 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13575 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13576 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13577 See \`config.log' for more details" "$LINENO" 5; }
13578 fi
13579
13580 ac_ext=c
13581 ac_cpp='$CPP $CPPFLAGS'
13582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13585
13586 else
13587 _lt_caught_CXX_error=yes
13588 fi
13589
13590 ac_ext=cpp
13591 ac_cpp='$CXXCPP $CPPFLAGS'
13592 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13593 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13594 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13595
13596 archive_cmds_need_lc_CXX=no
13597 allow_undefined_flag_CXX=
13598 always_export_symbols_CXX=no
13599 archive_expsym_cmds_CXX=
13600 compiler_needs_object_CXX=no
13601 export_dynamic_flag_spec_CXX=
13602 hardcode_direct_CXX=no
13603 hardcode_direct_absolute_CXX=no
13604 hardcode_libdir_flag_spec_CXX=
13605 hardcode_libdir_separator_CXX=
13606 hardcode_minus_L_CXX=no
13607 hardcode_shlibpath_var_CXX=unsupported
13608 hardcode_automatic_CXX=no
13609 inherit_rpath_CXX=no
13610 module_cmds_CXX=
13611 module_expsym_cmds_CXX=
13612 link_all_deplibs_CXX=unknown
13613 old_archive_cmds_CXX=$old_archive_cmds
13614 reload_flag_CXX=$reload_flag
13615 reload_cmds_CXX=$reload_cmds
13616 no_undefined_flag_CXX=
13617 whole_archive_flag_spec_CXX=
13618 enable_shared_with_static_runtimes_CXX=no
13619
13620 # Source file extension for C++ test sources.
13621 ac_ext=cpp
13622
13623 # Object file extension for compiled C++ test sources.
13624 objext=o
13625 objext_CXX=$objext
13626
13627 # No sense in running all these tests if we already determined that
13628 # the CXX compiler isn't working. Some variables (like enable_shared)
13629 # are currently assumed to apply to all compilers on this platform,
13630 # and will be corrupted by setting them based on a non-working compiler.
13631 if test yes != "$_lt_caught_CXX_error"; then
13632 # Code to be used in simple compile tests
13633 lt_simple_compile_test_code="int some_variable = 0;"
13634
13635 # Code to be used in simple link tests
13636 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13637
13638 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13639
13640
13641
13642
13643
13644
13645 # If no C compiler was specified, use CC.
13646 LTCC=${LTCC-"$CC"}
13647
13648 # If no C compiler flags were specified, use CFLAGS.
13649 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13650
13651 # Allow CC to be a program name with arguments.
13652 compiler=$CC
13653
13654
13655 # save warnings/boilerplate of simple test code
13656 ac_outfile=conftest.$ac_objext
13657 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13658 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13659 _lt_compiler_boilerplate=`cat conftest.err`
13660 $RM conftest*
13661
13662 ac_outfile=conftest.$ac_objext
13663 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13664 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13665 _lt_linker_boilerplate=`cat conftest.err`
13666 $RM -r conftest*
13667
13668
13669 # Allow CC to be a program name with arguments.
13670 lt_save_CC=$CC
13671 lt_save_CFLAGS=$CFLAGS
13672 lt_save_LD=$LD
13673 lt_save_GCC=$GCC
13674 GCC=$GXX
13675 lt_save_with_gnu_ld=$with_gnu_ld
13676 lt_save_path_LD=$lt_cv_path_LD
13677 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13678 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13679 else
13680 $as_unset lt_cv_prog_gnu_ld
13681 fi
13682 if test -n "${lt_cv_path_LDCXX+set}"; then
13683 lt_cv_path_LD=$lt_cv_path_LDCXX
13684 else
13685 $as_unset lt_cv_path_LD
13686 fi
13687 test -z "${LDCXX+set}" || LD=$LDCXX
13688 CC=${CXX-"c++"}
13689 CFLAGS=$CXXFLAGS
13690 compiler=$CC
13691 compiler_CXX=$CC
13692 func_cc_basename $compiler
13693 cc_basename=$func_cc_basename_result
13694
13695
13696 if test -n "$compiler"; then
13697 # We don't want -fno-exception when compiling C++ code, so set the
13698 # no_builtin_flag separately
13699 if test yes = "$GXX"; then
13700 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13701 else
13702 lt_prog_compiler_no_builtin_flag_CXX=
13703 fi
13704
13705 if test yes = "$GXX"; then
13706 # Set up default GNU C++ configuration
13707
13708
13709
13710 # Check whether --with-gnu-ld was given.
13711 if test "${with_gnu_ld+set}" = set; then :
13712 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
13713 else
13714 with_gnu_ld=no
13715 fi
13716
13717 ac_prog=ld
13718 if test yes = "$GCC"; then
13719 # Check if gcc -print-prog-name=ld gives a path.
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13721 $as_echo_n "checking for ld used by $CC... " >&6; }
13722 case $host in
13723 *-*-mingw*)
13724 # gcc leaves a trailing carriage return, which upsets mingw
13725 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13726 *)
13727 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13728 esac
13729 case $ac_prog in
13730 # Accept absolute paths.
13731 [\\/]* | ?:[\\/]*)
13732 re_direlt='/[^/][^/]*/\.\./'
13733 # Canonicalize the pathname of ld
13734 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13735 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13736 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13737 done
13738 test -z "$LD" && LD=$ac_prog
13739 ;;
13740 "")
13741 # If it fails, then pretend we aren't using GCC.
13742 ac_prog=ld
13743 ;;
13744 *)
13745 # If it is relative, then search for the first ld in PATH.
13746 with_gnu_ld=unknown
13747 ;;
13748 esac
13749 elif test yes = "$with_gnu_ld"; then
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13751 $as_echo_n "checking for GNU ld... " >&6; }
13752 else
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13754 $as_echo_n "checking for non-GNU ld... " >&6; }
13755 fi
13756 if ${lt_cv_path_LD+:} false; then :
13757 $as_echo_n "(cached) " >&6
13758 else
13759 if test -z "$LD"; then
13760 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13761 for ac_dir in $PATH; do
13762 IFS=$lt_save_ifs
13763 test -z "$ac_dir" && ac_dir=.
13764 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13765 lt_cv_path_LD=$ac_dir/$ac_prog
13766 # Check to see if the program is GNU ld. I'd rather use --version,
13767 # but apparently some variants of GNU ld only accept -v.
13768 # Break only if it was the GNU/non-GNU ld that we prefer.
13769 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13770 *GNU* | *'with BFD'*)
13771 test no != "$with_gnu_ld" && break
13772 ;;
13773 *)
13774 test yes != "$with_gnu_ld" && break
13775 ;;
13776 esac
13777 fi
13778 done
13779 IFS=$lt_save_ifs
13780 else
13781 lt_cv_path_LD=$LD # Let the user override the test with a path.
13782 fi
13783 fi
13784
13785 LD=$lt_cv_path_LD
13786 if test -n "$LD"; then
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13788 $as_echo "$LD" >&6; }
13789 else
13790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13791 $as_echo "no" >&6; }
13792 fi
13793 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13795 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13796 if ${lt_cv_prog_gnu_ld+:} false; then :
13797 $as_echo_n "(cached) " >&6
13798 else
13799 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13800 case `$LD -v 2>&1 </dev/null` in
13801 *GNU* | *'with BFD'*)
13802 lt_cv_prog_gnu_ld=yes
13803 ;;
13804 *)
13805 lt_cv_prog_gnu_ld=no
13806 ;;
13807 esac
13808 fi
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13810 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13811 with_gnu_ld=$lt_cv_prog_gnu_ld
13812
13813
13814
13815
13816
13817
13818
13819 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13820 # archiving commands below assume that GNU ld is being used.
13821 if test yes = "$with_gnu_ld"; then
13822 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13823 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'
13824
13825 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13826 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13827
13828 # If archive_cmds runs LD, not CC, wlarc should be empty
13829 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13830 # investigate it a little bit more. (MM)
13831 wlarc='$wl'
13832
13833 # ancient GNU ld didn't support --whole-archive et. al.
13834 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13835 $GREP 'no-whole-archive' > /dev/null; then
13836 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13837 else
13838 whole_archive_flag_spec_CXX=
13839 fi
13840 else
13841 with_gnu_ld=no
13842 wlarc=
13843
13844 # A generic and very simple default shared library creation
13845 # command for GNU C++ for the case where it uses the native
13846 # linker, instead of GNU ld. If possible, this setting should
13847 # overridden to take advantage of the native linker features on
13848 # the platform it is being used on.
13849 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13850 fi
13851
13852 # Commands to make compiler produce verbose output that lists
13853 # what "hidden" libraries, object files and flags are used when
13854 # linking a shared library.
13855 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13856
13857 else
13858 GXX=no
13859 with_gnu_ld=no
13860 wlarc=
13861 fi
13862
13863 # PORTME: fill in a description of your system's C++ link characteristics
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13865 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13866 ld_shlibs_CXX=yes
13867 case $host_os in
13868 aix3*)
13869 # FIXME: insert proper C++ library support
13870 ld_shlibs_CXX=no
13871 ;;
13872 aix[4-9]*)
13873 if test ia64 = "$host_cpu"; then
13874 # On IA64, the linker does run time linking by default, so we don't
13875 # have to do anything special.
13876 aix_use_runtimelinking=no
13877 exp_sym_flag='-Bexport'
13878 no_entry_flag=
13879 else
13880 aix_use_runtimelinking=no
13881
13882 # Test if we are trying to use run time linking or normal
13883 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13884 # have runtime linking enabled, and use it for executables.
13885 # For shared libraries, we enable/disable runtime linking
13886 # depending on the kind of the shared library created -
13887 # when "with_aix_soname,aix_use_runtimelinking" is:
13888 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
13889 # "aix,yes" lib.so shared, rtl:yes, for executables
13890 # lib.a static archive
13891 # "both,no" lib.so.V(shr.o) shared, rtl:yes
13892 # lib.a(lib.so.V) shared, rtl:no, for executables
13893 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13894 # lib.a(lib.so.V) shared, rtl:no
13895 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
13896 # lib.a static archive
13897 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13898 for ld_flag in $LDFLAGS; do
13899 case $ld_flag in
13900 *-brtl*)
13901 aix_use_runtimelinking=yes
13902 break
13903 ;;
13904 esac
13905 done
13906 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13907 # With aix-soname=svr4, we create the lib.so.V shared archives only,
13908 # so we don't have lib.a shared libs to link our executables.
13909 # We have to force runtime linking in this case.
13910 aix_use_runtimelinking=yes
13911 LDFLAGS="$LDFLAGS -Wl,-brtl"
13912 fi
13913 ;;
13914 esac
13915
13916 exp_sym_flag='-bexport'
13917 no_entry_flag='-bnoentry'
13918 fi
13919
13920 # When large executables or shared objects are built, AIX ld can
13921 # have problems creating the table of contents. If linking a library
13922 # or program results in "error TOC overflow" add -mminimal-toc to
13923 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13924 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13925
13926 archive_cmds_CXX=''
13927 hardcode_direct_CXX=yes
13928 hardcode_direct_absolute_CXX=yes
13929 hardcode_libdir_separator_CXX=':'
13930 link_all_deplibs_CXX=yes
13931 file_list_spec_CXX='$wl-f,'
13932 case $with_aix_soname,$aix_use_runtimelinking in
13933 aix,*) ;; # no import file
13934 svr4,* | *,yes) # use import file
13935 # The Import File defines what to hardcode.
13936 hardcode_direct_CXX=no
13937 hardcode_direct_absolute_CXX=no
13938 ;;
13939 esac
13940
13941 if test yes = "$GXX"; then
13942 case $host_os in aix4.[012]|aix4.[012].*)
13943 # We only want to do this on AIX 4.2 and lower, the check
13944 # below for broken collect2 doesn't work under 4.3+
13945 collect2name=`$CC -print-prog-name=collect2`
13946 if test -f "$collect2name" &&
13947 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13948 then
13949 # We have reworked collect2
13950 :
13951 else
13952 # We have old collect2
13953 hardcode_direct_CXX=unsupported
13954 # It fails to find uninstalled libraries when the uninstalled
13955 # path is not listed in the libpath. Setting hardcode_minus_L
13956 # to unsupported forces relinking
13957 hardcode_minus_L_CXX=yes
13958 hardcode_libdir_flag_spec_CXX='-L$libdir'
13959 hardcode_libdir_separator_CXX=
13960 fi
13961 esac
13962 shared_flag='-shared'
13963 if test yes = "$aix_use_runtimelinking"; then
13964 shared_flag=$shared_flag' $wl-G'
13965 fi
13966 # Need to ensure runtime linking is disabled for the traditional
13967 # shared library, or the linker may eventually find shared libraries
13968 # /with/ Import File - we do not want to mix them.
13969 shared_flag_aix='-shared'
13970 shared_flag_svr4='-shared $wl-G'
13971 else
13972 # not using gcc
13973 if test ia64 = "$host_cpu"; then
13974 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13975 # chokes on -Wl,-G. The following line is correct:
13976 shared_flag='-G'
13977 else
13978 if test yes = "$aix_use_runtimelinking"; then
13979 shared_flag='$wl-G'
13980 else
13981 shared_flag='$wl-bM:SRE'
13982 fi
13983 shared_flag_aix='$wl-bM:SRE'
13984 shared_flag_svr4='$wl-G'
13985 fi
13986 fi
13987
13988 export_dynamic_flag_spec_CXX='$wl-bexpall'
13989 # It seems that -bexpall does not export symbols beginning with
13990 # underscore (_), so it is better to generate a list of symbols to
13991 # export.
13992 always_export_symbols_CXX=yes
13993 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13994 # Warning - without using the other runtime loading flags (-brtl),
13995 # -berok will link without error, but may produce a broken library.
13996 # The "-G" linker flag allows undefined symbols.
13997 no_undefined_flag_CXX='-bernotok'
13998 # Determine the default libpath from the value encoded in an empty
13999 # executable.
14000 if test set = "${lt_cv_aix_libpath+set}"; then
14001 aix_libpath=$lt_cv_aix_libpath
14002 else
14003 if ${lt_cv_aix_libpath__CXX+:} false; then :
14004 $as_echo_n "(cached) " >&6
14005 else
14006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14007 /* end confdefs.h. */
14008
14009 int
14010 main ()
14011 {
14012
14013 ;
14014 return 0;
14015 }
14016 _ACEOF
14017 if ac_fn_cxx_try_link "$LINENO"; then :
14018
14019 lt_aix_libpath_sed='
14020 /Import File Strings/,/^$/ {
14021 /^0/ {
14022 s/^0 *\([^ ]*\) *$/\1/
14023 p
14024 }
14025 }'
14026 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14027 # Check for a 64-bit object if we didn't find anything.
14028 if test -z "$lt_cv_aix_libpath__CXX"; then
14029 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14030 fi
14031 fi
14032 rm -f core conftest.err conftest.$ac_objext \
14033 conftest$ac_exeext conftest.$ac_ext
14034 if test -z "$lt_cv_aix_libpath__CXX"; then
14035 lt_cv_aix_libpath__CXX=/usr/lib:/lib
14036 fi
14037
14038 fi
14039
14040 aix_libpath=$lt_cv_aix_libpath__CXX
14041 fi
14042
14043 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14044
14045 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
14046 else
14047 if test ia64 = "$host_cpu"; then
14048 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
14049 allow_undefined_flag_CXX="-z nodefs"
14050 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"
14051 else
14052 # Determine the default libpath from the value encoded in an
14053 # empty executable.
14054 if test set = "${lt_cv_aix_libpath+set}"; then
14055 aix_libpath=$lt_cv_aix_libpath
14056 else
14057 if ${lt_cv_aix_libpath__CXX+:} false; then :
14058 $as_echo_n "(cached) " >&6
14059 else
14060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14061 /* end confdefs.h. */
14062
14063 int
14064 main ()
14065 {
14066
14067 ;
14068 return 0;
14069 }
14070 _ACEOF
14071 if ac_fn_cxx_try_link "$LINENO"; then :
14072
14073 lt_aix_libpath_sed='
14074 /Import File Strings/,/^$/ {
14075 /^0/ {
14076 s/^0 *\([^ ]*\) *$/\1/
14077 p
14078 }
14079 }'
14080 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14081 # Check for a 64-bit object if we didn't find anything.
14082 if test -z "$lt_cv_aix_libpath__CXX"; then
14083 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14084 fi
14085 fi
14086 rm -f core conftest.err conftest.$ac_objext \
14087 conftest$ac_exeext conftest.$ac_ext
14088 if test -z "$lt_cv_aix_libpath__CXX"; then
14089 lt_cv_aix_libpath__CXX=/usr/lib:/lib
14090 fi
14091
14092 fi
14093
14094 aix_libpath=$lt_cv_aix_libpath__CXX
14095 fi
14096
14097 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14098 # Warning - without using the other run time loading flags,
14099 # -berok will link without error, but may produce a broken library.
14100 no_undefined_flag_CXX=' $wl-bernotok'
14101 allow_undefined_flag_CXX=' $wl-berok'
14102 if test yes = "$with_gnu_ld"; then
14103 # We only use this code for GNU lds that support --whole-archive.
14104 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14105 else
14106 # Exported symbols can be pulled into shared objects from archives
14107 whole_archive_flag_spec_CXX='$convenience'
14108 fi
14109 archive_cmds_need_lc_CXX=yes
14110 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
14111 # -brtl affects multiple linker settings, -berok does not and is overridden later
14112 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
14113 if test svr4 != "$with_aix_soname"; then
14114 # This is similar to how AIX traditionally builds its shared
14115 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
14116 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
14117 fi
14118 if test aix != "$with_aix_soname"; then
14119 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
14120 else
14121 # used by -dlpreopen to get the symbols
14122 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
14123 fi
14124 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
14125 fi
14126 fi
14127 ;;
14128
14129 beos*)
14130 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14131 allow_undefined_flag_CXX=unsupported
14132 # Joseph Beckenbach <[email protected]> says some releases of gcc
14133 # support --undefined. This deserves some investigation. FIXME
14134 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14135 else
14136 ld_shlibs_CXX=no
14137 fi
14138 ;;
14139
14140 chorus*)
14141 case $cc_basename in
14142 *)
14143 # FIXME: insert proper C++ library support
14144 ld_shlibs_CXX=no
14145 ;;
14146 esac
14147 ;;
14148
14149 cygwin* | mingw* | pw32* | cegcc*)
14150 case $GXX,$cc_basename in
14151 ,cl* | no,cl*)
14152 # Native MSVC
14153 # hardcode_libdir_flag_spec is actually meaningless, as there is
14154 # no search path for DLLs.
14155 hardcode_libdir_flag_spec_CXX=' '
14156 allow_undefined_flag_CXX=unsupported
14157 always_export_symbols_CXX=yes
14158 file_list_spec_CXX='@'
14159 # Tell ltmain to make .lib files, not .a files.
14160 libext=lib
14161 # Tell ltmain to make .dll files, not .so files.
14162 shrext_cmds=.dll
14163 # FIXME: Setting linknames here is a bad hack.
14164 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14165 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14166 cp "$export_symbols" "$output_objdir/$soname.def";
14167 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14168 else
14169 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14170 fi~
14171 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14172 linknames='
14173 # The linker will not automatically build a static lib if we build a DLL.
14174 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14175 enable_shared_with_static_runtimes_CXX=yes
14176 # Don't use ranlib
14177 old_postinstall_cmds_CXX='chmod 644 $oldlib'
14178 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14179 lt_tool_outputfile="@TOOL_OUTPUT@"~
14180 case $lt_outputfile in
14181 *.exe|*.EXE) ;;
14182 *)
14183 lt_outputfile=$lt_outputfile.exe
14184 lt_tool_outputfile=$lt_tool_outputfile.exe
14185 ;;
14186 esac~
14187 func_to_tool_file "$lt_outputfile"~
14188 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14189 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14190 $RM "$lt_outputfile.manifest";
14191 fi'
14192 ;;
14193 *)
14194 # g++
14195 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14196 # as there is no search path for DLLs.
14197 hardcode_libdir_flag_spec_CXX='-L$libdir'
14198 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
14199 allow_undefined_flag_CXX=unsupported
14200 always_export_symbols_CXX=no
14201 enable_shared_with_static_runtimes_CXX=yes
14202
14203 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14204 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'
14205 # If the export-symbols file already is a .def file, use it as
14206 # is; otherwise, prepend EXPORTS...
14207 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14208 cp $export_symbols $output_objdir/$soname.def;
14209 else
14210 echo EXPORTS > $output_objdir/$soname.def;
14211 cat $export_symbols >> $output_objdir/$soname.def;
14212 fi~
14213 $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'
14214 else
14215 ld_shlibs_CXX=no
14216 fi
14217 ;;
14218 esac
14219 ;;
14220 darwin* | rhapsody*)
14221
14222
14223 archive_cmds_need_lc_CXX=no
14224 hardcode_direct_CXX=no
14225 hardcode_automatic_CXX=yes
14226 hardcode_shlibpath_var_CXX=unsupported
14227 if test yes = "$lt_cv_ld_force_load"; then
14228 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\"`'
14229
14230 else
14231 whole_archive_flag_spec_CXX=''
14232 fi
14233 link_all_deplibs_CXX=yes
14234 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
14235 case $cc_basename in
14236 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14237 *) _lt_dar_can_shared=$GCC ;;
14238 esac
14239 if test yes = "$_lt_dar_can_shared"; then
14240 output_verbose_link_cmd=func_echo_all
14241 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"
14242 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14243 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"
14244 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"
14245 if test yes != "$lt_cv_apple_cc_single_mod"; then
14246 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"
14247 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"
14248 fi
14249
14250 else
14251 ld_shlibs_CXX=no
14252 fi
14253
14254 ;;
14255
14256 os2*)
14257 hardcode_libdir_flag_spec_CXX='-L$libdir'
14258 hardcode_minus_L_CXX=yes
14259 allow_undefined_flag_CXX=unsupported
14260 shrext_cmds=.dll
14261 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14262 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14263 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14264 $ECHO EXPORTS >> $output_objdir/$libname.def~
14265 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14266 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14267 emximp -o $lib $output_objdir/$libname.def'
14268 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14269 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14270 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14271 $ECHO EXPORTS >> $output_objdir/$libname.def~
14272 prefix_cmds="$SED"~
14273 if test EXPORTS = "`$SED 1q $export_symbols`"; then
14274 prefix_cmds="$prefix_cmds -e 1d";
14275 fi~
14276 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14277 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14278 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14279 emximp -o $lib $output_objdir/$libname.def'
14280 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14281 enable_shared_with_static_runtimes_CXX=yes
14282 ;;
14283
14284 dgux*)
14285 case $cc_basename in
14286 ec++*)
14287 # FIXME: insert proper C++ library support
14288 ld_shlibs_CXX=no
14289 ;;
14290 ghcx*)
14291 # Green Hills C++ Compiler
14292 # FIXME: insert proper C++ library support
14293 ld_shlibs_CXX=no
14294 ;;
14295 *)
14296 # FIXME: insert proper C++ library support
14297 ld_shlibs_CXX=no
14298 ;;
14299 esac
14300 ;;
14301
14302 freebsd2.*)
14303 # C++ shared libraries reported to be fairly broken before
14304 # switch to ELF
14305 ld_shlibs_CXX=no
14306 ;;
14307
14308 freebsd-elf*)
14309 archive_cmds_need_lc_CXX=no
14310 ;;
14311
14312 freebsd* | dragonfly*)
14313 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14314 # conventions
14315 ld_shlibs_CXX=yes
14316 ;;
14317
14318 haiku*)
14319 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14320 link_all_deplibs_CXX=yes
14321 ;;
14322
14323 hpux9*)
14324 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14325 hardcode_libdir_separator_CXX=:
14326 export_dynamic_flag_spec_CXX='$wl-E'
14327 hardcode_direct_CXX=yes
14328 hardcode_minus_L_CXX=yes # Not in the search PATH,
14329 # but as the default
14330 # location of the library.
14331
14332 case $cc_basename in
14333 CC*)
14334 # FIXME: insert proper C++ library support
14335 ld_shlibs_CXX=no
14336 ;;
14337 aCC*)
14338 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14339 # Commands to make compiler produce verbose output that lists
14340 # what "hidden" libraries, object files and flags are used when
14341 # linking a shared library.
14342 #
14343 # There doesn't appear to be a way to prevent this compiler from
14344 # explicitly linking system object files so we need to strip them
14345 # from the output so that they don't get included in the library
14346 # dependencies.
14347 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"'
14348 ;;
14349 *)
14350 if test yes = "$GXX"; then
14351 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14352 else
14353 # FIXME: insert proper C++ library support
14354 ld_shlibs_CXX=no
14355 fi
14356 ;;
14357 esac
14358 ;;
14359
14360 hpux10*|hpux11*)
14361 if test no = "$with_gnu_ld"; then
14362 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14363 hardcode_libdir_separator_CXX=:
14364
14365 case $host_cpu in
14366 hppa*64*|ia64*)
14367 ;;
14368 *)
14369 export_dynamic_flag_spec_CXX='$wl-E'
14370 ;;
14371 esac
14372 fi
14373 case $host_cpu in
14374 hppa*64*|ia64*)
14375 hardcode_direct_CXX=no
14376 hardcode_shlibpath_var_CXX=no
14377 ;;
14378 *)
14379 hardcode_direct_CXX=yes
14380 hardcode_direct_absolute_CXX=yes
14381 hardcode_minus_L_CXX=yes # Not in the search PATH,
14382 # but as the default
14383 # location of the library.
14384 ;;
14385 esac
14386
14387 case $cc_basename in
14388 CC*)
14389 # FIXME: insert proper C++ library support
14390 ld_shlibs_CXX=no
14391 ;;
14392 aCC*)
14393 case $host_cpu in
14394 hppa*64*)
14395 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14396 ;;
14397 ia64*)
14398 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14399 ;;
14400 *)
14401 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14402 ;;
14403 esac
14404 # Commands to make compiler produce verbose output that lists
14405 # what "hidden" libraries, object files and flags are used when
14406 # linking a shared library.
14407 #
14408 # There doesn't appear to be a way to prevent this compiler from
14409 # explicitly linking system object files so we need to strip them
14410 # from the output so that they don't get included in the library
14411 # dependencies.
14412 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"'
14413 ;;
14414 *)
14415 if test yes = "$GXX"; then
14416 if test no = "$with_gnu_ld"; then
14417 case $host_cpu in
14418 hppa*64*)
14419 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14420 ;;
14421 ia64*)
14422 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14423 ;;
14424 *)
14425 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'
14426 ;;
14427 esac
14428 fi
14429 else
14430 # FIXME: insert proper C++ library support
14431 ld_shlibs_CXX=no
14432 fi
14433 ;;
14434 esac
14435 ;;
14436
14437 interix[3-9]*)
14438 hardcode_direct_CXX=no
14439 hardcode_shlibpath_var_CXX=no
14440 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14441 export_dynamic_flag_spec_CXX='$wl-E'
14442 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14443 # Instead, shared libraries are loaded at an image base (0x10000000 by
14444 # default) and relocated if they conflict, which is a slow very memory
14445 # consuming and fragmenting process. To avoid this, we pick a random,
14446 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14447 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14448 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'
14449 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'
14450 ;;
14451 irix5* | irix6*)
14452 case $cc_basename in
14453 CC*)
14454 # SGI C++
14455 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'
14456
14457 # Archives containing C++ object files must be created using
14458 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14459 # necessary to make sure instantiated templates are included
14460 # in the archive.
14461 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14462 ;;
14463 *)
14464 if test yes = "$GXX"; then
14465 if test no = "$with_gnu_ld"; then
14466 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'
14467 else
14468 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'
14469 fi
14470 fi
14471 link_all_deplibs_CXX=yes
14472 ;;
14473 esac
14474 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14475 hardcode_libdir_separator_CXX=:
14476 inherit_rpath_CXX=yes
14477 ;;
14478
14479 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14480 case $cc_basename in
14481 KCC*)
14482 # Kuck and Associates, Inc. (KAI) C++ Compiler
14483
14484 # KCC will only create a shared library if the output file
14485 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14486 # to its proper name (with version) after linking.
14487 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'
14488 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'
14489 # Commands to make compiler produce verbose output that lists
14490 # what "hidden" libraries, object files and flags are used when
14491 # linking a shared library.
14492 #
14493 # There doesn't appear to be a way to prevent this compiler from
14494 # explicitly linking system object files so we need to strip them
14495 # from the output so that they don't get included in the library
14496 # dependencies.
14497 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"'
14498
14499 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14500 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14501
14502 # Archives containing C++ object files must be created using
14503 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14504 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14505 ;;
14506 icpc* | ecpc* )
14507 # Intel C++
14508 with_gnu_ld=yes
14509 # version 8.0 and above of icpc choke on multiply defined symbols
14510 # if we add $predep_objects and $postdep_objects, however 7.1 and
14511 # earlier do not add the objects themselves.
14512 case `$CC -V 2>&1` in
14513 *"Version 7."*)
14514 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14515 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'
14516 ;;
14517 *) # Version 8.0 or newer
14518 tmp_idyn=
14519 case $host_cpu in
14520 ia64*) tmp_idyn=' -i_dynamic';;
14521 esac
14522 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14523 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'
14524 ;;
14525 esac
14526 archive_cmds_need_lc_CXX=no
14527 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14528 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14529 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14530 ;;
14531 pgCC* | pgcpp*)
14532 # Portland Group C++ compiler
14533 case `$CC -V` in
14534 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14535 prelink_cmds_CXX='tpldir=Template.dir~
14536 rm -rf $tpldir~
14537 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14538 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14539 old_archive_cmds_CXX='tpldir=Template.dir~
14540 rm -rf $tpldir~
14541 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14542 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14543 $RANLIB $oldlib'
14544 archive_cmds_CXX='tpldir=Template.dir~
14545 rm -rf $tpldir~
14546 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14547 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14548 archive_expsym_cmds_CXX='tpldir=Template.dir~
14549 rm -rf $tpldir~
14550 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14551 $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'
14552 ;;
14553 *) # Version 6 and above use weak symbols
14554 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14555 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'
14556 ;;
14557 esac
14558
14559 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
14560 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14561 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'
14562 ;;
14563 cxx*)
14564 # Compaq C++
14565 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14566 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'
14567
14568 runpath_var=LD_RUN_PATH
14569 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14570 hardcode_libdir_separator_CXX=:
14571
14572 # Commands to make compiler produce verbose output that lists
14573 # what "hidden" libraries, object files and flags are used when
14574 # linking a shared library.
14575 #
14576 # There doesn't appear to be a way to prevent this compiler from
14577 # explicitly linking system object files so we need to strip them
14578 # from the output so that they don't get included in the library
14579 # dependencies.
14580 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'
14581 ;;
14582 xl* | mpixl* | bgxl*)
14583 # IBM XL 8.0 on PPC, with GNU ld
14584 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14585 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14586 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14587 if test yes = "$supports_anon_versioning"; then
14588 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14589 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14590 echo "local: *; };" >> $output_objdir/$libname.ver~
14591 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
14592 fi
14593 ;;
14594 *)
14595 case `$CC -V 2>&1 | sed 5q` in
14596 *Sun\ C*)
14597 # Sun C++ 5.9
14598 no_undefined_flag_CXX=' -zdefs'
14599 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14600 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'
14601 hardcode_libdir_flag_spec_CXX='-R$libdir'
14602 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'
14603 compiler_needs_object_CXX=yes
14604
14605 # Not sure whether something based on
14606 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14607 # would be better.
14608 output_verbose_link_cmd='func_echo_all'
14609
14610 # Archives containing C++ object files must be created using
14611 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14612 # necessary to make sure instantiated templates are included
14613 # in the archive.
14614 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14615 ;;
14616 esac
14617 ;;
14618 esac
14619 ;;
14620
14621 lynxos*)
14622 # FIXME: insert proper C++ library support
14623 ld_shlibs_CXX=no
14624 ;;
14625
14626 m88k*)
14627 # FIXME: insert proper C++ library support
14628 ld_shlibs_CXX=no
14629 ;;
14630
14631 mvs*)
14632 case $cc_basename in
14633 cxx*)
14634 # FIXME: insert proper C++ library support
14635 ld_shlibs_CXX=no
14636 ;;
14637 *)
14638 # FIXME: insert proper C++ library support
14639 ld_shlibs_CXX=no
14640 ;;
14641 esac
14642 ;;
14643
14644 netbsd*)
14645 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14646 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14647 wlarc=
14648 hardcode_libdir_flag_spec_CXX='-R$libdir'
14649 hardcode_direct_CXX=yes
14650 hardcode_shlibpath_var_CXX=no
14651 fi
14652 # Workaround some broken pre-1.5 toolchains
14653 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14654 ;;
14655
14656 *nto* | *qnx*)
14657 ld_shlibs_CXX=yes
14658 ;;
14659
14660 openbsd* | bitrig*)
14661 if test -f /usr/libexec/ld.so; then
14662 hardcode_direct_CXX=yes
14663 hardcode_shlibpath_var_CXX=no
14664 hardcode_direct_absolute_CXX=yes
14665 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14666 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14667 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
14668 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
14669 export_dynamic_flag_spec_CXX='$wl-E'
14670 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14671 fi
14672 output_verbose_link_cmd=func_echo_all
14673 else
14674 ld_shlibs_CXX=no
14675 fi
14676 ;;
14677
14678 osf3* | osf4* | osf5*)
14679 case $cc_basename in
14680 KCC*)
14681 # Kuck and Associates, Inc. (KAI) C++ Compiler
14682
14683 # KCC will only create a shared library if the output file
14684 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14685 # to its proper name (with version) after linking.
14686 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'
14687
14688 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14689 hardcode_libdir_separator_CXX=:
14690
14691 # Archives containing C++ object files must be created using
14692 # the KAI C++ compiler.
14693 case $host in
14694 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14695 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14696 esac
14697 ;;
14698 RCC*)
14699 # Rational C++ 2.4.1
14700 # FIXME: insert proper C++ library support
14701 ld_shlibs_CXX=no
14702 ;;
14703 cxx*)
14704 case $host in
14705 osf3*)
14706 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14707 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'
14708 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14709 ;;
14710 *)
14711 allow_undefined_flag_CXX=' -expect_unresolved \*'
14712 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'
14713 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14714 echo "-hidden">> $lib.exp~
14715 $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~
14716 $RM $lib.exp'
14717 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14718 ;;
14719 esac
14720
14721 hardcode_libdir_separator_CXX=:
14722
14723 # Commands to make compiler produce verbose output that lists
14724 # what "hidden" libraries, object files and flags are used when
14725 # linking a shared library.
14726 #
14727 # There doesn't appear to be a way to prevent this compiler from
14728 # explicitly linking system object files so we need to strip them
14729 # from the output so that they don't get included in the library
14730 # dependencies.
14731 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"'
14732 ;;
14733 *)
14734 if test yes,no = "$GXX,$with_gnu_ld"; then
14735 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14736 case $host in
14737 osf3*)
14738 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'
14739 ;;
14740 *)
14741 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'
14742 ;;
14743 esac
14744
14745 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14746 hardcode_libdir_separator_CXX=:
14747
14748 # Commands to make compiler produce verbose output that lists
14749 # what "hidden" libraries, object files and flags are used when
14750 # linking a shared library.
14751 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14752
14753 else
14754 # FIXME: insert proper C++ library support
14755 ld_shlibs_CXX=no
14756 fi
14757 ;;
14758 esac
14759 ;;
14760
14761 psos*)
14762 # FIXME: insert proper C++ library support
14763 ld_shlibs_CXX=no
14764 ;;
14765
14766 sunos4*)
14767 case $cc_basename in
14768 CC*)
14769 # Sun C++ 4.x
14770 # FIXME: insert proper C++ library support
14771 ld_shlibs_CXX=no
14772 ;;
14773 lcc*)
14774 # Lucid
14775 # FIXME: insert proper C++ library support
14776 ld_shlibs_CXX=no
14777 ;;
14778 *)
14779 # FIXME: insert proper C++ library support
14780 ld_shlibs_CXX=no
14781 ;;
14782 esac
14783 ;;
14784
14785 solaris*)
14786 case $cc_basename in
14787 CC* | sunCC*)
14788 # Sun C++ 4.2, 5.x and Centerline C++
14789 archive_cmds_need_lc_CXX=yes
14790 no_undefined_flag_CXX=' -zdefs'
14791 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14792 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14793 $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'
14794
14795 hardcode_libdir_flag_spec_CXX='-R$libdir'
14796 hardcode_shlibpath_var_CXX=no
14797 case $host_os in
14798 solaris2.[0-5] | solaris2.[0-5].*) ;;
14799 *)
14800 # The compiler driver will combine and reorder linker options,
14801 # but understands '-z linker_flag'.
14802 # Supported since Solaris 2.6 (maybe 2.5.1?)
14803 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14804 ;;
14805 esac
14806 link_all_deplibs_CXX=yes
14807
14808 output_verbose_link_cmd='func_echo_all'
14809
14810 # Archives containing C++ object files must be created using
14811 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14812 # necessary to make sure instantiated templates are included
14813 # in the archive.
14814 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14815 ;;
14816 gcx*)
14817 # Green Hills C++ Compiler
14818 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14819
14820 # The C++ compiler must be used to create the archive.
14821 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14822 ;;
14823 *)
14824 # GNU C++ compiler with Solaris linker
14825 if test yes,no = "$GXX,$with_gnu_ld"; then
14826 no_undefined_flag_CXX=' $wl-z ${wl}defs'
14827 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14828 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14829 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14830 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14831
14832 # Commands to make compiler produce verbose output that lists
14833 # what "hidden" libraries, object files and flags are used when
14834 # linking a shared library.
14835 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14836 else
14837 # g++ 2.7 appears to require '-G' NOT '-shared' on this
14838 # platform.
14839 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14840 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14841 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14842
14843 # Commands to make compiler produce verbose output that lists
14844 # what "hidden" libraries, object files and flags are used when
14845 # linking a shared library.
14846 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14847 fi
14848
14849 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
14850 case $host_os in
14851 solaris2.[0-5] | solaris2.[0-5].*) ;;
14852 *)
14853 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14854 ;;
14855 esac
14856 fi
14857 ;;
14858 esac
14859 ;;
14860
14861 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14862 no_undefined_flag_CXX='$wl-z,text'
14863 archive_cmds_need_lc_CXX=no
14864 hardcode_shlibpath_var_CXX=no
14865 runpath_var='LD_RUN_PATH'
14866
14867 case $cc_basename in
14868 CC*)
14869 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14870 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14871 ;;
14872 *)
14873 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14874 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14875 ;;
14876 esac
14877 ;;
14878
14879 sysv5* | sco3.2v5* | sco5v6*)
14880 # Note: We CANNOT use -z defs as we might desire, because we do not
14881 # link with -lc, and that would cause any symbols used from libc to
14882 # always be unresolved, which means just about no library would
14883 # ever link correctly. If we're not using GNU ld we use -z text
14884 # though, which does catch some bad symbols but isn't as heavy-handed
14885 # as -z defs.
14886 no_undefined_flag_CXX='$wl-z,text'
14887 allow_undefined_flag_CXX='$wl-z,nodefs'
14888 archive_cmds_need_lc_CXX=no
14889 hardcode_shlibpath_var_CXX=no
14890 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
14891 hardcode_libdir_separator_CXX=':'
14892 link_all_deplibs_CXX=yes
14893 export_dynamic_flag_spec_CXX='$wl-Bexport'
14894 runpath_var='LD_RUN_PATH'
14895
14896 case $cc_basename in
14897 CC*)
14898 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14899 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14900 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14901 '"$old_archive_cmds_CXX"
14902 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14903 '"$reload_cmds_CXX"
14904 ;;
14905 *)
14906 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14907 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14908 ;;
14909 esac
14910 ;;
14911
14912 tandem*)
14913 case $cc_basename in
14914 NCC*)
14915 # NonStop-UX NCC 3.20
14916 # FIXME: insert proper C++ library support
14917 ld_shlibs_CXX=no
14918 ;;
14919 *)
14920 # FIXME: insert proper C++ library support
14921 ld_shlibs_CXX=no
14922 ;;
14923 esac
14924 ;;
14925
14926 vxworks*)
14927 # FIXME: insert proper C++ library support
14928 ld_shlibs_CXX=no
14929 ;;
14930
14931 *)
14932 # FIXME: insert proper C++ library support
14933 ld_shlibs_CXX=no
14934 ;;
14935 esac
14936
14937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14938 $as_echo "$ld_shlibs_CXX" >&6; }
14939 test no = "$ld_shlibs_CXX" && can_build_shared=no
14940
14941 GCC_CXX=$GXX
14942 LD_CXX=$LD
14943
14944 ## CAVEAT EMPTOR:
14945 ## There is no encapsulation within the following macros, do not change
14946 ## the running order or otherwise move them around unless you know exactly
14947 ## what you are doing...
14948 # Dependencies to place before and after the object being linked:
14949 predep_objects_CXX=
14950 postdep_objects_CXX=
14951 predeps_CXX=
14952 postdeps_CXX=
14953 compiler_lib_search_path_CXX=
14954
14955 cat > conftest.$ac_ext <<_LT_EOF
14956 class Foo
14957 {
14958 public:
14959 Foo (void) { a = 0; }
14960 private:
14961 int a;
14962 };
14963 _LT_EOF
14964
14965
14966 _lt_libdeps_save_CFLAGS=$CFLAGS
14967 case "$CC $CFLAGS " in #(
14968 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14969 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14970 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14971 esac
14972
14973 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14974 (eval $ac_compile) 2>&5
14975 ac_status=$?
14976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14977 test $ac_status = 0; }; then
14978 # Parse the compiler output and extract the necessary
14979 # objects, libraries and library flags.
14980
14981 # Sentinel used to keep track of whether or not we are before
14982 # the conftest object file.
14983 pre_test_object_deps_done=no
14984
14985 for p in `eval "$output_verbose_link_cmd"`; do
14986 case $prev$p in
14987
14988 -L* | -R* | -l*)
14989 # Some compilers place space between "-{L,R}" and the path.
14990 # Remove the space.
14991 if test x-L = "$p" ||
14992 test x-R = "$p"; then
14993 prev=$p
14994 continue
14995 fi
14996
14997 # Expand the sysroot to ease extracting the directories later.
14998 if test -z "$prev"; then
14999 case $p in
15000 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15001 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15002 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15003 esac
15004 fi
15005 case $p in
15006 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15007 esac
15008 if test no = "$pre_test_object_deps_done"; then
15009 case $prev in
15010 -L | -R)
15011 # Internal compiler library paths should come after those
15012 # provided the user. The postdeps already come after the
15013 # user supplied libs so there is no need to process them.
15014 if test -z "$compiler_lib_search_path_CXX"; then
15015 compiler_lib_search_path_CXX=$prev$p
15016 else
15017 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
15018 fi
15019 ;;
15020 # The "-l" case would never come before the object being
15021 # linked, so don't bother handling this case.
15022 esac
15023 else
15024 if test -z "$postdeps_CXX"; then
15025 postdeps_CXX=$prev$p
15026 else
15027 postdeps_CXX="${postdeps_CXX} $prev$p"
15028 fi
15029 fi
15030 prev=
15031 ;;
15032
15033 *.lto.$objext) ;; # Ignore GCC LTO objects
15034 *.$objext)
15035 # This assumes that the test object file only shows up
15036 # once in the compiler output.
15037 if test "$p" = "conftest.$objext"; then
15038 pre_test_object_deps_done=yes
15039 continue
15040 fi
15041
15042 if test no = "$pre_test_object_deps_done"; then
15043 if test -z "$predep_objects_CXX"; then
15044 predep_objects_CXX=$p
15045 else
15046 predep_objects_CXX="$predep_objects_CXX $p"
15047 fi
15048 else
15049 if test -z "$postdep_objects_CXX"; then
15050 postdep_objects_CXX=$p
15051 else
15052 postdep_objects_CXX="$postdep_objects_CXX $p"
15053 fi
15054 fi
15055 ;;
15056
15057 *) ;; # Ignore the rest.
15058
15059 esac
15060 done
15061
15062 # Clean up.
15063 rm -f a.out a.exe
15064 else
15065 echo "libtool.m4: error: problem compiling CXX test program"
15066 fi
15067
15068 $RM -f confest.$objext
15069 CFLAGS=$_lt_libdeps_save_CFLAGS
15070
15071 # PORTME: override above test on systems where it is broken
15072 case $host_os in
15073 interix[3-9]*)
15074 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15075 # hack all around it, let's just trust "g++" to DTRT.
15076 predep_objects_CXX=
15077 postdep_objects_CXX=
15078 postdeps_CXX=
15079 ;;
15080 esac
15081
15082
15083 case " $postdeps_CXX " in
15084 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15085 esac
15086 compiler_lib_search_dirs_CXX=
15087 if test -n "${compiler_lib_search_path_CXX}"; then
15088 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
15089 fi
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121 lt_prog_compiler_wl_CXX=
15122 lt_prog_compiler_pic_CXX=
15123 lt_prog_compiler_static_CXX=
15124
15125
15126 # C++ specific cases for pic, static, wl, etc.
15127 if test yes = "$GXX"; then
15128 lt_prog_compiler_wl_CXX='-Wl,'
15129 lt_prog_compiler_static_CXX='-static'
15130
15131 case $host_os in
15132 aix*)
15133 # All AIX code is PIC.
15134 if test ia64 = "$host_cpu"; then
15135 # AIX 5 now supports IA64 processor
15136 lt_prog_compiler_static_CXX='-Bstatic'
15137 fi
15138 lt_prog_compiler_pic_CXX='-fPIC'
15139 ;;
15140
15141 amigaos*)
15142 case $host_cpu in
15143 powerpc)
15144 # see comment about AmigaOS4 .so support
15145 lt_prog_compiler_pic_CXX='-fPIC'
15146 ;;
15147 m68k)
15148 # FIXME: we need at least 68020 code to build shared libraries, but
15149 # adding the '-m68020' flag to GCC prevents building anything better,
15150 # like '-m68040'.
15151 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15152 ;;
15153 esac
15154 ;;
15155
15156 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15157 # PIC is the default for these OSes.
15158 ;;
15159 mingw* | cygwin* | os2* | pw32* | cegcc*)
15160 # This hack is so that the source file can tell whether it is being
15161 # built for inclusion in a dll (and should export symbols for example).
15162 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15163 # (--disable-auto-import) libraries
15164 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15165 case $host_os in
15166 os2*)
15167 lt_prog_compiler_static_CXX='$wl-static'
15168 ;;
15169 esac
15170 ;;
15171 darwin* | rhapsody*)
15172 # PIC is the default on this platform
15173 # Common symbols not allowed in MH_DYLIB files
15174 lt_prog_compiler_pic_CXX='-fno-common'
15175 ;;
15176 *djgpp*)
15177 # DJGPP does not support shared libraries at all
15178 lt_prog_compiler_pic_CXX=
15179 ;;
15180 haiku*)
15181 # PIC is the default for Haiku.
15182 # The "-static" flag exists, but is broken.
15183 lt_prog_compiler_static_CXX=
15184 ;;
15185 interix[3-9]*)
15186 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15187 # Instead, we relocate shared libraries at runtime.
15188 ;;
15189 sysv4*MP*)
15190 if test -d /usr/nec; then
15191 lt_prog_compiler_pic_CXX=-Kconform_pic
15192 fi
15193 ;;
15194 hpux*)
15195 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15196 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15197 # sets the default TLS model and affects inlining.
15198 case $host_cpu in
15199 hppa*64*)
15200 ;;
15201 *)
15202 lt_prog_compiler_pic_CXX='-fPIC'
15203 ;;
15204 esac
15205 ;;
15206 *qnx* | *nto*)
15207 # QNX uses GNU C++, but need to define -shared option too, otherwise
15208 # it will coredump.
15209 lt_prog_compiler_pic_CXX='-fPIC -shared'
15210 ;;
15211 *)
15212 lt_prog_compiler_pic_CXX='-fPIC'
15213 ;;
15214 esac
15215 else
15216 case $host_os in
15217 aix[4-9]*)
15218 # All AIX code is PIC.
15219 if test ia64 = "$host_cpu"; then
15220 # AIX 5 now supports IA64 processor
15221 lt_prog_compiler_static_CXX='-Bstatic'
15222 else
15223 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15224 fi
15225 ;;
15226 chorus*)
15227 case $cc_basename in
15228 cxch68*)
15229 # Green Hills C++ Compiler
15230 # _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"
15231 ;;
15232 esac
15233 ;;
15234 mingw* | cygwin* | os2* | pw32* | cegcc*)
15235 # This hack is so that the source file can tell whether it is being
15236 # built for inclusion in a dll (and should export symbols for example).
15237 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15238 ;;
15239 dgux*)
15240 case $cc_basename in
15241 ec++*)
15242 lt_prog_compiler_pic_CXX='-KPIC'
15243 ;;
15244 ghcx*)
15245 # Green Hills C++ Compiler
15246 lt_prog_compiler_pic_CXX='-pic'
15247 ;;
15248 *)
15249 ;;
15250 esac
15251 ;;
15252 freebsd* | dragonfly*)
15253 # FreeBSD uses GNU C++
15254 ;;
15255 hpux9* | hpux10* | hpux11*)
15256 case $cc_basename in
15257 CC*)
15258 lt_prog_compiler_wl_CXX='-Wl,'
15259 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15260 if test ia64 != "$host_cpu"; then
15261 lt_prog_compiler_pic_CXX='+Z'
15262 fi
15263 ;;
15264 aCC*)
15265 lt_prog_compiler_wl_CXX='-Wl,'
15266 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15267 case $host_cpu in
15268 hppa*64*|ia64*)
15269 # +Z the default
15270 ;;
15271 *)
15272 lt_prog_compiler_pic_CXX='+Z'
15273 ;;
15274 esac
15275 ;;
15276 *)
15277 ;;
15278 esac
15279 ;;
15280 interix*)
15281 # This is c89, which is MS Visual C++ (no shared libs)
15282 # Anyone wants to do a port?
15283 ;;
15284 irix5* | irix6* | nonstopux*)
15285 case $cc_basename in
15286 CC*)
15287 lt_prog_compiler_wl_CXX='-Wl,'
15288 lt_prog_compiler_static_CXX='-non_shared'
15289 # CC pic flag -KPIC is the default.
15290 ;;
15291 *)
15292 ;;
15293 esac
15294 ;;
15295 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15296 case $cc_basename in
15297 KCC*)
15298 # KAI C++ Compiler
15299 lt_prog_compiler_wl_CXX='--backend -Wl,'
15300 lt_prog_compiler_pic_CXX='-fPIC'
15301 ;;
15302 ecpc* )
15303 # old Intel C++ for x86_64, which still supported -KPIC.
15304 lt_prog_compiler_wl_CXX='-Wl,'
15305 lt_prog_compiler_pic_CXX='-KPIC'
15306 lt_prog_compiler_static_CXX='-static'
15307 ;;
15308 icpc* )
15309 # Intel C++, used to be incompatible with GCC.
15310 # ICC 10 doesn't accept -KPIC any more.
15311 lt_prog_compiler_wl_CXX='-Wl,'
15312 lt_prog_compiler_pic_CXX='-fPIC'
15313 lt_prog_compiler_static_CXX='-static'
15314 ;;
15315 pgCC* | pgcpp*)
15316 # Portland Group C++ compiler
15317 lt_prog_compiler_wl_CXX='-Wl,'
15318 lt_prog_compiler_pic_CXX='-fpic'
15319 lt_prog_compiler_static_CXX='-Bstatic'
15320 ;;
15321 cxx*)
15322 # Compaq C++
15323 # Make sure the PIC flag is empty. It appears that all Alpha
15324 # Linux and Compaq Tru64 Unix objects are PIC.
15325 lt_prog_compiler_pic_CXX=
15326 lt_prog_compiler_static_CXX='-non_shared'
15327 ;;
15328 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15329 # IBM XL 8.0, 9.0 on PPC and BlueGene
15330 lt_prog_compiler_wl_CXX='-Wl,'
15331 lt_prog_compiler_pic_CXX='-qpic'
15332 lt_prog_compiler_static_CXX='-qstaticlink'
15333 ;;
15334 *)
15335 case `$CC -V 2>&1 | sed 5q` in
15336 *Sun\ C*)
15337 # Sun C++ 5.9
15338 lt_prog_compiler_pic_CXX='-KPIC'
15339 lt_prog_compiler_static_CXX='-Bstatic'
15340 lt_prog_compiler_wl_CXX='-Qoption ld '
15341 ;;
15342 esac
15343 ;;
15344 esac
15345 ;;
15346 lynxos*)
15347 ;;
15348 m88k*)
15349 ;;
15350 mvs*)
15351 case $cc_basename in
15352 cxx*)
15353 lt_prog_compiler_pic_CXX='-W c,exportall'
15354 ;;
15355 *)
15356 ;;
15357 esac
15358 ;;
15359 netbsd* | netbsdelf*-gnu)
15360 ;;
15361 *qnx* | *nto*)
15362 # QNX uses GNU C++, but need to define -shared option too, otherwise
15363 # it will coredump.
15364 lt_prog_compiler_pic_CXX='-fPIC -shared'
15365 ;;
15366 osf3* | osf4* | osf5*)
15367 case $cc_basename in
15368 KCC*)
15369 lt_prog_compiler_wl_CXX='--backend -Wl,'
15370 ;;
15371 RCC*)
15372 # Rational C++ 2.4.1
15373 lt_prog_compiler_pic_CXX='-pic'
15374 ;;
15375 cxx*)
15376 # Digital/Compaq C++
15377 lt_prog_compiler_wl_CXX='-Wl,'
15378 # Make sure the PIC flag is empty. It appears that all Alpha
15379 # Linux and Compaq Tru64 Unix objects are PIC.
15380 lt_prog_compiler_pic_CXX=
15381 lt_prog_compiler_static_CXX='-non_shared'
15382 ;;
15383 *)
15384 ;;
15385 esac
15386 ;;
15387 psos*)
15388 ;;
15389 solaris*)
15390 case $cc_basename in
15391 CC* | sunCC*)
15392 # Sun C++ 4.2, 5.x and Centerline C++
15393 lt_prog_compiler_pic_CXX='-KPIC'
15394 lt_prog_compiler_static_CXX='-Bstatic'
15395 lt_prog_compiler_wl_CXX='-Qoption ld '
15396 ;;
15397 gcx*)
15398 # Green Hills C++ Compiler
15399 lt_prog_compiler_pic_CXX='-PIC'
15400 ;;
15401 *)
15402 ;;
15403 esac
15404 ;;
15405 sunos4*)
15406 case $cc_basename in
15407 CC*)
15408 # Sun C++ 4.x
15409 lt_prog_compiler_pic_CXX='-pic'
15410 lt_prog_compiler_static_CXX='-Bstatic'
15411 ;;
15412 lcc*)
15413 # Lucid
15414 lt_prog_compiler_pic_CXX='-pic'
15415 ;;
15416 *)
15417 ;;
15418 esac
15419 ;;
15420 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15421 case $cc_basename in
15422 CC*)
15423 lt_prog_compiler_wl_CXX='-Wl,'
15424 lt_prog_compiler_pic_CXX='-KPIC'
15425 lt_prog_compiler_static_CXX='-Bstatic'
15426 ;;
15427 esac
15428 ;;
15429 tandem*)
15430 case $cc_basename in
15431 NCC*)
15432 # NonStop-UX NCC 3.20
15433 lt_prog_compiler_pic_CXX='-KPIC'
15434 ;;
15435 *)
15436 ;;
15437 esac
15438 ;;
15439 vxworks*)
15440 ;;
15441 *)
15442 lt_prog_compiler_can_build_shared_CXX=no
15443 ;;
15444 esac
15445 fi
15446
15447 case $host_os in
15448 # For platforms that do not support PIC, -DPIC is meaningless:
15449 *djgpp*)
15450 lt_prog_compiler_pic_CXX=
15451 ;;
15452 *)
15453 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15454 ;;
15455 esac
15456
15457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15458 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15459 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15460 $as_echo_n "(cached) " >&6
15461 else
15462 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15463 fi
15464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15465 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15466 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15467
15468 #
15469 # Check to make sure the PIC flag actually works.
15470 #
15471 if test -n "$lt_prog_compiler_pic_CXX"; then
15472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15473 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15474 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15475 $as_echo_n "(cached) " >&6
15476 else
15477 lt_cv_prog_compiler_pic_works_CXX=no
15478 ac_outfile=conftest.$ac_objext
15479 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15480 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
15481 # Insert the option either (1) after the last *FLAGS variable, or
15482 # (2) before a word containing "conftest.", or (3) at the end.
15483 # Note that $ac_compile itself does not contain backslashes and begins
15484 # with a dollar sign (not a hyphen), so the echo should work correctly.
15485 # The option is referenced via a variable to avoid confusing sed.
15486 lt_compile=`echo "$ac_compile" | $SED \
15487 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15488 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15489 -e 's:$: $lt_compiler_flag:'`
15490 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15491 (eval "$lt_compile" 2>conftest.err)
15492 ac_status=$?
15493 cat conftest.err >&5
15494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15495 if (exit $ac_status) && test -s "$ac_outfile"; then
15496 # The compiler can only warn and ignore the option if not recognized
15497 # So say no if there are warnings other than the usual output.
15498 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15499 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15500 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15501 lt_cv_prog_compiler_pic_works_CXX=yes
15502 fi
15503 fi
15504 $RM conftest*
15505
15506 fi
15507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15508 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15509
15510 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
15511 case $lt_prog_compiler_pic_CXX in
15512 "" | " "*) ;;
15513 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15514 esac
15515 else
15516 lt_prog_compiler_pic_CXX=
15517 lt_prog_compiler_can_build_shared_CXX=no
15518 fi
15519
15520 fi
15521
15522
15523
15524
15525
15526 #
15527 # Check to make sure the static flag actually works.
15528 #
15529 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15531 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15532 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15533 $as_echo_n "(cached) " >&6
15534 else
15535 lt_cv_prog_compiler_static_works_CXX=no
15536 save_LDFLAGS=$LDFLAGS
15537 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15538 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15539 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15540 # The linker can only warn and ignore the option if not recognized
15541 # So say no if there are warnings
15542 if test -s conftest.err; then
15543 # Append any errors to the config.log.
15544 cat conftest.err 1>&5
15545 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15546 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15547 if diff conftest.exp conftest.er2 >/dev/null; then
15548 lt_cv_prog_compiler_static_works_CXX=yes
15549 fi
15550 else
15551 lt_cv_prog_compiler_static_works_CXX=yes
15552 fi
15553 fi
15554 $RM -r conftest*
15555 LDFLAGS=$save_LDFLAGS
15556
15557 fi
15558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15559 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15560
15561 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
15562 :
15563 else
15564 lt_prog_compiler_static_CXX=
15565 fi
15566
15567
15568
15569
15570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15571 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15572 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15573 $as_echo_n "(cached) " >&6
15574 else
15575 lt_cv_prog_compiler_c_o_CXX=no
15576 $RM -r conftest 2>/dev/null
15577 mkdir conftest
15578 cd conftest
15579 mkdir out
15580 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15581
15582 lt_compiler_flag="-o out/conftest2.$ac_objext"
15583 # Insert the option either (1) after the last *FLAGS variable, or
15584 # (2) before a word containing "conftest.", or (3) at the end.
15585 # Note that $ac_compile itself does not contain backslashes and begins
15586 # with a dollar sign (not a hyphen), so the echo should work correctly.
15587 lt_compile=`echo "$ac_compile" | $SED \
15588 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15589 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15590 -e 's:$: $lt_compiler_flag:'`
15591 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15592 (eval "$lt_compile" 2>out/conftest.err)
15593 ac_status=$?
15594 cat out/conftest.err >&5
15595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15597 then
15598 # The compiler can only warn and ignore the option if not recognized
15599 # So say no if there are warnings
15600 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15601 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15602 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15603 lt_cv_prog_compiler_c_o_CXX=yes
15604 fi
15605 fi
15606 chmod u+w . 2>&5
15607 $RM conftest*
15608 # SGI C++ compiler will create directory out/ii_files/ for
15609 # template instantiation
15610 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15611 $RM out/* && rmdir out
15612 cd ..
15613 $RM -r conftest
15614 $RM conftest*
15615
15616 fi
15617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15618 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15619
15620
15621
15622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15623 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15624 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15625 $as_echo_n "(cached) " >&6
15626 else
15627 lt_cv_prog_compiler_c_o_CXX=no
15628 $RM -r conftest 2>/dev/null
15629 mkdir conftest
15630 cd conftest
15631 mkdir out
15632 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15633
15634 lt_compiler_flag="-o out/conftest2.$ac_objext"
15635 # Insert the option either (1) after the last *FLAGS variable, or
15636 # (2) before a word containing "conftest.", or (3) at the end.
15637 # Note that $ac_compile itself does not contain backslashes and begins
15638 # with a dollar sign (not a hyphen), so the echo should work correctly.
15639 lt_compile=`echo "$ac_compile" | $SED \
15640 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15641 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15642 -e 's:$: $lt_compiler_flag:'`
15643 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15644 (eval "$lt_compile" 2>out/conftest.err)
15645 ac_status=$?
15646 cat out/conftest.err >&5
15647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15648 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15649 then
15650 # The compiler can only warn and ignore the option if not recognized
15651 # So say no if there are warnings
15652 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15653 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15654 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15655 lt_cv_prog_compiler_c_o_CXX=yes
15656 fi
15657 fi
15658 chmod u+w . 2>&5
15659 $RM conftest*
15660 # SGI C++ compiler will create directory out/ii_files/ for
15661 # template instantiation
15662 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15663 $RM out/* && rmdir out
15664 cd ..
15665 $RM -r conftest
15666 $RM conftest*
15667
15668 fi
15669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15670 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15671
15672
15673
15674
15675 hard_links=nottested
15676 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
15677 # do not overwrite the value of need_locks provided by the user
15678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15679 $as_echo_n "checking if we can lock with hard links... " >&6; }
15680 hard_links=yes
15681 $RM conftest*
15682 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15683 touch conftest.a
15684 ln conftest.a conftest.b 2>&5 || hard_links=no
15685 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15687 $as_echo "$hard_links" >&6; }
15688 if test no = "$hard_links"; then
15689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15690 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15691 need_locks=warn
15692 fi
15693 else
15694 need_locks=no
15695 fi
15696
15697
15698
15699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15700 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15701
15702 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15703 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15704 case $host_os in
15705 aix[4-9]*)
15706 # If we're using GNU nm, then we don't want the "-C" option.
15707 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15708 # Without the "-l" option, or with the "-B" option, AIX nm treats
15709 # weak defined symbols like other global defined symbols, whereas
15710 # GNU nm marks them as "W".
15711 # While the 'weak' keyword is ignored in the Export File, we need
15712 # it in the Import File for the 'aix-soname' feature, so we have
15713 # to replace the "-B" option with "-P" for AIX nm.
15714 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15715 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
15716 else
15717 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
15718 fi
15719 ;;
15720 pw32*)
15721 export_symbols_cmds_CXX=$ltdll_cmds
15722 ;;
15723 cygwin* | mingw* | cegcc*)
15724 case $cc_basename in
15725 cl*)
15726 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15727 ;;
15728 *)
15729 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'
15730 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15731 ;;
15732 esac
15733 ;;
15734 linux* | k*bsd*-gnu | gnu*)
15735 link_all_deplibs_CXX=no
15736 ;;
15737 *)
15738 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15739 ;;
15740 esac
15741
15742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15743 $as_echo "$ld_shlibs_CXX" >&6; }
15744 test no = "$ld_shlibs_CXX" && can_build_shared=no
15745
15746 with_gnu_ld_CXX=$with_gnu_ld
15747
15748
15749
15750
15751
15752
15753 #
15754 # Do we need to explicitly link libc?
15755 #
15756 case "x$archive_cmds_need_lc_CXX" in
15757 x|xyes)
15758 # Assume -lc should be added
15759 archive_cmds_need_lc_CXX=yes
15760
15761 if test yes,yes = "$GCC,$enable_shared"; then
15762 case $archive_cmds_CXX in
15763 *'~'*)
15764 # FIXME: we may have to deal with multi-command sequences.
15765 ;;
15766 '$CC '*)
15767 # Test whether the compiler implicitly links with -lc since on some
15768 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15769 # to ld, don't add -lc before -lgcc.
15770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15771 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15772 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15773 $as_echo_n "(cached) " >&6
15774 else
15775 $RM conftest*
15776 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15777
15778 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15779 (eval $ac_compile) 2>&5
15780 ac_status=$?
15781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15782 test $ac_status = 0; } 2>conftest.err; then
15783 soname=conftest
15784 lib=conftest
15785 libobjs=conftest.$ac_objext
15786 deplibs=
15787 wl=$lt_prog_compiler_wl_CXX
15788 pic_flag=$lt_prog_compiler_pic_CXX
15789 compiler_flags=-v
15790 linker_flags=-v
15791 verstring=
15792 output_objdir=.
15793 libname=conftest
15794 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15795 allow_undefined_flag_CXX=
15796 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15797 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15798 ac_status=$?
15799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15800 test $ac_status = 0; }
15801 then
15802 lt_cv_archive_cmds_need_lc_CXX=no
15803 else
15804 lt_cv_archive_cmds_need_lc_CXX=yes
15805 fi
15806 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15807 else
15808 cat conftest.err 1>&5
15809 fi
15810 $RM conftest*
15811
15812 fi
15813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15814 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15815 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15816 ;;
15817 esac
15818 fi
15819 ;;
15820 esac
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847
15848
15849
15850
15851
15852
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15884 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15885
15886 library_names_spec=
15887 libname_spec='lib$name'
15888 soname_spec=
15889 shrext_cmds=.so
15890 postinstall_cmds=
15891 postuninstall_cmds=
15892 finish_cmds=
15893 finish_eval=
15894 shlibpath_var=
15895 shlibpath_overrides_runpath=unknown
15896 version_type=none
15897 dynamic_linker="$host_os ld.so"
15898 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15899 need_lib_prefix=unknown
15900 hardcode_into_libs=no
15901
15902 # when you set need_version to no, make sure it does not cause -set_version
15903 # flags to be left without arguments
15904 need_version=unknown
15905
15906
15907
15908 case $host_os in
15909 aix3*)
15910 version_type=linux # correct to gnu/linux during the next big refactor
15911 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15912 shlibpath_var=LIBPATH
15913
15914 # AIX 3 has no versioning support, so we append a major version to the name.
15915 soname_spec='$libname$release$shared_ext$major'
15916 ;;
15917
15918 aix[4-9]*)
15919 version_type=linux # correct to gnu/linux during the next big refactor
15920 need_lib_prefix=no
15921 need_version=no
15922 hardcode_into_libs=yes
15923 if test ia64 = "$host_cpu"; then
15924 # AIX 5 supports IA64
15925 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15926 shlibpath_var=LD_LIBRARY_PATH
15927 else
15928 # With GCC up to 2.95.x, collect2 would create an import file
15929 # for dependence libraries. The import file would start with
15930 # the line '#! .'. This would cause the generated library to
15931 # depend on '.', always an invalid library. This was fixed in
15932 # development snapshots of GCC prior to 3.0.
15933 case $host_os in
15934 aix4 | aix4.[01] | aix4.[01].*)
15935 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15936 echo ' yes '
15937 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15938 :
15939 else
15940 can_build_shared=no
15941 fi
15942 ;;
15943 esac
15944 # Using Import Files as archive members, it is possible to support
15945 # filename-based versioning of shared library archives on AIX. While
15946 # this would work for both with and without runtime linking, it will
15947 # prevent static linking of such archives. So we do filename-based
15948 # shared library versioning with .so extension only, which is used
15949 # when both runtime linking and shared linking is enabled.
15950 # Unfortunately, runtime linking may impact performance, so we do
15951 # not want this to be the default eventually. Also, we use the
15952 # versioned .so libs for executables only if there is the -brtl
15953 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15954 # To allow for filename-based versioning support, we need to create
15955 # libNAME.so.V as an archive file, containing:
15956 # *) an Import File, referring to the versioned filename of the
15957 # archive as well as the shared archive member, telling the
15958 # bitwidth (32 or 64) of that shared object, and providing the
15959 # list of exported symbols of that shared object, eventually
15960 # decorated with the 'weak' keyword
15961 # *) the shared object with the F_LOADONLY flag set, to really avoid
15962 # it being seen by the linker.
15963 # At run time we better use the real file rather than another symlink,
15964 # but for link time we create the symlink libNAME.so -> libNAME.so.V
15965
15966 case $with_aix_soname,$aix_use_runtimelinking in
15967 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15968 # soname into executable. Probably we can add versioning support to
15969 # collect2, so additional links can be useful in future.
15970 aix,yes) # traditional libtool
15971 dynamic_linker='AIX unversionable lib.so'
15972 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15973 # instead of lib<name>.a to let people know that these are not
15974 # typical AIX shared libraries.
15975 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15976 ;;
15977 aix,no) # traditional AIX only
15978 dynamic_linker='AIX lib.a(lib.so.V)'
15979 # We preserve .a as extension for shared libraries through AIX4.2
15980 # and later when we are not doing run time linking.
15981 library_names_spec='$libname$release.a $libname.a'
15982 soname_spec='$libname$release$shared_ext$major'
15983 ;;
15984 svr4,*) # full svr4 only
15985 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15986 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15987 # We do not specify a path in Import Files, so LIBPATH fires.
15988 shlibpath_overrides_runpath=yes
15989 ;;
15990 *,yes) # both, prefer svr4
15991 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15992 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15993 # unpreferred sharedlib libNAME.a needs extra handling
15994 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
15995 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
15996 # We do not specify a path in Import Files, so LIBPATH fires.
15997 shlibpath_overrides_runpath=yes
15998 ;;
15999 *,no) # both, prefer aix
16000 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
16001 library_names_spec='$libname$release.a $libname.a'
16002 soname_spec='$libname$release$shared_ext$major'
16003 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
16004 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
16005 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
16006 ;;
16007 esac
16008 shlibpath_var=LIBPATH
16009 fi
16010 ;;
16011
16012 amigaos*)
16013 case $host_cpu in
16014 powerpc)
16015 # Since July 2007 AmigaOS4 officially supports .so libraries.
16016 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16017 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16018 ;;
16019 m68k)
16020 library_names_spec='$libname.ixlibrary $libname.a'
16021 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16022 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
16023 ;;
16024 esac
16025 ;;
16026
16027 beos*)
16028 library_names_spec='$libname$shared_ext'
16029 dynamic_linker="$host_os ld.so"
16030 shlibpath_var=LIBRARY_PATH
16031 ;;
16032
16033 bsdi[45]*)
16034 version_type=linux # correct to gnu/linux during the next big refactor
16035 need_version=no
16036 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16037 soname_spec='$libname$release$shared_ext$major'
16038 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16039 shlibpath_var=LD_LIBRARY_PATH
16040 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16041 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16042 # the default ld.so.conf also contains /usr/contrib/lib and
16043 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16044 # libtool to hard-code these into programs
16045 ;;
16046
16047 cygwin* | mingw* | pw32* | cegcc*)
16048 version_type=windows
16049 shrext_cmds=.dll
16050 need_version=no
16051 need_lib_prefix=no
16052
16053 case $GCC,$cc_basename in
16054 yes,*)
16055 # gcc
16056 library_names_spec='$libname.dll.a'
16057 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16058 postinstall_cmds='base_file=`basename \$file`~
16059 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16060 dldir=$destdir/`dirname \$dlpath`~
16061 test -d \$dldir || mkdir -p \$dldir~
16062 $install_prog $dir/$dlname \$dldir/$dlname~
16063 chmod a+x \$dldir/$dlname~
16064 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16065 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16066 fi'
16067 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16068 dlpath=$dir/\$dldll~
16069 $RM \$dlpath'
16070 shlibpath_overrides_runpath=yes
16071
16072 case $host_os in
16073 cygwin*)
16074 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16075 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16076
16077 ;;
16078 mingw* | cegcc*)
16079 # MinGW DLLs use traditional 'lib' prefix
16080 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16081 ;;
16082 pw32*)
16083 # pw32 DLLs use 'pw' prefix rather than 'lib'
16084 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16085 ;;
16086 esac
16087 dynamic_linker='Win32 ld.exe'
16088 ;;
16089
16090 *,cl*)
16091 # Native MSVC
16092 libname_spec='$name'
16093 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16094 library_names_spec='$libname.dll.lib'
16095
16096 case $build_os in
16097 mingw*)
16098 sys_lib_search_path_spec=
16099 lt_save_ifs=$IFS
16100 IFS=';'
16101 for lt_path in $LIB
16102 do
16103 IFS=$lt_save_ifs
16104 # Let DOS variable expansion print the short 8.3 style file name.
16105 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16106 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16107 done
16108 IFS=$lt_save_ifs
16109 # Convert to MSYS style.
16110 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16111 ;;
16112 cygwin*)
16113 # Convert to unix form, then to dos form, then back to unix form
16114 # but this time dos style (no spaces!) so that the unix form looks
16115 # like /cygdrive/c/PROGRA~1:/cygdr...
16116 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16117 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16118 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16119 ;;
16120 *)
16121 sys_lib_search_path_spec=$LIB
16122 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16123 # It is most probably a Windows format PATH.
16124 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16125 else
16126 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16127 fi
16128 # FIXME: find the short name or the path components, as spaces are
16129 # common. (e.g. "Program Files" -> "PROGRA~1")
16130 ;;
16131 esac
16132
16133 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16134 postinstall_cmds='base_file=`basename \$file`~
16135 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16136 dldir=$destdir/`dirname \$dlpath`~
16137 test -d \$dldir || mkdir -p \$dldir~
16138 $install_prog $dir/$dlname \$dldir/$dlname'
16139 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16140 dlpath=$dir/\$dldll~
16141 $RM \$dlpath'
16142 shlibpath_overrides_runpath=yes
16143 dynamic_linker='Win32 link.exe'
16144 ;;
16145
16146 *)
16147 # Assume MSVC wrapper
16148 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
16149 dynamic_linker='Win32 ld.exe'
16150 ;;
16151 esac
16152 # FIXME: first we should search . and the directory the executable is in
16153 shlibpath_var=PATH
16154 ;;
16155
16156 darwin* | rhapsody*)
16157 dynamic_linker="$host_os dyld"
16158 version_type=darwin
16159 need_lib_prefix=no
16160 need_version=no
16161 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
16162 soname_spec='$libname$release$major$shared_ext'
16163 shlibpath_overrides_runpath=yes
16164 shlibpath_var=DYLD_LIBRARY_PATH
16165 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16166
16167 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16168 ;;
16169
16170 dgux*)
16171 version_type=linux # correct to gnu/linux during the next big refactor
16172 need_lib_prefix=no
16173 need_version=no
16174 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16175 soname_spec='$libname$release$shared_ext$major'
16176 shlibpath_var=LD_LIBRARY_PATH
16177 ;;
16178
16179 freebsd* | dragonfly*)
16180 # DragonFly does not have aout. When/if they implement a new
16181 # versioning mechanism, adjust this.
16182 if test -x /usr/bin/objformat; then
16183 objformat=`/usr/bin/objformat`
16184 else
16185 case $host_os in
16186 freebsd[23].*) objformat=aout ;;
16187 *) objformat=elf ;;
16188 esac
16189 fi
16190 version_type=freebsd-$objformat
16191 case $version_type in
16192 freebsd-elf*)
16193 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16194 soname_spec='$libname$release$shared_ext$major'
16195 need_version=no
16196 need_lib_prefix=no
16197 ;;
16198 freebsd-*)
16199 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16200 need_version=yes
16201 ;;
16202 esac
16203 shlibpath_var=LD_LIBRARY_PATH
16204 case $host_os in
16205 freebsd2.*)
16206 shlibpath_overrides_runpath=yes
16207 ;;
16208 freebsd3.[01]* | freebsdelf3.[01]*)
16209 shlibpath_overrides_runpath=yes
16210 hardcode_into_libs=yes
16211 ;;
16212 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16213 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16214 shlibpath_overrides_runpath=no
16215 hardcode_into_libs=yes
16216 ;;
16217 *) # from 4.6 on, and DragonFly
16218 shlibpath_overrides_runpath=yes
16219 hardcode_into_libs=yes
16220 ;;
16221 esac
16222 ;;
16223
16224 haiku*)
16225 version_type=linux # correct to gnu/linux during the next big refactor
16226 need_lib_prefix=no
16227 need_version=no
16228 dynamic_linker="$host_os runtime_loader"
16229 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16230 soname_spec='$libname$release$shared_ext$major'
16231 shlibpath_var=LIBRARY_PATH
16232 shlibpath_overrides_runpath=no
16233 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16234 hardcode_into_libs=yes
16235 ;;
16236
16237 hpux9* | hpux10* | hpux11*)
16238 # Give a soname corresponding to the major version so that dld.sl refuses to
16239 # link against other versions.
16240 version_type=sunos
16241 need_lib_prefix=no
16242 need_version=no
16243 case $host_cpu in
16244 ia64*)
16245 shrext_cmds='.so'
16246 hardcode_into_libs=yes
16247 dynamic_linker="$host_os dld.so"
16248 shlibpath_var=LD_LIBRARY_PATH
16249 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16250 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16251 soname_spec='$libname$release$shared_ext$major'
16252 if test 32 = "$HPUX_IA64_MODE"; then
16253 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16254 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
16255 else
16256 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16257 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
16258 fi
16259 ;;
16260 hppa*64*)
16261 shrext_cmds='.sl'
16262 hardcode_into_libs=yes
16263 dynamic_linker="$host_os dld.sl"
16264 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16265 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16266 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16267 soname_spec='$libname$release$shared_ext$major'
16268 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16269 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16270 ;;
16271 *)
16272 shrext_cmds='.sl'
16273 dynamic_linker="$host_os dld.sl"
16274 shlibpath_var=SHLIB_PATH
16275 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16276 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16277 soname_spec='$libname$release$shared_ext$major'
16278 ;;
16279 esac
16280 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16281 postinstall_cmds='chmod 555 $lib'
16282 # or fails outright, so override atomically:
16283 install_override_mode=555
16284 ;;
16285
16286 interix[3-9]*)
16287 version_type=linux # correct to gnu/linux during the next big refactor
16288 need_lib_prefix=no
16289 need_version=no
16290 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16291 soname_spec='$libname$release$shared_ext$major'
16292 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16293 shlibpath_var=LD_LIBRARY_PATH
16294 shlibpath_overrides_runpath=no
16295 hardcode_into_libs=yes
16296 ;;
16297
16298 irix5* | irix6* | nonstopux*)
16299 case $host_os in
16300 nonstopux*) version_type=nonstopux ;;
16301 *)
16302 if test yes = "$lt_cv_prog_gnu_ld"; then
16303 version_type=linux # correct to gnu/linux during the next big refactor
16304 else
16305 version_type=irix
16306 fi ;;
16307 esac
16308 need_lib_prefix=no
16309 need_version=no
16310 soname_spec='$libname$release$shared_ext$major'
16311 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
16312 case $host_os in
16313 irix5* | nonstopux*)
16314 libsuff= shlibsuff=
16315 ;;
16316 *)
16317 case $LD in # libtool.m4 will add one of these switches to LD
16318 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16319 libsuff= shlibsuff= libmagic=32-bit;;
16320 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16321 libsuff=32 shlibsuff=N32 libmagic=N32;;
16322 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16323 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16324 *) libsuff= shlibsuff= libmagic=never-match;;
16325 esac
16326 ;;
16327 esac
16328 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16329 shlibpath_overrides_runpath=no
16330 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16331 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
16332 hardcode_into_libs=yes
16333 ;;
16334
16335 # No shared lib support for Linux oldld, aout, or coff.
16336 linux*oldld* | linux*aout* | linux*coff*)
16337 dynamic_linker=no
16338 ;;
16339
16340 linux*android*)
16341 version_type=none # Android doesn't support versioned libraries.
16342 need_lib_prefix=no
16343 need_version=no
16344 library_names_spec='$libname$release$shared_ext'
16345 soname_spec='$libname$release$shared_ext'
16346 finish_cmds=
16347 shlibpath_var=LD_LIBRARY_PATH
16348 shlibpath_overrides_runpath=yes
16349
16350 # This implies no fast_install, which is unacceptable.
16351 # Some rework will be needed to allow for fast_install
16352 # before this can be enabled.
16353 hardcode_into_libs=yes
16354
16355 dynamic_linker='Android linker'
16356 # Don't embed -rpath directories since the linker doesn't support them.
16357 hardcode_libdir_flag_spec_CXX='-L$libdir'
16358 ;;
16359
16360 # This must be glibc/ELF.
16361 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16362 version_type=linux # correct to gnu/linux during the next big refactor
16363 need_lib_prefix=no
16364 need_version=no
16365 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16366 soname_spec='$libname$release$shared_ext$major'
16367 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16368 shlibpath_var=LD_LIBRARY_PATH
16369 shlibpath_overrides_runpath=no
16370
16371 # Some binutils ld are patched to set DT_RUNPATH
16372 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16373 $as_echo_n "(cached) " >&6
16374 else
16375 lt_cv_shlibpath_overrides_runpath=no
16376 save_LDFLAGS=$LDFLAGS
16377 save_libdir=$libdir
16378 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16379 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16381 /* end confdefs.h. */
16382
16383 int
16384 main ()
16385 {
16386
16387 ;
16388 return 0;
16389 }
16390 _ACEOF
16391 if ac_fn_cxx_try_link "$LINENO"; then :
16392 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16393 lt_cv_shlibpath_overrides_runpath=yes
16394 fi
16395 fi
16396 rm -f core conftest.err conftest.$ac_objext \
16397 conftest$ac_exeext conftest.$ac_ext
16398 LDFLAGS=$save_LDFLAGS
16399 libdir=$save_libdir
16400
16401 fi
16402
16403 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16404
16405 # This implies no fast_install, which is unacceptable.
16406 # Some rework will be needed to allow for fast_install
16407 # before this can be enabled.
16408 hardcode_into_libs=yes
16409
16410 # Ideally, we could use ldconfig to report *all* directores which are
16411 # searched for libraries, however this is still not possible. Aside from not
16412 # being certain /sbin/ldconfig is available, command
16413 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16414 # even though it is searched at run-time. Try to do the best guess by
16415 # appending ld.so.conf contents (and includes) to the search path.
16416 if test -f /etc/ld.so.conf; then
16417 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' ' '`
16418 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16419 fi
16420
16421 # We used to test for /lib/ld.so.1 and disable shared libraries on
16422 # powerpc, because MkLinux only supported shared libraries with the
16423 # GNU dynamic linker. Since this was broken with cross compilers,
16424 # most powerpc-linux boxes support dynamic linking these days and
16425 # people can always --disable-shared, the test was removed, and we
16426 # assume the GNU/Linux dynamic linker is in use.
16427 dynamic_linker='GNU/Linux ld.so'
16428 ;;
16429
16430 netbsdelf*-gnu)
16431 version_type=linux
16432 need_lib_prefix=no
16433 need_version=no
16434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16435 soname_spec='${libname}${release}${shared_ext}$major'
16436 shlibpath_var=LD_LIBRARY_PATH
16437 shlibpath_overrides_runpath=no
16438 hardcode_into_libs=yes
16439 dynamic_linker='NetBSD ld.elf_so'
16440 ;;
16441
16442 netbsd*)
16443 version_type=sunos
16444 need_lib_prefix=no
16445 need_version=no
16446 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16447 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16448 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16449 dynamic_linker='NetBSD (a.out) ld.so'
16450 else
16451 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16452 soname_spec='$libname$release$shared_ext$major'
16453 dynamic_linker='NetBSD ld.elf_so'
16454 fi
16455 shlibpath_var=LD_LIBRARY_PATH
16456 shlibpath_overrides_runpath=yes
16457 hardcode_into_libs=yes
16458 ;;
16459
16460 newsos6)
16461 version_type=linux # correct to gnu/linux during the next big refactor
16462 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16463 shlibpath_var=LD_LIBRARY_PATH
16464 shlibpath_overrides_runpath=yes
16465 ;;
16466
16467 *nto* | *qnx*)
16468 version_type=qnx
16469 need_lib_prefix=no
16470 need_version=no
16471 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16472 soname_spec='$libname$release$shared_ext$major'
16473 shlibpath_var=LD_LIBRARY_PATH
16474 shlibpath_overrides_runpath=no
16475 hardcode_into_libs=yes
16476 dynamic_linker='ldqnx.so'
16477 ;;
16478
16479 openbsd* | bitrig*)
16480 version_type=sunos
16481 sys_lib_dlsearch_path_spec=/usr/lib
16482 need_lib_prefix=no
16483 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16484 need_version=no
16485 else
16486 need_version=yes
16487 fi
16488 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16489 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16490 shlibpath_var=LD_LIBRARY_PATH
16491 shlibpath_overrides_runpath=yes
16492 ;;
16493
16494 os2*)
16495 libname_spec='$name'
16496 version_type=windows
16497 shrext_cmds=.dll
16498 need_version=no
16499 need_lib_prefix=no
16500 # OS/2 can only load a DLL with a base name of 8 characters or less.
16501 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16502 v=$($ECHO $release$versuffix | tr -d .-);
16503 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16504 $ECHO $n$v`$shared_ext'
16505 library_names_spec='${libname}_dll.$libext'
16506 dynamic_linker='OS/2 ld.exe'
16507 shlibpath_var=BEGINLIBPATH
16508 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16509 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16510 postinstall_cmds='base_file=`basename \$file`~
16511 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16512 dldir=$destdir/`dirname \$dlpath`~
16513 test -d \$dldir || mkdir -p \$dldir~
16514 $install_prog $dir/$dlname \$dldir/$dlname~
16515 chmod a+x \$dldir/$dlname~
16516 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16517 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16518 fi'
16519 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16520 dlpath=$dir/\$dldll~
16521 $RM \$dlpath'
16522 ;;
16523
16524 osf3* | osf4* | osf5*)
16525 version_type=osf
16526 need_lib_prefix=no
16527 need_version=no
16528 soname_spec='$libname$release$shared_ext$major'
16529 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16530 shlibpath_var=LD_LIBRARY_PATH
16531 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16532 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16533 ;;
16534
16535 rdos*)
16536 dynamic_linker=no
16537 ;;
16538
16539 solaris*)
16540 version_type=linux # correct to gnu/linux during the next big refactor
16541 need_lib_prefix=no
16542 need_version=no
16543 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16544 soname_spec='$libname$release$shared_ext$major'
16545 shlibpath_var=LD_LIBRARY_PATH
16546 shlibpath_overrides_runpath=yes
16547 hardcode_into_libs=yes
16548 # ldd complains unless libraries are executable
16549 postinstall_cmds='chmod +x $lib'
16550 ;;
16551
16552 sunos4*)
16553 version_type=sunos
16554 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16555 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16556 shlibpath_var=LD_LIBRARY_PATH
16557 shlibpath_overrides_runpath=yes
16558 if test yes = "$with_gnu_ld"; then
16559 need_lib_prefix=no
16560 fi
16561 need_version=yes
16562 ;;
16563
16564 sysv4 | sysv4.3*)
16565 version_type=linux # correct to gnu/linux during the next big refactor
16566 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16567 soname_spec='$libname$release$shared_ext$major'
16568 shlibpath_var=LD_LIBRARY_PATH
16569 case $host_vendor in
16570 sni)
16571 shlibpath_overrides_runpath=no
16572 need_lib_prefix=no
16573 runpath_var=LD_RUN_PATH
16574 ;;
16575 siemens)
16576 need_lib_prefix=no
16577 ;;
16578 motorola)
16579 need_lib_prefix=no
16580 need_version=no
16581 shlibpath_overrides_runpath=no
16582 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16583 ;;
16584 esac
16585 ;;
16586
16587 sysv4*MP*)
16588 if test -d /usr/nec; then
16589 version_type=linux # correct to gnu/linux during the next big refactor
16590 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16591 soname_spec='$libname$shared_ext.$major'
16592 shlibpath_var=LD_LIBRARY_PATH
16593 fi
16594 ;;
16595
16596 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16597 version_type=sco
16598 need_lib_prefix=no
16599 need_version=no
16600 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16601 soname_spec='$libname$release$shared_ext$major'
16602 shlibpath_var=LD_LIBRARY_PATH
16603 shlibpath_overrides_runpath=yes
16604 hardcode_into_libs=yes
16605 if test yes = "$with_gnu_ld"; then
16606 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16607 else
16608 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16609 case $host_os in
16610 sco3.2v5*)
16611 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16612 ;;
16613 esac
16614 fi
16615 sys_lib_dlsearch_path_spec='/usr/lib'
16616 ;;
16617
16618 tpf*)
16619 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16620 version_type=linux # correct to gnu/linux during the next big refactor
16621 need_lib_prefix=no
16622 need_version=no
16623 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16624 shlibpath_var=LD_LIBRARY_PATH
16625 shlibpath_overrides_runpath=no
16626 hardcode_into_libs=yes
16627 ;;
16628
16629 uts4*)
16630 version_type=linux # correct to gnu/linux during the next big refactor
16631 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16632 soname_spec='$libname$release$shared_ext$major'
16633 shlibpath_var=LD_LIBRARY_PATH
16634 ;;
16635
16636 *)
16637 dynamic_linker=no
16638 ;;
16639 esac
16640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16641 $as_echo "$dynamic_linker" >&6; }
16642 test no = "$dynamic_linker" && can_build_shared=no
16643
16644 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16645 if test yes = "$GCC"; then
16646 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16647 fi
16648
16649 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16650 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16651 fi
16652
16653 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16654 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16655 fi
16656
16657 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16658 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
16659
16660 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16661 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
16662
16663 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16664 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
16665
16666
16667
16668
16669
16670
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16706 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16707 hardcode_action_CXX=
16708 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16709 test -n "$runpath_var_CXX" ||
16710 test yes = "$hardcode_automatic_CXX"; then
16711
16712 # We can hardcode non-existent directories.
16713 if test no != "$hardcode_direct_CXX" &&
16714 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16715 # have to relink, otherwise we might link with an installed library
16716 # when we should be linking with a yet-to-be-installed one
16717 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
16718 test no != "$hardcode_minus_L_CXX"; then
16719 # Linking always hardcodes the temporary library directory.
16720 hardcode_action_CXX=relink
16721 else
16722 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16723 hardcode_action_CXX=immediate
16724 fi
16725 else
16726 # We cannot hardcode anything, or else we can only hardcode existing
16727 # directories.
16728 hardcode_action_CXX=unsupported
16729 fi
16730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16731 $as_echo "$hardcode_action_CXX" >&6; }
16732
16733 if test relink = "$hardcode_action_CXX" ||
16734 test yes = "$inherit_rpath_CXX"; then
16735 # Fast installation is not supported
16736 enable_fast_install=no
16737 elif test yes = "$shlibpath_overrides_runpath" ||
16738 test no = "$enable_shared"; then
16739 # Fast installation is not necessary
16740 enable_fast_install=needless
16741 fi
16742
16743
16744
16745
16746
16747
16748
16749 fi # test -n "$compiler"
16750
16751 CC=$lt_save_CC
16752 CFLAGS=$lt_save_CFLAGS
16753 LDCXX=$LD
16754 LD=$lt_save_LD
16755 GCC=$lt_save_GCC
16756 with_gnu_ld=$lt_save_with_gnu_ld
16757 lt_cv_path_LDCXX=$lt_cv_path_LD
16758 lt_cv_path_LD=$lt_save_path_LD
16759 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16760 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16761 fi # test yes != "$_lt_caught_CXX_error"
16762
16763 ac_ext=c
16764 ac_cpp='$CPP $CPPFLAGS'
16765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783 ac_config_commands="$ac_config_commands libtool"
16784
16785
16786
16787
16788 # Only expand once:
16789
16790
16791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
16792 $as_echo_n "checking for ANSI C header files... " >&6; }
16793 if ${ac_cv_header_stdc+:} false; then :
16794 $as_echo_n "(cached) " >&6
16795 else
16796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16797 /* end confdefs.h. */
16798 #include <stdlib.h>
16799 #include <stdarg.h>
16800 #include <string.h>
16801 #include <float.h>
16802
16803 int
16804 main ()
16805 {
16806
16807 ;
16808 return 0;
16809 }
16810 _ACEOF
16811 if ac_fn_c_try_compile "$LINENO"; then :
16812 ac_cv_header_stdc=yes
16813 else
16814 ac_cv_header_stdc=no
16815 fi
16816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16817
16818 if test $ac_cv_header_stdc = yes; then
16819 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16821 /* end confdefs.h. */
16822 #include <string.h>
16823
16824 _ACEOF
16825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16826 $EGREP "memchr" >/dev/null 2>&1; then :
16827
16828 else
16829 ac_cv_header_stdc=no
16830 fi
16831 rm -f conftest*
16832
16833 fi
16834
16835 if test $ac_cv_header_stdc = yes; then
16836 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16838 /* end confdefs.h. */
16839 #include <stdlib.h>
16840
16841 _ACEOF
16842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16843 $EGREP "free" >/dev/null 2>&1; then :
16844
16845 else
16846 ac_cv_header_stdc=no
16847 fi
16848 rm -f conftest*
16849
16850 fi
16851
16852 if test $ac_cv_header_stdc = yes; then
16853 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16854 if test "$cross_compiling" = yes; then :
16855 :
16856 else
16857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16858 /* end confdefs.h. */
16859 #include <ctype.h>
16860 #include <stdlib.h>
16861 #if ((' ' & 0x0FF) == 0x020)
16862 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16863 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16864 #else
16865 # define ISLOWER(c) \
16866 (('a' <= (c) && (c) <= 'i') \
16867 || ('j' <= (c) && (c) <= 'r') \
16868 || ('s' <= (c) && (c) <= 'z'))
16869 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16870 #endif
16871
16872 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16873 int
16874 main ()
16875 {
16876 int i;
16877 for (i = 0; i < 256; i++)
16878 if (XOR (islower (i), ISLOWER (i))
16879 || toupper (i) != TOUPPER (i))
16880 return 2;
16881 return 0;
16882 }
16883 _ACEOF
16884 if ac_fn_c_try_run "$LINENO"; then :
16885
16886 else
16887 ac_cv_header_stdc=no
16888 fi
16889 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16890 conftest.$ac_objext conftest.beam conftest.$ac_ext
16891 fi
16892
16893 fi
16894 fi
16895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16896 $as_echo "$ac_cv_header_stdc" >&6; }
16897 if test $ac_cv_header_stdc = yes; then
16898
16899 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
16900
16901 fi
16902
16903 for ac_header in stdlib.h sys/time.h unistd.h
16904 do :
16905 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16906 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16907 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16908 cat >>confdefs.h <<_ACEOF
16909 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16910 _ACEOF
16911
16912 fi
16913
16914 done
16915
16916
16917
16918 if test "x$GCC" = "xyes"; then
16919 case " $CFLAGS " in
16920 *[\ \ ]-Wall[\ \ ]*) ;;
16921 *) CFLAGS="$CFLAGS -Wall" ;;
16922 esac
16923
16924 case " $CFLAGS " in
16925 *[\ \ ]-Wpointer-arith[\ \ ]*) ;;
16926 *) CFLAGS="$CFLAGS -Wpointer-arith" ;;
16927 esac
16928
16929 case " $CFLAGS " in
16930 *[\ \ ]-Wstrict-prototypes[\ \ ]*) ;;
16931 *) CFLAGS="$CFLAGS -Wstrict-prototypes" ;;
16932 esac
16933
16934 case " $CFLAGS " in
16935 *[\ \ ]-Wmissing-prototypes[\ \ ]*) ;;
16936 *) CFLAGS="$CFLAGS -Wmissing-prototypes" ;;
16937 esac
16938
16939 case " $CFLAGS " in
16940 *[\ \ ]-Wmissing-declarations[\ \ ]*) ;;
16941 *) CFLAGS="$CFLAGS -Wmissing-declarations" ;;
16942 esac
16943
16944 case " $CFLAGS " in
16945 *[\ \ ]-Wnested-externs[\ \ ]*) ;;
16946 *) CFLAGS="$CFLAGS -Wnested-externs" ;;
16947 esac
16948
16949 case " $CFLAGS " in
16950 *[\ \ ]-fno-strict-aliasing[\ \ ]*) ;;
16951 *) CFLAGS="$CFLAGS -fno-strict-aliasing" ;;
16952 esac
16953
16954 if test "x$enable_ansi" = "xyes"; then
16955 case " $CFLAGS " in
16956 *[\ \ ]-ansi[\ \ ]*) ;;
16957 *) CFLAGS="$CFLAGS -ansi" ;;
16958 esac
16959
16960 case " $CFLAGS " in
16961 *[\ \ ]-pedantic[\ \ ]*) ;;
16962 *) CFLAGS="$CFLAGS -pedantic" ;;
16963 esac
16964 fi
16965 fi
16966
16967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16968 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16969 if ${ac_cv_c_bigendian+:} false; then :
16970 $as_echo_n "(cached) " >&6
16971 else
16972 ac_cv_c_bigendian=unknown
16973 # See if we're dealing with a universal compiler.
16974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16975 /* end confdefs.h. */
16976 #ifndef __APPLE_CC__
16977 not a universal capable compiler
16978 #endif
16979 typedef int dummy;
16980
16981 _ACEOF
16982 if ac_fn_c_try_compile "$LINENO"; then :
16983
16984 # Check for potential -arch flags. It is not universal unless
16985 # there are at least two -arch flags with different values.
16986 ac_arch=
16987 ac_prev=
16988 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16989 if test -n "$ac_prev"; then
16990 case $ac_word in
16991 i?86 | x86_64 | ppc | ppc64)
16992 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16993 ac_arch=$ac_word
16994 else
16995 ac_cv_c_bigendian=universal
16996 break
16997 fi
16998 ;;
16999 esac
17000 ac_prev=
17001 elif test "x$ac_word" = "x-arch"; then
17002 ac_prev=arch
17003 fi
17004 done
17005 fi
17006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17007 if test $ac_cv_c_bigendian = unknown; then
17008 # See if sys/param.h defines the BYTE_ORDER macro.
17009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17010 /* end confdefs.h. */
17011 #include <sys/types.h>
17012 #include <sys/param.h>
17013
17014 int
17015 main ()
17016 {
17017 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
17018 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
17019 && LITTLE_ENDIAN)
17020 bogus endian macros
17021 #endif
17022
17023 ;
17024 return 0;
17025 }
17026 _ACEOF
17027 if ac_fn_c_try_compile "$LINENO"; then :
17028 # It does; now see whether it defined to BIG_ENDIAN or not.
17029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17030 /* end confdefs.h. */
17031 #include <sys/types.h>
17032 #include <sys/param.h>
17033
17034 int
17035 main ()
17036 {
17037 #if BYTE_ORDER != BIG_ENDIAN
17038 not big endian
17039 #endif
17040
17041 ;
17042 return 0;
17043 }
17044 _ACEOF
17045 if ac_fn_c_try_compile "$LINENO"; then :
17046 ac_cv_c_bigendian=yes
17047 else
17048 ac_cv_c_bigendian=no
17049 fi
17050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17051 fi
17052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17053 fi
17054 if test $ac_cv_c_bigendian = unknown; then
17055 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
17056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17057 /* end confdefs.h. */
17058 #include <limits.h>
17059
17060 int
17061 main ()
17062 {
17063 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
17064 bogus endian macros
17065 #endif
17066
17067 ;
17068 return 0;
17069 }
17070 _ACEOF
17071 if ac_fn_c_try_compile "$LINENO"; then :
17072 # It does; now see whether it defined to _BIG_ENDIAN or not.
17073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17074 /* end confdefs.h. */
17075 #include <limits.h>
17076
17077 int
17078 main ()
17079 {
17080 #ifndef _BIG_ENDIAN
17081 not big endian
17082 #endif
17083
17084 ;
17085 return 0;
17086 }
17087 _ACEOF
17088 if ac_fn_c_try_compile "$LINENO"; then :
17089 ac_cv_c_bigendian=yes
17090 else
17091 ac_cv_c_bigendian=no
17092 fi
17093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17094 fi
17095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17096 fi
17097 if test $ac_cv_c_bigendian = unknown; then
17098 # Compile a test program.
17099 if test "$cross_compiling" = yes; then :
17100 # Try to guess by grepping values from an object file.
17101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17102 /* end confdefs.h. */
17103 short int ascii_mm[] =
17104 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
17105 short int ascii_ii[] =
17106 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
17107 int use_ascii (int i) {
17108 return ascii_mm[i] + ascii_ii[i];
17109 }
17110 short int ebcdic_ii[] =
17111 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
17112 short int ebcdic_mm[] =
17113 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
17114 int use_ebcdic (int i) {
17115 return ebcdic_mm[i] + ebcdic_ii[i];
17116 }
17117 extern int foo;
17118
17119 int
17120 main ()
17121 {
17122 return use_ascii (foo) == use_ebcdic (foo);
17123 ;
17124 return 0;
17125 }
17126 _ACEOF
17127 if ac_fn_c_try_compile "$LINENO"; then :
17128 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
17129 ac_cv_c_bigendian=yes
17130 fi
17131 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
17132 if test "$ac_cv_c_bigendian" = unknown; then
17133 ac_cv_c_bigendian=no
17134 else
17135 # finding both strings is unlikely to happen, but who knows?
17136 ac_cv_c_bigendian=unknown
17137 fi
17138 fi
17139 fi
17140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17141 else
17142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17143 /* end confdefs.h. */
17144 $ac_includes_default
17145 int
17146 main ()
17147 {
17148
17149 /* Are we little or big endian? From Harbison&Steele. */
17150 union
17151 {
17152 long int l;
17153 char c[sizeof (long int)];
17154 } u;
17155 u.l = 1;
17156 return u.c[sizeof (long int) - 1] == 1;
17157
17158 ;
17159 return 0;
17160 }
17161 _ACEOF
17162 if ac_fn_c_try_run "$LINENO"; then :
17163 ac_cv_c_bigendian=no
17164 else
17165 ac_cv_c_bigendian=yes
17166 fi
17167 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17168 conftest.$ac_objext conftest.beam conftest.$ac_ext
17169 fi
17170
17171 fi
17172 fi
17173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
17174 $as_echo "$ac_cv_c_bigendian" >&6; }
17175 case $ac_cv_c_bigendian in #(
17176 yes)
17177 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
17178 ;; #(
17179 no)
17180 ;; #(
17181 universal)
17182
17183 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
17184
17185 ;; #(
17186 *)
17187 as_fn_error $? "unknown endianness
17188 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
17189 esac
17190
17191
17192
17193
17194
17195
17196
17197
17198
17199 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
17200 if test -n "$ac_tool_prefix"; then
17201 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
17202 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
17203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17204 $as_echo_n "checking for $ac_word... " >&6; }
17205 if ${ac_cv_path_PKG_CONFIG+:} false; then :
17206 $as_echo_n "(cached) " >&6
17207 else
17208 case $PKG_CONFIG in
17209 [\\/]* | ?:[\\/]*)
17210 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17211 ;;
17212 *)
17213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17214 for as_dir in $PATH
17215 do
17216 IFS=$as_save_IFS
17217 test -z "$as_dir" && as_dir=.
17218 for ac_exec_ext in '' $ac_executable_extensions; do
17219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17220 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17222 break 2
17223 fi
17224 done
17225 done
17226 IFS=$as_save_IFS
17227
17228 ;;
17229 esac
17230 fi
17231 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17232 if test -n "$PKG_CONFIG"; then
17233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17234 $as_echo "$PKG_CONFIG" >&6; }
17235 else
17236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17237 $as_echo "no" >&6; }
17238 fi
17239
17240
17241 fi
17242 if test -z "$ac_cv_path_PKG_CONFIG"; then
17243 ac_pt_PKG_CONFIG=$PKG_CONFIG
17244 # Extract the first word of "pkg-config", so it can be a program name with args.
17245 set dummy pkg-config; ac_word=$2
17246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17247 $as_echo_n "checking for $ac_word... " >&6; }
17248 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
17249 $as_echo_n "(cached) " >&6
17250 else
17251 case $ac_pt_PKG_CONFIG in
17252 [\\/]* | ?:[\\/]*)
17253 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
17254 ;;
17255 *)
17256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17257 for as_dir in $PATH
17258 do
17259 IFS=$as_save_IFS
17260 test -z "$as_dir" && as_dir=.
17261 for ac_exec_ext in '' $ac_executable_extensions; do
17262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17263 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17265 break 2
17266 fi
17267 done
17268 done
17269 IFS=$as_save_IFS
17270
17271 ;;
17272 esac
17273 fi
17274 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
17275 if test -n "$ac_pt_PKG_CONFIG"; then
17276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
17277 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
17278 else
17279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17280 $as_echo "no" >&6; }
17281 fi
17282
17283 if test "x$ac_pt_PKG_CONFIG" = x; then
17284 PKG_CONFIG=""
17285 else
17286 case $cross_compiling:$ac_tool_warned in
17287 yes:)
17288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17289 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17290 ac_tool_warned=yes ;;
17291 esac
17292 PKG_CONFIG=$ac_pt_PKG_CONFIG
17293 fi
17294 else
17295 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
17296 fi
17297
17298 fi
17299 if test -n "$PKG_CONFIG"; then
17300 _pkg_min_version=0.9.0
17301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
17302 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
17303 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
17304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17305 $as_echo "yes" >&6; }
17306 else
17307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17308 $as_echo "no" >&6; }
17309 PKG_CONFIG=""
17310 fi
17311 fi
17312
17313 pkg_failed=no
17314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBX11" >&5
17315 $as_echo_n "checking for LIBX11... " >&6; }
17316
17317 if test -n "$LIBX11_CFLAGS"; then
17318 pkg_cv_LIBX11_CFLAGS="$LIBX11_CFLAGS"
17319 elif test -n "$PKG_CONFIG"; then
17320 if test -n "$PKG_CONFIG" && \
17321 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"x11\"\""; } >&5
17322 ($PKG_CONFIG --exists --print-errors ""x11"") 2>&5
17323 ac_status=$?
17324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17325 test $ac_status = 0; }; then
17326 pkg_cv_LIBX11_CFLAGS=`$PKG_CONFIG --cflags ""x11"" 2>/dev/null`
17327 test "x$?" != "x0" && pkg_failed=yes
17328 else
17329 pkg_failed=yes
17330 fi
17331 else
17332 pkg_failed=untried
17333 fi
17334 if test -n "$LIBX11_LIBS"; then
17335 pkg_cv_LIBX11_LIBS="$LIBX11_LIBS"
17336 elif test -n "$PKG_CONFIG"; then
17337 if test -n "$PKG_CONFIG" && \
17338 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"x11\"\""; } >&5
17339 ($PKG_CONFIG --exists --print-errors ""x11"") 2>&5
17340 ac_status=$?
17341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17342 test $ac_status = 0; }; then
17343 pkg_cv_LIBX11_LIBS=`$PKG_CONFIG --libs ""x11"" 2>/dev/null`
17344 test "x$?" != "x0" && pkg_failed=yes
17345 else
17346 pkg_failed=yes
17347 fi
17348 else
17349 pkg_failed=untried
17350 fi
17351
17352
17353
17354 if test $pkg_failed = yes; then
17355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17356 $as_echo "no" >&6; }
17357
17358 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17359 _pkg_short_errors_supported=yes
17360 else
17361 _pkg_short_errors_supported=no
17362 fi
17363 if test $_pkg_short_errors_supported = yes; then
17364 LIBX11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs ""x11"" 2>&1`
17365 else
17366 LIBX11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs ""x11"" 2>&1`
17367 fi
17368 # Put the nasty error message in config.log where it belongs
17369 echo "$LIBX11_PKG_ERRORS" >&5
17370
17371 as_fn_error $? "Package requirements (\"x11\") were not met:
17372
17373 $LIBX11_PKG_ERRORS
17374
17375 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17376 installed software in a non-standard prefix.
17377
17378 Alternatively, you may set the environment variables LIBX11_CFLAGS
17379 and LIBX11_LIBS to avoid the need to call pkg-config.
17380 See the pkg-config man page for more details." "$LINENO" 5
17381 elif test $pkg_failed = untried; then
17382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17383 $as_echo "no" >&6; }
17384 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17385 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17386 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17387 is in your PATH or set the PKG_CONFIG environment variable to the full
17388 path to pkg-config.
17389
17390 Alternatively, you may set the environment variables LIBX11_CFLAGS
17391 and LIBX11_LIBS to avoid the need to call pkg-config.
17392 See the pkg-config man page for more details.
17393
17394 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17395 See \`config.log' for more details" "$LINENO" 5; }
17396 else
17397 LIBX11_CFLAGS=$pkg_cv_LIBX11_CFLAGS
17398 LIBX11_LIBS=$pkg_cv_LIBX11_LIBS
17399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17400 $as_echo "yes" >&6; }
17401
17402 fi
17403
17404 pkg_failed=no
17405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMPIZ" >&5
17406 $as_echo_n "checking for COMPIZ... " >&6; }
17407
17408 if test -n "$COMPIZ_CFLAGS"; then
17409 pkg_cv_COMPIZ_CFLAGS="$COMPIZ_CFLAGS"
17410 elif test -n "$PKG_CONFIG"; then
17411 if test -n "$PKG_CONFIG" && \
17412 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"compiz\"\""; } >&5
17413 ($PKG_CONFIG --exists --print-errors ""compiz"") 2>&5
17414 ac_status=$?
17415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17416 test $ac_status = 0; }; then
17417 pkg_cv_COMPIZ_CFLAGS=`$PKG_CONFIG --cflags ""compiz"" 2>/dev/null`
17418 test "x$?" != "x0" && pkg_failed=yes
17419 else
17420 pkg_failed=yes
17421 fi
17422 else
17423 pkg_failed=untried
17424 fi
17425 if test -n "$COMPIZ_LIBS"; then
17426 pkg_cv_COMPIZ_LIBS="$COMPIZ_LIBS"
17427 elif test -n "$PKG_CONFIG"; then
17428 if test -n "$PKG_CONFIG" && \
17429 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"compiz\"\""; } >&5
17430 ($PKG_CONFIG --exists --print-errors ""compiz"") 2>&5
17431 ac_status=$?
17432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17433 test $ac_status = 0; }; then
17434 pkg_cv_COMPIZ_LIBS=`$PKG_CONFIG --libs ""compiz"" 2>/dev/null`
17435 test "x$?" != "x0" && pkg_failed=yes
17436 else
17437 pkg_failed=yes
17438 fi
17439 else
17440 pkg_failed=untried
17441 fi
17442
17443
17444
17445 if test $pkg_failed = yes; then
17446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17447 $as_echo "no" >&6; }
17448
17449 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17450 _pkg_short_errors_supported=yes
17451 else
17452 _pkg_short_errors_supported=no
17453 fi
17454 if test $_pkg_short_errors_supported = yes; then
17455 COMPIZ_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs ""compiz"" 2>&1`
17456 else
17457 COMPIZ_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs ""compiz"" 2>&1`
17458 fi
17459 # Put the nasty error message in config.log where it belongs
17460 echo "$COMPIZ_PKG_ERRORS" >&5
17461
17462 as_fn_error $? "Package requirements (\"compiz\") were not met:
17463
17464 $COMPIZ_PKG_ERRORS
17465
17466 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17467 installed software in a non-standard prefix.
17468
17469 Alternatively, you may set the environment variables COMPIZ_CFLAGS
17470 and COMPIZ_LIBS to avoid the need to call pkg-config.
17471 See the pkg-config man page for more details." "$LINENO" 5
17472 elif test $pkg_failed = untried; then
17473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17474 $as_echo "no" >&6; }
17475 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17476 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17477 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17478 is in your PATH or set the PKG_CONFIG environment variable to the full
17479 path to pkg-config.
17480
17481 Alternatively, you may set the environment variables COMPIZ_CFLAGS
17482 and COMPIZ_LIBS to avoid the need to call pkg-config.
17483 See the pkg-config man page for more details.
17484
17485 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17486 See \`config.log' for more details" "$LINENO" 5; }
17487 else
17488 COMPIZ_CFLAGS=$pkg_cv_COMPIZ_CFLAGS
17489 COMPIZ_LIBS=$pkg_cv_COMPIZ_LIBS
17490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17491 $as_echo "yes" >&6; }
17492
17493 fi
17494
17495 if test -z "$PKG_CONFIG"; then
17496 # Extract the first word of "pkg-config", so it can be a program name with args.
17497 set dummy pkg-config; ac_word=$2
17498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17499 $as_echo_n "checking for $ac_word... " >&6; }
17500 if ${ac_cv_path_PKG_CONFIG+:} false; then :
17501 $as_echo_n "(cached) " >&6
17502 else
17503 case $PKG_CONFIG in
17504 [\\/]* | ?:[\\/]*)
17505 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17506 ;;
17507 *)
17508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17509 for as_dir in $PATH
17510 do
17511 IFS=$as_save_IFS
17512 test -z "$as_dir" && as_dir=.
17513 for ac_exec_ext in '' $ac_executable_extensions; do
17514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17515 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17517 break 2
17518 fi
17519 done
17520 done
17521 IFS=$as_save_IFS
17522
17523 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
17524 ;;
17525 esac
17526 fi
17527 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17528 if test -n "$PKG_CONFIG"; then
17529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17530 $as_echo "$PKG_CONFIG" >&6; }
17531 else
17532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17533 $as_echo "no" >&6; }
17534 fi
17535
17536
17537 fi
17538 if test "$PKG_CONFIG" != "no" ; then
17539 PLUGINDIR=`$PKG_CONFIG --variable=libdir compiz`/compiz
17540
17541 METADATADIR=`$PKG_CONFIG --variable=prefix compiz`/share/compiz
17542
17543 fi
17544
17545 plugindir=$libdir/compiz
17546
17547
17548
17549 pkg_failed=no
17550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBXML2" >&5
17551 $as_echo_n "checking for LIBXML2... " >&6; }
17552
17553 if test -n "$LIBXML2_CFLAGS"; then
17554 pkg_cv_LIBXML2_CFLAGS="$LIBXML2_CFLAGS"
17555 elif test -n "$PKG_CONFIG"; then
17556 if test -n "$PKG_CONFIG" && \
17557 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"libxml-2.0\"\""; } >&5
17558 ($PKG_CONFIG --exists --print-errors ""libxml-2.0"") 2>&5
17559 ac_status=$?
17560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17561 test $ac_status = 0; }; then
17562 pkg_cv_LIBXML2_CFLAGS=`$PKG_CONFIG --cflags ""libxml-2.0"" 2>/dev/null`
17563 test "x$?" != "x0" && pkg_failed=yes
17564 else
17565 pkg_failed=yes
17566 fi
17567 else
17568 pkg_failed=untried
17569 fi
17570 if test -n "$LIBXML2_LIBS"; then
17571 pkg_cv_LIBXML2_LIBS="$LIBXML2_LIBS"
17572 elif test -n "$PKG_CONFIG"; then
17573 if test -n "$PKG_CONFIG" && \
17574 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"libxml-2.0\"\""; } >&5
17575 ($PKG_CONFIG --exists --print-errors ""libxml-2.0"") 2>&5
17576 ac_status=$?
17577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17578 test $ac_status = 0; }; then
17579 pkg_cv_LIBXML2_LIBS=`$PKG_CONFIG --libs ""libxml-2.0"" 2>/dev/null`
17580 test "x$?" != "x0" && pkg_failed=yes
17581 else
17582 pkg_failed=yes
17583 fi
17584 else
17585 pkg_failed=untried
17586 fi
17587
17588
17589
17590 if test $pkg_failed = yes; then
17591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17592 $as_echo "no" >&6; }
17593
17594 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17595 _pkg_short_errors_supported=yes
17596 else
17597 _pkg_short_errors_supported=no
17598 fi
17599 if test $_pkg_short_errors_supported = yes; then
17600 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs ""libxml-2.0"" 2>&1`
17601 else
17602 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs ""libxml-2.0"" 2>&1`
17603 fi
17604 # Put the nasty error message in config.log where it belongs
17605 echo "$LIBXML2_PKG_ERRORS" >&5
17606
17607 as_fn_error $? "Package requirements (\"libxml-2.0\") were not met:
17608
17609 $LIBXML2_PKG_ERRORS
17610
17611 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17612 installed software in a non-standard prefix.
17613
17614 Alternatively, you may set the environment variables LIBXML2_CFLAGS
17615 and LIBXML2_LIBS to avoid the need to call pkg-config.
17616 See the pkg-config man page for more details." "$LINENO" 5
17617 elif test $pkg_failed = untried; then
17618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17619 $as_echo "no" >&6; }
17620 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17621 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17622 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17623 is in your PATH or set the PKG_CONFIG environment variable to the full
17624 path to pkg-config.
17625
17626 Alternatively, you may set the environment variables LIBXML2_CFLAGS
17627 and LIBXML2_LIBS to avoid the need to call pkg-config.
17628 See the pkg-config man page for more details.
17629
17630 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17631 See \`config.log' for more details" "$LINENO" 5; }
17632 else
17633 LIBXML2_CFLAGS=$pkg_cv_LIBXML2_CFLAGS
17634 LIBXML2_LIBS=$pkg_cv_LIBXML2_LIBS
17635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17636 $as_echo "yes" >&6; }
17637
17638 fi
17639
17640
17641 # Check whether --enable-protobuf was given.
17642 if test "${enable_protobuf+set}" = set; then :
17643 enableval=$enable_protobuf; use_protobuf=$enableval
17644 else
17645 use_protobuf=yes
17646 fi
17647
17648
17649 if test "x$use_protobuf" = "xyes"; then
17650 protobuf_error_msg="\nWARNING: You need to install Protocol Buffers to get faster program startup.\n Sources are available at https://developers.google.com/protocol-buffers\n Package names for Debian/Ubuntu: libprotobuf0, libprotobuf-dev, protobuf-compiler\n Package names for other distributions: protobuf, protobuf-devel\n Disabling protobuf.\n"
17651 # Extract the first word of "protoc", so it can be a program name with args.
17652 set dummy protoc; ac_word=$2
17653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17654 $as_echo_n "checking for $ac_word... " >&6; }
17655 if ${ac_cv_prog_have_protoc+:} false; then :
17656 $as_echo_n "(cached) " >&6
17657 else
17658 if test -n "$have_protoc"; then
17659 ac_cv_prog_have_protoc="$have_protoc" # Let the user override the test.
17660 else
17661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17662 for as_dir in $PATH
17663 do
17664 IFS=$as_save_IFS
17665 test -z "$as_dir" && as_dir=.
17666 for ac_exec_ext in '' $ac_executable_extensions; do
17667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17668 ac_cv_prog_have_protoc="yes"
17669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17670 break 2
17671 fi
17672 done
17673 done
17674 IFS=$as_save_IFS
17675
17676 test -z "$ac_cv_prog_have_protoc" && ac_cv_prog_have_protoc="no"
17677 fi
17678 fi
17679 have_protoc=$ac_cv_prog_have_protoc
17680 if test -n "$have_protoc"; then
17681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_protoc" >&5
17682 $as_echo "$have_protoc" >&6; }
17683 else
17684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17685 $as_echo "no" >&6; }
17686 fi
17687
17688
17689 if test "x$have_protoc" = "xno"; then
17690 echo -e $protobuf_error_msg; use_protobuf=no
17691 else
17692
17693 pkg_failed=no
17694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PROTOBUF" >&5
17695 $as_echo_n "checking for PROTOBUF... " >&6; }
17696
17697 if test -n "$PROTOBUF_CFLAGS"; then
17698 pkg_cv_PROTOBUF_CFLAGS="$PROTOBUF_CFLAGS"
17699 elif test -n "$PKG_CONFIG"; then
17700 if test -n "$PKG_CONFIG" && \
17701 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"protobuf\"\""; } >&5
17702 ($PKG_CONFIG --exists --print-errors ""protobuf"") 2>&5
17703 ac_status=$?
17704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17705 test $ac_status = 0; }; then
17706 pkg_cv_PROTOBUF_CFLAGS=`$PKG_CONFIG --cflags ""protobuf"" 2>/dev/null`
17707 test "x$?" != "x0" && pkg_failed=yes
17708 else
17709 pkg_failed=yes
17710 fi
17711 else
17712 pkg_failed=untried
17713 fi
17714 if test -n "$PROTOBUF_LIBS"; then
17715 pkg_cv_PROTOBUF_LIBS="$PROTOBUF_LIBS"
17716 elif test -n "$PKG_CONFIG"; then
17717 if test -n "$PKG_CONFIG" && \
17718 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"protobuf\"\""; } >&5
17719 ($PKG_CONFIG --exists --print-errors ""protobuf"") 2>&5
17720 ac_status=$?
17721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17722 test $ac_status = 0; }; then
17723 pkg_cv_PROTOBUF_LIBS=`$PKG_CONFIG --libs ""protobuf"" 2>/dev/null`
17724 test "x$?" != "x0" && pkg_failed=yes
17725 else
17726 pkg_failed=yes
17727 fi
17728 else
17729 pkg_failed=untried
17730 fi
17731
17732
17733
17734 if test $pkg_failed = yes; then
17735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17736 $as_echo "no" >&6; }
17737
17738 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17739 _pkg_short_errors_supported=yes
17740 else
17741 _pkg_short_errors_supported=no
17742 fi
17743 if test $_pkg_short_errors_supported = yes; then
17744 PROTOBUF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs ""protobuf"" 2>&1`
17745 else
17746 PROTOBUF_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs ""protobuf"" 2>&1`
17747 fi
17748 # Put the nasty error message in config.log where it belongs
17749 echo "$PROTOBUF_PKG_ERRORS" >&5
17750
17751
17752 echo -e $protobuf_error_msg; use_protobuf=no
17753 elif test $pkg_failed = untried; then
17754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17755 $as_echo "no" >&6; }
17756
17757 echo -e $protobuf_error_msg; use_protobuf=no
17758 else
17759 PROTOBUF_CFLAGS=$pkg_cv_PROTOBUF_CFLAGS
17760 PROTOBUF_LIBS=$pkg_cv_PROTOBUF_LIBS
17761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17762 $as_echo "yes" >&6; }
17763
17764 fi
17765 fi
17766 fi
17767 if test "x$use_protobuf" = "xyes"; then
17768 USE_PROTOBUF_TRUE=
17769 USE_PROTOBUF_FALSE='#'
17770 else
17771 USE_PROTOBUF_TRUE='#'
17772 USE_PROTOBUF_FALSE=
17773 fi
17774
17775
17776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have the POSIX compatible scandir() prototype" >&5
17777 $as_echo_n "checking whether we have the POSIX compatible scandir() prototype... " >&6; }
17778 if ${ac_cv_cxx_scandir_posix+:} false; then :
17779 $as_echo_n "(cached) " >&6
17780 else
17781
17782
17783 ac_ext=cpp
17784 ac_cpp='$CXXCPP $CPPFLAGS'
17785 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17786 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17787 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17788
17789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17790 /* end confdefs.h. */
17791
17792 # include <dirent.h>
17793 int func (const char *d, dirent ***list, void *sort) {
17794 int n = scandir(d, list, 0, (int(*)(const dirent **, const dirent **))sort);
17795 }
17796
17797 int
17798 main ()
17799 {
17800
17801
17802 ;
17803 return 0;
17804 }
17805 _ACEOF
17806 if ac_fn_cxx_try_compile "$LINENO"; then :
17807 ac_cv_cxx_scandir_posix=yes
17808 else
17809 ac_cv_cxx_scandir_posix=no
17810 fi
17811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17812 ac_ext=c
17813 ac_cpp='$CPP $CPPFLAGS'
17814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17817
17818
17819 fi
17820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_scandir_posix" >&5
17821 $as_echo "$ac_cv_cxx_scandir_posix" >&6; }
17822
17823 if test "$ac_cv_cxx_scandir_posix" = yes; then
17824
17825 $as_echo "#define HAVE_SCANDIR_POSIX /**/" >>confdefs.h
17826
17827 fi
17828
17829 for ac_header in sys/inotify.h
17830 do :
17831 ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
17832 if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
17833 cat >>confdefs.h <<_ACEOF
17834 #define HAVE_SYS_INOTIFY_H 1
17835 _ACEOF
17836 have_inotify=yes
17837 else
17838 have_inotify=no
17839 fi
17840
17841 done
17842
17843
17844 # Check whether --enable-debug was given.
17845 if test "${enable_debug+set}" = set; then :
17846 enableval=$enable_debug; enable_debug=$enableval
17847 else
17848 enable_debug=none
17849 fi
17850
17851
17852 if test "x$enable_debug" = "xnone"; then
17853
17854 $as_echo "#define DEBUGLEVEL 0" >>confdefs.h
17855
17856 elif test "x$enable_debug" = "xfull"; then
17857
17858 $as_echo "#define DEBUGLEVEL 2" >>confdefs.h
17859
17860 else
17861
17862 $as_echo "#define DEBUGLEVEL 1" >>confdefs.h
17863
17864 fi
17865
17866 ac_config_files="$ac_config_files libcompizconfig.pc Makefile src/Makefile backend/Makefile plugin/Makefile include/Makefile metadata/Makefile config/Makefile"
17867
17868
17869 cat >confcache <<\_ACEOF
17870 # This file is a shell script that caches the results of configure
17871 # tests run on this system so they can be shared between configure
17872 # scripts and configure runs, see configure's option --config-cache.
17873 # It is not useful on other systems. If it contains results you don't
17874 # want to keep, you may remove or edit it.
17875 #
17876 # config.status only pays attention to the cache file if you give it
17877 # the --recheck option to rerun configure.
17878 #
17879 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17880 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17881 # following values.
17882
17883 _ACEOF
17884
17885 # The following way of writing the cache mishandles newlines in values,
17886 # but we know of no workaround that is simple, portable, and efficient.
17887 # So, we kill variables containing newlines.
17888 # Ultrix sh set writes to stderr and can't be redirected directly,
17889 # and sets the high bit in the cache file unless we assign to the vars.
17890 (
17891 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17892 eval ac_val=\$$ac_var
17893 case $ac_val in #(
17894 *${as_nl}*)
17895 case $ac_var in #(
17896 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17897 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17898 esac
17899 case $ac_var in #(
17900 _ | IFS | as_nl) ;; #(
17901 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17902 *) { eval $ac_var=; unset $ac_var;} ;;
17903 esac ;;
17904 esac
17905 done
17906
17907 (set) 2>&1 |
17908 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17909 *${as_nl}ac_space=\ *)
17910 # `set' does not quote correctly, so add quotes: double-quote
17911 # substitution turns \\\\ into \\, and sed turns \\ into \.
17912 sed -n \
17913 "s/'/'\\\\''/g;
17914 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17915 ;; #(
17916 *)
17917 # `set' quotes correctly as required by POSIX, so do not add quotes.
17918 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17919 ;;
17920 esac |
17921 sort
17922 ) |
17923 sed '
17924 /^ac_cv_env_/b end
17925 t clear
17926 :clear
17927 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17928 t end
17929 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17930 :end' >>confcache
17931 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17932 if test -w "$cache_file"; then
17933 if test "x$cache_file" != "x/dev/null"; then
17934 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17935 $as_echo "$as_me: updating cache $cache_file" >&6;}
17936 if test ! -f "$cache_file" || test -h "$cache_file"; then
17937 cat confcache >"$cache_file"
17938 else
17939 case $cache_file in #(
17940 */* | ?:*)
17941 mv -f confcache "$cache_file"$$ &&
17942 mv -f "$cache_file"$$ "$cache_file" ;; #(
17943 *)
17944 mv -f confcache "$cache_file" ;;
17945 esac
17946 fi
17947 fi
17948 else
17949 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17950 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17951 fi
17952 fi
17953 rm -f confcache
17954
17955 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17956 # Let make expand exec_prefix.
17957 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17958
17959 DEFS=-DHAVE_CONFIG_H
17960
17961 ac_libobjs=
17962 ac_ltlibobjs=
17963 U=
17964 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17965 # 1. Remove the extension, and $U if already installed.
17966 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17967 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17968 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17969 # will be set to the directory where LIBOBJS objects are built.
17970 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17971 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17972 done
17973 LIBOBJS=$ac_libobjs
17974
17975 LTLIBOBJS=$ac_ltlibobjs
17976
17977
17978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17979 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17980 if test -n "$am_sleep_pid"; then
17981 # Hide warnings about reused PIDs.
17982 wait $am_sleep_pid 2>/dev/null
17983 fi
17984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17985 $as_echo "done" >&6; }
17986 if test -n "$EXEEXT"; then
17987 am__EXEEXT_TRUE=
17988 am__EXEEXT_FALSE='#'
17989 else
17990 am__EXEEXT_TRUE='#'
17991 am__EXEEXT_FALSE=
17992 fi
17993
17994 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17995 as_fn_error $? "conditional \"AMDEP\" was never defined.
17996 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17997 fi
17998 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17999 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
18000 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18001 fi
18002 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18003 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18004 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18005 fi
18006 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18007 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18008 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18009 fi
18010 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18011 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18012 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18013 fi
18014
18015 if test -z "${USE_PROTOBUF_TRUE}" && test -z "${USE_PROTOBUF_FALSE}"; then
18016 as_fn_error $? "conditional \"USE_PROTOBUF\" was never defined.
18017 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18018 fi
18019
18020 : "${CONFIG_STATUS=./config.status}"
18021 ac_write_fail=0
18022 ac_clean_files_save=$ac_clean_files
18023 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18024 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18025 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18026 as_write_fail=0
18027 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18028 #! $SHELL
18029 # Generated by $as_me.
18030 # Run this file to recreate the current configuration.
18031 # Compiler output produced by configure, useful for debugging
18032 # configure, is in config.log if it exists.
18033
18034 debug=false
18035 ac_cs_recheck=false
18036 ac_cs_silent=false
18037
18038 SHELL=\${CONFIG_SHELL-$SHELL}
18039 export SHELL
18040 _ASEOF
18041 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18042 ## -------------------- ##
18043 ## M4sh Initialization. ##
18044 ## -------------------- ##
18045
18046 # Be more Bourne compatible
18047 DUALCASE=1; export DUALCASE # for MKS sh
18048 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18049 emulate sh
18050 NULLCMD=:
18051 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18052 # is contrary to our usage. Disable this feature.
18053 alias -g '${1+"$@"}'='"$@"'
18054 setopt NO_GLOB_SUBST
18055 else
18056 case `(set -o) 2>/dev/null` in #(
18057 *posix*) :
18058 set -o posix ;; #(
18059 *) :
18060 ;;
18061 esac
18062 fi
18063
18064
18065 as_nl='
18066 '
18067 export as_nl
18068 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18069 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18070 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18071 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18072 # Prefer a ksh shell builtin over an external printf program on Solaris,
18073 # but without wasting forks for bash or zsh.
18074 if test -z "$BASH_VERSION$ZSH_VERSION" \
18075 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18076 as_echo='print -r --'
18077 as_echo_n='print -rn --'
18078 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18079 as_echo='printf %s\n'
18080 as_echo_n='printf %s'
18081 else
18082 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18083 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18084 as_echo_n='/usr/ucb/echo -n'
18085 else
18086 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18087 as_echo_n_body='eval
18088 arg=$1;
18089 case $arg in #(
18090 *"$as_nl"*)
18091 expr "X$arg" : "X\\(.*\\)$as_nl";
18092 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18093 esac;
18094 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18095 '
18096 export as_echo_n_body
18097 as_echo_n='sh -c $as_echo_n_body as_echo'
18098 fi
18099 export as_echo_body
18100 as_echo='sh -c $as_echo_body as_echo'
18101 fi
18102
18103 # The user is always right.
18104 if test "${PATH_SEPARATOR+set}" != set; then
18105 PATH_SEPARATOR=:
18106 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18107 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18108 PATH_SEPARATOR=';'
18109 }
18110 fi
18111
18112
18113 # IFS
18114 # We need space, tab and new line, in precisely that order. Quoting is
18115 # there to prevent editors from complaining about space-tab.
18116 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18117 # splitting by setting IFS to empty value.)
18118 IFS=" "" $as_nl"
18119
18120 # Find who we are. Look in the path if we contain no directory separator.
18121 as_myself=
18122 case $0 in #((
18123 *[\\/]* ) as_myself=$0 ;;
18124 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18125 for as_dir in $PATH
18126 do
18127 IFS=$as_save_IFS
18128 test -z "$as_dir" && as_dir=.
18129 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18130 done
18131 IFS=$as_save_IFS
18132
18133 ;;
18134 esac
18135 # We did not find ourselves, most probably we were run as `sh COMMAND'
18136 # in which case we are not to be found in the path.
18137 if test "x$as_myself" = x; then
18138 as_myself=$0
18139 fi
18140 if test ! -f "$as_myself"; then
18141 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18142 exit 1
18143 fi
18144
18145 # Unset variables that we do not need and which cause bugs (e.g. in
18146 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18147 # suppresses any "Segmentation fault" message there. '((' could
18148 # trigger a bug in pdksh 5.2.14.
18149 for as_var in BASH_ENV ENV MAIL MAILPATH
18150 do eval test x\${$as_var+set} = xset \
18151 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18152 done
18153 PS1='$ '
18154 PS2='> '
18155 PS4='+ '
18156
18157 # NLS nuisances.
18158 LC_ALL=C
18159 export LC_ALL
18160 LANGUAGE=C
18161 export LANGUAGE
18162
18163 # CDPATH.
18164 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18165
18166
18167 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18168 # ----------------------------------------
18169 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18170 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18171 # script with STATUS, using 1 if that was 0.
18172 as_fn_error ()
18173 {
18174 as_status=$1; test $as_status -eq 0 && as_status=1
18175 if test "$4"; then
18176 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18177 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18178 fi
18179 $as_echo "$as_me: error: $2" >&2
18180 as_fn_exit $as_status
18181 } # as_fn_error
18182
18183
18184 # as_fn_set_status STATUS
18185 # -----------------------
18186 # Set $? to STATUS, without forking.
18187 as_fn_set_status ()
18188 {
18189 return $1
18190 } # as_fn_set_status
18191
18192 # as_fn_exit STATUS
18193 # -----------------
18194 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18195 as_fn_exit ()
18196 {
18197 set +e
18198 as_fn_set_status $1
18199 exit $1
18200 } # as_fn_exit
18201
18202 # as_fn_unset VAR
18203 # ---------------
18204 # Portably unset VAR.
18205 as_fn_unset ()
18206 {
18207 { eval $1=; unset $1;}
18208 }
18209 as_unset=as_fn_unset
18210 # as_fn_append VAR VALUE
18211 # ----------------------
18212 # Append the text in VALUE to the end of the definition contained in VAR. Take
18213 # advantage of any shell optimizations that allow amortized linear growth over
18214 # repeated appends, instead of the typical quadratic growth present in naive
18215 # implementations.
18216 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18217 eval 'as_fn_append ()
18218 {
18219 eval $1+=\$2
18220 }'
18221 else
18222 as_fn_append ()
18223 {
18224 eval $1=\$$1\$2
18225 }
18226 fi # as_fn_append
18227
18228 # as_fn_arith ARG...
18229 # ------------------
18230 # Perform arithmetic evaluation on the ARGs, and store the result in the
18231 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18232 # must be portable across $(()) and expr.
18233 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18234 eval 'as_fn_arith ()
18235 {
18236 as_val=$(( $* ))
18237 }'
18238 else
18239 as_fn_arith ()
18240 {
18241 as_val=`expr "$@" || test $? -eq 1`
18242 }
18243 fi # as_fn_arith
18244
18245
18246 if expr a : '\(a\)' >/dev/null 2>&1 &&
18247 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18248 as_expr=expr
18249 else
18250 as_expr=false
18251 fi
18252
18253 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18254 as_basename=basename
18255 else
18256 as_basename=false
18257 fi
18258
18259 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18260 as_dirname=dirname
18261 else
18262 as_dirname=false
18263 fi
18264
18265 as_me=`$as_basename -- "$0" ||
18266 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18267 X"$0" : 'X\(//\)$' \| \
18268 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18269 $as_echo X/"$0" |
18270 sed '/^.*\/\([^/][^/]*\)\/*$/{
18271 s//\1/
18272 q
18273 }
18274 /^X\/\(\/\/\)$/{
18275 s//\1/
18276 q
18277 }
18278 /^X\/\(\/\).*/{
18279 s//\1/
18280 q
18281 }
18282 s/.*/./; q'`
18283
18284 # Avoid depending upon Character Ranges.
18285 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18286 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18287 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18288 as_cr_digits='0123456789'
18289 as_cr_alnum=$as_cr_Letters$as_cr_digits
18290
18291 ECHO_C= ECHO_N= ECHO_T=
18292 case `echo -n x` in #(((((
18293 -n*)
18294 case `echo 'xy\c'` in
18295 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18296 xy) ECHO_C='\c';;
18297 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18298 ECHO_T=' ';;
18299 esac;;
18300 *)
18301 ECHO_N='-n';;
18302 esac
18303
18304 rm -f conf$$ conf$$.exe conf$$.file
18305 if test -d conf$$.dir; then
18306 rm -f conf$$.dir/conf$$.file
18307 else
18308 rm -f conf$$.dir
18309 mkdir conf$$.dir 2>/dev/null
18310 fi
18311 if (echo >conf$$.file) 2>/dev/null; then
18312 if ln -s conf$$.file conf$$ 2>/dev/null; then
18313 as_ln_s='ln -s'
18314 # ... but there are two gotchas:
18315 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18316 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18317 # In both cases, we have to default to `cp -pR'.
18318 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18319 as_ln_s='cp -pR'
18320 elif ln conf$$.file conf$$ 2>/dev/null; then
18321 as_ln_s=ln
18322 else
18323 as_ln_s='cp -pR'
18324 fi
18325 else
18326 as_ln_s='cp -pR'
18327 fi
18328 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18329 rmdir conf$$.dir 2>/dev/null
18330
18331
18332 # as_fn_mkdir_p
18333 # -------------
18334 # Create "$as_dir" as a directory, including parents if necessary.
18335 as_fn_mkdir_p ()
18336 {
18337
18338 case $as_dir in #(
18339 -*) as_dir=./$as_dir;;
18340 esac
18341 test -d "$as_dir" || eval $as_mkdir_p || {
18342 as_dirs=
18343 while :; do
18344 case $as_dir in #(
18345 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18346 *) as_qdir=$as_dir;;
18347 esac
18348 as_dirs="'$as_qdir' $as_dirs"
18349 as_dir=`$as_dirname -- "$as_dir" ||
18350 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18351 X"$as_dir" : 'X\(//\)[^/]' \| \
18352 X"$as_dir" : 'X\(//\)$' \| \
18353 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18354 $as_echo X"$as_dir" |
18355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18356 s//\1/
18357 q
18358 }
18359 /^X\(\/\/\)[^/].*/{
18360 s//\1/
18361 q
18362 }
18363 /^X\(\/\/\)$/{
18364 s//\1/
18365 q
18366 }
18367 /^X\(\/\).*/{
18368 s//\1/
18369 q
18370 }
18371 s/.*/./; q'`
18372 test -d "$as_dir" && break
18373 done
18374 test -z "$as_dirs" || eval "mkdir $as_dirs"
18375 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18376
18377
18378 } # as_fn_mkdir_p
18379 if mkdir -p . 2>/dev/null; then
18380 as_mkdir_p='mkdir -p "$as_dir"'
18381 else
18382 test -d ./-p && rmdir ./-p
18383 as_mkdir_p=false
18384 fi
18385
18386
18387 # as_fn_executable_p FILE
18388 # -----------------------
18389 # Test if FILE is an executable regular file.
18390 as_fn_executable_p ()
18391 {
18392 test -f "$1" && test -x "$1"
18393 } # as_fn_executable_p
18394 as_test_x='test -x'
18395 as_executable_p=as_fn_executable_p
18396
18397 # Sed expression to map a string onto a valid CPP name.
18398 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18399
18400 # Sed expression to map a string onto a valid variable name.
18401 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18402
18403
18404 exec 6>&1
18405 ## ----------------------------------- ##
18406 ## Main body of $CONFIG_STATUS script. ##
18407 ## ----------------------------------- ##
18408 _ASEOF
18409 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18410
18411 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18412 # Save the log message, to keep $0 and so on meaningful, and to
18413 # report actual input values of CONFIG_FILES etc. instead of their
18414 # values after options handling.
18415 ac_log="
18416 This file was extended by libcompizconfig $as_me 0.8.18, which was
18417 generated by GNU Autoconf 2.69. Invocation command line was
18418
18419 CONFIG_FILES = $CONFIG_FILES
18420 CONFIG_HEADERS = $CONFIG_HEADERS
18421 CONFIG_LINKS = $CONFIG_LINKS
18422 CONFIG_COMMANDS = $CONFIG_COMMANDS
18423 $ $0 $@
18424
18425 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18426 "
18427
18428 _ACEOF
18429
18430 case $ac_config_files in *"
18431 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18432 esac
18433
18434 case $ac_config_headers in *"
18435 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18436 esac
18437
18438
18439 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18440 # Files that config.status was made for.
18441 config_files="$ac_config_files"
18442 config_headers="$ac_config_headers"
18443 config_commands="$ac_config_commands"
18444
18445 _ACEOF
18446
18447 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18448 ac_cs_usage="\
18449 \`$as_me' instantiates files and other configuration actions
18450 from templates according to the current configuration. Unless the files
18451 and actions are specified as TAGs, all are instantiated by default.
18452
18453 Usage: $0 [OPTION]... [TAG]...
18454
18455 -h, --help print this help, then exit
18456 -V, --version print version number and configuration settings, then exit
18457 --config print configuration, then exit
18458 -q, --quiet, --silent
18459 do not print progress messages
18460 -d, --debug don't remove temporary files
18461 --recheck update $as_me by reconfiguring in the same conditions
18462 --file=FILE[:TEMPLATE]
18463 instantiate the configuration file FILE
18464 --header=FILE[:TEMPLATE]
18465 instantiate the configuration header FILE
18466
18467 Configuration files:
18468 $config_files
18469
18470 Configuration headers:
18471 $config_headers
18472
18473 Configuration commands:
18474 $config_commands
18475
18476 Report bugs to <[email protected]>."
18477
18478 _ACEOF
18479 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18480 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18481 ac_cs_version="\\
18482 libcompizconfig config.status 0.8.18
18483 configured by $0, generated by GNU Autoconf 2.69,
18484 with options \\"\$ac_cs_config\\"
18485
18486 Copyright (C) 2012 Free Software Foundation, Inc.
18487 This config.status script is free software; the Free Software Foundation
18488 gives unlimited permission to copy, distribute and modify it."
18489
18490 ac_pwd='$ac_pwd'
18491 srcdir='$srcdir'
18492 INSTALL='$INSTALL'
18493 MKDIR_P='$MKDIR_P'
18494 AWK='$AWK'
18495 test -n "\$AWK" || AWK=awk
18496 _ACEOF
18497
18498 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18499 # The default lists apply if the user does not specify any file.
18500 ac_need_defaults=:
18501 while test $# != 0
18502 do
18503 case $1 in
18504 --*=?*)
18505 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18506 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18507 ac_shift=:
18508 ;;
18509 --*=)
18510 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18511 ac_optarg=
18512 ac_shift=:
18513 ;;
18514 *)
18515 ac_option=$1
18516 ac_optarg=$2
18517 ac_shift=shift
18518 ;;
18519 esac
18520
18521 case $ac_option in
18522 # Handling of the options.
18523 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18524 ac_cs_recheck=: ;;
18525 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18526 $as_echo "$ac_cs_version"; exit ;;
18527 --config | --confi | --conf | --con | --co | --c )
18528 $as_echo "$ac_cs_config"; exit ;;
18529 --debug | --debu | --deb | --de | --d | -d )
18530 debug=: ;;
18531 --file | --fil | --fi | --f )
18532 $ac_shift
18533 case $ac_optarg in
18534 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18535 '') as_fn_error $? "missing file argument" ;;
18536 esac
18537 as_fn_append CONFIG_FILES " '$ac_optarg'"
18538 ac_need_defaults=false;;
18539 --header | --heade | --head | --hea )
18540 $ac_shift
18541 case $ac_optarg in
18542 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18543 esac
18544 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18545 ac_need_defaults=false;;
18546 --he | --h)
18547 # Conflict between --help and --header
18548 as_fn_error $? "ambiguous option: \`$1'
18549 Try \`$0 --help' for more information.";;
18550 --help | --hel | -h )
18551 $as_echo "$ac_cs_usage"; exit ;;
18552 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18553 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18554 ac_cs_silent=: ;;
18555
18556 # This is an error.
18557 -*) as_fn_error $? "unrecognized option: \`$1'
18558 Try \`$0 --help' for more information." ;;
18559
18560 *) as_fn_append ac_config_targets " $1"
18561 ac_need_defaults=false ;;
18562
18563 esac
18564 shift
18565 done
18566
18567 ac_configure_extra_args=
18568
18569 if $ac_cs_silent; then
18570 exec 6>/dev/null
18571 ac_configure_extra_args="$ac_configure_extra_args --silent"
18572 fi
18573
18574 _ACEOF
18575 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18576 if \$ac_cs_recheck; then
18577 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18578 shift
18579 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18580 CONFIG_SHELL='$SHELL'
18581 export CONFIG_SHELL
18582 exec "\$@"
18583 fi
18584
18585 _ACEOF
18586 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18587 exec 5>>config.log
18588 {
18589 echo
18590 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18591 ## Running $as_me. ##
18592 _ASBOX
18593 $as_echo "$ac_log"
18594 } >&5
18595
18596 _ACEOF
18597 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18598 #
18599 # INIT-COMMANDS
18600 #
18601 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18602
18603
18604 # The HP-UX ksh and POSIX shell print the target directory to stdout
18605 # if CDPATH is set.
18606 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18607
18608 sed_quote_subst='$sed_quote_subst'
18609 double_quote_subst='$double_quote_subst'
18610 delay_variable_subst='$delay_variable_subst'
18611 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18612 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18613 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18614 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18615 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18616 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18617 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
18618 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18619 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18620 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18621 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18622 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18623 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18624 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18625 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18626 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18627 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18628 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18629 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18630 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18631 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18632 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18633 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18634 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18635 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18636 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18637 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18638 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18639 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18640 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18641 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18642 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18643 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18644 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18645 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18646 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18647 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18648 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18649 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18650 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18651 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18652 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18653 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18654 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18655 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18656 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18657 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18658 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18659 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18660 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18661 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18662 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18663 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18664 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18665 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18666 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18667 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
18668 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18669 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"`'
18670 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
18671 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18672 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18673 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
18674 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18675 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18676 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18677 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18678 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18679 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18680 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18681 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18682 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18683 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18684 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18685 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18686 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18687 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18688 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18689 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18690 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18691 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18692 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18693 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18694 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18695 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18696 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18697 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18698 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18699 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18700 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18701 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18702 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18703 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18704 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18705 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18706 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18707 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18708 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18709 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18710 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18711 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18712 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18713 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18714 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18715 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18716 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18717 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18718 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18719 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18720 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18721 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18722 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18723 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18724 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18725 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18726 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18727 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18728 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18729 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18730 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18731 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18732 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18733 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18734 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18735 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18736 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18737 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18738 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
18739 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
18740 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18741 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18742 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18743 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18744 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18745 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18746 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18747 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18748 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18749 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18750 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18751 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18752 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18753 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18754 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18755 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18756 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18757 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18758 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18759 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18760 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18761 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18762 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18763 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18764 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18765 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18766 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18767 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18768 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18769 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18770 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18771 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18772 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18773 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18774 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18775 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18776 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18777 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18778 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18779 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18780 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18781 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18782 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18783 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18784 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18785 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18786 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18787 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18788 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18789 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18790 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18791 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18792 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18793 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18794 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18795 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18796 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18797 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18798 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18799 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18800
18801 LTCC='$LTCC'
18802 LTCFLAGS='$LTCFLAGS'
18803 compiler='$compiler_DEFAULT'
18804
18805 # A function that is used when there is no print builtin or printf.
18806 func_fallback_echo ()
18807 {
18808 eval 'cat <<_LTECHO_EOF
18809 \$1
18810 _LTECHO_EOF'
18811 }
18812
18813 # Quote evaled strings.
18814 for var in SHELL \
18815 ECHO \
18816 PATH_SEPARATOR \
18817 SED \
18818 GREP \
18819 EGREP \
18820 FGREP \
18821 LD \
18822 NM \
18823 LN_S \
18824 lt_SP2NL \
18825 lt_NL2SP \
18826 reload_flag \
18827 OBJDUMP \
18828 deplibs_check_method \
18829 file_magic_cmd \
18830 file_magic_glob \
18831 want_nocaseglob \
18832 DLLTOOL \
18833 sharedlib_from_linklib_cmd \
18834 AR \
18835 AR_FLAGS \
18836 archiver_list_spec \
18837 STRIP \
18838 RANLIB \
18839 CC \
18840 CFLAGS \
18841 compiler \
18842 lt_cv_sys_global_symbol_pipe \
18843 lt_cv_sys_global_symbol_to_cdecl \
18844 lt_cv_sys_global_symbol_to_import \
18845 lt_cv_sys_global_symbol_to_c_name_address \
18846 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18847 lt_cv_nm_interface \
18848 nm_file_list_spec \
18849 lt_cv_truncate_bin \
18850 lt_prog_compiler_no_builtin_flag \
18851 lt_prog_compiler_pic \
18852 lt_prog_compiler_wl \
18853 lt_prog_compiler_static \
18854 lt_cv_prog_compiler_c_o \
18855 need_locks \
18856 MANIFEST_TOOL \
18857 DSYMUTIL \
18858 NMEDIT \
18859 LIPO \
18860 OTOOL \
18861 OTOOL64 \
18862 shrext_cmds \
18863 export_dynamic_flag_spec \
18864 whole_archive_flag_spec \
18865 compiler_needs_object \
18866 with_gnu_ld \
18867 allow_undefined_flag \
18868 no_undefined_flag \
18869 hardcode_libdir_flag_spec \
18870 hardcode_libdir_separator \
18871 exclude_expsyms \
18872 include_expsyms \
18873 file_list_spec \
18874 variables_saved_for_relink \
18875 libname_spec \
18876 library_names_spec \
18877 soname_spec \
18878 install_override_mode \
18879 finish_eval \
18880 old_striplib \
18881 striplib \
18882 compiler_lib_search_dirs \
18883 predep_objects \
18884 postdep_objects \
18885 predeps \
18886 postdeps \
18887 compiler_lib_search_path \
18888 LD_CXX \
18889 reload_flag_CXX \
18890 compiler_CXX \
18891 lt_prog_compiler_no_builtin_flag_CXX \
18892 lt_prog_compiler_pic_CXX \
18893 lt_prog_compiler_wl_CXX \
18894 lt_prog_compiler_static_CXX \
18895 lt_cv_prog_compiler_c_o_CXX \
18896 export_dynamic_flag_spec_CXX \
18897 whole_archive_flag_spec_CXX \
18898 compiler_needs_object_CXX \
18899 with_gnu_ld_CXX \
18900 allow_undefined_flag_CXX \
18901 no_undefined_flag_CXX \
18902 hardcode_libdir_flag_spec_CXX \
18903 hardcode_libdir_separator_CXX \
18904 exclude_expsyms_CXX \
18905 include_expsyms_CXX \
18906 file_list_spec_CXX \
18907 compiler_lib_search_dirs_CXX \
18908 predep_objects_CXX \
18909 postdep_objects_CXX \
18910 predeps_CXX \
18911 postdeps_CXX \
18912 compiler_lib_search_path_CXX; do
18913 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18914 *[\\\\\\\`\\"\\\$]*)
18915 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18916 ;;
18917 *)
18918 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18919 ;;
18920 esac
18921 done
18922
18923 # Double-quote double-evaled strings.
18924 for var in reload_cmds \
18925 old_postinstall_cmds \
18926 old_postuninstall_cmds \
18927 old_archive_cmds \
18928 extract_expsyms_cmds \
18929 old_archive_from_new_cmds \
18930 old_archive_from_expsyms_cmds \
18931 archive_cmds \
18932 archive_expsym_cmds \
18933 module_cmds \
18934 module_expsym_cmds \
18935 export_symbols_cmds \
18936 prelink_cmds \
18937 postlink_cmds \
18938 postinstall_cmds \
18939 postuninstall_cmds \
18940 finish_cmds \
18941 sys_lib_search_path_spec \
18942 configure_time_dlsearch_path \
18943 configure_time_lt_sys_library_path \
18944 reload_cmds_CXX \
18945 old_archive_cmds_CXX \
18946 old_archive_from_new_cmds_CXX \
18947 old_archive_from_expsyms_cmds_CXX \
18948 archive_cmds_CXX \
18949 archive_expsym_cmds_CXX \
18950 module_cmds_CXX \
18951 module_expsym_cmds_CXX \
18952 export_symbols_cmds_CXX \
18953 prelink_cmds_CXX \
18954 postlink_cmds_CXX; do
18955 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18956 *[\\\\\\\`\\"\\\$]*)
18957 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18958 ;;
18959 *)
18960 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18961 ;;
18962 esac
18963 done
18964
18965 ac_aux_dir='$ac_aux_dir'
18966
18967 # See if we are running on zsh, and set the options that allow our
18968 # commands through without removal of \ escapes INIT.
18969 if test -n "\${ZSH_VERSION+set}"; then
18970 setopt NO_GLOB_SUBST
18971 fi
18972
18973
18974 PACKAGE='$PACKAGE'
18975 VERSION='$VERSION'
18976 RM='$RM'
18977 ofile='$ofile'
18978
18979
18980
18981
18982
18983
18984 _ACEOF
18985
18986 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18987
18988 # Handling of arguments.
18989 for ac_config_target in $ac_config_targets
18990 do
18991 case $ac_config_target in
18992 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18993 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18994 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18995 "libcompizconfig.pc") CONFIG_FILES="$CONFIG_FILES libcompizconfig.pc" ;;
18996 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18997 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18998 "backend/Makefile") CONFIG_FILES="$CONFIG_FILES backend/Makefile" ;;
18999 "plugin/Makefile") CONFIG_FILES="$CONFIG_FILES plugin/Makefile" ;;
19000 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
19001 "metadata/Makefile") CONFIG_FILES="$CONFIG_FILES metadata/Makefile" ;;
19002 "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
19003
19004 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19005 esac
19006 done
19007
19008
19009 # If the user did not use the arguments to specify the items to instantiate,
19010 # then the envvar interface is used. Set only those that are not.
19011 # We use the long form for the default assignment because of an extremely
19012 # bizarre bug on SunOS 4.1.3.
19013 if $ac_need_defaults; then
19014 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19015 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19016 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19017 fi
19018
19019 # Have a temporary directory for convenience. Make it in the build tree
19020 # simply because there is no reason against having it here, and in addition,
19021 # creating and moving files from /tmp can sometimes cause problems.
19022 # Hook for its removal unless debugging.
19023 # Note that there is a small window in which the directory will not be cleaned:
19024 # after its creation but before its name has been assigned to `$tmp'.
19025 $debug ||
19026 {
19027 tmp= ac_tmp=
19028 trap 'exit_status=$?
19029 : "${ac_tmp:=$tmp}"
19030 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19031 ' 0
19032 trap 'as_fn_exit 1' 1 2 13 15
19033 }
19034 # Create a (secure) tmp directory for tmp files.
19035
19036 {
19037 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19038 test -d "$tmp"
19039 } ||
19040 {
19041 tmp=./conf$$-$RANDOM
19042 (umask 077 && mkdir "$tmp")
19043 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19044 ac_tmp=$tmp
19045
19046 # Set up the scripts for CONFIG_FILES section.
19047 # No need to generate them if there are no CONFIG_FILES.
19048 # This happens for instance with `./config.status config.h'.
19049 if test -n "$CONFIG_FILES"; then
19050
19051
19052 ac_cr=`echo X | tr X '\015'`
19053 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19054 # But we know of no other shell where ac_cr would be empty at this
19055 # point, so we can use a bashism as a fallback.
19056 if test "x$ac_cr" = x; then
19057 eval ac_cr=\$\'\\r\'
19058 fi
19059 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19060 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19061 ac_cs_awk_cr='\\r'
19062 else
19063 ac_cs_awk_cr=$ac_cr
19064 fi
19065
19066 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19067 _ACEOF
19068
19069
19070 {
19071 echo "cat >conf$$subs.awk <<_ACEOF" &&
19072 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19073 echo "_ACEOF"
19074 } >conf$$subs.sh ||
19075 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19076 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19077 ac_delim='%!_!# '
19078 for ac_last_try in false false false false false :; do
19079 . ./conf$$subs.sh ||
19080 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19081
19082 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19083 if test $ac_delim_n = $ac_delim_num; then
19084 break
19085 elif $ac_last_try; then
19086 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19087 else
19088 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19089 fi
19090 done
19091 rm -f conf$$subs.sh
19092
19093 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19094 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19095 _ACEOF
19096 sed -n '
19097 h
19098 s/^/S["/; s/!.*/"]=/
19099 p
19100 g
19101 s/^[^!]*!//
19102 :repl
19103 t repl
19104 s/'"$ac_delim"'$//
19105 t delim
19106 :nl
19107 h
19108 s/\(.\{148\}\)..*/\1/
19109 t more1
19110 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19111 p
19112 n
19113 b repl
19114 :more1
19115 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19116 p
19117 g
19118 s/.\{148\}//
19119 t nl
19120 :delim
19121 h
19122 s/\(.\{148\}\)..*/\1/
19123 t more2
19124 s/["\\]/\\&/g; s/^/"/; s/$/"/
19125 p
19126 b
19127 :more2
19128 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19129 p
19130 g
19131 s/.\{148\}//
19132 t delim
19133 ' <conf$$subs.awk | sed '
19134 /^[^""]/{
19135 N
19136 s/\n//
19137 }
19138 ' >>$CONFIG_STATUS || ac_write_fail=1
19139 rm -f conf$$subs.awk
19140 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19141 _ACAWK
19142 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19143 for (key in S) S_is_set[key] = 1
19144 FS = ""
19145
19146 }
19147 {
19148 line = $ 0
19149 nfields = split(line, field, "@")
19150 substed = 0
19151 len = length(field[1])
19152 for (i = 2; i < nfields; i++) {
19153 key = field[i]
19154 keylen = length(key)
19155 if (S_is_set[key]) {
19156 value = S[key]
19157 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19158 len += length(value) + length(field[++i])
19159 substed = 1
19160 } else
19161 len += 1 + keylen
19162 }
19163
19164 print line
19165 }
19166
19167 _ACAWK
19168 _ACEOF
19169 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19170 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19171 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19172 else
19173 cat
19174 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19175 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19176 _ACEOF
19177
19178 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19179 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19180 # trailing colons and then remove the whole line if VPATH becomes empty
19181 # (actually we leave an empty line to preserve line numbers).
19182 if test "x$srcdir" = x.; then
19183 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19184 h
19185 s///
19186 s/^/:/
19187 s/[ ]*$/:/
19188 s/:\$(srcdir):/:/g
19189 s/:\${srcdir}:/:/g
19190 s/:@srcdir@:/:/g
19191 s/^:*//
19192 s/:*$//
19193 x
19194 s/\(=[ ]*\).*/\1/
19195 G
19196 s/\n//
19197 s/^[^=]*=[ ]*$//
19198 }'
19199 fi
19200
19201 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19202 fi # test -n "$CONFIG_FILES"
19203
19204 # Set up the scripts for CONFIG_HEADERS section.
19205 # No need to generate them if there are no CONFIG_HEADERS.
19206 # This happens for instance with `./config.status Makefile'.
19207 if test -n "$CONFIG_HEADERS"; then
19208 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19209 BEGIN {
19210 _ACEOF
19211
19212 # Transform confdefs.h into an awk script `defines.awk', embedded as
19213 # here-document in config.status, that substitutes the proper values into
19214 # config.h.in to produce config.h.
19215
19216 # Create a delimiter string that does not exist in confdefs.h, to ease
19217 # handling of long lines.
19218 ac_delim='%!_!# '
19219 for ac_last_try in false false :; do
19220 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19221 if test -z "$ac_tt"; then
19222 break
19223 elif $ac_last_try; then
19224 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19225 else
19226 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19227 fi
19228 done
19229
19230 # For the awk script, D is an array of macro values keyed by name,
19231 # likewise P contains macro parameters if any. Preserve backslash
19232 # newline sequences.
19233
19234 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19235 sed -n '
19236 s/.\{148\}/&'"$ac_delim"'/g
19237 t rset
19238 :rset
19239 s/^[ ]*#[ ]*define[ ][ ]*/ /
19240 t def
19241 d
19242 :def
19243 s/\\$//
19244 t bsnl
19245 s/["\\]/\\&/g
19246 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19247 D["\1"]=" \3"/p
19248 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19249 d
19250 :bsnl
19251 s/["\\]/\\&/g
19252 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19253 D["\1"]=" \3\\\\\\n"\\/p
19254 t cont
19255 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19256 t cont
19257 d
19258 :cont
19259 n
19260 s/.\{148\}/&'"$ac_delim"'/g
19261 t clear
19262 :clear
19263 s/\\$//
19264 t bsnlc
19265 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19266 d
19267 :bsnlc
19268 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19269 b cont
19270 ' <confdefs.h | sed '
19271 s/'"$ac_delim"'/"\\\
19272 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19273
19274 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19275 for (key in D) D_is_set[key] = 1
19276 FS = ""
19277 }
19278 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19279 line = \$ 0
19280 split(line, arg, " ")
19281 if (arg[1] == "#") {
19282 defundef = arg[2]
19283 mac1 = arg[3]
19284 } else {
19285 defundef = substr(arg[1], 2)
19286 mac1 = arg[2]
19287 }
19288 split(mac1, mac2, "(") #)
19289 macro = mac2[1]
19290 prefix = substr(line, 1, index(line, defundef) - 1)
19291 if (D_is_set[macro]) {
19292 # Preserve the white space surrounding the "#".
19293 print prefix "define", macro P[macro] D[macro]
19294 next
19295 } else {
19296 # Replace #undef with comments. This is necessary, for example,
19297 # in the case of _POSIX_SOURCE, which is predefined and required
19298 # on some systems where configure will not decide to define it.
19299 if (defundef == "undef") {
19300 print "/*", prefix defundef, macro, "*/"
19301 next
19302 }
19303 }
19304 }
19305 { print }
19306 _ACAWK
19307 _ACEOF
19308 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19309 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19310 fi # test -n "$CONFIG_HEADERS"
19311
19312
19313 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19314 shift
19315 for ac_tag
19316 do
19317 case $ac_tag in
19318 :[FHLC]) ac_mode=$ac_tag; continue;;
19319 esac
19320 case $ac_mode$ac_tag in
19321 :[FHL]*:*);;
19322 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19323 :[FH]-) ac_tag=-:-;;
19324 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19325 esac
19326 ac_save_IFS=$IFS
19327 IFS=:
19328 set x $ac_tag
19329 IFS=$ac_save_IFS
19330 shift
19331 ac_file=$1
19332 shift
19333
19334 case $ac_mode in
19335 :L) ac_source=$1;;
19336 :[FH])
19337 ac_file_inputs=
19338 for ac_f
19339 do
19340 case $ac_f in
19341 -) ac_f="$ac_tmp/stdin";;
19342 *) # Look for the file first in the build tree, then in the source tree
19343 # (if the path is not absolute). The absolute path cannot be DOS-style,
19344 # because $ac_f cannot contain `:'.
19345 test -f "$ac_f" ||
19346 case $ac_f in
19347 [\\/$]*) false;;
19348 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19349 esac ||
19350 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19351 esac
19352 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19353 as_fn_append ac_file_inputs " '$ac_f'"
19354 done
19355
19356 # Let's still pretend it is `configure' which instantiates (i.e., don't
19357 # use $as_me), people would be surprised to read:
19358 # /* config.h. Generated by config.status. */
19359 configure_input='Generated from '`
19360 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19361 `' by configure.'
19362 if test x"$ac_file" != x-; then
19363 configure_input="$ac_file. $configure_input"
19364 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19365 $as_echo "$as_me: creating $ac_file" >&6;}
19366 fi
19367 # Neutralize special characters interpreted by sed in replacement strings.
19368 case $configure_input in #(
19369 *\&* | *\|* | *\\* )
19370 ac_sed_conf_input=`$as_echo "$configure_input" |
19371 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19372 *) ac_sed_conf_input=$configure_input;;
19373 esac
19374
19375 case $ac_tag in
19376 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19377 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19378 esac
19379 ;;
19380 esac
19381
19382 ac_dir=`$as_dirname -- "$ac_file" ||
19383 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19384 X"$ac_file" : 'X\(//\)[^/]' \| \
19385 X"$ac_file" : 'X\(//\)$' \| \
19386 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19387 $as_echo X"$ac_file" |
19388 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19389 s//\1/
19390 q
19391 }
19392 /^X\(\/\/\)[^/].*/{
19393 s//\1/
19394 q
19395 }
19396 /^X\(\/\/\)$/{
19397 s//\1/
19398 q
19399 }
19400 /^X\(\/\).*/{
19401 s//\1/
19402 q
19403 }
19404 s/.*/./; q'`
19405 as_dir="$ac_dir"; as_fn_mkdir_p
19406 ac_builddir=.
19407
19408 case "$ac_dir" in
19409 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19410 *)
19411 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19412 # A ".." for each directory in $ac_dir_suffix.
19413 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19414 case $ac_top_builddir_sub in
19415 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19416 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19417 esac ;;
19418 esac
19419 ac_abs_top_builddir=$ac_pwd
19420 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19421 # for backward compatibility:
19422 ac_top_builddir=$ac_top_build_prefix
19423
19424 case $srcdir in
19425 .) # We are building in place.
19426 ac_srcdir=.
19427 ac_top_srcdir=$ac_top_builddir_sub
19428 ac_abs_top_srcdir=$ac_pwd ;;
19429 [\\/]* | ?:[\\/]* ) # Absolute name.
19430 ac_srcdir=$srcdir$ac_dir_suffix;
19431 ac_top_srcdir=$srcdir
19432 ac_abs_top_srcdir=$srcdir ;;
19433 *) # Relative name.
19434 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19435 ac_top_srcdir=$ac_top_build_prefix$srcdir
19436 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19437 esac
19438 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19439
19440
19441 case $ac_mode in
19442 :F)
19443 #
19444 # CONFIG_FILE
19445 #
19446
19447 case $INSTALL in
19448 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19449 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19450 esac
19451 ac_MKDIR_P=$MKDIR_P
19452 case $MKDIR_P in
19453 [\\/$]* | ?:[\\/]* ) ;;
19454 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19455 esac
19456 _ACEOF
19457
19458 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19459 # If the template does not know about datarootdir, expand it.
19460 # FIXME: This hack should be removed a few years after 2.60.
19461 ac_datarootdir_hack=; ac_datarootdir_seen=
19462 ac_sed_dataroot='
19463 /datarootdir/ {
19464 p
19465 q
19466 }
19467 /@datadir@/p
19468 /@docdir@/p
19469 /@infodir@/p
19470 /@localedir@/p
19471 /@mandir@/p'
19472 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19473 *datarootdir*) ac_datarootdir_seen=yes;;
19474 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19476 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19477 _ACEOF
19478 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19479 ac_datarootdir_hack='
19480 s&@datadir@&$datadir&g
19481 s&@docdir@&$docdir&g
19482 s&@infodir@&$infodir&g
19483 s&@localedir@&$localedir&g
19484 s&@mandir@&$mandir&g
19485 s&\\\${datarootdir}&$datarootdir&g' ;;
19486 esac
19487 _ACEOF
19488
19489 # Neutralize VPATH when `$srcdir' = `.'.
19490 # Shell code in configure.ac might set extrasub.
19491 # FIXME: do we really want to maintain this feature?
19492 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19493 ac_sed_extra="$ac_vpsub
19494 $extrasub
19495 _ACEOF
19496 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19497 :t
19498 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19499 s|@configure_input@|$ac_sed_conf_input|;t t
19500 s&@top_builddir@&$ac_top_builddir_sub&;t t
19501 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19502 s&@srcdir@&$ac_srcdir&;t t
19503 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19504 s&@top_srcdir@&$ac_top_srcdir&;t t
19505 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19506 s&@builddir@&$ac_builddir&;t t
19507 s&@abs_builddir@&$ac_abs_builddir&;t t
19508 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19509 s&@INSTALL@&$ac_INSTALL&;t t
19510 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19511 $ac_datarootdir_hack
19512 "
19513 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19514 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19515
19516 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19517 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19518 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19519 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19521 which seems to be undefined. Please make sure it is defined" >&5
19522 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19523 which seems to be undefined. Please make sure it is defined" >&2;}
19524
19525 rm -f "$ac_tmp/stdin"
19526 case $ac_file in
19527 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19528 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19529 esac \
19530 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19531 ;;
19532 :H)
19533 #
19534 # CONFIG_HEADER
19535 #
19536 if test x"$ac_file" != x-; then
19537 {
19538 $as_echo "/* $configure_input */" \
19539 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19540 } >"$ac_tmp/config.h" \
19541 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19542 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19543 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19544 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19545 else
19546 rm -f "$ac_file"
19547 mv "$ac_tmp/config.h" "$ac_file" \
19548 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19549 fi
19550 else
19551 $as_echo "/* $configure_input */" \
19552 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19553 || as_fn_error $? "could not create -" "$LINENO" 5
19554 fi
19555 # Compute "$ac_file"'s index in $config_headers.
19556 _am_arg="$ac_file"
19557 _am_stamp_count=1
19558 for _am_header in $config_headers :; do
19559 case $_am_header in
19560 $_am_arg | $_am_arg:* )
19561 break ;;
19562 * )
19563 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19564 esac
19565 done
19566 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19567 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19568 X"$_am_arg" : 'X\(//\)[^/]' \| \
19569 X"$_am_arg" : 'X\(//\)$' \| \
19570 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19571 $as_echo X"$_am_arg" |
19572 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19573 s//\1/
19574 q
19575 }
19576 /^X\(\/\/\)[^/].*/{
19577 s//\1/
19578 q
19579 }
19580 /^X\(\/\/\)$/{
19581 s//\1/
19582 q
19583 }
19584 /^X\(\/\).*/{
19585 s//\1/
19586 q
19587 }
19588 s/.*/./; q'`/stamp-h$_am_stamp_count
19589 ;;
19590
19591 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19592 $as_echo "$as_me: executing $ac_file commands" >&6;}
19593 ;;
19594 esac
19595
19596
19597 case $ac_file$ac_mode in
19598 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19599 # Older Autoconf quotes --file arguments for eval, but not when files
19600 # are listed without --file. Let's play safe and only enable the eval
19601 # if we detect the quoting.
19602 case $CONFIG_FILES in
19603 *\'*) eval set x "$CONFIG_FILES" ;;
19604 *) set x $CONFIG_FILES ;;
19605 esac
19606 shift
19607 for mf
19608 do
19609 # Strip MF so we end up with the name of the file.
19610 mf=`echo "$mf" | sed -e 's/:.*$//'`
19611 # Check whether this is an Automake generated Makefile or not.
19612 # We used to match only the files named 'Makefile.in', but
19613 # some people rename them; so instead we look at the file content.
19614 # Grep'ing the first line is not enough: some people post-process
19615 # each Makefile.in and add a new line on top of each file to say so.
19616 # Grep'ing the whole file is not good either: AIX grep has a line
19617 # limit of 2048, but all sed's we know have understand at least 4000.
19618 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19619 dirpart=`$as_dirname -- "$mf" ||
19620 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19621 X"$mf" : 'X\(//\)[^/]' \| \
19622 X"$mf" : 'X\(//\)$' \| \
19623 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19624 $as_echo X"$mf" |
19625 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19626 s//\1/
19627 q
19628 }
19629 /^X\(\/\/\)[^/].*/{
19630 s//\1/
19631 q
19632 }
19633 /^X\(\/\/\)$/{
19634 s//\1/
19635 q
19636 }
19637 /^X\(\/\).*/{
19638 s//\1/
19639 q
19640 }
19641 s/.*/./; q'`
19642 else
19643 continue
19644 fi
19645 # Extract the definition of DEPDIR, am__include, and am__quote
19646 # from the Makefile without running 'make'.
19647 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19648 test -z "$DEPDIR" && continue
19649 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19650 test -z "$am__include" && continue
19651 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19652 # Find all dependency output files, they are included files with
19653 # $(DEPDIR) in their names. We invoke sed twice because it is the
19654 # simplest approach to changing $(DEPDIR) to its actual value in the
19655 # expansion.
19656 for file in `sed -n "
19657 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19658 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19659 # Make sure the directory exists.
19660 test -f "$dirpart/$file" && continue
19661 fdir=`$as_dirname -- "$file" ||
19662 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19663 X"$file" : 'X\(//\)[^/]' \| \
19664 X"$file" : 'X\(//\)$' \| \
19665 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19666 $as_echo X"$file" |
19667 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19668 s//\1/
19669 q
19670 }
19671 /^X\(\/\/\)[^/].*/{
19672 s//\1/
19673 q
19674 }
19675 /^X\(\/\/\)$/{
19676 s//\1/
19677 q
19678 }
19679 /^X\(\/\).*/{
19680 s//\1/
19681 q
19682 }
19683 s/.*/./; q'`
19684 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19685 # echo "creating $dirpart/$file"
19686 echo '# dummy' > "$dirpart/$file"
19687 done
19688 done
19689 }
19690 ;;
19691 "libtool":C)
19692
19693 # See if we are running on zsh, and set the options that allow our
19694 # commands through without removal of \ escapes.
19695 if test -n "${ZSH_VERSION+set}"; then
19696 setopt NO_GLOB_SUBST
19697 fi
19698
19699 cfgfile=${ofile}T
19700 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19701 $RM "$cfgfile"
19702
19703 cat <<_LT_EOF >> "$cfgfile"
19704 #! $SHELL
19705 # Generated automatically by $as_me ($PACKAGE) $VERSION
19706 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19707
19708 # Provide generalized library-building support services.
19709 # Written by Gordon Matzigkeit, 1996
19710
19711 # Copyright (C) 2014 Free Software Foundation, Inc.
19712 # This is free software; see the source for copying conditions. There is NO
19713 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19714
19715 # GNU Libtool is free software; you can redistribute it and/or modify
19716 # it under the terms of the GNU General Public License as published by
19717 # the Free Software Foundation; either version 2 of of the License, or
19718 # (at your option) any later version.
19719 #
19720 # As a special exception to the GNU General Public License, if you
19721 # distribute this file as part of a program or library that is built
19722 # using GNU Libtool, you may include this file under the same
19723 # distribution terms that you use for the rest of that program.
19724 #
19725 # GNU Libtool is distributed in the hope that it will be useful, but
19726 # WITHOUT ANY WARRANTY; without even the implied warranty of
19727 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19728 # GNU General Public License for more details.
19729 #
19730 # You should have received a copy of the GNU General Public License
19731 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19732
19733
19734 # The names of the tagged configurations supported by this script.
19735 available_tags='CXX '
19736
19737 # Configured defaults for sys_lib_dlsearch_path munging.
19738 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
19739
19740 # ### BEGIN LIBTOOL CONFIG
19741
19742 # Which release of libtool.m4 was used?
19743 macro_version=$macro_version
19744 macro_revision=$macro_revision
19745
19746 # Whether or not to build shared libraries.
19747 build_libtool_libs=$enable_shared
19748
19749 # Whether or not to build static libraries.
19750 build_old_libs=$enable_static
19751
19752 # What type of objects to build.
19753 pic_mode=$pic_mode
19754
19755 # Whether or not to optimize for fast installation.
19756 fast_install=$enable_fast_install
19757
19758 # Shared archive member basename,for filename based shared library versioning on AIX.
19759 shared_archive_member_spec=$shared_archive_member_spec
19760
19761 # Shell to use when invoking shell scripts.
19762 SHELL=$lt_SHELL
19763
19764 # An echo program that protects backslashes.
19765 ECHO=$lt_ECHO
19766
19767 # The PATH separator for the build system.
19768 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19769
19770 # The host system.
19771 host_alias=$host_alias
19772 host=$host
19773 host_os=$host_os
19774
19775 # The build system.
19776 build_alias=$build_alias
19777 build=$build
19778 build_os=$build_os
19779
19780 # A sed program that does not truncate output.
19781 SED=$lt_SED
19782
19783 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19784 Xsed="\$SED -e 1s/^X//"
19785
19786 # A grep program that handles long lines.
19787 GREP=$lt_GREP
19788
19789 # An ERE matcher.
19790 EGREP=$lt_EGREP
19791
19792 # A literal string matcher.
19793 FGREP=$lt_FGREP
19794
19795 # A BSD- or MS-compatible name lister.
19796 NM=$lt_NM
19797
19798 # Whether we need soft or hard links.
19799 LN_S=$lt_LN_S
19800
19801 # What is the maximum length of a command?
19802 max_cmd_len=$max_cmd_len
19803
19804 # Object file suffix (normally "o").
19805 objext=$ac_objext
19806
19807 # Executable file suffix (normally "").
19808 exeext=$exeext
19809
19810 # whether the shell understands "unset".
19811 lt_unset=$lt_unset
19812
19813 # turn spaces into newlines.
19814 SP2NL=$lt_lt_SP2NL
19815
19816 # turn newlines into spaces.
19817 NL2SP=$lt_lt_NL2SP
19818
19819 # convert \$build file names to \$host format.
19820 to_host_file_cmd=$lt_cv_to_host_file_cmd
19821
19822 # convert \$build files to toolchain format.
19823 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19824
19825 # An object symbol dumper.
19826 OBJDUMP=$lt_OBJDUMP
19827
19828 # Method to check whether dependent libraries are shared objects.
19829 deplibs_check_method=$lt_deplibs_check_method
19830
19831 # Command to use when deplibs_check_method = "file_magic".
19832 file_magic_cmd=$lt_file_magic_cmd
19833
19834 # How to find potential files when deplibs_check_method = "file_magic".
19835 file_magic_glob=$lt_file_magic_glob
19836
19837 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19838 want_nocaseglob=$lt_want_nocaseglob
19839
19840 # DLL creation program.
19841 DLLTOOL=$lt_DLLTOOL
19842
19843 # Command to associate shared and link libraries.
19844 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19845
19846 # The archiver.
19847 AR=$lt_AR
19848
19849 # Flags to create an archive.
19850 AR_FLAGS=$lt_AR_FLAGS
19851
19852 # How to feed a file listing to the archiver.
19853 archiver_list_spec=$lt_archiver_list_spec
19854
19855 # A symbol stripping program.
19856 STRIP=$lt_STRIP
19857
19858 # Commands used to install an old-style archive.
19859 RANLIB=$lt_RANLIB
19860 old_postinstall_cmds=$lt_old_postinstall_cmds
19861 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19862
19863 # Whether to use a lock for old archive extraction.
19864 lock_old_archive_extraction=$lock_old_archive_extraction
19865
19866 # A C compiler.
19867 LTCC=$lt_CC
19868
19869 # LTCC compiler flags.
19870 LTCFLAGS=$lt_CFLAGS
19871
19872 # Take the output of nm and produce a listing of raw symbols and C names.
19873 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19874
19875 # Transform the output of nm in a proper C declaration.
19876 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19877
19878 # Transform the output of nm into a list of symbols to manually relocate.
19879 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
19880
19881 # Transform the output of nm in a C name address pair.
19882 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19883
19884 # Transform the output of nm in a C name address pair when lib prefix is needed.
19885 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19886
19887 # The name lister interface.
19888 nm_interface=$lt_lt_cv_nm_interface
19889
19890 # Specify filename containing input files for \$NM.
19891 nm_file_list_spec=$lt_nm_file_list_spec
19892
19893 # The root where to search for dependent libraries,and where our libraries should be installed.
19894 lt_sysroot=$lt_sysroot
19895
19896 # Command to truncate a binary pipe.
19897 lt_truncate_bin=$lt_lt_cv_truncate_bin
19898
19899 # The name of the directory that contains temporary libtool files.
19900 objdir=$objdir
19901
19902 # Used to examine libraries when file_magic_cmd begins with "file".
19903 MAGIC_CMD=$MAGIC_CMD
19904
19905 # Must we lock files when doing compilation?
19906 need_locks=$lt_need_locks
19907
19908 # Manifest tool.
19909 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19910
19911 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19912 DSYMUTIL=$lt_DSYMUTIL
19913
19914 # Tool to change global to local symbols on Mac OS X.
19915 NMEDIT=$lt_NMEDIT
19916
19917 # Tool to manipulate fat objects and archives on Mac OS X.
19918 LIPO=$lt_LIPO
19919
19920 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19921 OTOOL=$lt_OTOOL
19922
19923 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19924 OTOOL64=$lt_OTOOL64
19925
19926 # Old archive suffix (normally "a").
19927 libext=$libext
19928
19929 # Shared library suffix (normally ".so").
19930 shrext_cmds=$lt_shrext_cmds
19931
19932 # The commands to extract the exported symbol list from a shared archive.
19933 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19934
19935 # Variables whose values should be saved in libtool wrapper scripts and
19936 # restored at link time.
19937 variables_saved_for_relink=$lt_variables_saved_for_relink
19938
19939 # Do we need the "lib" prefix for modules?
19940 need_lib_prefix=$need_lib_prefix
19941
19942 # Do we need a version for libraries?
19943 need_version=$need_version
19944
19945 # Library versioning type.
19946 version_type=$version_type
19947
19948 # Shared library runtime path variable.
19949 runpath_var=$runpath_var
19950
19951 # Shared library path variable.
19952 shlibpath_var=$shlibpath_var
19953
19954 # Is shlibpath searched before the hard-coded library search path?
19955 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19956
19957 # Format of library name prefix.
19958 libname_spec=$lt_libname_spec
19959
19960 # List of archive names. First name is the real one, the rest are links.
19961 # The last name is the one that the linker finds with -lNAME
19962 library_names_spec=$lt_library_names_spec
19963
19964 # The coded name of the library, if different from the real name.
19965 soname_spec=$lt_soname_spec
19966
19967 # Permission mode override for installation of shared libraries.
19968 install_override_mode=$lt_install_override_mode
19969
19970 # Command to use after installation of a shared archive.
19971 postinstall_cmds=$lt_postinstall_cmds
19972
19973 # Command to use after uninstallation of a shared archive.
19974 postuninstall_cmds=$lt_postuninstall_cmds
19975
19976 # Commands used to finish a libtool library installation in a directory.
19977 finish_cmds=$lt_finish_cmds
19978
19979 # As "finish_cmds", except a single script fragment to be evaled but
19980 # not shown.
19981 finish_eval=$lt_finish_eval
19982
19983 # Whether we should hardcode library paths into libraries.
19984 hardcode_into_libs=$hardcode_into_libs
19985
19986 # Compile-time system search path for libraries.
19987 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19988
19989 # Detected run-time system search path for libraries.
19990 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
19991
19992 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
19993 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
19994
19995 # Whether dlopen is supported.
19996 dlopen_support=$enable_dlopen
19997
19998 # Whether dlopen of programs is supported.
19999 dlopen_self=$enable_dlopen_self
20000
20001 # Whether dlopen of statically linked programs is supported.
20002 dlopen_self_static=$enable_dlopen_self_static
20003
20004 # Commands to strip libraries.
20005 old_striplib=$lt_old_striplib
20006 striplib=$lt_striplib
20007
20008
20009 # The linker used to build libraries.
20010 LD=$lt_LD
20011
20012 # How to create reloadable object files.
20013 reload_flag=$lt_reload_flag
20014 reload_cmds=$lt_reload_cmds
20015
20016 # Commands used to build an old-style archive.
20017 old_archive_cmds=$lt_old_archive_cmds
20018
20019 # A language specific compiler.
20020 CC=$lt_compiler
20021
20022 # Is the compiler the GNU compiler?
20023 with_gcc=$GCC
20024
20025 # Compiler flag to turn off builtin functions.
20026 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20027
20028 # Additional compiler flags for building library objects.
20029 pic_flag=$lt_lt_prog_compiler_pic
20030
20031 # How to pass a linker flag through the compiler.
20032 wl=$lt_lt_prog_compiler_wl
20033
20034 # Compiler flag to prevent dynamic linking.
20035 link_static_flag=$lt_lt_prog_compiler_static
20036
20037 # Does compiler simultaneously support -c and -o options?
20038 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20039
20040 # Whether or not to add -lc for building shared libraries.
20041 build_libtool_need_lc=$archive_cmds_need_lc
20042
20043 # Whether or not to disallow shared libs when runtime libs are static.
20044 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20045
20046 # Compiler flag to allow reflexive dlopens.
20047 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20048
20049 # Compiler flag to generate shared objects directly from archives.
20050 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20051
20052 # Whether the compiler copes with passing no objects directly.
20053 compiler_needs_object=$lt_compiler_needs_object
20054
20055 # Create an old-style archive from a shared archive.
20056 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20057
20058 # Create a temporary old-style archive to link instead of a shared archive.
20059 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20060
20061 # Commands used to build a shared archive.
20062 archive_cmds=$lt_archive_cmds
20063 archive_expsym_cmds=$lt_archive_expsym_cmds
20064
20065 # Commands used to build a loadable module if different from building
20066 # a shared archive.
20067 module_cmds=$lt_module_cmds
20068 module_expsym_cmds=$lt_module_expsym_cmds
20069
20070 # Whether we are building with GNU ld or not.
20071 with_gnu_ld=$lt_with_gnu_ld
20072
20073 # Flag that allows shared libraries with undefined symbols to be built.
20074 allow_undefined_flag=$lt_allow_undefined_flag
20075
20076 # Flag that enforces no undefined symbols.
20077 no_undefined_flag=$lt_no_undefined_flag
20078
20079 # Flag to hardcode \$libdir into a binary during linking.
20080 # This must work even if \$libdir does not exist
20081 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20082
20083 # Whether we need a single "-rpath" flag with a separated argument.
20084 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20085
20086 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20087 # DIR into the resulting binary.
20088 hardcode_direct=$hardcode_direct
20089
20090 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20091 # DIR into the resulting binary and the resulting library dependency is
20092 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
20093 # library is relocated.
20094 hardcode_direct_absolute=$hardcode_direct_absolute
20095
20096 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20097 # into the resulting binary.
20098 hardcode_minus_L=$hardcode_minus_L
20099
20100 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20101 # into the resulting binary.
20102 hardcode_shlibpath_var=$hardcode_shlibpath_var
20103
20104 # Set to "yes" if building a shared library automatically hardcodes DIR
20105 # into the library and all subsequent libraries and executables linked
20106 # against it.
20107 hardcode_automatic=$hardcode_automatic
20108
20109 # Set to yes if linker adds runtime paths of dependent libraries
20110 # to runtime path list.
20111 inherit_rpath=$inherit_rpath
20112
20113 # Whether libtool must link a program against all its dependency libraries.
20114 link_all_deplibs=$link_all_deplibs
20115
20116 # Set to "yes" if exported symbols are required.
20117 always_export_symbols=$always_export_symbols
20118
20119 # The commands to list exported symbols.
20120 export_symbols_cmds=$lt_export_symbols_cmds
20121
20122 # Symbols that should not be listed in the preloaded symbols.
20123 exclude_expsyms=$lt_exclude_expsyms
20124
20125 # Symbols that must always be exported.
20126 include_expsyms=$lt_include_expsyms
20127
20128 # Commands necessary for linking programs (against libraries) with templates.
20129 prelink_cmds=$lt_prelink_cmds
20130
20131 # Commands necessary for finishing linking programs.
20132 postlink_cmds=$lt_postlink_cmds
20133
20134 # Specify filename containing input files.
20135 file_list_spec=$lt_file_list_spec
20136
20137 # How to hardcode a shared library path into an executable.
20138 hardcode_action=$hardcode_action
20139
20140 # The directories searched by this compiler when creating a shared library.
20141 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20142
20143 # Dependencies to place before and after the objects being linked to
20144 # create a shared library.
20145 predep_objects=$lt_predep_objects
20146 postdep_objects=$lt_postdep_objects
20147 predeps=$lt_predeps
20148 postdeps=$lt_postdeps
20149
20150 # The library search path used internally by the compiler when linking
20151 # a shared library.
20152 compiler_lib_search_path=$lt_compiler_lib_search_path
20153
20154 # ### END LIBTOOL CONFIG
20155
20156 _LT_EOF
20157
20158 cat <<'_LT_EOF' >> "$cfgfile"
20159
20160 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
20161
20162 # func_munge_path_list VARIABLE PATH
20163 # -----------------------------------
20164 # VARIABLE is name of variable containing _space_ separated list of
20165 # directories to be munged by the contents of PATH, which is string
20166 # having a format:
20167 # "DIR[:DIR]:"
20168 # string "DIR[ DIR]" will be prepended to VARIABLE
20169 # ":DIR[:DIR]"
20170 # string "DIR[ DIR]" will be appended to VARIABLE
20171 # "DIRP[:DIRP]::[DIRA:]DIRA"
20172 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
20173 # "DIRA[ DIRA]" will be appended to VARIABLE
20174 # "DIR[:DIR]"
20175 # VARIABLE will be replaced by "DIR[ DIR]"
20176 func_munge_path_list ()
20177 {
20178 case x$2 in
20179 x)
20180 ;;
20181 *:)
20182 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
20183 ;;
20184 x:*)
20185 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
20186 ;;
20187 *::*)
20188 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
20189 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
20190 ;;
20191 *)
20192 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
20193 ;;
20194 esac
20195 }
20196
20197
20198 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
20199 func_cc_basename ()
20200 {
20201 for cc_temp in $*""; do
20202 case $cc_temp in
20203 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20204 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20205 \-*) ;;
20206 *) break;;
20207 esac
20208 done
20209 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20210 }
20211
20212
20213 # ### END FUNCTIONS SHARED WITH CONFIGURE
20214
20215 _LT_EOF
20216
20217 case $host_os in
20218 aix3*)
20219 cat <<\_LT_EOF >> "$cfgfile"
20220 # AIX sometimes has problems with the GCC collect2 program. For some
20221 # reason, if we set the COLLECT_NAMES environment variable, the problems
20222 # vanish in a puff of smoke.
20223 if test set != "${COLLECT_NAMES+set}"; then
20224 COLLECT_NAMES=
20225 export COLLECT_NAMES
20226 fi
20227 _LT_EOF
20228 ;;
20229 esac
20230
20231
20232 ltmain=$ac_aux_dir/ltmain.sh
20233
20234
20235 # We use sed instead of cat because bash on DJGPP gets confused if
20236 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20237 # text mode, it properly converts lines to CR/LF. This bash problem
20238 # is reportedly fixed, but why not run on old versions too?
20239 sed '$q' "$ltmain" >> "$cfgfile" \
20240 || (rm -f "$cfgfile"; exit 1)
20241
20242 mv -f "$cfgfile" "$ofile" ||
20243 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20244 chmod +x "$ofile"
20245
20246
20247 cat <<_LT_EOF >> "$ofile"
20248
20249 # ### BEGIN LIBTOOL TAG CONFIG: CXX
20250
20251 # The linker used to build libraries.
20252 LD=$lt_LD_CXX
20253
20254 # How to create reloadable object files.
20255 reload_flag=$lt_reload_flag_CXX
20256 reload_cmds=$lt_reload_cmds_CXX
20257
20258 # Commands used to build an old-style archive.
20259 old_archive_cmds=$lt_old_archive_cmds_CXX
20260
20261 # A language specific compiler.
20262 CC=$lt_compiler_CXX
20263
20264 # Is the compiler the GNU compiler?
20265 with_gcc=$GCC_CXX
20266
20267 # Compiler flag to turn off builtin functions.
20268 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20269
20270 # Additional compiler flags for building library objects.
20271 pic_flag=$lt_lt_prog_compiler_pic_CXX
20272
20273 # How to pass a linker flag through the compiler.
20274 wl=$lt_lt_prog_compiler_wl_CXX
20275
20276 # Compiler flag to prevent dynamic linking.
20277 link_static_flag=$lt_lt_prog_compiler_static_CXX
20278
20279 # Does compiler simultaneously support -c and -o options?
20280 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20281
20282 # Whether or not to add -lc for building shared libraries.
20283 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20284
20285 # Whether or not to disallow shared libs when runtime libs are static.
20286 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20287
20288 # Compiler flag to allow reflexive dlopens.
20289 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20290
20291 # Compiler flag to generate shared objects directly from archives.
20292 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20293
20294 # Whether the compiler copes with passing no objects directly.
20295 compiler_needs_object=$lt_compiler_needs_object_CXX
20296
20297 # Create an old-style archive from a shared archive.
20298 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20299
20300 # Create a temporary old-style archive to link instead of a shared archive.
20301 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20302
20303 # Commands used to build a shared archive.
20304 archive_cmds=$lt_archive_cmds_CXX
20305 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20306
20307 # Commands used to build a loadable module if different from building
20308 # a shared archive.
20309 module_cmds=$lt_module_cmds_CXX
20310 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20311
20312 # Whether we are building with GNU ld or not.
20313 with_gnu_ld=$lt_with_gnu_ld_CXX
20314
20315 # Flag that allows shared libraries with undefined symbols to be built.
20316 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20317
20318 # Flag that enforces no undefined symbols.
20319 no_undefined_flag=$lt_no_undefined_flag_CXX
20320
20321 # Flag to hardcode \$libdir into a binary during linking.
20322 # This must work even if \$libdir does not exist
20323 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20324
20325 # Whether we need a single "-rpath" flag with a separated argument.
20326 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20327
20328 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20329 # DIR into the resulting binary.
20330 hardcode_direct=$hardcode_direct_CXX
20331
20332 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20333 # DIR into the resulting binary and the resulting library dependency is
20334 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
20335 # library is relocated.
20336 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20337
20338 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20339 # into the resulting binary.
20340 hardcode_minus_L=$hardcode_minus_L_CXX
20341
20342 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20343 # into the resulting binary.
20344 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20345
20346 # Set to "yes" if building a shared library automatically hardcodes DIR
20347 # into the library and all subsequent libraries and executables linked
20348 # against it.
20349 hardcode_automatic=$hardcode_automatic_CXX
20350
20351 # Set to yes if linker adds runtime paths of dependent libraries
20352 # to runtime path list.
20353 inherit_rpath=$inherit_rpath_CXX
20354
20355 # Whether libtool must link a program against all its dependency libraries.
20356 link_all_deplibs=$link_all_deplibs_CXX
20357
20358 # Set to "yes" if exported symbols are required.
20359 always_export_symbols=$always_export_symbols_CXX
20360
20361 # The commands to list exported symbols.
20362 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20363
20364 # Symbols that should not be listed in the preloaded symbols.
20365 exclude_expsyms=$lt_exclude_expsyms_CXX
20366
20367 # Symbols that must always be exported.
20368 include_expsyms=$lt_include_expsyms_CXX
20369
20370 # Commands necessary for linking programs (against libraries) with templates.
20371 prelink_cmds=$lt_prelink_cmds_CXX
20372
20373 # Commands necessary for finishing linking programs.
20374 postlink_cmds=$lt_postlink_cmds_CXX
20375
20376 # Specify filename containing input files.
20377 file_list_spec=$lt_file_list_spec_CXX
20378
20379 # How to hardcode a shared library path into an executable.
20380 hardcode_action=$hardcode_action_CXX
20381
20382 # The directories searched by this compiler when creating a shared library.
20383 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20384
20385 # Dependencies to place before and after the objects being linked to
20386 # create a shared library.
20387 predep_objects=$lt_predep_objects_CXX
20388 postdep_objects=$lt_postdep_objects_CXX
20389 predeps=$lt_predeps_CXX
20390 postdeps=$lt_postdeps_CXX
20391
20392 # The library search path used internally by the compiler when linking
20393 # a shared library.
20394 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20395
20396 # ### END LIBTOOL TAG CONFIG: CXX
20397 _LT_EOF
20398
20399 ;;
20400
20401 esac
20402 done # for ac_tag
20403
20404
20405 as_fn_exit 0
20406 _ACEOF
20407 ac_clean_files=$ac_clean_files_save
20408
20409 test $ac_write_fail = 0 ||
20410 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20411
20412
20413 # configure is writing to config.log, and then calls config.status.
20414 # config.status does its own redirection, appending to config.log.
20415 # Unfortunately, on DOS this fails, as config.log is still kept open
20416 # by configure, so config.status won't be able to write to it; its
20417 # output is simply discarded. So we exec the FD to /dev/null,
20418 # effectively closing config.log, so it can be properly (re)opened and
20419 # appended to by config.status. When coming back to configure, we
20420 # need to make the FD available again.
20421 if test "$no_create" != yes; then
20422 ac_cs_success=:
20423 ac_config_status_args=
20424 test "$silent" = yes &&
20425 ac_config_status_args="$ac_config_status_args --quiet"
20426 exec 5>/dev/null
20427 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20428 exec 5>>config.log
20429 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20430 # would make configure fail if this is the last instruction.
20431 $ac_cs_success || as_fn_exit 1
20432 fi
20433 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20435 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20436 fi
20437
20438
20439 if test "x$have_inotify" = xno; then
20440 echo ""
20441 echo "NOTE: "
20442 echo "======"
20443 echo ""
20444 echo "Inotify header files not found. While this library might work" \
20445 "without them, user experience is degraded as settings won't be" \
20446 "applied instantly. We strongly suggest installing the inotify" \
20447 "header files."
20448 fi