Debian Codegraph @

configure

raw symbols SCIP
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for qqwing 1.3.4.
4 #
5 # Report bugs to <http://qqwing.com/>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell [email protected] and http://qqwing.com/
278 $0: about your system, including any error possibly output
279 $0: before this message. Then install a modern shell, or
280 $0: manually run the script under such a shell if you do
281 $0: 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='qqwing'
592 PACKAGE_TARNAME='qqwing'
593 PACKAGE_VERSION='1.3.4'
594 PACKAGE_STRING='qqwing 1.3.4'
595 PACKAGE_BUGREPORT='http://qqwing.com/'
596 PACKAGE_URL=''
597
598 ac_unique_file="config.h.in"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 # include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 # include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 LIBOBJS
639 CXXCPP
640 CPP
641 OTOOL64
642 OTOOL
643 LIPO
644 NMEDIT
645 DSYMUTIL
646 MANIFEST_TOOL
647 RANLIB
648 ac_ct_AR
649 AR
650 DLLTOOL
651 OBJDUMP
652 LN_S
653 NM
654 ac_ct_DUMPBIN
655 DUMPBIN
656 LD
657 FGREP
658 EGREP
659 GREP
660 SED
661 host_os
662 host_vendor
663 host_cpu
664 host
665 build_os
666 build_vendor
667 build_cpu
668 build
669 LIBTOOL
670 am__fastdepCC_FALSE
671 am__fastdepCC_TRUE
672 CCDEPMODE
673 ac_ct_CC
674 CFLAGS
675 CC
676 am__fastdepCXX_FALSE
677 am__fastdepCXX_TRUE
678 CXXDEPMODE
679 am__nodep
680 AMDEPBACKSLASH
681 AMDEP_FALSE
682 AMDEP_TRUE
683 am__quote
684 am__include
685 DEPDIR
686 OBJEXT
687 EXEEXT
688 ac_ct_CXX
689 CPPFLAGS
690 LDFLAGS
691 CXXFLAGS
692 CXX
693 AM_BACKSLASH
694 AM_DEFAULT_VERBOSITY
695 AM_DEFAULT_V
696 AM_V
697 am__untar
698 am__tar
699 AMTAR
700 am__leading_dot
701 SET_MAKE
702 AWK
703 mkdir_p
704 MKDIR_P
705 INSTALL_STRIP_PROGRAM
706 STRIP
707 install_sh
708 MAKEINFO
709 AUTOHEADER
710 AUTOMAKE
711 AUTOCONF
712 ACLOCAL
713 VERSION
714 PACKAGE
715 CYGPATH_W
716 am__isrc
717 INSTALL_DATA
718 INSTALL_SCRIPT
719 INSTALL_PROGRAM
720 QQWING_AGE
721 QQWING_REVISION
722 QQWING_CURRENT
723 target_alias
724 host_alias
725 build_alias
726 LIBS
727 ECHO_T
728 ECHO_N
729 ECHO_C
730 DEFS
731 mandir
732 localedir
733 libdir
734 psdir
735 pdfdir
736 dvidir
737 htmldir
738 infodir
739 docdir
740 oldincludedir
741 includedir
742 localstatedir
743 sharedstatedir
744 sysconfdir
745 datadir
746 datarootdir
747 libexecdir
748 sbindir
749 bindir
750 program_transform_name
751 prefix
752 exec_prefix
753 PACKAGE_URL
754 PACKAGE_BUGREPORT
755 PACKAGE_STRING
756 PACKAGE_VERSION
757 PACKAGE_TARNAME
758 PACKAGE_NAME
759 PATH_SEPARATOR
760 SHELL'
761 ac_subst_files=''
762 ac_user_opts='
763 enable_option_checking
764 enable_silent_rules
765 enable_dependency_tracking
766 enable_static
767 enable_shared
768 with_pic
769 enable_fast_install
770 with_gnu_ld
771 with_sysroot
772 enable_libtool_lock
773 '
774 ac_precious_vars='build_alias
775 host_alias
776 target_alias
777 CXX
778 CXXFLAGS
779 LDFLAGS
780 LIBS
781 CPPFLAGS
782 CCC
783 CC
784 CFLAGS
785 CPP
786 CXXCPP'
787
788
789 # Initialize some variables set by options.
790 ac_init_help=
791 ac_init_version=false
792 ac_unrecognized_opts=
793 ac_unrecognized_sep=
794 # The variables have the same names as the options, with
795 # dashes changed to underlines.
796 cache_file=/dev/null
797 exec_prefix=NONE
798 no_create=
799 no_recursion=
800 prefix=NONE
801 program_prefix=NONE
802 program_suffix=NONE
803 program_transform_name=s,x,x,
804 silent=
805 site=
806 srcdir=
807 verbose=
808 x_includes=NONE
809 x_libraries=NONE
810
811 # Installation directory options.
812 # These are left unexpanded so users can "make install exec_prefix=/foo"
813 # and all the variables that are supposed to be based on exec_prefix
814 # by default will actually change.
815 # Use braces instead of parens because sh, perl, etc. also accept them.
816 # (The list follows the same order as the GNU Coding Standards.)
817 bindir='${exec_prefix}/bin'
818 sbindir='${exec_prefix}/sbin'
819 libexecdir='${exec_prefix}/libexec'
820 datarootdir='${prefix}/share'
821 datadir='${datarootdir}'
822 sysconfdir='${prefix}/etc'
823 sharedstatedir='${prefix}/com'
824 localstatedir='${prefix}/var'
825 includedir='${prefix}/include'
826 oldincludedir='/usr/include'
827 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
828 infodir='${datarootdir}/info'
829 htmldir='${docdir}'
830 dvidir='${docdir}'
831 pdfdir='${docdir}'
832 psdir='${docdir}'
833 libdir='${exec_prefix}/lib'
834 localedir='${datarootdir}/locale'
835 mandir='${datarootdir}/man'
836
837 ac_prev=
838 ac_dashdash=
839 for ac_option
840 do
841 # If the previous option needs an argument, assign it.
842 if test -n "$ac_prev"; then
843 eval $ac_prev=\$ac_option
844 ac_prev=
845 continue
846 fi
847
848 case $ac_option in
849 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
850 *=) ac_optarg= ;;
851 *) ac_optarg=yes ;;
852 esac
853
854 # Accept the important Cygnus configure options, so we can diagnose typos.
855
856 case $ac_dashdash$ac_option in
857 --)
858 ac_dashdash=yes ;;
859
860 -bindir | --bindir | --bindi | --bind | --bin | --bi)
861 ac_prev=bindir ;;
862 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
863 bindir=$ac_optarg ;;
864
865 -build | --build | --buil | --bui | --bu)
866 ac_prev=build_alias ;;
867 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
868 build_alias=$ac_optarg ;;
869
870 -cache-file | --cache-file | --cache-fil | --cache-fi \
871 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
872 ac_prev=cache_file ;;
873 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
874 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
875 cache_file=$ac_optarg ;;
876
877 --config-cache | -C)
878 cache_file=config.cache ;;
879
880 -datadir | --datadir | --datadi | --datad)
881 ac_prev=datadir ;;
882 -datadir=* | --datadir=* | --datadi=* | --datad=*)
883 datadir=$ac_optarg ;;
884
885 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
886 | --dataroo | --dataro | --datar)
887 ac_prev=datarootdir ;;
888 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
889 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
890 datarootdir=$ac_optarg ;;
891
892 -disable-* | --disable-*)
893 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
894 # Reject names that are not valid shell variable names.
895 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
896 as_fn_error $? "invalid feature name: $ac_useropt"
897 ac_useropt_orig=$ac_useropt
898 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
899 case $ac_user_opts in
900 *"
901 "enable_$ac_useropt"
902 "*) ;;
903 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
904 ac_unrecognized_sep=', ';;
905 esac
906 eval enable_$ac_useropt=no ;;
907
908 -docdir | --docdir | --docdi | --doc | --do)
909 ac_prev=docdir ;;
910 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
911 docdir=$ac_optarg ;;
912
913 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
914 ac_prev=dvidir ;;
915 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
916 dvidir=$ac_optarg ;;
917
918 -enable-* | --enable-*)
919 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
920 # Reject names that are not valid shell variable names.
921 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
922 as_fn_error $? "invalid feature name: $ac_useropt"
923 ac_useropt_orig=$ac_useropt
924 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
925 case $ac_user_opts in
926 *"
927 "enable_$ac_useropt"
928 "*) ;;
929 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
930 ac_unrecognized_sep=', ';;
931 esac
932 eval enable_$ac_useropt=\$ac_optarg ;;
933
934 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
935 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
936 | --exec | --exe | --ex)
937 ac_prev=exec_prefix ;;
938 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
939 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
940 | --exec=* | --exe=* | --ex=*)
941 exec_prefix=$ac_optarg ;;
942
943 -gas | --gas | --ga | --g)
944 # Obsolete; use --with-gas.
945 with_gas=yes ;;
946
947 -help | --help | --hel | --he | -h)
948 ac_init_help=long ;;
949 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
950 ac_init_help=recursive ;;
951 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
952 ac_init_help=short ;;
953
954 -host | --host | --hos | --ho)
955 ac_prev=host_alias ;;
956 -host=* | --host=* | --hos=* | --ho=*)
957 host_alias=$ac_optarg ;;
958
959 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
960 ac_prev=htmldir ;;
961 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
962 | --ht=*)
963 htmldir=$ac_optarg ;;
964
965 -includedir | --includedir | --includedi | --included | --include \
966 | --includ | --inclu | --incl | --inc)
967 ac_prev=includedir ;;
968 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
969 | --includ=* | --inclu=* | --incl=* | --inc=*)
970 includedir=$ac_optarg ;;
971
972 -infodir | --infodir | --infodi | --infod | --info | --inf)
973 ac_prev=infodir ;;
974 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
975 infodir=$ac_optarg ;;
976
977 -libdir | --libdir | --libdi | --libd)
978 ac_prev=libdir ;;
979 -libdir=* | --libdir=* | --libdi=* | --libd=*)
980 libdir=$ac_optarg ;;
981
982 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
983 | --libexe | --libex | --libe)
984 ac_prev=libexecdir ;;
985 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
986 | --libexe=* | --libex=* | --libe=*)
987 libexecdir=$ac_optarg ;;
988
989 -localedir | --localedir | --localedi | --localed | --locale)
990 ac_prev=localedir ;;
991 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
992 localedir=$ac_optarg ;;
993
994 -localstatedir | --localstatedir | --localstatedi | --localstated \
995 | --localstate | --localstat | --localsta | --localst | --locals)
996 ac_prev=localstatedir ;;
997 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
998 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
999 localstatedir=$ac_optarg ;;
1000
1001 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1002 ac_prev=mandir ;;
1003 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1004 mandir=$ac_optarg ;;
1005
1006 -nfp | --nfp | --nf)
1007 # Obsolete; use --without-fp.
1008 with_fp=no ;;
1009
1010 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1011 | --no-cr | --no-c | -n)
1012 no_create=yes ;;
1013
1014 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1015 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1016 no_recursion=yes ;;
1017
1018 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1019 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1020 | --oldin | --oldi | --old | --ol | --o)
1021 ac_prev=oldincludedir ;;
1022 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1023 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1024 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1025 oldincludedir=$ac_optarg ;;
1026
1027 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1028 ac_prev=prefix ;;
1029 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1030 prefix=$ac_optarg ;;
1031
1032 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1033 | --program-pre | --program-pr | --program-p)
1034 ac_prev=program_prefix ;;
1035 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1036 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1037 program_prefix=$ac_optarg ;;
1038
1039 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1040 | --program-suf | --program-su | --program-s)
1041 ac_prev=program_suffix ;;
1042 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1043 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1044 program_suffix=$ac_optarg ;;
1045
1046 -program-transform-name | --program-transform-name \
1047 | --program-transform-nam | --program-transform-na \
1048 | --program-transform-n | --program-transform- \
1049 | --program-transform | --program-transfor \
1050 | --program-transfo | --program-transf \
1051 | --program-trans | --program-tran \
1052 | --progr-tra | --program-tr | --program-t)
1053 ac_prev=program_transform_name ;;
1054 -program-transform-name=* | --program-transform-name=* \
1055 | --program-transform-nam=* | --program-transform-na=* \
1056 | --program-transform-n=* | --program-transform-=* \
1057 | --program-transform=* | --program-transfor=* \
1058 | --program-transfo=* | --program-transf=* \
1059 | --program-trans=* | --program-tran=* \
1060 | --progr-tra=* | --program-tr=* | --program-t=*)
1061 program_transform_name=$ac_optarg ;;
1062
1063 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1064 ac_prev=pdfdir ;;
1065 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1066 pdfdir=$ac_optarg ;;
1067
1068 -psdir | --psdir | --psdi | --psd | --ps)
1069 ac_prev=psdir ;;
1070 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1071 psdir=$ac_optarg ;;
1072
1073 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1074 | -silent | --silent | --silen | --sile | --sil)
1075 silent=yes ;;
1076
1077 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1078 ac_prev=sbindir ;;
1079 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1080 | --sbi=* | --sb=*)
1081 sbindir=$ac_optarg ;;
1082
1083 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1084 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1085 | --sharedst | --shareds | --shared | --share | --shar \
1086 | --sha | --sh)
1087 ac_prev=sharedstatedir ;;
1088 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1089 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1090 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1091 | --sha=* | --sh=*)
1092 sharedstatedir=$ac_optarg ;;
1093
1094 -site | --site | --sit)
1095 ac_prev=site ;;
1096 -site=* | --site=* | --sit=*)
1097 site=$ac_optarg ;;
1098
1099 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1100 ac_prev=srcdir ;;
1101 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1102 srcdir=$ac_optarg ;;
1103
1104 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1105 | --syscon | --sysco | --sysc | --sys | --sy)
1106 ac_prev=sysconfdir ;;
1107 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1108 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1109 sysconfdir=$ac_optarg ;;
1110
1111 -target | --target | --targe | --targ | --tar | --ta | --t)
1112 ac_prev=target_alias ;;
1113 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1114 target_alias=$ac_optarg ;;
1115
1116 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1117 verbose=yes ;;
1118
1119 -version | --version | --versio | --versi | --vers | -V)
1120 ac_init_version=: ;;
1121
1122 -with-* | --with-*)
1123 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1124 # Reject names that are not valid shell variable names.
1125 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1126 as_fn_error $? "invalid package name: $ac_useropt"
1127 ac_useropt_orig=$ac_useropt
1128 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1129 case $ac_user_opts in
1130 *"
1131 "with_$ac_useropt"
1132 "*) ;;
1133 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1134 ac_unrecognized_sep=', ';;
1135 esac
1136 eval with_$ac_useropt=\$ac_optarg ;;
1137
1138 -without-* | --without-*)
1139 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1140 # Reject names that are not valid shell variable names.
1141 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1142 as_fn_error $? "invalid package name: $ac_useropt"
1143 ac_useropt_orig=$ac_useropt
1144 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1145 case $ac_user_opts in
1146 *"
1147 "with_$ac_useropt"
1148 "*) ;;
1149 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1150 ac_unrecognized_sep=', ';;
1151 esac
1152 eval with_$ac_useropt=no ;;
1153
1154 --x)
1155 # Obsolete; use --with-x.
1156 with_x=yes ;;
1157
1158 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1159 | --x-incl | --x-inc | --x-in | --x-i)
1160 ac_prev=x_includes ;;
1161 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1162 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1163 x_includes=$ac_optarg ;;
1164
1165 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1166 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1167 ac_prev=x_libraries ;;
1168 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1169 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1170 x_libraries=$ac_optarg ;;
1171
1172 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1173 Try \`$0 --help' for more information"
1174 ;;
1175
1176 *=*)
1177 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1178 # Reject names that are not valid shell variable names.
1179 case $ac_envvar in #(
1180 '' | [0-9]* | *[!_$as_cr_alnum]* )
1181 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1182 esac
1183 eval $ac_envvar=\$ac_optarg
1184 export $ac_envvar ;;
1185
1186 *)
1187 # FIXME: should be removed in autoconf 3.0.
1188 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1189 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1190 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1191 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1192 ;;
1193
1194 esac
1195 done
1196
1197 if test -n "$ac_prev"; then
1198 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1199 as_fn_error $? "missing argument to $ac_option"
1200 fi
1201
1202 if test -n "$ac_unrecognized_opts"; then
1203 case $enable_option_checking in
1204 no) ;;
1205 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1206 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1207 esac
1208 fi
1209
1210 # Check all directory arguments for consistency.
1211 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1212 datadir sysconfdir sharedstatedir localstatedir includedir \
1213 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1214 libdir localedir mandir
1215 do
1216 eval ac_val=\$$ac_var
1217 # Remove trailing slashes.
1218 case $ac_val in
1219 */ )
1220 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1221 eval $ac_var=\$ac_val;;
1222 esac
1223 # Be sure to have absolute directory names.
1224 case $ac_val in
1225 [\\/$]* | ?:[\\/]* ) continue;;
1226 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1227 esac
1228 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1229 done
1230
1231 # There might be people who depend on the old broken behavior: `$host'
1232 # used to hold the argument of --host etc.
1233 # FIXME: To remove some day.
1234 build=$build_alias
1235 host=$host_alias
1236 target=$target_alias
1237
1238 # FIXME: To remove some day.
1239 if test "x$host_alias" != x; then
1240 if test "x$build_alias" = x; then
1241 cross_compiling=maybe
1242 elif test "x$build_alias" != "x$host_alias"; then
1243 cross_compiling=yes
1244 fi
1245 fi
1246
1247 ac_tool_prefix=
1248 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1249
1250 test "$silent" = yes && exec 6>/dev/null
1251
1252
1253 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1254 ac_ls_di=`ls -di .` &&
1255 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1256 as_fn_error $? "working directory cannot be determined"
1257 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1258 as_fn_error $? "pwd does not report name of working directory"
1259
1260
1261 # Find the source files, if location was not specified.
1262 if test -z "$srcdir"; then
1263 ac_srcdir_defaulted=yes
1264 # Try the directory containing this script, then the parent directory.
1265 ac_confdir=`$as_dirname -- "$as_myself" ||
1266 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1267 X"$as_myself" : 'X\(//\)[^/]' \| \
1268 X"$as_myself" : 'X\(//\)$' \| \
1269 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1270 $as_echo X"$as_myself" |
1271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1272 s//\1/
1273 q
1274 }
1275 /^X\(\/\/\)[^/].*/{
1276 s//\1/
1277 q
1278 }
1279 /^X\(\/\/\)$/{
1280 s//\1/
1281 q
1282 }
1283 /^X\(\/\).*/{
1284 s//\1/
1285 q
1286 }
1287 s/.*/./; q'`
1288 srcdir=$ac_confdir
1289 if test ! -r "$srcdir/$ac_unique_file"; then
1290 srcdir=..
1291 fi
1292 else
1293 ac_srcdir_defaulted=no
1294 fi
1295 if test ! -r "$srcdir/$ac_unique_file"; then
1296 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1297 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1298 fi
1299 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1300 ac_abs_confdir=`(
1301 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1302 pwd)`
1303 # When building in place, set srcdir=.
1304 if test "$ac_abs_confdir" = "$ac_pwd"; then
1305 srcdir=.
1306 fi
1307 # Remove unnecessary trailing slashes from srcdir.
1308 # Double slashes in file names in object file debugging info
1309 # mess up M-x gdb in Emacs.
1310 case $srcdir in
1311 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1312 esac
1313 for ac_var in $ac_precious_vars; do
1314 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1315 eval ac_env_${ac_var}_value=\$${ac_var}
1316 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1317 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1318 done
1319
1320 #
1321 # Report the --help message.
1322 #
1323 if test "$ac_init_help" = "long"; then
1324 # Omit some internal or obsolete options to make the list less imposing.
1325 # This message is too long to be a string in the A/UX 3.1 sh.
1326 cat <<_ACEOF
1327 \`configure' configures qqwing 1.3.4 to adapt to many kinds of systems.
1328
1329 Usage: $0 [OPTION]... [VAR=VALUE]...
1330
1331 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1332 VAR=VALUE. See below for descriptions of some of the useful variables.
1333
1334 Defaults for the options are specified in brackets.
1335
1336 Configuration:
1337 -h, --help display this help and exit
1338 --help=short display options specific to this package
1339 --help=recursive display the short help of all the included packages
1340 -V, --version display version information and exit
1341 -q, --quiet, --silent do not print \`checking ...' messages
1342 --cache-file=FILE cache test results in FILE [disabled]
1343 -C, --config-cache alias for \`--cache-file=config.cache'
1344 -n, --no-create do not create output files
1345 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1346
1347 Installation directories:
1348 --prefix=PREFIX install architecture-independent files in PREFIX
1349 [$ac_default_prefix]
1350 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1351 [PREFIX]
1352
1353 By default, \`make install' will install all the files in
1354 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1355 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1356 for instance \`--prefix=\$HOME'.
1357
1358 For better control, use the options below.
1359
1360 Fine tuning of the installation directories:
1361 --bindir=DIR user executables [EPREFIX/bin]
1362 --sbindir=DIR system admin executables [EPREFIX/sbin]
1363 --libexecdir=DIR program executables [EPREFIX/libexec]
1364 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1365 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1366 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1367 --libdir=DIR object code libraries [EPREFIX/lib]
1368 --includedir=DIR C header files [PREFIX/include]
1369 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1370 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1371 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1372 --infodir=DIR info documentation [DATAROOTDIR/info]
1373 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1374 --mandir=DIR man documentation [DATAROOTDIR/man]
1375 --docdir=DIR documentation root [DATAROOTDIR/doc/qqwing]
1376 --htmldir=DIR html documentation [DOCDIR]
1377 --dvidir=DIR dvi documentation [DOCDIR]
1378 --pdfdir=DIR pdf documentation [DOCDIR]
1379 --psdir=DIR ps documentation [DOCDIR]
1380 _ACEOF
1381
1382 cat <<\_ACEOF
1383
1384 Program names:
1385 --program-prefix=PREFIX prepend PREFIX to installed program names
1386 --program-suffix=SUFFIX append SUFFIX to installed program names
1387 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1388
1389 System types:
1390 --build=BUILD configure for building on BUILD [guessed]
1391 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1392 _ACEOF
1393 fi
1394
1395 if test -n "$ac_init_help"; then
1396 case $ac_init_help in
1397 short | recursive ) echo "Configuration of qqwing 1.3.4:";;
1398 esac
1399 cat <<\_ACEOF
1400
1401 Optional Features:
1402 --disable-option-checking ignore unrecognized --enable/--with options
1403 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1404 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1405 --enable-silent-rules less verbose build output (undo: "make V=1")
1406 --disable-silent-rules verbose build output (undo: "make V=0")
1407 --enable-dependency-tracking
1408 do not reject slow dependency extractors
1409 --disable-dependency-tracking
1410 speeds up one-time build
1411 --enable-static[=PKGS] build static libraries [default=no]
1412 --enable-shared[=PKGS] build shared libraries [default=yes]
1413 --enable-fast-install[=PKGS]
1414 optimize for fast installation [default=yes]
1415 --disable-libtool-lock avoid locking (might break parallel builds)
1416
1417 Optional Packages:
1418 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1419 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1420 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1421 both]
1422 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1423 --with-sysroot=DIR Search for dependent libraries within DIR
1424 (or the compiler's sysroot if not specified).
1425
1426 Some influential environment variables:
1427 CXX C++ compiler command
1428 CXXFLAGS C++ compiler flags
1429 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1430 nonstandard directory <lib dir>
1431 LIBS libraries to pass to the linker, e.g. -l<library>
1432 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1433 you have headers in a nonstandard directory <include dir>
1434 CC C compiler command
1435 CFLAGS C compiler flags
1436 CPP C preprocessor
1437 CXXCPP C++ preprocessor
1438
1439 Use these variables to override the choices made by `configure' or to help
1440 it to find libraries and programs with nonstandard names/locations.
1441
1442 Report bugs to <http://qqwing.com/>.
1443 _ACEOF
1444 ac_status=$?
1445 fi
1446
1447 if test "$ac_init_help" = "recursive"; then
1448 # If there are subdirs, report their specific --help.
1449 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1450 test -d "$ac_dir" ||
1451 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1452 continue
1453 ac_builddir=.
1454
1455 case "$ac_dir" in
1456 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1457 *)
1458 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1459 # A ".." for each directory in $ac_dir_suffix.
1460 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1461 case $ac_top_builddir_sub in
1462 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1463 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1464 esac ;;
1465 esac
1466 ac_abs_top_builddir=$ac_pwd
1467 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1468 # for backward compatibility:
1469 ac_top_builddir=$ac_top_build_prefix
1470
1471 case $srcdir in
1472 .) # We are building in place.
1473 ac_srcdir=.
1474 ac_top_srcdir=$ac_top_builddir_sub
1475 ac_abs_top_srcdir=$ac_pwd ;;
1476 [\\/]* | ?:[\\/]* ) # Absolute name.
1477 ac_srcdir=$srcdir$ac_dir_suffix;
1478 ac_top_srcdir=$srcdir
1479 ac_abs_top_srcdir=$srcdir ;;
1480 *) # Relative name.
1481 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1482 ac_top_srcdir=$ac_top_build_prefix$srcdir
1483 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1484 esac
1485 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1486
1487 cd "$ac_dir" || { ac_status=$?; continue; }
1488 # Check for guested configure.
1489 if test -f "$ac_srcdir/configure.gnu"; then
1490 echo &&
1491 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1492 elif test -f "$ac_srcdir/configure"; then
1493 echo &&
1494 $SHELL "$ac_srcdir/configure" --help=recursive
1495 else
1496 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1497 fi || ac_status=$?
1498 cd "$ac_pwd" || { ac_status=$?; break; }
1499 done
1500 fi
1501
1502 test -n "$ac_init_help" && exit $ac_status
1503 if $ac_init_version; then
1504 cat <<\_ACEOF
1505 qqwing configure 1.3.4
1506 generated by GNU Autoconf 2.69
1507
1508 Copyright (C) 2012 Free Software Foundation, Inc.
1509 This configure script is free software; the Free Software Foundation
1510 gives unlimited permission to copy, distribute and modify it.
1511 _ACEOF
1512 exit
1513 fi
1514
1515 ## ------------------------ ##
1516 ## Autoconf initialization. ##
1517 ## ------------------------ ##
1518
1519 # ac_fn_cxx_try_compile LINENO
1520 # ----------------------------
1521 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1522 ac_fn_cxx_try_compile ()
1523 {
1524 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1525 rm -f conftest.$ac_objext
1526 if { { ac_try="$ac_compile"
1527 case "(($ac_try" in
1528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1529 *) ac_try_echo=$ac_try;;
1530 esac
1531 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1532 $as_echo "$ac_try_echo"; } >&5
1533 (eval "$ac_compile") 2>conftest.err
1534 ac_status=$?
1535 if test -s conftest.err; then
1536 grep -v '^ *+' conftest.err >conftest.er1
1537 cat conftest.er1 >&5
1538 mv -f conftest.er1 conftest.err
1539 fi
1540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1541 test $ac_status = 0; } && {
1542 test -z "$ac_cxx_werror_flag" ||
1543 test ! -s conftest.err
1544 } && test -s conftest.$ac_objext; then :
1545 ac_retval=0
1546 else
1547 $as_echo "$as_me: failed program was:" >&5
1548 sed 's/^/| /' conftest.$ac_ext >&5
1549
1550 ac_retval=1
1551 fi
1552 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1553 as_fn_set_status $ac_retval
1554
1555 } # ac_fn_cxx_try_compile
1556
1557 # ac_fn_c_try_compile LINENO
1558 # --------------------------
1559 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1560 ac_fn_c_try_compile ()
1561 {
1562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1563 rm -f conftest.$ac_objext
1564 if { { ac_try="$ac_compile"
1565 case "(($ac_try" in
1566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1567 *) ac_try_echo=$ac_try;;
1568 esac
1569 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1570 $as_echo "$ac_try_echo"; } >&5
1571 (eval "$ac_compile") 2>conftest.err
1572 ac_status=$?
1573 if test -s conftest.err; then
1574 grep -v '^ *+' conftest.err >conftest.er1
1575 cat conftest.er1 >&5
1576 mv -f conftest.er1 conftest.err
1577 fi
1578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1579 test $ac_status = 0; } && {
1580 test -z "$ac_c_werror_flag" ||
1581 test ! -s conftest.err
1582 } && test -s conftest.$ac_objext; then :
1583 ac_retval=0
1584 else
1585 $as_echo "$as_me: failed program was:" >&5
1586 sed 's/^/| /' conftest.$ac_ext >&5
1587
1588 ac_retval=1
1589 fi
1590 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1591 as_fn_set_status $ac_retval
1592
1593 } # ac_fn_c_try_compile
1594
1595 # ac_fn_c_try_link LINENO
1596 # -----------------------
1597 # Try to link conftest.$ac_ext, and return whether this succeeded.
1598 ac_fn_c_try_link ()
1599 {
1600 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1601 rm -f conftest.$ac_objext conftest$ac_exeext
1602 if { { ac_try="$ac_link"
1603 case "(($ac_try" in
1604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1605 *) ac_try_echo=$ac_try;;
1606 esac
1607 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1608 $as_echo "$ac_try_echo"; } >&5
1609 (eval "$ac_link") 2>conftest.err
1610 ac_status=$?
1611 if test -s conftest.err; then
1612 grep -v '^ *+' conftest.err >conftest.er1
1613 cat conftest.er1 >&5
1614 mv -f conftest.er1 conftest.err
1615 fi
1616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1617 test $ac_status = 0; } && {
1618 test -z "$ac_c_werror_flag" ||
1619 test ! -s conftest.err
1620 } && test -s conftest$ac_exeext && {
1621 test "$cross_compiling" = yes ||
1622 test -x conftest$ac_exeext
1623 }; then :
1624 ac_retval=0
1625 else
1626 $as_echo "$as_me: failed program was:" >&5
1627 sed 's/^/| /' conftest.$ac_ext >&5
1628
1629 ac_retval=1
1630 fi
1631 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1632 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1633 # interfere with the next link command; also delete a directory that is
1634 # left behind by Apple's compiler. We do this before executing the actions.
1635 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1636 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1637 as_fn_set_status $ac_retval
1638
1639 } # ac_fn_c_try_link
1640
1641 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1642 # -------------------------------------------------------
1643 # Tests whether HEADER exists and can be compiled using the include files in
1644 # INCLUDES, setting the cache variable VAR accordingly.
1645 ac_fn_c_check_header_compile ()
1646 {
1647 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1649 $as_echo_n "checking for $2... " >&6; }
1650 if eval \${$3+:} false; then :
1651 $as_echo_n "(cached) " >&6
1652 else
1653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1654 /* end confdefs.h. */
1655 $4
1656 #include <$2>
1657 _ACEOF
1658 if ac_fn_c_try_compile "$LINENO"; then :
1659 eval "$3=yes"
1660 else
1661 eval "$3=no"
1662 fi
1663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1664 fi
1665 eval ac_res=\$$3
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1667 $as_echo "$ac_res" >&6; }
1668 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1669
1670 } # ac_fn_c_check_header_compile
1671
1672 # ac_fn_c_try_cpp LINENO
1673 # ----------------------
1674 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1675 ac_fn_c_try_cpp ()
1676 {
1677 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1678 if { { ac_try="$ac_cpp conftest.$ac_ext"
1679 case "(($ac_try" in
1680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1681 *) ac_try_echo=$ac_try;;
1682 esac
1683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1684 $as_echo "$ac_try_echo"; } >&5
1685 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1686 ac_status=$?
1687 if test -s conftest.err; then
1688 grep -v '^ *+' conftest.err >conftest.er1
1689 cat conftest.er1 >&5
1690 mv -f conftest.er1 conftest.err
1691 fi
1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693 test $ac_status = 0; } > conftest.i && {
1694 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1695 test ! -s conftest.err
1696 }; then :
1697 ac_retval=0
1698 else
1699 $as_echo "$as_me: failed program was:" >&5
1700 sed 's/^/| /' conftest.$ac_ext >&5
1701
1702 ac_retval=1
1703 fi
1704 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1705 as_fn_set_status $ac_retval
1706
1707 } # ac_fn_c_try_cpp
1708
1709 # ac_fn_c_try_run LINENO
1710 # ----------------------
1711 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1712 # that executables *can* be run.
1713 ac_fn_c_try_run ()
1714 {
1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716 if { { ac_try="$ac_link"
1717 case "(($ac_try" in
1718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719 *) ac_try_echo=$ac_try;;
1720 esac
1721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722 $as_echo "$ac_try_echo"; } >&5
1723 (eval "$ac_link") 2>&5
1724 ac_status=$?
1725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1726 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1727 { { case "(($ac_try" in
1728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1729 *) ac_try_echo=$ac_try;;
1730 esac
1731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1732 $as_echo "$ac_try_echo"; } >&5
1733 (eval "$ac_try") 2>&5
1734 ac_status=$?
1735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736 test $ac_status = 0; }; }; then :
1737 ac_retval=0
1738 else
1739 $as_echo "$as_me: program exited with status $ac_status" >&5
1740 $as_echo "$as_me: failed program was:" >&5
1741 sed 's/^/| /' conftest.$ac_ext >&5
1742
1743 ac_retval=$ac_status
1744 fi
1745 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1746 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1747 as_fn_set_status $ac_retval
1748
1749 } # ac_fn_c_try_run
1750
1751 # ac_fn_c_check_func LINENO FUNC VAR
1752 # ----------------------------------
1753 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1754 ac_fn_c_check_func ()
1755 {
1756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1758 $as_echo_n "checking for $2... " >&6; }
1759 if eval \${$3+:} false; then :
1760 $as_echo_n "(cached) " >&6
1761 else
1762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1763 /* end confdefs.h. */
1764 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1765 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1766 #define $2 innocuous_$2
1767
1768 /* System header to define __stub macros and hopefully few prototypes,
1769 which can conflict with char $2 (); below.
1770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1771 <limits.h> exists even on freestanding compilers. */
1772
1773 #ifdef __STDC__
1774 # include <limits.h>
1775 #else
1776 # include <assert.h>
1777 #endif
1778
1779 #undef $2
1780
1781 /* Override any GCC internal prototype to avoid an error.
1782 Use char because int might match the return type of a GCC
1783 builtin and then its argument prototype would still apply. */
1784 #ifdef __cplusplus
1785 extern "C"
1786 #endif
1787 char $2 ();
1788 /* The GNU C library defines this for functions which it implements
1789 to always fail with ENOSYS. Some functions are actually named
1790 something starting with __ and the normal name is an alias. */
1791 #if defined __stub_$2 || defined __stub___$2
1792 choke me
1793 #endif
1794
1795 int
1796 main ()
1797 {
1798 return $2 ();
1799 ;
1800 return 0;
1801 }
1802 _ACEOF
1803 if ac_fn_c_try_link "$LINENO"; then :
1804 eval "$3=yes"
1805 else
1806 eval "$3=no"
1807 fi
1808 rm -f core conftest.err conftest.$ac_objext \
1809 conftest$ac_exeext conftest.$ac_ext
1810 fi
1811 eval ac_res=\$$3
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1813 $as_echo "$ac_res" >&6; }
1814 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1815
1816 } # ac_fn_c_check_func
1817
1818 # ac_fn_cxx_try_cpp LINENO
1819 # ------------------------
1820 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1821 ac_fn_cxx_try_cpp ()
1822 {
1823 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1824 if { { ac_try="$ac_cpp conftest.$ac_ext"
1825 case "(($ac_try" in
1826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1827 *) ac_try_echo=$ac_try;;
1828 esac
1829 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1830 $as_echo "$ac_try_echo"; } >&5
1831 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1832 ac_status=$?
1833 if test -s conftest.err; then
1834 grep -v '^ *+' conftest.err >conftest.er1
1835 cat conftest.er1 >&5
1836 mv -f conftest.er1 conftest.err
1837 fi
1838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1839 test $ac_status = 0; } > conftest.i && {
1840 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1841 test ! -s conftest.err
1842 }; then :
1843 ac_retval=0
1844 else
1845 $as_echo "$as_me: failed program was:" >&5
1846 sed 's/^/| /' conftest.$ac_ext >&5
1847
1848 ac_retval=1
1849 fi
1850 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1851 as_fn_set_status $ac_retval
1852
1853 } # ac_fn_cxx_try_cpp
1854
1855 # ac_fn_cxx_try_link LINENO
1856 # -------------------------
1857 # Try to link conftest.$ac_ext, and return whether this succeeded.
1858 ac_fn_cxx_try_link ()
1859 {
1860 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861 rm -f conftest.$ac_objext conftest$ac_exeext
1862 if { { ac_try="$ac_link"
1863 case "(($ac_try" in
1864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1865 *) ac_try_echo=$ac_try;;
1866 esac
1867 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1868 $as_echo "$ac_try_echo"; } >&5
1869 (eval "$ac_link") 2>conftest.err
1870 ac_status=$?
1871 if test -s conftest.err; then
1872 grep -v '^ *+' conftest.err >conftest.er1
1873 cat conftest.er1 >&5
1874 mv -f conftest.er1 conftest.err
1875 fi
1876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1877 test $ac_status = 0; } && {
1878 test -z "$ac_cxx_werror_flag" ||
1879 test ! -s conftest.err
1880 } && test -s conftest$ac_exeext && {
1881 test "$cross_compiling" = yes ||
1882 test -x conftest$ac_exeext
1883 }; then :
1884 ac_retval=0
1885 else
1886 $as_echo "$as_me: failed program was:" >&5
1887 sed 's/^/| /' conftest.$ac_ext >&5
1888
1889 ac_retval=1
1890 fi
1891 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1892 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1893 # interfere with the next link command; also delete a directory that is
1894 # left behind by Apple's compiler. We do this before executing the actions.
1895 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1896 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1897 as_fn_set_status $ac_retval
1898
1899 } # ac_fn_cxx_try_link
1900
1901 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1902 # -------------------------------------------------------
1903 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1904 # the include files in INCLUDES and setting the cache variable VAR
1905 # accordingly.
1906 ac_fn_c_check_header_mongrel ()
1907 {
1908 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1909 if eval \${$3+:} false; then :
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1911 $as_echo_n "checking for $2... " >&6; }
1912 if eval \${$3+:} false; then :
1913 $as_echo_n "(cached) " >&6
1914 fi
1915 eval ac_res=\$$3
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1917 $as_echo "$ac_res" >&6; }
1918 else
1919 # Is the header compilable?
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1921 $as_echo_n "checking $2 usability... " >&6; }
1922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1923 /* end confdefs.h. */
1924 $4
1925 #include <$2>
1926 _ACEOF
1927 if ac_fn_c_try_compile "$LINENO"; then :
1928 ac_header_compiler=yes
1929 else
1930 ac_header_compiler=no
1931 fi
1932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1934 $as_echo "$ac_header_compiler" >&6; }
1935
1936 # Is the header present?
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1938 $as_echo_n "checking $2 presence... " >&6; }
1939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1940 /* end confdefs.h. */
1941 #include <$2>
1942 _ACEOF
1943 if ac_fn_c_try_cpp "$LINENO"; then :
1944 ac_header_preproc=yes
1945 else
1946 ac_header_preproc=no
1947 fi
1948 rm -f conftest.err conftest.i conftest.$ac_ext
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1950 $as_echo "$ac_header_preproc" >&6; }
1951
1952 # So? What about this header?
1953 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1954 yes:no: )
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1956 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1958 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1959 ;;
1960 no:yes:* )
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1962 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1964 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1966 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1968 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1970 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1971 ( $as_echo "## --------------------------------- ##
1972 ## Report this to http://qqwing.com/ ##
1973 ## --------------------------------- ##"
1974 ) | sed "s/^/$as_me: WARNING: /" >&2
1975 ;;
1976 esac
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1978 $as_echo_n "checking for $2... " >&6; }
1979 if eval \${$3+:} false; then :
1980 $as_echo_n "(cached) " >&6
1981 else
1982 eval "$3=\$ac_header_compiler"
1983 fi
1984 eval ac_res=\$$3
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1986 $as_echo "$ac_res" >&6; }
1987 fi
1988 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1989
1990 } # ac_fn_c_check_header_mongrel
1991
1992 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1993 # -------------------------------------------
1994 # Tests whether TYPE exists after having included INCLUDES, setting cache
1995 # variable VAR accordingly.
1996 ac_fn_c_check_type ()
1997 {
1998 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2000 $as_echo_n "checking for $2... " >&6; }
2001 if eval \${$3+:} false; then :
2002 $as_echo_n "(cached) " >&6
2003 else
2004 eval "$3=no"
2005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2006 /* end confdefs.h. */
2007 $4
2008 int
2009 main ()
2010 {
2011 if (sizeof ($2))
2012 return 0;
2013 ;
2014 return 0;
2015 }
2016 _ACEOF
2017 if ac_fn_c_try_compile "$LINENO"; then :
2018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2019 /* end confdefs.h. */
2020 $4
2021 int
2022 main ()
2023 {
2024 if (sizeof (($2)))
2025 return 0;
2026 ;
2027 return 0;
2028 }
2029 _ACEOF
2030 if ac_fn_c_try_compile "$LINENO"; then :
2031
2032 else
2033 eval "$3=yes"
2034 fi
2035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2036 fi
2037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2038 fi
2039 eval ac_res=\$$3
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2041 $as_echo "$ac_res" >&6; }
2042 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2043
2044 } # ac_fn_c_check_type
2045 cat >config.log <<_ACEOF
2046 This file contains any messages produced by compilers while
2047 running configure, to aid debugging if configure makes a mistake.
2048
2049 It was created by qqwing $as_me 1.3.4, which was
2050 generated by GNU Autoconf 2.69. Invocation command line was
2051
2052 $ $0 $@
2053
2054 _ACEOF
2055 exec 5>>config.log
2056 {
2057 cat <<_ASUNAME
2058 ## --------- ##
2059 ## Platform. ##
2060 ## --------- ##
2061
2062 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2063 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2064 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2065 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2066 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2067
2068 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2069 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2070
2071 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2072 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2073 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2074 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2075 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2076 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2077 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2078
2079 _ASUNAME
2080
2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2082 for as_dir in $PATH
2083 do
2084 IFS=$as_save_IFS
2085 test -z "$as_dir" && as_dir=.
2086 $as_echo "PATH: $as_dir"
2087 done
2088 IFS=$as_save_IFS
2089
2090 } >&5
2091
2092 cat >&5 <<_ACEOF
2093
2094
2095 ## ----------- ##
2096 ## Core tests. ##
2097 ## ----------- ##
2098
2099 _ACEOF
2100
2101
2102 # Keep a trace of the command line.
2103 # Strip out --no-create and --no-recursion so they do not pile up.
2104 # Strip out --silent because we don't want to record it for future runs.
2105 # Also quote any args containing shell meta-characters.
2106 # Make two passes to allow for proper duplicate-argument suppression.
2107 ac_configure_args=
2108 ac_configure_args0=
2109 ac_configure_args1=
2110 ac_must_keep_next=false
2111 for ac_pass in 1 2
2112 do
2113 for ac_arg
2114 do
2115 case $ac_arg in
2116 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2117 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2118 | -silent | --silent | --silen | --sile | --sil)
2119 continue ;;
2120 *\'*)
2121 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2122 esac
2123 case $ac_pass in
2124 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2125 2)
2126 as_fn_append ac_configure_args1 " '$ac_arg'"
2127 if test $ac_must_keep_next = true; then
2128 ac_must_keep_next=false # Got value, back to normal.
2129 else
2130 case $ac_arg in
2131 *=* | --config-cache | -C | -disable-* | --disable-* \
2132 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2133 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2134 | -with-* | --with-* | -without-* | --without-* | --x)
2135 case "$ac_configure_args0 " in
2136 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2137 esac
2138 ;;
2139 -* ) ac_must_keep_next=true ;;
2140 esac
2141 fi
2142 as_fn_append ac_configure_args " '$ac_arg'"
2143 ;;
2144 esac
2145 done
2146 done
2147 { ac_configure_args0=; unset ac_configure_args0;}
2148 { ac_configure_args1=; unset ac_configure_args1;}
2149
2150 # When interrupted or exit'd, cleanup temporary files, and complete
2151 # config.log. We remove comments because anyway the quotes in there
2152 # would cause problems or look ugly.
2153 # WARNING: Use '\'' to represent an apostrophe within the trap.
2154 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2155 trap 'exit_status=$?
2156 # Save into config.log some information that might help in debugging.
2157 {
2158 echo
2159
2160 $as_echo "## ---------------- ##
2161 ## Cache variables. ##
2162 ## ---------------- ##"
2163 echo
2164 # The following way of writing the cache mishandles newlines in values,
2165 (
2166 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2167 eval ac_val=\$$ac_var
2168 case $ac_val in #(
2169 *${as_nl}*)
2170 case $ac_var in #(
2171 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2172 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2173 esac
2174 case $ac_var in #(
2175 _ | IFS | as_nl) ;; #(
2176 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2177 *) { eval $ac_var=; unset $ac_var;} ;;
2178 esac ;;
2179 esac
2180 done
2181 (set) 2>&1 |
2182 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2183 *${as_nl}ac_space=\ *)
2184 sed -n \
2185 "s/'\''/'\''\\\\'\'''\''/g;
2186 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2187 ;; #(
2188 *)
2189 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2190 ;;
2191 esac |
2192 sort
2193 )
2194 echo
2195
2196 $as_echo "## ----------------- ##
2197 ## Output variables. ##
2198 ## ----------------- ##"
2199 echo
2200 for ac_var in $ac_subst_vars
2201 do
2202 eval ac_val=\$$ac_var
2203 case $ac_val in
2204 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2205 esac
2206 $as_echo "$ac_var='\''$ac_val'\''"
2207 done | sort
2208 echo
2209
2210 if test -n "$ac_subst_files"; then
2211 $as_echo "## ------------------- ##
2212 ## File substitutions. ##
2213 ## ------------------- ##"
2214 echo
2215 for ac_var in $ac_subst_files
2216 do
2217 eval ac_val=\$$ac_var
2218 case $ac_val in
2219 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2220 esac
2221 $as_echo "$ac_var='\''$ac_val'\''"
2222 done | sort
2223 echo
2224 fi
2225
2226 if test -s confdefs.h; then
2227 $as_echo "## ----------- ##
2228 ## confdefs.h. ##
2229 ## ----------- ##"
2230 echo
2231 cat confdefs.h
2232 echo
2233 fi
2234 test "$ac_signal" != 0 &&
2235 $as_echo "$as_me: caught signal $ac_signal"
2236 $as_echo "$as_me: exit $exit_status"
2237 } >&5
2238 rm -f core *.core core.conftest.* &&
2239 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2240 exit $exit_status
2241 ' 0
2242 for ac_signal in 1 2 13 15; do
2243 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2244 done
2245 ac_signal=0
2246
2247 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2248 rm -f -r conftest* confdefs.h
2249
2250 $as_echo "/* confdefs.h */" > confdefs.h
2251
2252 # Predefined preprocessor variables.
2253
2254 cat >>confdefs.h <<_ACEOF
2255 #define PACKAGE_NAME "$PACKAGE_NAME"
2256 _ACEOF
2257
2258 cat >>confdefs.h <<_ACEOF
2259 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2260 _ACEOF
2261
2262 cat >>confdefs.h <<_ACEOF
2263 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2264 _ACEOF
2265
2266 cat >>confdefs.h <<_ACEOF
2267 #define PACKAGE_STRING "$PACKAGE_STRING"
2268 _ACEOF
2269
2270 cat >>confdefs.h <<_ACEOF
2271 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2272 _ACEOF
2273
2274 cat >>confdefs.h <<_ACEOF
2275 #define PACKAGE_URL "$PACKAGE_URL"
2276 _ACEOF
2277
2278
2279 # Let the site file select an alternate cache file if it wants to.
2280 # Prefer an explicitly selected file to automatically selected ones.
2281 ac_site_file1=NONE
2282 ac_site_file2=NONE
2283 if test -n "$CONFIG_SITE"; then
2284 # We do not want a PATH search for config.site.
2285 case $CONFIG_SITE in #((
2286 -*) ac_site_file1=./$CONFIG_SITE;;
2287 */*) ac_site_file1=$CONFIG_SITE;;
2288 *) ac_site_file1=./$CONFIG_SITE;;
2289 esac
2290 elif test "x$prefix" != xNONE; then
2291 ac_site_file1=$prefix/share/config.site
2292 ac_site_file2=$prefix/etc/config.site
2293 else
2294 ac_site_file1=$ac_default_prefix/share/config.site
2295 ac_site_file2=$ac_default_prefix/etc/config.site
2296 fi
2297 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2298 do
2299 test "x$ac_site_file" = xNONE && continue
2300 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2302 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2303 sed 's/^/| /' "$ac_site_file" >&5
2304 . "$ac_site_file" \
2305 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2306 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2307 as_fn_error $? "failed to load site script $ac_site_file
2308 See \`config.log' for more details" "$LINENO" 5; }
2309 fi
2310 done
2311
2312 if test -r "$cache_file"; then
2313 # Some versions of bash will fail to source /dev/null (special files
2314 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2315 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2317 $as_echo "$as_me: loading cache $cache_file" >&6;}
2318 case $cache_file in
2319 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2320 *) . "./$cache_file";;
2321 esac
2322 fi
2323 else
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2325 $as_echo "$as_me: creating cache $cache_file" >&6;}
2326 >$cache_file
2327 fi
2328
2329 # Check that the precious variables saved in the cache have kept the same
2330 # value.
2331 ac_cache_corrupted=false
2332 for ac_var in $ac_precious_vars; do
2333 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2334 eval ac_new_set=\$ac_env_${ac_var}_set
2335 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2336 eval ac_new_val=\$ac_env_${ac_var}_value
2337 case $ac_old_set,$ac_new_set in
2338 set,)
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2340 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2341 ac_cache_corrupted=: ;;
2342 ,set)
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2344 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2345 ac_cache_corrupted=: ;;
2346 ,);;
2347 *)
2348 if test "x$ac_old_val" != "x$ac_new_val"; then
2349 # differences in whitespace do not lead to failure.
2350 ac_old_val_w=`echo x $ac_old_val`
2351 ac_new_val_w=`echo x $ac_new_val`
2352 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2354 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2355 ac_cache_corrupted=:
2356 else
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2358 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2359 eval $ac_var=\$ac_old_val
2360 fi
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2362 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2364 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2365 fi;;
2366 esac
2367 # Pass precious variables to config.status.
2368 if test "$ac_new_set" = set; then
2369 case $ac_new_val in
2370 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2371 *) ac_arg=$ac_var=$ac_new_val ;;
2372 esac
2373 case " $ac_configure_args " in
2374 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2375 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2376 esac
2377 fi
2378 done
2379 if $ac_cache_corrupted; then
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2381 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2383 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2384 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2385 fi
2386 ## -------------------- ##
2387 ## Main body of script. ##
2388 ## -------------------- ##
2389
2390 ac_ext=c
2391 ac_cpp='$CPP $CPPFLAGS'
2392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2395
2396
2397
2398
2399 ac_config_headers="$ac_config_headers config.h"
2400
2401
2402 # Before making a release, the LT_VERSION string should be modified.
2403 # The string is of the form C:R:A.
2404 # - If interfaces have been changed or added, but binary compatibility has
2405 # been preserved, change to C+1:0:A+1
2406 # - If binary compatibility has been broken (eg removed or changed interfaces)
2407 # change to C+1:0:0
2408 # - If the interface is the same as the previous version, change to C:R+1:A
2409 QQWING_CURRENT=3
2410 QQWING_REVISION=0
2411 QQWING_AGE=1
2412
2413
2414
2415
2416
2417 am__api_version='1.14'
2418
2419 ac_aux_dir=
2420 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2421 if test -f "$ac_dir/install-sh"; then
2422 ac_aux_dir=$ac_dir
2423 ac_install_sh="$ac_aux_dir/install-sh -c"
2424 break
2425 elif test -f "$ac_dir/install.sh"; then
2426 ac_aux_dir=$ac_dir
2427 ac_install_sh="$ac_aux_dir/install.sh -c"
2428 break
2429 elif test -f "$ac_dir/shtool"; then
2430 ac_aux_dir=$ac_dir
2431 ac_install_sh="$ac_aux_dir/shtool install -c"
2432 break
2433 fi
2434 done
2435 if test -z "$ac_aux_dir"; then
2436 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2437 fi
2438
2439 # These three variables are undocumented and unsupported,
2440 # and are intended to be withdrawn in a future Autoconf release.
2441 # They can cause serious problems if a builder's source tree is in a directory
2442 # whose full name contains unusual characters.
2443 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2444 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2445 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2446
2447
2448 # Find a good install program. We prefer a C program (faster),
2449 # so one script is as good as another. But avoid the broken or
2450 # incompatible versions:
2451 # SysV /etc/install, /usr/sbin/install
2452 # SunOS /usr/etc/install
2453 # IRIX /sbin/install
2454 # AIX /bin/install
2455 # AmigaOS /C/install, which installs bootblocks on floppy discs
2456 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2457 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2458 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2459 # OS/2's system install, which has a completely different semantic
2460 # ./install, which can be erroneously created by make from ./install.sh.
2461 # Reject install programs that cannot install multiple files.
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2463 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2464 if test -z "$INSTALL"; then
2465 if ${ac_cv_path_install+:} false; then :
2466 $as_echo_n "(cached) " >&6
2467 else
2468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2469 for as_dir in $PATH
2470 do
2471 IFS=$as_save_IFS
2472 test -z "$as_dir" && as_dir=.
2473 # Account for people who put trailing slashes in PATH elements.
2474 case $as_dir/ in #((
2475 ./ | .// | /[cC]/* | \
2476 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2477 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2478 /usr/ucb/* ) ;;
2479 *)
2480 # OSF1 and SCO ODT 3.0 have their own names for install.
2481 # Don't use installbsd from OSF since it installs stuff as root
2482 # by default.
2483 for ac_prog in ginstall scoinst install; do
2484 for ac_exec_ext in '' $ac_executable_extensions; do
2485 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2486 if test $ac_prog = install &&
2487 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2488 # AIX install. It has an incompatible calling convention.
2489 :
2490 elif test $ac_prog = install &&
2491 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2492 # program-specific install script used by HP pwplus--don't use.
2493 :
2494 else
2495 rm -rf conftest.one conftest.two conftest.dir
2496 echo one > conftest.one
2497 echo two > conftest.two
2498 mkdir conftest.dir
2499 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2500 test -s conftest.one && test -s conftest.two &&
2501 test -s conftest.dir/conftest.one &&
2502 test -s conftest.dir/conftest.two
2503 then
2504 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2505 break 3
2506 fi
2507 fi
2508 fi
2509 done
2510 done
2511 ;;
2512 esac
2513
2514 done
2515 IFS=$as_save_IFS
2516
2517 rm -rf conftest.one conftest.two conftest.dir
2518
2519 fi
2520 if test "${ac_cv_path_install+set}" = set; then
2521 INSTALL=$ac_cv_path_install
2522 else
2523 # As a last resort, use the slow shell script. Don't cache a
2524 # value for INSTALL within a source directory, because that will
2525 # break other packages using the cache if that directory is
2526 # removed, or if the value is a relative name.
2527 INSTALL=$ac_install_sh
2528 fi
2529 fi
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2531 $as_echo "$INSTALL" >&6; }
2532
2533 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2534 # It thinks the first close brace ends the variable substitution.
2535 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2536
2537 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2538
2539 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2540
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2542 $as_echo_n "checking whether build environment is sane... " >&6; }
2543 # Reject unsafe characters in $srcdir or the absolute working directory
2544 # name. Accept space and tab only in the latter.
2545 am_lf='
2546 '
2547 case `pwd` in
2548 *[\\\"\#\$\&\'\`$am_lf]*)
2549 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2550 esac
2551 case $srcdir in
2552 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2553 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2554 esac
2555
2556 # Do 'set' in a subshell so we don't clobber the current shell's
2557 # arguments. Must try -L first in case configure is actually a
2558 # symlink; some systems play weird games with the mod time of symlinks
2559 # (eg FreeBSD returns the mod time of the symlink's containing
2560 # directory).
2561 if (
2562 am_has_slept=no
2563 for am_try in 1 2; do
2564 echo "timestamp, slept: $am_has_slept" > conftest.file
2565 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2566 if test "$*" = "X"; then
2567 # -L didn't work.
2568 set X `ls -t "$srcdir/configure" conftest.file`
2569 fi
2570 if test "$*" != "X $srcdir/configure conftest.file" \
2571 && test "$*" != "X conftest.file $srcdir/configure"; then
2572
2573 # If neither matched, then we have a broken ls. This can happen
2574 # if, for instance, CONFIG_SHELL is bash and it inherits a
2575 # broken ls alias from the environment. This has actually
2576 # happened. Such a system could not be considered "sane".
2577 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2578 alias in your environment" "$LINENO" 5
2579 fi
2580 if test "$2" = conftest.file || test $am_try -eq 2; then
2581 break
2582 fi
2583 # Just in case.
2584 sleep 1
2585 am_has_slept=yes
2586 done
2587 test "$2" = conftest.file
2588 )
2589 then
2590 # Ok.
2591 :
2592 else
2593 as_fn_error $? "newly created file is older than distributed files!
2594 Check your system clock" "$LINENO" 5
2595 fi
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2597 $as_echo "yes" >&6; }
2598 # If we didn't sleep, we still need to ensure time stamps of config.status and
2599 # generated files are strictly newer.
2600 am_sleep_pid=
2601 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2602 ( sleep 1 ) &
2603 am_sleep_pid=$!
2604 fi
2605
2606 rm -f conftest.file
2607
2608 test "$program_prefix" != NONE &&
2609 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2610 # Use a double $ so make ignores it.
2611 test "$program_suffix" != NONE &&
2612 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2613 # Double any \ or $.
2614 # By default was `s,x,x', remove it if useless.
2615 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2616 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2617
2618 # expand $ac_aux_dir to an absolute path
2619 am_aux_dir=`cd $ac_aux_dir && pwd`
2620
2621 if test x"${MISSING+set}" != xset; then
2622 case $am_aux_dir in
2623 *\ * | *\ *)
2624 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2625 *)
2626 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2627 esac
2628 fi
2629 # Use eval to expand $SHELL
2630 if eval "$MISSING --is-lightweight"; then
2631 am_missing_run="$MISSING "
2632 else
2633 am_missing_run=
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2635 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2636 fi
2637
2638 if test x"${install_sh}" != xset; then
2639 case $am_aux_dir in
2640 *\ * | *\ *)
2641 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2642 *)
2643 install_sh="\${SHELL} $am_aux_dir/install-sh"
2644 esac
2645 fi
2646
2647 # Installed binaries are usually stripped using 'strip' when the user
2648 # run "make install-strip". However 'strip' might not be the right
2649 # tool to use in cross-compilation environments, therefore Automake
2650 # will honor the 'STRIP' environment variable to overrule this program.
2651 if test "$cross_compiling" != no; then
2652 if test -n "$ac_tool_prefix"; then
2653 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2654 set dummy ${ac_tool_prefix}strip; ac_word=$2
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2656 $as_echo_n "checking for $ac_word... " >&6; }
2657 if ${ac_cv_prog_STRIP+:} false; then :
2658 $as_echo_n "(cached) " >&6
2659 else
2660 if test -n "$STRIP"; then
2661 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2662 else
2663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2664 for as_dir in $PATH
2665 do
2666 IFS=$as_save_IFS
2667 test -z "$as_dir" && as_dir=.
2668 for ac_exec_ext in '' $ac_executable_extensions; do
2669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2670 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2672 break 2
2673 fi
2674 done
2675 done
2676 IFS=$as_save_IFS
2677
2678 fi
2679 fi
2680 STRIP=$ac_cv_prog_STRIP
2681 if test -n "$STRIP"; then
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2683 $as_echo "$STRIP" >&6; }
2684 else
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2686 $as_echo "no" >&6; }
2687 fi
2688
2689
2690 fi
2691 if test -z "$ac_cv_prog_STRIP"; then
2692 ac_ct_STRIP=$STRIP
2693 # Extract the first word of "strip", so it can be a program name with args.
2694 set dummy strip; ac_word=$2
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2696 $as_echo_n "checking for $ac_word... " >&6; }
2697 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2698 $as_echo_n "(cached) " >&6
2699 else
2700 if test -n "$ac_ct_STRIP"; then
2701 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2702 else
2703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704 for as_dir in $PATH
2705 do
2706 IFS=$as_save_IFS
2707 test -z "$as_dir" && as_dir=.
2708 for ac_exec_ext in '' $ac_executable_extensions; do
2709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2710 ac_cv_prog_ac_ct_STRIP="strip"
2711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2712 break 2
2713 fi
2714 done
2715 done
2716 IFS=$as_save_IFS
2717
2718 fi
2719 fi
2720 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2721 if test -n "$ac_ct_STRIP"; then
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2723 $as_echo "$ac_ct_STRIP" >&6; }
2724 else
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2726 $as_echo "no" >&6; }
2727 fi
2728
2729 if test "x$ac_ct_STRIP" = x; then
2730 STRIP=":"
2731 else
2732 case $cross_compiling:$ac_tool_warned in
2733 yes:)
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2735 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2736 ac_tool_warned=yes ;;
2737 esac
2738 STRIP=$ac_ct_STRIP
2739 fi
2740 else
2741 STRIP="$ac_cv_prog_STRIP"
2742 fi
2743
2744 fi
2745 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2746
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2748 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2749 if test -z "$MKDIR_P"; then
2750 if ${ac_cv_path_mkdir+:} false; then :
2751 $as_echo_n "(cached) " >&6
2752 else
2753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2754 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2755 do
2756 IFS=$as_save_IFS
2757 test -z "$as_dir" && as_dir=.
2758 for ac_prog in mkdir gmkdir; do
2759 for ac_exec_ext in '' $ac_executable_extensions; do
2760 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2761 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2762 'mkdir (GNU coreutils) '* | \
2763 'mkdir (coreutils) '* | \
2764 'mkdir (fileutils) '4.1*)
2765 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2766 break 3;;
2767 esac
2768 done
2769 done
2770 done
2771 IFS=$as_save_IFS
2772
2773 fi
2774
2775 test -d ./--version && rmdir ./--version
2776 if test "${ac_cv_path_mkdir+set}" = set; then
2777 MKDIR_P="$ac_cv_path_mkdir -p"
2778 else
2779 # As a last resort, use the slow shell script. Don't cache a
2780 # value for MKDIR_P within a source directory, because that will
2781 # break other packages using the cache if that directory is
2782 # removed, or if the value is a relative name.
2783 MKDIR_P="$ac_install_sh -d"
2784 fi
2785 fi
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2787 $as_echo "$MKDIR_P" >&6; }
2788
2789 for ac_prog in gawk mawk nawk awk
2790 do
2791 # Extract the first word of "$ac_prog", so it can be a program name with args.
2792 set dummy $ac_prog; ac_word=$2
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2794 $as_echo_n "checking for $ac_word... " >&6; }
2795 if ${ac_cv_prog_AWK+:} false; then :
2796 $as_echo_n "(cached) " >&6
2797 else
2798 if test -n "$AWK"; then
2799 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2800 else
2801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2802 for as_dir in $PATH
2803 do
2804 IFS=$as_save_IFS
2805 test -z "$as_dir" && as_dir=.
2806 for ac_exec_ext in '' $ac_executable_extensions; do
2807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2808 ac_cv_prog_AWK="$ac_prog"
2809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2810 break 2
2811 fi
2812 done
2813 done
2814 IFS=$as_save_IFS
2815
2816 fi
2817 fi
2818 AWK=$ac_cv_prog_AWK
2819 if test -n "$AWK"; then
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2821 $as_echo "$AWK" >&6; }
2822 else
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2824 $as_echo "no" >&6; }
2825 fi
2826
2827
2828 test -n "$AWK" && break
2829 done
2830
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2832 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2833 set x ${MAKE-make}
2834 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2835 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2836 $as_echo_n "(cached) " >&6
2837 else
2838 cat >conftest.make <<\_ACEOF
2839 SHELL = /bin/sh
2840 all:
2841 @echo '@@@%%%=$(MAKE)=@@@%%%'
2842 _ACEOF
2843 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2844 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2845 *@@@%%%=?*=@@@%%%*)
2846 eval ac_cv_prog_make_${ac_make}_set=yes;;
2847 *)
2848 eval ac_cv_prog_make_${ac_make}_set=no;;
2849 esac
2850 rm -f conftest.make
2851 fi
2852 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2854 $as_echo "yes" >&6; }
2855 SET_MAKE=
2856 else
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2858 $as_echo "no" >&6; }
2859 SET_MAKE="MAKE=${MAKE-make}"
2860 fi
2861
2862 rm -rf .tst 2>/dev/null
2863 mkdir .tst 2>/dev/null
2864 if test -d .tst; then
2865 am__leading_dot=.
2866 else
2867 am__leading_dot=_
2868 fi
2869 rmdir .tst 2>/dev/null
2870
2871 # Check whether --enable-silent-rules was given.
2872 if test "${enable_silent_rules+set}" = set; then :
2873 enableval=$enable_silent_rules;
2874 fi
2875
2876 case $enable_silent_rules in # (((
2877 yes) AM_DEFAULT_VERBOSITY=0;;
2878 no) AM_DEFAULT_VERBOSITY=1;;
2879 *) AM_DEFAULT_VERBOSITY=1;;
2880 esac
2881 am_make=${MAKE-make}
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2883 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2884 if ${am_cv_make_support_nested_variables+:} false; then :
2885 $as_echo_n "(cached) " >&6
2886 else
2887 if $as_echo 'TRUE=$(BAR$(V))
2888 BAR0=false
2889 BAR1=true
2890 V=1
2891 am__doit:
2892 @$(TRUE)
2893 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2894 am_cv_make_support_nested_variables=yes
2895 else
2896 am_cv_make_support_nested_variables=no
2897 fi
2898 fi
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2900 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2901 if test $am_cv_make_support_nested_variables = yes; then
2902 AM_V='$(V)'
2903 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2904 else
2905 AM_V=$AM_DEFAULT_VERBOSITY
2906 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2907 fi
2908 AM_BACKSLASH='\'
2909
2910 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2911 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2912 # is not polluted with repeated "-I."
2913 am__isrc=' -I$(srcdir)'
2914 # test to see if srcdir already configured
2915 if test -f $srcdir/config.status; then
2916 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2917 fi
2918 fi
2919
2920 # test whether we have cygpath
2921 if test -z "$CYGPATH_W"; then
2922 if (cygpath --version) >/dev/null 2>/dev/null; then
2923 CYGPATH_W='cygpath -w'
2924 else
2925 CYGPATH_W=echo
2926 fi
2927 fi
2928
2929
2930 # Define the identity of the package.
2931 PACKAGE='qqwing'
2932 VERSION='1.3.4'
2933
2934
2935 cat >>confdefs.h <<_ACEOF
2936 #define PACKAGE "$PACKAGE"
2937 _ACEOF
2938
2939
2940 cat >>confdefs.h <<_ACEOF
2941 #define VERSION "$VERSION"
2942 _ACEOF
2943
2944 # Some tools Automake needs.
2945
2946 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2947
2948
2949 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2950
2951
2952 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2953
2954
2955 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2956
2957
2958 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2959
2960 # For better backward compatibility. To be removed once Automake 1.9.x
2961 # dies out for good. For more background, see:
2962 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2963 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2964 mkdir_p='$(MKDIR_P)'
2965
2966 # We need awk for the "check" target. The system "awk" is bad on
2967 # some platforms.
2968 # Always define AMTAR for backward compatibility. Yes, it's still used
2969 # in the wild :-( We should find a proper way to deprecate it ...
2970 AMTAR='$${TAR-tar}'
2971
2972
2973 # We'll loop over all known methods to create a tar archive until one works.
2974 _am_tools='gnutar pax cpio none'
2975
2976 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2977
2978
2979
2980
2981
2982
2983 # POSIX will say in a future version that running "rm -f" with no argument
2984 # is OK; and we want to be able to make that assumption in our Makefile
2985 # recipes. So use an aggressive probe to check that the usage we want is
2986 # actually supported "in the wild" to an acceptable degree.
2987 # See automake bug#10828.
2988 # To make any issue more visible, cause the running configure to be aborted
2989 # by default if the 'rm' program in use doesn't match our expectations; the
2990 # user can still override this though.
2991 if rm -f && rm -fr && rm -rf; then : OK; else
2992 cat >&2 <<'END'
2993 Oops!
2994
2995 Your 'rm' program seems unable to run without file operands specified
2996 on the command line, even when the '-f' option is present. This is contrary
2997 to the behaviour of most rm programs out there, and not conforming with
2998 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2999
3000 Please tell [email protected] about your system, including the value
3001 of your $PATH and any error possibly output before this message. This
3002 can help us improve future automake versions.
3003
3004 END
3005 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3006 echo 'Configuration will proceed anyway, since you have set the' >&2
3007 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3008 echo >&2
3009 else
3010 cat >&2 <<'END'
3011 Aborting the configuration process, to ensure you take notice of the issue.
3012
3013 You can download and install GNU coreutils to get an 'rm' implementation
3014 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3015
3016 If you want to complete the configuration process using your problematic
3017 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3018 to "yes", and re-run configure.
3019
3020 END
3021 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3022 fi
3023 fi
3024
3025
3026 # Checks for programs.
3027 ac_ext=cpp
3028 ac_cpp='$CXXCPP $CPPFLAGS'
3029 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3030 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3031 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3032 if test -z "$CXX"; then
3033 if test -n "$CCC"; then
3034 CXX=$CCC
3035 else
3036 if test -n "$ac_tool_prefix"; then
3037 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3038 do
3039 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3040 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3042 $as_echo_n "checking for $ac_word... " >&6; }
3043 if ${ac_cv_prog_CXX+:} false; then :
3044 $as_echo_n "(cached) " >&6
3045 else
3046 if test -n "$CXX"; then
3047 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3048 else
3049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3050 for as_dir in $PATH
3051 do
3052 IFS=$as_save_IFS
3053 test -z "$as_dir" && as_dir=.
3054 for ac_exec_ext in '' $ac_executable_extensions; do
3055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3056 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3058 break 2
3059 fi
3060 done
3061 done
3062 IFS=$as_save_IFS
3063
3064 fi
3065 fi
3066 CXX=$ac_cv_prog_CXX
3067 if test -n "$CXX"; then
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3069 $as_echo "$CXX" >&6; }
3070 else
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3072 $as_echo "no" >&6; }
3073 fi
3074
3075
3076 test -n "$CXX" && break
3077 done
3078 fi
3079 if test -z "$CXX"; then
3080 ac_ct_CXX=$CXX
3081 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3082 do
3083 # Extract the first word of "$ac_prog", so it can be a program name with args.
3084 set dummy $ac_prog; ac_word=$2
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3086 $as_echo_n "checking for $ac_word... " >&6; }
3087 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3088 $as_echo_n "(cached) " >&6
3089 else
3090 if test -n "$ac_ct_CXX"; then
3091 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3092 else
3093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3094 for as_dir in $PATH
3095 do
3096 IFS=$as_save_IFS
3097 test -z "$as_dir" && as_dir=.
3098 for ac_exec_ext in '' $ac_executable_extensions; do
3099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3100 ac_cv_prog_ac_ct_CXX="$ac_prog"
3101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3102 break 2
3103 fi
3104 done
3105 done
3106 IFS=$as_save_IFS
3107
3108 fi
3109 fi
3110 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3111 if test -n "$ac_ct_CXX"; then
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3113 $as_echo "$ac_ct_CXX" >&6; }
3114 else
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3116 $as_echo "no" >&6; }
3117 fi
3118
3119
3120 test -n "$ac_ct_CXX" && break
3121 done
3122
3123 if test "x$ac_ct_CXX" = x; then
3124 CXX="g++"
3125 else
3126 case $cross_compiling:$ac_tool_warned in
3127 yes:)
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3129 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3130 ac_tool_warned=yes ;;
3131 esac
3132 CXX=$ac_ct_CXX
3133 fi
3134 fi
3135
3136 fi
3137 fi
3138 # Provide some information about the compiler.
3139 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3140 set X $ac_compile
3141 ac_compiler=$2
3142 for ac_option in --version -v -V -qversion; do
3143 { { ac_try="$ac_compiler $ac_option >&5"
3144 case "(($ac_try" in
3145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146 *) ac_try_echo=$ac_try;;
3147 esac
3148 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3149 $as_echo "$ac_try_echo"; } >&5
3150 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3151 ac_status=$?
3152 if test -s conftest.err; then
3153 sed '10a\
3154 ... rest of stderr output deleted ...
3155 10q' conftest.err >conftest.er1
3156 cat conftest.er1 >&5
3157 fi
3158 rm -f conftest.er1 conftest.err
3159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3160 test $ac_status = 0; }
3161 done
3162
3163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3164 /* end confdefs.h. */
3165
3166 int
3167 main ()
3168 {
3169
3170 ;
3171 return 0;
3172 }
3173 _ACEOF
3174 ac_clean_files_save=$ac_clean_files
3175 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3176 # Try to create an executable without -o first, disregard a.out.
3177 # It will help us diagnose broken compilers, and finding out an intuition
3178 # of exeext.
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3180 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3181 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3182
3183 # The possible output files:
3184 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3185
3186 ac_rmfiles=
3187 for ac_file in $ac_files
3188 do
3189 case $ac_file in
3190 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3191 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3192 esac
3193 done
3194 rm -f $ac_rmfiles
3195
3196 if { { ac_try="$ac_link_default"
3197 case "(($ac_try" in
3198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199 *) ac_try_echo=$ac_try;;
3200 esac
3201 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3202 $as_echo "$ac_try_echo"; } >&5
3203 (eval "$ac_link_default") 2>&5
3204 ac_status=$?
3205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3206 test $ac_status = 0; }; then :
3207 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3208 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3209 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3210 # so that the user can short-circuit this test for compilers unknown to
3211 # Autoconf.
3212 for ac_file in $ac_files ''
3213 do
3214 test -f "$ac_file" || continue
3215 case $ac_file in
3216 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3217 ;;
3218 [ab].out )
3219 # We found the default executable, but exeext='' is most
3220 # certainly right.
3221 break;;
3222 *.* )
3223 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3224 then :; else
3225 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3226 fi
3227 # We set ac_cv_exeext here because the later test for it is not
3228 # safe: cross compilers may not add the suffix if given an `-o'
3229 # argument, so we may need to know it at that point already.
3230 # Even if this section looks crufty: it has the advantage of
3231 # actually working.
3232 break;;
3233 * )
3234 break;;
3235 esac
3236 done
3237 test "$ac_cv_exeext" = no && ac_cv_exeext=
3238
3239 else
3240 ac_file=''
3241 fi
3242 if test -z "$ac_file"; then :
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3244 $as_echo "no" >&6; }
3245 $as_echo "$as_me: failed program was:" >&5
3246 sed 's/^/| /' conftest.$ac_ext >&5
3247
3248 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3249 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3250 as_fn_error 77 "C++ compiler cannot create executables
3251 See \`config.log' for more details" "$LINENO" 5; }
3252 else
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3254 $as_echo "yes" >&6; }
3255 fi
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3257 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3259 $as_echo "$ac_file" >&6; }
3260 ac_exeext=$ac_cv_exeext
3261
3262 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3263 ac_clean_files=$ac_clean_files_save
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3265 $as_echo_n "checking for suffix of executables... " >&6; }
3266 if { { ac_try="$ac_link"
3267 case "(($ac_try" in
3268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3269 *) ac_try_echo=$ac_try;;
3270 esac
3271 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3272 $as_echo "$ac_try_echo"; } >&5
3273 (eval "$ac_link") 2>&5
3274 ac_status=$?
3275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3276 test $ac_status = 0; }; then :
3277 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3278 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3279 # work properly (i.e., refer to `conftest.exe'), while it won't with
3280 # `rm'.
3281 for ac_file in conftest.exe conftest conftest.*; do
3282 test -f "$ac_file" || continue
3283 case $ac_file in
3284 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3285 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3286 break;;
3287 * ) break;;
3288 esac
3289 done
3290 else
3291 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3292 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3293 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3294 See \`config.log' for more details" "$LINENO" 5; }
3295 fi
3296 rm -f conftest conftest$ac_cv_exeext
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3298 $as_echo "$ac_cv_exeext" >&6; }
3299
3300 rm -f conftest.$ac_ext
3301 EXEEXT=$ac_cv_exeext
3302 ac_exeext=$EXEEXT
3303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3304 /* end confdefs.h. */
3305 #include <stdio.h>
3306 int
3307 main ()
3308 {
3309 FILE *f = fopen ("conftest.out", "w");
3310 return ferror (f) || fclose (f) != 0;
3311
3312 ;
3313 return 0;
3314 }
3315 _ACEOF
3316 ac_clean_files="$ac_clean_files conftest.out"
3317 # Check that the compiler produces executables we can run. If not, either
3318 # the compiler is broken, or we cross compile.
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3320 $as_echo_n "checking whether we are cross compiling... " >&6; }
3321 if test "$cross_compiling" != yes; then
3322 { { ac_try="$ac_link"
3323 case "(($ac_try" in
3324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3325 *) ac_try_echo=$ac_try;;
3326 esac
3327 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3328 $as_echo "$ac_try_echo"; } >&5
3329 (eval "$ac_link") 2>&5
3330 ac_status=$?
3331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3332 test $ac_status = 0; }
3333 if { ac_try='./conftest$ac_cv_exeext'
3334 { { case "(($ac_try" in
3335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3336 *) ac_try_echo=$ac_try;;
3337 esac
3338 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3339 $as_echo "$ac_try_echo"; } >&5
3340 (eval "$ac_try") 2>&5
3341 ac_status=$?
3342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3343 test $ac_status = 0; }; }; then
3344 cross_compiling=no
3345 else
3346 if test "$cross_compiling" = maybe; then
3347 cross_compiling=yes
3348 else
3349 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3350 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3351 as_fn_error $? "cannot run C++ compiled programs.
3352 If you meant to cross compile, use \`--host'.
3353 See \`config.log' for more details" "$LINENO" 5; }
3354 fi
3355 fi
3356 fi
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3358 $as_echo "$cross_compiling" >&6; }
3359
3360 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3361 ac_clean_files=$ac_clean_files_save
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3363 $as_echo_n "checking for suffix of object files... " >&6; }
3364 if ${ac_cv_objext+:} false; then :
3365 $as_echo_n "(cached) " >&6
3366 else
3367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3368 /* end confdefs.h. */
3369
3370 int
3371 main ()
3372 {
3373
3374 ;
3375 return 0;
3376 }
3377 _ACEOF
3378 rm -f conftest.o conftest.obj
3379 if { { ac_try="$ac_compile"
3380 case "(($ac_try" in
3381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3382 *) ac_try_echo=$ac_try;;
3383 esac
3384 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3385 $as_echo "$ac_try_echo"; } >&5
3386 (eval "$ac_compile") 2>&5
3387 ac_status=$?
3388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3389 test $ac_status = 0; }; then :
3390 for ac_file in conftest.o conftest.obj conftest.*; do
3391 test -f "$ac_file" || continue;
3392 case $ac_file in
3393 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3394 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3395 break;;
3396 esac
3397 done
3398 else
3399 $as_echo "$as_me: failed program was:" >&5
3400 sed 's/^/| /' conftest.$ac_ext >&5
3401
3402 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3403 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3404 as_fn_error $? "cannot compute suffix of object files: cannot compile
3405 See \`config.log' for more details" "$LINENO" 5; }
3406 fi
3407 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3408 fi
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3410 $as_echo "$ac_cv_objext" >&6; }
3411 OBJEXT=$ac_cv_objext
3412 ac_objext=$OBJEXT
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3414 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3415 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3416 $as_echo_n "(cached) " >&6
3417 else
3418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3419 /* end confdefs.h. */
3420
3421 int
3422 main ()
3423 {
3424 #ifndef __GNUC__
3425 choke me
3426 #endif
3427
3428 ;
3429 return 0;
3430 }
3431 _ACEOF
3432 if ac_fn_cxx_try_compile "$LINENO"; then :
3433 ac_compiler_gnu=yes
3434 else
3435 ac_compiler_gnu=no
3436 fi
3437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3438 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3439
3440 fi
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3442 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3443 if test $ac_compiler_gnu = yes; then
3444 GXX=yes
3445 else
3446 GXX=
3447 fi
3448 ac_test_CXXFLAGS=${CXXFLAGS+set}
3449 ac_save_CXXFLAGS=$CXXFLAGS
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3451 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3452 if ${ac_cv_prog_cxx_g+:} false; then :
3453 $as_echo_n "(cached) " >&6
3454 else
3455 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3456 ac_cxx_werror_flag=yes
3457 ac_cv_prog_cxx_g=no
3458 CXXFLAGS="-g"
3459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3460 /* end confdefs.h. */
3461
3462 int
3463 main ()
3464 {
3465
3466 ;
3467 return 0;
3468 }
3469 _ACEOF
3470 if ac_fn_cxx_try_compile "$LINENO"; then :
3471 ac_cv_prog_cxx_g=yes
3472 else
3473 CXXFLAGS=""
3474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3475 /* end confdefs.h. */
3476
3477 int
3478 main ()
3479 {
3480
3481 ;
3482 return 0;
3483 }
3484 _ACEOF
3485 if ac_fn_cxx_try_compile "$LINENO"; then :
3486
3487 else
3488 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3489 CXXFLAGS="-g"
3490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3491 /* end confdefs.h. */
3492
3493 int
3494 main ()
3495 {
3496
3497 ;
3498 return 0;
3499 }
3500 _ACEOF
3501 if ac_fn_cxx_try_compile "$LINENO"; then :
3502 ac_cv_prog_cxx_g=yes
3503 fi
3504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3505 fi
3506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3507 fi
3508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3509 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3510 fi
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3512 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3513 if test "$ac_test_CXXFLAGS" = set; then
3514 CXXFLAGS=$ac_save_CXXFLAGS
3515 elif test $ac_cv_prog_cxx_g = yes; then
3516 if test "$GXX" = yes; then
3517 CXXFLAGS="-g -O2"
3518 else
3519 CXXFLAGS="-g"
3520 fi
3521 else
3522 if test "$GXX" = yes; then
3523 CXXFLAGS="-O2"
3524 else
3525 CXXFLAGS=
3526 fi
3527 fi
3528 ac_ext=c
3529 ac_cpp='$CPP $CPPFLAGS'
3530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3533 DEPDIR="${am__leading_dot}deps"
3534
3535 ac_config_commands="$ac_config_commands depfiles"
3536
3537
3538 am_make=${MAKE-make}
3539 cat > confinc << 'END'
3540 am__doit:
3541 @echo this is the am__doit target
3542 .PHONY: am__doit
3543 END
3544 # If we don't find an include directive, just comment out the code.
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3546 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3547 am__include="#"
3548 am__quote=
3549 _am_result=none
3550 # First try GNU make style include.
3551 echo "include confinc" > confmf
3552 # Ignore all kinds of additional output from 'make'.
3553 case `$am_make -s -f confmf 2> /dev/null` in #(
3554 *the\ am__doit\ target*)
3555 am__include=include
3556 am__quote=
3557 _am_result=GNU
3558 ;;
3559 esac
3560 # Now try BSD make style include.
3561 if test "$am__include" = "#"; then
3562 echo '.include "confinc"' > confmf
3563 case `$am_make -s -f confmf 2> /dev/null` in #(
3564 *the\ am__doit\ target*)
3565 am__include=.include
3566 am__quote="\""
3567 _am_result=BSD
3568 ;;
3569 esac
3570 fi
3571
3572
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3574 $as_echo "$_am_result" >&6; }
3575 rm -f confinc confmf
3576
3577 # Check whether --enable-dependency-tracking was given.
3578 if test "${enable_dependency_tracking+set}" = set; then :
3579 enableval=$enable_dependency_tracking;
3580 fi
3581
3582 if test "x$enable_dependency_tracking" != xno; then
3583 am_depcomp="$ac_aux_dir/depcomp"
3584 AMDEPBACKSLASH='\'
3585 am__nodep='_no'
3586 fi
3587 if test "x$enable_dependency_tracking" != xno; then
3588 AMDEP_TRUE=
3589 AMDEP_FALSE='#'
3590 else
3591 AMDEP_TRUE='#'
3592 AMDEP_FALSE=
3593 fi
3594
3595
3596
3597 depcc="$CXX" am_compiler_list=
3598
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3600 $as_echo_n "checking dependency style of $depcc... " >&6; }
3601 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
3602 $as_echo_n "(cached) " >&6
3603 else
3604 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3605 # We make a subdir and do the tests there. Otherwise we can end up
3606 # making bogus files that we don't know about and never remove. For
3607 # instance it was reported that on HP-UX the gcc test will end up
3608 # making a dummy file named 'D' -- because '-MD' means "put the output
3609 # in D".
3610 rm -rf conftest.dir
3611 mkdir conftest.dir
3612 # Copy depcomp to subdir because otherwise we won't find it if we're
3613 # using a relative directory.
3614 cp "$am_depcomp" conftest.dir
3615 cd conftest.dir
3616 # We will build objects and dependencies in a subdirectory because
3617 # it helps to detect inapplicable dependency modes. For instance
3618 # both Tru64's cc and ICC support -MD to output dependencies as a
3619 # side effect of compilation, but ICC will put the dependencies in
3620 # the current directory while Tru64 will put them in the object
3621 # directory.
3622 mkdir sub
3623
3624 am_cv_CXX_dependencies_compiler_type=none
3625 if test "$am_compiler_list" = ""; then
3626 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3627 fi
3628 am__universal=false
3629 case " $depcc " in #(
3630 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3631 esac
3632
3633 for depmode in $am_compiler_list; do
3634 # Setup a source with many dependencies, because some compilers
3635 # like to wrap large dependency lists on column 80 (with \), and
3636 # we should not choose a depcomp mode which is confused by this.
3637 #
3638 # We need to recreate these files for each test, as the compiler may
3639 # overwrite some of them when testing with obscure command lines.
3640 # This happens at least with the AIX C compiler.
3641 : > sub/conftest.c
3642 for i in 1 2 3 4 5 6; do
3643 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3644 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3645 # Solaris 10 /bin/sh.
3646 echo '/* dummy */' > sub/conftst$i.h
3647 done
3648 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3649
3650 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3651 # mode. It turns out that the SunPro C++ compiler does not properly
3652 # handle '-M -o', and we need to detect this. Also, some Intel
3653 # versions had trouble with output in subdirs.
3654 am__obj=sub/conftest.${OBJEXT-o}
3655 am__minus_obj="-o $am__obj"
3656 case $depmode in
3657 gcc)
3658 # This depmode causes a compiler race in universal mode.
3659 test "$am__universal" = false || continue
3660 ;;
3661 nosideeffect)
3662 # After this tag, mechanisms are not by side-effect, so they'll
3663 # only be used when explicitly requested.
3664 if test "x$enable_dependency_tracking" = xyes; then
3665 continue
3666 else
3667 break
3668 fi
3669 ;;
3670 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3671 # This compiler won't grok '-c -o', but also, the minuso test has
3672 # not run yet. These depmodes are late enough in the game, and
3673 # so weak that their functioning should not be impacted.
3674 am__obj=conftest.${OBJEXT-o}
3675 am__minus_obj=
3676 ;;
3677 none) break ;;
3678 esac
3679 if depmode=$depmode \
3680 source=sub/conftest.c object=$am__obj \
3681 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3682 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3683 >/dev/null 2>conftest.err &&
3684 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3685 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3686 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3687 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3688 # icc doesn't choke on unknown options, it will just issue warnings
3689 # or remarks (even with -Werror). So we grep stderr for any message
3690 # that says an option was ignored or not supported.
3691 # When given -MP, icc 7.0 and 7.1 complain thusly:
3692 # icc: Command line warning: ignoring option '-M'; no argument required
3693 # The diagnosis changed in icc 8.0:
3694 # icc: Command line remark: option '-MP' not supported
3695 if (grep 'ignoring option' conftest.err ||
3696 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3697 am_cv_CXX_dependencies_compiler_type=$depmode
3698 break
3699 fi
3700 fi
3701 done
3702
3703 cd ..
3704 rm -rf conftest.dir
3705 else
3706 am_cv_CXX_dependencies_compiler_type=none
3707 fi
3708
3709 fi
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3711 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3712 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3713
3714 if
3715 test "x$enable_dependency_tracking" != xno \
3716 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3717 am__fastdepCXX_TRUE=
3718 am__fastdepCXX_FALSE='#'
3719 else
3720 am__fastdepCXX_TRUE='#'
3721 am__fastdepCXX_FALSE=
3722 fi
3723
3724
3725 ac_ext=c
3726 ac_cpp='$CPP $CPPFLAGS'
3727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3730 if test -n "$ac_tool_prefix"; then
3731 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3732 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3734 $as_echo_n "checking for $ac_word... " >&6; }
3735 if ${ac_cv_prog_CC+:} false; then :
3736 $as_echo_n "(cached) " >&6
3737 else
3738 if test -n "$CC"; then
3739 ac_cv_prog_CC="$CC" # Let the user override the test.
3740 else
3741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3742 for as_dir in $PATH
3743 do
3744 IFS=$as_save_IFS
3745 test -z "$as_dir" && as_dir=.
3746 for ac_exec_ext in '' $ac_executable_extensions; do
3747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3748 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3750 break 2
3751 fi
3752 done
3753 done
3754 IFS=$as_save_IFS
3755
3756 fi
3757 fi
3758 CC=$ac_cv_prog_CC
3759 if test -n "$CC"; then
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3761 $as_echo "$CC" >&6; }
3762 else
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3764 $as_echo "no" >&6; }
3765 fi
3766
3767
3768 fi
3769 if test -z "$ac_cv_prog_CC"; then
3770 ac_ct_CC=$CC
3771 # Extract the first word of "gcc", so it can be a program name with args.
3772 set dummy gcc; ac_word=$2
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3774 $as_echo_n "checking for $ac_word... " >&6; }
3775 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3776 $as_echo_n "(cached) " >&6
3777 else
3778 if test -n "$ac_ct_CC"; then
3779 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3780 else
3781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3782 for as_dir in $PATH
3783 do
3784 IFS=$as_save_IFS
3785 test -z "$as_dir" && as_dir=.
3786 for ac_exec_ext in '' $ac_executable_extensions; do
3787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3788 ac_cv_prog_ac_ct_CC="gcc"
3789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3790 break 2
3791 fi
3792 done
3793 done
3794 IFS=$as_save_IFS
3795
3796 fi
3797 fi
3798 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3799 if test -n "$ac_ct_CC"; then
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3801 $as_echo "$ac_ct_CC" >&6; }
3802 else
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3804 $as_echo "no" >&6; }
3805 fi
3806
3807 if test "x$ac_ct_CC" = x; then
3808 CC=""
3809 else
3810 case $cross_compiling:$ac_tool_warned in
3811 yes:)
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3813 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3814 ac_tool_warned=yes ;;
3815 esac
3816 CC=$ac_ct_CC
3817 fi
3818 else
3819 CC="$ac_cv_prog_CC"
3820 fi
3821
3822 if test -z "$CC"; then
3823 if test -n "$ac_tool_prefix"; then
3824 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3825 set dummy ${ac_tool_prefix}cc; ac_word=$2
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3827 $as_echo_n "checking for $ac_word... " >&6; }
3828 if ${ac_cv_prog_CC+:} false; then :
3829 $as_echo_n "(cached) " >&6
3830 else
3831 if test -n "$CC"; then
3832 ac_cv_prog_CC="$CC" # Let the user override the test.
3833 else
3834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3835 for as_dir in $PATH
3836 do
3837 IFS=$as_save_IFS
3838 test -z "$as_dir" && as_dir=.
3839 for ac_exec_ext in '' $ac_executable_extensions; do
3840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3841 ac_cv_prog_CC="${ac_tool_prefix}cc"
3842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3843 break 2
3844 fi
3845 done
3846 done
3847 IFS=$as_save_IFS
3848
3849 fi
3850 fi
3851 CC=$ac_cv_prog_CC
3852 if test -n "$CC"; then
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3854 $as_echo "$CC" >&6; }
3855 else
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3857 $as_echo "no" >&6; }
3858 fi
3859
3860
3861 fi
3862 fi
3863 if test -z "$CC"; then
3864 # Extract the first word of "cc", so it can be a program name with args.
3865 set dummy cc; ac_word=$2
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3867 $as_echo_n "checking for $ac_word... " >&6; }
3868 if ${ac_cv_prog_CC+:} false; then :
3869 $as_echo_n "(cached) " >&6
3870 else
3871 if test -n "$CC"; then
3872 ac_cv_prog_CC="$CC" # Let the user override the test.
3873 else
3874 ac_prog_rejected=no
3875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3876 for as_dir in $PATH
3877 do
3878 IFS=$as_save_IFS
3879 test -z "$as_dir" && as_dir=.
3880 for ac_exec_ext in '' $ac_executable_extensions; do
3881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3882 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3883 ac_prog_rejected=yes
3884 continue
3885 fi
3886 ac_cv_prog_CC="cc"
3887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3888 break 2
3889 fi
3890 done
3891 done
3892 IFS=$as_save_IFS
3893
3894 if test $ac_prog_rejected = yes; then
3895 # We found a bogon in the path, so make sure we never use it.
3896 set dummy $ac_cv_prog_CC
3897 shift
3898 if test $# != 0; then
3899 # We chose a different compiler from the bogus one.
3900 # However, it has the same basename, so the bogon will be chosen
3901 # first if we set CC to just the basename; use the full file name.
3902 shift
3903 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3904 fi
3905 fi
3906 fi
3907 fi
3908 CC=$ac_cv_prog_CC
3909 if test -n "$CC"; then
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3911 $as_echo "$CC" >&6; }
3912 else
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3914 $as_echo "no" >&6; }
3915 fi
3916
3917
3918 fi
3919 if test -z "$CC"; then
3920 if test -n "$ac_tool_prefix"; then
3921 for ac_prog in cl.exe
3922 do
3923 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3924 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3926 $as_echo_n "checking for $ac_word... " >&6; }
3927 if ${ac_cv_prog_CC+:} false; then :
3928 $as_echo_n "(cached) " >&6
3929 else
3930 if test -n "$CC"; then
3931 ac_cv_prog_CC="$CC" # Let the user override the test.
3932 else
3933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3934 for as_dir in $PATH
3935 do
3936 IFS=$as_save_IFS
3937 test -z "$as_dir" && as_dir=.
3938 for ac_exec_ext in '' $ac_executable_extensions; do
3939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3940 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3942 break 2
3943 fi
3944 done
3945 done
3946 IFS=$as_save_IFS
3947
3948 fi
3949 fi
3950 CC=$ac_cv_prog_CC
3951 if test -n "$CC"; then
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3953 $as_echo "$CC" >&6; }
3954 else
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3956 $as_echo "no" >&6; }
3957 fi
3958
3959
3960 test -n "$CC" && break
3961 done
3962 fi
3963 if test -z "$CC"; then
3964 ac_ct_CC=$CC
3965 for ac_prog in cl.exe
3966 do
3967 # Extract the first word of "$ac_prog", so it can be a program name with args.
3968 set dummy $ac_prog; 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_ac_ct_CC+:} false; then :
3972 $as_echo_n "(cached) " >&6
3973 else
3974 if test -n "$ac_ct_CC"; then
3975 ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="$ac_prog"
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 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3995 if test -n "$ac_ct_CC"; then
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3997 $as_echo "$ac_ct_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 test -n "$ac_ct_CC" && break
4005 done
4006
4007 if test "x$ac_ct_CC" = x; then
4008 CC=""
4009 else
4010 case $cross_compiling:$ac_tool_warned in
4011 yes:)
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4013 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4014 ac_tool_warned=yes ;;
4015 esac
4016 CC=$ac_ct_CC
4017 fi
4018 fi
4019
4020 fi
4021
4022
4023 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4024 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4025 as_fn_error $? "no acceptable C compiler found in \$PATH
4026 See \`config.log' for more details" "$LINENO" 5; }
4027
4028 # Provide some information about the compiler.
4029 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4030 set X $ac_compile
4031 ac_compiler=$2
4032 for ac_option in --version -v -V -qversion; do
4033 { { ac_try="$ac_compiler $ac_option >&5"
4034 case "(($ac_try" in
4035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4036 *) ac_try_echo=$ac_try;;
4037 esac
4038 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4039 $as_echo "$ac_try_echo"; } >&5
4040 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4041 ac_status=$?
4042 if test -s conftest.err; then
4043 sed '10a\
4044 ... rest of stderr output deleted ...
4045 10q' conftest.err >conftest.er1
4046 cat conftest.er1 >&5
4047 fi
4048 rm -f conftest.er1 conftest.err
4049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4050 test $ac_status = 0; }
4051 done
4052
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4054 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4055 if ${ac_cv_c_compiler_gnu+:} false; then :
4056 $as_echo_n "(cached) " >&6
4057 else
4058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4059 /* end confdefs.h. */
4060
4061 int
4062 main ()
4063 {
4064 #ifndef __GNUC__
4065 choke me
4066 #endif
4067
4068 ;
4069 return 0;
4070 }
4071 _ACEOF
4072 if ac_fn_c_try_compile "$LINENO"; then :
4073 ac_compiler_gnu=yes
4074 else
4075 ac_compiler_gnu=no
4076 fi
4077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4078 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4079
4080 fi
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4082 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4083 if test $ac_compiler_gnu = yes; then
4084 GCC=yes
4085 else
4086 GCC=
4087 fi
4088 ac_test_CFLAGS=${CFLAGS+set}
4089 ac_save_CFLAGS=$CFLAGS
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4091 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4092 if ${ac_cv_prog_cc_g+:} false; then :
4093 $as_echo_n "(cached) " >&6
4094 else
4095 ac_save_c_werror_flag=$ac_c_werror_flag
4096 ac_c_werror_flag=yes
4097 ac_cv_prog_cc_g=no
4098 CFLAGS="-g"
4099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4100 /* end confdefs.h. */
4101
4102 int
4103 main ()
4104 {
4105
4106 ;
4107 return 0;
4108 }
4109 _ACEOF
4110 if ac_fn_c_try_compile "$LINENO"; then :
4111 ac_cv_prog_cc_g=yes
4112 else
4113 CFLAGS=""
4114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4115 /* end confdefs.h. */
4116
4117 int
4118 main ()
4119 {
4120
4121 ;
4122 return 0;
4123 }
4124 _ACEOF
4125 if ac_fn_c_try_compile "$LINENO"; then :
4126
4127 else
4128 ac_c_werror_flag=$ac_save_c_werror_flag
4129 CFLAGS="-g"
4130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4131 /* end confdefs.h. */
4132
4133 int
4134 main ()
4135 {
4136
4137 ;
4138 return 0;
4139 }
4140 _ACEOF
4141 if ac_fn_c_try_compile "$LINENO"; then :
4142 ac_cv_prog_cc_g=yes
4143 fi
4144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4145 fi
4146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4147 fi
4148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4149 ac_c_werror_flag=$ac_save_c_werror_flag
4150 fi
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4152 $as_echo "$ac_cv_prog_cc_g" >&6; }
4153 if test "$ac_test_CFLAGS" = set; then
4154 CFLAGS=$ac_save_CFLAGS
4155 elif test $ac_cv_prog_cc_g = yes; then
4156 if test "$GCC" = yes; then
4157 CFLAGS="-g -O2"
4158 else
4159 CFLAGS="-g"
4160 fi
4161 else
4162 if test "$GCC" = yes; then
4163 CFLAGS="-O2"
4164 else
4165 CFLAGS=
4166 fi
4167 fi
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4169 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4170 if ${ac_cv_prog_cc_c89+:} false; then :
4171 $as_echo_n "(cached) " >&6
4172 else
4173 ac_cv_prog_cc_c89=no
4174 ac_save_CC=$CC
4175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4176 /* end confdefs.h. */
4177 #include <stdarg.h>
4178 #include <stdio.h>
4179 struct stat;
4180 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4181 struct buf { int x; };
4182 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4183 static char *e (p, i)
4184 char **p;
4185 int i;
4186 {
4187 return p[i];
4188 }
4189 static char *f (char * (*g) (char **, int), char **p, ...)
4190 {
4191 char *s;
4192 va_list v;
4193 va_start (v,p);
4194 s = g (p, va_arg (v,int));
4195 va_end (v);
4196 return s;
4197 }
4198
4199 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4200 function prototypes and stuff, but not '\xHH' hex character constants.
4201 These don't provoke an error unfortunately, instead are silently treated
4202 as 'x'. The following induces an error, until -std is added to get
4203 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4204 array size at least. It's necessary to write '\x00'==0 to get something
4205 that's true only with -std. */
4206 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4207
4208 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4209 inside strings and character constants. */
4210 #define FOO(x) 'x'
4211 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4212
4213 int test (int i, double x);
4214 struct s1 {int (*f) (int a);};
4215 struct s2 {int (*f) (double a);};
4216 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4217 int argc;
4218 char **argv;
4219 int
4220 main ()
4221 {
4222 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4223 ;
4224 return 0;
4225 }
4226 _ACEOF
4227 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4228 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4229 do
4230 CC="$ac_save_CC $ac_arg"
4231 if ac_fn_c_try_compile "$LINENO"; then :
4232 ac_cv_prog_cc_c89=$ac_arg
4233 fi
4234 rm -f core conftest.err conftest.$ac_objext
4235 test "x$ac_cv_prog_cc_c89" != "xno" && break
4236 done
4237 rm -f conftest.$ac_ext
4238 CC=$ac_save_CC
4239
4240 fi
4241 # AC_CACHE_VAL
4242 case "x$ac_cv_prog_cc_c89" in
4243 x)
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4245 $as_echo "none needed" >&6; } ;;
4246 xno)
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4248 $as_echo "unsupported" >&6; } ;;
4249 *)
4250 CC="$CC $ac_cv_prog_cc_c89"
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4252 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4253 esac
4254 if test "x$ac_cv_prog_cc_c89" != xno; then :
4255
4256 fi
4257
4258 ac_ext=c
4259 ac_cpp='$CPP $CPPFLAGS'
4260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4263
4264 ac_ext=c
4265 ac_cpp='$CPP $CPPFLAGS'
4266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4270 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4271 if ${am_cv_prog_cc_c_o+:} false; then :
4272 $as_echo_n "(cached) " >&6
4273 else
4274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4275 /* end confdefs.h. */
4276
4277 int
4278 main ()
4279 {
4280
4281 ;
4282 return 0;
4283 }
4284 _ACEOF
4285 # Make sure it works both with $CC and with simple cc.
4286 # Following AC_PROG_CC_C_O, we do the test twice because some
4287 # compilers refuse to overwrite an existing .o file with -o,
4288 # though they will create one.
4289 am_cv_prog_cc_c_o=yes
4290 for am_i in 1 2; do
4291 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4292 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4293 ac_status=$?
4294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295 (exit $ac_status); } \
4296 && test -f conftest2.$ac_objext; then
4297 : OK
4298 else
4299 am_cv_prog_cc_c_o=no
4300 break
4301 fi
4302 done
4303 rm -f core conftest*
4304 unset am_i
4305 fi
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4307 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4308 if test "$am_cv_prog_cc_c_o" != yes; then
4309 # Losing compiler, so override with the script.
4310 # FIXME: It is wrong to rewrite CC.
4311 # But if we don't then we get into trouble of one sort or another.
4312 # A longer-term fix would be to have automake use am__CC in this case,
4313 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4314 CC="$am_aux_dir/compile $CC"
4315 fi
4316 ac_ext=c
4317 ac_cpp='$CPP $CPPFLAGS'
4318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4321
4322
4323 depcc="$CC" am_compiler_list=
4324
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4326 $as_echo_n "checking dependency style of $depcc... " >&6; }
4327 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4328 $as_echo_n "(cached) " >&6
4329 else
4330 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4331 # We make a subdir and do the tests there. Otherwise we can end up
4332 # making bogus files that we don't know about and never remove. For
4333 # instance it was reported that on HP-UX the gcc test will end up
4334 # making a dummy file named 'D' -- because '-MD' means "put the output
4335 # in D".
4336 rm -rf conftest.dir
4337 mkdir conftest.dir
4338 # Copy depcomp to subdir because otherwise we won't find it if we're
4339 # using a relative directory.
4340 cp "$am_depcomp" conftest.dir
4341 cd conftest.dir
4342 # We will build objects and dependencies in a subdirectory because
4343 # it helps to detect inapplicable dependency modes. For instance
4344 # both Tru64's cc and ICC support -MD to output dependencies as a
4345 # side effect of compilation, but ICC will put the dependencies in
4346 # the current directory while Tru64 will put them in the object
4347 # directory.
4348 mkdir sub
4349
4350 am_cv_CC_dependencies_compiler_type=none
4351 if test "$am_compiler_list" = ""; then
4352 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4353 fi
4354 am__universal=false
4355 case " $depcc " in #(
4356 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4357 esac
4358
4359 for depmode in $am_compiler_list; do
4360 # Setup a source with many dependencies, because some compilers
4361 # like to wrap large dependency lists on column 80 (with \), and
4362 # we should not choose a depcomp mode which is confused by this.
4363 #
4364 # We need to recreate these files for each test, as the compiler may
4365 # overwrite some of them when testing with obscure command lines.
4366 # This happens at least with the AIX C compiler.
4367 : > sub/conftest.c
4368 for i in 1 2 3 4 5 6; do
4369 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4370 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4371 # Solaris 10 /bin/sh.
4372 echo '/* dummy */' > sub/conftst$i.h
4373 done
4374 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4375
4376 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4377 # mode. It turns out that the SunPro C++ compiler does not properly
4378 # handle '-M -o', and we need to detect this. Also, some Intel
4379 # versions had trouble with output in subdirs.
4380 am__obj=sub/conftest.${OBJEXT-o}
4381 am__minus_obj="-o $am__obj"
4382 case $depmode in
4383 gcc)
4384 # This depmode causes a compiler race in universal mode.
4385 test "$am__universal" = false || continue
4386 ;;
4387 nosideeffect)
4388 # After this tag, mechanisms are not by side-effect, so they'll
4389 # only be used when explicitly requested.
4390 if test "x$enable_dependency_tracking" = xyes; then
4391 continue
4392 else
4393 break
4394 fi
4395 ;;
4396 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4397 # This compiler won't grok '-c -o', but also, the minuso test has
4398 # not run yet. These depmodes are late enough in the game, and
4399 # so weak that their functioning should not be impacted.
4400 am__obj=conftest.${OBJEXT-o}
4401 am__minus_obj=
4402 ;;
4403 none) break ;;
4404 esac
4405 if depmode=$depmode \
4406 source=sub/conftest.c object=$am__obj \
4407 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4408 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4409 >/dev/null 2>conftest.err &&
4410 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4411 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4412 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4413 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4414 # icc doesn't choke on unknown options, it will just issue warnings
4415 # or remarks (even with -Werror). So we grep stderr for any message
4416 # that says an option was ignored or not supported.
4417 # When given -MP, icc 7.0 and 7.1 complain thusly:
4418 # icc: Command line warning: ignoring option '-M'; no argument required
4419 # The diagnosis changed in icc 8.0:
4420 # icc: Command line remark: option '-MP' not supported
4421 if (grep 'ignoring option' conftest.err ||
4422 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4423 am_cv_CC_dependencies_compiler_type=$depmode
4424 break
4425 fi
4426 fi
4427 done
4428
4429 cd ..
4430 rm -rf conftest.dir
4431 else
4432 am_cv_CC_dependencies_compiler_type=none
4433 fi
4434
4435 fi
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4437 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4438 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4439
4440 if
4441 test "x$enable_dependency_tracking" != xno \
4442 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4443 am__fastdepCC_TRUE=
4444 am__fastdepCC_FALSE='#'
4445 else
4446 am__fastdepCC_TRUE='#'
4447 am__fastdepCC_FALSE=
4448 fi
4449
4450
4451
4452
4453 case `pwd` in
4454 *\ * | *\ *)
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4456 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4457 esac
4458
4459
4460
4461 macro_version='2.4.2'
4462 macro_revision='1.3337'
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476 ltmain="$ac_aux_dir/ltmain.sh"
4477
4478 # Make sure we can run config.sub.
4479 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4480 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4481
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4483 $as_echo_n "checking build system type... " >&6; }
4484 if ${ac_cv_build+:} false; then :
4485 $as_echo_n "(cached) " >&6
4486 else
4487 ac_build_alias=$build_alias
4488 test "x$ac_build_alias" = x &&
4489 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4490 test "x$ac_build_alias" = x &&
4491 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4492 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4493 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4494
4495 fi
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4497 $as_echo "$ac_cv_build" >&6; }
4498 case $ac_cv_build in
4499 *-*-*) ;;
4500 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4501 esac
4502 build=$ac_cv_build
4503 ac_save_IFS=$IFS; IFS='-'
4504 set x $ac_cv_build
4505 shift
4506 build_cpu=$1
4507 build_vendor=$2
4508 shift; shift
4509 # Remember, the first character of IFS is used to create $*,
4510 # except with old shells:
4511 build_os=$*
4512 IFS=$ac_save_IFS
4513 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4514
4515
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4517 $as_echo_n "checking host system type... " >&6; }
4518 if ${ac_cv_host+:} false; then :
4519 $as_echo_n "(cached) " >&6
4520 else
4521 if test "x$host_alias" = x; then
4522 ac_cv_host=$ac_cv_build
4523 else
4524 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4525 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4526 fi
4527
4528 fi
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4530 $as_echo "$ac_cv_host" >&6; }
4531 case $ac_cv_host in
4532 *-*-*) ;;
4533 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4534 esac
4535 host=$ac_cv_host
4536 ac_save_IFS=$IFS; IFS='-'
4537 set x $ac_cv_host
4538 shift
4539 host_cpu=$1
4540 host_vendor=$2
4541 shift; shift
4542 # Remember, the first character of IFS is used to create $*,
4543 # except with old shells:
4544 host_os=$*
4545 IFS=$ac_save_IFS
4546 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4547
4548
4549 # Backslashify metacharacters that are still active within
4550 # double-quoted strings.
4551 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4552
4553 # Same as above, but do not quote variable references.
4554 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4555
4556 # Sed substitution to delay expansion of an escaped shell variable in a
4557 # double_quote_subst'ed string.
4558 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4559
4560 # Sed substitution to delay expansion of an escaped single quote.
4561 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4562
4563 # Sed substitution to avoid accidental globbing in evaled expressions
4564 no_glob_subst='s/\*/\\\*/g'
4565
4566 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4567 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4568 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4569
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4571 $as_echo_n "checking how to print strings... " >&6; }
4572 # Test print first, because it will be a builtin if present.
4573 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4574 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4575 ECHO='print -r --'
4576 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4577 ECHO='printf %s\n'
4578 else
4579 # Use this function as a fallback that always works.
4580 func_fallback_echo ()
4581 {
4582 eval 'cat <<_LTECHO_EOF
4583 $1
4584 _LTECHO_EOF'
4585 }
4586 ECHO='func_fallback_echo'
4587 fi
4588
4589 # func_echo_all arg...
4590 # Invoke $ECHO with all args, space-separated.
4591 func_echo_all ()
4592 {
4593 $ECHO ""
4594 }
4595
4596 case "$ECHO" in
4597 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4598 $as_echo "printf" >&6; } ;;
4599 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4600 $as_echo "print -r" >&6; } ;;
4601 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4602 $as_echo "cat" >&6; } ;;
4603 esac
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4619 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4620 if ${ac_cv_path_SED+:} false; then :
4621 $as_echo_n "(cached) " >&6
4622 else
4623 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4624 for ac_i in 1 2 3 4 5 6 7; do
4625 ac_script="$ac_script$as_nl$ac_script"
4626 done
4627 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4628 { ac_script=; unset ac_script;}
4629 if test -z "$SED"; then
4630 ac_path_SED_found=false
4631 # Loop through the user's path and test for each of PROGNAME-LIST
4632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4633 for as_dir in $PATH
4634 do
4635 IFS=$as_save_IFS
4636 test -z "$as_dir" && as_dir=.
4637 for ac_prog in sed gsed; do
4638 for ac_exec_ext in '' $ac_executable_extensions; do
4639 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4640 as_fn_executable_p "$ac_path_SED" || continue
4641 # Check for GNU ac_path_SED and select it if it is found.
4642 # Check for GNU $ac_path_SED
4643 case `"$ac_path_SED" --version 2>&1` in
4644 *GNU*)
4645 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4646 *)
4647 ac_count=0
4648 $as_echo_n 0123456789 >"conftest.in"
4649 while :
4650 do
4651 cat "conftest.in" "conftest.in" >"conftest.tmp"
4652 mv "conftest.tmp" "conftest.in"
4653 cp "conftest.in" "conftest.nl"
4654 $as_echo '' >> "conftest.nl"
4655 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4656 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4657 as_fn_arith $ac_count + 1 && ac_count=$as_val
4658 if test $ac_count -gt ${ac_path_SED_max-0}; then
4659 # Best one so far, save it but keep looking for a better one
4660 ac_cv_path_SED="$ac_path_SED"
4661 ac_path_SED_max=$ac_count
4662 fi
4663 # 10*(2^10) chars as input seems more than enough
4664 test $ac_count -gt 10 && break
4665 done
4666 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4667 esac
4668
4669 $ac_path_SED_found && break 3
4670 done
4671 done
4672 done
4673 IFS=$as_save_IFS
4674 if test -z "$ac_cv_path_SED"; then
4675 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4676 fi
4677 else
4678 ac_cv_path_SED=$SED
4679 fi
4680
4681 fi
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4683 $as_echo "$ac_cv_path_SED" >&6; }
4684 SED="$ac_cv_path_SED"
4685 rm -f conftest.sed
4686
4687 test -z "$SED" && SED=sed
4688 Xsed="$SED -e 1s/^X//"
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4701 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4702 if ${ac_cv_path_GREP+:} false; then :
4703 $as_echo_n "(cached) " >&6
4704 else
4705 if test -z "$GREP"; then
4706 ac_path_GREP_found=false
4707 # Loop through the user's path and test for each of PROGNAME-LIST
4708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4709 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4710 do
4711 IFS=$as_save_IFS
4712 test -z "$as_dir" && as_dir=.
4713 for ac_prog in grep ggrep; do
4714 for ac_exec_ext in '' $ac_executable_extensions; do
4715 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4716 as_fn_executable_p "$ac_path_GREP" || continue
4717 # Check for GNU ac_path_GREP and select it if it is found.
4718 # Check for GNU $ac_path_GREP
4719 case `"$ac_path_GREP" --version 2>&1` in
4720 *GNU*)
4721 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4722 *)
4723 ac_count=0
4724 $as_echo_n 0123456789 >"conftest.in"
4725 while :
4726 do
4727 cat "conftest.in" "conftest.in" >"conftest.tmp"
4728 mv "conftest.tmp" "conftest.in"
4729 cp "conftest.in" "conftest.nl"
4730 $as_echo 'GREP' >> "conftest.nl"
4731 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4732 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4733 as_fn_arith $ac_count + 1 && ac_count=$as_val
4734 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4735 # Best one so far, save it but keep looking for a better one
4736 ac_cv_path_GREP="$ac_path_GREP"
4737 ac_path_GREP_max=$ac_count
4738 fi
4739 # 10*(2^10) chars as input seems more than enough
4740 test $ac_count -gt 10 && break
4741 done
4742 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4743 esac
4744
4745 $ac_path_GREP_found && break 3
4746 done
4747 done
4748 done
4749 IFS=$as_save_IFS
4750 if test -z "$ac_cv_path_GREP"; then
4751 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4752 fi
4753 else
4754 ac_cv_path_GREP=$GREP
4755 fi
4756
4757 fi
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4759 $as_echo "$ac_cv_path_GREP" >&6; }
4760 GREP="$ac_cv_path_GREP"
4761
4762
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4764 $as_echo_n "checking for egrep... " >&6; }
4765 if ${ac_cv_path_EGREP+:} false; then :
4766 $as_echo_n "(cached) " >&6
4767 else
4768 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4769 then ac_cv_path_EGREP="$GREP -E"
4770 else
4771 if test -z "$EGREP"; then
4772 ac_path_EGREP_found=false
4773 # Loop through the user's path and test for each of PROGNAME-LIST
4774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4775 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4776 do
4777 IFS=$as_save_IFS
4778 test -z "$as_dir" && as_dir=.
4779 for ac_prog in egrep; do
4780 for ac_exec_ext in '' $ac_executable_extensions; do
4781 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4782 as_fn_executable_p "$ac_path_EGREP" || continue
4783 # Check for GNU ac_path_EGREP and select it if it is found.
4784 # Check for GNU $ac_path_EGREP
4785 case `"$ac_path_EGREP" --version 2>&1` in
4786 *GNU*)
4787 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4788 *)
4789 ac_count=0
4790 $as_echo_n 0123456789 >"conftest.in"
4791 while :
4792 do
4793 cat "conftest.in" "conftest.in" >"conftest.tmp"
4794 mv "conftest.tmp" "conftest.in"
4795 cp "conftest.in" "conftest.nl"
4796 $as_echo 'EGREP' >> "conftest.nl"
4797 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4798 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4799 as_fn_arith $ac_count + 1 && ac_count=$as_val
4800 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4801 # Best one so far, save it but keep looking for a better one
4802 ac_cv_path_EGREP="$ac_path_EGREP"
4803 ac_path_EGREP_max=$ac_count
4804 fi
4805 # 10*(2^10) chars as input seems more than enough
4806 test $ac_count -gt 10 && break
4807 done
4808 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4809 esac
4810
4811 $ac_path_EGREP_found && break 3
4812 done
4813 done
4814 done
4815 IFS=$as_save_IFS
4816 if test -z "$ac_cv_path_EGREP"; then
4817 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4818 fi
4819 else
4820 ac_cv_path_EGREP=$EGREP
4821 fi
4822
4823 fi
4824 fi
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4826 $as_echo "$ac_cv_path_EGREP" >&6; }
4827 EGREP="$ac_cv_path_EGREP"
4828
4829
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4831 $as_echo_n "checking for fgrep... " >&6; }
4832 if ${ac_cv_path_FGREP+:} false; then :
4833 $as_echo_n "(cached) " >&6
4834 else
4835 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4836 then ac_cv_path_FGREP="$GREP -F"
4837 else
4838 if test -z "$FGREP"; then
4839 ac_path_FGREP_found=false
4840 # Loop through the user's path and test for each of PROGNAME-LIST
4841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4842 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4843 do
4844 IFS=$as_save_IFS
4845 test -z "$as_dir" && as_dir=.
4846 for ac_prog in fgrep; do
4847 for ac_exec_ext in '' $ac_executable_extensions; do
4848 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4849 as_fn_executable_p "$ac_path_FGREP" || continue
4850 # Check for GNU ac_path_FGREP and select it if it is found.
4851 # Check for GNU $ac_path_FGREP
4852 case `"$ac_path_FGREP" --version 2>&1` in
4853 *GNU*)
4854 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4855 *)
4856 ac_count=0
4857 $as_echo_n 0123456789 >"conftest.in"
4858 while :
4859 do
4860 cat "conftest.in" "conftest.in" >"conftest.tmp"
4861 mv "conftest.tmp" "conftest.in"
4862 cp "conftest.in" "conftest.nl"
4863 $as_echo 'FGREP' >> "conftest.nl"
4864 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4865 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4866 as_fn_arith $ac_count + 1 && ac_count=$as_val
4867 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4868 # Best one so far, save it but keep looking for a better one
4869 ac_cv_path_FGREP="$ac_path_FGREP"
4870 ac_path_FGREP_max=$ac_count
4871 fi
4872 # 10*(2^10) chars as input seems more than enough
4873 test $ac_count -gt 10 && break
4874 done
4875 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4876 esac
4877
4878 $ac_path_FGREP_found && break 3
4879 done
4880 done
4881 done
4882 IFS=$as_save_IFS
4883 if test -z "$ac_cv_path_FGREP"; then
4884 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4885 fi
4886 else
4887 ac_cv_path_FGREP=$FGREP
4888 fi
4889
4890 fi
4891 fi
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4893 $as_echo "$ac_cv_path_FGREP" >&6; }
4894 FGREP="$ac_cv_path_FGREP"
4895
4896
4897 test -z "$GREP" && GREP=grep
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917 # Check whether --with-gnu-ld was given.
4918 if test "${with_gnu_ld+set}" = set; then :
4919 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4920 else
4921 with_gnu_ld=no
4922 fi
4923
4924 ac_prog=ld
4925 if test "$GCC" = yes; then
4926 # Check if gcc -print-prog-name=ld gives a path.
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4928 $as_echo_n "checking for ld used by $CC... " >&6; }
4929 case $host in
4930 *-*-mingw*)
4931 # gcc leaves a trailing carriage return which upsets mingw
4932 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4933 *)
4934 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4935 esac
4936 case $ac_prog in
4937 # Accept absolute paths.
4938 [\\/]* | ?:[\\/]*)
4939 re_direlt='/[^/][^/]*/\.\./'
4940 # Canonicalize the pathname of ld
4941 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4942 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4943 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4944 done
4945 test -z "$LD" && LD="$ac_prog"
4946 ;;
4947 "")
4948 # If it fails, then pretend we aren't using GCC.
4949 ac_prog=ld
4950 ;;
4951 *)
4952 # If it is relative, then search for the first ld in PATH.
4953 with_gnu_ld=unknown
4954 ;;
4955 esac
4956 elif test "$with_gnu_ld" = yes; then
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4958 $as_echo_n "checking for GNU ld... " >&6; }
4959 else
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4961 $as_echo_n "checking for non-GNU ld... " >&6; }
4962 fi
4963 if ${lt_cv_path_LD+:} false; then :
4964 $as_echo_n "(cached) " >&6
4965 else
4966 if test -z "$LD"; then
4967 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4968 for ac_dir in $PATH; do
4969 IFS="$lt_save_ifs"
4970 test -z "$ac_dir" && ac_dir=.
4971 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4972 lt_cv_path_LD="$ac_dir/$ac_prog"
4973 # Check to see if the program is GNU ld. I'd rather use --version,
4974 # but apparently some variants of GNU ld only accept -v.
4975 # Break only if it was the GNU/non-GNU ld that we prefer.
4976 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4977 *GNU* | *'with BFD'*)
4978 test "$with_gnu_ld" != no && break
4979 ;;
4980 *)
4981 test "$with_gnu_ld" != yes && break
4982 ;;
4983 esac
4984 fi
4985 done
4986 IFS="$lt_save_ifs"
4987 else
4988 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4989 fi
4990 fi
4991
4992 LD="$lt_cv_path_LD"
4993 if test -n "$LD"; then
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4995 $as_echo "$LD" >&6; }
4996 else
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4998 $as_echo "no" >&6; }
4999 fi
5000 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5002 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5003 if ${lt_cv_prog_gnu_ld+:} false; then :
5004 $as_echo_n "(cached) " >&6
5005 else
5006 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5007 case `$LD -v 2>&1 </dev/null` in
5008 *GNU* | *'with BFD'*)
5009 lt_cv_prog_gnu_ld=yes
5010 ;;
5011 *)
5012 lt_cv_prog_gnu_ld=no
5013 ;;
5014 esac
5015 fi
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5017 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5018 with_gnu_ld=$lt_cv_prog_gnu_ld
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5029 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5030 if ${lt_cv_path_NM+:} false; then :
5031 $as_echo_n "(cached) " >&6
5032 else
5033 if test -n "$NM"; then
5034 # Let the user override the test.
5035 lt_cv_path_NM="$NM"
5036 else
5037 lt_nm_to_check="${ac_tool_prefix}nm"
5038 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5039 lt_nm_to_check="$lt_nm_to_check nm"
5040 fi
5041 for lt_tmp_nm in $lt_nm_to_check; do
5042 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5043 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5044 IFS="$lt_save_ifs"
5045 test -z "$ac_dir" && ac_dir=.
5046 tmp_nm="$ac_dir/$lt_tmp_nm"
5047 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5048 # Check to see if the nm accepts a BSD-compat flag.
5049 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5050 # nm: unknown option "B" ignored
5051 # Tru64's nm complains that /dev/null is an invalid object file
5052 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5053 */dev/null* | *'Invalid file or object type'*)
5054 lt_cv_path_NM="$tmp_nm -B"
5055 break
5056 ;;
5057 *)
5058 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5059 */dev/null*)
5060 lt_cv_path_NM="$tmp_nm -p"
5061 break
5062 ;;
5063 *)
5064 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5065 continue # so that we can try to find one that supports BSD flags
5066 ;;
5067 esac
5068 ;;
5069 esac
5070 fi
5071 done
5072 IFS="$lt_save_ifs"
5073 done
5074 : ${lt_cv_path_NM=no}
5075 fi
5076 fi
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5078 $as_echo "$lt_cv_path_NM" >&6; }
5079 if test "$lt_cv_path_NM" != "no"; then
5080 NM="$lt_cv_path_NM"
5081 else
5082 # Didn't find any BSD compatible name lister, look for dumpbin.
5083 if test -n "$DUMPBIN"; then :
5084 # Let the user override the test.
5085 else
5086 if test -n "$ac_tool_prefix"; then
5087 for ac_prog in dumpbin "link -dump"
5088 do
5089 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5090 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5092 $as_echo_n "checking for $ac_word... " >&6; }
5093 if ${ac_cv_prog_DUMPBIN+:} false; then :
5094 $as_echo_n "(cached) " >&6
5095 else
5096 if test -n "$DUMPBIN"; then
5097 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5098 else
5099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5100 for as_dir in $PATH
5101 do
5102 IFS=$as_save_IFS
5103 test -z "$as_dir" && as_dir=.
5104 for ac_exec_ext in '' $ac_executable_extensions; do
5105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5106 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5108 break 2
5109 fi
5110 done
5111 done
5112 IFS=$as_save_IFS
5113
5114 fi
5115 fi
5116 DUMPBIN=$ac_cv_prog_DUMPBIN
5117 if test -n "$DUMPBIN"; then
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5119 $as_echo "$DUMPBIN" >&6; }
5120 else
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5122 $as_echo "no" >&6; }
5123 fi
5124
5125
5126 test -n "$DUMPBIN" && break
5127 done
5128 fi
5129 if test -z "$DUMPBIN"; then
5130 ac_ct_DUMPBIN=$DUMPBIN
5131 for ac_prog in dumpbin "link -dump"
5132 do
5133 # Extract the first word of "$ac_prog", so it can be a program name with args.
5134 set dummy $ac_prog; ac_word=$2
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5136 $as_echo_n "checking for $ac_word... " >&6; }
5137 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5138 $as_echo_n "(cached) " >&6
5139 else
5140 if test -n "$ac_ct_DUMPBIN"; then
5141 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5142 else
5143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5144 for as_dir in $PATH
5145 do
5146 IFS=$as_save_IFS
5147 test -z "$as_dir" && as_dir=.
5148 for ac_exec_ext in '' $ac_executable_extensions; do
5149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5150 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5152 break 2
5153 fi
5154 done
5155 done
5156 IFS=$as_save_IFS
5157
5158 fi
5159 fi
5160 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5161 if test -n "$ac_ct_DUMPBIN"; then
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5163 $as_echo "$ac_ct_DUMPBIN" >&6; }
5164 else
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5166 $as_echo "no" >&6; }
5167 fi
5168
5169
5170 test -n "$ac_ct_DUMPBIN" && break
5171 done
5172
5173 if test "x$ac_ct_DUMPBIN" = x; then
5174 DUMPBIN=":"
5175 else
5176 case $cross_compiling:$ac_tool_warned in
5177 yes:)
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5179 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5180 ac_tool_warned=yes ;;
5181 esac
5182 DUMPBIN=$ac_ct_DUMPBIN
5183 fi
5184 fi
5185
5186 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5187 *COFF*)
5188 DUMPBIN="$DUMPBIN -symbols"
5189 ;;
5190 *)
5191 DUMPBIN=:
5192 ;;
5193 esac
5194 fi
5195
5196 if test "$DUMPBIN" != ":"; then
5197 NM="$DUMPBIN"
5198 fi
5199 fi
5200 test -z "$NM" && NM=nm
5201
5202
5203
5204
5205
5206
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5208 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5209 if ${lt_cv_nm_interface+:} false; then :
5210 $as_echo_n "(cached) " >&6
5211 else
5212 lt_cv_nm_interface="BSD nm"
5213 echo "int some_variable = 0;" > conftest.$ac_ext
5214 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5215 (eval "$ac_compile" 2>conftest.err)
5216 cat conftest.err >&5
5217 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5218 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5219 cat conftest.err >&5
5220 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5221 cat conftest.out >&5
5222 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5223 lt_cv_nm_interface="MS dumpbin"
5224 fi
5225 rm -f conftest*
5226 fi
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5228 $as_echo "$lt_cv_nm_interface" >&6; }
5229
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5231 $as_echo_n "checking whether ln -s works... " >&6; }
5232 LN_S=$as_ln_s
5233 if test "$LN_S" = "ln -s"; then
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5235 $as_echo "yes" >&6; }
5236 else
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5238 $as_echo "no, using $LN_S" >&6; }
5239 fi
5240
5241 # find the maximum length of command line arguments
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5243 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5244 if ${lt_cv_sys_max_cmd_len+:} false; then :
5245 $as_echo_n "(cached) " >&6
5246 else
5247 i=0
5248 teststring="ABCD"
5249
5250 case $build_os in
5251 msdosdjgpp*)
5252 # On DJGPP, this test can blow up pretty badly due to problems in libc
5253 # (any single argument exceeding 2000 bytes causes a buffer overrun
5254 # during glob expansion). Even if it were fixed, the result of this
5255 # check would be larger than it should be.
5256 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5257 ;;
5258
5259 gnu*)
5260 # Under GNU Hurd, this test is not required because there is
5261 # no limit to the length of command line arguments.
5262 # Libtool will interpret -1 as no limit whatsoever
5263 lt_cv_sys_max_cmd_len=-1;
5264 ;;
5265
5266 cygwin* | mingw* | cegcc*)
5267 # On Win9x/ME, this test blows up -- it succeeds, but takes
5268 # about 5 minutes as the teststring grows exponentially.
5269 # Worse, since 9x/ME are not pre-emptively multitasking,
5270 # you end up with a "frozen" computer, even though with patience
5271 # the test eventually succeeds (with a max line length of 256k).
5272 # Instead, let's just punt: use the minimum linelength reported by
5273 # all of the supported platforms: 8192 (on NT/2K/XP).
5274 lt_cv_sys_max_cmd_len=8192;
5275 ;;
5276
5277 mint*)
5278 # On MiNT this can take a long time and run out of memory.
5279 lt_cv_sys_max_cmd_len=8192;
5280 ;;
5281
5282 amigaos*)
5283 # On AmigaOS with pdksh, this test takes hours, literally.
5284 # So we just punt and use a minimum line length of 8192.
5285 lt_cv_sys_max_cmd_len=8192;
5286 ;;
5287
5288 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5289 # This has been around since 386BSD, at least. Likely further.
5290 if test -x /sbin/sysctl; then
5291 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5292 elif test -x /usr/sbin/sysctl; then
5293 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5294 else
5295 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5296 fi
5297 # And add a safety zone
5298 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5299 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5300 ;;
5301
5302 interix*)
5303 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5304 lt_cv_sys_max_cmd_len=196608
5305 ;;
5306
5307 os2*)
5308 # The test takes a long time on OS/2.
5309 lt_cv_sys_max_cmd_len=8192
5310 ;;
5311
5312 osf*)
5313 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5314 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5315 # nice to cause kernel panics so lets avoid the loop below.
5316 # First set a reasonable default.
5317 lt_cv_sys_max_cmd_len=16384
5318 #
5319 if test -x /sbin/sysconfig; then
5320 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5321 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5322 esac
5323 fi
5324 ;;
5325 sco3.2v5*)
5326 lt_cv_sys_max_cmd_len=102400
5327 ;;
5328 sysv5* | sco5v6* | sysv4.2uw2*)
5329 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5330 if test -n "$kargmax"; then
5331 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5332 else
5333 lt_cv_sys_max_cmd_len=32768
5334 fi
5335 ;;
5336 *)
5337 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5338 if test -n "$lt_cv_sys_max_cmd_len" && \
5339 test undefined != "$lt_cv_sys_max_cmd_len"; then
5340 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5341 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5342 else
5343 # Make teststring a little bigger before we do anything with it.
5344 # a 1K string should be a reasonable start.
5345 for i in 1 2 3 4 5 6 7 8 ; do
5346 teststring=$teststring$teststring
5347 done
5348 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5349 # If test is not a shell built-in, we'll probably end up computing a
5350 # maximum length that is only half of the actual maximum length, but
5351 # we can't tell.
5352 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5353 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5354 test $i != 17 # 1/2 MB should be enough
5355 do
5356 i=`expr $i + 1`
5357 teststring=$teststring$teststring
5358 done
5359 # Only check the string length outside the loop.
5360 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5361 teststring=
5362 # Add a significant safety factor because C++ compilers can tack on
5363 # massive amounts of additional arguments before passing them to the
5364 # linker. It appears as though 1/2 is a usable value.
5365 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5366 fi
5367 ;;
5368 esac
5369
5370 fi
5371
5372 if test -n $lt_cv_sys_max_cmd_len ; then
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5374 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5375 else
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5377 $as_echo "none" >&6; }
5378 fi
5379 max_cmd_len=$lt_cv_sys_max_cmd_len
5380
5381
5382
5383
5384
5385
5386 : ${CP="cp -f"}
5387 : ${MV="mv -f"}
5388 : ${RM="rm -f"}
5389
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5391 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5392 # Try some XSI features
5393 xsi_shell=no
5394 ( _lt_dummy="a/b/c"
5395 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5396 = c,a/b,b/c, \
5397 && eval 'test $(( 1 + 1 )) -eq 2 \
5398 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5399 && xsi_shell=yes
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5401 $as_echo "$xsi_shell" >&6; }
5402
5403
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5405 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5406 lt_shell_append=no
5407 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5408 >/dev/null 2>&1 \
5409 && lt_shell_append=yes
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5411 $as_echo "$lt_shell_append" >&6; }
5412
5413
5414 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5415 lt_unset=unset
5416 else
5417 lt_unset=false
5418 fi
5419
5420
5421
5422
5423
5424 # test EBCDIC or ASCII
5425 case `echo X|tr X '\101'` in
5426 A) # ASCII based system
5427 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5428 lt_SP2NL='tr \040 \012'
5429 lt_NL2SP='tr \015\012 \040\040'
5430 ;;
5431 *) # EBCDIC based system
5432 lt_SP2NL='tr \100 \n'
5433 lt_NL2SP='tr \r\n \100\100'
5434 ;;
5435 esac
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5446 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5447 if ${lt_cv_to_host_file_cmd+:} false; then :
5448 $as_echo_n "(cached) " >&6
5449 else
5450 case $host in
5451 *-*-mingw* )
5452 case $build in
5453 *-*-mingw* ) # actually msys
5454 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5455 ;;
5456 *-*-cygwin* )
5457 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5458 ;;
5459 * ) # otherwise, assume *nix
5460 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5461 ;;
5462 esac
5463 ;;
5464 *-*-cygwin* )
5465 case $build in
5466 *-*-mingw* ) # actually msys
5467 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5468 ;;
5469 *-*-cygwin* )
5470 lt_cv_to_host_file_cmd=func_convert_file_noop
5471 ;;
5472 * ) # otherwise, assume *nix
5473 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5474 ;;
5475 esac
5476 ;;
5477 * ) # unhandled hosts (and "normal" native builds)
5478 lt_cv_to_host_file_cmd=func_convert_file_noop
5479 ;;
5480 esac
5481
5482 fi
5483
5484 to_host_file_cmd=$lt_cv_to_host_file_cmd
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5486 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5487
5488
5489
5490
5491
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5493 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5494 if ${lt_cv_to_tool_file_cmd+:} false; then :
5495 $as_echo_n "(cached) " >&6
5496 else
5497 #assume ordinary cross tools, or native build.
5498 lt_cv_to_tool_file_cmd=func_convert_file_noop
5499 case $host in
5500 *-*-mingw* )
5501 case $build in
5502 *-*-mingw* ) # actually msys
5503 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5504 ;;
5505 esac
5506 ;;
5507 esac
5508
5509 fi
5510
5511 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5513 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5514
5515
5516
5517
5518
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5520 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5521 if ${lt_cv_ld_reload_flag+:} false; then :
5522 $as_echo_n "(cached) " >&6
5523 else
5524 lt_cv_ld_reload_flag='-r'
5525 fi
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5527 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5528 reload_flag=$lt_cv_ld_reload_flag
5529 case $reload_flag in
5530 "" | " "*) ;;
5531 *) reload_flag=" $reload_flag" ;;
5532 esac
5533 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5534 case $host_os in
5535 cygwin* | mingw* | pw32* | cegcc*)
5536 if test "$GCC" != yes; then
5537 reload_cmds=false
5538 fi
5539 ;;
5540 darwin*)
5541 if test "$GCC" = yes; then
5542 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5543 else
5544 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5545 fi
5546 ;;
5547 esac
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557 if test -n "$ac_tool_prefix"; then
5558 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5559 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5561 $as_echo_n "checking for $ac_word... " >&6; }
5562 if ${ac_cv_prog_OBJDUMP+:} false; then :
5563 $as_echo_n "(cached) " >&6
5564 else
5565 if test -n "$OBJDUMP"; then
5566 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5567 else
5568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5569 for as_dir in $PATH
5570 do
5571 IFS=$as_save_IFS
5572 test -z "$as_dir" && as_dir=.
5573 for ac_exec_ext in '' $ac_executable_extensions; do
5574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5575 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5577 break 2
5578 fi
5579 done
5580 done
5581 IFS=$as_save_IFS
5582
5583 fi
5584 fi
5585 OBJDUMP=$ac_cv_prog_OBJDUMP
5586 if test -n "$OBJDUMP"; then
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5588 $as_echo "$OBJDUMP" >&6; }
5589 else
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5591 $as_echo "no" >&6; }
5592 fi
5593
5594
5595 fi
5596 if test -z "$ac_cv_prog_OBJDUMP"; then
5597 ac_ct_OBJDUMP=$OBJDUMP
5598 # Extract the first word of "objdump", so it can be a program name with args.
5599 set dummy objdump; ac_word=$2
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5601 $as_echo_n "checking for $ac_word... " >&6; }
5602 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5603 $as_echo_n "(cached) " >&6
5604 else
5605 if test -n "$ac_ct_OBJDUMP"; then
5606 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5607 else
5608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5609 for as_dir in $PATH
5610 do
5611 IFS=$as_save_IFS
5612 test -z "$as_dir" && as_dir=.
5613 for ac_exec_ext in '' $ac_executable_extensions; do
5614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5615 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5617 break 2
5618 fi
5619 done
5620 done
5621 IFS=$as_save_IFS
5622
5623 fi
5624 fi
5625 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5626 if test -n "$ac_ct_OBJDUMP"; then
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5628 $as_echo "$ac_ct_OBJDUMP" >&6; }
5629 else
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5631 $as_echo "no" >&6; }
5632 fi
5633
5634 if test "x$ac_ct_OBJDUMP" = x; then
5635 OBJDUMP="false"
5636 else
5637 case $cross_compiling:$ac_tool_warned in
5638 yes:)
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5640 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5641 ac_tool_warned=yes ;;
5642 esac
5643 OBJDUMP=$ac_ct_OBJDUMP
5644 fi
5645 else
5646 OBJDUMP="$ac_cv_prog_OBJDUMP"
5647 fi
5648
5649 test -z "$OBJDUMP" && OBJDUMP=objdump
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5660 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5661 if ${lt_cv_deplibs_check_method+:} false; then :
5662 $as_echo_n "(cached) " >&6
5663 else
5664 lt_cv_file_magic_cmd='$MAGIC_CMD'
5665 lt_cv_file_magic_test_file=
5666 lt_cv_deplibs_check_method='unknown'
5667 # Need to set the preceding variable on all platforms that support
5668 # interlibrary dependencies.
5669 # 'none' -- dependencies not supported.
5670 # `unknown' -- same as none, but documents that we really don't know.
5671 # 'pass_all' -- all dependencies passed with no checks.
5672 # 'test_compile' -- check by making test program.
5673 # 'file_magic [[regex]]' -- check by looking for files in library path
5674 # which responds to the $file_magic_cmd with a given extended regex.
5675 # If you have `file' or equivalent on your system and you're not sure
5676 # whether `pass_all' will *always* work, you probably want this one.
5677
5678 case $host_os in
5679 aix[4-9]*)
5680 lt_cv_deplibs_check_method=pass_all
5681 ;;
5682
5683 beos*)
5684 lt_cv_deplibs_check_method=pass_all
5685 ;;
5686
5687 bsdi[45]*)
5688 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5689 lt_cv_file_magic_cmd='/usr/bin/file -L'
5690 lt_cv_file_magic_test_file=/shlib/libc.so
5691 ;;
5692
5693 cygwin*)
5694 # func_win32_libid is a shell function defined in ltmain.sh
5695 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5696 lt_cv_file_magic_cmd='func_win32_libid'
5697 ;;
5698
5699 mingw* | pw32*)
5700 # Base MSYS/MinGW do not provide the 'file' command needed by
5701 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5702 # unless we find 'file', for example because we are cross-compiling.
5703 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5704 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5705 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5706 lt_cv_file_magic_cmd='func_win32_libid'
5707 else
5708 # Keep this pattern in sync with the one in func_win32_libid.
5709 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5710 lt_cv_file_magic_cmd='$OBJDUMP -f'
5711 fi
5712 ;;
5713
5714 cegcc*)
5715 # use the weaker test based on 'objdump'. See mingw*.
5716 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5717 lt_cv_file_magic_cmd='$OBJDUMP -f'
5718 ;;
5719
5720 darwin* | rhapsody*)
5721 lt_cv_deplibs_check_method=pass_all
5722 ;;
5723
5724 freebsd* | dragonfly*)
5725 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5726 case $host_cpu in
5727 i*86 )
5728 # Not sure whether the presence of OpenBSD here was a mistake.
5729 # Let's accept both of them until this is cleared up.
5730 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5731 lt_cv_file_magic_cmd=/usr/bin/file
5732 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5733 ;;
5734 esac
5735 else
5736 lt_cv_deplibs_check_method=pass_all
5737 fi
5738 ;;
5739
5740 haiku*)
5741 lt_cv_deplibs_check_method=pass_all
5742 ;;
5743
5744 hpux10.20* | hpux11*)
5745 lt_cv_file_magic_cmd=/usr/bin/file
5746 case $host_cpu in
5747 ia64*)
5748 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5749 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5750 ;;
5751 hppa*64*)
5752 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]'
5753 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5754 ;;
5755 *)
5756 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5757 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5758 ;;
5759 esac
5760 ;;
5761
5762 interix[3-9]*)
5763 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5764 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5765 ;;
5766
5767 irix5* | irix6* | nonstopux*)
5768 case $LD in
5769 *-32|*"-32 ") libmagic=32-bit;;
5770 *-n32|*"-n32 ") libmagic=N32;;
5771 *-64|*"-64 ") libmagic=64-bit;;
5772 *) libmagic=never-match;;
5773 esac
5774 lt_cv_deplibs_check_method=pass_all
5775 ;;
5776
5777 # This must be glibc/ELF.
5778 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5779 lt_cv_deplibs_check_method=pass_all
5780 ;;
5781
5782 netbsd* | netbsdelf*-gnu)
5783 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5784 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5785 else
5786 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5787 fi
5788 ;;
5789
5790 newos6*)
5791 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5792 lt_cv_file_magic_cmd=/usr/bin/file
5793 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5794 ;;
5795
5796 *nto* | *qnx*)
5797 lt_cv_deplibs_check_method=pass_all
5798 ;;
5799
5800 openbsd*)
5801 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5802 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5803 else
5804 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5805 fi
5806 ;;
5807
5808 osf3* | osf4* | osf5*)
5809 lt_cv_deplibs_check_method=pass_all
5810 ;;
5811
5812 rdos*)
5813 lt_cv_deplibs_check_method=pass_all
5814 ;;
5815
5816 solaris*)
5817 lt_cv_deplibs_check_method=pass_all
5818 ;;
5819
5820 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5821 lt_cv_deplibs_check_method=pass_all
5822 ;;
5823
5824 sysv4 | sysv4.3*)
5825 case $host_vendor in
5826 motorola)
5827 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]'
5828 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5829 ;;
5830 ncr)
5831 lt_cv_deplibs_check_method=pass_all
5832 ;;
5833 sequent)
5834 lt_cv_file_magic_cmd='/bin/file'
5835 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5836 ;;
5837 sni)
5838 lt_cv_file_magic_cmd='/bin/file'
5839 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5840 lt_cv_file_magic_test_file=/lib/libc.so
5841 ;;
5842 siemens)
5843 lt_cv_deplibs_check_method=pass_all
5844 ;;
5845 pc)
5846 lt_cv_deplibs_check_method=pass_all
5847 ;;
5848 esac
5849 ;;
5850
5851 tpf*)
5852 lt_cv_deplibs_check_method=pass_all
5853 ;;
5854 esac
5855
5856 fi
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5858 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5859
5860 file_magic_glob=
5861 want_nocaseglob=no
5862 if test "$build" = "$host"; then
5863 case $host_os in
5864 mingw* | pw32*)
5865 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5866 want_nocaseglob=yes
5867 else
5868 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5869 fi
5870 ;;
5871 esac
5872 fi
5873
5874 file_magic_cmd=$lt_cv_file_magic_cmd
5875 deplibs_check_method=$lt_cv_deplibs_check_method
5876 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899 if test -n "$ac_tool_prefix"; then
5900 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5901 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5903 $as_echo_n "checking for $ac_word... " >&6; }
5904 if ${ac_cv_prog_DLLTOOL+:} false; then :
5905 $as_echo_n "(cached) " >&6
5906 else
5907 if test -n "$DLLTOOL"; then
5908 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5909 else
5910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5911 for as_dir in $PATH
5912 do
5913 IFS=$as_save_IFS
5914 test -z "$as_dir" && as_dir=.
5915 for ac_exec_ext in '' $ac_executable_extensions; do
5916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5917 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5919 break 2
5920 fi
5921 done
5922 done
5923 IFS=$as_save_IFS
5924
5925 fi
5926 fi
5927 DLLTOOL=$ac_cv_prog_DLLTOOL
5928 if test -n "$DLLTOOL"; then
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5930 $as_echo "$DLLTOOL" >&6; }
5931 else
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5933 $as_echo "no" >&6; }
5934 fi
5935
5936
5937 fi
5938 if test -z "$ac_cv_prog_DLLTOOL"; then
5939 ac_ct_DLLTOOL=$DLLTOOL
5940 # Extract the first word of "dlltool", so it can be a program name with args.
5941 set dummy dlltool; ac_word=$2
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5943 $as_echo_n "checking for $ac_word... " >&6; }
5944 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5945 $as_echo_n "(cached) " >&6
5946 else
5947 if test -n "$ac_ct_DLLTOOL"; then
5948 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5949 else
5950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951 for as_dir in $PATH
5952 do
5953 IFS=$as_save_IFS
5954 test -z "$as_dir" && as_dir=.
5955 for ac_exec_ext in '' $ac_executable_extensions; do
5956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5957 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5959 break 2
5960 fi
5961 done
5962 done
5963 IFS=$as_save_IFS
5964
5965 fi
5966 fi
5967 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5968 if test -n "$ac_ct_DLLTOOL"; then
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5970 $as_echo "$ac_ct_DLLTOOL" >&6; }
5971 else
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5973 $as_echo "no" >&6; }
5974 fi
5975
5976 if test "x$ac_ct_DLLTOOL" = x; then
5977 DLLTOOL="false"
5978 else
5979 case $cross_compiling:$ac_tool_warned in
5980 yes:)
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5982 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5983 ac_tool_warned=yes ;;
5984 esac
5985 DLLTOOL=$ac_ct_DLLTOOL
5986 fi
5987 else
5988 DLLTOOL="$ac_cv_prog_DLLTOOL"
5989 fi
5990
5991 test -z "$DLLTOOL" && DLLTOOL=dlltool
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6003 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6004 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6005 $as_echo_n "(cached) " >&6
6006 else
6007 lt_cv_sharedlib_from_linklib_cmd='unknown'
6008
6009 case $host_os in
6010 cygwin* | mingw* | pw32* | cegcc*)
6011 # two different shell functions defined in ltmain.sh
6012 # decide which to use based on capabilities of $DLLTOOL
6013 case `$DLLTOOL --help 2>&1` in
6014 *--identify-strict*)
6015 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6016 ;;
6017 *)
6018 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6019 ;;
6020 esac
6021 ;;
6022 *)
6023 # fallback: assume linklib IS sharedlib
6024 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6025 ;;
6026 esac
6027
6028 fi
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6030 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6031 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6032 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6033
6034
6035
6036
6037
6038
6039
6040
6041 if test -n "$ac_tool_prefix"; then
6042 for ac_prog in ar
6043 do
6044 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6045 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6047 $as_echo_n "checking for $ac_word... " >&6; }
6048 if ${ac_cv_prog_AR+:} false; then :
6049 $as_echo_n "(cached) " >&6
6050 else
6051 if test -n "$AR"; then
6052 ac_cv_prog_AR="$AR" # Let the user override the test.
6053 else
6054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6055 for as_dir in $PATH
6056 do
6057 IFS=$as_save_IFS
6058 test -z "$as_dir" && as_dir=.
6059 for ac_exec_ext in '' $ac_executable_extensions; do
6060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6061 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6063 break 2
6064 fi
6065 done
6066 done
6067 IFS=$as_save_IFS
6068
6069 fi
6070 fi
6071 AR=$ac_cv_prog_AR
6072 if test -n "$AR"; then
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6074 $as_echo "$AR" >&6; }
6075 else
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6077 $as_echo "no" >&6; }
6078 fi
6079
6080
6081 test -n "$AR" && break
6082 done
6083 fi
6084 if test -z "$AR"; then
6085 ac_ct_AR=$AR
6086 for ac_prog in ar
6087 do
6088 # Extract the first word of "$ac_prog", so it can be a program name with args.
6089 set dummy $ac_prog; ac_word=$2
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6091 $as_echo_n "checking for $ac_word... " >&6; }
6092 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6093 $as_echo_n "(cached) " >&6
6094 else
6095 if test -n "$ac_ct_AR"; then
6096 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6097 else
6098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6099 for as_dir in $PATH
6100 do
6101 IFS=$as_save_IFS
6102 test -z "$as_dir" && as_dir=.
6103 for ac_exec_ext in '' $ac_executable_extensions; do
6104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6105 ac_cv_prog_ac_ct_AR="$ac_prog"
6106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6107 break 2
6108 fi
6109 done
6110 done
6111 IFS=$as_save_IFS
6112
6113 fi
6114 fi
6115 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6116 if test -n "$ac_ct_AR"; then
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6118 $as_echo "$ac_ct_AR" >&6; }
6119 else
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6121 $as_echo "no" >&6; }
6122 fi
6123
6124
6125 test -n "$ac_ct_AR" && break
6126 done
6127
6128 if test "x$ac_ct_AR" = x; then
6129 AR="false"
6130 else
6131 case $cross_compiling:$ac_tool_warned in
6132 yes:)
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6134 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6135 ac_tool_warned=yes ;;
6136 esac
6137 AR=$ac_ct_AR
6138 fi
6139 fi
6140
6141 : ${AR=ar}
6142 : ${AR_FLAGS=cru}
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6155 $as_echo_n "checking for archiver @FILE support... " >&6; }
6156 if ${lt_cv_ar_at_file+:} false; then :
6157 $as_echo_n "(cached) " >&6
6158 else
6159 lt_cv_ar_at_file=no
6160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6161 /* end confdefs.h. */
6162
6163 int
6164 main ()
6165 {
6166
6167 ;
6168 return 0;
6169 }
6170 _ACEOF
6171 if ac_fn_c_try_compile "$LINENO"; then :
6172 echo conftest.$ac_objext > conftest.lst
6173 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6174 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6175 (eval $lt_ar_try) 2>&5
6176 ac_status=$?
6177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6178 test $ac_status = 0; }
6179 if test "$ac_status" -eq 0; then
6180 # Ensure the archiver fails upon bogus file names.
6181 rm -f conftest.$ac_objext libconftest.a
6182 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6183 (eval $lt_ar_try) 2>&5
6184 ac_status=$?
6185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6186 test $ac_status = 0; }
6187 if test "$ac_status" -ne 0; then
6188 lt_cv_ar_at_file=@
6189 fi
6190 fi
6191 rm -f conftest.* libconftest.a
6192
6193 fi
6194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6195
6196 fi
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6198 $as_echo "$lt_cv_ar_at_file" >&6; }
6199
6200 if test "x$lt_cv_ar_at_file" = xno; then
6201 archiver_list_spec=
6202 else
6203 archiver_list_spec=$lt_cv_ar_at_file
6204 fi
6205
6206
6207
6208
6209
6210
6211
6212 if test -n "$ac_tool_prefix"; then
6213 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6214 set dummy ${ac_tool_prefix}strip; ac_word=$2
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6216 $as_echo_n "checking for $ac_word... " >&6; }
6217 if ${ac_cv_prog_STRIP+:} false; then :
6218 $as_echo_n "(cached) " >&6
6219 else
6220 if test -n "$STRIP"; then
6221 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6222 else
6223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6224 for as_dir in $PATH
6225 do
6226 IFS=$as_save_IFS
6227 test -z "$as_dir" && as_dir=.
6228 for ac_exec_ext in '' $ac_executable_extensions; do
6229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6230 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6232 break 2
6233 fi
6234 done
6235 done
6236 IFS=$as_save_IFS
6237
6238 fi
6239 fi
6240 STRIP=$ac_cv_prog_STRIP
6241 if test -n "$STRIP"; then
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6243 $as_echo "$STRIP" >&6; }
6244 else
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6246 $as_echo "no" >&6; }
6247 fi
6248
6249
6250 fi
6251 if test -z "$ac_cv_prog_STRIP"; then
6252 ac_ct_STRIP=$STRIP
6253 # Extract the first word of "strip", so it can be a program name with args.
6254 set dummy strip; ac_word=$2
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6256 $as_echo_n "checking for $ac_word... " >&6; }
6257 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6258 $as_echo_n "(cached) " >&6
6259 else
6260 if test -n "$ac_ct_STRIP"; then
6261 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6262 else
6263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6264 for as_dir in $PATH
6265 do
6266 IFS=$as_save_IFS
6267 test -z "$as_dir" && as_dir=.
6268 for ac_exec_ext in '' $ac_executable_extensions; do
6269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6270 ac_cv_prog_ac_ct_STRIP="strip"
6271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6272 break 2
6273 fi
6274 done
6275 done
6276 IFS=$as_save_IFS
6277
6278 fi
6279 fi
6280 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6281 if test -n "$ac_ct_STRIP"; then
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6283 $as_echo "$ac_ct_STRIP" >&6; }
6284 else
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6286 $as_echo "no" >&6; }
6287 fi
6288
6289 if test "x$ac_ct_STRIP" = x; then
6290 STRIP=":"
6291 else
6292 case $cross_compiling:$ac_tool_warned in
6293 yes:)
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6295 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6296 ac_tool_warned=yes ;;
6297 esac
6298 STRIP=$ac_ct_STRIP
6299 fi
6300 else
6301 STRIP="$ac_cv_prog_STRIP"
6302 fi
6303
6304 test -z "$STRIP" && STRIP=:
6305
6306
6307
6308
6309
6310
6311 if test -n "$ac_tool_prefix"; then
6312 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6313 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6315 $as_echo_n "checking for $ac_word... " >&6; }
6316 if ${ac_cv_prog_RANLIB+:} false; then :
6317 $as_echo_n "(cached) " >&6
6318 else
6319 if test -n "$RANLIB"; then
6320 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6321 else
6322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6323 for as_dir in $PATH
6324 do
6325 IFS=$as_save_IFS
6326 test -z "$as_dir" && as_dir=.
6327 for ac_exec_ext in '' $ac_executable_extensions; do
6328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6329 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6331 break 2
6332 fi
6333 done
6334 done
6335 IFS=$as_save_IFS
6336
6337 fi
6338 fi
6339 RANLIB=$ac_cv_prog_RANLIB
6340 if test -n "$RANLIB"; then
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6342 $as_echo "$RANLIB" >&6; }
6343 else
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6345 $as_echo "no" >&6; }
6346 fi
6347
6348
6349 fi
6350 if test -z "$ac_cv_prog_RANLIB"; then
6351 ac_ct_RANLIB=$RANLIB
6352 # Extract the first word of "ranlib", so it can be a program name with args.
6353 set dummy ranlib; ac_word=$2
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6355 $as_echo_n "checking for $ac_word... " >&6; }
6356 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6357 $as_echo_n "(cached) " >&6
6358 else
6359 if test -n "$ac_ct_RANLIB"; then
6360 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6361 else
6362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6363 for as_dir in $PATH
6364 do
6365 IFS=$as_save_IFS
6366 test -z "$as_dir" && as_dir=.
6367 for ac_exec_ext in '' $ac_executable_extensions; do
6368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6369 ac_cv_prog_ac_ct_RANLIB="ranlib"
6370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6371 break 2
6372 fi
6373 done
6374 done
6375 IFS=$as_save_IFS
6376
6377 fi
6378 fi
6379 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6380 if test -n "$ac_ct_RANLIB"; then
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6382 $as_echo "$ac_ct_RANLIB" >&6; }
6383 else
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6385 $as_echo "no" >&6; }
6386 fi
6387
6388 if test "x$ac_ct_RANLIB" = x; then
6389 RANLIB=":"
6390 else
6391 case $cross_compiling:$ac_tool_warned in
6392 yes:)
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6394 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6395 ac_tool_warned=yes ;;
6396 esac
6397 RANLIB=$ac_ct_RANLIB
6398 fi
6399 else
6400 RANLIB="$ac_cv_prog_RANLIB"
6401 fi
6402
6403 test -z "$RANLIB" && RANLIB=:
6404
6405
6406
6407
6408
6409
6410 # Determine commands to create old-style static archives.
6411 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6412 old_postinstall_cmds='chmod 644 $oldlib'
6413 old_postuninstall_cmds=
6414
6415 if test -n "$RANLIB"; then
6416 case $host_os in
6417 openbsd*)
6418 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6419 ;;
6420 *)
6421 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6422 ;;
6423 esac
6424 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6425 fi
6426
6427 case $host_os in
6428 darwin*)
6429 lock_old_archive_extraction=yes ;;
6430 *)
6431 lock_old_archive_extraction=no ;;
6432 esac
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472 # If no C compiler was specified, use CC.
6473 LTCC=${LTCC-"$CC"}
6474
6475 # If no C compiler flags were specified, use CFLAGS.
6476 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6477
6478 # Allow CC to be a program name with arguments.
6479 compiler=$CC
6480
6481
6482 # Check for command to grab the raw symbol name followed by C symbol from nm.
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6484 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6485 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6486 $as_echo_n "(cached) " >&6
6487 else
6488
6489 # These are sane defaults that work on at least a few old systems.
6490 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6491
6492 # Character class describing NM global symbol codes.
6493 symcode='[BCDEGRST]'
6494
6495 # Regexp to match symbols that can be accessed directly from C.
6496 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6497
6498 # Define system-specific variables.
6499 case $host_os in
6500 aix*)
6501 symcode='[BCDT]'
6502 ;;
6503 cygwin* | mingw* | pw32* | cegcc*)
6504 symcode='[ABCDGISTW]'
6505 ;;
6506 hpux*)
6507 if test "$host_cpu" = ia64; then
6508 symcode='[ABCDEGRST]'
6509 fi
6510 ;;
6511 irix* | nonstopux*)
6512 symcode='[BCDEGRST]'
6513 ;;
6514 osf*)
6515 symcode='[BCDEGQRST]'
6516 ;;
6517 solaris*)
6518 symcode='[BDRT]'
6519 ;;
6520 sco3.2v5*)
6521 symcode='[DT]'
6522 ;;
6523 sysv4.2uw2*)
6524 symcode='[DT]'
6525 ;;
6526 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6527 symcode='[ABDT]'
6528 ;;
6529 sysv4)
6530 symcode='[DFNSTU]'
6531 ;;
6532 esac
6533
6534 # If we're using GNU nm, then use its standard symbol codes.
6535 case `$NM -V 2>&1` in
6536 *GNU* | *'with BFD'*)
6537 symcode='[ABCDGIRSTW]' ;;
6538 esac
6539
6540 # Transform an extracted symbol line into a proper C declaration.
6541 # Some systems (esp. on ia64) link data and code symbols differently,
6542 # so use this general approach.
6543 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6544
6545 # Transform an extracted symbol line into symbol name and symbol address
6546 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6547 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6548
6549 # Handle CRLF in mingw tool chain
6550 opt_cr=
6551 case $build_os in
6552 mingw*)
6553 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6554 ;;
6555 esac
6556
6557 # Try without a prefix underscore, then with it.
6558 for ac_symprfx in "" "_"; do
6559
6560 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6561 symxfrm="\\1 $ac_symprfx\\2 \\2"
6562
6563 # Write the raw and C identifiers.
6564 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6565 # Fake it for dumpbin and say T for any non-static function
6566 # and D for any global variable.
6567 # Also find C++ and __fastcall symbols from MSVC++,
6568 # which start with @ or ?.
6569 lt_cv_sys_global_symbol_pipe="$AWK '"\
6570 " {last_section=section; section=\$ 3};"\
6571 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6572 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6573 " \$ 0!~/External *\|/{next};"\
6574 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6575 " {if(hide[section]) next};"\
6576 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6577 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6578 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6579 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6580 " ' prfx=^$ac_symprfx"
6581 else
6582 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6583 fi
6584 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6585
6586 # Check to see that the pipe works correctly.
6587 pipe_works=no
6588
6589 rm -f conftest*
6590 cat > conftest.$ac_ext <<_LT_EOF
6591 #ifdef __cplusplus
6592 extern "C" {
6593 #endif
6594 char nm_test_var;
6595 void nm_test_func(void);
6596 void nm_test_func(void){}
6597 #ifdef __cplusplus
6598 }
6599 #endif
6600 int main(){nm_test_var='a';nm_test_func();return(0);}
6601 _LT_EOF
6602
6603 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6604 (eval $ac_compile) 2>&5
6605 ac_status=$?
6606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6607 test $ac_status = 0; }; then
6608 # Now try to grab the symbols.
6609 nlist=conftest.nm
6610 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6611 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6612 ac_status=$?
6613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6614 test $ac_status = 0; } && test -s "$nlist"; then
6615 # Try sorting and uniquifying the output.
6616 if sort "$nlist" | uniq > "$nlist"T; then
6617 mv -f "$nlist"T "$nlist"
6618 else
6619 rm -f "$nlist"T
6620 fi
6621
6622 # Make sure that we snagged all the symbols we need.
6623 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6624 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6625 cat <<_LT_EOF > conftest.$ac_ext
6626 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6627 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6628 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6629 relocations are performed -- see ld's documentation on pseudo-relocs. */
6630 # define LT_DLSYM_CONST
6631 #elif defined(__osf__)
6632 /* This system does not cope well with relocations in const data. */
6633 # define LT_DLSYM_CONST
6634 #else
6635 # define LT_DLSYM_CONST const
6636 #endif
6637
6638 #ifdef __cplusplus
6639 extern "C" {
6640 #endif
6641
6642 _LT_EOF
6643 # Now generate the symbol file.
6644 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6645
6646 cat <<_LT_EOF >> conftest.$ac_ext
6647
6648 /* The mapping between symbol names and symbols. */
6649 LT_DLSYM_CONST struct {
6650 const char *name;
6651 void *address;
6652 }
6653 lt__PROGRAM__LTX_preloaded_symbols[] =
6654 {
6655 { "@PROGRAM@", (void *) 0 },
6656 _LT_EOF
6657 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6658 cat <<\_LT_EOF >> conftest.$ac_ext
6659 {0, (void *) 0}
6660 };
6661
6662 /* This works around a problem in FreeBSD linker */
6663 #ifdef FREEBSD_WORKAROUND
6664 static const void *lt_preloaded_setup() {
6665 return lt__PROGRAM__LTX_preloaded_symbols;
6666 }
6667 #endif
6668
6669 #ifdef __cplusplus
6670 }
6671 #endif
6672 _LT_EOF
6673 # Now try linking the two files.
6674 mv conftest.$ac_objext conftstm.$ac_objext
6675 lt_globsym_save_LIBS=$LIBS
6676 lt_globsym_save_CFLAGS=$CFLAGS
6677 LIBS="conftstm.$ac_objext"
6678 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6679 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6680 (eval $ac_link) 2>&5
6681 ac_status=$?
6682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6683 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6684 pipe_works=yes
6685 fi
6686 LIBS=$lt_globsym_save_LIBS
6687 CFLAGS=$lt_globsym_save_CFLAGS
6688 else
6689 echo "cannot find nm_test_func in $nlist" >&5
6690 fi
6691 else
6692 echo "cannot find nm_test_var in $nlist" >&5
6693 fi
6694 else
6695 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6696 fi
6697 else
6698 echo "$progname: failed program was:" >&5
6699 cat conftest.$ac_ext >&5
6700 fi
6701 rm -rf conftest* conftst*
6702
6703 # Do not use the global_symbol_pipe unless it works.
6704 if test "$pipe_works" = yes; then
6705 break
6706 else
6707 lt_cv_sys_global_symbol_pipe=
6708 fi
6709 done
6710
6711 fi
6712
6713 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6714 lt_cv_sys_global_symbol_to_cdecl=
6715 fi
6716 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6718 $as_echo "failed" >&6; }
6719 else
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6721 $as_echo "ok" >&6; }
6722 fi
6723
6724 # Response file support.
6725 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6726 nm_file_list_spec='@'
6727 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6728 nm_file_list_spec='@'
6729 fi
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6758 $as_echo_n "checking for sysroot... " >&6; }
6759
6760 # Check whether --with-sysroot was given.
6761 if test "${with_sysroot+set}" = set; then :
6762 withval=$with_sysroot;
6763 else
6764 with_sysroot=no
6765 fi
6766
6767
6768 lt_sysroot=
6769 case ${with_sysroot} in #(
6770 yes)
6771 if test "$GCC" = yes; then
6772 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6773 fi
6774 ;; #(
6775 /*)
6776 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6777 ;; #(
6778 no|'')
6779 ;; #(
6780 *)
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6782 $as_echo "${with_sysroot}" >&6; }
6783 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6784 ;;
6785 esac
6786
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6788 $as_echo "${lt_sysroot:-no}" >&6; }
6789
6790
6791
6792
6793
6794 # Check whether --enable-libtool-lock was given.
6795 if test "${enable_libtool_lock+set}" = set; then :
6796 enableval=$enable_libtool_lock;
6797 fi
6798
6799 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6800
6801 # Some flags need to be propagated to the compiler or linker for good
6802 # libtool support.
6803 case $host in
6804 ia64-*-hpux*)
6805 # Find out which ABI we are using.
6806 echo 'int i;' > conftest.$ac_ext
6807 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6808 (eval $ac_compile) 2>&5
6809 ac_status=$?
6810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6811 test $ac_status = 0; }; then
6812 case `/usr/bin/file conftest.$ac_objext` in
6813 *ELF-32*)
6814 HPUX_IA64_MODE="32"
6815 ;;
6816 *ELF-64*)
6817 HPUX_IA64_MODE="64"
6818 ;;
6819 esac
6820 fi
6821 rm -rf conftest*
6822 ;;
6823 *-*-irix6*)
6824 # Find out which ABI we are using.
6825 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6826 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6827 (eval $ac_compile) 2>&5
6828 ac_status=$?
6829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6830 test $ac_status = 0; }; then
6831 if test "$lt_cv_prog_gnu_ld" = yes; then
6832 case `/usr/bin/file conftest.$ac_objext` in
6833 *32-bit*)
6834 LD="${LD-ld} -melf32bsmip"
6835 ;;
6836 *N32*)
6837 LD="${LD-ld} -melf32bmipn32"
6838 ;;
6839 *64-bit*)
6840 LD="${LD-ld} -melf64bmip"
6841 ;;
6842 esac
6843 else
6844 case `/usr/bin/file conftest.$ac_objext` in
6845 *32-bit*)
6846 LD="${LD-ld} -32"
6847 ;;
6848 *N32*)
6849 LD="${LD-ld} -n32"
6850 ;;
6851 *64-bit*)
6852 LD="${LD-ld} -64"
6853 ;;
6854 esac
6855 fi
6856 fi
6857 rm -rf conftest*
6858 ;;
6859
6860 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6861 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6862 # Find out which ABI we are using.
6863 echo 'int i;' > conftest.$ac_ext
6864 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6865 (eval $ac_compile) 2>&5
6866 ac_status=$?
6867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6868 test $ac_status = 0; }; then
6869 case `/usr/bin/file conftest.o` in
6870 *32-bit*)
6871 case $host in
6872 x86_64-*kfreebsd*-gnu)
6873 LD="${LD-ld} -m elf_i386_fbsd"
6874 ;;
6875 x86_64-*linux*)
6876 case `/usr/bin/file conftest.o` in
6877 *x86-64*)
6878 LD="${LD-ld} -m elf32_x86_64"
6879 ;;
6880 *)
6881 LD="${LD-ld} -m elf_i386"
6882 ;;
6883 esac
6884 ;;
6885 powerpc64le-*)
6886 LD="${LD-ld} -m elf32lppclinux"
6887 ;;
6888 powerpc64-*)
6889 LD="${LD-ld} -m elf32ppclinux"
6890 ;;
6891 s390x-*linux*)
6892 LD="${LD-ld} -m elf_s390"
6893 ;;
6894 sparc64-*linux*)
6895 LD="${LD-ld} -m elf32_sparc"
6896 ;;
6897 esac
6898 ;;
6899 *64-bit*)
6900 case $host in
6901 x86_64-*kfreebsd*-gnu)
6902 LD="${LD-ld} -m elf_x86_64_fbsd"
6903 ;;
6904 x86_64-*linux*)
6905 LD="${LD-ld} -m elf_x86_64"
6906 ;;
6907 powerpcle-*)
6908 LD="${LD-ld} -m elf64lppc"
6909 ;;
6910 powerpc-*)
6911 LD="${LD-ld} -m elf64ppc"
6912 ;;
6913 s390*-*linux*|s390*-*tpf*)
6914 LD="${LD-ld} -m elf64_s390"
6915 ;;
6916 sparc*-*linux*)
6917 LD="${LD-ld} -m elf64_sparc"
6918 ;;
6919 esac
6920 ;;
6921 esac
6922 fi
6923 rm -rf conftest*
6924 ;;
6925
6926 *-*-sco3.2v5*)
6927 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6928 SAVE_CFLAGS="$CFLAGS"
6929 CFLAGS="$CFLAGS -belf"
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6931 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6932 if ${lt_cv_cc_needs_belf+:} false; then :
6933 $as_echo_n "(cached) " >&6
6934 else
6935 ac_ext=c
6936 ac_cpp='$CPP $CPPFLAGS'
6937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6940
6941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6942 /* end confdefs.h. */
6943
6944 int
6945 main ()
6946 {
6947
6948 ;
6949 return 0;
6950 }
6951 _ACEOF
6952 if ac_fn_c_try_link "$LINENO"; then :
6953 lt_cv_cc_needs_belf=yes
6954 else
6955 lt_cv_cc_needs_belf=no
6956 fi
6957 rm -f core conftest.err conftest.$ac_objext \
6958 conftest$ac_exeext conftest.$ac_ext
6959 ac_ext=c
6960 ac_cpp='$CPP $CPPFLAGS'
6961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6964
6965 fi
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6967 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6968 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6969 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6970 CFLAGS="$SAVE_CFLAGS"
6971 fi
6972 ;;
6973 *-*solaris*)
6974 # Find out which ABI we are using.
6975 echo 'int i;' > conftest.$ac_ext
6976 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6977 (eval $ac_compile) 2>&5
6978 ac_status=$?
6979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6980 test $ac_status = 0; }; then
6981 case `/usr/bin/file conftest.o` in
6982 *64-bit*)
6983 case $lt_cv_prog_gnu_ld in
6984 yes*)
6985 case $host in
6986 i?86-*-solaris*)
6987 LD="${LD-ld} -m elf_x86_64"
6988 ;;
6989 sparc*-*-solaris*)
6990 LD="${LD-ld} -m elf64_sparc"
6991 ;;
6992 esac
6993 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6994 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6995 LD="${LD-ld}_sol2"
6996 fi
6997 ;;
6998 *)
6999 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7000 LD="${LD-ld} -64"
7001 fi
7002 ;;
7003 esac
7004 ;;
7005 esac
7006 fi
7007 rm -rf conftest*
7008 ;;
7009 esac
7010
7011 need_locks="$enable_libtool_lock"
7012
7013 if test -n "$ac_tool_prefix"; then
7014 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7015 set dummy ${ac_tool_prefix}mt; ac_word=$2
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7017 $as_echo_n "checking for $ac_word... " >&6; }
7018 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7019 $as_echo_n "(cached) " >&6
7020 else
7021 if test -n "$MANIFEST_TOOL"; then
7022 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7023 else
7024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7025 for as_dir in $PATH
7026 do
7027 IFS=$as_save_IFS
7028 test -z "$as_dir" && as_dir=.
7029 for ac_exec_ext in '' $ac_executable_extensions; do
7030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7031 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7033 break 2
7034 fi
7035 done
7036 done
7037 IFS=$as_save_IFS
7038
7039 fi
7040 fi
7041 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7042 if test -n "$MANIFEST_TOOL"; then
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7044 $as_echo "$MANIFEST_TOOL" >&6; }
7045 else
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7047 $as_echo "no" >&6; }
7048 fi
7049
7050
7051 fi
7052 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7053 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7054 # Extract the first word of "mt", so it can be a program name with args.
7055 set dummy mt; ac_word=$2
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7057 $as_echo_n "checking for $ac_word... " >&6; }
7058 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7059 $as_echo_n "(cached) " >&6
7060 else
7061 if test -n "$ac_ct_MANIFEST_TOOL"; then
7062 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7063 else
7064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7065 for as_dir in $PATH
7066 do
7067 IFS=$as_save_IFS
7068 test -z "$as_dir" && as_dir=.
7069 for ac_exec_ext in '' $ac_executable_extensions; do
7070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7071 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7073 break 2
7074 fi
7075 done
7076 done
7077 IFS=$as_save_IFS
7078
7079 fi
7080 fi
7081 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7082 if test -n "$ac_ct_MANIFEST_TOOL"; then
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7084 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7085 else
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7087 $as_echo "no" >&6; }
7088 fi
7089
7090 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7091 MANIFEST_TOOL=":"
7092 else
7093 case $cross_compiling:$ac_tool_warned in
7094 yes:)
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7096 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7097 ac_tool_warned=yes ;;
7098 esac
7099 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7100 fi
7101 else
7102 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7103 fi
7104
7105 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7107 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7108 if ${lt_cv_path_mainfest_tool+:} false; then :
7109 $as_echo_n "(cached) " >&6
7110 else
7111 lt_cv_path_mainfest_tool=no
7112 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7113 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7114 cat conftest.err >&5
7115 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7116 lt_cv_path_mainfest_tool=yes
7117 fi
7118 rm -f conftest*
7119 fi
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7121 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7122 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7123 MANIFEST_TOOL=:
7124 fi
7125
7126
7127
7128
7129
7130
7131 case $host_os in
7132 rhapsody* | darwin*)
7133 if test -n "$ac_tool_prefix"; then
7134 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7135 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7137 $as_echo_n "checking for $ac_word... " >&6; }
7138 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7139 $as_echo_n "(cached) " >&6
7140 else
7141 if test -n "$DSYMUTIL"; then
7142 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7143 else
7144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7145 for as_dir in $PATH
7146 do
7147 IFS=$as_save_IFS
7148 test -z "$as_dir" && as_dir=.
7149 for ac_exec_ext in '' $ac_executable_extensions; do
7150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7151 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7153 break 2
7154 fi
7155 done
7156 done
7157 IFS=$as_save_IFS
7158
7159 fi
7160 fi
7161 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7162 if test -n "$DSYMUTIL"; then
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7164 $as_echo "$DSYMUTIL" >&6; }
7165 else
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7167 $as_echo "no" >&6; }
7168 fi
7169
7170
7171 fi
7172 if test -z "$ac_cv_prog_DSYMUTIL"; then
7173 ac_ct_DSYMUTIL=$DSYMUTIL
7174 # Extract the first word of "dsymutil", so it can be a program name with args.
7175 set dummy dsymutil; ac_word=$2
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7177 $as_echo_n "checking for $ac_word... " >&6; }
7178 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7179 $as_echo_n "(cached) " >&6
7180 else
7181 if test -n "$ac_ct_DSYMUTIL"; then
7182 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7183 else
7184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7185 for as_dir in $PATH
7186 do
7187 IFS=$as_save_IFS
7188 test -z "$as_dir" && as_dir=.
7189 for ac_exec_ext in '' $ac_executable_extensions; do
7190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7191 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7193 break 2
7194 fi
7195 done
7196 done
7197 IFS=$as_save_IFS
7198
7199 fi
7200 fi
7201 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7202 if test -n "$ac_ct_DSYMUTIL"; then
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7204 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7205 else
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7207 $as_echo "no" >&6; }
7208 fi
7209
7210 if test "x$ac_ct_DSYMUTIL" = x; then
7211 DSYMUTIL=":"
7212 else
7213 case $cross_compiling:$ac_tool_warned in
7214 yes:)
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7216 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7217 ac_tool_warned=yes ;;
7218 esac
7219 DSYMUTIL=$ac_ct_DSYMUTIL
7220 fi
7221 else
7222 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7223 fi
7224
7225 if test -n "$ac_tool_prefix"; then
7226 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7227 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7229 $as_echo_n "checking for $ac_word... " >&6; }
7230 if ${ac_cv_prog_NMEDIT+:} false; then :
7231 $as_echo_n "(cached) " >&6
7232 else
7233 if test -n "$NMEDIT"; then
7234 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7235 else
7236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7237 for as_dir in $PATH
7238 do
7239 IFS=$as_save_IFS
7240 test -z "$as_dir" && as_dir=.
7241 for ac_exec_ext in '' $ac_executable_extensions; do
7242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7243 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7245 break 2
7246 fi
7247 done
7248 done
7249 IFS=$as_save_IFS
7250
7251 fi
7252 fi
7253 NMEDIT=$ac_cv_prog_NMEDIT
7254 if test -n "$NMEDIT"; then
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7256 $as_echo "$NMEDIT" >&6; }
7257 else
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7259 $as_echo "no" >&6; }
7260 fi
7261
7262
7263 fi
7264 if test -z "$ac_cv_prog_NMEDIT"; then
7265 ac_ct_NMEDIT=$NMEDIT
7266 # Extract the first word of "nmedit", so it can be a program name with args.
7267 set dummy nmedit; ac_word=$2
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7269 $as_echo_n "checking for $ac_word... " >&6; }
7270 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7271 $as_echo_n "(cached) " >&6
7272 else
7273 if test -n "$ac_ct_NMEDIT"; then
7274 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7275 else
7276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7277 for as_dir in $PATH
7278 do
7279 IFS=$as_save_IFS
7280 test -z "$as_dir" && as_dir=.
7281 for ac_exec_ext in '' $ac_executable_extensions; do
7282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7283 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7285 break 2
7286 fi
7287 done
7288 done
7289 IFS=$as_save_IFS
7290
7291 fi
7292 fi
7293 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7294 if test -n "$ac_ct_NMEDIT"; then
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7296 $as_echo "$ac_ct_NMEDIT" >&6; }
7297 else
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7299 $as_echo "no" >&6; }
7300 fi
7301
7302 if test "x$ac_ct_NMEDIT" = x; then
7303 NMEDIT=":"
7304 else
7305 case $cross_compiling:$ac_tool_warned in
7306 yes:)
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7308 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7309 ac_tool_warned=yes ;;
7310 esac
7311 NMEDIT=$ac_ct_NMEDIT
7312 fi
7313 else
7314 NMEDIT="$ac_cv_prog_NMEDIT"
7315 fi
7316
7317 if test -n "$ac_tool_prefix"; then
7318 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7319 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7321 $as_echo_n "checking for $ac_word... " >&6; }
7322 if ${ac_cv_prog_LIPO+:} false; then :
7323 $as_echo_n "(cached) " >&6
7324 else
7325 if test -n "$LIPO"; then
7326 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7327 else
7328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7329 for as_dir in $PATH
7330 do
7331 IFS=$as_save_IFS
7332 test -z "$as_dir" && as_dir=.
7333 for ac_exec_ext in '' $ac_executable_extensions; do
7334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7335 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7337 break 2
7338 fi
7339 done
7340 done
7341 IFS=$as_save_IFS
7342
7343 fi
7344 fi
7345 LIPO=$ac_cv_prog_LIPO
7346 if test -n "$LIPO"; then
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7348 $as_echo "$LIPO" >&6; }
7349 else
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7351 $as_echo "no" >&6; }
7352 fi
7353
7354
7355 fi
7356 if test -z "$ac_cv_prog_LIPO"; then
7357 ac_ct_LIPO=$LIPO
7358 # Extract the first word of "lipo", so it can be a program name with args.
7359 set dummy lipo; ac_word=$2
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7361 $as_echo_n "checking for $ac_word... " >&6; }
7362 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7363 $as_echo_n "(cached) " >&6
7364 else
7365 if test -n "$ac_ct_LIPO"; then
7366 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7367 else
7368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7369 for as_dir in $PATH
7370 do
7371 IFS=$as_save_IFS
7372 test -z "$as_dir" && as_dir=.
7373 for ac_exec_ext in '' $ac_executable_extensions; do
7374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7375 ac_cv_prog_ac_ct_LIPO="lipo"
7376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7377 break 2
7378 fi
7379 done
7380 done
7381 IFS=$as_save_IFS
7382
7383 fi
7384 fi
7385 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7386 if test -n "$ac_ct_LIPO"; then
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7388 $as_echo "$ac_ct_LIPO" >&6; }
7389 else
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7391 $as_echo "no" >&6; }
7392 fi
7393
7394 if test "x$ac_ct_LIPO" = x; then
7395 LIPO=":"
7396 else
7397 case $cross_compiling:$ac_tool_warned in
7398 yes:)
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7400 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7401 ac_tool_warned=yes ;;
7402 esac
7403 LIPO=$ac_ct_LIPO
7404 fi
7405 else
7406 LIPO="$ac_cv_prog_LIPO"
7407 fi
7408
7409 if test -n "$ac_tool_prefix"; then
7410 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7411 set dummy ${ac_tool_prefix}otool; ac_word=$2
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7413 $as_echo_n "checking for $ac_word... " >&6; }
7414 if ${ac_cv_prog_OTOOL+:} false; then :
7415 $as_echo_n "(cached) " >&6
7416 else
7417 if test -n "$OTOOL"; then
7418 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7419 else
7420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7421 for as_dir in $PATH
7422 do
7423 IFS=$as_save_IFS
7424 test -z "$as_dir" && as_dir=.
7425 for ac_exec_ext in '' $ac_executable_extensions; do
7426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7427 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7429 break 2
7430 fi
7431 done
7432 done
7433 IFS=$as_save_IFS
7434
7435 fi
7436 fi
7437 OTOOL=$ac_cv_prog_OTOOL
7438 if test -n "$OTOOL"; then
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7440 $as_echo "$OTOOL" >&6; }
7441 else
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7443 $as_echo "no" >&6; }
7444 fi
7445
7446
7447 fi
7448 if test -z "$ac_cv_prog_OTOOL"; then
7449 ac_ct_OTOOL=$OTOOL
7450 # Extract the first word of "otool", so it can be a program name with args.
7451 set dummy otool; ac_word=$2
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7453 $as_echo_n "checking for $ac_word... " >&6; }
7454 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7455 $as_echo_n "(cached) " >&6
7456 else
7457 if test -n "$ac_ct_OTOOL"; then
7458 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7459 else
7460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7461 for as_dir in $PATH
7462 do
7463 IFS=$as_save_IFS
7464 test -z "$as_dir" && as_dir=.
7465 for ac_exec_ext in '' $ac_executable_extensions; do
7466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7467 ac_cv_prog_ac_ct_OTOOL="otool"
7468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7469 break 2
7470 fi
7471 done
7472 done
7473 IFS=$as_save_IFS
7474
7475 fi
7476 fi
7477 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7478 if test -n "$ac_ct_OTOOL"; then
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7480 $as_echo "$ac_ct_OTOOL" >&6; }
7481 else
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7483 $as_echo "no" >&6; }
7484 fi
7485
7486 if test "x$ac_ct_OTOOL" = x; then
7487 OTOOL=":"
7488 else
7489 case $cross_compiling:$ac_tool_warned in
7490 yes:)
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7492 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7493 ac_tool_warned=yes ;;
7494 esac
7495 OTOOL=$ac_ct_OTOOL
7496 fi
7497 else
7498 OTOOL="$ac_cv_prog_OTOOL"
7499 fi
7500
7501 if test -n "$ac_tool_prefix"; then
7502 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7503 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7505 $as_echo_n "checking for $ac_word... " >&6; }
7506 if ${ac_cv_prog_OTOOL64+:} false; then :
7507 $as_echo_n "(cached) " >&6
7508 else
7509 if test -n "$OTOOL64"; then
7510 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7511 else
7512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7513 for as_dir in $PATH
7514 do
7515 IFS=$as_save_IFS
7516 test -z "$as_dir" && as_dir=.
7517 for ac_exec_ext in '' $ac_executable_extensions; do
7518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7519 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7521 break 2
7522 fi
7523 done
7524 done
7525 IFS=$as_save_IFS
7526
7527 fi
7528 fi
7529 OTOOL64=$ac_cv_prog_OTOOL64
7530 if test -n "$OTOOL64"; then
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7532 $as_echo "$OTOOL64" >&6; }
7533 else
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7535 $as_echo "no" >&6; }
7536 fi
7537
7538
7539 fi
7540 if test -z "$ac_cv_prog_OTOOL64"; then
7541 ac_ct_OTOOL64=$OTOOL64
7542 # Extract the first word of "otool64", so it can be a program name with args.
7543 set dummy otool64; ac_word=$2
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7545 $as_echo_n "checking for $ac_word... " >&6; }
7546 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7547 $as_echo_n "(cached) " >&6
7548 else
7549 if test -n "$ac_ct_OTOOL64"; then
7550 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7551 else
7552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7553 for as_dir in $PATH
7554 do
7555 IFS=$as_save_IFS
7556 test -z "$as_dir" && as_dir=.
7557 for ac_exec_ext in '' $ac_executable_extensions; do
7558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7559 ac_cv_prog_ac_ct_OTOOL64="otool64"
7560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7561 break 2
7562 fi
7563 done
7564 done
7565 IFS=$as_save_IFS
7566
7567 fi
7568 fi
7569 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7570 if test -n "$ac_ct_OTOOL64"; then
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7572 $as_echo "$ac_ct_OTOOL64" >&6; }
7573 else
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7575 $as_echo "no" >&6; }
7576 fi
7577
7578 if test "x$ac_ct_OTOOL64" = x; then
7579 OTOOL64=":"
7580 else
7581 case $cross_compiling:$ac_tool_warned in
7582 yes:)
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7584 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7585 ac_tool_warned=yes ;;
7586 esac
7587 OTOOL64=$ac_ct_OTOOL64
7588 fi
7589 else
7590 OTOOL64="$ac_cv_prog_OTOOL64"
7591 fi
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7620 $as_echo_n "checking for -single_module linker flag... " >&6; }
7621 if ${lt_cv_apple_cc_single_mod+:} false; then :
7622 $as_echo_n "(cached) " >&6
7623 else
7624 lt_cv_apple_cc_single_mod=no
7625 if test -z "${LT_MULTI_MODULE}"; then
7626 # By default we will add the -single_module flag. You can override
7627 # by either setting the environment variable LT_MULTI_MODULE
7628 # non-empty at configure time, or by adding -multi_module to the
7629 # link flags.
7630 rm -rf libconftest.dylib*
7631 echo "int foo(void){return 1;}" > conftest.c
7632 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7633 -dynamiclib -Wl,-single_module conftest.c" >&5
7634 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7635 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7636 _lt_result=$?
7637 # If there is a non-empty error log, and "single_module"
7638 # appears in it, assume the flag caused a linker warning
7639 if test -s conftest.err && $GREP single_module conftest.err; then
7640 cat conftest.err >&5
7641 # Otherwise, if the output was created with a 0 exit code from
7642 # the compiler, it worked.
7643 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7644 lt_cv_apple_cc_single_mod=yes
7645 else
7646 cat conftest.err >&5
7647 fi
7648 rm -rf libconftest.dylib*
7649 rm -f conftest.*
7650 fi
7651 fi
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7653 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7654
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7656 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7657 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7658 $as_echo_n "(cached) " >&6
7659 else
7660 lt_cv_ld_exported_symbols_list=no
7661 save_LDFLAGS=$LDFLAGS
7662 echo "_main" > conftest.sym
7663 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7665 /* end confdefs.h. */
7666
7667 int
7668 main ()
7669 {
7670
7671 ;
7672 return 0;
7673 }
7674 _ACEOF
7675 if ac_fn_c_try_link "$LINENO"; then :
7676 lt_cv_ld_exported_symbols_list=yes
7677 else
7678 lt_cv_ld_exported_symbols_list=no
7679 fi
7680 rm -f core conftest.err conftest.$ac_objext \
7681 conftest$ac_exeext conftest.$ac_ext
7682 LDFLAGS="$save_LDFLAGS"
7683
7684 fi
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7686 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7687
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7689 $as_echo_n "checking for -force_load linker flag... " >&6; }
7690 if ${lt_cv_ld_force_load+:} false; then :
7691 $as_echo_n "(cached) " >&6
7692 else
7693 lt_cv_ld_force_load=no
7694 cat > conftest.c << _LT_EOF
7695 int forced_loaded() { return 2;}
7696 _LT_EOF
7697 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7698 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7699 echo "$AR cru libconftest.a conftest.o" >&5
7700 $AR cru libconftest.a conftest.o 2>&5
7701 echo "$RANLIB libconftest.a" >&5
7702 $RANLIB libconftest.a 2>&5
7703 cat > conftest.c << _LT_EOF
7704 int main() { return 0;}
7705 _LT_EOF
7706 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7707 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7708 _lt_result=$?
7709 if test -s conftest.err && $GREP force_load conftest.err; then
7710 cat conftest.err >&5
7711 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7712 lt_cv_ld_force_load=yes
7713 else
7714 cat conftest.err >&5
7715 fi
7716 rm -f conftest.err libconftest.a conftest conftest.c
7717 rm -rf conftest.dSYM
7718
7719 fi
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7721 $as_echo "$lt_cv_ld_force_load" >&6; }
7722 case $host_os in
7723 rhapsody* | darwin1.[012])
7724 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7725 darwin1.*)
7726 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7727 darwin*) # darwin 5.x on
7728 # if running on 10.5 or later, the deployment target defaults
7729 # to the OS version, if on x86, and 10.4, the deployment
7730 # target defaults to 10.4. Don't you love it?
7731 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7732 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7733 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7734 10.[012]*)
7735 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7736 10.*)
7737 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7738 esac
7739 ;;
7740 esac
7741 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7742 _lt_dar_single_mod='$single_module'
7743 fi
7744 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7745 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7746 else
7747 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7748 fi
7749 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7750 _lt_dsymutil='~$DSYMUTIL $lib || :'
7751 else
7752 _lt_dsymutil=
7753 fi
7754 ;;
7755 esac
7756
7757 ac_ext=c
7758 ac_cpp='$CPP $CPPFLAGS'
7759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7763 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7764 # On Suns, sometimes $CPP names a directory.
7765 if test -n "$CPP" && test -d "$CPP"; then
7766 CPP=
7767 fi
7768 if test -z "$CPP"; then
7769 if ${ac_cv_prog_CPP+:} false; then :
7770 $as_echo_n "(cached) " >&6
7771 else
7772 # Double quotes because CPP needs to be expanded
7773 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7774 do
7775 ac_preproc_ok=false
7776 for ac_c_preproc_warn_flag in '' yes
7777 do
7778 # Use a header file that comes with gcc, so configuring glibc
7779 # with a fresh cross-compiler works.
7780 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7781 # <limits.h> exists even on freestanding compilers.
7782 # On the NeXT, cc -E runs the code through the compiler's parser,
7783 # not just through cpp. "Syntax error" is here to catch this case.
7784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7785 /* end confdefs.h. */
7786 #ifdef __STDC__
7787 # include <limits.h>
7788 #else
7789 # include <assert.h>
7790 #endif
7791 Syntax error
7792 _ACEOF
7793 if ac_fn_c_try_cpp "$LINENO"; then :
7794
7795 else
7796 # Broken: fails on valid input.
7797 continue
7798 fi
7799 rm -f conftest.err conftest.i conftest.$ac_ext
7800
7801 # OK, works on sane cases. Now check whether nonexistent headers
7802 # can be detected and how.
7803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7804 /* end confdefs.h. */
7805 #include <ac_nonexistent.h>
7806 _ACEOF
7807 if ac_fn_c_try_cpp "$LINENO"; then :
7808 # Broken: success on invalid input.
7809 continue
7810 else
7811 # Passes both tests.
7812 ac_preproc_ok=:
7813 break
7814 fi
7815 rm -f conftest.err conftest.i conftest.$ac_ext
7816
7817 done
7818 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7819 rm -f conftest.i conftest.err conftest.$ac_ext
7820 if $ac_preproc_ok; then :
7821 break
7822 fi
7823
7824 done
7825 ac_cv_prog_CPP=$CPP
7826
7827 fi
7828 CPP=$ac_cv_prog_CPP
7829 else
7830 ac_cv_prog_CPP=$CPP
7831 fi
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7833 $as_echo "$CPP" >&6; }
7834 ac_preproc_ok=false
7835 for ac_c_preproc_warn_flag in '' yes
7836 do
7837 # Use a header file that comes with gcc, so configuring glibc
7838 # with a fresh cross-compiler works.
7839 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7840 # <limits.h> exists even on freestanding compilers.
7841 # On the NeXT, cc -E runs the code through the compiler's parser,
7842 # not just through cpp. "Syntax error" is here to catch this case.
7843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7844 /* end confdefs.h. */
7845 #ifdef __STDC__
7846 # include <limits.h>
7847 #else
7848 # include <assert.h>
7849 #endif
7850 Syntax error
7851 _ACEOF
7852 if ac_fn_c_try_cpp "$LINENO"; then :
7853
7854 else
7855 # Broken: fails on valid input.
7856 continue
7857 fi
7858 rm -f conftest.err conftest.i conftest.$ac_ext
7859
7860 # OK, works on sane cases. Now check whether nonexistent headers
7861 # can be detected and how.
7862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7863 /* end confdefs.h. */
7864 #include <ac_nonexistent.h>
7865 _ACEOF
7866 if ac_fn_c_try_cpp "$LINENO"; then :
7867 # Broken: success on invalid input.
7868 continue
7869 else
7870 # Passes both tests.
7871 ac_preproc_ok=:
7872 break
7873 fi
7874 rm -f conftest.err conftest.i conftest.$ac_ext
7875
7876 done
7877 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7878 rm -f conftest.i conftest.err conftest.$ac_ext
7879 if $ac_preproc_ok; then :
7880
7881 else
7882 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7883 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7884 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7885 See \`config.log' for more details" "$LINENO" 5; }
7886 fi
7887
7888 ac_ext=c
7889 ac_cpp='$CPP $CPPFLAGS'
7890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7893
7894
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7896 $as_echo_n "checking for ANSI C header files... " >&6; }
7897 if ${ac_cv_header_stdc+:} false; then :
7898 $as_echo_n "(cached) " >&6
7899 else
7900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7901 /* end confdefs.h. */
7902 #include <stdlib.h>
7903 #include <stdarg.h>
7904 #include <string.h>
7905 #include <float.h>
7906
7907 int
7908 main ()
7909 {
7910
7911 ;
7912 return 0;
7913 }
7914 _ACEOF
7915 if ac_fn_c_try_compile "$LINENO"; then :
7916 ac_cv_header_stdc=yes
7917 else
7918 ac_cv_header_stdc=no
7919 fi
7920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7921
7922 if test $ac_cv_header_stdc = yes; then
7923 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7925 /* end confdefs.h. */
7926 #include <string.h>
7927
7928 _ACEOF
7929 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7930 $EGREP "memchr" >/dev/null 2>&1; then :
7931
7932 else
7933 ac_cv_header_stdc=no
7934 fi
7935 rm -f conftest*
7936
7937 fi
7938
7939 if test $ac_cv_header_stdc = yes; then
7940 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7942 /* end confdefs.h. */
7943 #include <stdlib.h>
7944
7945 _ACEOF
7946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7947 $EGREP "free" >/dev/null 2>&1; then :
7948
7949 else
7950 ac_cv_header_stdc=no
7951 fi
7952 rm -f conftest*
7953
7954 fi
7955
7956 if test $ac_cv_header_stdc = yes; then
7957 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7958 if test "$cross_compiling" = yes; then :
7959 :
7960 else
7961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7962 /* end confdefs.h. */
7963 #include <ctype.h>
7964 #include <stdlib.h>
7965 #if ((' ' & 0x0FF) == 0x020)
7966 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7967 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7968 #else
7969 # define ISLOWER(c) \
7970 (('a' <= (c) && (c) <= 'i') \
7971 || ('j' <= (c) && (c) <= 'r') \
7972 || ('s' <= (c) && (c) <= 'z'))
7973 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7974 #endif
7975
7976 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7977 int
7978 main ()
7979 {
7980 int i;
7981 for (i = 0; i < 256; i++)
7982 if (XOR (islower (i), ISLOWER (i))
7983 || toupper (i) != TOUPPER (i))
7984 return 2;
7985 return 0;
7986 }
7987 _ACEOF
7988 if ac_fn_c_try_run "$LINENO"; then :
7989
7990 else
7991 ac_cv_header_stdc=no
7992 fi
7993 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7994 conftest.$ac_objext conftest.beam conftest.$ac_ext
7995 fi
7996
7997 fi
7998 fi
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8000 $as_echo "$ac_cv_header_stdc" >&6; }
8001 if test $ac_cv_header_stdc = yes; then
8002
8003 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8004
8005 fi
8006
8007 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8008 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8009 inttypes.h stdint.h unistd.h
8010 do :
8011 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8012 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8013 "
8014 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8015 cat >>confdefs.h <<_ACEOF
8016 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8017 _ACEOF
8018
8019 fi
8020
8021 done
8022
8023
8024 for ac_header in dlfcn.h
8025 do :
8026 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8027 "
8028 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8029 cat >>confdefs.h <<_ACEOF
8030 #define HAVE_DLFCN_H 1
8031 _ACEOF
8032
8033 fi
8034
8035 done
8036
8037
8038
8039
8040 func_stripname_cnf ()
8041 {
8042 case ${2} in
8043 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8044 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8045 esac
8046 } # func_stripname_cnf
8047
8048
8049
8050
8051
8052 # Set options
8053 # Check whether --enable-static was given.
8054 if test "${enable_static+set}" = set; then :
8055 enableval=$enable_static; p=${PACKAGE-default}
8056 case $enableval in
8057 yes) enable_static=yes ;;
8058 no) enable_static=no ;;
8059 *)
8060 enable_static=no
8061 # Look at the argument we got. We use all the common list separators.
8062 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8063 for pkg in $enableval; do
8064 IFS="$lt_save_ifs"
8065 if test "X$pkg" = "X$p"; then
8066 enable_static=yes
8067 fi
8068 done
8069 IFS="$lt_save_ifs"
8070 ;;
8071 esac
8072 else
8073 enable_static=no
8074 fi
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085 enable_dlopen=no
8086
8087
8088 enable_win32_dll=no
8089
8090
8091 # Check whether --enable-shared was given.
8092 if test "${enable_shared+set}" = set; then :
8093 enableval=$enable_shared; p=${PACKAGE-default}
8094 case $enableval in
8095 yes) enable_shared=yes ;;
8096 no) enable_shared=no ;;
8097 *)
8098 enable_shared=no
8099 # Look at the argument we got. We use all the common list separators.
8100 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8101 for pkg in $enableval; do
8102 IFS="$lt_save_ifs"
8103 if test "X$pkg" = "X$p"; then
8104 enable_shared=yes
8105 fi
8106 done
8107 IFS="$lt_save_ifs"
8108 ;;
8109 esac
8110 else
8111 enable_shared=yes
8112 fi
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124 # Check whether --with-pic was given.
8125 if test "${with_pic+set}" = set; then :
8126 withval=$with_pic; lt_p=${PACKAGE-default}
8127 case $withval in
8128 yes|no) pic_mode=$withval ;;
8129 *)
8130 pic_mode=default
8131 # Look at the argument we got. We use all the common list separators.
8132 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8133 for lt_pkg in $withval; do
8134 IFS="$lt_save_ifs"
8135 if test "X$lt_pkg" = "X$lt_p"; then
8136 pic_mode=yes
8137 fi
8138 done
8139 IFS="$lt_save_ifs"
8140 ;;
8141 esac
8142 else
8143 pic_mode=default
8144 fi
8145
8146
8147 test -z "$pic_mode" && pic_mode=default
8148
8149
8150
8151
8152
8153
8154
8155 # Check whether --enable-fast-install was given.
8156 if test "${enable_fast_install+set}" = set; then :
8157 enableval=$enable_fast_install; p=${PACKAGE-default}
8158 case $enableval in
8159 yes) enable_fast_install=yes ;;
8160 no) enable_fast_install=no ;;
8161 *)
8162 enable_fast_install=no
8163 # Look at the argument we got. We use all the common list separators.
8164 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8165 for pkg in $enableval; do
8166 IFS="$lt_save_ifs"
8167 if test "X$pkg" = "X$p"; then
8168 enable_fast_install=yes
8169 fi
8170 done
8171 IFS="$lt_save_ifs"
8172 ;;
8173 esac
8174 else
8175 enable_fast_install=yes
8176 fi
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188 # This can be used to rebuild libtool when needed
8189 LIBTOOL_DEPS="$ltmain"
8190
8191 # Always use our own libtool.
8192 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223 test -z "$LN_S" && LN_S="ln -s"
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238 if test -n "${ZSH_VERSION+set}" ; then
8239 setopt NO_GLOB_SUBST
8240 fi
8241
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8243 $as_echo_n "checking for objdir... " >&6; }
8244 if ${lt_cv_objdir+:} false; then :
8245 $as_echo_n "(cached) " >&6
8246 else
8247 rm -f .libs 2>/dev/null
8248 mkdir .libs 2>/dev/null
8249 if test -d .libs; then
8250 lt_cv_objdir=.libs
8251 else
8252 # MS-DOS does not allow filenames that begin with a dot.
8253 lt_cv_objdir=_libs
8254 fi
8255 rmdir .libs 2>/dev/null
8256 fi
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8258 $as_echo "$lt_cv_objdir" >&6; }
8259 objdir=$lt_cv_objdir
8260
8261
8262
8263
8264
8265 cat >>confdefs.h <<_ACEOF
8266 #define LT_OBJDIR "$lt_cv_objdir/"
8267 _ACEOF
8268
8269
8270
8271
8272 case $host_os in
8273 aix3*)
8274 # AIX sometimes has problems with the GCC collect2 program. For some
8275 # reason, if we set the COLLECT_NAMES environment variable, the problems
8276 # vanish in a puff of smoke.
8277 if test "X${COLLECT_NAMES+set}" != Xset; then
8278 COLLECT_NAMES=
8279 export COLLECT_NAMES
8280 fi
8281 ;;
8282 esac
8283
8284 # Global variables:
8285 ofile=libtool
8286 can_build_shared=yes
8287
8288 # All known linkers require a `.a' archive for static linking (except MSVC,
8289 # which needs '.lib').
8290 libext=a
8291
8292 with_gnu_ld="$lt_cv_prog_gnu_ld"
8293
8294 old_CC="$CC"
8295 old_CFLAGS="$CFLAGS"
8296
8297 # Set sane defaults for various variables
8298 test -z "$CC" && CC=cc
8299 test -z "$LTCC" && LTCC=$CC
8300 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8301 test -z "$LD" && LD=ld
8302 test -z "$ac_objext" && ac_objext=o
8303
8304 for cc_temp in $compiler""; do
8305 case $cc_temp in
8306 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8307 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8308 \-*) ;;
8309 *) break;;
8310 esac
8311 done
8312 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8313
8314
8315 # Only perform the check for file, if the check method requires it
8316 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8317 case $deplibs_check_method in
8318 file_magic*)
8319 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8321 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8322 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8323 $as_echo_n "(cached) " >&6
8324 else
8325 case $MAGIC_CMD in
8326 [\\/*] | ?:[\\/]*)
8327 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8328 ;;
8329 *)
8330 lt_save_MAGIC_CMD="$MAGIC_CMD"
8331 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8332 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8333 for ac_dir in $ac_dummy; do
8334 IFS="$lt_save_ifs"
8335 test -z "$ac_dir" && ac_dir=.
8336 if test -f $ac_dir/${ac_tool_prefix}file; then
8337 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8338 if test -n "$file_magic_test_file"; then
8339 case $deplibs_check_method in
8340 "file_magic "*)
8341 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8342 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8343 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8344 $EGREP "$file_magic_regex" > /dev/null; then
8345 :
8346 else
8347 cat <<_LT_EOF 1>&2
8348
8349 *** Warning: the command libtool uses to detect shared libraries,
8350 *** $file_magic_cmd, produces output that libtool cannot recognize.
8351 *** The result is that libtool may fail to recognize shared libraries
8352 *** as such. This will affect the creation of libtool libraries that
8353 *** depend on shared libraries, but programs linked with such libtool
8354 *** libraries will work regardless of this problem. Nevertheless, you
8355 *** may want to report the problem to your system manager and/or to
8356 *** [email protected]
8357
8358 _LT_EOF
8359 fi ;;
8360 esac
8361 fi
8362 break
8363 fi
8364 done
8365 IFS="$lt_save_ifs"
8366 MAGIC_CMD="$lt_save_MAGIC_CMD"
8367 ;;
8368 esac
8369 fi
8370
8371 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8372 if test -n "$MAGIC_CMD"; then
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8374 $as_echo "$MAGIC_CMD" >&6; }
8375 else
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8377 $as_echo "no" >&6; }
8378 fi
8379
8380
8381
8382
8383
8384 if test -z "$lt_cv_path_MAGIC_CMD"; then
8385 if test -n "$ac_tool_prefix"; then
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8387 $as_echo_n "checking for file... " >&6; }
8388 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8389 $as_echo_n "(cached) " >&6
8390 else
8391 case $MAGIC_CMD in
8392 [\\/*] | ?:[\\/]*)
8393 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8394 ;;
8395 *)
8396 lt_save_MAGIC_CMD="$MAGIC_CMD"
8397 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8398 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8399 for ac_dir in $ac_dummy; do
8400 IFS="$lt_save_ifs"
8401 test -z "$ac_dir" && ac_dir=.
8402 if test -f $ac_dir/file; then
8403 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8404 if test -n "$file_magic_test_file"; then
8405 case $deplibs_check_method in
8406 "file_magic "*)
8407 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8408 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8409 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8410 $EGREP "$file_magic_regex" > /dev/null; then
8411 :
8412 else
8413 cat <<_LT_EOF 1>&2
8414
8415 *** Warning: the command libtool uses to detect shared libraries,
8416 *** $file_magic_cmd, produces output that libtool cannot recognize.
8417 *** The result is that libtool may fail to recognize shared libraries
8418 *** as such. This will affect the creation of libtool libraries that
8419 *** depend on shared libraries, but programs linked with such libtool
8420 *** libraries will work regardless of this problem. Nevertheless, you
8421 *** may want to report the problem to your system manager and/or to
8422 *** [email protected]
8423
8424 _LT_EOF
8425 fi ;;
8426 esac
8427 fi
8428 break
8429 fi
8430 done
8431 IFS="$lt_save_ifs"
8432 MAGIC_CMD="$lt_save_MAGIC_CMD"
8433 ;;
8434 esac
8435 fi
8436
8437 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8438 if test -n "$MAGIC_CMD"; then
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8440 $as_echo "$MAGIC_CMD" >&6; }
8441 else
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8443 $as_echo "no" >&6; }
8444 fi
8445
8446
8447 else
8448 MAGIC_CMD=:
8449 fi
8450 fi
8451
8452 fi
8453 ;;
8454 esac
8455
8456 # Use C for the default configuration in the libtool script
8457
8458 lt_save_CC="$CC"
8459 ac_ext=c
8460 ac_cpp='$CPP $CPPFLAGS'
8461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8464
8465
8466 # Source file extension for C test sources.
8467 ac_ext=c
8468
8469 # Object file extension for compiled C test sources.
8470 objext=o
8471 objext=$objext
8472
8473 # Code to be used in simple compile tests
8474 lt_simple_compile_test_code="int some_variable = 0;"
8475
8476 # Code to be used in simple link tests
8477 lt_simple_link_test_code='int main(){return(0);}'
8478
8479
8480
8481
8482
8483
8484
8485 # If no C compiler was specified, use CC.
8486 LTCC=${LTCC-"$CC"}
8487
8488 # If no C compiler flags were specified, use CFLAGS.
8489 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8490
8491 # Allow CC to be a program name with arguments.
8492 compiler=$CC
8493
8494 # Save the default compiler, since it gets overwritten when the other
8495 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8496 compiler_DEFAULT=$CC
8497
8498 # save warnings/boilerplate of simple test code
8499 ac_outfile=conftest.$ac_objext
8500 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8501 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8502 _lt_compiler_boilerplate=`cat conftest.err`
8503 $RM conftest*
8504
8505 ac_outfile=conftest.$ac_objext
8506 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8507 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8508 _lt_linker_boilerplate=`cat conftest.err`
8509 $RM -r conftest*
8510
8511
8512 ## CAVEAT EMPTOR:
8513 ## There is no encapsulation within the following macros, do not change
8514 ## the running order or otherwise move them around unless you know exactly
8515 ## what you are doing...
8516 if test -n "$compiler"; then
8517
8518 lt_prog_compiler_no_builtin_flag=
8519
8520 if test "$GCC" = yes; then
8521 case $cc_basename in
8522 nvcc*)
8523 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8524 *)
8525 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8526 esac
8527
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8529 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8530 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8531 $as_echo_n "(cached) " >&6
8532 else
8533 lt_cv_prog_compiler_rtti_exceptions=no
8534 ac_outfile=conftest.$ac_objext
8535 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8536 lt_compiler_flag="-fno-rtti -fno-exceptions"
8537 # Insert the option either (1) after the last *FLAGS variable, or
8538 # (2) before a word containing "conftest.", or (3) at the end.
8539 # Note that $ac_compile itself does not contain backslashes and begins
8540 # with a dollar sign (not a hyphen), so the echo should work correctly.
8541 # The option is referenced via a variable to avoid confusing sed.
8542 lt_compile=`echo "$ac_compile" | $SED \
8543 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8544 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8545 -e 's:$: $lt_compiler_flag:'`
8546 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8547 (eval "$lt_compile" 2>conftest.err)
8548 ac_status=$?
8549 cat conftest.err >&5
8550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551 if (exit $ac_status) && test -s "$ac_outfile"; then
8552 # The compiler can only warn and ignore the option if not recognized
8553 # So say no if there are warnings other than the usual output.
8554 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8555 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8556 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8557 lt_cv_prog_compiler_rtti_exceptions=yes
8558 fi
8559 fi
8560 $RM conftest*
8561
8562 fi
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8564 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8565
8566 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8567 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8568 else
8569 :
8570 fi
8571
8572 fi
8573
8574
8575
8576
8577
8578
8579 lt_prog_compiler_wl=
8580 lt_prog_compiler_pic=
8581 lt_prog_compiler_static=
8582
8583
8584 if test "$GCC" = yes; then
8585 lt_prog_compiler_wl='-Wl,'
8586 lt_prog_compiler_static='-static'
8587
8588 case $host_os in
8589 aix*)
8590 # All AIX code is PIC.
8591 if test "$host_cpu" = ia64; then
8592 # AIX 5 now supports IA64 processor
8593 lt_prog_compiler_static='-Bstatic'
8594 fi
8595 ;;
8596
8597 amigaos*)
8598 case $host_cpu in
8599 powerpc)
8600 # see comment about AmigaOS4 .so support
8601 lt_prog_compiler_pic='-fPIC'
8602 ;;
8603 m68k)
8604 # FIXME: we need at least 68020 code to build shared libraries, but
8605 # adding the `-m68020' flag to GCC prevents building anything better,
8606 # like `-m68040'.
8607 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8608 ;;
8609 esac
8610 ;;
8611
8612 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8613 # PIC is the default for these OSes.
8614 ;;
8615
8616 mingw* | cygwin* | pw32* | os2* | cegcc*)
8617 # This hack is so that the source file can tell whether it is being
8618 # built for inclusion in a dll (and should export symbols for example).
8619 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8620 # (--disable-auto-import) libraries
8621 lt_prog_compiler_pic='-DDLL_EXPORT'
8622 ;;
8623
8624 darwin* | rhapsody*)
8625 # PIC is the default on this platform
8626 # Common symbols not allowed in MH_DYLIB files
8627 lt_prog_compiler_pic='-fno-common'
8628 ;;
8629
8630 haiku*)
8631 # PIC is the default for Haiku.
8632 # The "-static" flag exists, but is broken.
8633 lt_prog_compiler_static=
8634 ;;
8635
8636 hpux*)
8637 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8638 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8639 # sets the default TLS model and affects inlining.
8640 case $host_cpu in
8641 hppa*64*)
8642 # +Z the default
8643 ;;
8644 *)
8645 lt_prog_compiler_pic='-fPIC'
8646 ;;
8647 esac
8648 ;;
8649
8650 interix[3-9]*)
8651 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8652 # Instead, we relocate shared libraries at runtime.
8653 ;;
8654
8655 msdosdjgpp*)
8656 # Just because we use GCC doesn't mean we suddenly get shared libraries
8657 # on systems that don't support them.
8658 lt_prog_compiler_can_build_shared=no
8659 enable_shared=no
8660 ;;
8661
8662 *nto* | *qnx*)
8663 # QNX uses GNU C++, but need to define -shared option too, otherwise
8664 # it will coredump.
8665 lt_prog_compiler_pic='-fPIC -shared'
8666 ;;
8667
8668 sysv4*MP*)
8669 if test -d /usr/nec; then
8670 lt_prog_compiler_pic=-Kconform_pic
8671 fi
8672 ;;
8673
8674 *)
8675 lt_prog_compiler_pic='-fPIC'
8676 ;;
8677 esac
8678
8679 case $cc_basename in
8680 nvcc*) # Cuda Compiler Driver 2.2
8681 lt_prog_compiler_wl='-Xlinker '
8682 if test -n "$lt_prog_compiler_pic"; then
8683 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8684 fi
8685 ;;
8686 esac
8687 else
8688 # PORTME Check for flag to pass linker flags through the system compiler.
8689 case $host_os in
8690 aix*)
8691 lt_prog_compiler_wl='-Wl,'
8692 if test "$host_cpu" = ia64; then
8693 # AIX 5 now supports IA64 processor
8694 lt_prog_compiler_static='-Bstatic'
8695 else
8696 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8697 fi
8698 ;;
8699
8700 mingw* | cygwin* | pw32* | os2* | cegcc*)
8701 # This hack is so that the source file can tell whether it is being
8702 # built for inclusion in a dll (and should export symbols for example).
8703 lt_prog_compiler_pic='-DDLL_EXPORT'
8704 ;;
8705
8706 hpux9* | hpux10* | hpux11*)
8707 lt_prog_compiler_wl='-Wl,'
8708 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8709 # not for PA HP-UX.
8710 case $host_cpu in
8711 hppa*64*|ia64*)
8712 # +Z the default
8713 ;;
8714 *)
8715 lt_prog_compiler_pic='+Z'
8716 ;;
8717 esac
8718 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8719 lt_prog_compiler_static='${wl}-a ${wl}archive'
8720 ;;
8721
8722 irix5* | irix6* | nonstopux*)
8723 lt_prog_compiler_wl='-Wl,'
8724 # PIC (with -KPIC) is the default.
8725 lt_prog_compiler_static='-non_shared'
8726 ;;
8727
8728 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8729 case $cc_basename in
8730 # old Intel for x86_64 which still supported -KPIC.
8731 ecc*)
8732 lt_prog_compiler_wl='-Wl,'
8733 lt_prog_compiler_pic='-KPIC'
8734 lt_prog_compiler_static='-static'
8735 ;;
8736 # icc used to be incompatible with GCC.
8737 # ICC 10 doesn't accept -KPIC any more.
8738 icc* | ifort*)
8739 lt_prog_compiler_wl='-Wl,'
8740 lt_prog_compiler_pic='-fPIC'
8741 lt_prog_compiler_static='-static'
8742 ;;
8743 # Lahey Fortran 8.1.
8744 lf95*)
8745 lt_prog_compiler_wl='-Wl,'
8746 lt_prog_compiler_pic='--shared'
8747 lt_prog_compiler_static='--static'
8748 ;;
8749 nagfor*)
8750 # NAG Fortran compiler
8751 lt_prog_compiler_wl='-Wl,-Wl,,'
8752 lt_prog_compiler_pic='-PIC'
8753 lt_prog_compiler_static='-Bstatic'
8754 ;;
8755 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8756 # Portland Group compilers (*not* the Pentium gcc compiler,
8757 # which looks to be a dead project)
8758 lt_prog_compiler_wl='-Wl,'
8759 lt_prog_compiler_pic='-fpic'
8760 lt_prog_compiler_static='-Bstatic'
8761 ;;
8762 ccc*)
8763 lt_prog_compiler_wl='-Wl,'
8764 # All Alpha code is PIC.
8765 lt_prog_compiler_static='-non_shared'
8766 ;;
8767 xl* | bgxl* | bgf* | mpixl*)
8768 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8769 lt_prog_compiler_wl='-Wl,'
8770 lt_prog_compiler_pic='-qpic'
8771 lt_prog_compiler_static='-qstaticlink'
8772 ;;
8773 *)
8774 case `$CC -V 2>&1 | sed 5q` in
8775 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8776 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8777 lt_prog_compiler_pic='-KPIC'
8778 lt_prog_compiler_static='-Bstatic'
8779 lt_prog_compiler_wl=''
8780 ;;
8781 *Sun\ F* | *Sun*Fortran*)
8782 lt_prog_compiler_pic='-KPIC'
8783 lt_prog_compiler_static='-Bstatic'
8784 lt_prog_compiler_wl='-Qoption ld '
8785 ;;
8786 *Sun\ C*)
8787 # Sun C 5.9
8788 lt_prog_compiler_pic='-KPIC'
8789 lt_prog_compiler_static='-Bstatic'
8790 lt_prog_compiler_wl='-Wl,'
8791 ;;
8792 *Intel*\ [CF]*Compiler*)
8793 lt_prog_compiler_wl='-Wl,'
8794 lt_prog_compiler_pic='-fPIC'
8795 lt_prog_compiler_static='-static'
8796 ;;
8797 *Portland\ Group*)
8798 lt_prog_compiler_wl='-Wl,'
8799 lt_prog_compiler_pic='-fpic'
8800 lt_prog_compiler_static='-Bstatic'
8801 ;;
8802 esac
8803 ;;
8804 esac
8805 ;;
8806
8807 newsos6)
8808 lt_prog_compiler_pic='-KPIC'
8809 lt_prog_compiler_static='-Bstatic'
8810 ;;
8811
8812 *nto* | *qnx*)
8813 # QNX uses GNU C++, but need to define -shared option too, otherwise
8814 # it will coredump.
8815 lt_prog_compiler_pic='-fPIC -shared'
8816 ;;
8817
8818 osf3* | osf4* | osf5*)
8819 lt_prog_compiler_wl='-Wl,'
8820 # All OSF/1 code is PIC.
8821 lt_prog_compiler_static='-non_shared'
8822 ;;
8823
8824 rdos*)
8825 lt_prog_compiler_static='-non_shared'
8826 ;;
8827
8828 solaris*)
8829 lt_prog_compiler_pic='-KPIC'
8830 lt_prog_compiler_static='-Bstatic'
8831 case $cc_basename in
8832 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8833 lt_prog_compiler_wl='-Qoption ld ';;
8834 *)
8835 lt_prog_compiler_wl='-Wl,';;
8836 esac
8837 ;;
8838
8839 sunos4*)
8840 lt_prog_compiler_wl='-Qoption ld '
8841 lt_prog_compiler_pic='-PIC'
8842 lt_prog_compiler_static='-Bstatic'
8843 ;;
8844
8845 sysv4 | sysv4.2uw2* | sysv4.3*)
8846 lt_prog_compiler_wl='-Wl,'
8847 lt_prog_compiler_pic='-KPIC'
8848 lt_prog_compiler_static='-Bstatic'
8849 ;;
8850
8851 sysv4*MP*)
8852 if test -d /usr/nec ;then
8853 lt_prog_compiler_pic='-Kconform_pic'
8854 lt_prog_compiler_static='-Bstatic'
8855 fi
8856 ;;
8857
8858 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8859 lt_prog_compiler_wl='-Wl,'
8860 lt_prog_compiler_pic='-KPIC'
8861 lt_prog_compiler_static='-Bstatic'
8862 ;;
8863
8864 unicos*)
8865 lt_prog_compiler_wl='-Wl,'
8866 lt_prog_compiler_can_build_shared=no
8867 ;;
8868
8869 uts4*)
8870 lt_prog_compiler_pic='-pic'
8871 lt_prog_compiler_static='-Bstatic'
8872 ;;
8873
8874 *)
8875 lt_prog_compiler_can_build_shared=no
8876 ;;
8877 esac
8878 fi
8879
8880 case $host_os in
8881 # For platforms which do not support PIC, -DPIC is meaningless:
8882 *djgpp*)
8883 lt_prog_compiler_pic=
8884 ;;
8885 *)
8886 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8887 ;;
8888 esac
8889
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8891 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8892 if ${lt_cv_prog_compiler_pic+:} false; then :
8893 $as_echo_n "(cached) " >&6
8894 else
8895 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8896 fi
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8898 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8899 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8900
8901 #
8902 # Check to make sure the PIC flag actually works.
8903 #
8904 if test -n "$lt_prog_compiler_pic"; then
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8906 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8907 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8908 $as_echo_n "(cached) " >&6
8909 else
8910 lt_cv_prog_compiler_pic_works=no
8911 ac_outfile=conftest.$ac_objext
8912 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8913 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8914 # Insert the option either (1) after the last *FLAGS variable, or
8915 # (2) before a word containing "conftest.", or (3) at the end.
8916 # Note that $ac_compile itself does not contain backslashes and begins
8917 # with a dollar sign (not a hyphen), so the echo should work correctly.
8918 # The option is referenced via a variable to avoid confusing sed.
8919 lt_compile=`echo "$ac_compile" | $SED \
8920 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8921 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8922 -e 's:$: $lt_compiler_flag:'`
8923 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8924 (eval "$lt_compile" 2>conftest.err)
8925 ac_status=$?
8926 cat conftest.err >&5
8927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928 if (exit $ac_status) && test -s "$ac_outfile"; then
8929 # The compiler can only warn and ignore the option if not recognized
8930 # So say no if there are warnings other than the usual output.
8931 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8932 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8933 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8934 lt_cv_prog_compiler_pic_works=yes
8935 fi
8936 fi
8937 $RM conftest*
8938
8939 fi
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8941 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8942
8943 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8944 case $lt_prog_compiler_pic in
8945 "" | " "*) ;;
8946 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8947 esac
8948 else
8949 lt_prog_compiler_pic=
8950 lt_prog_compiler_can_build_shared=no
8951 fi
8952
8953 fi
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965 #
8966 # Check to make sure the static flag actually works.
8967 #
8968 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8970 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8971 if ${lt_cv_prog_compiler_static_works+:} false; then :
8972 $as_echo_n "(cached) " >&6
8973 else
8974 lt_cv_prog_compiler_static_works=no
8975 save_LDFLAGS="$LDFLAGS"
8976 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8977 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8978 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8979 # The linker can only warn and ignore the option if not recognized
8980 # So say no if there are warnings
8981 if test -s conftest.err; then
8982 # Append any errors to the config.log.
8983 cat conftest.err 1>&5
8984 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8985 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8986 if diff conftest.exp conftest.er2 >/dev/null; then
8987 lt_cv_prog_compiler_static_works=yes
8988 fi
8989 else
8990 lt_cv_prog_compiler_static_works=yes
8991 fi
8992 fi
8993 $RM -r conftest*
8994 LDFLAGS="$save_LDFLAGS"
8995
8996 fi
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8998 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8999
9000 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9001 :
9002 else
9003 lt_prog_compiler_static=
9004 fi
9005
9006
9007
9008
9009
9010
9011
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9013 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9014 if ${lt_cv_prog_compiler_c_o+:} false; then :
9015 $as_echo_n "(cached) " >&6
9016 else
9017 lt_cv_prog_compiler_c_o=no
9018 $RM -r conftest 2>/dev/null
9019 mkdir conftest
9020 cd conftest
9021 mkdir out
9022 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9023
9024 lt_compiler_flag="-o out/conftest2.$ac_objext"
9025 # Insert the option either (1) after the last *FLAGS variable, or
9026 # (2) before a word containing "conftest.", or (3) at the end.
9027 # Note that $ac_compile itself does not contain backslashes and begins
9028 # with a dollar sign (not a hyphen), so the echo should work correctly.
9029 lt_compile=`echo "$ac_compile" | $SED \
9030 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9031 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9032 -e 's:$: $lt_compiler_flag:'`
9033 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9034 (eval "$lt_compile" 2>out/conftest.err)
9035 ac_status=$?
9036 cat out/conftest.err >&5
9037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9039 then
9040 # The compiler can only warn and ignore the option if not recognized
9041 # So say no if there are warnings
9042 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9043 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9044 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9045 lt_cv_prog_compiler_c_o=yes
9046 fi
9047 fi
9048 chmod u+w . 2>&5
9049 $RM conftest*
9050 # SGI C++ compiler will create directory out/ii_files/ for
9051 # template instantiation
9052 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9053 $RM out/* && rmdir out
9054 cd ..
9055 $RM -r conftest
9056 $RM conftest*
9057
9058 fi
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9060 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9061
9062
9063
9064
9065
9066
9067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9068 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9069 if ${lt_cv_prog_compiler_c_o+:} false; then :
9070 $as_echo_n "(cached) " >&6
9071 else
9072 lt_cv_prog_compiler_c_o=no
9073 $RM -r conftest 2>/dev/null
9074 mkdir conftest
9075 cd conftest
9076 mkdir out
9077 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9078
9079 lt_compiler_flag="-o out/conftest2.$ac_objext"
9080 # Insert the option either (1) after the last *FLAGS variable, or
9081 # (2) before a word containing "conftest.", or (3) at the end.
9082 # Note that $ac_compile itself does not contain backslashes and begins
9083 # with a dollar sign (not a hyphen), so the echo should work correctly.
9084 lt_compile=`echo "$ac_compile" | $SED \
9085 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9086 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9087 -e 's:$: $lt_compiler_flag:'`
9088 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9089 (eval "$lt_compile" 2>out/conftest.err)
9090 ac_status=$?
9091 cat out/conftest.err >&5
9092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9093 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9094 then
9095 # The compiler can only warn and ignore the option if not recognized
9096 # So say no if there are warnings
9097 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9098 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9099 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9100 lt_cv_prog_compiler_c_o=yes
9101 fi
9102 fi
9103 chmod u+w . 2>&5
9104 $RM conftest*
9105 # SGI C++ compiler will create directory out/ii_files/ for
9106 # template instantiation
9107 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9108 $RM out/* && rmdir out
9109 cd ..
9110 $RM -r conftest
9111 $RM conftest*
9112
9113 fi
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9115 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9116
9117
9118
9119
9120 hard_links="nottested"
9121 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9122 # do not overwrite the value of need_locks provided by the user
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9124 $as_echo_n "checking if we can lock with hard links... " >&6; }
9125 hard_links=yes
9126 $RM conftest*
9127 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9128 touch conftest.a
9129 ln conftest.a conftest.b 2>&5 || hard_links=no
9130 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9132 $as_echo "$hard_links" >&6; }
9133 if test "$hard_links" = no; then
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9135 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9136 need_locks=warn
9137 fi
9138 else
9139 need_locks=no
9140 fi
9141
9142
9143
9144
9145
9146
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9148 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9149
9150 runpath_var=
9151 allow_undefined_flag=
9152 always_export_symbols=no
9153 archive_cmds=
9154 archive_expsym_cmds=
9155 compiler_needs_object=no
9156 enable_shared_with_static_runtimes=no
9157 export_dynamic_flag_spec=
9158 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9159 hardcode_automatic=no
9160 hardcode_direct=no
9161 hardcode_direct_absolute=no
9162 hardcode_libdir_flag_spec=
9163 hardcode_libdir_separator=
9164 hardcode_minus_L=no
9165 hardcode_shlibpath_var=unsupported
9166 inherit_rpath=no
9167 link_all_deplibs=unknown
9168 module_cmds=
9169 module_expsym_cmds=
9170 old_archive_from_new_cmds=
9171 old_archive_from_expsyms_cmds=
9172 thread_safe_flag_spec=
9173 whole_archive_flag_spec=
9174 # include_expsyms should be a list of space-separated symbols to be *always*
9175 # included in the symbol list
9176 include_expsyms=
9177 # exclude_expsyms can be an extended regexp of symbols to exclude
9178 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9179 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9180 # as well as any symbol that contains `d'.
9181 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9182 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9183 # platforms (ab)use it in PIC code, but their linkers get confused if
9184 # the symbol is explicitly referenced. Since portable code cannot
9185 # rely on this symbol name, it's probably fine to never include it in
9186 # preloaded symbol tables.
9187 # Exclude shared library initialization/finalization symbols.
9188 extract_expsyms_cmds=
9189
9190 case $host_os in
9191 cygwin* | mingw* | pw32* | cegcc*)
9192 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9193 # When not using gcc, we currently assume that we are using
9194 # Microsoft Visual C++.
9195 if test "$GCC" != yes; then
9196 with_gnu_ld=no
9197 fi
9198 ;;
9199 interix*)
9200 # we just hope/assume this is gcc and not c89 (= MSVC++)
9201 with_gnu_ld=yes
9202 ;;
9203 openbsd*)
9204 with_gnu_ld=no
9205 ;;
9206 linux* | k*bsd*-gnu | gnu*)
9207 link_all_deplibs=no
9208 ;;
9209 esac
9210
9211 ld_shlibs=yes
9212
9213 # On some targets, GNU ld is compatible enough with the native linker
9214 # that we're better off using the native interface for both.
9215 lt_use_gnu_ld_interface=no
9216 if test "$with_gnu_ld" = yes; then
9217 case $host_os in
9218 aix*)
9219 # The AIX port of GNU ld has always aspired to compatibility
9220 # with the native linker. However, as the warning in the GNU ld
9221 # block says, versions before 2.19.5* couldn't really create working
9222 # shared libraries, regardless of the interface used.
9223 case `$LD -v 2>&1` in
9224 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9225 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9226 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9227 *)
9228 lt_use_gnu_ld_interface=yes
9229 ;;
9230 esac
9231 ;;
9232 *)
9233 lt_use_gnu_ld_interface=yes
9234 ;;
9235 esac
9236 fi
9237
9238 if test "$lt_use_gnu_ld_interface" = yes; then
9239 # If archive_cmds runs LD, not CC, wlarc should be empty
9240 wlarc='${wl}'
9241
9242 # Set some defaults for GNU ld with shared library support. These
9243 # are reset later if shared libraries are not supported. Putting them
9244 # here allows them to be overridden if necessary.
9245 runpath_var=LD_RUN_PATH
9246 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9247 export_dynamic_flag_spec='${wl}--export-dynamic'
9248 # ancient GNU ld didn't support --whole-archive et. al.
9249 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9250 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9251 else
9252 whole_archive_flag_spec=
9253 fi
9254 supports_anon_versioning=no
9255 case `$LD -v 2>&1` in
9256 *GNU\ gold*) supports_anon_versioning=yes ;;
9257 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9258 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9259 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9260 *\ 2.11.*) ;; # other 2.11 versions
9261 *) supports_anon_versioning=yes ;;
9262 esac
9263
9264 # See if GNU ld supports shared libraries.
9265 case $host_os in
9266 aix[3-9]*)
9267 # On AIX/PPC, the GNU linker is very broken
9268 if test "$host_cpu" != ia64; then
9269 ld_shlibs=no
9270 cat <<_LT_EOF 1>&2
9271
9272 *** Warning: the GNU linker, at least up to release 2.19, is reported
9273 *** to be unable to reliably create shared libraries on AIX.
9274 *** Therefore, libtool is disabling shared libraries support. If you
9275 *** really care for shared libraries, you may want to install binutils
9276 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9277 *** You will then need to restart the configuration process.
9278
9279 _LT_EOF
9280 fi
9281 ;;
9282
9283 amigaos*)
9284 case $host_cpu in
9285 powerpc)
9286 # see comment about AmigaOS4 .so support
9287 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9288 archive_expsym_cmds=''
9289 ;;
9290 m68k)
9291 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)'
9292 hardcode_libdir_flag_spec='-L$libdir'
9293 hardcode_minus_L=yes
9294 ;;
9295 esac
9296 ;;
9297
9298 beos*)
9299 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9300 allow_undefined_flag=unsupported
9301 # Joseph Beckenbach <[email protected]> says some releases of gcc
9302 # support --undefined. This deserves some investigation. FIXME
9303 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9304 else
9305 ld_shlibs=no
9306 fi
9307 ;;
9308
9309 cygwin* | mingw* | pw32* | cegcc*)
9310 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9311 # as there is no search path for DLLs.
9312 hardcode_libdir_flag_spec='-L$libdir'
9313 export_dynamic_flag_spec='${wl}--export-all-symbols'
9314 allow_undefined_flag=unsupported
9315 always_export_symbols=no
9316 enable_shared_with_static_runtimes=yes
9317 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'
9318 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9319
9320 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9321 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9322 # If the export-symbols file already is a .def file (1st line
9323 # is EXPORTS), use it as is; otherwise, prepend...
9324 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9325 cp $export_symbols $output_objdir/$soname.def;
9326 else
9327 echo EXPORTS > $output_objdir/$soname.def;
9328 cat $export_symbols >> $output_objdir/$soname.def;
9329 fi~
9330 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9331 else
9332 ld_shlibs=no
9333 fi
9334 ;;
9335
9336 haiku*)
9337 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9338 link_all_deplibs=yes
9339 ;;
9340
9341 interix[3-9]*)
9342 hardcode_direct=no
9343 hardcode_shlibpath_var=no
9344 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9345 export_dynamic_flag_spec='${wl}-E'
9346 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9347 # Instead, shared libraries are loaded at an image base (0x10000000 by
9348 # default) and relocated if they conflict, which is a slow very memory
9349 # consuming and fragmenting process. To avoid this, we pick a random,
9350 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9351 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9352 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9353 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'
9354 ;;
9355
9356 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9357 tmp_diet=no
9358 if test "$host_os" = linux-dietlibc; then
9359 case $cc_basename in
9360 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9361 esac
9362 fi
9363 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9364 && test "$tmp_diet" = no
9365 then
9366 tmp_addflag=' $pic_flag'
9367 tmp_sharedflag='-shared'
9368 case $cc_basename,$host_cpu in
9369 pgcc*) # Portland Group C compiler
9370 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'
9371 tmp_addflag=' $pic_flag'
9372 ;;
9373 pgf77* | pgf90* | pgf95* | pgfortran*)
9374 # Portland Group f77 and f90 compilers
9375 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'
9376 tmp_addflag=' $pic_flag -Mnomain' ;;
9377 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9378 tmp_addflag=' -i_dynamic' ;;
9379 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9380 tmp_addflag=' -i_dynamic -nofor_main' ;;
9381 ifc* | ifort*) # Intel Fortran compiler
9382 tmp_addflag=' -nofor_main' ;;
9383 lf95*) # Lahey Fortran 8.1
9384 whole_archive_flag_spec=
9385 tmp_sharedflag='--shared' ;;
9386 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9387 tmp_sharedflag='-qmkshrobj'
9388 tmp_addflag= ;;
9389 nvcc*) # Cuda Compiler Driver 2.2
9390 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'
9391 compiler_needs_object=yes
9392 ;;
9393 esac
9394 case `$CC -V 2>&1 | sed 5q` in
9395 *Sun\ C*) # Sun C 5.9
9396 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'
9397 compiler_needs_object=yes
9398 tmp_sharedflag='-G' ;;
9399 *Sun\ F*) # Sun Fortran 8.3
9400 tmp_sharedflag='-G' ;;
9401 esac
9402 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9403
9404 if test "x$supports_anon_versioning" = xyes; then
9405 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9406 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9407 echo "local: *; };" >> $output_objdir/$libname.ver~
9408 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9409 fi
9410
9411 case $cc_basename in
9412 xlf* | bgf* | bgxlf* | mpixlf*)
9413 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9414 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9415 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9416 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9417 if test "x$supports_anon_versioning" = xyes; then
9418 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9419 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9420 echo "local: *; };" >> $output_objdir/$libname.ver~
9421 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9422 fi
9423 ;;
9424 esac
9425 else
9426 ld_shlibs=no
9427 fi
9428 ;;
9429
9430 netbsd* | netbsdelf*-gnu)
9431 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9432 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9433 wlarc=
9434 else
9435 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9436 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9437 fi
9438 ;;
9439
9440 solaris*)
9441 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9442 ld_shlibs=no
9443 cat <<_LT_EOF 1>&2
9444
9445 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9446 *** create shared libraries on Solaris systems. Therefore, libtool
9447 *** is disabling shared libraries support. We urge you to upgrade GNU
9448 *** binutils to release 2.9.1 or newer. Another option is to modify
9449 *** your PATH or compiler configuration so that the native linker is
9450 *** used, and then restart.
9451
9452 _LT_EOF
9453 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9454 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9455 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9456 else
9457 ld_shlibs=no
9458 fi
9459 ;;
9460
9461 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9462 case `$LD -v 2>&1` in
9463 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9464 ld_shlibs=no
9465 cat <<_LT_EOF 1>&2
9466
9467 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9468 *** reliably create shared libraries on SCO systems. Therefore, libtool
9469 *** is disabling shared libraries support. We urge you to upgrade GNU
9470 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9471 *** your PATH or compiler configuration so that the native linker is
9472 *** used, and then restart.
9473
9474 _LT_EOF
9475 ;;
9476 *)
9477 # For security reasons, it is highly recommended that you always
9478 # use absolute paths for naming shared libraries, and exclude the
9479 # DT_RUNPATH tag from executables and libraries. But doing so
9480 # requires that you compile everything twice, which is a pain.
9481 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9482 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9483 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9484 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9485 else
9486 ld_shlibs=no
9487 fi
9488 ;;
9489 esac
9490 ;;
9491
9492 sunos4*)
9493 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9494 wlarc=
9495 hardcode_direct=yes
9496 hardcode_shlibpath_var=no
9497 ;;
9498
9499 *)
9500 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9501 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9502 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9503 else
9504 ld_shlibs=no
9505 fi
9506 ;;
9507 esac
9508
9509 if test "$ld_shlibs" = no; then
9510 runpath_var=
9511 hardcode_libdir_flag_spec=
9512 export_dynamic_flag_spec=
9513 whole_archive_flag_spec=
9514 fi
9515 else
9516 # PORTME fill in a description of your system's linker (not GNU ld)
9517 case $host_os in
9518 aix3*)
9519 allow_undefined_flag=unsupported
9520 always_export_symbols=yes
9521 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'
9522 # Note: this linker hardcodes the directories in LIBPATH if there
9523 # are no directories specified by -L.
9524 hardcode_minus_L=yes
9525 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9526 # Neither direct hardcoding nor static linking is supported with a
9527 # broken collect2.
9528 hardcode_direct=unsupported
9529 fi
9530 ;;
9531
9532 aix[4-9]*)
9533 if test "$host_cpu" = ia64; then
9534 # On IA64, the linker does run time linking by default, so we don't
9535 # have to do anything special.
9536 aix_use_runtimelinking=no
9537 exp_sym_flag='-Bexport'
9538 no_entry_flag=""
9539 else
9540 # If we're using GNU nm, then we don't want the "-C" option.
9541 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9542 # Also, AIX nm treats weak defined symbols like other global
9543 # defined symbols, whereas GNU nm marks them as "W".
9544 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9545 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9546 else
9547 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9548 fi
9549 aix_use_runtimelinking=no
9550
9551 # Test if we are trying to use run time linking or normal
9552 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9553 # need to do runtime linking.
9554 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9555 for ld_flag in $LDFLAGS; do
9556 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9557 aix_use_runtimelinking=yes
9558 break
9559 fi
9560 done
9561 ;;
9562 esac
9563
9564 exp_sym_flag='-bexport'
9565 no_entry_flag='-bnoentry'
9566 fi
9567
9568 # When large executables or shared objects are built, AIX ld can
9569 # have problems creating the table of contents. If linking a library
9570 # or program results in "error TOC overflow" add -mminimal-toc to
9571 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9572 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9573
9574 archive_cmds=''
9575 hardcode_direct=yes
9576 hardcode_direct_absolute=yes
9577 hardcode_libdir_separator=':'
9578 link_all_deplibs=yes
9579 file_list_spec='${wl}-f,'
9580
9581 if test "$GCC" = yes; then
9582 case $host_os in aix4.[012]|aix4.[012].*)
9583 # We only want to do this on AIX 4.2 and lower, the check
9584 # below for broken collect2 doesn't work under 4.3+
9585 collect2name=`${CC} -print-prog-name=collect2`
9586 if test -f "$collect2name" &&
9587 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9588 then
9589 # We have reworked collect2
9590 :
9591 else
9592 # We have old collect2
9593 hardcode_direct=unsupported
9594 # It fails to find uninstalled libraries when the uninstalled
9595 # path is not listed in the libpath. Setting hardcode_minus_L
9596 # to unsupported forces relinking
9597 hardcode_minus_L=yes
9598 hardcode_libdir_flag_spec='-L$libdir'
9599 hardcode_libdir_separator=
9600 fi
9601 ;;
9602 esac
9603 shared_flag='-shared'
9604 if test "$aix_use_runtimelinking" = yes; then
9605 shared_flag="$shared_flag "'${wl}-G'
9606 fi
9607 link_all_deplibs=no
9608 else
9609 # not using gcc
9610 if test "$host_cpu" = ia64; then
9611 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9612 # chokes on -Wl,-G. The following line is correct:
9613 shared_flag='-G'
9614 else
9615 if test "$aix_use_runtimelinking" = yes; then
9616 shared_flag='${wl}-G'
9617 else
9618 shared_flag='${wl}-bM:SRE'
9619 fi
9620 fi
9621 fi
9622
9623 export_dynamic_flag_spec='${wl}-bexpall'
9624 # It seems that -bexpall does not export symbols beginning with
9625 # underscore (_), so it is better to generate a list of symbols to export.
9626 always_export_symbols=yes
9627 if test "$aix_use_runtimelinking" = yes; then
9628 # Warning - without using the other runtime loading flags (-brtl),
9629 # -berok will link without error, but may produce a broken library.
9630 allow_undefined_flag='-berok'
9631 # Determine the default libpath from the value encoded in an
9632 # empty executable.
9633 if test "${lt_cv_aix_libpath+set}" = set; then
9634 aix_libpath=$lt_cv_aix_libpath
9635 else
9636 if ${lt_cv_aix_libpath_+:} false; then :
9637 $as_echo_n "(cached) " >&6
9638 else
9639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9640 /* end confdefs.h. */
9641
9642 int
9643 main ()
9644 {
9645
9646 ;
9647 return 0;
9648 }
9649 _ACEOF
9650 if ac_fn_c_try_link "$LINENO"; then :
9651
9652 lt_aix_libpath_sed='
9653 /Import File Strings/,/^$/ {
9654 /^0/ {
9655 s/^0 *\([^ ]*\) *$/\1/
9656 p
9657 }
9658 }'
9659 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9660 # Check for a 64-bit object if we didn't find anything.
9661 if test -z "$lt_cv_aix_libpath_"; then
9662 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9663 fi
9664 fi
9665 rm -f core conftest.err conftest.$ac_objext \
9666 conftest$ac_exeext conftest.$ac_ext
9667 if test -z "$lt_cv_aix_libpath_"; then
9668 lt_cv_aix_libpath_="/usr/lib:/lib"
9669 fi
9670
9671 fi
9672
9673 aix_libpath=$lt_cv_aix_libpath_
9674 fi
9675
9676 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9677 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9678 else
9679 if test "$host_cpu" = ia64; then
9680 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9681 allow_undefined_flag="-z nodefs"
9682 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"
9683 else
9684 # Determine the default libpath from the value encoded in an
9685 # empty executable.
9686 if test "${lt_cv_aix_libpath+set}" = set; then
9687 aix_libpath=$lt_cv_aix_libpath
9688 else
9689 if ${lt_cv_aix_libpath_+:} false; then :
9690 $as_echo_n "(cached) " >&6
9691 else
9692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9693 /* end confdefs.h. */
9694
9695 int
9696 main ()
9697 {
9698
9699 ;
9700 return 0;
9701 }
9702 _ACEOF
9703 if ac_fn_c_try_link "$LINENO"; then :
9704
9705 lt_aix_libpath_sed='
9706 /Import File Strings/,/^$/ {
9707 /^0/ {
9708 s/^0 *\([^ ]*\) *$/\1/
9709 p
9710 }
9711 }'
9712 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9713 # Check for a 64-bit object if we didn't find anything.
9714 if test -z "$lt_cv_aix_libpath_"; then
9715 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9716 fi
9717 fi
9718 rm -f core conftest.err conftest.$ac_objext \
9719 conftest$ac_exeext conftest.$ac_ext
9720 if test -z "$lt_cv_aix_libpath_"; then
9721 lt_cv_aix_libpath_="/usr/lib:/lib"
9722 fi
9723
9724 fi
9725
9726 aix_libpath=$lt_cv_aix_libpath_
9727 fi
9728
9729 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9730 # Warning - without using the other run time loading flags,
9731 # -berok will link without error, but may produce a broken library.
9732 no_undefined_flag=' ${wl}-bernotok'
9733 allow_undefined_flag=' ${wl}-berok'
9734 if test "$with_gnu_ld" = yes; then
9735 # We only use this code for GNU lds that support --whole-archive.
9736 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9737 else
9738 # Exported symbols can be pulled into shared objects from archives
9739 whole_archive_flag_spec='$convenience'
9740 fi
9741 archive_cmds_need_lc=yes
9742 # This is similar to how AIX traditionally builds its shared libraries.
9743 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9744 fi
9745 fi
9746 ;;
9747
9748 amigaos*)
9749 case $host_cpu in
9750 powerpc)
9751 # see comment about AmigaOS4 .so support
9752 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9753 archive_expsym_cmds=''
9754 ;;
9755 m68k)
9756 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)'
9757 hardcode_libdir_flag_spec='-L$libdir'
9758 hardcode_minus_L=yes
9759 ;;
9760 esac
9761 ;;
9762
9763 bsdi[45]*)
9764 export_dynamic_flag_spec=-rdynamic
9765 ;;
9766
9767 cygwin* | mingw* | pw32* | cegcc*)
9768 # When not using gcc, we currently assume that we are using
9769 # Microsoft Visual C++.
9770 # hardcode_libdir_flag_spec is actually meaningless, as there is
9771 # no search path for DLLs.
9772 case $cc_basename in
9773 cl*)
9774 # Native MSVC
9775 hardcode_libdir_flag_spec=' '
9776 allow_undefined_flag=unsupported
9777 always_export_symbols=yes
9778 file_list_spec='@'
9779 # Tell ltmain to make .lib files, not .a files.
9780 libext=lib
9781 # Tell ltmain to make .dll files, not .so files.
9782 shrext_cmds=".dll"
9783 # FIXME: Setting linknames here is a bad hack.
9784 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9785 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9786 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9787 else
9788 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9789 fi~
9790 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9791 linknames='
9792 # The linker will not automatically build a static lib if we build a DLL.
9793 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9794 enable_shared_with_static_runtimes=yes
9795 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9796 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9797 # Don't use ranlib
9798 old_postinstall_cmds='chmod 644 $oldlib'
9799 postlink_cmds='lt_outputfile="@OUTPUT@"~
9800 lt_tool_outputfile="@TOOL_OUTPUT@"~
9801 case $lt_outputfile in
9802 *.exe|*.EXE) ;;
9803 *)
9804 lt_outputfile="$lt_outputfile.exe"
9805 lt_tool_outputfile="$lt_tool_outputfile.exe"
9806 ;;
9807 esac~
9808 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9809 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9810 $RM "$lt_outputfile.manifest";
9811 fi'
9812 ;;
9813 *)
9814 # Assume MSVC wrapper
9815 hardcode_libdir_flag_spec=' '
9816 allow_undefined_flag=unsupported
9817 # Tell ltmain to make .lib files, not .a files.
9818 libext=lib
9819 # Tell ltmain to make .dll files, not .so files.
9820 shrext_cmds=".dll"
9821 # FIXME: Setting linknames here is a bad hack.
9822 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9823 # The linker will automatically build a .lib file if we build a DLL.
9824 old_archive_from_new_cmds='true'
9825 # FIXME: Should let the user specify the lib program.
9826 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9827 enable_shared_with_static_runtimes=yes
9828 ;;
9829 esac
9830 ;;
9831
9832 darwin* | rhapsody*)
9833
9834
9835 archive_cmds_need_lc=no
9836 hardcode_direct=no
9837 hardcode_automatic=yes
9838 hardcode_shlibpath_var=unsupported
9839 if test "$lt_cv_ld_force_load" = "yes"; then
9840 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\"`'
9841
9842 else
9843 whole_archive_flag_spec=''
9844 fi
9845 link_all_deplibs=yes
9846 allow_undefined_flag="$_lt_dar_allow_undefined"
9847 case $cc_basename in
9848 ifort*) _lt_dar_can_shared=yes ;;
9849 *) _lt_dar_can_shared=$GCC ;;
9850 esac
9851 if test "$_lt_dar_can_shared" = "yes"; then
9852 output_verbose_link_cmd=func_echo_all
9853 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9854 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9855 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}"
9856 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}"
9857
9858 else
9859 ld_shlibs=no
9860 fi
9861
9862 ;;
9863
9864 dgux*)
9865 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9866 hardcode_libdir_flag_spec='-L$libdir'
9867 hardcode_shlibpath_var=no
9868 ;;
9869
9870 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9871 # support. Future versions do this automatically, but an explicit c++rt0.o
9872 # does not break anything, and helps significantly (at the cost of a little
9873 # extra space).
9874 freebsd2.2*)
9875 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9876 hardcode_libdir_flag_spec='-R$libdir'
9877 hardcode_direct=yes
9878 hardcode_shlibpath_var=no
9879 ;;
9880
9881 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9882 freebsd2.*)
9883 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9884 hardcode_direct=yes
9885 hardcode_minus_L=yes
9886 hardcode_shlibpath_var=no
9887 ;;
9888
9889 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9890 freebsd* | dragonfly*)
9891 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9892 hardcode_libdir_flag_spec='-R$libdir'
9893 hardcode_direct=yes
9894 hardcode_shlibpath_var=no
9895 ;;
9896
9897 hpux9*)
9898 if test "$GCC" = yes; then
9899 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9900 else
9901 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9902 fi
9903 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9904 hardcode_libdir_separator=:
9905 hardcode_direct=yes
9906
9907 # hardcode_minus_L: Not really in the search PATH,
9908 # but as the default location of the library.
9909 hardcode_minus_L=yes
9910 export_dynamic_flag_spec='${wl}-E'
9911 ;;
9912
9913 hpux10*)
9914 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9915 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9916 else
9917 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9918 fi
9919 if test "$with_gnu_ld" = no; then
9920 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9921 hardcode_libdir_separator=:
9922 hardcode_direct=yes
9923 hardcode_direct_absolute=yes
9924 export_dynamic_flag_spec='${wl}-E'
9925 # hardcode_minus_L: Not really in the search PATH,
9926 # but as the default location of the library.
9927 hardcode_minus_L=yes
9928 fi
9929 ;;
9930
9931 hpux11*)
9932 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9933 case $host_cpu in
9934 hppa*64*)
9935 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9936 ;;
9937 ia64*)
9938 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9939 ;;
9940 *)
9941 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9942 ;;
9943 esac
9944 else
9945 case $host_cpu in
9946 hppa*64*)
9947 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9948 ;;
9949 ia64*)
9950 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9951 ;;
9952 *)
9953
9954 # Older versions of the 11.00 compiler do not understand -b yet
9955 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9957 $as_echo_n "checking if $CC understands -b... " >&6; }
9958 if ${lt_cv_prog_compiler__b+:} false; then :
9959 $as_echo_n "(cached) " >&6
9960 else
9961 lt_cv_prog_compiler__b=no
9962 save_LDFLAGS="$LDFLAGS"
9963 LDFLAGS="$LDFLAGS -b"
9964 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9965 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9966 # The linker can only warn and ignore the option if not recognized
9967 # So say no if there are warnings
9968 if test -s conftest.err; then
9969 # Append any errors to the config.log.
9970 cat conftest.err 1>&5
9971 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9972 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9973 if diff conftest.exp conftest.er2 >/dev/null; then
9974 lt_cv_prog_compiler__b=yes
9975 fi
9976 else
9977 lt_cv_prog_compiler__b=yes
9978 fi
9979 fi
9980 $RM -r conftest*
9981 LDFLAGS="$save_LDFLAGS"
9982
9983 fi
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9985 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9986
9987 if test x"$lt_cv_prog_compiler__b" = xyes; then
9988 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9989 else
9990 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9991 fi
9992
9993 ;;
9994 esac
9995 fi
9996 if test "$with_gnu_ld" = no; then
9997 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9998 hardcode_libdir_separator=:
9999
10000 case $host_cpu in
10001 hppa*64*|ia64*)
10002 hardcode_direct=no
10003 hardcode_shlibpath_var=no
10004 ;;
10005 *)
10006 hardcode_direct=yes
10007 hardcode_direct_absolute=yes
10008 export_dynamic_flag_spec='${wl}-E'
10009
10010 # hardcode_minus_L: Not really in the search PATH,
10011 # but as the default location of the library.
10012 hardcode_minus_L=yes
10013 ;;
10014 esac
10015 fi
10016 ;;
10017
10018 irix5* | irix6* | nonstopux*)
10019 if test "$GCC" = yes; then
10020 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'
10021 # Try to use the -exported_symbol ld option, if it does not
10022 # work, assume that -exports_file does not work either and
10023 # implicitly export all symbols.
10024 # This should be the same for all languages, so no per-tag cache variable.
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10026 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10027 if ${lt_cv_irix_exported_symbol+:} false; then :
10028 $as_echo_n "(cached) " >&6
10029 else
10030 save_LDFLAGS="$LDFLAGS"
10031 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10033 /* end confdefs.h. */
10034 int foo (void) { return 0; }
10035 _ACEOF
10036 if ac_fn_c_try_link "$LINENO"; then :
10037 lt_cv_irix_exported_symbol=yes
10038 else
10039 lt_cv_irix_exported_symbol=no
10040 fi
10041 rm -f core conftest.err conftest.$ac_objext \
10042 conftest$ac_exeext conftest.$ac_ext
10043 LDFLAGS="$save_LDFLAGS"
10044 fi
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10046 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10047 if test "$lt_cv_irix_exported_symbol" = yes; then
10048 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'
10049 fi
10050 else
10051 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'
10052 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'
10053 fi
10054 archive_cmds_need_lc='no'
10055 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10056 hardcode_libdir_separator=:
10057 inherit_rpath=yes
10058 link_all_deplibs=yes
10059 ;;
10060
10061 netbsd* | netbsdelf*-gnu)
10062 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10063 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10064 else
10065 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10066 fi
10067 hardcode_libdir_flag_spec='-R$libdir'
10068 hardcode_direct=yes
10069 hardcode_shlibpath_var=no
10070 ;;
10071
10072 newsos6)
10073 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10074 hardcode_direct=yes
10075 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10076 hardcode_libdir_separator=:
10077 hardcode_shlibpath_var=no
10078 ;;
10079
10080 *nto* | *qnx*)
10081 ;;
10082
10083 openbsd*)
10084 if test -f /usr/libexec/ld.so; then
10085 hardcode_direct=yes
10086 hardcode_shlibpath_var=no
10087 hardcode_direct_absolute=yes
10088 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10089 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10090 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10091 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10092 export_dynamic_flag_spec='${wl}-E'
10093 else
10094 case $host_os in
10095 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10096 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10097 hardcode_libdir_flag_spec='-R$libdir'
10098 ;;
10099 *)
10100 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10101 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10102 ;;
10103 esac
10104 fi
10105 else
10106 ld_shlibs=no
10107 fi
10108 ;;
10109
10110 os2*)
10111 hardcode_libdir_flag_spec='-L$libdir'
10112 hardcode_minus_L=yes
10113 allow_undefined_flag=unsupported
10114 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10115 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10116 ;;
10117
10118 osf3*)
10119 if test "$GCC" = yes; then
10120 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10121 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'
10122 else
10123 allow_undefined_flag=' -expect_unresolved \*'
10124 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'
10125 fi
10126 archive_cmds_need_lc='no'
10127 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10128 hardcode_libdir_separator=:
10129 ;;
10130
10131 osf4* | osf5*) # as osf3* with the addition of -msym flag
10132 if test "$GCC" = yes; then
10133 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10134 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'
10135 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10136 else
10137 allow_undefined_flag=' -expect_unresolved \*'
10138 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'
10139 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~
10140 $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'
10141
10142 # Both c and cxx compiler support -rpath directly
10143 hardcode_libdir_flag_spec='-rpath $libdir'
10144 fi
10145 archive_cmds_need_lc='no'
10146 hardcode_libdir_separator=:
10147 ;;
10148
10149 solaris*)
10150 no_undefined_flag=' -z defs'
10151 if test "$GCC" = yes; then
10152 wlarc='${wl}'
10153 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10154 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10155 $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'
10156 else
10157 case `$CC -V 2>&1` in
10158 *"Compilers 5.0"*)
10159 wlarc=''
10160 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10161 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10162 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10163 ;;
10164 *)
10165 wlarc='${wl}'
10166 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10167 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10168 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10169 ;;
10170 esac
10171 fi
10172 hardcode_libdir_flag_spec='-R$libdir'
10173 hardcode_shlibpath_var=no
10174 case $host_os in
10175 solaris2.[0-5] | solaris2.[0-5].*) ;;
10176 *)
10177 # The compiler driver will combine and reorder linker options,
10178 # but understands `-z linker_flag'. GCC discards it without `$wl',
10179 # but is careful enough not to reorder.
10180 # Supported since Solaris 2.6 (maybe 2.5.1?)
10181 if test "$GCC" = yes; then
10182 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10183 else
10184 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10185 fi
10186 ;;
10187 esac
10188 link_all_deplibs=yes
10189 ;;
10190
10191 sunos4*)
10192 if test "x$host_vendor" = xsequent; then
10193 # Use $CC to link under sequent, because it throws in some extra .o
10194 # files that make .init and .fini sections work.
10195 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10196 else
10197 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10198 fi
10199 hardcode_libdir_flag_spec='-L$libdir'
10200 hardcode_direct=yes
10201 hardcode_minus_L=yes
10202 hardcode_shlibpath_var=no
10203 ;;
10204
10205 sysv4)
10206 case $host_vendor in
10207 sni)
10208 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10209 hardcode_direct=yes # is this really true???
10210 ;;
10211 siemens)
10212 ## LD is ld it makes a PLAMLIB
10213 ## CC just makes a GrossModule.
10214 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10215 reload_cmds='$CC -r -o $output$reload_objs'
10216 hardcode_direct=no
10217 ;;
10218 motorola)
10219 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10220 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10221 ;;
10222 esac
10223 runpath_var='LD_RUN_PATH'
10224 hardcode_shlibpath_var=no
10225 ;;
10226
10227 sysv4.3*)
10228 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10229 hardcode_shlibpath_var=no
10230 export_dynamic_flag_spec='-Bexport'
10231 ;;
10232
10233 sysv4*MP*)
10234 if test -d /usr/nec; then
10235 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10236 hardcode_shlibpath_var=no
10237 runpath_var=LD_RUN_PATH
10238 hardcode_runpath_var=yes
10239 ld_shlibs=yes
10240 fi
10241 ;;
10242
10243 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10244 no_undefined_flag='${wl}-z,text'
10245 archive_cmds_need_lc=no
10246 hardcode_shlibpath_var=no
10247 runpath_var='LD_RUN_PATH'
10248
10249 if test "$GCC" = yes; then
10250 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10251 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10252 else
10253 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10254 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10255 fi
10256 ;;
10257
10258 sysv5* | sco3.2v5* | sco5v6*)
10259 # Note: We can NOT use -z defs as we might desire, because we do not
10260 # link with -lc, and that would cause any symbols used from libc to
10261 # always be unresolved, which means just about no library would
10262 # ever link correctly. If we're not using GNU ld we use -z text
10263 # though, which does catch some bad symbols but isn't as heavy-handed
10264 # as -z defs.
10265 no_undefined_flag='${wl}-z,text'
10266 allow_undefined_flag='${wl}-z,nodefs'
10267 archive_cmds_need_lc=no
10268 hardcode_shlibpath_var=no
10269 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10270 hardcode_libdir_separator=':'
10271 link_all_deplibs=yes
10272 export_dynamic_flag_spec='${wl}-Bexport'
10273 runpath_var='LD_RUN_PATH'
10274
10275 if test "$GCC" = yes; then
10276 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10277 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10278 else
10279 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10280 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10281 fi
10282 ;;
10283
10284 uts4*)
10285 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10286 hardcode_libdir_flag_spec='-L$libdir'
10287 hardcode_shlibpath_var=no
10288 ;;
10289
10290 *)
10291 ld_shlibs=no
10292 ;;
10293 esac
10294
10295 if test x$host_vendor = xsni; then
10296 case $host in
10297 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10298 export_dynamic_flag_spec='${wl}-Blargedynsym'
10299 ;;
10300 esac
10301 fi
10302 fi
10303
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10305 $as_echo "$ld_shlibs" >&6; }
10306 test "$ld_shlibs" = no && can_build_shared=no
10307
10308 with_gnu_ld=$with_gnu_ld
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324 #
10325 # Do we need to explicitly link libc?
10326 #
10327 case "x$archive_cmds_need_lc" in
10328 x|xyes)
10329 # Assume -lc should be added
10330 archive_cmds_need_lc=yes
10331
10332 if test "$enable_shared" = yes && test "$GCC" = yes; then
10333 case $archive_cmds in
10334 *'~'*)
10335 # FIXME: we may have to deal with multi-command sequences.
10336 ;;
10337 '$CC '*)
10338 # Test whether the compiler implicitly links with -lc since on some
10339 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10340 # to ld, don't add -lc before -lgcc.
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10342 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10343 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10344 $as_echo_n "(cached) " >&6
10345 else
10346 $RM conftest*
10347 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10348
10349 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10350 (eval $ac_compile) 2>&5
10351 ac_status=$?
10352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10353 test $ac_status = 0; } 2>conftest.err; then
10354 soname=conftest
10355 lib=conftest
10356 libobjs=conftest.$ac_objext
10357 deplibs=
10358 wl=$lt_prog_compiler_wl
10359 pic_flag=$lt_prog_compiler_pic
10360 compiler_flags=-v
10361 linker_flags=-v
10362 verstring=
10363 output_objdir=.
10364 libname=conftest
10365 lt_save_allow_undefined_flag=$allow_undefined_flag
10366 allow_undefined_flag=
10367 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10368 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10369 ac_status=$?
10370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10371 test $ac_status = 0; }
10372 then
10373 lt_cv_archive_cmds_need_lc=no
10374 else
10375 lt_cv_archive_cmds_need_lc=yes
10376 fi
10377 allow_undefined_flag=$lt_save_allow_undefined_flag
10378 else
10379 cat conftest.err 1>&5
10380 fi
10381 $RM conftest*
10382
10383 fi
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10385 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10386 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10387 ;;
10388 esac
10389 fi
10390 ;;
10391 esac
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10545 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10546
10547 if test "$GCC" = yes; then
10548 case $host_os in
10549 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10550 *) lt_awk_arg="/^libraries:/" ;;
10551 esac
10552 case $host_os in
10553 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10554 *) lt_sed_strip_eq="s,=/,/,g" ;;
10555 esac
10556 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10557 case $lt_search_path_spec in
10558 *\;*)
10559 # if the path contains ";" then we assume it to be the separator
10560 # otherwise default to the standard path separator (i.e. ":") - it is
10561 # assumed that no part of a normal pathname contains ";" but that should
10562 # okay in the real world where ";" in dirpaths is itself problematic.
10563 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10564 ;;
10565 *)
10566 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10567 ;;
10568 esac
10569 # Ok, now we have the path, separated by spaces, we can step through it
10570 # and add multilib dir if necessary.
10571 lt_tmp_lt_search_path_spec=
10572 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10573 for lt_sys_path in $lt_search_path_spec; do
10574 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10575 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10576 else
10577 test -d "$lt_sys_path" && \
10578 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10579 fi
10580 done
10581 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10582 BEGIN {RS=" "; FS="/|\n";} {
10583 lt_foo="";
10584 lt_count=0;
10585 for (lt_i = NF; lt_i > 0; lt_i--) {
10586 if ($lt_i != "" && $lt_i != ".") {
10587 if ($lt_i == "..") {
10588 lt_count++;
10589 } else {
10590 if (lt_count == 0) {
10591 lt_foo="/" $lt_i lt_foo;
10592 } else {
10593 lt_count--;
10594 }
10595 }
10596 }
10597 }
10598 if (lt_foo != "") { lt_freq[lt_foo]++; }
10599 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10600 }'`
10601 # AWK program above erroneously prepends '/' to C:/dos/paths
10602 # for these hosts.
10603 case $host_os in
10604 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10605 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10606 esac
10607 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10608 else
10609 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10610 fi
10611 library_names_spec=
10612 libname_spec='lib$name'
10613 soname_spec=
10614 shrext_cmds=".so"
10615 postinstall_cmds=
10616 postuninstall_cmds=
10617 finish_cmds=
10618 finish_eval=
10619 shlibpath_var=
10620 shlibpath_overrides_runpath=unknown
10621 version_type=none
10622 dynamic_linker="$host_os ld.so"
10623 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10624 need_lib_prefix=unknown
10625 hardcode_into_libs=no
10626
10627 # when you set need_version to no, make sure it does not cause -set_version
10628 # flags to be left without arguments
10629 need_version=unknown
10630
10631 case $host_os in
10632 aix3*)
10633 version_type=linux # correct to gnu/linux during the next big refactor
10634 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10635 shlibpath_var=LIBPATH
10636
10637 # AIX 3 has no versioning support, so we append a major version to the name.
10638 soname_spec='${libname}${release}${shared_ext}$major'
10639 ;;
10640
10641 aix[4-9]*)
10642 version_type=linux # correct to gnu/linux during the next big refactor
10643 need_lib_prefix=no
10644 need_version=no
10645 hardcode_into_libs=yes
10646 if test "$host_cpu" = ia64; then
10647 # AIX 5 supports IA64
10648 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10649 shlibpath_var=LD_LIBRARY_PATH
10650 else
10651 # With GCC up to 2.95.x, collect2 would create an import file
10652 # for dependence libraries. The import file would start with
10653 # the line `#! .'. This would cause the generated library to
10654 # depend on `.', always an invalid library. This was fixed in
10655 # development snapshots of GCC prior to 3.0.
10656 case $host_os in
10657 aix4 | aix4.[01] | aix4.[01].*)
10658 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10659 echo ' yes '
10660 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10661 :
10662 else
10663 can_build_shared=no
10664 fi
10665 ;;
10666 esac
10667 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10668 # soname into executable. Probably we can add versioning support to
10669 # collect2, so additional links can be useful in future.
10670 if test "$aix_use_runtimelinking" = yes; then
10671 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10672 # instead of lib<name>.a to let people know that these are not
10673 # typical AIX shared libraries.
10674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10675 else
10676 # We preserve .a as extension for shared libraries through AIX4.2
10677 # and later when we are not doing run time linking.
10678 library_names_spec='${libname}${release}.a $libname.a'
10679 soname_spec='${libname}${release}${shared_ext}$major'
10680 fi
10681 shlibpath_var=LIBPATH
10682 fi
10683 ;;
10684
10685 amigaos*)
10686 case $host_cpu in
10687 powerpc)
10688 # Since July 2007 AmigaOS4 officially supports .so libraries.
10689 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10691 ;;
10692 m68k)
10693 library_names_spec='$libname.ixlibrary $libname.a'
10694 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10695 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10696 ;;
10697 esac
10698 ;;
10699
10700 beos*)
10701 library_names_spec='${libname}${shared_ext}'
10702 dynamic_linker="$host_os ld.so"
10703 shlibpath_var=LIBRARY_PATH
10704 ;;
10705
10706 bsdi[45]*)
10707 version_type=linux # correct to gnu/linux during the next big refactor
10708 need_version=no
10709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10710 soname_spec='${libname}${release}${shared_ext}$major'
10711 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10712 shlibpath_var=LD_LIBRARY_PATH
10713 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10714 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10715 # the default ld.so.conf also contains /usr/contrib/lib and
10716 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10717 # libtool to hard-code these into programs
10718 ;;
10719
10720 cygwin* | mingw* | pw32* | cegcc*)
10721 version_type=windows
10722 shrext_cmds=".dll"
10723 need_version=no
10724 need_lib_prefix=no
10725
10726 case $GCC,$cc_basename in
10727 yes,*)
10728 # gcc
10729 library_names_spec='$libname.dll.a'
10730 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10731 postinstall_cmds='base_file=`basename \${file}`~
10732 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10733 dldir=$destdir/`dirname \$dlpath`~
10734 test -d \$dldir || mkdir -p \$dldir~
10735 $install_prog $dir/$dlname \$dldir/$dlname~
10736 chmod a+x \$dldir/$dlname~
10737 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10738 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10739 fi'
10740 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10741 dlpath=$dir/\$dldll~
10742 $RM \$dlpath'
10743 shlibpath_overrides_runpath=yes
10744
10745 case $host_os in
10746 cygwin*)
10747 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10748 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10749
10750 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10751 ;;
10752 mingw* | cegcc*)
10753 # MinGW DLLs use traditional 'lib' prefix
10754 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10755 ;;
10756 pw32*)
10757 # pw32 DLLs use 'pw' prefix rather than 'lib'
10758 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10759 ;;
10760 esac
10761 dynamic_linker='Win32 ld.exe'
10762 ;;
10763
10764 *,cl*)
10765 # Native MSVC
10766 libname_spec='$name'
10767 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10768 library_names_spec='${libname}.dll.lib'
10769
10770 case $build_os in
10771 mingw*)
10772 sys_lib_search_path_spec=
10773 lt_save_ifs=$IFS
10774 IFS=';'
10775 for lt_path in $LIB
10776 do
10777 IFS=$lt_save_ifs
10778 # Let DOS variable expansion print the short 8.3 style file name.
10779 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10780 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10781 done
10782 IFS=$lt_save_ifs
10783 # Convert to MSYS style.
10784 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10785 ;;
10786 cygwin*)
10787 # Convert to unix form, then to dos form, then back to unix form
10788 # but this time dos style (no spaces!) so that the unix form looks
10789 # like /cygdrive/c/PROGRA~1:/cygdr...
10790 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10791 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10792 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10793 ;;
10794 *)
10795 sys_lib_search_path_spec="$LIB"
10796 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10797 # It is most probably a Windows format PATH.
10798 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10799 else
10800 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10801 fi
10802 # FIXME: find the short name or the path components, as spaces are
10803 # common. (e.g. "Program Files" -> "PROGRA~1")
10804 ;;
10805 esac
10806
10807 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10808 postinstall_cmds='base_file=`basename \${file}`~
10809 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10810 dldir=$destdir/`dirname \$dlpath`~
10811 test -d \$dldir || mkdir -p \$dldir~
10812 $install_prog $dir/$dlname \$dldir/$dlname'
10813 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10814 dlpath=$dir/\$dldll~
10815 $RM \$dlpath'
10816 shlibpath_overrides_runpath=yes
10817 dynamic_linker='Win32 link.exe'
10818 ;;
10819
10820 *)
10821 # Assume MSVC wrapper
10822 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10823 dynamic_linker='Win32 ld.exe'
10824 ;;
10825 esac
10826 # FIXME: first we should search . and the directory the executable is in
10827 shlibpath_var=PATH
10828 ;;
10829
10830 darwin* | rhapsody*)
10831 dynamic_linker="$host_os dyld"
10832 version_type=darwin
10833 need_lib_prefix=no
10834 need_version=no
10835 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10836 soname_spec='${libname}${release}${major}$shared_ext'
10837 shlibpath_overrides_runpath=yes
10838 shlibpath_var=DYLD_LIBRARY_PATH
10839 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10840
10841 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10842 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10843 ;;
10844
10845 dgux*)
10846 version_type=linux # correct to gnu/linux during the next big refactor
10847 need_lib_prefix=no
10848 need_version=no
10849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10850 soname_spec='${libname}${release}${shared_ext}$major'
10851 shlibpath_var=LD_LIBRARY_PATH
10852 ;;
10853
10854 freebsd* | dragonfly*)
10855 # DragonFly does not have aout. When/if they implement a new
10856 # versioning mechanism, adjust this.
10857 if test -x /usr/bin/objformat; then
10858 objformat=`/usr/bin/objformat`
10859 else
10860 case $host_os in
10861 freebsd[23].*) objformat=aout ;;
10862 *) objformat=elf ;;
10863 esac
10864 fi
10865 version_type=freebsd-$objformat
10866 case $version_type in
10867 freebsd-elf*)
10868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10869 need_version=no
10870 need_lib_prefix=no
10871 ;;
10872 freebsd-*)
10873 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10874 need_version=yes
10875 ;;
10876 esac
10877 shlibpath_var=LD_LIBRARY_PATH
10878 case $host_os in
10879 freebsd2.*)
10880 shlibpath_overrides_runpath=yes
10881 ;;
10882 freebsd3.[01]* | freebsdelf3.[01]*)
10883 shlibpath_overrides_runpath=yes
10884 hardcode_into_libs=yes
10885 ;;
10886 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10887 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10888 shlibpath_overrides_runpath=no
10889 hardcode_into_libs=yes
10890 ;;
10891 *) # from 4.6 on, and DragonFly
10892 shlibpath_overrides_runpath=yes
10893 hardcode_into_libs=yes
10894 ;;
10895 esac
10896 ;;
10897
10898 haiku*)
10899 version_type=linux # correct to gnu/linux during the next big refactor
10900 need_lib_prefix=no
10901 need_version=no
10902 dynamic_linker="$host_os runtime_loader"
10903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10904 soname_spec='${libname}${release}${shared_ext}$major'
10905 shlibpath_var=LIBRARY_PATH
10906 shlibpath_overrides_runpath=yes
10907 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10908 hardcode_into_libs=yes
10909 ;;
10910
10911 hpux9* | hpux10* | hpux11*)
10912 # Give a soname corresponding to the major version so that dld.sl refuses to
10913 # link against other versions.
10914 version_type=sunos
10915 need_lib_prefix=no
10916 need_version=no
10917 case $host_cpu in
10918 ia64*)
10919 shrext_cmds='.so'
10920 hardcode_into_libs=yes
10921 dynamic_linker="$host_os dld.so"
10922 shlibpath_var=LD_LIBRARY_PATH
10923 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10925 soname_spec='${libname}${release}${shared_ext}$major'
10926 if test "X$HPUX_IA64_MODE" = X32; then
10927 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10928 else
10929 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10930 fi
10931 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10932 ;;
10933 hppa*64*)
10934 shrext_cmds='.sl'
10935 hardcode_into_libs=yes
10936 dynamic_linker="$host_os dld.sl"
10937 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10938 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10940 soname_spec='${libname}${release}${shared_ext}$major'
10941 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10942 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10943 ;;
10944 *)
10945 shrext_cmds='.sl'
10946 dynamic_linker="$host_os dld.sl"
10947 shlibpath_var=SHLIB_PATH
10948 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10950 soname_spec='${libname}${release}${shared_ext}$major'
10951 ;;
10952 esac
10953 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10954 postinstall_cmds='chmod 555 $lib'
10955 # or fails outright, so override atomically:
10956 install_override_mode=555
10957 ;;
10958
10959 interix[3-9]*)
10960 version_type=linux # correct to gnu/linux during the next big refactor
10961 need_lib_prefix=no
10962 need_version=no
10963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10964 soname_spec='${libname}${release}${shared_ext}$major'
10965 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10966 shlibpath_var=LD_LIBRARY_PATH
10967 shlibpath_overrides_runpath=no
10968 hardcode_into_libs=yes
10969 ;;
10970
10971 irix5* | irix6* | nonstopux*)
10972 case $host_os in
10973 nonstopux*) version_type=nonstopux ;;
10974 *)
10975 if test "$lt_cv_prog_gnu_ld" = yes; then
10976 version_type=linux # correct to gnu/linux during the next big refactor
10977 else
10978 version_type=irix
10979 fi ;;
10980 esac
10981 need_lib_prefix=no
10982 need_version=no
10983 soname_spec='${libname}${release}${shared_ext}$major'
10984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10985 case $host_os in
10986 irix5* | nonstopux*)
10987 libsuff= shlibsuff=
10988 ;;
10989 *)
10990 case $LD in # libtool.m4 will add one of these switches to LD
10991 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10992 libsuff= shlibsuff= libmagic=32-bit;;
10993 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10994 libsuff=32 shlibsuff=N32 libmagic=N32;;
10995 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10996 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10997 *) libsuff= shlibsuff= libmagic=never-match;;
10998 esac
10999 ;;
11000 esac
11001 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11002 shlibpath_overrides_runpath=no
11003 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11004 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11005 hardcode_into_libs=yes
11006 ;;
11007
11008 # No shared lib support for Linux oldld, aout, or coff.
11009 linux*oldld* | linux*aout* | linux*coff*)
11010 dynamic_linker=no
11011 ;;
11012
11013 # This must be glibc/ELF.
11014 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11015 version_type=linux # correct to gnu/linux during the next big refactor
11016 need_lib_prefix=no
11017 need_version=no
11018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11019 soname_spec='${libname}${release}${shared_ext}$major'
11020 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11021 shlibpath_var=LD_LIBRARY_PATH
11022 shlibpath_overrides_runpath=no
11023
11024 # Some binutils ld are patched to set DT_RUNPATH
11025 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11026 $as_echo_n "(cached) " >&6
11027 else
11028 lt_cv_shlibpath_overrides_runpath=no
11029 save_LDFLAGS=$LDFLAGS
11030 save_libdir=$libdir
11031 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11032 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11034 /* end confdefs.h. */
11035
11036 int
11037 main ()
11038 {
11039
11040 ;
11041 return 0;
11042 }
11043 _ACEOF
11044 if ac_fn_c_try_link "$LINENO"; then :
11045 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11046 lt_cv_shlibpath_overrides_runpath=yes
11047 fi
11048 fi
11049 rm -f core conftest.err conftest.$ac_objext \
11050 conftest$ac_exeext conftest.$ac_ext
11051 LDFLAGS=$save_LDFLAGS
11052 libdir=$save_libdir
11053
11054 fi
11055
11056 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11057
11058 # This implies no fast_install, which is unacceptable.
11059 # Some rework will be needed to allow for fast_install
11060 # before this can be enabled.
11061 hardcode_into_libs=yes
11062
11063 # Append ld.so.conf contents to the search path
11064 if test -f /etc/ld.so.conf; then
11065 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' ' '`
11066 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11067 fi
11068
11069 # We used to test for /lib/ld.so.1 and disable shared libraries on
11070 # powerpc, because MkLinux only supported shared libraries with the
11071 # GNU dynamic linker. Since this was broken with cross compilers,
11072 # most powerpc-linux boxes support dynamic linking these days and
11073 # people can always --disable-shared, the test was removed, and we
11074 # assume the GNU/Linux dynamic linker is in use.
11075 dynamic_linker='GNU/Linux ld.so'
11076 ;;
11077
11078 netbsdelf*-gnu)
11079 version_type=linux
11080 need_lib_prefix=no
11081 need_version=no
11082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11083 soname_spec='${libname}${release}${shared_ext}$major'
11084 shlibpath_var=LD_LIBRARY_PATH
11085 shlibpath_overrides_runpath=no
11086 hardcode_into_libs=yes
11087 dynamic_linker='NetBSD ld.elf_so'
11088 ;;
11089
11090 netbsd*)
11091 version_type=sunos
11092 need_lib_prefix=no
11093 need_version=no
11094 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11096 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11097 dynamic_linker='NetBSD (a.out) ld.so'
11098 else
11099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11100 soname_spec='${libname}${release}${shared_ext}$major'
11101 dynamic_linker='NetBSD ld.elf_so'
11102 fi
11103 shlibpath_var=LD_LIBRARY_PATH
11104 shlibpath_overrides_runpath=yes
11105 hardcode_into_libs=yes
11106 ;;
11107
11108 newsos6)
11109 version_type=linux # correct to gnu/linux during the next big refactor
11110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11111 shlibpath_var=LD_LIBRARY_PATH
11112 shlibpath_overrides_runpath=yes
11113 ;;
11114
11115 *nto* | *qnx*)
11116 version_type=qnx
11117 need_lib_prefix=no
11118 need_version=no
11119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11120 soname_spec='${libname}${release}${shared_ext}$major'
11121 shlibpath_var=LD_LIBRARY_PATH
11122 shlibpath_overrides_runpath=no
11123 hardcode_into_libs=yes
11124 dynamic_linker='ldqnx.so'
11125 ;;
11126
11127 openbsd*)
11128 version_type=sunos
11129 sys_lib_dlsearch_path_spec="/usr/lib"
11130 need_lib_prefix=no
11131 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11132 case $host_os in
11133 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11134 *) need_version=no ;;
11135 esac
11136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11137 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11138 shlibpath_var=LD_LIBRARY_PATH
11139 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11140 case $host_os in
11141 openbsd2.[89] | openbsd2.[89].*)
11142 shlibpath_overrides_runpath=no
11143 ;;
11144 *)
11145 shlibpath_overrides_runpath=yes
11146 ;;
11147 esac
11148 else
11149 shlibpath_overrides_runpath=yes
11150 fi
11151 ;;
11152
11153 os2*)
11154 libname_spec='$name'
11155 shrext_cmds=".dll"
11156 need_lib_prefix=no
11157 library_names_spec='$libname${shared_ext} $libname.a'
11158 dynamic_linker='OS/2 ld.exe'
11159 shlibpath_var=LIBPATH
11160 ;;
11161
11162 osf3* | osf4* | osf5*)
11163 version_type=osf
11164 need_lib_prefix=no
11165 need_version=no
11166 soname_spec='${libname}${release}${shared_ext}$major'
11167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11168 shlibpath_var=LD_LIBRARY_PATH
11169 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11170 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11171 ;;
11172
11173 rdos*)
11174 dynamic_linker=no
11175 ;;
11176
11177 solaris*)
11178 version_type=linux # correct to gnu/linux during the next big refactor
11179 need_lib_prefix=no
11180 need_version=no
11181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11182 soname_spec='${libname}${release}${shared_ext}$major'
11183 shlibpath_var=LD_LIBRARY_PATH
11184 shlibpath_overrides_runpath=yes
11185 hardcode_into_libs=yes
11186 # ldd complains unless libraries are executable
11187 postinstall_cmds='chmod +x $lib'
11188 ;;
11189
11190 sunos4*)
11191 version_type=sunos
11192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11193 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11194 shlibpath_var=LD_LIBRARY_PATH
11195 shlibpath_overrides_runpath=yes
11196 if test "$with_gnu_ld" = yes; then
11197 need_lib_prefix=no
11198 fi
11199 need_version=yes
11200 ;;
11201
11202 sysv4 | sysv4.3*)
11203 version_type=linux # correct to gnu/linux during the next big refactor
11204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11205 soname_spec='${libname}${release}${shared_ext}$major'
11206 shlibpath_var=LD_LIBRARY_PATH
11207 case $host_vendor in
11208 sni)
11209 shlibpath_overrides_runpath=no
11210 need_lib_prefix=no
11211 runpath_var=LD_RUN_PATH
11212 ;;
11213 siemens)
11214 need_lib_prefix=no
11215 ;;
11216 motorola)
11217 need_lib_prefix=no
11218 need_version=no
11219 shlibpath_overrides_runpath=no
11220 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11221 ;;
11222 esac
11223 ;;
11224
11225 sysv4*MP*)
11226 if test -d /usr/nec ;then
11227 version_type=linux # correct to gnu/linux during the next big refactor
11228 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11229 soname_spec='$libname${shared_ext}.$major'
11230 shlibpath_var=LD_LIBRARY_PATH
11231 fi
11232 ;;
11233
11234 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11235 version_type=freebsd-elf
11236 need_lib_prefix=no
11237 need_version=no
11238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11239 soname_spec='${libname}${release}${shared_ext}$major'
11240 shlibpath_var=LD_LIBRARY_PATH
11241 shlibpath_overrides_runpath=yes
11242 hardcode_into_libs=yes
11243 if test "$with_gnu_ld" = yes; then
11244 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11245 else
11246 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11247 case $host_os in
11248 sco3.2v5*)
11249 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11250 ;;
11251 esac
11252 fi
11253 sys_lib_dlsearch_path_spec='/usr/lib'
11254 ;;
11255
11256 tpf*)
11257 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11258 version_type=linux # correct to gnu/linux during the next big refactor
11259 need_lib_prefix=no
11260 need_version=no
11261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11262 shlibpath_var=LD_LIBRARY_PATH
11263 shlibpath_overrides_runpath=no
11264 hardcode_into_libs=yes
11265 ;;
11266
11267 uts4*)
11268 version_type=linux # correct to gnu/linux during the next big refactor
11269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11270 soname_spec='${libname}${release}${shared_ext}$major'
11271 shlibpath_var=LD_LIBRARY_PATH
11272 ;;
11273
11274 *)
11275 dynamic_linker=no
11276 ;;
11277 esac
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11279 $as_echo "$dynamic_linker" >&6; }
11280 test "$dynamic_linker" = no && can_build_shared=no
11281
11282 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11283 if test "$GCC" = yes; then
11284 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11285 fi
11286
11287 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11288 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11289 fi
11290 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11291 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11292 fi
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11386 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11387 hardcode_action=
11388 if test -n "$hardcode_libdir_flag_spec" ||
11389 test -n "$runpath_var" ||
11390 test "X$hardcode_automatic" = "Xyes" ; then
11391
11392 # We can hardcode non-existent directories.
11393 if test "$hardcode_direct" != no &&
11394 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11395 # have to relink, otherwise we might link with an installed library
11396 # when we should be linking with a yet-to-be-installed one
11397 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11398 test "$hardcode_minus_L" != no; then
11399 # Linking always hardcodes the temporary library directory.
11400 hardcode_action=relink
11401 else
11402 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11403 hardcode_action=immediate
11404 fi
11405 else
11406 # We cannot hardcode anything, or else we can only hardcode existing
11407 # directories.
11408 hardcode_action=unsupported
11409 fi
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11411 $as_echo "$hardcode_action" >&6; }
11412
11413 if test "$hardcode_action" = relink ||
11414 test "$inherit_rpath" = yes; then
11415 # Fast installation is not supported
11416 enable_fast_install=no
11417 elif test "$shlibpath_overrides_runpath" = yes ||
11418 test "$enable_shared" = no; then
11419 # Fast installation is not necessary
11420 enable_fast_install=needless
11421 fi
11422
11423
11424
11425
11426
11427
11428 if test "x$enable_dlopen" != xyes; then
11429 enable_dlopen=unknown
11430 enable_dlopen_self=unknown
11431 enable_dlopen_self_static=unknown
11432 else
11433 lt_cv_dlopen=no
11434 lt_cv_dlopen_libs=
11435
11436 case $host_os in
11437 beos*)
11438 lt_cv_dlopen="load_add_on"
11439 lt_cv_dlopen_libs=
11440 lt_cv_dlopen_self=yes
11441 ;;
11442
11443 mingw* | pw32* | cegcc*)
11444 lt_cv_dlopen="LoadLibrary"
11445 lt_cv_dlopen_libs=
11446 ;;
11447
11448 cygwin*)
11449 lt_cv_dlopen="dlopen"
11450 lt_cv_dlopen_libs=
11451 ;;
11452
11453 darwin*)
11454 # if libdl is installed we need to link against it
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11456 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11457 if ${ac_cv_lib_dl_dlopen+:} false; then :
11458 $as_echo_n "(cached) " >&6
11459 else
11460 ac_check_lib_save_LIBS=$LIBS
11461 LIBS="-ldl $LIBS"
11462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11463 /* end confdefs.h. */
11464
11465 /* Override any GCC internal prototype to avoid an error.
11466 Use char because int might match the return type of a GCC
11467 builtin and then its argument prototype would still apply. */
11468 #ifdef __cplusplus
11469 extern "C"
11470 #endif
11471 char dlopen ();
11472 int
11473 main ()
11474 {
11475 return dlopen ();
11476 ;
11477 return 0;
11478 }
11479 _ACEOF
11480 if ac_fn_c_try_link "$LINENO"; then :
11481 ac_cv_lib_dl_dlopen=yes
11482 else
11483 ac_cv_lib_dl_dlopen=no
11484 fi
11485 rm -f core conftest.err conftest.$ac_objext \
11486 conftest$ac_exeext conftest.$ac_ext
11487 LIBS=$ac_check_lib_save_LIBS
11488 fi
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11490 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11491 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11492 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11493 else
11494
11495 lt_cv_dlopen="dyld"
11496 lt_cv_dlopen_libs=
11497 lt_cv_dlopen_self=yes
11498
11499 fi
11500
11501 ;;
11502
11503 *)
11504 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11505 if test "x$ac_cv_func_shl_load" = xyes; then :
11506 lt_cv_dlopen="shl_load"
11507 else
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11509 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11510 if ${ac_cv_lib_dld_shl_load+:} false; then :
11511 $as_echo_n "(cached) " >&6
11512 else
11513 ac_check_lib_save_LIBS=$LIBS
11514 LIBS="-ldld $LIBS"
11515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11516 /* end confdefs.h. */
11517
11518 /* Override any GCC internal prototype to avoid an error.
11519 Use char because int might match the return type of a GCC
11520 builtin and then its argument prototype would still apply. */
11521 #ifdef __cplusplus
11522 extern "C"
11523 #endif
11524 char shl_load ();
11525 int
11526 main ()
11527 {
11528 return shl_load ();
11529 ;
11530 return 0;
11531 }
11532 _ACEOF
11533 if ac_fn_c_try_link "$LINENO"; then :
11534 ac_cv_lib_dld_shl_load=yes
11535 else
11536 ac_cv_lib_dld_shl_load=no
11537 fi
11538 rm -f core conftest.err conftest.$ac_objext \
11539 conftest$ac_exeext conftest.$ac_ext
11540 LIBS=$ac_check_lib_save_LIBS
11541 fi
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11543 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11544 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11545 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11546 else
11547 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11548 if test "x$ac_cv_func_dlopen" = xyes; then :
11549 lt_cv_dlopen="dlopen"
11550 else
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11552 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11553 if ${ac_cv_lib_dl_dlopen+:} false; then :
11554 $as_echo_n "(cached) " >&6
11555 else
11556 ac_check_lib_save_LIBS=$LIBS
11557 LIBS="-ldl $LIBS"
11558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11559 /* end confdefs.h. */
11560
11561 /* Override any GCC internal prototype to avoid an error.
11562 Use char because int might match the return type of a GCC
11563 builtin and then its argument prototype would still apply. */
11564 #ifdef __cplusplus
11565 extern "C"
11566 #endif
11567 char dlopen ();
11568 int
11569 main ()
11570 {
11571 return dlopen ();
11572 ;
11573 return 0;
11574 }
11575 _ACEOF
11576 if ac_fn_c_try_link "$LINENO"; then :
11577 ac_cv_lib_dl_dlopen=yes
11578 else
11579 ac_cv_lib_dl_dlopen=no
11580 fi
11581 rm -f core conftest.err conftest.$ac_objext \
11582 conftest$ac_exeext conftest.$ac_ext
11583 LIBS=$ac_check_lib_save_LIBS
11584 fi
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11586 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11587 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11588 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11589 else
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11591 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11592 if ${ac_cv_lib_svld_dlopen+:} false; then :
11593 $as_echo_n "(cached) " >&6
11594 else
11595 ac_check_lib_save_LIBS=$LIBS
11596 LIBS="-lsvld $LIBS"
11597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11598 /* end confdefs.h. */
11599
11600 /* Override any GCC internal prototype to avoid an error.
11601 Use char because int might match the return type of a GCC
11602 builtin and then its argument prototype would still apply. */
11603 #ifdef __cplusplus
11604 extern "C"
11605 #endif
11606 char dlopen ();
11607 int
11608 main ()
11609 {
11610 return dlopen ();
11611 ;
11612 return 0;
11613 }
11614 _ACEOF
11615 if ac_fn_c_try_link "$LINENO"; then :
11616 ac_cv_lib_svld_dlopen=yes
11617 else
11618 ac_cv_lib_svld_dlopen=no
11619 fi
11620 rm -f core conftest.err conftest.$ac_objext \
11621 conftest$ac_exeext conftest.$ac_ext
11622 LIBS=$ac_check_lib_save_LIBS
11623 fi
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11625 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11626 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11627 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11628 else
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11630 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11631 if ${ac_cv_lib_dld_dld_link+:} false; then :
11632 $as_echo_n "(cached) " >&6
11633 else
11634 ac_check_lib_save_LIBS=$LIBS
11635 LIBS="-ldld $LIBS"
11636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11637 /* end confdefs.h. */
11638
11639 /* Override any GCC internal prototype to avoid an error.
11640 Use char because int might match the return type of a GCC
11641 builtin and then its argument prototype would still apply. */
11642 #ifdef __cplusplus
11643 extern "C"
11644 #endif
11645 char dld_link ();
11646 int
11647 main ()
11648 {
11649 return dld_link ();
11650 ;
11651 return 0;
11652 }
11653 _ACEOF
11654 if ac_fn_c_try_link "$LINENO"; then :
11655 ac_cv_lib_dld_dld_link=yes
11656 else
11657 ac_cv_lib_dld_dld_link=no
11658 fi
11659 rm -f core conftest.err conftest.$ac_objext \
11660 conftest$ac_exeext conftest.$ac_ext
11661 LIBS=$ac_check_lib_save_LIBS
11662 fi
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11664 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11665 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11666 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11667 fi
11668
11669
11670 fi
11671
11672
11673 fi
11674
11675
11676 fi
11677
11678
11679 fi
11680
11681
11682 fi
11683
11684 ;;
11685 esac
11686
11687 if test "x$lt_cv_dlopen" != xno; then
11688 enable_dlopen=yes
11689 else
11690 enable_dlopen=no
11691 fi
11692
11693 case $lt_cv_dlopen in
11694 dlopen)
11695 save_CPPFLAGS="$CPPFLAGS"
11696 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11697
11698 save_LDFLAGS="$LDFLAGS"
11699 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11700
11701 save_LIBS="$LIBS"
11702 LIBS="$lt_cv_dlopen_libs $LIBS"
11703
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11705 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11706 if ${lt_cv_dlopen_self+:} false; then :
11707 $as_echo_n "(cached) " >&6
11708 else
11709 if test "$cross_compiling" = yes; then :
11710 lt_cv_dlopen_self=cross
11711 else
11712 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11713 lt_status=$lt_dlunknown
11714 cat > conftest.$ac_ext <<_LT_EOF
11715 #line $LINENO "configure"
11716 #include "confdefs.h"
11717
11718 #if HAVE_DLFCN_H
11719 #include <dlfcn.h>
11720 #endif
11721
11722 #include <stdio.h>
11723
11724 #ifdef RTLD_GLOBAL
11725 # define LT_DLGLOBAL RTLD_GLOBAL
11726 #else
11727 # ifdef DL_GLOBAL
11728 # define LT_DLGLOBAL DL_GLOBAL
11729 # else
11730 # define LT_DLGLOBAL 0
11731 # endif
11732 #endif
11733
11734 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11735 find out it does not work in some platform. */
11736 #ifndef LT_DLLAZY_OR_NOW
11737 # ifdef RTLD_LAZY
11738 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11739 # else
11740 # ifdef DL_LAZY
11741 # define LT_DLLAZY_OR_NOW DL_LAZY
11742 # else
11743 # ifdef RTLD_NOW
11744 # define LT_DLLAZY_OR_NOW RTLD_NOW
11745 # else
11746 # ifdef DL_NOW
11747 # define LT_DLLAZY_OR_NOW DL_NOW
11748 # else
11749 # define LT_DLLAZY_OR_NOW 0
11750 # endif
11751 # endif
11752 # endif
11753 # endif
11754 #endif
11755
11756 /* When -fvisbility=hidden is used, assume the code has been annotated
11757 correspondingly for the symbols needed. */
11758 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11759 int fnord () __attribute__((visibility("default")));
11760 #endif
11761
11762 int fnord () { return 42; }
11763 int main ()
11764 {
11765 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11766 int status = $lt_dlunknown;
11767
11768 if (self)
11769 {
11770 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11771 else
11772 {
11773 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11774 else puts (dlerror ());
11775 }
11776 /* dlclose (self); */
11777 }
11778 else
11779 puts (dlerror ());
11780
11781 return status;
11782 }
11783 _LT_EOF
11784 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11785 (eval $ac_link) 2>&5
11786 ac_status=$?
11787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11788 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11789 (./conftest; exit; ) >&5 2>/dev/null
11790 lt_status=$?
11791 case x$lt_status in
11792 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11793 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11794 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11795 esac
11796 else :
11797 # compilation failed
11798 lt_cv_dlopen_self=no
11799 fi
11800 fi
11801 rm -fr conftest*
11802
11803
11804 fi
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11806 $as_echo "$lt_cv_dlopen_self" >&6; }
11807
11808 if test "x$lt_cv_dlopen_self" = xyes; then
11809 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11811 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11812 if ${lt_cv_dlopen_self_static+:} false; then :
11813 $as_echo_n "(cached) " >&6
11814 else
11815 if test "$cross_compiling" = yes; then :
11816 lt_cv_dlopen_self_static=cross
11817 else
11818 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11819 lt_status=$lt_dlunknown
11820 cat > conftest.$ac_ext <<_LT_EOF
11821 #line $LINENO "configure"
11822 #include "confdefs.h"
11823
11824 #if HAVE_DLFCN_H
11825 #include <dlfcn.h>
11826 #endif
11827
11828 #include <stdio.h>
11829
11830 #ifdef RTLD_GLOBAL
11831 # define LT_DLGLOBAL RTLD_GLOBAL
11832 #else
11833 # ifdef DL_GLOBAL
11834 # define LT_DLGLOBAL DL_GLOBAL
11835 # else
11836 # define LT_DLGLOBAL 0
11837 # endif
11838 #endif
11839
11840 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11841 find out it does not work in some platform. */
11842 #ifndef LT_DLLAZY_OR_NOW
11843 # ifdef RTLD_LAZY
11844 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11845 # else
11846 # ifdef DL_LAZY
11847 # define LT_DLLAZY_OR_NOW DL_LAZY
11848 # else
11849 # ifdef RTLD_NOW
11850 # define LT_DLLAZY_OR_NOW RTLD_NOW
11851 # else
11852 # ifdef DL_NOW
11853 # define LT_DLLAZY_OR_NOW DL_NOW
11854 # else
11855 # define LT_DLLAZY_OR_NOW 0
11856 # endif
11857 # endif
11858 # endif
11859 # endif
11860 #endif
11861
11862 /* When -fvisbility=hidden is used, assume the code has been annotated
11863 correspondingly for the symbols needed. */
11864 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11865 int fnord () __attribute__((visibility("default")));
11866 #endif
11867
11868 int fnord () { return 42; }
11869 int main ()
11870 {
11871 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11872 int status = $lt_dlunknown;
11873
11874 if (self)
11875 {
11876 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11877 else
11878 {
11879 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11880 else puts (dlerror ());
11881 }
11882 /* dlclose (self); */
11883 }
11884 else
11885 puts (dlerror ());
11886
11887 return status;
11888 }
11889 _LT_EOF
11890 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11891 (eval $ac_link) 2>&5
11892 ac_status=$?
11893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11894 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11895 (./conftest; exit; ) >&5 2>/dev/null
11896 lt_status=$?
11897 case x$lt_status in
11898 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11899 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11900 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11901 esac
11902 else :
11903 # compilation failed
11904 lt_cv_dlopen_self_static=no
11905 fi
11906 fi
11907 rm -fr conftest*
11908
11909
11910 fi
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11912 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11913 fi
11914
11915 CPPFLAGS="$save_CPPFLAGS"
11916 LDFLAGS="$save_LDFLAGS"
11917 LIBS="$save_LIBS"
11918 ;;
11919 esac
11920
11921 case $lt_cv_dlopen_self in
11922 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11923 *) enable_dlopen_self=unknown ;;
11924 esac
11925
11926 case $lt_cv_dlopen_self_static in
11927 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11928 *) enable_dlopen_self_static=unknown ;;
11929 esac
11930 fi
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948 striplib=
11949 old_striplib=
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11951 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11952 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11953 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11954 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11956 $as_echo "yes" >&6; }
11957 else
11958 # FIXME - insert some real tests, host_os isn't really good enough
11959 case $host_os in
11960 darwin*)
11961 if test -n "$STRIP" ; then
11962 striplib="$STRIP -x"
11963 old_striplib="$STRIP -S"
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11965 $as_echo "yes" >&6; }
11966 else
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11968 $as_echo "no" >&6; }
11969 fi
11970 ;;
11971 *)
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11973 $as_echo "no" >&6; }
11974 ;;
11975 esac
11976 fi
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989 # Report which library types will actually be built
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11991 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11993 $as_echo "$can_build_shared" >&6; }
11994
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11996 $as_echo_n "checking whether to build shared libraries... " >&6; }
11997 test "$can_build_shared" = "no" && enable_shared=no
11998
11999 # On AIX, shared libraries and static libraries use the same namespace, and
12000 # are all built from PIC.
12001 case $host_os in
12002 aix3*)
12003 test "$enable_shared" = yes && enable_static=no
12004 if test -n "$RANLIB"; then
12005 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12006 postinstall_cmds='$RANLIB $lib'
12007 fi
12008 ;;
12009
12010 aix[4-9]*)
12011 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12012 test "$enable_shared" = yes && enable_static=no
12013 fi
12014 ;;
12015 esac
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12017 $as_echo "$enable_shared" >&6; }
12018
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12020 $as_echo_n "checking whether to build static libraries... " >&6; }
12021 # Make sure either enable_shared or enable_static is yes.
12022 test "$enable_shared" = yes || enable_static=yes
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12024 $as_echo "$enable_static" >&6; }
12025
12026
12027
12028
12029 fi
12030 ac_ext=c
12031 ac_cpp='$CPP $CPPFLAGS'
12032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12035
12036 CC="$lt_save_CC"
12037
12038 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12039 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12040 (test "X$CXX" != "Xg++"))) ; then
12041 ac_ext=cpp
12042 ac_cpp='$CXXCPP $CPPFLAGS'
12043 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12044 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12045 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12047 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12048 if test -z "$CXXCPP"; then
12049 if ${ac_cv_prog_CXXCPP+:} false; then :
12050 $as_echo_n "(cached) " >&6
12051 else
12052 # Double quotes because CXXCPP needs to be expanded
12053 for CXXCPP in "$CXX -E" "/lib/cpp"
12054 do
12055 ac_preproc_ok=false
12056 for ac_cxx_preproc_warn_flag in '' yes
12057 do
12058 # Use a header file that comes with gcc, so configuring glibc
12059 # with a fresh cross-compiler works.
12060 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12061 # <limits.h> exists even on freestanding compilers.
12062 # On the NeXT, cc -E runs the code through the compiler's parser,
12063 # not just through cpp. "Syntax error" is here to catch this case.
12064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12065 /* end confdefs.h. */
12066 #ifdef __STDC__
12067 # include <limits.h>
12068 #else
12069 # include <assert.h>
12070 #endif
12071 Syntax error
12072 _ACEOF
12073 if ac_fn_cxx_try_cpp "$LINENO"; then :
12074
12075 else
12076 # Broken: fails on valid input.
12077 continue
12078 fi
12079 rm -f conftest.err conftest.i conftest.$ac_ext
12080
12081 # OK, works on sane cases. Now check whether nonexistent headers
12082 # can be detected and how.
12083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12084 /* end confdefs.h. */
12085 #include <ac_nonexistent.h>
12086 _ACEOF
12087 if ac_fn_cxx_try_cpp "$LINENO"; then :
12088 # Broken: success on invalid input.
12089 continue
12090 else
12091 # Passes both tests.
12092 ac_preproc_ok=:
12093 break
12094 fi
12095 rm -f conftest.err conftest.i conftest.$ac_ext
12096
12097 done
12098 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12099 rm -f conftest.i conftest.err conftest.$ac_ext
12100 if $ac_preproc_ok; then :
12101 break
12102 fi
12103
12104 done
12105 ac_cv_prog_CXXCPP=$CXXCPP
12106
12107 fi
12108 CXXCPP=$ac_cv_prog_CXXCPP
12109 else
12110 ac_cv_prog_CXXCPP=$CXXCPP
12111 fi
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12113 $as_echo "$CXXCPP" >&6; }
12114 ac_preproc_ok=false
12115 for ac_cxx_preproc_warn_flag in '' yes
12116 do
12117 # Use a header file that comes with gcc, so configuring glibc
12118 # with a fresh cross-compiler works.
12119 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12120 # <limits.h> exists even on freestanding compilers.
12121 # On the NeXT, cc -E runs the code through the compiler's parser,
12122 # not just through cpp. "Syntax error" is here to catch this case.
12123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12124 /* end confdefs.h. */
12125 #ifdef __STDC__
12126 # include <limits.h>
12127 #else
12128 # include <assert.h>
12129 #endif
12130 Syntax error
12131 _ACEOF
12132 if ac_fn_cxx_try_cpp "$LINENO"; then :
12133
12134 else
12135 # Broken: fails on valid input.
12136 continue
12137 fi
12138 rm -f conftest.err conftest.i conftest.$ac_ext
12139
12140 # OK, works on sane cases. Now check whether nonexistent headers
12141 # can be detected and how.
12142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12143 /* end confdefs.h. */
12144 #include <ac_nonexistent.h>
12145 _ACEOF
12146 if ac_fn_cxx_try_cpp "$LINENO"; then :
12147 # Broken: success on invalid input.
12148 continue
12149 else
12150 # Passes both tests.
12151 ac_preproc_ok=:
12152 break
12153 fi
12154 rm -f conftest.err conftest.i conftest.$ac_ext
12155
12156 done
12157 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12158 rm -f conftest.i conftest.err conftest.$ac_ext
12159 if $ac_preproc_ok; then :
12160
12161 else
12162 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12163 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12164 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12165 See \`config.log' for more details" "$LINENO" 5; }
12166 fi
12167
12168 ac_ext=c
12169 ac_cpp='$CPP $CPPFLAGS'
12170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12173
12174 else
12175 _lt_caught_CXX_error=yes
12176 fi
12177
12178 ac_ext=cpp
12179 ac_cpp='$CXXCPP $CPPFLAGS'
12180 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12181 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12182 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12183
12184 archive_cmds_need_lc_CXX=no
12185 allow_undefined_flag_CXX=
12186 always_export_symbols_CXX=no
12187 archive_expsym_cmds_CXX=
12188 compiler_needs_object_CXX=no
12189 export_dynamic_flag_spec_CXX=
12190 hardcode_direct_CXX=no
12191 hardcode_direct_absolute_CXX=no
12192 hardcode_libdir_flag_spec_CXX=
12193 hardcode_libdir_separator_CXX=
12194 hardcode_minus_L_CXX=no
12195 hardcode_shlibpath_var_CXX=unsupported
12196 hardcode_automatic_CXX=no
12197 inherit_rpath_CXX=no
12198 module_cmds_CXX=
12199 module_expsym_cmds_CXX=
12200 link_all_deplibs_CXX=unknown
12201 old_archive_cmds_CXX=$old_archive_cmds
12202 reload_flag_CXX=$reload_flag
12203 reload_cmds_CXX=$reload_cmds
12204 no_undefined_flag_CXX=
12205 whole_archive_flag_spec_CXX=
12206 enable_shared_with_static_runtimes_CXX=no
12207
12208 # Source file extension for C++ test sources.
12209 ac_ext=cpp
12210
12211 # Object file extension for compiled C++ test sources.
12212 objext=o
12213 objext_CXX=$objext
12214
12215 # No sense in running all these tests if we already determined that
12216 # the CXX compiler isn't working. Some variables (like enable_shared)
12217 # are currently assumed to apply to all compilers on this platform,
12218 # and will be corrupted by setting them based on a non-working compiler.
12219 if test "$_lt_caught_CXX_error" != yes; then
12220 # Code to be used in simple compile tests
12221 lt_simple_compile_test_code="int some_variable = 0;"
12222
12223 # Code to be used in simple link tests
12224 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12225
12226 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12227
12228
12229
12230
12231
12232
12233 # If no C compiler was specified, use CC.
12234 LTCC=${LTCC-"$CC"}
12235
12236 # If no C compiler flags were specified, use CFLAGS.
12237 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12238
12239 # Allow CC to be a program name with arguments.
12240 compiler=$CC
12241
12242
12243 # save warnings/boilerplate of simple test code
12244 ac_outfile=conftest.$ac_objext
12245 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12246 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12247 _lt_compiler_boilerplate=`cat conftest.err`
12248 $RM conftest*
12249
12250 ac_outfile=conftest.$ac_objext
12251 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12252 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12253 _lt_linker_boilerplate=`cat conftest.err`
12254 $RM -r conftest*
12255
12256
12257 # Allow CC to be a program name with arguments.
12258 lt_save_CC=$CC
12259 lt_save_CFLAGS=$CFLAGS
12260 lt_save_LD=$LD
12261 lt_save_GCC=$GCC
12262 GCC=$GXX
12263 lt_save_with_gnu_ld=$with_gnu_ld
12264 lt_save_path_LD=$lt_cv_path_LD
12265 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12266 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12267 else
12268 $as_unset lt_cv_prog_gnu_ld
12269 fi
12270 if test -n "${lt_cv_path_LDCXX+set}"; then
12271 lt_cv_path_LD=$lt_cv_path_LDCXX
12272 else
12273 $as_unset lt_cv_path_LD
12274 fi
12275 test -z "${LDCXX+set}" || LD=$LDCXX
12276 CC=${CXX-"c++"}
12277 CFLAGS=$CXXFLAGS
12278 compiler=$CC
12279 compiler_CXX=$CC
12280 for cc_temp in $compiler""; do
12281 case $cc_temp in
12282 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12283 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12284 \-*) ;;
12285 *) break;;
12286 esac
12287 done
12288 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12289
12290
12291 if test -n "$compiler"; then
12292 # We don't want -fno-exception when compiling C++ code, so set the
12293 # no_builtin_flag separately
12294 if test "$GXX" = yes; then
12295 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12296 else
12297 lt_prog_compiler_no_builtin_flag_CXX=
12298 fi
12299
12300 if test "$GXX" = yes; then
12301 # Set up default GNU C++ configuration
12302
12303
12304
12305 # Check whether --with-gnu-ld was given.
12306 if test "${with_gnu_ld+set}" = set; then :
12307 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12308 else
12309 with_gnu_ld=no
12310 fi
12311
12312 ac_prog=ld
12313 if test "$GCC" = yes; then
12314 # Check if gcc -print-prog-name=ld gives a path.
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12316 $as_echo_n "checking for ld used by $CC... " >&6; }
12317 case $host in
12318 *-*-mingw*)
12319 # gcc leaves a trailing carriage return which upsets mingw
12320 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12321 *)
12322 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12323 esac
12324 case $ac_prog in
12325 # Accept absolute paths.
12326 [\\/]* | ?:[\\/]*)
12327 re_direlt='/[^/][^/]*/\.\./'
12328 # Canonicalize the pathname of ld
12329 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12330 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12331 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12332 done
12333 test -z "$LD" && LD="$ac_prog"
12334 ;;
12335 "")
12336 # If it fails, then pretend we aren't using GCC.
12337 ac_prog=ld
12338 ;;
12339 *)
12340 # If it is relative, then search for the first ld in PATH.
12341 with_gnu_ld=unknown
12342 ;;
12343 esac
12344 elif test "$with_gnu_ld" = yes; then
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12346 $as_echo_n "checking for GNU ld... " >&6; }
12347 else
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12349 $as_echo_n "checking for non-GNU ld... " >&6; }
12350 fi
12351 if ${lt_cv_path_LD+:} false; then :
12352 $as_echo_n "(cached) " >&6
12353 else
12354 if test -z "$LD"; then
12355 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12356 for ac_dir in $PATH; do
12357 IFS="$lt_save_ifs"
12358 test -z "$ac_dir" && ac_dir=.
12359 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12360 lt_cv_path_LD="$ac_dir/$ac_prog"
12361 # Check to see if the program is GNU ld. I'd rather use --version,
12362 # but apparently some variants of GNU ld only accept -v.
12363 # Break only if it was the GNU/non-GNU ld that we prefer.
12364 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12365 *GNU* | *'with BFD'*)
12366 test "$with_gnu_ld" != no && break
12367 ;;
12368 *)
12369 test "$with_gnu_ld" != yes && break
12370 ;;
12371 esac
12372 fi
12373 done
12374 IFS="$lt_save_ifs"
12375 else
12376 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12377 fi
12378 fi
12379
12380 LD="$lt_cv_path_LD"
12381 if test -n "$LD"; then
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12383 $as_echo "$LD" >&6; }
12384 else
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12386 $as_echo "no" >&6; }
12387 fi
12388 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12390 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12391 if ${lt_cv_prog_gnu_ld+:} false; then :
12392 $as_echo_n "(cached) " >&6
12393 else
12394 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12395 case `$LD -v 2>&1 </dev/null` in
12396 *GNU* | *'with BFD'*)
12397 lt_cv_prog_gnu_ld=yes
12398 ;;
12399 *)
12400 lt_cv_prog_gnu_ld=no
12401 ;;
12402 esac
12403 fi
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12405 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12406 with_gnu_ld=$lt_cv_prog_gnu_ld
12407
12408
12409
12410
12411
12412
12413
12414 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12415 # archiving commands below assume that GNU ld is being used.
12416 if test "$with_gnu_ld" = yes; then
12417 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12418 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'
12419
12420 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12421 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12422
12423 # If archive_cmds runs LD, not CC, wlarc should be empty
12424 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12425 # investigate it a little bit more. (MM)
12426 wlarc='${wl}'
12427
12428 # ancient GNU ld didn't support --whole-archive et. al.
12429 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12430 $GREP 'no-whole-archive' > /dev/null; then
12431 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12432 else
12433 whole_archive_flag_spec_CXX=
12434 fi
12435 else
12436 with_gnu_ld=no
12437 wlarc=
12438
12439 # A generic and very simple default shared library creation
12440 # command for GNU C++ for the case where it uses the native
12441 # linker, instead of GNU ld. If possible, this setting should
12442 # overridden to take advantage of the native linker features on
12443 # the platform it is being used on.
12444 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12445 fi
12446
12447 # Commands to make compiler produce verbose output that lists
12448 # what "hidden" libraries, object files and flags are used when
12449 # linking a shared library.
12450 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12451
12452 else
12453 GXX=no
12454 with_gnu_ld=no
12455 wlarc=
12456 fi
12457
12458 # PORTME: fill in a description of your system's C++ link characteristics
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12460 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12461 ld_shlibs_CXX=yes
12462 case $host_os in
12463 aix3*)
12464 # FIXME: insert proper C++ library support
12465 ld_shlibs_CXX=no
12466 ;;
12467 aix[4-9]*)
12468 if test "$host_cpu" = ia64; then
12469 # On IA64, the linker does run time linking by default, so we don't
12470 # have to do anything special.
12471 aix_use_runtimelinking=no
12472 exp_sym_flag='-Bexport'
12473 no_entry_flag=""
12474 else
12475 aix_use_runtimelinking=no
12476
12477 # Test if we are trying to use run time linking or normal
12478 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12479 # need to do runtime linking.
12480 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12481 for ld_flag in $LDFLAGS; do
12482 case $ld_flag in
12483 *-brtl*)
12484 aix_use_runtimelinking=yes
12485 break
12486 ;;
12487 esac
12488 done
12489 ;;
12490 esac
12491
12492 exp_sym_flag='-bexport'
12493 no_entry_flag='-bnoentry'
12494 fi
12495
12496 # When large executables or shared objects are built, AIX ld can
12497 # have problems creating the table of contents. If linking a library
12498 # or program results in "error TOC overflow" add -mminimal-toc to
12499 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12500 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12501
12502 archive_cmds_CXX=''
12503 hardcode_direct_CXX=yes
12504 hardcode_direct_absolute_CXX=yes
12505 hardcode_libdir_separator_CXX=':'
12506 link_all_deplibs_CXX=yes
12507 file_list_spec_CXX='${wl}-f,'
12508
12509 if test "$GXX" = yes; then
12510 case $host_os in aix4.[012]|aix4.[012].*)
12511 # We only want to do this on AIX 4.2 and lower, the check
12512 # below for broken collect2 doesn't work under 4.3+
12513 collect2name=`${CC} -print-prog-name=collect2`
12514 if test -f "$collect2name" &&
12515 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12516 then
12517 # We have reworked collect2
12518 :
12519 else
12520 # We have old collect2
12521 hardcode_direct_CXX=unsupported
12522 # It fails to find uninstalled libraries when the uninstalled
12523 # path is not listed in the libpath. Setting hardcode_minus_L
12524 # to unsupported forces relinking
12525 hardcode_minus_L_CXX=yes
12526 hardcode_libdir_flag_spec_CXX='-L$libdir'
12527 hardcode_libdir_separator_CXX=
12528 fi
12529 esac
12530 shared_flag='-shared'
12531 if test "$aix_use_runtimelinking" = yes; then
12532 shared_flag="$shared_flag "'${wl}-G'
12533 fi
12534 else
12535 # not using gcc
12536 if test "$host_cpu" = ia64; then
12537 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12538 # chokes on -Wl,-G. The following line is correct:
12539 shared_flag='-G'
12540 else
12541 if test "$aix_use_runtimelinking" = yes; then
12542 shared_flag='${wl}-G'
12543 else
12544 shared_flag='${wl}-bM:SRE'
12545 fi
12546 fi
12547 fi
12548
12549 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12550 # It seems that -bexpall does not export symbols beginning with
12551 # underscore (_), so it is better to generate a list of symbols to
12552 # export.
12553 always_export_symbols_CXX=yes
12554 if test "$aix_use_runtimelinking" = yes; then
12555 # Warning - without using the other runtime loading flags (-brtl),
12556 # -berok will link without error, but may produce a broken library.
12557 allow_undefined_flag_CXX='-berok'
12558 # Determine the default libpath from the value encoded in an empty
12559 # executable.
12560 if test "${lt_cv_aix_libpath+set}" = set; then
12561 aix_libpath=$lt_cv_aix_libpath
12562 else
12563 if ${lt_cv_aix_libpath__CXX+:} false; then :
12564 $as_echo_n "(cached) " >&6
12565 else
12566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12567 /* end confdefs.h. */
12568
12569 int
12570 main ()
12571 {
12572
12573 ;
12574 return 0;
12575 }
12576 _ACEOF
12577 if ac_fn_cxx_try_link "$LINENO"; then :
12578
12579 lt_aix_libpath_sed='
12580 /Import File Strings/,/^$/ {
12581 /^0/ {
12582 s/^0 *\([^ ]*\) *$/\1/
12583 p
12584 }
12585 }'
12586 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12587 # Check for a 64-bit object if we didn't find anything.
12588 if test -z "$lt_cv_aix_libpath__CXX"; then
12589 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12590 fi
12591 fi
12592 rm -f core conftest.err conftest.$ac_objext \
12593 conftest$ac_exeext conftest.$ac_ext
12594 if test -z "$lt_cv_aix_libpath__CXX"; then
12595 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12596 fi
12597
12598 fi
12599
12600 aix_libpath=$lt_cv_aix_libpath__CXX
12601 fi
12602
12603 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12604
12605 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12606 else
12607 if test "$host_cpu" = ia64; then
12608 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12609 allow_undefined_flag_CXX="-z nodefs"
12610 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"
12611 else
12612 # Determine the default libpath from the value encoded in an
12613 # empty executable.
12614 if test "${lt_cv_aix_libpath+set}" = set; then
12615 aix_libpath=$lt_cv_aix_libpath
12616 else
12617 if ${lt_cv_aix_libpath__CXX+:} false; then :
12618 $as_echo_n "(cached) " >&6
12619 else
12620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12621 /* end confdefs.h. */
12622
12623 int
12624 main ()
12625 {
12626
12627 ;
12628 return 0;
12629 }
12630 _ACEOF
12631 if ac_fn_cxx_try_link "$LINENO"; then :
12632
12633 lt_aix_libpath_sed='
12634 /Import File Strings/,/^$/ {
12635 /^0/ {
12636 s/^0 *\([^ ]*\) *$/\1/
12637 p
12638 }
12639 }'
12640 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12641 # Check for a 64-bit object if we didn't find anything.
12642 if test -z "$lt_cv_aix_libpath__CXX"; then
12643 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12644 fi
12645 fi
12646 rm -f core conftest.err conftest.$ac_objext \
12647 conftest$ac_exeext conftest.$ac_ext
12648 if test -z "$lt_cv_aix_libpath__CXX"; then
12649 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12650 fi
12651
12652 fi
12653
12654 aix_libpath=$lt_cv_aix_libpath__CXX
12655 fi
12656
12657 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12658 # Warning - without using the other run time loading flags,
12659 # -berok will link without error, but may produce a broken library.
12660 no_undefined_flag_CXX=' ${wl}-bernotok'
12661 allow_undefined_flag_CXX=' ${wl}-berok'
12662 if test "$with_gnu_ld" = yes; then
12663 # We only use this code for GNU lds that support --whole-archive.
12664 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12665 else
12666 # Exported symbols can be pulled into shared objects from archives
12667 whole_archive_flag_spec_CXX='$convenience'
12668 fi
12669 archive_cmds_need_lc_CXX=yes
12670 # This is similar to how AIX traditionally builds its shared
12671 # libraries.
12672 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12673 fi
12674 fi
12675 ;;
12676
12677 beos*)
12678 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12679 allow_undefined_flag_CXX=unsupported
12680 # Joseph Beckenbach <[email protected]> says some releases of gcc
12681 # support --undefined. This deserves some investigation. FIXME
12682 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12683 else
12684 ld_shlibs_CXX=no
12685 fi
12686 ;;
12687
12688 chorus*)
12689 case $cc_basename in
12690 *)
12691 # FIXME: insert proper C++ library support
12692 ld_shlibs_CXX=no
12693 ;;
12694 esac
12695 ;;
12696
12697 cygwin* | mingw* | pw32* | cegcc*)
12698 case $GXX,$cc_basename in
12699 ,cl* | no,cl*)
12700 # Native MSVC
12701 # hardcode_libdir_flag_spec is actually meaningless, as there is
12702 # no search path for DLLs.
12703 hardcode_libdir_flag_spec_CXX=' '
12704 allow_undefined_flag_CXX=unsupported
12705 always_export_symbols_CXX=yes
12706 file_list_spec_CXX='@'
12707 # Tell ltmain to make .lib files, not .a files.
12708 libext=lib
12709 # Tell ltmain to make .dll files, not .so files.
12710 shrext_cmds=".dll"
12711 # FIXME: Setting linknames here is a bad hack.
12712 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12713 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12714 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12715 else
12716 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12717 fi~
12718 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12719 linknames='
12720 # The linker will not automatically build a static lib if we build a DLL.
12721 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12722 enable_shared_with_static_runtimes_CXX=yes
12723 # Don't use ranlib
12724 old_postinstall_cmds_CXX='chmod 644 $oldlib'
12725 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12726 lt_tool_outputfile="@TOOL_OUTPUT@"~
12727 case $lt_outputfile in
12728 *.exe|*.EXE) ;;
12729 *)
12730 lt_outputfile="$lt_outputfile.exe"
12731 lt_tool_outputfile="$lt_tool_outputfile.exe"
12732 ;;
12733 esac~
12734 func_to_tool_file "$lt_outputfile"~
12735 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12736 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12737 $RM "$lt_outputfile.manifest";
12738 fi'
12739 ;;
12740 *)
12741 # g++
12742 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12743 # as there is no search path for DLLs.
12744 hardcode_libdir_flag_spec_CXX='-L$libdir'
12745 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12746 allow_undefined_flag_CXX=unsupported
12747 always_export_symbols_CXX=no
12748 enable_shared_with_static_runtimes_CXX=yes
12749
12750 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12751 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'
12752 # If the export-symbols file already is a .def file (1st line
12753 # is EXPORTS), use it as is; otherwise, prepend...
12754 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12755 cp $export_symbols $output_objdir/$soname.def;
12756 else
12757 echo EXPORTS > $output_objdir/$soname.def;
12758 cat $export_symbols >> $output_objdir/$soname.def;
12759 fi~
12760 $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'
12761 else
12762 ld_shlibs_CXX=no
12763 fi
12764 ;;
12765 esac
12766 ;;
12767 darwin* | rhapsody*)
12768
12769
12770 archive_cmds_need_lc_CXX=no
12771 hardcode_direct_CXX=no
12772 hardcode_automatic_CXX=yes
12773 hardcode_shlibpath_var_CXX=unsupported
12774 if test "$lt_cv_ld_force_load" = "yes"; then
12775 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\"`'
12776
12777 else
12778 whole_archive_flag_spec_CXX=''
12779 fi
12780 link_all_deplibs_CXX=yes
12781 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12782 case $cc_basename in
12783 ifort*) _lt_dar_can_shared=yes ;;
12784 *) _lt_dar_can_shared=$GCC ;;
12785 esac
12786 if test "$_lt_dar_can_shared" = "yes"; then
12787 output_verbose_link_cmd=func_echo_all
12788 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}"
12789 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12790 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}"
12791 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}"
12792 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12793 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}"
12794 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}"
12795 fi
12796
12797 else
12798 ld_shlibs_CXX=no
12799 fi
12800
12801 ;;
12802
12803 dgux*)
12804 case $cc_basename in
12805 ec++*)
12806 # FIXME: insert proper C++ library support
12807 ld_shlibs_CXX=no
12808 ;;
12809 ghcx*)
12810 # Green Hills C++ Compiler
12811 # FIXME: insert proper C++ library support
12812 ld_shlibs_CXX=no
12813 ;;
12814 *)
12815 # FIXME: insert proper C++ library support
12816 ld_shlibs_CXX=no
12817 ;;
12818 esac
12819 ;;
12820
12821 freebsd2.*)
12822 # C++ shared libraries reported to be fairly broken before
12823 # switch to ELF
12824 ld_shlibs_CXX=no
12825 ;;
12826
12827 freebsd-elf*)
12828 archive_cmds_need_lc_CXX=no
12829 ;;
12830
12831 freebsd* | dragonfly*)
12832 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12833 # conventions
12834 ld_shlibs_CXX=yes
12835 ;;
12836
12837 haiku*)
12838 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12839 link_all_deplibs_CXX=yes
12840 ;;
12841
12842 hpux9*)
12843 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12844 hardcode_libdir_separator_CXX=:
12845 export_dynamic_flag_spec_CXX='${wl}-E'
12846 hardcode_direct_CXX=yes
12847 hardcode_minus_L_CXX=yes # Not in the search PATH,
12848 # but as the default
12849 # location of the library.
12850
12851 case $cc_basename in
12852 CC*)
12853 # FIXME: insert proper C++ library support
12854 ld_shlibs_CXX=no
12855 ;;
12856 aCC*)
12857 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12858 # Commands to make compiler produce verbose output that lists
12859 # what "hidden" libraries, object files and flags are used when
12860 # linking a shared library.
12861 #
12862 # There doesn't appear to be a way to prevent this compiler from
12863 # explicitly linking system object files so we need to strip them
12864 # from the output so that they don't get included in the library
12865 # dependencies.
12866 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"'
12867 ;;
12868 *)
12869 if test "$GXX" = yes; then
12870 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12871 else
12872 # FIXME: insert proper C++ library support
12873 ld_shlibs_CXX=no
12874 fi
12875 ;;
12876 esac
12877 ;;
12878
12879 hpux10*|hpux11*)
12880 if test $with_gnu_ld = no; then
12881 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12882 hardcode_libdir_separator_CXX=:
12883
12884 case $host_cpu in
12885 hppa*64*|ia64*)
12886 ;;
12887 *)
12888 export_dynamic_flag_spec_CXX='${wl}-E'
12889 ;;
12890 esac
12891 fi
12892 case $host_cpu in
12893 hppa*64*|ia64*)
12894 hardcode_direct_CXX=no
12895 hardcode_shlibpath_var_CXX=no
12896 ;;
12897 *)
12898 hardcode_direct_CXX=yes
12899 hardcode_direct_absolute_CXX=yes
12900 hardcode_minus_L_CXX=yes # Not in the search PATH,
12901 # but as the default
12902 # location of the library.
12903 ;;
12904 esac
12905
12906 case $cc_basename in
12907 CC*)
12908 # FIXME: insert proper C++ library support
12909 ld_shlibs_CXX=no
12910 ;;
12911 aCC*)
12912 case $host_cpu in
12913 hppa*64*)
12914 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12915 ;;
12916 ia64*)
12917 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12918 ;;
12919 *)
12920 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12921 ;;
12922 esac
12923 # Commands to make compiler produce verbose output that lists
12924 # what "hidden" libraries, object files and flags are used when
12925 # linking a shared library.
12926 #
12927 # There doesn't appear to be a way to prevent this compiler from
12928 # explicitly linking system object files so we need to strip them
12929 # from the output so that they don't get included in the library
12930 # dependencies.
12931 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"'
12932 ;;
12933 *)
12934 if test "$GXX" = yes; then
12935 if test $with_gnu_ld = no; then
12936 case $host_cpu in
12937 hppa*64*)
12938 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12939 ;;
12940 ia64*)
12941 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12942 ;;
12943 *)
12944 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'
12945 ;;
12946 esac
12947 fi
12948 else
12949 # FIXME: insert proper C++ library support
12950 ld_shlibs_CXX=no
12951 fi
12952 ;;
12953 esac
12954 ;;
12955
12956 interix[3-9]*)
12957 hardcode_direct_CXX=no
12958 hardcode_shlibpath_var_CXX=no
12959 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12960 export_dynamic_flag_spec_CXX='${wl}-E'
12961 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12962 # Instead, shared libraries are loaded at an image base (0x10000000 by
12963 # default) and relocated if they conflict, which is a slow very memory
12964 # consuming and fragmenting process. To avoid this, we pick a random,
12965 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12966 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12967 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'
12968 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'
12969 ;;
12970 irix5* | irix6*)
12971 case $cc_basename in
12972 CC*)
12973 # SGI C++
12974 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'
12975
12976 # Archives containing C++ object files must be created using
12977 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12978 # necessary to make sure instantiated templates are included
12979 # in the archive.
12980 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12981 ;;
12982 *)
12983 if test "$GXX" = yes; then
12984 if test "$with_gnu_ld" = no; then
12985 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'
12986 else
12987 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'
12988 fi
12989 fi
12990 link_all_deplibs_CXX=yes
12991 ;;
12992 esac
12993 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12994 hardcode_libdir_separator_CXX=:
12995 inherit_rpath_CXX=yes
12996 ;;
12997
12998 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12999 case $cc_basename in
13000 KCC*)
13001 # Kuck and Associates, Inc. (KAI) C++ Compiler
13002
13003 # KCC will only create a shared library if the output file
13004 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13005 # to its proper name (with version) after linking.
13006 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'
13007 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'
13008 # Commands to make compiler produce verbose output that lists
13009 # what "hidden" libraries, object files and flags are used when
13010 # linking a shared library.
13011 #
13012 # There doesn't appear to be a way to prevent this compiler from
13013 # explicitly linking system object files so we need to strip them
13014 # from the output so that they don't get included in the library
13015 # dependencies.
13016 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"'
13017
13018 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13019 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13020
13021 # Archives containing C++ object files must be created using
13022 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13023 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13024 ;;
13025 icpc* | ecpc* )
13026 # Intel C++
13027 with_gnu_ld=yes
13028 # version 8.0 and above of icpc choke on multiply defined symbols
13029 # if we add $predep_objects and $postdep_objects, however 7.1 and
13030 # earlier do not add the objects themselves.
13031 case `$CC -V 2>&1` in
13032 *"Version 7."*)
13033 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13034 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'
13035 ;;
13036 *) # Version 8.0 or newer
13037 tmp_idyn=
13038 case $host_cpu in
13039 ia64*) tmp_idyn=' -i_dynamic';;
13040 esac
13041 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13042 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'
13043 ;;
13044 esac
13045 archive_cmds_need_lc_CXX=no
13046 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13047 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13048 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13049 ;;
13050 pgCC* | pgcpp*)
13051 # Portland Group C++ compiler
13052 case `$CC -V` in
13053 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13054 prelink_cmds_CXX='tpldir=Template.dir~
13055 rm -rf $tpldir~
13056 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13057 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13058 old_archive_cmds_CXX='tpldir=Template.dir~
13059 rm -rf $tpldir~
13060 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13061 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13062 $RANLIB $oldlib'
13063 archive_cmds_CXX='tpldir=Template.dir~
13064 rm -rf $tpldir~
13065 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13066 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13067 archive_expsym_cmds_CXX='tpldir=Template.dir~
13068 rm -rf $tpldir~
13069 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13070 $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'
13071 ;;
13072 *) # Version 6 and above use weak symbols
13073 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13074 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'
13075 ;;
13076 esac
13077
13078 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13079 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13080 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'
13081 ;;
13082 cxx*)
13083 # Compaq C++
13084 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13085 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'
13086
13087 runpath_var=LD_RUN_PATH
13088 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13089 hardcode_libdir_separator_CXX=:
13090
13091 # Commands to make compiler produce verbose output that lists
13092 # what "hidden" libraries, object files and flags are used when
13093 # linking a shared library.
13094 #
13095 # There doesn't appear to be a way to prevent this compiler from
13096 # explicitly linking system object files so we need to strip them
13097 # from the output so that they don't get included in the library
13098 # dependencies.
13099 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'
13100 ;;
13101 xl* | mpixl* | bgxl*)
13102 # IBM XL 8.0 on PPC, with GNU ld
13103 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13104 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13105 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13106 if test "x$supports_anon_versioning" = xyes; then
13107 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13108 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13109 echo "local: *; };" >> $output_objdir/$libname.ver~
13110 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13111 fi
13112 ;;
13113 *)
13114 case `$CC -V 2>&1 | sed 5q` in
13115 *Sun\ C*)
13116 # Sun C++ 5.9
13117 no_undefined_flag_CXX=' -zdefs'
13118 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13119 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'
13120 hardcode_libdir_flag_spec_CXX='-R$libdir'
13121 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'
13122 compiler_needs_object_CXX=yes
13123
13124 # Not sure whether something based on
13125 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13126 # would be better.
13127 output_verbose_link_cmd='func_echo_all'
13128
13129 # Archives containing C++ object files must be created using
13130 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13131 # necessary to make sure instantiated templates are included
13132 # in the archive.
13133 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13134 ;;
13135 esac
13136 ;;
13137 esac
13138 ;;
13139
13140 lynxos*)
13141 # FIXME: insert proper C++ library support
13142 ld_shlibs_CXX=no
13143 ;;
13144
13145 m88k*)
13146 # FIXME: insert proper C++ library support
13147 ld_shlibs_CXX=no
13148 ;;
13149
13150 mvs*)
13151 case $cc_basename in
13152 cxx*)
13153 # FIXME: insert proper C++ library support
13154 ld_shlibs_CXX=no
13155 ;;
13156 *)
13157 # FIXME: insert proper C++ library support
13158 ld_shlibs_CXX=no
13159 ;;
13160 esac
13161 ;;
13162
13163 netbsd*)
13164 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13165 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13166 wlarc=
13167 hardcode_libdir_flag_spec_CXX='-R$libdir'
13168 hardcode_direct_CXX=yes
13169 hardcode_shlibpath_var_CXX=no
13170 fi
13171 # Workaround some broken pre-1.5 toolchains
13172 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13173 ;;
13174
13175 *nto* | *qnx*)
13176 ld_shlibs_CXX=yes
13177 ;;
13178
13179 openbsd2*)
13180 # C++ shared libraries are fairly broken
13181 ld_shlibs_CXX=no
13182 ;;
13183
13184 openbsd*)
13185 if test -f /usr/libexec/ld.so; then
13186 hardcode_direct_CXX=yes
13187 hardcode_shlibpath_var_CXX=no
13188 hardcode_direct_absolute_CXX=yes
13189 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13190 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13191 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13192 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13193 export_dynamic_flag_spec_CXX='${wl}-E'
13194 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13195 fi
13196 output_verbose_link_cmd=func_echo_all
13197 else
13198 ld_shlibs_CXX=no
13199 fi
13200 ;;
13201
13202 osf3* | osf4* | osf5*)
13203 case $cc_basename in
13204 KCC*)
13205 # Kuck and Associates, Inc. (KAI) C++ Compiler
13206
13207 # KCC will only create a shared library if the output file
13208 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13209 # to its proper name (with version) after linking.
13210 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'
13211
13212 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13213 hardcode_libdir_separator_CXX=:
13214
13215 # Archives containing C++ object files must be created using
13216 # the KAI C++ compiler.
13217 case $host in
13218 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13219 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13220 esac
13221 ;;
13222 RCC*)
13223 # Rational C++ 2.4.1
13224 # FIXME: insert proper C++ library support
13225 ld_shlibs_CXX=no
13226 ;;
13227 cxx*)
13228 case $host in
13229 osf3*)
13230 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13231 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'
13232 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13233 ;;
13234 *)
13235 allow_undefined_flag_CXX=' -expect_unresolved \*'
13236 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'
13237 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13238 echo "-hidden">> $lib.exp~
13239 $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~
13240 $RM $lib.exp'
13241 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13242 ;;
13243 esac
13244
13245 hardcode_libdir_separator_CXX=:
13246
13247 # Commands to make compiler produce verbose output that lists
13248 # what "hidden" libraries, object files and flags are used when
13249 # linking a shared library.
13250 #
13251 # There doesn't appear to be a way to prevent this compiler from
13252 # explicitly linking system object files so we need to strip them
13253 # from the output so that they don't get included in the library
13254 # dependencies.
13255 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"'
13256 ;;
13257 *)
13258 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13259 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13260 case $host in
13261 osf3*)
13262 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'
13263 ;;
13264 *)
13265 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'
13266 ;;
13267 esac
13268
13269 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13270 hardcode_libdir_separator_CXX=:
13271
13272 # Commands to make compiler produce verbose output that lists
13273 # what "hidden" libraries, object files and flags are used when
13274 # linking a shared library.
13275 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13276
13277 else
13278 # FIXME: insert proper C++ library support
13279 ld_shlibs_CXX=no
13280 fi
13281 ;;
13282 esac
13283 ;;
13284
13285 psos*)
13286 # FIXME: insert proper C++ library support
13287 ld_shlibs_CXX=no
13288 ;;
13289
13290 sunos4*)
13291 case $cc_basename in
13292 CC*)
13293 # Sun C++ 4.x
13294 # FIXME: insert proper C++ library support
13295 ld_shlibs_CXX=no
13296 ;;
13297 lcc*)
13298 # Lucid
13299 # FIXME: insert proper C++ library support
13300 ld_shlibs_CXX=no
13301 ;;
13302 *)
13303 # FIXME: insert proper C++ library support
13304 ld_shlibs_CXX=no
13305 ;;
13306 esac
13307 ;;
13308
13309 solaris*)
13310 case $cc_basename in
13311 CC* | sunCC*)
13312 # Sun C++ 4.2, 5.x and Centerline C++
13313 archive_cmds_need_lc_CXX=yes
13314 no_undefined_flag_CXX=' -zdefs'
13315 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13316 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13317 $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'
13318
13319 hardcode_libdir_flag_spec_CXX='-R$libdir'
13320 hardcode_shlibpath_var_CXX=no
13321 case $host_os in
13322 solaris2.[0-5] | solaris2.[0-5].*) ;;
13323 *)
13324 # The compiler driver will combine and reorder linker options,
13325 # but understands `-z linker_flag'.
13326 # Supported since Solaris 2.6 (maybe 2.5.1?)
13327 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13328 ;;
13329 esac
13330 link_all_deplibs_CXX=yes
13331
13332 output_verbose_link_cmd='func_echo_all'
13333
13334 # Archives containing C++ object files must be created using
13335 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13336 # necessary to make sure instantiated templates are included
13337 # in the archive.
13338 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13339 ;;
13340 gcx*)
13341 # Green Hills C++ Compiler
13342 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13343
13344 # The C++ compiler must be used to create the archive.
13345 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13346 ;;
13347 *)
13348 # GNU C++ compiler with Solaris linker
13349 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13350 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13351 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13352 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13353 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13354 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13355
13356 # Commands to make compiler produce verbose output that lists
13357 # what "hidden" libraries, object files and flags are used when
13358 # linking a shared library.
13359 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13360 else
13361 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13362 # platform.
13363 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13364 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13365 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13366
13367 # Commands to make compiler produce verbose output that lists
13368 # what "hidden" libraries, object files and flags are used when
13369 # linking a shared library.
13370 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13371 fi
13372
13373 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13374 case $host_os in
13375 solaris2.[0-5] | solaris2.[0-5].*) ;;
13376 *)
13377 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13378 ;;
13379 esac
13380 fi
13381 ;;
13382 esac
13383 ;;
13384
13385 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13386 no_undefined_flag_CXX='${wl}-z,text'
13387 archive_cmds_need_lc_CXX=no
13388 hardcode_shlibpath_var_CXX=no
13389 runpath_var='LD_RUN_PATH'
13390
13391 case $cc_basename in
13392 CC*)
13393 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13394 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13395 ;;
13396 *)
13397 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13398 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13399 ;;
13400 esac
13401 ;;
13402
13403 sysv5* | sco3.2v5* | sco5v6*)
13404 # Note: We can NOT use -z defs as we might desire, because we do not
13405 # link with -lc, and that would cause any symbols used from libc to
13406 # always be unresolved, which means just about no library would
13407 # ever link correctly. If we're not using GNU ld we use -z text
13408 # though, which does catch some bad symbols but isn't as heavy-handed
13409 # as -z defs.
13410 no_undefined_flag_CXX='${wl}-z,text'
13411 allow_undefined_flag_CXX='${wl}-z,nodefs'
13412 archive_cmds_need_lc_CXX=no
13413 hardcode_shlibpath_var_CXX=no
13414 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13415 hardcode_libdir_separator_CXX=':'
13416 link_all_deplibs_CXX=yes
13417 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13418 runpath_var='LD_RUN_PATH'
13419
13420 case $cc_basename in
13421 CC*)
13422 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13423 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13424 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13425 '"$old_archive_cmds_CXX"
13426 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13427 '"$reload_cmds_CXX"
13428 ;;
13429 *)
13430 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13431 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13432 ;;
13433 esac
13434 ;;
13435
13436 tandem*)
13437 case $cc_basename in
13438 NCC*)
13439 # NonStop-UX NCC 3.20
13440 # FIXME: insert proper C++ library support
13441 ld_shlibs_CXX=no
13442 ;;
13443 *)
13444 # FIXME: insert proper C++ library support
13445 ld_shlibs_CXX=no
13446 ;;
13447 esac
13448 ;;
13449
13450 vxworks*)
13451 # FIXME: insert proper C++ library support
13452 ld_shlibs_CXX=no
13453 ;;
13454
13455 *)
13456 # FIXME: insert proper C++ library support
13457 ld_shlibs_CXX=no
13458 ;;
13459 esac
13460
13461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13462 $as_echo "$ld_shlibs_CXX" >&6; }
13463 test "$ld_shlibs_CXX" = no && can_build_shared=no
13464
13465 GCC_CXX="$GXX"
13466 LD_CXX="$LD"
13467
13468 ## CAVEAT EMPTOR:
13469 ## There is no encapsulation within the following macros, do not change
13470 ## the running order or otherwise move them around unless you know exactly
13471 ## what you are doing...
13472 # Dependencies to place before and after the object being linked:
13473 predep_objects_CXX=
13474 postdep_objects_CXX=
13475 predeps_CXX=
13476 postdeps_CXX=
13477 compiler_lib_search_path_CXX=
13478
13479 cat > conftest.$ac_ext <<_LT_EOF
13480 class Foo
13481 {
13482 public:
13483 Foo (void) { a = 0; }
13484 private:
13485 int a;
13486 };
13487 _LT_EOF
13488
13489
13490 _lt_libdeps_save_CFLAGS=$CFLAGS
13491 case "$CC $CFLAGS " in #(
13492 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13493 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13494 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13495 esac
13496
13497 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13498 (eval $ac_compile) 2>&5
13499 ac_status=$?
13500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13501 test $ac_status = 0; }; then
13502 # Parse the compiler output and extract the necessary
13503 # objects, libraries and library flags.
13504
13505 # Sentinel used to keep track of whether or not we are before
13506 # the conftest object file.
13507 pre_test_object_deps_done=no
13508
13509 for p in `eval "$output_verbose_link_cmd"`; do
13510 case ${prev}${p} in
13511
13512 -L* | -R* | -l*)
13513 # Some compilers place space between "-{L,R}" and the path.
13514 # Remove the space.
13515 if test $p = "-L" ||
13516 test $p = "-R"; then
13517 prev=$p
13518 continue
13519 fi
13520
13521 # Expand the sysroot to ease extracting the directories later.
13522 if test -z "$prev"; then
13523 case $p in
13524 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13525 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13526 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13527 esac
13528 fi
13529 case $p in
13530 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13531 esac
13532 if test "$pre_test_object_deps_done" = no; then
13533 case ${prev} in
13534 -L | -R)
13535 # Internal compiler library paths should come after those
13536 # provided the user. The postdeps already come after the
13537 # user supplied libs so there is no need to process them.
13538 if test -z "$compiler_lib_search_path_CXX"; then
13539 compiler_lib_search_path_CXX="${prev}${p}"
13540 else
13541 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13542 fi
13543 ;;
13544 # The "-l" case would never come before the object being
13545 # linked, so don't bother handling this case.
13546 esac
13547 else
13548 if test -z "$postdeps_CXX"; then
13549 postdeps_CXX="${prev}${p}"
13550 else
13551 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13552 fi
13553 fi
13554 prev=
13555 ;;
13556
13557 *.lto.$objext) ;; # Ignore GCC LTO objects
13558 *.$objext)
13559 # This assumes that the test object file only shows up
13560 # once in the compiler output.
13561 if test "$p" = "conftest.$objext"; then
13562 pre_test_object_deps_done=yes
13563 continue
13564 fi
13565
13566 if test "$pre_test_object_deps_done" = no; then
13567 if test -z "$predep_objects_CXX"; then
13568 predep_objects_CXX="$p"
13569 else
13570 predep_objects_CXX="$predep_objects_CXX $p"
13571 fi
13572 else
13573 if test -z "$postdep_objects_CXX"; then
13574 postdep_objects_CXX="$p"
13575 else
13576 postdep_objects_CXX="$postdep_objects_CXX $p"
13577 fi
13578 fi
13579 ;;
13580
13581 *) ;; # Ignore the rest.
13582
13583 esac
13584 done
13585
13586 # Clean up.
13587 rm -f a.out a.exe
13588 else
13589 echo "libtool.m4: error: problem compiling CXX test program"
13590 fi
13591
13592 $RM -f confest.$objext
13593 CFLAGS=$_lt_libdeps_save_CFLAGS
13594
13595 # PORTME: override above test on systems where it is broken
13596 case $host_os in
13597 interix[3-9]*)
13598 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13599 # hack all around it, let's just trust "g++" to DTRT.
13600 predep_objects_CXX=
13601 postdep_objects_CXX=
13602 postdeps_CXX=
13603 ;;
13604
13605 linux*)
13606 case `$CC -V 2>&1 | sed 5q` in
13607 *Sun\ C*)
13608 # Sun C++ 5.9
13609
13610 # The more standards-conforming stlport4 library is
13611 # incompatible with the Cstd library. Avoid specifying
13612 # it if it's in CXXFLAGS. Ignore libCrun as
13613 # -library=stlport4 depends on it.
13614 case " $CXX $CXXFLAGS " in
13615 *" -library=stlport4 "*)
13616 solaris_use_stlport4=yes
13617 ;;
13618 esac
13619
13620 if test "$solaris_use_stlport4" != yes; then
13621 postdeps_CXX='-library=Cstd -library=Crun'
13622 fi
13623 ;;
13624 esac
13625 ;;
13626
13627 solaris*)
13628 case $cc_basename in
13629 CC* | sunCC*)
13630 # The more standards-conforming stlport4 library is
13631 # incompatible with the Cstd library. Avoid specifying
13632 # it if it's in CXXFLAGS. Ignore libCrun as
13633 # -library=stlport4 depends on it.
13634 case " $CXX $CXXFLAGS " in
13635 *" -library=stlport4 "*)
13636 solaris_use_stlport4=yes
13637 ;;
13638 esac
13639
13640 # Adding this requires a known-good setup of shared libraries for
13641 # Sun compiler versions before 5.6, else PIC objects from an old
13642 # archive will be linked into the output, leading to subtle bugs.
13643 if test "$solaris_use_stlport4" != yes; then
13644 postdeps_CXX='-library=Cstd -library=Crun'
13645 fi
13646 ;;
13647 esac
13648 ;;
13649 esac
13650
13651
13652 case " $postdeps_CXX " in
13653 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13654 esac
13655 compiler_lib_search_dirs_CXX=
13656 if test -n "${compiler_lib_search_path_CXX}"; then
13657 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13658 fi
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690 lt_prog_compiler_wl_CXX=
13691 lt_prog_compiler_pic_CXX=
13692 lt_prog_compiler_static_CXX=
13693
13694
13695 # C++ specific cases for pic, static, wl, etc.
13696 if test "$GXX" = yes; then
13697 lt_prog_compiler_wl_CXX='-Wl,'
13698 lt_prog_compiler_static_CXX='-static'
13699
13700 case $host_os in
13701 aix*)
13702 # All AIX code is PIC.
13703 if test "$host_cpu" = ia64; then
13704 # AIX 5 now supports IA64 processor
13705 lt_prog_compiler_static_CXX='-Bstatic'
13706 fi
13707 ;;
13708
13709 amigaos*)
13710 case $host_cpu in
13711 powerpc)
13712 # see comment about AmigaOS4 .so support
13713 lt_prog_compiler_pic_CXX='-fPIC'
13714 ;;
13715 m68k)
13716 # FIXME: we need at least 68020 code to build shared libraries, but
13717 # adding the `-m68020' flag to GCC prevents building anything better,
13718 # like `-m68040'.
13719 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13720 ;;
13721 esac
13722 ;;
13723
13724 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13725 # PIC is the default for these OSes.
13726 ;;
13727 mingw* | cygwin* | os2* | pw32* | cegcc*)
13728 # This hack is so that the source file can tell whether it is being
13729 # built for inclusion in a dll (and should export symbols for example).
13730 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13731 # (--disable-auto-import) libraries
13732 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13733 ;;
13734 darwin* | rhapsody*)
13735 # PIC is the default on this platform
13736 # Common symbols not allowed in MH_DYLIB files
13737 lt_prog_compiler_pic_CXX='-fno-common'
13738 ;;
13739 *djgpp*)
13740 # DJGPP does not support shared libraries at all
13741 lt_prog_compiler_pic_CXX=
13742 ;;
13743 haiku*)
13744 # PIC is the default for Haiku.
13745 # The "-static" flag exists, but is broken.
13746 lt_prog_compiler_static_CXX=
13747 ;;
13748 interix[3-9]*)
13749 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13750 # Instead, we relocate shared libraries at runtime.
13751 ;;
13752 sysv4*MP*)
13753 if test -d /usr/nec; then
13754 lt_prog_compiler_pic_CXX=-Kconform_pic
13755 fi
13756 ;;
13757 hpux*)
13758 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13759 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13760 # sets the default TLS model and affects inlining.
13761 case $host_cpu in
13762 hppa*64*)
13763 ;;
13764 *)
13765 lt_prog_compiler_pic_CXX='-fPIC'
13766 ;;
13767 esac
13768 ;;
13769 *qnx* | *nto*)
13770 # QNX uses GNU C++, but need to define -shared option too, otherwise
13771 # it will coredump.
13772 lt_prog_compiler_pic_CXX='-fPIC -shared'
13773 ;;
13774 *)
13775 lt_prog_compiler_pic_CXX='-fPIC'
13776 ;;
13777 esac
13778 else
13779 case $host_os in
13780 aix[4-9]*)
13781 # All AIX code is PIC.
13782 if test "$host_cpu" = ia64; then
13783 # AIX 5 now supports IA64 processor
13784 lt_prog_compiler_static_CXX='-Bstatic'
13785 else
13786 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13787 fi
13788 ;;
13789 chorus*)
13790 case $cc_basename in
13791 cxch68*)
13792 # Green Hills C++ Compiler
13793 # _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"
13794 ;;
13795 esac
13796 ;;
13797 mingw* | cygwin* | os2* | pw32* | cegcc*)
13798 # This hack is so that the source file can tell whether it is being
13799 # built for inclusion in a dll (and should export symbols for example).
13800 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13801 ;;
13802 dgux*)
13803 case $cc_basename in
13804 ec++*)
13805 lt_prog_compiler_pic_CXX='-KPIC'
13806 ;;
13807 ghcx*)
13808 # Green Hills C++ Compiler
13809 lt_prog_compiler_pic_CXX='-pic'
13810 ;;
13811 *)
13812 ;;
13813 esac
13814 ;;
13815 freebsd* | dragonfly*)
13816 # FreeBSD uses GNU C++
13817 ;;
13818 hpux9* | hpux10* | hpux11*)
13819 case $cc_basename in
13820 CC*)
13821 lt_prog_compiler_wl_CXX='-Wl,'
13822 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13823 if test "$host_cpu" != ia64; then
13824 lt_prog_compiler_pic_CXX='+Z'
13825 fi
13826 ;;
13827 aCC*)
13828 lt_prog_compiler_wl_CXX='-Wl,'
13829 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13830 case $host_cpu in
13831 hppa*64*|ia64*)
13832 # +Z the default
13833 ;;
13834 *)
13835 lt_prog_compiler_pic_CXX='+Z'
13836 ;;
13837 esac
13838 ;;
13839 *)
13840 ;;
13841 esac
13842 ;;
13843 interix*)
13844 # This is c89, which is MS Visual C++ (no shared libs)
13845 # Anyone wants to do a port?
13846 ;;
13847 irix5* | irix6* | nonstopux*)
13848 case $cc_basename in
13849 CC*)
13850 lt_prog_compiler_wl_CXX='-Wl,'
13851 lt_prog_compiler_static_CXX='-non_shared'
13852 # CC pic flag -KPIC is the default.
13853 ;;
13854 *)
13855 ;;
13856 esac
13857 ;;
13858 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13859 case $cc_basename in
13860 KCC*)
13861 # KAI C++ Compiler
13862 lt_prog_compiler_wl_CXX='--backend -Wl,'
13863 lt_prog_compiler_pic_CXX='-fPIC'
13864 ;;
13865 ecpc* )
13866 # old Intel C++ for x86_64 which still supported -KPIC.
13867 lt_prog_compiler_wl_CXX='-Wl,'
13868 lt_prog_compiler_pic_CXX='-KPIC'
13869 lt_prog_compiler_static_CXX='-static'
13870 ;;
13871 icpc* )
13872 # Intel C++, used to be incompatible with GCC.
13873 # ICC 10 doesn't accept -KPIC any more.
13874 lt_prog_compiler_wl_CXX='-Wl,'
13875 lt_prog_compiler_pic_CXX='-fPIC'
13876 lt_prog_compiler_static_CXX='-static'
13877 ;;
13878 pgCC* | pgcpp*)
13879 # Portland Group C++ compiler
13880 lt_prog_compiler_wl_CXX='-Wl,'
13881 lt_prog_compiler_pic_CXX='-fpic'
13882 lt_prog_compiler_static_CXX='-Bstatic'
13883 ;;
13884 cxx*)
13885 # Compaq C++
13886 # Make sure the PIC flag is empty. It appears that all Alpha
13887 # Linux and Compaq Tru64 Unix objects are PIC.
13888 lt_prog_compiler_pic_CXX=
13889 lt_prog_compiler_static_CXX='-non_shared'
13890 ;;
13891 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13892 # IBM XL 8.0, 9.0 on PPC and BlueGene
13893 lt_prog_compiler_wl_CXX='-Wl,'
13894 lt_prog_compiler_pic_CXX='-qpic'
13895 lt_prog_compiler_static_CXX='-qstaticlink'
13896 ;;
13897 *)
13898 case `$CC -V 2>&1 | sed 5q` in
13899 *Sun\ C*)
13900 # Sun C++ 5.9
13901 lt_prog_compiler_pic_CXX='-KPIC'
13902 lt_prog_compiler_static_CXX='-Bstatic'
13903 lt_prog_compiler_wl_CXX='-Qoption ld '
13904 ;;
13905 esac
13906 ;;
13907 esac
13908 ;;
13909 lynxos*)
13910 ;;
13911 m88k*)
13912 ;;
13913 mvs*)
13914 case $cc_basename in
13915 cxx*)
13916 lt_prog_compiler_pic_CXX='-W c,exportall'
13917 ;;
13918 *)
13919 ;;
13920 esac
13921 ;;
13922 netbsd* | netbsdelf*-gnu)
13923 ;;
13924 *qnx* | *nto*)
13925 # QNX uses GNU C++, but need to define -shared option too, otherwise
13926 # it will coredump.
13927 lt_prog_compiler_pic_CXX='-fPIC -shared'
13928 ;;
13929 osf3* | osf4* | osf5*)
13930 case $cc_basename in
13931 KCC*)
13932 lt_prog_compiler_wl_CXX='--backend -Wl,'
13933 ;;
13934 RCC*)
13935 # Rational C++ 2.4.1
13936 lt_prog_compiler_pic_CXX='-pic'
13937 ;;
13938 cxx*)
13939 # Digital/Compaq C++
13940 lt_prog_compiler_wl_CXX='-Wl,'
13941 # Make sure the PIC flag is empty. It appears that all Alpha
13942 # Linux and Compaq Tru64 Unix objects are PIC.
13943 lt_prog_compiler_pic_CXX=
13944 lt_prog_compiler_static_CXX='-non_shared'
13945 ;;
13946 *)
13947 ;;
13948 esac
13949 ;;
13950 psos*)
13951 ;;
13952 solaris*)
13953 case $cc_basename in
13954 CC* | sunCC*)
13955 # Sun C++ 4.2, 5.x and Centerline C++
13956 lt_prog_compiler_pic_CXX='-KPIC'
13957 lt_prog_compiler_static_CXX='-Bstatic'
13958 lt_prog_compiler_wl_CXX='-Qoption ld '
13959 ;;
13960 gcx*)
13961 # Green Hills C++ Compiler
13962 lt_prog_compiler_pic_CXX='-PIC'
13963 ;;
13964 *)
13965 ;;
13966 esac
13967 ;;
13968 sunos4*)
13969 case $cc_basename in
13970 CC*)
13971 # Sun C++ 4.x
13972 lt_prog_compiler_pic_CXX='-pic'
13973 lt_prog_compiler_static_CXX='-Bstatic'
13974 ;;
13975 lcc*)
13976 # Lucid
13977 lt_prog_compiler_pic_CXX='-pic'
13978 ;;
13979 *)
13980 ;;
13981 esac
13982 ;;
13983 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13984 case $cc_basename in
13985 CC*)
13986 lt_prog_compiler_wl_CXX='-Wl,'
13987 lt_prog_compiler_pic_CXX='-KPIC'
13988 lt_prog_compiler_static_CXX='-Bstatic'
13989 ;;
13990 esac
13991 ;;
13992 tandem*)
13993 case $cc_basename in
13994 NCC*)
13995 # NonStop-UX NCC 3.20
13996 lt_prog_compiler_pic_CXX='-KPIC'
13997 ;;
13998 *)
13999 ;;
14000 esac
14001 ;;
14002 vxworks*)
14003 ;;
14004 *)
14005 lt_prog_compiler_can_build_shared_CXX=no
14006 ;;
14007 esac
14008 fi
14009
14010 case $host_os in
14011 # For platforms which do not support PIC, -DPIC is meaningless:
14012 *djgpp*)
14013 lt_prog_compiler_pic_CXX=
14014 ;;
14015 *)
14016 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14017 ;;
14018 esac
14019
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14021 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14022 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14023 $as_echo_n "(cached) " >&6
14024 else
14025 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14026 fi
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14028 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14029 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14030
14031 #
14032 # Check to make sure the PIC flag actually works.
14033 #
14034 if test -n "$lt_prog_compiler_pic_CXX"; then
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14036 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14037 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14038 $as_echo_n "(cached) " >&6
14039 else
14040 lt_cv_prog_compiler_pic_works_CXX=no
14041 ac_outfile=conftest.$ac_objext
14042 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14043 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14044 # Insert the option either (1) after the last *FLAGS variable, or
14045 # (2) before a word containing "conftest.", or (3) at the end.
14046 # Note that $ac_compile itself does not contain backslashes and begins
14047 # with a dollar sign (not a hyphen), so the echo should work correctly.
14048 # The option is referenced via a variable to avoid confusing sed.
14049 lt_compile=`echo "$ac_compile" | $SED \
14050 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14051 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14052 -e 's:$: $lt_compiler_flag:'`
14053 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14054 (eval "$lt_compile" 2>conftest.err)
14055 ac_status=$?
14056 cat conftest.err >&5
14057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14058 if (exit $ac_status) && test -s "$ac_outfile"; then
14059 # The compiler can only warn and ignore the option if not recognized
14060 # So say no if there are warnings other than the usual output.
14061 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14062 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14063 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14064 lt_cv_prog_compiler_pic_works_CXX=yes
14065 fi
14066 fi
14067 $RM conftest*
14068
14069 fi
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14071 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14072
14073 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14074 case $lt_prog_compiler_pic_CXX in
14075 "" | " "*) ;;
14076 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14077 esac
14078 else
14079 lt_prog_compiler_pic_CXX=
14080 lt_prog_compiler_can_build_shared_CXX=no
14081 fi
14082
14083 fi
14084
14085
14086
14087
14088
14089 #
14090 # Check to make sure the static flag actually works.
14091 #
14092 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14094 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14095 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14096 $as_echo_n "(cached) " >&6
14097 else
14098 lt_cv_prog_compiler_static_works_CXX=no
14099 save_LDFLAGS="$LDFLAGS"
14100 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14101 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14102 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14103 # The linker can only warn and ignore the option if not recognized
14104 # So say no if there are warnings
14105 if test -s conftest.err; then
14106 # Append any errors to the config.log.
14107 cat conftest.err 1>&5
14108 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14109 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14110 if diff conftest.exp conftest.er2 >/dev/null; then
14111 lt_cv_prog_compiler_static_works_CXX=yes
14112 fi
14113 else
14114 lt_cv_prog_compiler_static_works_CXX=yes
14115 fi
14116 fi
14117 $RM -r conftest*
14118 LDFLAGS="$save_LDFLAGS"
14119
14120 fi
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14122 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14123
14124 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14125 :
14126 else
14127 lt_prog_compiler_static_CXX=
14128 fi
14129
14130
14131
14132
14133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14134 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14135 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14136 $as_echo_n "(cached) " >&6
14137 else
14138 lt_cv_prog_compiler_c_o_CXX=no
14139 $RM -r conftest 2>/dev/null
14140 mkdir conftest
14141 cd conftest
14142 mkdir out
14143 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14144
14145 lt_compiler_flag="-o out/conftest2.$ac_objext"
14146 # Insert the option either (1) after the last *FLAGS variable, or
14147 # (2) before a word containing "conftest.", or (3) at the end.
14148 # Note that $ac_compile itself does not contain backslashes and begins
14149 # with a dollar sign (not a hyphen), so the echo should work correctly.
14150 lt_compile=`echo "$ac_compile" | $SED \
14151 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14152 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14153 -e 's:$: $lt_compiler_flag:'`
14154 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14155 (eval "$lt_compile" 2>out/conftest.err)
14156 ac_status=$?
14157 cat out/conftest.err >&5
14158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14159 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14160 then
14161 # The compiler can only warn and ignore the option if not recognized
14162 # So say no if there are warnings
14163 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14164 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14165 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14166 lt_cv_prog_compiler_c_o_CXX=yes
14167 fi
14168 fi
14169 chmod u+w . 2>&5
14170 $RM conftest*
14171 # SGI C++ compiler will create directory out/ii_files/ for
14172 # template instantiation
14173 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14174 $RM out/* && rmdir out
14175 cd ..
14176 $RM -r conftest
14177 $RM conftest*
14178
14179 fi
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14181 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14182
14183
14184
14185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14186 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14187 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14188 $as_echo_n "(cached) " >&6
14189 else
14190 lt_cv_prog_compiler_c_o_CXX=no
14191 $RM -r conftest 2>/dev/null
14192 mkdir conftest
14193 cd conftest
14194 mkdir out
14195 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14196
14197 lt_compiler_flag="-o out/conftest2.$ac_objext"
14198 # Insert the option either (1) after the last *FLAGS variable, or
14199 # (2) before a word containing "conftest.", or (3) at the end.
14200 # Note that $ac_compile itself does not contain backslashes and begins
14201 # with a dollar sign (not a hyphen), so the echo should work correctly.
14202 lt_compile=`echo "$ac_compile" | $SED \
14203 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14204 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14205 -e 's:$: $lt_compiler_flag:'`
14206 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14207 (eval "$lt_compile" 2>out/conftest.err)
14208 ac_status=$?
14209 cat out/conftest.err >&5
14210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14212 then
14213 # The compiler can only warn and ignore the option if not recognized
14214 # So say no if there are warnings
14215 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14216 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14217 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14218 lt_cv_prog_compiler_c_o_CXX=yes
14219 fi
14220 fi
14221 chmod u+w . 2>&5
14222 $RM conftest*
14223 # SGI C++ compiler will create directory out/ii_files/ for
14224 # template instantiation
14225 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14226 $RM out/* && rmdir out
14227 cd ..
14228 $RM -r conftest
14229 $RM conftest*
14230
14231 fi
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14233 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14234
14235
14236
14237
14238 hard_links="nottested"
14239 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14240 # do not overwrite the value of need_locks provided by the user
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14242 $as_echo_n "checking if we can lock with hard links... " >&6; }
14243 hard_links=yes
14244 $RM conftest*
14245 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14246 touch conftest.a
14247 ln conftest.a conftest.b 2>&5 || hard_links=no
14248 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14250 $as_echo "$hard_links" >&6; }
14251 if test "$hard_links" = no; then
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14253 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14254 need_locks=warn
14255 fi
14256 else
14257 need_locks=no
14258 fi
14259
14260
14261
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14263 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14264
14265 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14266 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14267 case $host_os in
14268 aix[4-9]*)
14269 # If we're using GNU nm, then we don't want the "-C" option.
14270 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14271 # Also, AIX nm treats weak defined symbols like other global defined
14272 # symbols, whereas GNU nm marks them as "W".
14273 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14274 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14275 else
14276 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14277 fi
14278 ;;
14279 pw32*)
14280 export_symbols_cmds_CXX="$ltdll_cmds"
14281 ;;
14282 cygwin* | mingw* | cegcc*)
14283 case $cc_basename in
14284 cl*)
14285 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14286 ;;
14287 *)
14288 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'
14289 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14290 ;;
14291 esac
14292 ;;
14293 linux* | k*bsd*-gnu | gnu*)
14294 link_all_deplibs_CXX=no
14295 ;;
14296 *)
14297 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14298 ;;
14299 esac
14300
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14302 $as_echo "$ld_shlibs_CXX" >&6; }
14303 test "$ld_shlibs_CXX" = no && can_build_shared=no
14304
14305 with_gnu_ld_CXX=$with_gnu_ld
14306
14307
14308
14309
14310
14311
14312 #
14313 # Do we need to explicitly link libc?
14314 #
14315 case "x$archive_cmds_need_lc_CXX" in
14316 x|xyes)
14317 # Assume -lc should be added
14318 archive_cmds_need_lc_CXX=yes
14319
14320 if test "$enable_shared" = yes && test "$GCC" = yes; then
14321 case $archive_cmds_CXX in
14322 *'~'*)
14323 # FIXME: we may have to deal with multi-command sequences.
14324 ;;
14325 '$CC '*)
14326 # Test whether the compiler implicitly links with -lc since on some
14327 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14328 # to ld, don't add -lc before -lgcc.
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14330 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14331 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14332 $as_echo_n "(cached) " >&6
14333 else
14334 $RM conftest*
14335 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14336
14337 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14338 (eval $ac_compile) 2>&5
14339 ac_status=$?
14340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14341 test $ac_status = 0; } 2>conftest.err; then
14342 soname=conftest
14343 lib=conftest
14344 libobjs=conftest.$ac_objext
14345 deplibs=
14346 wl=$lt_prog_compiler_wl_CXX
14347 pic_flag=$lt_prog_compiler_pic_CXX
14348 compiler_flags=-v
14349 linker_flags=-v
14350 verstring=
14351 output_objdir=.
14352 libname=conftest
14353 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14354 allow_undefined_flag_CXX=
14355 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14356 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14357 ac_status=$?
14358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14359 test $ac_status = 0; }
14360 then
14361 lt_cv_archive_cmds_need_lc_CXX=no
14362 else
14363 lt_cv_archive_cmds_need_lc_CXX=yes
14364 fi
14365 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14366 else
14367 cat conftest.err 1>&5
14368 fi
14369 $RM conftest*
14370
14371 fi
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14373 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14374 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14375 ;;
14376 esac
14377 fi
14378 ;;
14379 esac
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402
14403
14404
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14443 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14444
14445 library_names_spec=
14446 libname_spec='lib$name'
14447 soname_spec=
14448 shrext_cmds=".so"
14449 postinstall_cmds=
14450 postuninstall_cmds=
14451 finish_cmds=
14452 finish_eval=
14453 shlibpath_var=
14454 shlibpath_overrides_runpath=unknown
14455 version_type=none
14456 dynamic_linker="$host_os ld.so"
14457 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14458 need_lib_prefix=unknown
14459 hardcode_into_libs=no
14460
14461 # when you set need_version to no, make sure it does not cause -set_version
14462 # flags to be left without arguments
14463 need_version=unknown
14464
14465 case $host_os in
14466 aix3*)
14467 version_type=linux # correct to gnu/linux during the next big refactor
14468 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14469 shlibpath_var=LIBPATH
14470
14471 # AIX 3 has no versioning support, so we append a major version to the name.
14472 soname_spec='${libname}${release}${shared_ext}$major'
14473 ;;
14474
14475 aix[4-9]*)
14476 version_type=linux # correct to gnu/linux during the next big refactor
14477 need_lib_prefix=no
14478 need_version=no
14479 hardcode_into_libs=yes
14480 if test "$host_cpu" = ia64; then
14481 # AIX 5 supports IA64
14482 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14483 shlibpath_var=LD_LIBRARY_PATH
14484 else
14485 # With GCC up to 2.95.x, collect2 would create an import file
14486 # for dependence libraries. The import file would start with
14487 # the line `#! .'. This would cause the generated library to
14488 # depend on `.', always an invalid library. This was fixed in
14489 # development snapshots of GCC prior to 3.0.
14490 case $host_os in
14491 aix4 | aix4.[01] | aix4.[01].*)
14492 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14493 echo ' yes '
14494 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14495 :
14496 else
14497 can_build_shared=no
14498 fi
14499 ;;
14500 esac
14501 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14502 # soname into executable. Probably we can add versioning support to
14503 # collect2, so additional links can be useful in future.
14504 if test "$aix_use_runtimelinking" = yes; then
14505 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14506 # instead of lib<name>.a to let people know that these are not
14507 # typical AIX shared libraries.
14508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14509 else
14510 # We preserve .a as extension for shared libraries through AIX4.2
14511 # and later when we are not doing run time linking.
14512 library_names_spec='${libname}${release}.a $libname.a'
14513 soname_spec='${libname}${release}${shared_ext}$major'
14514 fi
14515 shlibpath_var=LIBPATH
14516 fi
14517 ;;
14518
14519 amigaos*)
14520 case $host_cpu in
14521 powerpc)
14522 # Since July 2007 AmigaOS4 officially supports .so libraries.
14523 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14525 ;;
14526 m68k)
14527 library_names_spec='$libname.ixlibrary $libname.a'
14528 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14529 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14530 ;;
14531 esac
14532 ;;
14533
14534 beos*)
14535 library_names_spec='${libname}${shared_ext}'
14536 dynamic_linker="$host_os ld.so"
14537 shlibpath_var=LIBRARY_PATH
14538 ;;
14539
14540 bsdi[45]*)
14541 version_type=linux # correct to gnu/linux during the next big refactor
14542 need_version=no
14543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14544 soname_spec='${libname}${release}${shared_ext}$major'
14545 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14546 shlibpath_var=LD_LIBRARY_PATH
14547 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14548 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14549 # the default ld.so.conf also contains /usr/contrib/lib and
14550 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14551 # libtool to hard-code these into programs
14552 ;;
14553
14554 cygwin* | mingw* | pw32* | cegcc*)
14555 version_type=windows
14556 shrext_cmds=".dll"
14557 need_version=no
14558 need_lib_prefix=no
14559
14560 case $GCC,$cc_basename in
14561 yes,*)
14562 # gcc
14563 library_names_spec='$libname.dll.a'
14564 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14565 postinstall_cmds='base_file=`basename \${file}`~
14566 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14567 dldir=$destdir/`dirname \$dlpath`~
14568 test -d \$dldir || mkdir -p \$dldir~
14569 $install_prog $dir/$dlname \$dldir/$dlname~
14570 chmod a+x \$dldir/$dlname~
14571 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14572 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14573 fi'
14574 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14575 dlpath=$dir/\$dldll~
14576 $RM \$dlpath'
14577 shlibpath_overrides_runpath=yes
14578
14579 case $host_os in
14580 cygwin*)
14581 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14582 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14583
14584 ;;
14585 mingw* | cegcc*)
14586 # MinGW DLLs use traditional 'lib' prefix
14587 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14588 ;;
14589 pw32*)
14590 # pw32 DLLs use 'pw' prefix rather than 'lib'
14591 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14592 ;;
14593 esac
14594 dynamic_linker='Win32 ld.exe'
14595 ;;
14596
14597 *,cl*)
14598 # Native MSVC
14599 libname_spec='$name'
14600 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14601 library_names_spec='${libname}.dll.lib'
14602
14603 case $build_os in
14604 mingw*)
14605 sys_lib_search_path_spec=
14606 lt_save_ifs=$IFS
14607 IFS=';'
14608 for lt_path in $LIB
14609 do
14610 IFS=$lt_save_ifs
14611 # Let DOS variable expansion print the short 8.3 style file name.
14612 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14613 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14614 done
14615 IFS=$lt_save_ifs
14616 # Convert to MSYS style.
14617 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14618 ;;
14619 cygwin*)
14620 # Convert to unix form, then to dos form, then back to unix form
14621 # but this time dos style (no spaces!) so that the unix form looks
14622 # like /cygdrive/c/PROGRA~1:/cygdr...
14623 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14624 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14625 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14626 ;;
14627 *)
14628 sys_lib_search_path_spec="$LIB"
14629 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14630 # It is most probably a Windows format PATH.
14631 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14632 else
14633 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14634 fi
14635 # FIXME: find the short name or the path components, as spaces are
14636 # common. (e.g. "Program Files" -> "PROGRA~1")
14637 ;;
14638 esac
14639
14640 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14641 postinstall_cmds='base_file=`basename \${file}`~
14642 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14643 dldir=$destdir/`dirname \$dlpath`~
14644 test -d \$dldir || mkdir -p \$dldir~
14645 $install_prog $dir/$dlname \$dldir/$dlname'
14646 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14647 dlpath=$dir/\$dldll~
14648 $RM \$dlpath'
14649 shlibpath_overrides_runpath=yes
14650 dynamic_linker='Win32 link.exe'
14651 ;;
14652
14653 *)
14654 # Assume MSVC wrapper
14655 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14656 dynamic_linker='Win32 ld.exe'
14657 ;;
14658 esac
14659 # FIXME: first we should search . and the directory the executable is in
14660 shlibpath_var=PATH
14661 ;;
14662
14663 darwin* | rhapsody*)
14664 dynamic_linker="$host_os dyld"
14665 version_type=darwin
14666 need_lib_prefix=no
14667 need_version=no
14668 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14669 soname_spec='${libname}${release}${major}$shared_ext'
14670 shlibpath_overrides_runpath=yes
14671 shlibpath_var=DYLD_LIBRARY_PATH
14672 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14673
14674 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14675 ;;
14676
14677 dgux*)
14678 version_type=linux # correct to gnu/linux during the next big refactor
14679 need_lib_prefix=no
14680 need_version=no
14681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14682 soname_spec='${libname}${release}${shared_ext}$major'
14683 shlibpath_var=LD_LIBRARY_PATH
14684 ;;
14685
14686 freebsd* | dragonfly*)
14687 # DragonFly does not have aout. When/if they implement a new
14688 # versioning mechanism, adjust this.
14689 if test -x /usr/bin/objformat; then
14690 objformat=`/usr/bin/objformat`
14691 else
14692 case $host_os in
14693 freebsd[23].*) objformat=aout ;;
14694 *) objformat=elf ;;
14695 esac
14696 fi
14697 version_type=freebsd-$objformat
14698 case $version_type in
14699 freebsd-elf*)
14700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14701 need_version=no
14702 need_lib_prefix=no
14703 ;;
14704 freebsd-*)
14705 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14706 need_version=yes
14707 ;;
14708 esac
14709 shlibpath_var=LD_LIBRARY_PATH
14710 case $host_os in
14711 freebsd2.*)
14712 shlibpath_overrides_runpath=yes
14713 ;;
14714 freebsd3.[01]* | freebsdelf3.[01]*)
14715 shlibpath_overrides_runpath=yes
14716 hardcode_into_libs=yes
14717 ;;
14718 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14719 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14720 shlibpath_overrides_runpath=no
14721 hardcode_into_libs=yes
14722 ;;
14723 *) # from 4.6 on, and DragonFly
14724 shlibpath_overrides_runpath=yes
14725 hardcode_into_libs=yes
14726 ;;
14727 esac
14728 ;;
14729
14730 haiku*)
14731 version_type=linux # correct to gnu/linux during the next big refactor
14732 need_lib_prefix=no
14733 need_version=no
14734 dynamic_linker="$host_os runtime_loader"
14735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14736 soname_spec='${libname}${release}${shared_ext}$major'
14737 shlibpath_var=LIBRARY_PATH
14738 shlibpath_overrides_runpath=yes
14739 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14740 hardcode_into_libs=yes
14741 ;;
14742
14743 hpux9* | hpux10* | hpux11*)
14744 # Give a soname corresponding to the major version so that dld.sl refuses to
14745 # link against other versions.
14746 version_type=sunos
14747 need_lib_prefix=no
14748 need_version=no
14749 case $host_cpu in
14750 ia64*)
14751 shrext_cmds='.so'
14752 hardcode_into_libs=yes
14753 dynamic_linker="$host_os dld.so"
14754 shlibpath_var=LD_LIBRARY_PATH
14755 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14757 soname_spec='${libname}${release}${shared_ext}$major'
14758 if test "X$HPUX_IA64_MODE" = X32; then
14759 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14760 else
14761 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14762 fi
14763 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14764 ;;
14765 hppa*64*)
14766 shrext_cmds='.sl'
14767 hardcode_into_libs=yes
14768 dynamic_linker="$host_os dld.sl"
14769 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14770 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14772 soname_spec='${libname}${release}${shared_ext}$major'
14773 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14774 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14775 ;;
14776 *)
14777 shrext_cmds='.sl'
14778 dynamic_linker="$host_os dld.sl"
14779 shlibpath_var=SHLIB_PATH
14780 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14782 soname_spec='${libname}${release}${shared_ext}$major'
14783 ;;
14784 esac
14785 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14786 postinstall_cmds='chmod 555 $lib'
14787 # or fails outright, so override atomically:
14788 install_override_mode=555
14789 ;;
14790
14791 interix[3-9]*)
14792 version_type=linux # correct to gnu/linux during the next big refactor
14793 need_lib_prefix=no
14794 need_version=no
14795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14796 soname_spec='${libname}${release}${shared_ext}$major'
14797 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14798 shlibpath_var=LD_LIBRARY_PATH
14799 shlibpath_overrides_runpath=no
14800 hardcode_into_libs=yes
14801 ;;
14802
14803 irix5* | irix6* | nonstopux*)
14804 case $host_os in
14805 nonstopux*) version_type=nonstopux ;;
14806 *)
14807 if test "$lt_cv_prog_gnu_ld" = yes; then
14808 version_type=linux # correct to gnu/linux during the next big refactor
14809 else
14810 version_type=irix
14811 fi ;;
14812 esac
14813 need_lib_prefix=no
14814 need_version=no
14815 soname_spec='${libname}${release}${shared_ext}$major'
14816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14817 case $host_os in
14818 irix5* | nonstopux*)
14819 libsuff= shlibsuff=
14820 ;;
14821 *)
14822 case $LD in # libtool.m4 will add one of these switches to LD
14823 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14824 libsuff= shlibsuff= libmagic=32-bit;;
14825 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14826 libsuff=32 shlibsuff=N32 libmagic=N32;;
14827 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14828 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14829 *) libsuff= shlibsuff= libmagic=never-match;;
14830 esac
14831 ;;
14832 esac
14833 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14834 shlibpath_overrides_runpath=no
14835 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14836 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14837 hardcode_into_libs=yes
14838 ;;
14839
14840 # No shared lib support for Linux oldld, aout, or coff.
14841 linux*oldld* | linux*aout* | linux*coff*)
14842 dynamic_linker=no
14843 ;;
14844
14845 # This must be glibc/ELF.
14846 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14847 version_type=linux # correct to gnu/linux during the next big refactor
14848 need_lib_prefix=no
14849 need_version=no
14850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14851 soname_spec='${libname}${release}${shared_ext}$major'
14852 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14853 shlibpath_var=LD_LIBRARY_PATH
14854 shlibpath_overrides_runpath=no
14855
14856 # Some binutils ld are patched to set DT_RUNPATH
14857 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14858 $as_echo_n "(cached) " >&6
14859 else
14860 lt_cv_shlibpath_overrides_runpath=no
14861 save_LDFLAGS=$LDFLAGS
14862 save_libdir=$libdir
14863 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14864 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14866 /* end confdefs.h. */
14867
14868 int
14869 main ()
14870 {
14871
14872 ;
14873 return 0;
14874 }
14875 _ACEOF
14876 if ac_fn_cxx_try_link "$LINENO"; then :
14877 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14878 lt_cv_shlibpath_overrides_runpath=yes
14879 fi
14880 fi
14881 rm -f core conftest.err conftest.$ac_objext \
14882 conftest$ac_exeext conftest.$ac_ext
14883 LDFLAGS=$save_LDFLAGS
14884 libdir=$save_libdir
14885
14886 fi
14887
14888 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14889
14890 # This implies no fast_install, which is unacceptable.
14891 # Some rework will be needed to allow for fast_install
14892 # before this can be enabled.
14893 hardcode_into_libs=yes
14894
14895 # Append ld.so.conf contents to the search path
14896 if test -f /etc/ld.so.conf; then
14897 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' ' '`
14898 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14899 fi
14900
14901 # We used to test for /lib/ld.so.1 and disable shared libraries on
14902 # powerpc, because MkLinux only supported shared libraries with the
14903 # GNU dynamic linker. Since this was broken with cross compilers,
14904 # most powerpc-linux boxes support dynamic linking these days and
14905 # people can always --disable-shared, the test was removed, and we
14906 # assume the GNU/Linux dynamic linker is in use.
14907 dynamic_linker='GNU/Linux ld.so'
14908 ;;
14909
14910 netbsdelf*-gnu)
14911 version_type=linux
14912 need_lib_prefix=no
14913 need_version=no
14914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14915 soname_spec='${libname}${release}${shared_ext}$major'
14916 shlibpath_var=LD_LIBRARY_PATH
14917 shlibpath_overrides_runpath=no
14918 hardcode_into_libs=yes
14919 dynamic_linker='NetBSD ld.elf_so'
14920 ;;
14921
14922 netbsd*)
14923 version_type=sunos
14924 need_lib_prefix=no
14925 need_version=no
14926 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14928 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14929 dynamic_linker='NetBSD (a.out) ld.so'
14930 else
14931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14932 soname_spec='${libname}${release}${shared_ext}$major'
14933 dynamic_linker='NetBSD ld.elf_so'
14934 fi
14935 shlibpath_var=LD_LIBRARY_PATH
14936 shlibpath_overrides_runpath=yes
14937 hardcode_into_libs=yes
14938 ;;
14939
14940 newsos6)
14941 version_type=linux # correct to gnu/linux during the next big refactor
14942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14943 shlibpath_var=LD_LIBRARY_PATH
14944 shlibpath_overrides_runpath=yes
14945 ;;
14946
14947 *nto* | *qnx*)
14948 version_type=qnx
14949 need_lib_prefix=no
14950 need_version=no
14951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14952 soname_spec='${libname}${release}${shared_ext}$major'
14953 shlibpath_var=LD_LIBRARY_PATH
14954 shlibpath_overrides_runpath=no
14955 hardcode_into_libs=yes
14956 dynamic_linker='ldqnx.so'
14957 ;;
14958
14959 openbsd*)
14960 version_type=sunos
14961 sys_lib_dlsearch_path_spec="/usr/lib"
14962 need_lib_prefix=no
14963 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14964 case $host_os in
14965 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14966 *) need_version=no ;;
14967 esac
14968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14969 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14970 shlibpath_var=LD_LIBRARY_PATH
14971 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14972 case $host_os in
14973 openbsd2.[89] | openbsd2.[89].*)
14974 shlibpath_overrides_runpath=no
14975 ;;
14976 *)
14977 shlibpath_overrides_runpath=yes
14978 ;;
14979 esac
14980 else
14981 shlibpath_overrides_runpath=yes
14982 fi
14983 ;;
14984
14985 os2*)
14986 libname_spec='$name'
14987 shrext_cmds=".dll"
14988 need_lib_prefix=no
14989 library_names_spec='$libname${shared_ext} $libname.a'
14990 dynamic_linker='OS/2 ld.exe'
14991 shlibpath_var=LIBPATH
14992 ;;
14993
14994 osf3* | osf4* | osf5*)
14995 version_type=osf
14996 need_lib_prefix=no
14997 need_version=no
14998 soname_spec='${libname}${release}${shared_ext}$major'
14999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15000 shlibpath_var=LD_LIBRARY_PATH
15001 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15002 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15003 ;;
15004
15005 rdos*)
15006 dynamic_linker=no
15007 ;;
15008
15009 solaris*)
15010 version_type=linux # correct to gnu/linux during the next big refactor
15011 need_lib_prefix=no
15012 need_version=no
15013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15014 soname_spec='${libname}${release}${shared_ext}$major'
15015 shlibpath_var=LD_LIBRARY_PATH
15016 shlibpath_overrides_runpath=yes
15017 hardcode_into_libs=yes
15018 # ldd complains unless libraries are executable
15019 postinstall_cmds='chmod +x $lib'
15020 ;;
15021
15022 sunos4*)
15023 version_type=sunos
15024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15025 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15026 shlibpath_var=LD_LIBRARY_PATH
15027 shlibpath_overrides_runpath=yes
15028 if test "$with_gnu_ld" = yes; then
15029 need_lib_prefix=no
15030 fi
15031 need_version=yes
15032 ;;
15033
15034 sysv4 | sysv4.3*)
15035 version_type=linux # correct to gnu/linux during the next big refactor
15036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15037 soname_spec='${libname}${release}${shared_ext}$major'
15038 shlibpath_var=LD_LIBRARY_PATH
15039 case $host_vendor in
15040 sni)
15041 shlibpath_overrides_runpath=no
15042 need_lib_prefix=no
15043 runpath_var=LD_RUN_PATH
15044 ;;
15045 siemens)
15046 need_lib_prefix=no
15047 ;;
15048 motorola)
15049 need_lib_prefix=no
15050 need_version=no
15051 shlibpath_overrides_runpath=no
15052 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15053 ;;
15054 esac
15055 ;;
15056
15057 sysv4*MP*)
15058 if test -d /usr/nec ;then
15059 version_type=linux # correct to gnu/linux during the next big refactor
15060 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15061 soname_spec='$libname${shared_ext}.$major'
15062 shlibpath_var=LD_LIBRARY_PATH
15063 fi
15064 ;;
15065
15066 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15067 version_type=freebsd-elf
15068 need_lib_prefix=no
15069 need_version=no
15070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15071 soname_spec='${libname}${release}${shared_ext}$major'
15072 shlibpath_var=LD_LIBRARY_PATH
15073 shlibpath_overrides_runpath=yes
15074 hardcode_into_libs=yes
15075 if test "$with_gnu_ld" = yes; then
15076 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15077 else
15078 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15079 case $host_os in
15080 sco3.2v5*)
15081 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15082 ;;
15083 esac
15084 fi
15085 sys_lib_dlsearch_path_spec='/usr/lib'
15086 ;;
15087
15088 tpf*)
15089 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15090 version_type=linux # correct to gnu/linux during the next big refactor
15091 need_lib_prefix=no
15092 need_version=no
15093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15094 shlibpath_var=LD_LIBRARY_PATH
15095 shlibpath_overrides_runpath=no
15096 hardcode_into_libs=yes
15097 ;;
15098
15099 uts4*)
15100 version_type=linux # correct to gnu/linux during the next big refactor
15101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15102 soname_spec='${libname}${release}${shared_ext}$major'
15103 shlibpath_var=LD_LIBRARY_PATH
15104 ;;
15105
15106 *)
15107 dynamic_linker=no
15108 ;;
15109 esac
15110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15111 $as_echo "$dynamic_linker" >&6; }
15112 test "$dynamic_linker" = no && can_build_shared=no
15113
15114 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15115 if test "$GCC" = yes; then
15116 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15117 fi
15118
15119 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15120 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15121 fi
15122 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15123 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15124 fi
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15164 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15165 hardcode_action_CXX=
15166 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15167 test -n "$runpath_var_CXX" ||
15168 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15169
15170 # We can hardcode non-existent directories.
15171 if test "$hardcode_direct_CXX" != no &&
15172 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15173 # have to relink, otherwise we might link with an installed library
15174 # when we should be linking with a yet-to-be-installed one
15175 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15176 test "$hardcode_minus_L_CXX" != no; then
15177 # Linking always hardcodes the temporary library directory.
15178 hardcode_action_CXX=relink
15179 else
15180 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15181 hardcode_action_CXX=immediate
15182 fi
15183 else
15184 # We cannot hardcode anything, or else we can only hardcode existing
15185 # directories.
15186 hardcode_action_CXX=unsupported
15187 fi
15188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15189 $as_echo "$hardcode_action_CXX" >&6; }
15190
15191 if test "$hardcode_action_CXX" = relink ||
15192 test "$inherit_rpath_CXX" = yes; then
15193 # Fast installation is not supported
15194 enable_fast_install=no
15195 elif test "$shlibpath_overrides_runpath" = yes ||
15196 test "$enable_shared" = no; then
15197 # Fast installation is not necessary
15198 enable_fast_install=needless
15199 fi
15200
15201
15202
15203
15204
15205
15206
15207 fi # test -n "$compiler"
15208
15209 CC=$lt_save_CC
15210 CFLAGS=$lt_save_CFLAGS
15211 LDCXX=$LD
15212 LD=$lt_save_LD
15213 GCC=$lt_save_GCC
15214 with_gnu_ld=$lt_save_with_gnu_ld
15215 lt_cv_path_LDCXX=$lt_cv_path_LD
15216 lt_cv_path_LD=$lt_save_path_LD
15217 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15218 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15219 fi # test "$_lt_caught_CXX_error" != yes
15220
15221 ac_ext=c
15222 ac_cpp='$CPP $CPPFLAGS'
15223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241 ac_config_commands="$ac_config_commands libtool"
15242
15243
15244
15245
15246 # Only expand once:
15247
15248
15249
15250 # Checks for libraries.
15251
15252 # Checks for header files.
15253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15254 $as_echo_n "checking for ANSI C header files... " >&6; }
15255 if ${ac_cv_header_stdc+:} false; then :
15256 $as_echo_n "(cached) " >&6
15257 else
15258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15259 /* end confdefs.h. */
15260 #include <stdlib.h>
15261 #include <stdarg.h>
15262 #include <string.h>
15263 #include <float.h>
15264
15265 int
15266 main ()
15267 {
15268
15269 ;
15270 return 0;
15271 }
15272 _ACEOF
15273 if ac_fn_c_try_compile "$LINENO"; then :
15274 ac_cv_header_stdc=yes
15275 else
15276 ac_cv_header_stdc=no
15277 fi
15278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15279
15280 if test $ac_cv_header_stdc = yes; then
15281 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15283 /* end confdefs.h. */
15284 #include <string.h>
15285
15286 _ACEOF
15287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15288 $EGREP "memchr" >/dev/null 2>&1; then :
15289
15290 else
15291 ac_cv_header_stdc=no
15292 fi
15293 rm -f conftest*
15294
15295 fi
15296
15297 if test $ac_cv_header_stdc = yes; then
15298 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15300 /* end confdefs.h. */
15301 #include <stdlib.h>
15302
15303 _ACEOF
15304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15305 $EGREP "free" >/dev/null 2>&1; then :
15306
15307 else
15308 ac_cv_header_stdc=no
15309 fi
15310 rm -f conftest*
15311
15312 fi
15313
15314 if test $ac_cv_header_stdc = yes; then
15315 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15316 if test "$cross_compiling" = yes; then :
15317 :
15318 else
15319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15320 /* end confdefs.h. */
15321 #include <ctype.h>
15322 #include <stdlib.h>
15323 #if ((' ' & 0x0FF) == 0x020)
15324 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15325 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15326 #else
15327 # define ISLOWER(c) \
15328 (('a' <= (c) && (c) <= 'i') \
15329 || ('j' <= (c) && (c) <= 'r') \
15330 || ('s' <= (c) && (c) <= 'z'))
15331 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15332 #endif
15333
15334 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15335 int
15336 main ()
15337 {
15338 int i;
15339 for (i = 0; i < 256; i++)
15340 if (XOR (islower (i), ISLOWER (i))
15341 || toupper (i) != TOUPPER (i))
15342 return 2;
15343 return 0;
15344 }
15345 _ACEOF
15346 if ac_fn_c_try_run "$LINENO"; then :
15347
15348 else
15349 ac_cv_header_stdc=no
15350 fi
15351 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15352 conftest.$ac_objext conftest.beam conftest.$ac_ext
15353 fi
15354
15355 fi
15356 fi
15357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15358 $as_echo "$ac_cv_header_stdc" >&6; }
15359 if test $ac_cv_header_stdc = yes; then
15360
15361 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15362
15363 fi
15364
15365 for ac_header in stdlib.h sys/time.h
15366 do :
15367 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15368 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15369 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15370 cat >>confdefs.h <<_ACEOF
15371 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15372 _ACEOF
15373
15374 fi
15375
15376 done
15377
15378
15379 # Checks for typedefs, structures, and compiler characteristics.
15380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
15381 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
15382 if ${ac_cv_header_stdbool_h+:} false; then :
15383 $as_echo_n "(cached) " >&6
15384 else
15385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15386 /* end confdefs.h. */
15387
15388 #include <stdbool.h>
15389 #ifndef bool
15390 "error: bool is not defined"
15391 #endif
15392 #ifndef false
15393 "error: false is not defined"
15394 #endif
15395 #if false
15396 "error: false is not 0"
15397 #endif
15398 #ifndef true
15399 "error: true is not defined"
15400 #endif
15401 #if true != 1
15402 "error: true is not 1"
15403 #endif
15404 #ifndef __bool_true_false_are_defined
15405 "error: __bool_true_false_are_defined is not defined"
15406 #endif
15407
15408 struct s { _Bool s: 1; _Bool t; } s;
15409
15410 char a[true == 1 ? 1 : -1];
15411 char b[false == 0 ? 1 : -1];
15412 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
15413 char d[(bool) 0.5 == true ? 1 : -1];
15414 /* See body of main program for 'e'. */
15415 char f[(_Bool) 0.0 == false ? 1 : -1];
15416 char g[true];
15417 char h[sizeof (_Bool)];
15418 char i[sizeof s.t];
15419 enum { j = false, k = true, l = false * true, m = true * 256 };
15420 /* The following fails for
15421 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
15422 _Bool n[m];
15423 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
15424 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
15425 /* Catch a bug in an HP-UX C compiler. See
15426 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
15427 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
15428 */
15429 _Bool q = true;
15430 _Bool *pq = &q;
15431
15432 int
15433 main ()
15434 {
15435
15436 bool e = &s;
15437 *pq |= q;
15438 *pq |= ! q;
15439 /* Refer to every declared value, to avoid compiler optimizations. */
15440 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
15441 + !m + !n + !o + !p + !q + !pq);
15442
15443 ;
15444 return 0;
15445 }
15446 _ACEOF
15447 if ac_fn_c_try_compile "$LINENO"; then :
15448 ac_cv_header_stdbool_h=yes
15449 else
15450 ac_cv_header_stdbool_h=no
15451 fi
15452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15453 fi
15454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
15455 $as_echo "$ac_cv_header_stdbool_h" >&6; }
15456 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
15457 if test "x$ac_cv_type__Bool" = xyes; then :
15458
15459 cat >>confdefs.h <<_ACEOF
15460 #define HAVE__BOOL 1
15461 _ACEOF
15462
15463
15464 fi
15465
15466
15467 if test $ac_cv_header_stdbool_h = yes; then
15468
15469 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
15470
15471 fi
15472
15473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
15474 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
15475 if ${ac_cv_c_const+:} false; then :
15476 $as_echo_n "(cached) " >&6
15477 else
15478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15479 /* end confdefs.h. */
15480
15481 int
15482 main ()
15483 {
15484
15485 #ifndef __cplusplus
15486 /* Ultrix mips cc rejects this sort of thing. */
15487 typedef int charset[2];
15488 const charset cs = { 0, 0 };
15489 /* SunOS 4.1.1 cc rejects this. */
15490 char const *const *pcpcc;
15491 char **ppc;
15492 /* NEC SVR4.0.2 mips cc rejects this. */
15493 struct point {int x, y;};
15494 static struct point const zero = {0,0};
15495 /* AIX XL C 1.02.0.0 rejects this.
15496 It does not let you subtract one const X* pointer from another in
15497 an arm of an if-expression whose if-part is not a constant
15498 expression */
15499 const char *g = "string";
15500 pcpcc = &g + (g ? g-g : 0);
15501 /* HPUX 7.0 cc rejects these. */
15502 ++pcpcc;
15503 ppc = (char**) pcpcc;
15504 pcpcc = (char const *const *) ppc;
15505 { /* SCO 3.2v4 cc rejects this sort of thing. */
15506 char tx;
15507 char *t = &tx;
15508 char const *s = 0 ? (char *) 0 : (char const *) 0;
15509
15510 *t++ = 0;
15511 if (s) return 0;
15512 }
15513 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15514 int x[] = {25, 17};
15515 const int *foo = &x[0];
15516 ++foo;
15517 }
15518 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15519 typedef const int *iptr;
15520 iptr p = 0;
15521 ++p;
15522 }
15523 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
15524 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15525 struct s { int j; const int *ap[3]; } bx;
15526 struct s *b = &bx; b->j = 5;
15527 }
15528 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15529 const int foo = 10;
15530 if (!foo) return 0;
15531 }
15532 return !cs[0] && !zero.x;
15533 #endif
15534
15535 ;
15536 return 0;
15537 }
15538 _ACEOF
15539 if ac_fn_c_try_compile "$LINENO"; then :
15540 ac_cv_c_const=yes
15541 else
15542 ac_cv_c_const=no
15543 fi
15544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15545 fi
15546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
15547 $as_echo "$ac_cv_c_const" >&6; }
15548 if test $ac_cv_c_const = no; then
15549
15550 $as_echo "#define const /**/" >>confdefs.h
15551
15552 fi
15553
15554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15555 $as_echo_n "checking for inline... " >&6; }
15556 if ${ac_cv_c_inline+:} false; then :
15557 $as_echo_n "(cached) " >&6
15558 else
15559 ac_cv_c_inline=no
15560 for ac_kw in inline __inline__ __inline; do
15561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15562 /* end confdefs.h. */
15563 #ifndef __cplusplus
15564 typedef int foo_t;
15565 static $ac_kw foo_t static_foo () {return 0; }
15566 $ac_kw foo_t foo () {return 0; }
15567 #endif
15568
15569 _ACEOF
15570 if ac_fn_c_try_compile "$LINENO"; then :
15571 ac_cv_c_inline=$ac_kw
15572 fi
15573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15574 test "$ac_cv_c_inline" != no && break
15575 done
15576
15577 fi
15578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15579 $as_echo "$ac_cv_c_inline" >&6; }
15580
15581 case $ac_cv_c_inline in
15582 inline | yes) ;;
15583 *)
15584 case $ac_cv_c_inline in
15585 no) ac_val=;;
15586 *) ac_val=$ac_cv_c_inline;;
15587 esac
15588 cat >>confdefs.h <<_ACEOF
15589 #ifndef __cplusplus
15590 #define inline $ac_val
15591 #endif
15592 _ACEOF
15593 ;;
15594 esac
15595
15596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
15597 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
15598 if ${ac_cv_header_time+:} false; then :
15599 $as_echo_n "(cached) " >&6
15600 else
15601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15602 /* end confdefs.h. */
15603 #include <sys/types.h>
15604 #include <sys/time.h>
15605 #include <time.h>
15606
15607 int
15608 main ()
15609 {
15610 if ((struct tm *) 0)
15611 return 0;
15612 ;
15613 return 0;
15614 }
15615 _ACEOF
15616 if ac_fn_c_try_compile "$LINENO"; then :
15617 ac_cv_header_time=yes
15618 else
15619 ac_cv_header_time=no
15620 fi
15621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15622 fi
15623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
15624 $as_echo "$ac_cv_header_time" >&6; }
15625 if test $ac_cv_header_time = yes; then
15626
15627 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
15628
15629 fi
15630
15631
15632 # Checks for library functions.
15633 for ac_func in gettimeofday
15634 do :
15635 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
15636 if test "x$ac_cv_func_gettimeofday" = xyes; then :
15637 cat >>confdefs.h <<_ACEOF
15638 #define HAVE_GETTIMEOFDAY 1
15639 _ACEOF
15640
15641 fi
15642 done
15643
15644
15645 ac_config_files="$ac_config_files Makefile qqwing.pc"
15646
15647 cat >confcache <<\_ACEOF
15648 # This file is a shell script that caches the results of configure
15649 # tests run on this system so they can be shared between configure
15650 # scripts and configure runs, see configure's option --config-cache.
15651 # It is not useful on other systems. If it contains results you don't
15652 # want to keep, you may remove or edit it.
15653 #
15654 # config.status only pays attention to the cache file if you give it
15655 # the --recheck option to rerun configure.
15656 #
15657 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15658 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15659 # following values.
15660
15661 _ACEOF
15662
15663 # The following way of writing the cache mishandles newlines in values,
15664 # but we know of no workaround that is simple, portable, and efficient.
15665 # So, we kill variables containing newlines.
15666 # Ultrix sh set writes to stderr and can't be redirected directly,
15667 # and sets the high bit in the cache file unless we assign to the vars.
15668 (
15669 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15670 eval ac_val=\$$ac_var
15671 case $ac_val in #(
15672 *${as_nl}*)
15673 case $ac_var in #(
15674 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15675 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15676 esac
15677 case $ac_var in #(
15678 _ | IFS | as_nl) ;; #(
15679 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15680 *) { eval $ac_var=; unset $ac_var;} ;;
15681 esac ;;
15682 esac
15683 done
15684
15685 (set) 2>&1 |
15686 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15687 *${as_nl}ac_space=\ *)
15688 # `set' does not quote correctly, so add quotes: double-quote
15689 # substitution turns \\\\ into \\, and sed turns \\ into \.
15690 sed -n \
15691 "s/'/'\\\\''/g;
15692 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15693 ;; #(
15694 *)
15695 # `set' quotes correctly as required by POSIX, so do not add quotes.
15696 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15697 ;;
15698 esac |
15699 sort
15700 ) |
15701 sed '
15702 /^ac_cv_env_/b end
15703 t clear
15704 :clear
15705 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15706 t end
15707 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15708 :end' >>confcache
15709 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15710 if test -w "$cache_file"; then
15711 if test "x$cache_file" != "x/dev/null"; then
15712 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15713 $as_echo "$as_me: updating cache $cache_file" >&6;}
15714 if test ! -f "$cache_file" || test -h "$cache_file"; then
15715 cat confcache >"$cache_file"
15716 else
15717 case $cache_file in #(
15718 */* | ?:*)
15719 mv -f confcache "$cache_file"$$ &&
15720 mv -f "$cache_file"$$ "$cache_file" ;; #(
15721 *)
15722 mv -f confcache "$cache_file" ;;
15723 esac
15724 fi
15725 fi
15726 else
15727 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15728 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15729 fi
15730 fi
15731 rm -f confcache
15732
15733 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15734 # Let make expand exec_prefix.
15735 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15736
15737 DEFS=-DHAVE_CONFIG_H
15738
15739 ac_libobjs=
15740 ac_ltlibobjs=
15741 U=
15742 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15743 # 1. Remove the extension, and $U if already installed.
15744 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15745 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15746 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15747 # will be set to the directory where LIBOBJS objects are built.
15748 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15749 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15750 done
15751 LIBOBJS=$ac_libobjs
15752
15753 LTLIBOBJS=$ac_ltlibobjs
15754
15755
15756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15757 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15758 if test -n "$am_sleep_pid"; then
15759 # Hide warnings about reused PIDs.
15760 wait $am_sleep_pid 2>/dev/null
15761 fi
15762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15763 $as_echo "done" >&6; }
15764 if test -n "$EXEEXT"; then
15765 am__EXEEXT_TRUE=
15766 am__EXEEXT_FALSE='#'
15767 else
15768 am__EXEEXT_TRUE='#'
15769 am__EXEEXT_FALSE=
15770 fi
15771
15772 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15773 as_fn_error $? "conditional \"AMDEP\" was never defined.
15774 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15775 fi
15776 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15777 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
15778 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15779 fi
15780 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15781 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15782 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15783 fi
15784
15785 : "${CONFIG_STATUS=./config.status}"
15786 ac_write_fail=0
15787 ac_clean_files_save=$ac_clean_files
15788 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15789 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15790 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15791 as_write_fail=0
15792 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15793 #! $SHELL
15794 # Generated by $as_me.
15795 # Run this file to recreate the current configuration.
15796 # Compiler output produced by configure, useful for debugging
15797 # configure, is in config.log if it exists.
15798
15799 debug=false
15800 ac_cs_recheck=false
15801 ac_cs_silent=false
15802
15803 SHELL=\${CONFIG_SHELL-$SHELL}
15804 export SHELL
15805 _ASEOF
15806 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15807 ## -------------------- ##
15808 ## M4sh Initialization. ##
15809 ## -------------------- ##
15810
15811 # Be more Bourne compatible
15812 DUALCASE=1; export DUALCASE # for MKS sh
15813 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15814 emulate sh
15815 NULLCMD=:
15816 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15817 # is contrary to our usage. Disable this feature.
15818 alias -g '${1+"$@"}'='"$@"'
15819 setopt NO_GLOB_SUBST
15820 else
15821 case `(set -o) 2>/dev/null` in #(
15822 *posix*) :
15823 set -o posix ;; #(
15824 *) :
15825 ;;
15826 esac
15827 fi
15828
15829
15830 as_nl='
15831 '
15832 export as_nl
15833 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15834 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15835 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15836 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15837 # Prefer a ksh shell builtin over an external printf program on Solaris,
15838 # but without wasting forks for bash or zsh.
15839 if test -z "$BASH_VERSION$ZSH_VERSION" \
15840 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15841 as_echo='print -r --'
15842 as_echo_n='print -rn --'
15843 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15844 as_echo='printf %s\n'
15845 as_echo_n='printf %s'
15846 else
15847 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15848 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15849 as_echo_n='/usr/ucb/echo -n'
15850 else
15851 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15852 as_echo_n_body='eval
15853 arg=$1;
15854 case $arg in #(
15855 *"$as_nl"*)
15856 expr "X$arg" : "X\\(.*\\)$as_nl";
15857 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15858 esac;
15859 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15860 '
15861 export as_echo_n_body
15862 as_echo_n='sh -c $as_echo_n_body as_echo'
15863 fi
15864 export as_echo_body
15865 as_echo='sh -c $as_echo_body as_echo'
15866 fi
15867
15868 # The user is always right.
15869 if test "${PATH_SEPARATOR+set}" != set; then
15870 PATH_SEPARATOR=:
15871 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15872 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15873 PATH_SEPARATOR=';'
15874 }
15875 fi
15876
15877
15878 # IFS
15879 # We need space, tab and new line, in precisely that order. Quoting is
15880 # there to prevent editors from complaining about space-tab.
15881 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15882 # splitting by setting IFS to empty value.)
15883 IFS=" "" $as_nl"
15884
15885 # Find who we are. Look in the path if we contain no directory separator.
15886 as_myself=
15887 case $0 in #((
15888 *[\\/]* ) as_myself=$0 ;;
15889 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15890 for as_dir in $PATH
15891 do
15892 IFS=$as_save_IFS
15893 test -z "$as_dir" && as_dir=.
15894 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15895 done
15896 IFS=$as_save_IFS
15897
15898 ;;
15899 esac
15900 # We did not find ourselves, most probably we were run as `sh COMMAND'
15901 # in which case we are not to be found in the path.
15902 if test "x$as_myself" = x; then
15903 as_myself=$0
15904 fi
15905 if test ! -f "$as_myself"; then
15906 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15907 exit 1
15908 fi
15909
15910 # Unset variables that we do not need and which cause bugs (e.g. in
15911 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15912 # suppresses any "Segmentation fault" message there. '((' could
15913 # trigger a bug in pdksh 5.2.14.
15914 for as_var in BASH_ENV ENV MAIL MAILPATH
15915 do eval test x\${$as_var+set} = xset \
15916 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15917 done
15918 PS1='$ '
15919 PS2='> '
15920 PS4='+ '
15921
15922 # NLS nuisances.
15923 LC_ALL=C
15924 export LC_ALL
15925 LANGUAGE=C
15926 export LANGUAGE
15927
15928 # CDPATH.
15929 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15930
15931
15932 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15933 # ----------------------------------------
15934 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15935 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15936 # script with STATUS, using 1 if that was 0.
15937 as_fn_error ()
15938 {
15939 as_status=$1; test $as_status -eq 0 && as_status=1
15940 if test "$4"; then
15941 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15942 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15943 fi
15944 $as_echo "$as_me: error: $2" >&2
15945 as_fn_exit $as_status
15946 } # as_fn_error
15947
15948
15949 # as_fn_set_status STATUS
15950 # -----------------------
15951 # Set $? to STATUS, without forking.
15952 as_fn_set_status ()
15953 {
15954 return $1
15955 } # as_fn_set_status
15956
15957 # as_fn_exit STATUS
15958 # -----------------
15959 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15960 as_fn_exit ()
15961 {
15962 set +e
15963 as_fn_set_status $1
15964 exit $1
15965 } # as_fn_exit
15966
15967 # as_fn_unset VAR
15968 # ---------------
15969 # Portably unset VAR.
15970 as_fn_unset ()
15971 {
15972 { eval $1=; unset $1;}
15973 }
15974 as_unset=as_fn_unset
15975 # as_fn_append VAR VALUE
15976 # ----------------------
15977 # Append the text in VALUE to the end of the definition contained in VAR. Take
15978 # advantage of any shell optimizations that allow amortized linear growth over
15979 # repeated appends, instead of the typical quadratic growth present in naive
15980 # implementations.
15981 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15982 eval 'as_fn_append ()
15983 {
15984 eval $1+=\$2
15985 }'
15986 else
15987 as_fn_append ()
15988 {
15989 eval $1=\$$1\$2
15990 }
15991 fi # as_fn_append
15992
15993 # as_fn_arith ARG...
15994 # ------------------
15995 # Perform arithmetic evaluation on the ARGs, and store the result in the
15996 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15997 # must be portable across $(()) and expr.
15998 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15999 eval 'as_fn_arith ()
16000 {
16001 as_val=$(( $* ))
16002 }'
16003 else
16004 as_fn_arith ()
16005 {
16006 as_val=`expr "$@" || test $? -eq 1`
16007 }
16008 fi # as_fn_arith
16009
16010
16011 if expr a : '\(a\)' >/dev/null 2>&1 &&
16012 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16013 as_expr=expr
16014 else
16015 as_expr=false
16016 fi
16017
16018 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16019 as_basename=basename
16020 else
16021 as_basename=false
16022 fi
16023
16024 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16025 as_dirname=dirname
16026 else
16027 as_dirname=false
16028 fi
16029
16030 as_me=`$as_basename -- "$0" ||
16031 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16032 X"$0" : 'X\(//\)$' \| \
16033 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16034 $as_echo X/"$0" |
16035 sed '/^.*\/\([^/][^/]*\)\/*$/{
16036 s//\1/
16037 q
16038 }
16039 /^X\/\(\/\/\)$/{
16040 s//\1/
16041 q
16042 }
16043 /^X\/\(\/\).*/{
16044 s//\1/
16045 q
16046 }
16047 s/.*/./; q'`
16048
16049 # Avoid depending upon Character Ranges.
16050 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16051 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16052 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16053 as_cr_digits='0123456789'
16054 as_cr_alnum=$as_cr_Letters$as_cr_digits
16055
16056 ECHO_C= ECHO_N= ECHO_T=
16057 case `echo -n x` in #(((((
16058 -n*)
16059 case `echo 'xy\c'` in
16060 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16061 xy) ECHO_C='\c';;
16062 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16063 ECHO_T=' ';;
16064 esac;;
16065 *)
16066 ECHO_N='-n';;
16067 esac
16068
16069 rm -f conf$$ conf$$.exe conf$$.file
16070 if test -d conf$$.dir; then
16071 rm -f conf$$.dir/conf$$.file
16072 else
16073 rm -f conf$$.dir
16074 mkdir conf$$.dir 2>/dev/null
16075 fi
16076 if (echo >conf$$.file) 2>/dev/null; then
16077 if ln -s conf$$.file conf$$ 2>/dev/null; then
16078 as_ln_s='ln -s'
16079 # ... but there are two gotchas:
16080 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16081 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16082 # In both cases, we have to default to `cp -pR'.
16083 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16084 as_ln_s='cp -pR'
16085 elif ln conf$$.file conf$$ 2>/dev/null; then
16086 as_ln_s=ln
16087 else
16088 as_ln_s='cp -pR'
16089 fi
16090 else
16091 as_ln_s='cp -pR'
16092 fi
16093 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16094 rmdir conf$$.dir 2>/dev/null
16095
16096
16097 # as_fn_mkdir_p
16098 # -------------
16099 # Create "$as_dir" as a directory, including parents if necessary.
16100 as_fn_mkdir_p ()
16101 {
16102
16103 case $as_dir in #(
16104 -*) as_dir=./$as_dir;;
16105 esac
16106 test -d "$as_dir" || eval $as_mkdir_p || {
16107 as_dirs=
16108 while :; do
16109 case $as_dir in #(
16110 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16111 *) as_qdir=$as_dir;;
16112 esac
16113 as_dirs="'$as_qdir' $as_dirs"
16114 as_dir=`$as_dirname -- "$as_dir" ||
16115 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16116 X"$as_dir" : 'X\(//\)[^/]' \| \
16117 X"$as_dir" : 'X\(//\)$' \| \
16118 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16119 $as_echo X"$as_dir" |
16120 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16121 s//\1/
16122 q
16123 }
16124 /^X\(\/\/\)[^/].*/{
16125 s//\1/
16126 q
16127 }
16128 /^X\(\/\/\)$/{
16129 s//\1/
16130 q
16131 }
16132 /^X\(\/\).*/{
16133 s//\1/
16134 q
16135 }
16136 s/.*/./; q'`
16137 test -d "$as_dir" && break
16138 done
16139 test -z "$as_dirs" || eval "mkdir $as_dirs"
16140 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16141
16142
16143 } # as_fn_mkdir_p
16144 if mkdir -p . 2>/dev/null; then
16145 as_mkdir_p='mkdir -p "$as_dir"'
16146 else
16147 test -d ./-p && rmdir ./-p
16148 as_mkdir_p=false
16149 fi
16150
16151
16152 # as_fn_executable_p FILE
16153 # -----------------------
16154 # Test if FILE is an executable regular file.
16155 as_fn_executable_p ()
16156 {
16157 test -f "$1" && test -x "$1"
16158 } # as_fn_executable_p
16159 as_test_x='test -x'
16160 as_executable_p=as_fn_executable_p
16161
16162 # Sed expression to map a string onto a valid CPP name.
16163 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16164
16165 # Sed expression to map a string onto a valid variable name.
16166 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16167
16168
16169 exec 6>&1
16170 ## ----------------------------------- ##
16171 ## Main body of $CONFIG_STATUS script. ##
16172 ## ----------------------------------- ##
16173 _ASEOF
16174 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16175
16176 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16177 # Save the log message, to keep $0 and so on meaningful, and to
16178 # report actual input values of CONFIG_FILES etc. instead of their
16179 # values after options handling.
16180 ac_log="
16181 This file was extended by qqwing $as_me 1.3.4, which was
16182 generated by GNU Autoconf 2.69. Invocation command line was
16183
16184 CONFIG_FILES = $CONFIG_FILES
16185 CONFIG_HEADERS = $CONFIG_HEADERS
16186 CONFIG_LINKS = $CONFIG_LINKS
16187 CONFIG_COMMANDS = $CONFIG_COMMANDS
16188 $ $0 $@
16189
16190 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16191 "
16192
16193 _ACEOF
16194
16195 case $ac_config_files in *"
16196 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16197 esac
16198
16199 case $ac_config_headers in *"
16200 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16201 esac
16202
16203
16204 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16205 # Files that config.status was made for.
16206 config_files="$ac_config_files"
16207 config_headers="$ac_config_headers"
16208 config_commands="$ac_config_commands"
16209
16210 _ACEOF
16211
16212 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16213 ac_cs_usage="\
16214 \`$as_me' instantiates files and other configuration actions
16215 from templates according to the current configuration. Unless the files
16216 and actions are specified as TAGs, all are instantiated by default.
16217
16218 Usage: $0 [OPTION]... [TAG]...
16219
16220 -h, --help print this help, then exit
16221 -V, --version print version number and configuration settings, then exit
16222 --config print configuration, then exit
16223 -q, --quiet, --silent
16224 do not print progress messages
16225 -d, --debug don't remove temporary files
16226 --recheck update $as_me by reconfiguring in the same conditions
16227 --file=FILE[:TEMPLATE]
16228 instantiate the configuration file FILE
16229 --header=FILE[:TEMPLATE]
16230 instantiate the configuration header FILE
16231
16232 Configuration files:
16233 $config_files
16234
16235 Configuration headers:
16236 $config_headers
16237
16238 Configuration commands:
16239 $config_commands
16240
16241 Report bugs to <http://qqwing.com/>."
16242
16243 _ACEOF
16244 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16245 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16246 ac_cs_version="\\
16247 qqwing config.status 1.3.4
16248 configured by $0, generated by GNU Autoconf 2.69,
16249 with options \\"\$ac_cs_config\\"
16250
16251 Copyright (C) 2012 Free Software Foundation, Inc.
16252 This config.status script is free software; the Free Software Foundation
16253 gives unlimited permission to copy, distribute and modify it."
16254
16255 ac_pwd='$ac_pwd'
16256 srcdir='$srcdir'
16257 INSTALL='$INSTALL'
16258 MKDIR_P='$MKDIR_P'
16259 AWK='$AWK'
16260 test -n "\$AWK" || AWK=awk
16261 _ACEOF
16262
16263 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16264 # The default lists apply if the user does not specify any file.
16265 ac_need_defaults=:
16266 while test $# != 0
16267 do
16268 case $1 in
16269 --*=?*)
16270 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16271 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16272 ac_shift=:
16273 ;;
16274 --*=)
16275 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16276 ac_optarg=
16277 ac_shift=:
16278 ;;
16279 *)
16280 ac_option=$1
16281 ac_optarg=$2
16282 ac_shift=shift
16283 ;;
16284 esac
16285
16286 case $ac_option in
16287 # Handling of the options.
16288 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16289 ac_cs_recheck=: ;;
16290 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16291 $as_echo "$ac_cs_version"; exit ;;
16292 --config | --confi | --conf | --con | --co | --c )
16293 $as_echo "$ac_cs_config"; exit ;;
16294 --debug | --debu | --deb | --de | --d | -d )
16295 debug=: ;;
16296 --file | --fil | --fi | --f )
16297 $ac_shift
16298 case $ac_optarg in
16299 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16300 '') as_fn_error $? "missing file argument" ;;
16301 esac
16302 as_fn_append CONFIG_FILES " '$ac_optarg'"
16303 ac_need_defaults=false;;
16304 --header | --heade | --head | --hea )
16305 $ac_shift
16306 case $ac_optarg in
16307 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16308 esac
16309 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16310 ac_need_defaults=false;;
16311 --he | --h)
16312 # Conflict between --help and --header
16313 as_fn_error $? "ambiguous option: \`$1'
16314 Try \`$0 --help' for more information.";;
16315 --help | --hel | -h )
16316 $as_echo "$ac_cs_usage"; exit ;;
16317 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16318 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16319 ac_cs_silent=: ;;
16320
16321 # This is an error.
16322 -*) as_fn_error $? "unrecognized option: \`$1'
16323 Try \`$0 --help' for more information." ;;
16324
16325 *) as_fn_append ac_config_targets " $1"
16326 ac_need_defaults=false ;;
16327
16328 esac
16329 shift
16330 done
16331
16332 ac_configure_extra_args=
16333
16334 if $ac_cs_silent; then
16335 exec 6>/dev/null
16336 ac_configure_extra_args="$ac_configure_extra_args --silent"
16337 fi
16338
16339 _ACEOF
16340 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16341 if \$ac_cs_recheck; then
16342 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16343 shift
16344 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16345 CONFIG_SHELL='$SHELL'
16346 export CONFIG_SHELL
16347 exec "\$@"
16348 fi
16349
16350 _ACEOF
16351 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16352 exec 5>>config.log
16353 {
16354 echo
16355 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16356 ## Running $as_me. ##
16357 _ASBOX
16358 $as_echo "$ac_log"
16359 } >&5
16360
16361 _ACEOF
16362 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16363 #
16364 # INIT-COMMANDS
16365 #
16366 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16367
16368
16369 # The HP-UX ksh and POSIX shell print the target directory to stdout
16370 # if CDPATH is set.
16371 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16372
16373 sed_quote_subst='$sed_quote_subst'
16374 double_quote_subst='$double_quote_subst'
16375 delay_variable_subst='$delay_variable_subst'
16376 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16377 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16378 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16379 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16380 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16381 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16382 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16383 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16384 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16385 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16386 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16387 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16388 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16389 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16390 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16391 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16392 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16393 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16394 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16395 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16396 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16397 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16398 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16399 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16400 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16401 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16402 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16403 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16404 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16405 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16406 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16407 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16408 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16409 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16410 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16411 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16412 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16413 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16414 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16415 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16416 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16417 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16418 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16419 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16420 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16421 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16422 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16423 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16424 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16425 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16426 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16427 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16428 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16429 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16430 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16431 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16432 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"`'
16433 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16434 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16435 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16436 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16437 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16438 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16439 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16440 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16441 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16442 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16443 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16444 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16445 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16446 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16447 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16448 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16449 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16450 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16451 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16452 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16453 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16454 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16455 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16456 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16457 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16458 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16459 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16460 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16461 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16462 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16463 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16464 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16465 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16466 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16467 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16468 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16469 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16470 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16471 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16472 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16473 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16474 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16475 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16476 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16477 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16478 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16479 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16480 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16481 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16482 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16483 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16484 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16485 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16486 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16487 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16488 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16489 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16490 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16491 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16492 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16493 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16494 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16495 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16496 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16497 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16498 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16499 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16500 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16501 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16502 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16503 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16504 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16505 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16506 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16507 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16508 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16509 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16510 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16511 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16512 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
16513 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
16514 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16515 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16516 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
16517 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
16518 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16519 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
16520 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
16521 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
16522 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
16523 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
16524 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
16525 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16526 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16527 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
16528 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16529 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16530 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16531 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16532 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16533 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16534 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
16535 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16536 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16537 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16538 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
16539 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
16540 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
16541 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
16542 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
16543 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
16544 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
16545 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
16546 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
16547 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16548 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16549 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16550 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16551 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16552 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
16553 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
16554 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
16555 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16556 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16557 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
16558 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
16559 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
16560
16561 LTCC='$LTCC'
16562 LTCFLAGS='$LTCFLAGS'
16563 compiler='$compiler_DEFAULT'
16564
16565 # A function that is used when there is no print builtin or printf.
16566 func_fallback_echo ()
16567 {
16568 eval 'cat <<_LTECHO_EOF
16569 \$1
16570 _LTECHO_EOF'
16571 }
16572
16573 # Quote evaled strings.
16574 for var in SHELL \
16575 ECHO \
16576 PATH_SEPARATOR \
16577 SED \
16578 GREP \
16579 EGREP \
16580 FGREP \
16581 LD \
16582 NM \
16583 LN_S \
16584 lt_SP2NL \
16585 lt_NL2SP \
16586 reload_flag \
16587 OBJDUMP \
16588 deplibs_check_method \
16589 file_magic_cmd \
16590 file_magic_glob \
16591 want_nocaseglob \
16592 DLLTOOL \
16593 sharedlib_from_linklib_cmd \
16594 AR \
16595 AR_FLAGS \
16596 archiver_list_spec \
16597 STRIP \
16598 RANLIB \
16599 CC \
16600 CFLAGS \
16601 compiler \
16602 lt_cv_sys_global_symbol_pipe \
16603 lt_cv_sys_global_symbol_to_cdecl \
16604 lt_cv_sys_global_symbol_to_c_name_address \
16605 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16606 nm_file_list_spec \
16607 lt_prog_compiler_no_builtin_flag \
16608 lt_prog_compiler_pic \
16609 lt_prog_compiler_wl \
16610 lt_prog_compiler_static \
16611 lt_cv_prog_compiler_c_o \
16612 need_locks \
16613 MANIFEST_TOOL \
16614 DSYMUTIL \
16615 NMEDIT \
16616 LIPO \
16617 OTOOL \
16618 OTOOL64 \
16619 shrext_cmds \
16620 export_dynamic_flag_spec \
16621 whole_archive_flag_spec \
16622 compiler_needs_object \
16623 with_gnu_ld \
16624 allow_undefined_flag \
16625 no_undefined_flag \
16626 hardcode_libdir_flag_spec \
16627 hardcode_libdir_separator \
16628 exclude_expsyms \
16629 include_expsyms \
16630 file_list_spec \
16631 variables_saved_for_relink \
16632 libname_spec \
16633 library_names_spec \
16634 soname_spec \
16635 install_override_mode \
16636 finish_eval \
16637 old_striplib \
16638 striplib \
16639 compiler_lib_search_dirs \
16640 predep_objects \
16641 postdep_objects \
16642 predeps \
16643 postdeps \
16644 compiler_lib_search_path \
16645 LD_CXX \
16646 reload_flag_CXX \
16647 compiler_CXX \
16648 lt_prog_compiler_no_builtin_flag_CXX \
16649 lt_prog_compiler_pic_CXX \
16650 lt_prog_compiler_wl_CXX \
16651 lt_prog_compiler_static_CXX \
16652 lt_cv_prog_compiler_c_o_CXX \
16653 export_dynamic_flag_spec_CXX \
16654 whole_archive_flag_spec_CXX \
16655 compiler_needs_object_CXX \
16656 with_gnu_ld_CXX \
16657 allow_undefined_flag_CXX \
16658 no_undefined_flag_CXX \
16659 hardcode_libdir_flag_spec_CXX \
16660 hardcode_libdir_separator_CXX \
16661 exclude_expsyms_CXX \
16662 include_expsyms_CXX \
16663 file_list_spec_CXX \
16664 compiler_lib_search_dirs_CXX \
16665 predep_objects_CXX \
16666 postdep_objects_CXX \
16667 predeps_CXX \
16668 postdeps_CXX \
16669 compiler_lib_search_path_CXX; do
16670 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16671 *[\\\\\\\`\\"\\\$]*)
16672 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16673 ;;
16674 *)
16675 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16676 ;;
16677 esac
16678 done
16679
16680 # Double-quote double-evaled strings.
16681 for var in reload_cmds \
16682 old_postinstall_cmds \
16683 old_postuninstall_cmds \
16684 old_archive_cmds \
16685 extract_expsyms_cmds \
16686 old_archive_from_new_cmds \
16687 old_archive_from_expsyms_cmds \
16688 archive_cmds \
16689 archive_expsym_cmds \
16690 module_cmds \
16691 module_expsym_cmds \
16692 export_symbols_cmds \
16693 prelink_cmds \
16694 postlink_cmds \
16695 postinstall_cmds \
16696 postuninstall_cmds \
16697 finish_cmds \
16698 sys_lib_search_path_spec \
16699 sys_lib_dlsearch_path_spec \
16700 reload_cmds_CXX \
16701 old_archive_cmds_CXX \
16702 old_archive_from_new_cmds_CXX \
16703 old_archive_from_expsyms_cmds_CXX \
16704 archive_cmds_CXX \
16705 archive_expsym_cmds_CXX \
16706 module_cmds_CXX \
16707 module_expsym_cmds_CXX \
16708 export_symbols_cmds_CXX \
16709 prelink_cmds_CXX \
16710 postlink_cmds_CXX; do
16711 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16712 *[\\\\\\\`\\"\\\$]*)
16713 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16714 ;;
16715 *)
16716 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16717 ;;
16718 esac
16719 done
16720
16721 ac_aux_dir='$ac_aux_dir'
16722 xsi_shell='$xsi_shell'
16723 lt_shell_append='$lt_shell_append'
16724
16725 # See if we are running on zsh, and set the options which allow our
16726 # commands through without removal of \ escapes INIT.
16727 if test -n "\${ZSH_VERSION+set}" ; then
16728 setopt NO_GLOB_SUBST
16729 fi
16730
16731
16732 PACKAGE='$PACKAGE'
16733 VERSION='$VERSION'
16734 TIMESTAMP='$TIMESTAMP'
16735 RM='$RM'
16736 ofile='$ofile'
16737
16738
16739
16740
16741
16742
16743 _ACEOF
16744
16745 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16746
16747 # Handling of arguments.
16748 for ac_config_target in $ac_config_targets
16749 do
16750 case $ac_config_target in
16751 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16752 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16753 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16754 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16755 "qqwing.pc") CONFIG_FILES="$CONFIG_FILES qqwing.pc" ;;
16756
16757 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16758 esac
16759 done
16760
16761
16762 # If the user did not use the arguments to specify the items to instantiate,
16763 # then the envvar interface is used. Set only those that are not.
16764 # We use the long form for the default assignment because of an extremely
16765 # bizarre bug on SunOS 4.1.3.
16766 if $ac_need_defaults; then
16767 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16768 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16769 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16770 fi
16771
16772 # Have a temporary directory for convenience. Make it in the build tree
16773 # simply because there is no reason against having it here, and in addition,
16774 # creating and moving files from /tmp can sometimes cause problems.
16775 # Hook for its removal unless debugging.
16776 # Note that there is a small window in which the directory will not be cleaned:
16777 # after its creation but before its name has been assigned to `$tmp'.
16778 $debug ||
16779 {
16780 tmp= ac_tmp=
16781 trap 'exit_status=$?
16782 : "${ac_tmp:=$tmp}"
16783 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16784 ' 0
16785 trap 'as_fn_exit 1' 1 2 13 15
16786 }
16787 # Create a (secure) tmp directory for tmp files.
16788
16789 {
16790 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16791 test -d "$tmp"
16792 } ||
16793 {
16794 tmp=./conf$$-$RANDOM
16795 (umask 077 && mkdir "$tmp")
16796 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16797 ac_tmp=$tmp
16798
16799 # Set up the scripts for CONFIG_FILES section.
16800 # No need to generate them if there are no CONFIG_FILES.
16801 # This happens for instance with `./config.status config.h'.
16802 if test -n "$CONFIG_FILES"; then
16803
16804
16805 ac_cr=`echo X | tr X '\015'`
16806 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16807 # But we know of no other shell where ac_cr would be empty at this
16808 # point, so we can use a bashism as a fallback.
16809 if test "x$ac_cr" = x; then
16810 eval ac_cr=\$\'\\r\'
16811 fi
16812 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16813 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16814 ac_cs_awk_cr='\\r'
16815 else
16816 ac_cs_awk_cr=$ac_cr
16817 fi
16818
16819 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16820 _ACEOF
16821
16822
16823 {
16824 echo "cat >conf$$subs.awk <<_ACEOF" &&
16825 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16826 echo "_ACEOF"
16827 } >conf$$subs.sh ||
16828 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16829 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16830 ac_delim='%!_!# '
16831 for ac_last_try in false false false false false :; do
16832 . ./conf$$subs.sh ||
16833 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16834
16835 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16836 if test $ac_delim_n = $ac_delim_num; then
16837 break
16838 elif $ac_last_try; then
16839 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16840 else
16841 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16842 fi
16843 done
16844 rm -f conf$$subs.sh
16845
16846 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16847 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16848 _ACEOF
16849 sed -n '
16850 h
16851 s/^/S["/; s/!.*/"]=/
16852 p
16853 g
16854 s/^[^!]*!//
16855 :repl
16856 t repl
16857 s/'"$ac_delim"'$//
16858 t delim
16859 :nl
16860 h
16861 s/\(.\{148\}\)..*/\1/
16862 t more1
16863 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16864 p
16865 n
16866 b repl
16867 :more1
16868 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16869 p
16870 g
16871 s/.\{148\}//
16872 t nl
16873 :delim
16874 h
16875 s/\(.\{148\}\)..*/\1/
16876 t more2
16877 s/["\\]/\\&/g; s/^/"/; s/$/"/
16878 p
16879 b
16880 :more2
16881 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16882 p
16883 g
16884 s/.\{148\}//
16885 t delim
16886 ' <conf$$subs.awk | sed '
16887 /^[^""]/{
16888 N
16889 s/\n//
16890 }
16891 ' >>$CONFIG_STATUS || ac_write_fail=1
16892 rm -f conf$$subs.awk
16893 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16894 _ACAWK
16895 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16896 for (key in S) S_is_set[key] = 1
16897 FS = ""
16898
16899 }
16900 {
16901 line = $ 0
16902 nfields = split(line, field, "@")
16903 substed = 0
16904 len = length(field[1])
16905 for (i = 2; i < nfields; i++) {
16906 key = field[i]
16907 keylen = length(key)
16908 if (S_is_set[key]) {
16909 value = S[key]
16910 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16911 len += length(value) + length(field[++i])
16912 substed = 1
16913 } else
16914 len += 1 + keylen
16915 }
16916
16917 print line
16918 }
16919
16920 _ACAWK
16921 _ACEOF
16922 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16923 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16924 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16925 else
16926 cat
16927 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16928 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16929 _ACEOF
16930
16931 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16932 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16933 # trailing colons and then remove the whole line if VPATH becomes empty
16934 # (actually we leave an empty line to preserve line numbers).
16935 if test "x$srcdir" = x.; then
16936 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16937 h
16938 s///
16939 s/^/:/
16940 s/[ ]*$/:/
16941 s/:\$(srcdir):/:/g
16942 s/:\${srcdir}:/:/g
16943 s/:@srcdir@:/:/g
16944 s/^:*//
16945 s/:*$//
16946 x
16947 s/\(=[ ]*\).*/\1/
16948 G
16949 s/\n//
16950 s/^[^=]*=[ ]*$//
16951 }'
16952 fi
16953
16954 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16955 fi # test -n "$CONFIG_FILES"
16956
16957 # Set up the scripts for CONFIG_HEADERS section.
16958 # No need to generate them if there are no CONFIG_HEADERS.
16959 # This happens for instance with `./config.status Makefile'.
16960 if test -n "$CONFIG_HEADERS"; then
16961 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16962 BEGIN {
16963 _ACEOF
16964
16965 # Transform confdefs.h into an awk script `defines.awk', embedded as
16966 # here-document in config.status, that substitutes the proper values into
16967 # config.h.in to produce config.h.
16968
16969 # Create a delimiter string that does not exist in confdefs.h, to ease
16970 # handling of long lines.
16971 ac_delim='%!_!# '
16972 for ac_last_try in false false :; do
16973 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16974 if test -z "$ac_tt"; then
16975 break
16976 elif $ac_last_try; then
16977 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16978 else
16979 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16980 fi
16981 done
16982
16983 # For the awk script, D is an array of macro values keyed by name,
16984 # likewise P contains macro parameters if any. Preserve backslash
16985 # newline sequences.
16986
16987 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16988 sed -n '
16989 s/.\{148\}/&'"$ac_delim"'/g
16990 t rset
16991 :rset
16992 s/^[ ]*#[ ]*define[ ][ ]*/ /
16993 t def
16994 d
16995 :def
16996 s/\\$//
16997 t bsnl
16998 s/["\\]/\\&/g
16999 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17000 D["\1"]=" \3"/p
17001 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17002 d
17003 :bsnl
17004 s/["\\]/\\&/g
17005 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17006 D["\1"]=" \3\\\\\\n"\\/p
17007 t cont
17008 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17009 t cont
17010 d
17011 :cont
17012 n
17013 s/.\{148\}/&'"$ac_delim"'/g
17014 t clear
17015 :clear
17016 s/\\$//
17017 t bsnlc
17018 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17019 d
17020 :bsnlc
17021 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17022 b cont
17023 ' <confdefs.h | sed '
17024 s/'"$ac_delim"'/"\\\
17025 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17026
17027 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17028 for (key in D) D_is_set[key] = 1
17029 FS = ""
17030 }
17031 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17032 line = \$ 0
17033 split(line, arg, " ")
17034 if (arg[1] == "#") {
17035 defundef = arg[2]
17036 mac1 = arg[3]
17037 } else {
17038 defundef = substr(arg[1], 2)
17039 mac1 = arg[2]
17040 }
17041 split(mac1, mac2, "(") #)
17042 macro = mac2[1]
17043 prefix = substr(line, 1, index(line, defundef) - 1)
17044 if (D_is_set[macro]) {
17045 # Preserve the white space surrounding the "#".
17046 print prefix "define", macro P[macro] D[macro]
17047 next
17048 } else {
17049 # Replace #undef with comments. This is necessary, for example,
17050 # in the case of _POSIX_SOURCE, which is predefined and required
17051 # on some systems where configure will not decide to define it.
17052 if (defundef == "undef") {
17053 print "/*", prefix defundef, macro, "*/"
17054 next
17055 }
17056 }
17057 }
17058 { print }
17059 _ACAWK
17060 _ACEOF
17061 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17062 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17063 fi # test -n "$CONFIG_HEADERS"
17064
17065
17066 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17067 shift
17068 for ac_tag
17069 do
17070 case $ac_tag in
17071 :[FHLC]) ac_mode=$ac_tag; continue;;
17072 esac
17073 case $ac_mode$ac_tag in
17074 :[FHL]*:*);;
17075 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17076 :[FH]-) ac_tag=-:-;;
17077 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17078 esac
17079 ac_save_IFS=$IFS
17080 IFS=:
17081 set x $ac_tag
17082 IFS=$ac_save_IFS
17083 shift
17084 ac_file=$1
17085 shift
17086
17087 case $ac_mode in
17088 :L) ac_source=$1;;
17089 :[FH])
17090 ac_file_inputs=
17091 for ac_f
17092 do
17093 case $ac_f in
17094 -) ac_f="$ac_tmp/stdin";;
17095 *) # Look for the file first in the build tree, then in the source tree
17096 # (if the path is not absolute). The absolute path cannot be DOS-style,
17097 # because $ac_f cannot contain `:'.
17098 test -f "$ac_f" ||
17099 case $ac_f in
17100 [\\/$]*) false;;
17101 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17102 esac ||
17103 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17104 esac
17105 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17106 as_fn_append ac_file_inputs " '$ac_f'"
17107 done
17108
17109 # Let's still pretend it is `configure' which instantiates (i.e., don't
17110 # use $as_me), people would be surprised to read:
17111 # /* config.h. Generated by config.status. */
17112 configure_input='Generated from '`
17113 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17114 `' by configure.'
17115 if test x"$ac_file" != x-; then
17116 configure_input="$ac_file. $configure_input"
17117 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17118 $as_echo "$as_me: creating $ac_file" >&6;}
17119 fi
17120 # Neutralize special characters interpreted by sed in replacement strings.
17121 case $configure_input in #(
17122 *\&* | *\|* | *\\* )
17123 ac_sed_conf_input=`$as_echo "$configure_input" |
17124 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17125 *) ac_sed_conf_input=$configure_input;;
17126 esac
17127
17128 case $ac_tag in
17129 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17130 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17131 esac
17132 ;;
17133 esac
17134
17135 ac_dir=`$as_dirname -- "$ac_file" ||
17136 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17137 X"$ac_file" : 'X\(//\)[^/]' \| \
17138 X"$ac_file" : 'X\(//\)$' \| \
17139 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17140 $as_echo X"$ac_file" |
17141 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17142 s//\1/
17143 q
17144 }
17145 /^X\(\/\/\)[^/].*/{
17146 s//\1/
17147 q
17148 }
17149 /^X\(\/\/\)$/{
17150 s//\1/
17151 q
17152 }
17153 /^X\(\/\).*/{
17154 s//\1/
17155 q
17156 }
17157 s/.*/./; q'`
17158 as_dir="$ac_dir"; as_fn_mkdir_p
17159 ac_builddir=.
17160
17161 case "$ac_dir" in
17162 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17163 *)
17164 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17165 # A ".." for each directory in $ac_dir_suffix.
17166 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17167 case $ac_top_builddir_sub in
17168 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17169 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17170 esac ;;
17171 esac
17172 ac_abs_top_builddir=$ac_pwd
17173 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17174 # for backward compatibility:
17175 ac_top_builddir=$ac_top_build_prefix
17176
17177 case $srcdir in
17178 .) # We are building in place.
17179 ac_srcdir=.
17180 ac_top_srcdir=$ac_top_builddir_sub
17181 ac_abs_top_srcdir=$ac_pwd ;;
17182 [\\/]* | ?:[\\/]* ) # Absolute name.
17183 ac_srcdir=$srcdir$ac_dir_suffix;
17184 ac_top_srcdir=$srcdir
17185 ac_abs_top_srcdir=$srcdir ;;
17186 *) # Relative name.
17187 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17188 ac_top_srcdir=$ac_top_build_prefix$srcdir
17189 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17190 esac
17191 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17192
17193
17194 case $ac_mode in
17195 :F)
17196 #
17197 # CONFIG_FILE
17198 #
17199
17200 case $INSTALL in
17201 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17202 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17203 esac
17204 ac_MKDIR_P=$MKDIR_P
17205 case $MKDIR_P in
17206 [\\/$]* | ?:[\\/]* ) ;;
17207 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17208 esac
17209 _ACEOF
17210
17211 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17212 # If the template does not know about datarootdir, expand it.
17213 # FIXME: This hack should be removed a few years after 2.60.
17214 ac_datarootdir_hack=; ac_datarootdir_seen=
17215 ac_sed_dataroot='
17216 /datarootdir/ {
17217 p
17218 q
17219 }
17220 /@datadir@/p
17221 /@docdir@/p
17222 /@infodir@/p
17223 /@localedir@/p
17224 /@mandir@/p'
17225 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17226 *datarootdir*) ac_datarootdir_seen=yes;;
17227 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17229 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17230 _ACEOF
17231 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17232 ac_datarootdir_hack='
17233 s&@datadir@&$datadir&g
17234 s&@docdir@&$docdir&g
17235 s&@infodir@&$infodir&g
17236 s&@localedir@&$localedir&g
17237 s&@mandir@&$mandir&g
17238 s&\\\${datarootdir}&$datarootdir&g' ;;
17239 esac
17240 _ACEOF
17241
17242 # Neutralize VPATH when `$srcdir' = `.'.
17243 # Shell code in configure.ac might set extrasub.
17244 # FIXME: do we really want to maintain this feature?
17245 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17246 ac_sed_extra="$ac_vpsub
17247 $extrasub
17248 _ACEOF
17249 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17250 :t
17251 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17252 s|@configure_input@|$ac_sed_conf_input|;t t
17253 s&@top_builddir@&$ac_top_builddir_sub&;t t
17254 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17255 s&@srcdir@&$ac_srcdir&;t t
17256 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17257 s&@top_srcdir@&$ac_top_srcdir&;t t
17258 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17259 s&@builddir@&$ac_builddir&;t t
17260 s&@abs_builddir@&$ac_abs_builddir&;t t
17261 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17262 s&@INSTALL@&$ac_INSTALL&;t t
17263 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17264 $ac_datarootdir_hack
17265 "
17266 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17267 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17268
17269 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17270 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17271 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17272 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17274 which seems to be undefined. Please make sure it is defined" >&5
17275 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17276 which seems to be undefined. Please make sure it is defined" >&2;}
17277
17278 rm -f "$ac_tmp/stdin"
17279 case $ac_file in
17280 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17281 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17282 esac \
17283 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17284 ;;
17285 :H)
17286 #
17287 # CONFIG_HEADER
17288 #
17289 if test x"$ac_file" != x-; then
17290 {
17291 $as_echo "/* $configure_input */" \
17292 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17293 } >"$ac_tmp/config.h" \
17294 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17295 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17296 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17297 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17298 else
17299 rm -f "$ac_file"
17300 mv "$ac_tmp/config.h" "$ac_file" \
17301 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17302 fi
17303 else
17304 $as_echo "/* $configure_input */" \
17305 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17306 || as_fn_error $? "could not create -" "$LINENO" 5
17307 fi
17308 # Compute "$ac_file"'s index in $config_headers.
17309 _am_arg="$ac_file"
17310 _am_stamp_count=1
17311 for _am_header in $config_headers :; do
17312 case $_am_header in
17313 $_am_arg | $_am_arg:* )
17314 break ;;
17315 * )
17316 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17317 esac
17318 done
17319 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17320 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17321 X"$_am_arg" : 'X\(//\)[^/]' \| \
17322 X"$_am_arg" : 'X\(//\)$' \| \
17323 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17324 $as_echo X"$_am_arg" |
17325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17326 s//\1/
17327 q
17328 }
17329 /^X\(\/\/\)[^/].*/{
17330 s//\1/
17331 q
17332 }
17333 /^X\(\/\/\)$/{
17334 s//\1/
17335 q
17336 }
17337 /^X\(\/\).*/{
17338 s//\1/
17339 q
17340 }
17341 s/.*/./; q'`/stamp-h$_am_stamp_count
17342 ;;
17343
17344 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17345 $as_echo "$as_me: executing $ac_file commands" >&6;}
17346 ;;
17347 esac
17348
17349
17350 case $ac_file$ac_mode in
17351 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17352 # Older Autoconf quotes --file arguments for eval, but not when files
17353 # are listed without --file. Let's play safe and only enable the eval
17354 # if we detect the quoting.
17355 case $CONFIG_FILES in
17356 *\'*) eval set x "$CONFIG_FILES" ;;
17357 *) set x $CONFIG_FILES ;;
17358 esac
17359 shift
17360 for mf
17361 do
17362 # Strip MF so we end up with the name of the file.
17363 mf=`echo "$mf" | sed -e 's/:.*$//'`
17364 # Check whether this is an Automake generated Makefile or not.
17365 # We used to match only the files named 'Makefile.in', but
17366 # some people rename them; so instead we look at the file content.
17367 # Grep'ing the first line is not enough: some people post-process
17368 # each Makefile.in and add a new line on top of each file to say so.
17369 # Grep'ing the whole file is not good either: AIX grep has a line
17370 # limit of 2048, but all sed's we know have understand at least 4000.
17371 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17372 dirpart=`$as_dirname -- "$mf" ||
17373 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17374 X"$mf" : 'X\(//\)[^/]' \| \
17375 X"$mf" : 'X\(//\)$' \| \
17376 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17377 $as_echo X"$mf" |
17378 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17379 s//\1/
17380 q
17381 }
17382 /^X\(\/\/\)[^/].*/{
17383 s//\1/
17384 q
17385 }
17386 /^X\(\/\/\)$/{
17387 s//\1/
17388 q
17389 }
17390 /^X\(\/\).*/{
17391 s//\1/
17392 q
17393 }
17394 s/.*/./; q'`
17395 else
17396 continue
17397 fi
17398 # Extract the definition of DEPDIR, am__include, and am__quote
17399 # from the Makefile without running 'make'.
17400 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17401 test -z "$DEPDIR" && continue
17402 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17403 test -z "$am__include" && continue
17404 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17405 # Find all dependency output files, they are included files with
17406 # $(DEPDIR) in their names. We invoke sed twice because it is the
17407 # simplest approach to changing $(DEPDIR) to its actual value in the
17408 # expansion.
17409 for file in `sed -n "
17410 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17411 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17412 # Make sure the directory exists.
17413 test -f "$dirpart/$file" && continue
17414 fdir=`$as_dirname -- "$file" ||
17415 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17416 X"$file" : 'X\(//\)[^/]' \| \
17417 X"$file" : 'X\(//\)$' \| \
17418 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17419 $as_echo X"$file" |
17420 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17421 s//\1/
17422 q
17423 }
17424 /^X\(\/\/\)[^/].*/{
17425 s//\1/
17426 q
17427 }
17428 /^X\(\/\/\)$/{
17429 s//\1/
17430 q
17431 }
17432 /^X\(\/\).*/{
17433 s//\1/
17434 q
17435 }
17436 s/.*/./; q'`
17437 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17438 # echo "creating $dirpart/$file"
17439 echo '# dummy' > "$dirpart/$file"
17440 done
17441 done
17442 }
17443 ;;
17444 "libtool":C)
17445
17446 # See if we are running on zsh, and set the options which allow our
17447 # commands through without removal of \ escapes.
17448 if test -n "${ZSH_VERSION+set}" ; then
17449 setopt NO_GLOB_SUBST
17450 fi
17451
17452 cfgfile="${ofile}T"
17453 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17454 $RM "$cfgfile"
17455
17456 cat <<_LT_EOF >> "$cfgfile"
17457 #! $SHELL
17458
17459 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17460 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17461 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17462 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17463 #
17464 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17465 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
17466 # Foundation, Inc.
17467 # Written by Gordon Matzigkeit, 1996
17468 #
17469 # This file is part of GNU Libtool.
17470 #
17471 # GNU Libtool is free software; you can redistribute it and/or
17472 # modify it under the terms of the GNU General Public License as
17473 # published by the Free Software Foundation; either version 2 of
17474 # the License, or (at your option) any later version.
17475 #
17476 # As a special exception to the GNU General Public License,
17477 # if you distribute this file as part of a program or library that
17478 # is built using GNU Libtool, you may include this file under the
17479 # same distribution terms that you use for the rest of that program.
17480 #
17481 # GNU Libtool is distributed in the hope that it will be useful,
17482 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17483 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17484 # GNU General Public License for more details.
17485 #
17486 # You should have received a copy of the GNU General Public License
17487 # along with GNU Libtool; see the file COPYING. If not, a copy
17488 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17489 # obtained by writing to the Free Software Foundation, Inc.,
17490 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17491
17492
17493 # The names of the tagged configurations supported by this script.
17494 available_tags="CXX "
17495
17496 # ### BEGIN LIBTOOL CONFIG
17497
17498 # Which release of libtool.m4 was used?
17499 macro_version=$macro_version
17500 macro_revision=$macro_revision
17501
17502 # Whether or not to build static libraries.
17503 build_old_libs=$enable_static
17504
17505 # Whether or not to build shared libraries.
17506 build_libtool_libs=$enable_shared
17507
17508 # What type of objects to build.
17509 pic_mode=$pic_mode
17510
17511 # Whether or not to optimize for fast installation.
17512 fast_install=$enable_fast_install
17513
17514 # Shell to use when invoking shell scripts.
17515 SHELL=$lt_SHELL
17516
17517 # An echo program that protects backslashes.
17518 ECHO=$lt_ECHO
17519
17520 # The PATH separator for the build system.
17521 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17522
17523 # The host system.
17524 host_alias=$host_alias
17525 host=$host
17526 host_os=$host_os
17527
17528 # The build system.
17529 build_alias=$build_alias
17530 build=$build
17531 build_os=$build_os
17532
17533 # A sed program that does not truncate output.
17534 SED=$lt_SED
17535
17536 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17537 Xsed="\$SED -e 1s/^X//"
17538
17539 # A grep program that handles long lines.
17540 GREP=$lt_GREP
17541
17542 # An ERE matcher.
17543 EGREP=$lt_EGREP
17544
17545 # A literal string matcher.
17546 FGREP=$lt_FGREP
17547
17548 # A BSD- or MS-compatible name lister.
17549 NM=$lt_NM
17550
17551 # Whether we need soft or hard links.
17552 LN_S=$lt_LN_S
17553
17554 # What is the maximum length of a command?
17555 max_cmd_len=$max_cmd_len
17556
17557 # Object file suffix (normally "o").
17558 objext=$ac_objext
17559
17560 # Executable file suffix (normally "").
17561 exeext=$exeext
17562
17563 # whether the shell understands "unset".
17564 lt_unset=$lt_unset
17565
17566 # turn spaces into newlines.
17567 SP2NL=$lt_lt_SP2NL
17568
17569 # turn newlines into spaces.
17570 NL2SP=$lt_lt_NL2SP
17571
17572 # convert \$build file names to \$host format.
17573 to_host_file_cmd=$lt_cv_to_host_file_cmd
17574
17575 # convert \$build files to toolchain format.
17576 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17577
17578 # An object symbol dumper.
17579 OBJDUMP=$lt_OBJDUMP
17580
17581 # Method to check whether dependent libraries are shared objects.
17582 deplibs_check_method=$lt_deplibs_check_method
17583
17584 # Command to use when deplibs_check_method = "file_magic".
17585 file_magic_cmd=$lt_file_magic_cmd
17586
17587 # How to find potential files when deplibs_check_method = "file_magic".
17588 file_magic_glob=$lt_file_magic_glob
17589
17590 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17591 want_nocaseglob=$lt_want_nocaseglob
17592
17593 # DLL creation program.
17594 DLLTOOL=$lt_DLLTOOL
17595
17596 # Command to associate shared and link libraries.
17597 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17598
17599 # The archiver.
17600 AR=$lt_AR
17601
17602 # Flags to create an archive.
17603 AR_FLAGS=$lt_AR_FLAGS
17604
17605 # How to feed a file listing to the archiver.
17606 archiver_list_spec=$lt_archiver_list_spec
17607
17608 # A symbol stripping program.
17609 STRIP=$lt_STRIP
17610
17611 # Commands used to install an old-style archive.
17612 RANLIB=$lt_RANLIB
17613 old_postinstall_cmds=$lt_old_postinstall_cmds
17614 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17615
17616 # Whether to use a lock for old archive extraction.
17617 lock_old_archive_extraction=$lock_old_archive_extraction
17618
17619 # A C compiler.
17620 LTCC=$lt_CC
17621
17622 # LTCC compiler flags.
17623 LTCFLAGS=$lt_CFLAGS
17624
17625 # Take the output of nm and produce a listing of raw symbols and C names.
17626 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17627
17628 # Transform the output of nm in a proper C declaration.
17629 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17630
17631 # Transform the output of nm in a C name address pair.
17632 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17633
17634 # Transform the output of nm in a C name address pair when lib prefix is needed.
17635 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17636
17637 # Specify filename containing input files for \$NM.
17638 nm_file_list_spec=$lt_nm_file_list_spec
17639
17640 # The root where to search for dependent libraries,and in which our libraries should be installed.
17641 lt_sysroot=$lt_sysroot
17642
17643 # The name of the directory that contains temporary libtool files.
17644 objdir=$objdir
17645
17646 # Used to examine libraries when file_magic_cmd begins with "file".
17647 MAGIC_CMD=$MAGIC_CMD
17648
17649 # Must we lock files when doing compilation?
17650 need_locks=$lt_need_locks
17651
17652 # Manifest tool.
17653 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17654
17655 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17656 DSYMUTIL=$lt_DSYMUTIL
17657
17658 # Tool to change global to local symbols on Mac OS X.
17659 NMEDIT=$lt_NMEDIT
17660
17661 # Tool to manipulate fat objects and archives on Mac OS X.
17662 LIPO=$lt_LIPO
17663
17664 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17665 OTOOL=$lt_OTOOL
17666
17667 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17668 OTOOL64=$lt_OTOOL64
17669
17670 # Old archive suffix (normally "a").
17671 libext=$libext
17672
17673 # Shared library suffix (normally ".so").
17674 shrext_cmds=$lt_shrext_cmds
17675
17676 # The commands to extract the exported symbol list from a shared archive.
17677 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17678
17679 # Variables whose values should be saved in libtool wrapper scripts and
17680 # restored at link time.
17681 variables_saved_for_relink=$lt_variables_saved_for_relink
17682
17683 # Do we need the "lib" prefix for modules?
17684 need_lib_prefix=$need_lib_prefix
17685
17686 # Do we need a version for libraries?
17687 need_version=$need_version
17688
17689 # Library versioning type.
17690 version_type=$version_type
17691
17692 # Shared library runtime path variable.
17693 runpath_var=$runpath_var
17694
17695 # Shared library path variable.
17696 shlibpath_var=$shlibpath_var
17697
17698 # Is shlibpath searched before the hard-coded library search path?
17699 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17700
17701 # Format of library name prefix.
17702 libname_spec=$lt_libname_spec
17703
17704 # List of archive names. First name is the real one, the rest are links.
17705 # The last name is the one that the linker finds with -lNAME
17706 library_names_spec=$lt_library_names_spec
17707
17708 # The coded name of the library, if different from the real name.
17709 soname_spec=$lt_soname_spec
17710
17711 # Permission mode override for installation of shared libraries.
17712 install_override_mode=$lt_install_override_mode
17713
17714 # Command to use after installation of a shared archive.
17715 postinstall_cmds=$lt_postinstall_cmds
17716
17717 # Command to use after uninstallation of a shared archive.
17718 postuninstall_cmds=$lt_postuninstall_cmds
17719
17720 # Commands used to finish a libtool library installation in a directory.
17721 finish_cmds=$lt_finish_cmds
17722
17723 # As "finish_cmds", except a single script fragment to be evaled but
17724 # not shown.
17725 finish_eval=$lt_finish_eval
17726
17727 # Whether we should hardcode library paths into libraries.
17728 hardcode_into_libs=$hardcode_into_libs
17729
17730 # Compile-time system search path for libraries.
17731 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17732
17733 # Run-time system search path for libraries.
17734 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17735
17736 # Whether dlopen is supported.
17737 dlopen_support=$enable_dlopen
17738
17739 # Whether dlopen of programs is supported.
17740 dlopen_self=$enable_dlopen_self
17741
17742 # Whether dlopen of statically linked programs is supported.
17743 dlopen_self_static=$enable_dlopen_self_static
17744
17745 # Commands to strip libraries.
17746 old_striplib=$lt_old_striplib
17747 striplib=$lt_striplib
17748
17749
17750 # The linker used to build libraries.
17751 LD=$lt_LD
17752
17753 # How to create reloadable object files.
17754 reload_flag=$lt_reload_flag
17755 reload_cmds=$lt_reload_cmds
17756
17757 # Commands used to build an old-style archive.
17758 old_archive_cmds=$lt_old_archive_cmds
17759
17760 # A language specific compiler.
17761 CC=$lt_compiler
17762
17763 # Is the compiler the GNU compiler?
17764 with_gcc=$GCC
17765
17766 # Compiler flag to turn off builtin functions.
17767 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17768
17769 # Additional compiler flags for building library objects.
17770 pic_flag=$lt_lt_prog_compiler_pic
17771
17772 # How to pass a linker flag through the compiler.
17773 wl=$lt_lt_prog_compiler_wl
17774
17775 # Compiler flag to prevent dynamic linking.
17776 link_static_flag=$lt_lt_prog_compiler_static
17777
17778 # Does compiler simultaneously support -c and -o options?
17779 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17780
17781 # Whether or not to add -lc for building shared libraries.
17782 build_libtool_need_lc=$archive_cmds_need_lc
17783
17784 # Whether or not to disallow shared libs when runtime libs are static.
17785 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17786
17787 # Compiler flag to allow reflexive dlopens.
17788 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17789
17790 # Compiler flag to generate shared objects directly from archives.
17791 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17792
17793 # Whether the compiler copes with passing no objects directly.
17794 compiler_needs_object=$lt_compiler_needs_object
17795
17796 # Create an old-style archive from a shared archive.
17797 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17798
17799 # Create a temporary old-style archive to link instead of a shared archive.
17800 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17801
17802 # Commands used to build a shared archive.
17803 archive_cmds=$lt_archive_cmds
17804 archive_expsym_cmds=$lt_archive_expsym_cmds
17805
17806 # Commands used to build a loadable module if different from building
17807 # a shared archive.
17808 module_cmds=$lt_module_cmds
17809 module_expsym_cmds=$lt_module_expsym_cmds
17810
17811 # Whether we are building with GNU ld or not.
17812 with_gnu_ld=$lt_with_gnu_ld
17813
17814 # Flag that allows shared libraries with undefined symbols to be built.
17815 allow_undefined_flag=$lt_allow_undefined_flag
17816
17817 # Flag that enforces no undefined symbols.
17818 no_undefined_flag=$lt_no_undefined_flag
17819
17820 # Flag to hardcode \$libdir into a binary during linking.
17821 # This must work even if \$libdir does not exist
17822 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17823
17824 # Whether we need a single "-rpath" flag with a separated argument.
17825 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17826
17827 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17828 # DIR into the resulting binary.
17829 hardcode_direct=$hardcode_direct
17830
17831 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17832 # DIR into the resulting binary and the resulting library dependency is
17833 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17834 # library is relocated.
17835 hardcode_direct_absolute=$hardcode_direct_absolute
17836
17837 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17838 # into the resulting binary.
17839 hardcode_minus_L=$hardcode_minus_L
17840
17841 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17842 # into the resulting binary.
17843 hardcode_shlibpath_var=$hardcode_shlibpath_var
17844
17845 # Set to "yes" if building a shared library automatically hardcodes DIR
17846 # into the library and all subsequent libraries and executables linked
17847 # against it.
17848 hardcode_automatic=$hardcode_automatic
17849
17850 # Set to yes if linker adds runtime paths of dependent libraries
17851 # to runtime path list.
17852 inherit_rpath=$inherit_rpath
17853
17854 # Whether libtool must link a program against all its dependency libraries.
17855 link_all_deplibs=$link_all_deplibs
17856
17857 # Set to "yes" if exported symbols are required.
17858 always_export_symbols=$always_export_symbols
17859
17860 # The commands to list exported symbols.
17861 export_symbols_cmds=$lt_export_symbols_cmds
17862
17863 # Symbols that should not be listed in the preloaded symbols.
17864 exclude_expsyms=$lt_exclude_expsyms
17865
17866 # Symbols that must always be exported.
17867 include_expsyms=$lt_include_expsyms
17868
17869 # Commands necessary for linking programs (against libraries) with templates.
17870 prelink_cmds=$lt_prelink_cmds
17871
17872 # Commands necessary for finishing linking programs.
17873 postlink_cmds=$lt_postlink_cmds
17874
17875 # Specify filename containing input files.
17876 file_list_spec=$lt_file_list_spec
17877
17878 # How to hardcode a shared library path into an executable.
17879 hardcode_action=$hardcode_action
17880
17881 # The directories searched by this compiler when creating a shared library.
17882 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17883
17884 # Dependencies to place before and after the objects being linked to
17885 # create a shared library.
17886 predep_objects=$lt_predep_objects
17887 postdep_objects=$lt_postdep_objects
17888 predeps=$lt_predeps
17889 postdeps=$lt_postdeps
17890
17891 # The library search path used internally by the compiler when linking
17892 # a shared library.
17893 compiler_lib_search_path=$lt_compiler_lib_search_path
17894
17895 # ### END LIBTOOL CONFIG
17896
17897 _LT_EOF
17898
17899 case $host_os in
17900 aix3*)
17901 cat <<\_LT_EOF >> "$cfgfile"
17902 # AIX sometimes has problems with the GCC collect2 program. For some
17903 # reason, if we set the COLLECT_NAMES environment variable, the problems
17904 # vanish in a puff of smoke.
17905 if test "X${COLLECT_NAMES+set}" != Xset; then
17906 COLLECT_NAMES=
17907 export COLLECT_NAMES
17908 fi
17909 _LT_EOF
17910 ;;
17911 esac
17912
17913
17914 ltmain="$ac_aux_dir/ltmain.sh"
17915
17916
17917 # We use sed instead of cat because bash on DJGPP gets confused if
17918 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17919 # text mode, it properly converts lines to CR/LF. This bash problem
17920 # is reportedly fixed, but why not run on old versions too?
17921 sed '$q' "$ltmain" >> "$cfgfile" \
17922 || (rm -f "$cfgfile"; exit 1)
17923
17924 if test x"$xsi_shell" = xyes; then
17925 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17926 func_dirname ()\
17927 {\
17928 \ case ${1} in\
17929 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17930 \ * ) func_dirname_result="${3}" ;;\
17931 \ esac\
17932 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17933 && mv -f "$cfgfile.tmp" "$cfgfile" \
17934 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17935 test 0 -eq $? || _lt_function_replace_fail=:
17936
17937
17938 sed -e '/^func_basename ()$/,/^} # func_basename /c\
17939 func_basename ()\
17940 {\
17941 \ func_basename_result="${1##*/}"\
17942 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17943 && mv -f "$cfgfile.tmp" "$cfgfile" \
17944 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17945 test 0 -eq $? || _lt_function_replace_fail=:
17946
17947
17948 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17949 func_dirname_and_basename ()\
17950 {\
17951 \ case ${1} in\
17952 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17953 \ * ) func_dirname_result="${3}" ;;\
17954 \ esac\
17955 \ func_basename_result="${1##*/}"\
17956 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17957 && mv -f "$cfgfile.tmp" "$cfgfile" \
17958 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17959 test 0 -eq $? || _lt_function_replace_fail=:
17960
17961
17962 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17963 func_stripname ()\
17964 {\
17965 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17966 \ # positional parameters, so assign one to ordinary parameter first.\
17967 \ func_stripname_result=${3}\
17968 \ func_stripname_result=${func_stripname_result#"${1}"}\
17969 \ func_stripname_result=${func_stripname_result%"${2}"}\
17970 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17971 && mv -f "$cfgfile.tmp" "$cfgfile" \
17972 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17973 test 0 -eq $? || _lt_function_replace_fail=:
17974
17975
17976 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17977 func_split_long_opt ()\
17978 {\
17979 \ func_split_long_opt_name=${1%%=*}\
17980 \ func_split_long_opt_arg=${1#*=}\
17981 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17982 && mv -f "$cfgfile.tmp" "$cfgfile" \
17983 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17984 test 0 -eq $? || _lt_function_replace_fail=:
17985
17986
17987 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17988 func_split_short_opt ()\
17989 {\
17990 \ func_split_short_opt_arg=${1#??}\
17991 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17992 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17993 && mv -f "$cfgfile.tmp" "$cfgfile" \
17994 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17995 test 0 -eq $? || _lt_function_replace_fail=:
17996
17997
17998 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17999 func_lo2o ()\
18000 {\
18001 \ case ${1} in\
18002 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18003 \ *) func_lo2o_result=${1} ;;\
18004 \ esac\
18005 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18006 && mv -f "$cfgfile.tmp" "$cfgfile" \
18007 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18008 test 0 -eq $? || _lt_function_replace_fail=:
18009
18010
18011 sed -e '/^func_xform ()$/,/^} # func_xform /c\
18012 func_xform ()\
18013 {\
18014 func_xform_result=${1%.*}.lo\
18015 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18016 && mv -f "$cfgfile.tmp" "$cfgfile" \
18017 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18018 test 0 -eq $? || _lt_function_replace_fail=:
18019
18020
18021 sed -e '/^func_arith ()$/,/^} # func_arith /c\
18022 func_arith ()\
18023 {\
18024 func_arith_result=$(( $* ))\
18025 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18026 && mv -f "$cfgfile.tmp" "$cfgfile" \
18027 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18028 test 0 -eq $? || _lt_function_replace_fail=:
18029
18030
18031 sed -e '/^func_len ()$/,/^} # func_len /c\
18032 func_len ()\
18033 {\
18034 func_len_result=${#1}\
18035 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18036 && mv -f "$cfgfile.tmp" "$cfgfile" \
18037 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18038 test 0 -eq $? || _lt_function_replace_fail=:
18039
18040 fi
18041
18042 if test x"$lt_shell_append" = xyes; then
18043 sed -e '/^func_append ()$/,/^} # func_append /c\
18044 func_append ()\
18045 {\
18046 eval "${1}+=\\${2}"\
18047 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18048 && mv -f "$cfgfile.tmp" "$cfgfile" \
18049 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18050 test 0 -eq $? || _lt_function_replace_fail=:
18051
18052
18053 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18054 func_append_quoted ()\
18055 {\
18056 \ func_quote_for_eval "${2}"\
18057 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18058 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18059 && mv -f "$cfgfile.tmp" "$cfgfile" \
18060 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18061 test 0 -eq $? || _lt_function_replace_fail=:
18062
18063
18064 # Save a `func_append' function call where possible by direct use of '+='
18065 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18066 && mv -f "$cfgfile.tmp" "$cfgfile" \
18067 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18068 test 0 -eq $? || _lt_function_replace_fail=:
18069 else
18070 # Save a `func_append' function call even when '+=' is not available
18071 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18072 && mv -f "$cfgfile.tmp" "$cfgfile" \
18073 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18074 test 0 -eq $? || _lt_function_replace_fail=:
18075 fi
18076
18077 if test x"$_lt_function_replace_fail" = x":"; then
18078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18079 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18080 fi
18081
18082
18083 mv -f "$cfgfile" "$ofile" ||
18084 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18085 chmod +x "$ofile"
18086
18087
18088 cat <<_LT_EOF >> "$ofile"
18089
18090 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18091
18092 # The linker used to build libraries.
18093 LD=$lt_LD_CXX
18094
18095 # How to create reloadable object files.
18096 reload_flag=$lt_reload_flag_CXX
18097 reload_cmds=$lt_reload_cmds_CXX
18098
18099 # Commands used to build an old-style archive.
18100 old_archive_cmds=$lt_old_archive_cmds_CXX
18101
18102 # A language specific compiler.
18103 CC=$lt_compiler_CXX
18104
18105 # Is the compiler the GNU compiler?
18106 with_gcc=$GCC_CXX
18107
18108 # Compiler flag to turn off builtin functions.
18109 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18110
18111 # Additional compiler flags for building library objects.
18112 pic_flag=$lt_lt_prog_compiler_pic_CXX
18113
18114 # How to pass a linker flag through the compiler.
18115 wl=$lt_lt_prog_compiler_wl_CXX
18116
18117 # Compiler flag to prevent dynamic linking.
18118 link_static_flag=$lt_lt_prog_compiler_static_CXX
18119
18120 # Does compiler simultaneously support -c and -o options?
18121 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18122
18123 # Whether or not to add -lc for building shared libraries.
18124 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18125
18126 # Whether or not to disallow shared libs when runtime libs are static.
18127 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18128
18129 # Compiler flag to allow reflexive dlopens.
18130 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18131
18132 # Compiler flag to generate shared objects directly from archives.
18133 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18134
18135 # Whether the compiler copes with passing no objects directly.
18136 compiler_needs_object=$lt_compiler_needs_object_CXX
18137
18138 # Create an old-style archive from a shared archive.
18139 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18140
18141 # Create a temporary old-style archive to link instead of a shared archive.
18142 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18143
18144 # Commands used to build a shared archive.
18145 archive_cmds=$lt_archive_cmds_CXX
18146 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18147
18148 # Commands used to build a loadable module if different from building
18149 # a shared archive.
18150 module_cmds=$lt_module_cmds_CXX
18151 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18152
18153 # Whether we are building with GNU ld or not.
18154 with_gnu_ld=$lt_with_gnu_ld_CXX
18155
18156 # Flag that allows shared libraries with undefined symbols to be built.
18157 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18158
18159 # Flag that enforces no undefined symbols.
18160 no_undefined_flag=$lt_no_undefined_flag_CXX
18161
18162 # Flag to hardcode \$libdir into a binary during linking.
18163 # This must work even if \$libdir does not exist
18164 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18165
18166 # Whether we need a single "-rpath" flag with a separated argument.
18167 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18168
18169 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18170 # DIR into the resulting binary.
18171 hardcode_direct=$hardcode_direct_CXX
18172
18173 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18174 # DIR into the resulting binary and the resulting library dependency is
18175 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18176 # library is relocated.
18177 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18178
18179 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18180 # into the resulting binary.
18181 hardcode_minus_L=$hardcode_minus_L_CXX
18182
18183 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18184 # into the resulting binary.
18185 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18186
18187 # Set to "yes" if building a shared library automatically hardcodes DIR
18188 # into the library and all subsequent libraries and executables linked
18189 # against it.
18190 hardcode_automatic=$hardcode_automatic_CXX
18191
18192 # Set to yes if linker adds runtime paths of dependent libraries
18193 # to runtime path list.
18194 inherit_rpath=$inherit_rpath_CXX
18195
18196 # Whether libtool must link a program against all its dependency libraries.
18197 link_all_deplibs=$link_all_deplibs_CXX
18198
18199 # Set to "yes" if exported symbols are required.
18200 always_export_symbols=$always_export_symbols_CXX
18201
18202 # The commands to list exported symbols.
18203 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18204
18205 # Symbols that should not be listed in the preloaded symbols.
18206 exclude_expsyms=$lt_exclude_expsyms_CXX
18207
18208 # Symbols that must always be exported.
18209 include_expsyms=$lt_include_expsyms_CXX
18210
18211 # Commands necessary for linking programs (against libraries) with templates.
18212 prelink_cmds=$lt_prelink_cmds_CXX
18213
18214 # Commands necessary for finishing linking programs.
18215 postlink_cmds=$lt_postlink_cmds_CXX
18216
18217 # Specify filename containing input files.
18218 file_list_spec=$lt_file_list_spec_CXX
18219
18220 # How to hardcode a shared library path into an executable.
18221 hardcode_action=$hardcode_action_CXX
18222
18223 # The directories searched by this compiler when creating a shared library.
18224 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18225
18226 # Dependencies to place before and after the objects being linked to
18227 # create a shared library.
18228 predep_objects=$lt_predep_objects_CXX
18229 postdep_objects=$lt_postdep_objects_CXX
18230 predeps=$lt_predeps_CXX
18231 postdeps=$lt_postdeps_CXX
18232
18233 # The library search path used internally by the compiler when linking
18234 # a shared library.
18235 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18236
18237 # ### END LIBTOOL TAG CONFIG: CXX
18238 _LT_EOF
18239
18240 ;;
18241
18242 esac
18243 done # for ac_tag
18244
18245
18246 as_fn_exit 0
18247 _ACEOF
18248 ac_clean_files=$ac_clean_files_save
18249
18250 test $ac_write_fail = 0 ||
18251 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18252
18253
18254 # configure is writing to config.log, and then calls config.status.
18255 # config.status does its own redirection, appending to config.log.
18256 # Unfortunately, on DOS this fails, as config.log is still kept open
18257 # by configure, so config.status won't be able to write to it; its
18258 # output is simply discarded. So we exec the FD to /dev/null,
18259 # effectively closing config.log, so it can be properly (re)opened and
18260 # appended to by config.status. When coming back to configure, we
18261 # need to make the FD available again.
18262 if test "$no_create" != yes; then
18263 ac_cs_success=:
18264 ac_config_status_args=
18265 test "$silent" = yes &&
18266 ac_config_status_args="$ac_config_status_args --quiet"
18267 exec 5>/dev/null
18268 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18269 exec 5>>config.log
18270 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18271 # would make configure fail if this is the last instruction.
18272 $ac_cs_success || as_fn_exit 1
18273 fi
18274 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18276 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18277 fi
18278