Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libchardet 1.0.6.
4 #
5 # Report bugs to <https://github.com/Joungkyun/libchardet/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell [email protected] and
278 $0: https://github.com/Joungkyun/libchardet/issues about
279 $0: your system, including any error possibly output before
280 $0: this message. Then install a modern shell, or manually
281 $0: run the script under such a shell if you do have one."
282 fi
283 exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301 { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310 return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318 set +e
319 as_fn_set_status $1
320 exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389 else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406 else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433 else
434 as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439 else
440 as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445 else
446 as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
520 *)
521 ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527 else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
544 fi
545 else
546 as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553 else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='libchardet'
592 PACKAGE_TARNAME='libchardet'
593 PACKAGE_VERSION='1.0.6'
594 PACKAGE_STRING='libchardet 1.0.6'
595 PACKAGE_BUGREPORT='https://github.com/Joungkyun/libchardet/issues'
596 PACKAGE_URL=''
597
598 ac_unique_file="src/nsUniversalDetector.h"
599 ac_default_prefix=/usr/local
600 # Factoring default headers for most tests.
601 ac_includes_default="\
602 #include <stdio.h>
603 #ifdef HAVE_SYS_TYPES_H
604 # include <sys/types.h>
605 #endif
606 #ifdef HAVE_SYS_STAT_H
607 # include <sys/stat.h>
608 #endif
609 #ifdef STDC_HEADERS
610 # include <stdlib.h>
611 # include <stddef.h>
612 #else
613 # ifdef HAVE_STDLIB_H
614 # include <stdlib.h>
615 # endif
616 #endif
617 #ifdef HAVE_STRING_H
618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 # include <memory.h>
620 # endif
621 # include <string.h>
622 #endif
623 #ifdef HAVE_STRINGS_H
624 # include <strings.h>
625 #endif
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
628 #endif
629 #ifdef HAVE_STDINT_H
630 # include <stdint.h>
631 #endif
632 #ifdef HAVE_UNISTD_H
633 # include <unistd.h>
634 #endif"
635
636 ac_subst_vars='am__EXEEXT_FALSE
637 am__EXEEXT_TRUE
638 LTLIBOBJS
639 LIBOBJS
640 PACKAGE_DATE
641 DATE
642 PERL
643 CXXCPP
644 OTOOL64
645 OTOOL
646 LIPO
647 NMEDIT
648 DSYMUTIL
649 MANIFEST_TOOL
650 RANLIB
651 DLLTOOL
652 OBJDUMP
653 LN_S
654 NM
655 ac_ct_DUMPBIN
656 DUMPBIN
657 LD
658 FGREP
659 EGREP
660 GREP
661 SED
662 host_os
663 host_vendor
664 host_cpu
665 host
666 build_os
667 build_vendor
668 build_cpu
669 build
670 LIBTOOL
671 ac_ct_AR
672 AR
673 CPP
674 ac_ct_CXX
675 CXXFLAGS
676 CXX
677 OBJEXT
678 EXEEXT
679 ac_ct_CC
680 CPPFLAGS
681 LDFLAGS
682 CFLAGS
683 CC
684 PROG
685 SONAME_REVISION
686 SONAME_MINOR
687 SONAME_MAJOR
688 SONAME_VERSION
689 SONAME_INFO
690 MAINT
691 MAINTAINER_MODE_FALSE
692 MAINTAINER_MODE_TRUE
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 target_alias
721 host_alias
722 build_alias
723 LIBS
724 ECHO_T
725 ECHO_N
726 ECHO_C
727 DEFS
728 mandir
729 localedir
730 libdir
731 psdir
732 pdfdir
733 dvidir
734 htmldir
735 infodir
736 docdir
737 oldincludedir
738 includedir
739 localstatedir
740 sharedstatedir
741 sysconfdir
742 datadir
743 datarootdir
744 libexecdir
745 sbindir
746 bindir
747 program_transform_name
748 prefix
749 exec_prefix
750 PACKAGE_URL
751 PACKAGE_BUGREPORT
752 PACKAGE_STRING
753 PACKAGE_VERSION
754 PACKAGE_TARNAME
755 PACKAGE_NAME
756 PATH_SEPARATOR
757 SHELL
758 MINGW_CYGWIN_DYNLIB
759 GCC_PATCH_VERSION
760 GCC_MINOR_VERSION
761 GCC_MAJOR_VERSION'
762 ac_subst_files=''
763 ac_user_opts='
764 enable_option_checking
765 enable_silent_rules
766 enable_maintainer_mode
767 enable_shared
768 enable_static
769 with_pic
770 enable_fast_install
771 with_gnu_ld
772 with_sysroot
773 enable_libtool_lock
774 '
775 ac_precious_vars='build_alias
776 host_alias
777 target_alias
778 CC
779 CFLAGS
780 LDFLAGS
781 LIBS
782 CPPFLAGS
783 CXX
784 CXXFLAGS
785 CCC
786 CPP
787 CXXCPP'
788
789
790 # Initialize some variables set by options.
791 ac_init_help=
792 ac_init_version=false
793 ac_unrecognized_opts=
794 ac_unrecognized_sep=
795 # The variables have the same names as the options, with
796 # dashes changed to underlines.
797 cache_file=/dev/null
798 exec_prefix=NONE
799 no_create=
800 no_recursion=
801 prefix=NONE
802 program_prefix=NONE
803 program_suffix=NONE
804 program_transform_name=s,x,x,
805 silent=
806 site=
807 srcdir=
808 verbose=
809 x_includes=NONE
810 x_libraries=NONE
811
812 # Installation directory options.
813 # These are left unexpanded so users can "make install exec_prefix=/foo"
814 # and all the variables that are supposed to be based on exec_prefix
815 # by default will actually change.
816 # Use braces instead of parens because sh, perl, etc. also accept them.
817 # (The list follows the same order as the GNU Coding Standards.)
818 bindir='${exec_prefix}/bin'
819 sbindir='${exec_prefix}/sbin'
820 libexecdir='${exec_prefix}/libexec'
821 datarootdir='${prefix}/share'
822 datadir='${datarootdir}'
823 sysconfdir='${prefix}/etc'
824 sharedstatedir='${prefix}/com'
825 localstatedir='${prefix}/var'
826 includedir='${prefix}/include'
827 oldincludedir='/usr/include'
828 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
829 infodir='${datarootdir}/info'
830 htmldir='${docdir}'
831 dvidir='${docdir}'
832 pdfdir='${docdir}'
833 psdir='${docdir}'
834 libdir='${exec_prefix}/lib'
835 localedir='${datarootdir}/locale'
836 mandir='${datarootdir}/man'
837
838 ac_prev=
839 ac_dashdash=
840 for ac_option
841 do
842 # If the previous option needs an argument, assign it.
843 if test -n "$ac_prev"; then
844 eval $ac_prev=\$ac_option
845 ac_prev=
846 continue
847 fi
848
849 case $ac_option in
850 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
851 *=) ac_optarg= ;;
852 *) ac_optarg=yes ;;
853 esac
854
855 # Accept the important Cygnus configure options, so we can diagnose typos.
856
857 case $ac_dashdash$ac_option in
858 --)
859 ac_dashdash=yes ;;
860
861 -bindir | --bindir | --bindi | --bind | --bin | --bi)
862 ac_prev=bindir ;;
863 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
864 bindir=$ac_optarg ;;
865
866 -build | --build | --buil | --bui | --bu)
867 ac_prev=build_alias ;;
868 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
869 build_alias=$ac_optarg ;;
870
871 -cache-file | --cache-file | --cache-fil | --cache-fi \
872 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
873 ac_prev=cache_file ;;
874 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
875 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
876 cache_file=$ac_optarg ;;
877
878 --config-cache | -C)
879 cache_file=config.cache ;;
880
881 -datadir | --datadir | --datadi | --datad)
882 ac_prev=datadir ;;
883 -datadir=* | --datadir=* | --datadi=* | --datad=*)
884 datadir=$ac_optarg ;;
885
886 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
887 | --dataroo | --dataro | --datar)
888 ac_prev=datarootdir ;;
889 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
890 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
891 datarootdir=$ac_optarg ;;
892
893 -disable-* | --disable-*)
894 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
895 # Reject names that are not valid shell variable names.
896 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
897 as_fn_error $? "invalid feature name: $ac_useropt"
898 ac_useropt_orig=$ac_useropt
899 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
900 case $ac_user_opts in
901 *"
902 "enable_$ac_useropt"
903 "*) ;;
904 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
905 ac_unrecognized_sep=', ';;
906 esac
907 eval enable_$ac_useropt=no ;;
908
909 -docdir | --docdir | --docdi | --doc | --do)
910 ac_prev=docdir ;;
911 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
912 docdir=$ac_optarg ;;
913
914 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
915 ac_prev=dvidir ;;
916 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
917 dvidir=$ac_optarg ;;
918
919 -enable-* | --enable-*)
920 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
921 # Reject names that are not valid shell variable names.
922 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
923 as_fn_error $? "invalid feature name: $ac_useropt"
924 ac_useropt_orig=$ac_useropt
925 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
926 case $ac_user_opts in
927 *"
928 "enable_$ac_useropt"
929 "*) ;;
930 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
931 ac_unrecognized_sep=', ';;
932 esac
933 eval enable_$ac_useropt=\$ac_optarg ;;
934
935 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
936 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
937 | --exec | --exe | --ex)
938 ac_prev=exec_prefix ;;
939 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
940 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
941 | --exec=* | --exe=* | --ex=*)
942 exec_prefix=$ac_optarg ;;
943
944 -gas | --gas | --ga | --g)
945 # Obsolete; use --with-gas.
946 with_gas=yes ;;
947
948 -help | --help | --hel | --he | -h)
949 ac_init_help=long ;;
950 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
951 ac_init_help=recursive ;;
952 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
953 ac_init_help=short ;;
954
955 -host | --host | --hos | --ho)
956 ac_prev=host_alias ;;
957 -host=* | --host=* | --hos=* | --ho=*)
958 host_alias=$ac_optarg ;;
959
960 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
961 ac_prev=htmldir ;;
962 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
963 | --ht=*)
964 htmldir=$ac_optarg ;;
965
966 -includedir | --includedir | --includedi | --included | --include \
967 | --includ | --inclu | --incl | --inc)
968 ac_prev=includedir ;;
969 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
970 | --includ=* | --inclu=* | --incl=* | --inc=*)
971 includedir=$ac_optarg ;;
972
973 -infodir | --infodir | --infodi | --infod | --info | --inf)
974 ac_prev=infodir ;;
975 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
976 infodir=$ac_optarg ;;
977
978 -libdir | --libdir | --libdi | --libd)
979 ac_prev=libdir ;;
980 -libdir=* | --libdir=* | --libdi=* | --libd=*)
981 libdir=$ac_optarg ;;
982
983 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
984 | --libexe | --libex | --libe)
985 ac_prev=libexecdir ;;
986 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
987 | --libexe=* | --libex=* | --libe=*)
988 libexecdir=$ac_optarg ;;
989
990 -localedir | --localedir | --localedi | --localed | --locale)
991 ac_prev=localedir ;;
992 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
993 localedir=$ac_optarg ;;
994
995 -localstatedir | --localstatedir | --localstatedi | --localstated \
996 | --localstate | --localstat | --localsta | --localst | --locals)
997 ac_prev=localstatedir ;;
998 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
999 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1000 localstatedir=$ac_optarg ;;
1001
1002 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1003 ac_prev=mandir ;;
1004 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1005 mandir=$ac_optarg ;;
1006
1007 -nfp | --nfp | --nf)
1008 # Obsolete; use --without-fp.
1009 with_fp=no ;;
1010
1011 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1012 | --no-cr | --no-c | -n)
1013 no_create=yes ;;
1014
1015 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1016 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1017 no_recursion=yes ;;
1018
1019 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1020 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1021 | --oldin | --oldi | --old | --ol | --o)
1022 ac_prev=oldincludedir ;;
1023 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1024 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1025 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1026 oldincludedir=$ac_optarg ;;
1027
1028 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1029 ac_prev=prefix ;;
1030 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1031 prefix=$ac_optarg ;;
1032
1033 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1034 | --program-pre | --program-pr | --program-p)
1035 ac_prev=program_prefix ;;
1036 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1037 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1038 program_prefix=$ac_optarg ;;
1039
1040 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1041 | --program-suf | --program-su | --program-s)
1042 ac_prev=program_suffix ;;
1043 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1044 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1045 program_suffix=$ac_optarg ;;
1046
1047 -program-transform-name | --program-transform-name \
1048 | --program-transform-nam | --program-transform-na \
1049 | --program-transform-n | --program-transform- \
1050 | --program-transform | --program-transfor \
1051 | --program-transfo | --program-transf \
1052 | --program-trans | --program-tran \
1053 | --progr-tra | --program-tr | --program-t)
1054 ac_prev=program_transform_name ;;
1055 -program-transform-name=* | --program-transform-name=* \
1056 | --program-transform-nam=* | --program-transform-na=* \
1057 | --program-transform-n=* | --program-transform-=* \
1058 | --program-transform=* | --program-transfor=* \
1059 | --program-transfo=* | --program-transf=* \
1060 | --program-trans=* | --program-tran=* \
1061 | --progr-tra=* | --program-tr=* | --program-t=*)
1062 program_transform_name=$ac_optarg ;;
1063
1064 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1065 ac_prev=pdfdir ;;
1066 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1067 pdfdir=$ac_optarg ;;
1068
1069 -psdir | --psdir | --psdi | --psd | --ps)
1070 ac_prev=psdir ;;
1071 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1072 psdir=$ac_optarg ;;
1073
1074 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1075 | -silent | --silent | --silen | --sile | --sil)
1076 silent=yes ;;
1077
1078 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1079 ac_prev=sbindir ;;
1080 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1081 | --sbi=* | --sb=*)
1082 sbindir=$ac_optarg ;;
1083
1084 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1085 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1086 | --sharedst | --shareds | --shared | --share | --shar \
1087 | --sha | --sh)
1088 ac_prev=sharedstatedir ;;
1089 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1090 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1091 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1092 | --sha=* | --sh=*)
1093 sharedstatedir=$ac_optarg ;;
1094
1095 -site | --site | --sit)
1096 ac_prev=site ;;
1097 -site=* | --site=* | --sit=*)
1098 site=$ac_optarg ;;
1099
1100 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1101 ac_prev=srcdir ;;
1102 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1103 srcdir=$ac_optarg ;;
1104
1105 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1106 | --syscon | --sysco | --sysc | --sys | --sy)
1107 ac_prev=sysconfdir ;;
1108 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1109 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1110 sysconfdir=$ac_optarg ;;
1111
1112 -target | --target | --targe | --targ | --tar | --ta | --t)
1113 ac_prev=target_alias ;;
1114 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1115 target_alias=$ac_optarg ;;
1116
1117 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1118 verbose=yes ;;
1119
1120 -version | --version | --versio | --versi | --vers | -V)
1121 ac_init_version=: ;;
1122
1123 -with-* | --with-*)
1124 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1125 # Reject names that are not valid shell variable names.
1126 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1127 as_fn_error $? "invalid package name: $ac_useropt"
1128 ac_useropt_orig=$ac_useropt
1129 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1130 case $ac_user_opts in
1131 *"
1132 "with_$ac_useropt"
1133 "*) ;;
1134 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1135 ac_unrecognized_sep=', ';;
1136 esac
1137 eval with_$ac_useropt=\$ac_optarg ;;
1138
1139 -without-* | --without-*)
1140 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1141 # Reject names that are not valid shell variable names.
1142 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1143 as_fn_error $? "invalid package name: $ac_useropt"
1144 ac_useropt_orig=$ac_useropt
1145 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1146 case $ac_user_opts in
1147 *"
1148 "with_$ac_useropt"
1149 "*) ;;
1150 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1151 ac_unrecognized_sep=', ';;
1152 esac
1153 eval with_$ac_useropt=no ;;
1154
1155 --x)
1156 # Obsolete; use --with-x.
1157 with_x=yes ;;
1158
1159 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1160 | --x-incl | --x-inc | --x-in | --x-i)
1161 ac_prev=x_includes ;;
1162 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1163 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1164 x_includes=$ac_optarg ;;
1165
1166 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1167 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1168 ac_prev=x_libraries ;;
1169 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1170 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1171 x_libraries=$ac_optarg ;;
1172
1173 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1174 Try \`$0 --help' for more information"
1175 ;;
1176
1177 *=*)
1178 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1179 # Reject names that are not valid shell variable names.
1180 case $ac_envvar in #(
1181 '' | [0-9]* | *[!_$as_cr_alnum]* )
1182 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1183 esac
1184 eval $ac_envvar=\$ac_optarg
1185 export $ac_envvar ;;
1186
1187 *)
1188 # FIXME: should be removed in autoconf 3.0.
1189 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1190 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1191 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1192 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1193 ;;
1194
1195 esac
1196 done
1197
1198 if test -n "$ac_prev"; then
1199 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1200 as_fn_error $? "missing argument to $ac_option"
1201 fi
1202
1203 if test -n "$ac_unrecognized_opts"; then
1204 case $enable_option_checking in
1205 no) ;;
1206 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1207 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1208 esac
1209 fi
1210
1211 # Check all directory arguments for consistency.
1212 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1213 datadir sysconfdir sharedstatedir localstatedir includedir \
1214 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1215 libdir localedir mandir
1216 do
1217 eval ac_val=\$$ac_var
1218 # Remove trailing slashes.
1219 case $ac_val in
1220 */ )
1221 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1222 eval $ac_var=\$ac_val;;
1223 esac
1224 # Be sure to have absolute directory names.
1225 case $ac_val in
1226 [\\/$]* | ?:[\\/]* ) continue;;
1227 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1228 esac
1229 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1230 done
1231
1232 # There might be people who depend on the old broken behavior: `$host'
1233 # used to hold the argument of --host etc.
1234 # FIXME: To remove some day.
1235 build=$build_alias
1236 host=$host_alias
1237 target=$target_alias
1238
1239 # FIXME: To remove some day.
1240 if test "x$host_alias" != x; then
1241 if test "x$build_alias" = x; then
1242 cross_compiling=maybe
1243 elif test "x$build_alias" != "x$host_alias"; then
1244 cross_compiling=yes
1245 fi
1246 fi
1247
1248 ac_tool_prefix=
1249 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1250
1251 test "$silent" = yes && exec 6>/dev/null
1252
1253
1254 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1255 ac_ls_di=`ls -di .` &&
1256 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1257 as_fn_error $? "working directory cannot be determined"
1258 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1259 as_fn_error $? "pwd does not report name of working directory"
1260
1261
1262 # Find the source files, if location was not specified.
1263 if test -z "$srcdir"; then
1264 ac_srcdir_defaulted=yes
1265 # Try the directory containing this script, then the parent directory.
1266 ac_confdir=`$as_dirname -- "$as_myself" ||
1267 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1268 X"$as_myself" : 'X\(//\)[^/]' \| \
1269 X"$as_myself" : 'X\(//\)$' \| \
1270 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1271 $as_echo X"$as_myself" |
1272 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1273 s//\1/
1274 q
1275 }
1276 /^X\(\/\/\)[^/].*/{
1277 s//\1/
1278 q
1279 }
1280 /^X\(\/\/\)$/{
1281 s//\1/
1282 q
1283 }
1284 /^X\(\/\).*/{
1285 s//\1/
1286 q
1287 }
1288 s/.*/./; q'`
1289 srcdir=$ac_confdir
1290 if test ! -r "$srcdir/$ac_unique_file"; then
1291 srcdir=..
1292 fi
1293 else
1294 ac_srcdir_defaulted=no
1295 fi
1296 if test ! -r "$srcdir/$ac_unique_file"; then
1297 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1298 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1299 fi
1300 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1301 ac_abs_confdir=`(
1302 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1303 pwd)`
1304 # When building in place, set srcdir=.
1305 if test "$ac_abs_confdir" = "$ac_pwd"; then
1306 srcdir=.
1307 fi
1308 # Remove unnecessary trailing slashes from srcdir.
1309 # Double slashes in file names in object file debugging info
1310 # mess up M-x gdb in Emacs.
1311 case $srcdir in
1312 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1313 esac
1314 for ac_var in $ac_precious_vars; do
1315 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1316 eval ac_env_${ac_var}_value=\$${ac_var}
1317 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1318 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1319 done
1320
1321 #
1322 # Report the --help message.
1323 #
1324 if test "$ac_init_help" = "long"; then
1325 # Omit some internal or obsolete options to make the list less imposing.
1326 # This message is too long to be a string in the A/UX 3.1 sh.
1327 cat <<_ACEOF
1328 \`configure' configures libchardet 1.0.6 to adapt to many kinds of systems.
1329
1330 Usage: $0 [OPTION]... [VAR=VALUE]...
1331
1332 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1333 VAR=VALUE. See below for descriptions of some of the useful variables.
1334
1335 Defaults for the options are specified in brackets.
1336
1337 Configuration:
1338 -h, --help display this help and exit
1339 --help=short display options specific to this package
1340 --help=recursive display the short help of all the included packages
1341 -V, --version display version information and exit
1342 -q, --quiet, --silent do not print \`checking ...' messages
1343 --cache-file=FILE cache test results in FILE [disabled]
1344 -C, --config-cache alias for \`--cache-file=config.cache'
1345 -n, --no-create do not create output files
1346 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1347
1348 Installation directories:
1349 --prefix=PREFIX install architecture-independent files in PREFIX
1350 [$ac_default_prefix]
1351 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1352 [PREFIX]
1353
1354 By default, \`make install' will install all the files in
1355 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1356 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1357 for instance \`--prefix=\$HOME'.
1358
1359 For better control, use the options below.
1360
1361 Fine tuning of the installation directories:
1362 --bindir=DIR user executables [EPREFIX/bin]
1363 --sbindir=DIR system admin executables [EPREFIX/sbin]
1364 --libexecdir=DIR program executables [EPREFIX/libexec]
1365 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1366 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1367 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1368 --libdir=DIR object code libraries [EPREFIX/lib]
1369 --includedir=DIR C header files [PREFIX/include]
1370 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1371 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1372 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1373 --infodir=DIR info documentation [DATAROOTDIR/info]
1374 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1375 --mandir=DIR man documentation [DATAROOTDIR/man]
1376 --docdir=DIR documentation root [DATAROOTDIR/doc/libchardet]
1377 --htmldir=DIR html documentation [DOCDIR]
1378 --dvidir=DIR dvi documentation [DOCDIR]
1379 --pdfdir=DIR pdf documentation [DOCDIR]
1380 --psdir=DIR ps documentation [DOCDIR]
1381 _ACEOF
1382
1383 cat <<\_ACEOF
1384
1385 Program names:
1386 --program-prefix=PREFIX prepend PREFIX to installed program names
1387 --program-suffix=SUFFIX append SUFFIX to installed program names
1388 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1389
1390 System types:
1391 --build=BUILD configure for building on BUILD [guessed]
1392 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1393 _ACEOF
1394 fi
1395
1396 if test -n "$ac_init_help"; then
1397 case $ac_init_help in
1398 short | recursive ) echo "Configuration of libchardet 1.0.6:";;
1399 esac
1400 cat <<\_ACEOF
1401
1402 Optional Features:
1403 --disable-option-checking ignore unrecognized --enable/--with options
1404 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1405 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1406 --enable-silent-rules less verbose build output (undo: "make V=1")
1407 --disable-silent-rules verbose build output (undo: "make V=0")
1408 --enable-maintainer-mode
1409 enable make rules and dependencies not useful (and
1410 sometimes confusing) to the casual installer
1411 --enable-shared[=PKGS] build shared libraries [default=yes]
1412 --enable-static[=PKGS] build static 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 CC C compiler command
1428 CFLAGS 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 CXX C++ compiler command
1435 CXXFLAGS 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 <https://github.com/Joungkyun/libchardet/issues>.
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 libchardet configure 1.0.6
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_c_try_compile LINENO
1520 # --------------------------
1521 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1522 ac_fn_c_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_c_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_c_try_compile
1556
1557 # ac_fn_cxx_try_compile LINENO
1558 # ----------------------------
1559 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1560 ac_fn_cxx_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_cxx_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_cxx_try_compile
1594
1595 # ac_fn_c_try_cpp LINENO
1596 # ----------------------
1597 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1598 ac_fn_c_try_cpp ()
1599 {
1600 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1601 if { { ac_try="$ac_cpp conftest.$ac_ext"
1602 case "(($ac_try" in
1603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1604 *) ac_try_echo=$ac_try;;
1605 esac
1606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1607 $as_echo "$ac_try_echo"; } >&5
1608 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1609 ac_status=$?
1610 if test -s conftest.err; then
1611 grep -v '^ *+' conftest.err >conftest.er1
1612 cat conftest.er1 >&5
1613 mv -f conftest.er1 conftest.err
1614 fi
1615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1616 test $ac_status = 0; } > conftest.i && {
1617 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1618 test ! -s conftest.err
1619 }; then :
1620 ac_retval=0
1621 else
1622 $as_echo "$as_me: failed program was:" >&5
1623 sed 's/^/| /' conftest.$ac_ext >&5
1624
1625 ac_retval=1
1626 fi
1627 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1628 as_fn_set_status $ac_retval
1629
1630 } # ac_fn_c_try_cpp
1631
1632 # ac_fn_c_try_link LINENO
1633 # -----------------------
1634 # Try to link conftest.$ac_ext, and return whether this succeeded.
1635 ac_fn_c_try_link ()
1636 {
1637 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1638 rm -f conftest.$ac_objext conftest$ac_exeext
1639 if { { ac_try="$ac_link"
1640 case "(($ac_try" in
1641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1642 *) ac_try_echo=$ac_try;;
1643 esac
1644 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1645 $as_echo "$ac_try_echo"; } >&5
1646 (eval "$ac_link") 2>conftest.err
1647 ac_status=$?
1648 if test -s conftest.err; then
1649 grep -v '^ *+' conftest.err >conftest.er1
1650 cat conftest.er1 >&5
1651 mv -f conftest.er1 conftest.err
1652 fi
1653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1654 test $ac_status = 0; } && {
1655 test -z "$ac_c_werror_flag" ||
1656 test ! -s conftest.err
1657 } && test -s conftest$ac_exeext && {
1658 test "$cross_compiling" = yes ||
1659 test -x conftest$ac_exeext
1660 }; then :
1661 ac_retval=0
1662 else
1663 $as_echo "$as_me: failed program was:" >&5
1664 sed 's/^/| /' conftest.$ac_ext >&5
1665
1666 ac_retval=1
1667 fi
1668 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1669 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1670 # interfere with the next link command; also delete a directory that is
1671 # left behind by Apple's compiler. We do this before executing the actions.
1672 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1673 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1674 as_fn_set_status $ac_retval
1675
1676 } # ac_fn_c_try_link
1677
1678 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1679 # -------------------------------------------------------
1680 # Tests whether HEADER exists and can be compiled using the include files in
1681 # INCLUDES, setting the cache variable VAR accordingly.
1682 ac_fn_c_check_header_compile ()
1683 {
1684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1686 $as_echo_n "checking for $2... " >&6; }
1687 if eval \${$3+:} false; then :
1688 $as_echo_n "(cached) " >&6
1689 else
1690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1691 /* end confdefs.h. */
1692 $4
1693 #include <$2>
1694 _ACEOF
1695 if ac_fn_c_try_compile "$LINENO"; then :
1696 eval "$3=yes"
1697 else
1698 eval "$3=no"
1699 fi
1700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1701 fi
1702 eval ac_res=\$$3
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1704 $as_echo "$ac_res" >&6; }
1705 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1706
1707 } # ac_fn_c_check_header_compile
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 https://github.com/Joungkyun/libchardet/issues ##
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 libchardet $as_me 1.0.6, 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 ac_aux_dir=
2398 for ac_dir in tools "$srcdir"/tools; do
2399 if test -f "$ac_dir/install-sh"; then
2400 ac_aux_dir=$ac_dir
2401 ac_install_sh="$ac_aux_dir/install-sh -c"
2402 break
2403 elif test -f "$ac_dir/install.sh"; then
2404 ac_aux_dir=$ac_dir
2405 ac_install_sh="$ac_aux_dir/install.sh -c"
2406 break
2407 elif test -f "$ac_dir/shtool"; then
2408 ac_aux_dir=$ac_dir
2409 ac_install_sh="$ac_aux_dir/shtool install -c"
2410 break
2411 fi
2412 done
2413 if test -z "$ac_aux_dir"; then
2414 as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
2415 fi
2416
2417 # These three variables are undocumented and unsupported,
2418 # and are intended to be withdrawn in a future Autoconf release.
2419 # They can cause serious problems if a builder's source tree is in a directory
2420 # whose full name contains unusual characters.
2421 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2422 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2423 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2424
2425
2426 am__api_version='1.16'
2427
2428 # Find a good install program. We prefer a C program (faster),
2429 # so one script is as good as another. But avoid the broken or
2430 # incompatible versions:
2431 # SysV /etc/install, /usr/sbin/install
2432 # SunOS /usr/etc/install
2433 # IRIX /sbin/install
2434 # AIX /bin/install
2435 # AmigaOS /C/install, which installs bootblocks on floppy discs
2436 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2437 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2438 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2439 # OS/2's system install, which has a completely different semantic
2440 # ./install, which can be erroneously created by make from ./install.sh.
2441 # Reject install programs that cannot install multiple files.
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2443 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2444 if test -z "$INSTALL"; then
2445 if ${ac_cv_path_install+:} false; then :
2446 $as_echo_n "(cached) " >&6
2447 else
2448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2449 for as_dir in $PATH
2450 do
2451 IFS=$as_save_IFS
2452 test -z "$as_dir" && as_dir=.
2453 # Account for people who put trailing slashes in PATH elements.
2454 case $as_dir/ in #((
2455 ./ | .// | /[cC]/* | \
2456 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2457 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2458 /usr/ucb/* ) ;;
2459 *)
2460 # OSF1 and SCO ODT 3.0 have their own names for install.
2461 # Don't use installbsd from OSF since it installs stuff as root
2462 # by default.
2463 for ac_prog in ginstall scoinst install; do
2464 for ac_exec_ext in '' $ac_executable_extensions; do
2465 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2466 if test $ac_prog = install &&
2467 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2468 # AIX install. It has an incompatible calling convention.
2469 :
2470 elif test $ac_prog = install &&
2471 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2472 # program-specific install script used by HP pwplus--don't use.
2473 :
2474 else
2475 rm -rf conftest.one conftest.two conftest.dir
2476 echo one > conftest.one
2477 echo two > conftest.two
2478 mkdir conftest.dir
2479 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2480 test -s conftest.one && test -s conftest.two &&
2481 test -s conftest.dir/conftest.one &&
2482 test -s conftest.dir/conftest.two
2483 then
2484 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2485 break 3
2486 fi
2487 fi
2488 fi
2489 done
2490 done
2491 ;;
2492 esac
2493
2494 done
2495 IFS=$as_save_IFS
2496
2497 rm -rf conftest.one conftest.two conftest.dir
2498
2499 fi
2500 if test "${ac_cv_path_install+set}" = set; then
2501 INSTALL=$ac_cv_path_install
2502 else
2503 # As a last resort, use the slow shell script. Don't cache a
2504 # value for INSTALL within a source directory, because that will
2505 # break other packages using the cache if that directory is
2506 # removed, or if the value is a relative name.
2507 INSTALL=$ac_install_sh
2508 fi
2509 fi
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2511 $as_echo "$INSTALL" >&6; }
2512
2513 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2514 # It thinks the first close brace ends the variable substitution.
2515 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2516
2517 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2518
2519 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2520
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2522 $as_echo_n "checking whether build environment is sane... " >&6; }
2523 # Reject unsafe characters in $srcdir or the absolute working directory
2524 # name. Accept space and tab only in the latter.
2525 am_lf='
2526 '
2527 case `pwd` in
2528 *[\\\"\#\$\&\'\`$am_lf]*)
2529 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2530 esac
2531 case $srcdir in
2532 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2533 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2534 esac
2535
2536 # Do 'set' in a subshell so we don't clobber the current shell's
2537 # arguments. Must try -L first in case configure is actually a
2538 # symlink; some systems play weird games with the mod time of symlinks
2539 # (eg FreeBSD returns the mod time of the symlink's containing
2540 # directory).
2541 if (
2542 am_has_slept=no
2543 for am_try in 1 2; do
2544 echo "timestamp, slept: $am_has_slept" > conftest.file
2545 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2546 if test "$*" = "X"; then
2547 # -L didn't work.
2548 set X `ls -t "$srcdir/configure" conftest.file`
2549 fi
2550 if test "$*" != "X $srcdir/configure conftest.file" \
2551 && test "$*" != "X conftest.file $srcdir/configure"; then
2552
2553 # If neither matched, then we have a broken ls. This can happen
2554 # if, for instance, CONFIG_SHELL is bash and it inherits a
2555 # broken ls alias from the environment. This has actually
2556 # happened. Such a system could not be considered "sane".
2557 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2558 alias in your environment" "$LINENO" 5
2559 fi
2560 if test "$2" = conftest.file || test $am_try -eq 2; then
2561 break
2562 fi
2563 # Just in case.
2564 sleep 1
2565 am_has_slept=yes
2566 done
2567 test "$2" = conftest.file
2568 )
2569 then
2570 # Ok.
2571 :
2572 else
2573 as_fn_error $? "newly created file is older than distributed files!
2574 Check your system clock" "$LINENO" 5
2575 fi
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2577 $as_echo "yes" >&6; }
2578 # If we didn't sleep, we still need to ensure time stamps of config.status and
2579 # generated files are strictly newer.
2580 am_sleep_pid=
2581 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2582 ( sleep 1 ) &
2583 am_sleep_pid=$!
2584 fi
2585
2586 rm -f conftest.file
2587
2588 test "$program_prefix" != NONE &&
2589 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2590 # Use a double $ so make ignores it.
2591 test "$program_suffix" != NONE &&
2592 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2593 # Double any \ or $.
2594 # By default was `s,x,x', remove it if useless.
2595 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2596 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2597
2598 # Expand $ac_aux_dir to an absolute path.
2599 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2600
2601 if test x"${MISSING+set}" != xset; then
2602 case $am_aux_dir in
2603 *\ * | *\ *)
2604 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2605 *)
2606 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2607 esac
2608 fi
2609 # Use eval to expand $SHELL
2610 if eval "$MISSING --is-lightweight"; then
2611 am_missing_run="$MISSING "
2612 else
2613 am_missing_run=
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2615 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2616 fi
2617
2618 if test x"${install_sh+set}" != xset; then
2619 case $am_aux_dir in
2620 *\ * | *\ *)
2621 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2622 *)
2623 install_sh="\${SHELL} $am_aux_dir/install-sh"
2624 esac
2625 fi
2626
2627 # Installed binaries are usually stripped using 'strip' when the user
2628 # run "make install-strip". However 'strip' might not be the right
2629 # tool to use in cross-compilation environments, therefore Automake
2630 # will honor the 'STRIP' environment variable to overrule this program.
2631 if test "$cross_compiling" != no; then
2632 if test -n "$ac_tool_prefix"; then
2633 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2634 set dummy ${ac_tool_prefix}strip; ac_word=$2
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2636 $as_echo_n "checking for $ac_word... " >&6; }
2637 if ${ac_cv_prog_STRIP+:} false; then :
2638 $as_echo_n "(cached) " >&6
2639 else
2640 if test -n "$STRIP"; then
2641 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2642 else
2643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2644 for as_dir in $PATH
2645 do
2646 IFS=$as_save_IFS
2647 test -z "$as_dir" && as_dir=.
2648 for ac_exec_ext in '' $ac_executable_extensions; do
2649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2650 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2652 break 2
2653 fi
2654 done
2655 done
2656 IFS=$as_save_IFS
2657
2658 fi
2659 fi
2660 STRIP=$ac_cv_prog_STRIP
2661 if test -n "$STRIP"; then
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2663 $as_echo "$STRIP" >&6; }
2664 else
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2666 $as_echo "no" >&6; }
2667 fi
2668
2669
2670 fi
2671 if test -z "$ac_cv_prog_STRIP"; then
2672 ac_ct_STRIP=$STRIP
2673 # Extract the first word of "strip", so it can be a program name with args.
2674 set dummy strip; ac_word=$2
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2676 $as_echo_n "checking for $ac_word... " >&6; }
2677 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2678 $as_echo_n "(cached) " >&6
2679 else
2680 if test -n "$ac_ct_STRIP"; then
2681 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2682 else
2683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2684 for as_dir in $PATH
2685 do
2686 IFS=$as_save_IFS
2687 test -z "$as_dir" && as_dir=.
2688 for ac_exec_ext in '' $ac_executable_extensions; do
2689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2690 ac_cv_prog_ac_ct_STRIP="strip"
2691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2692 break 2
2693 fi
2694 done
2695 done
2696 IFS=$as_save_IFS
2697
2698 fi
2699 fi
2700 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2701 if test -n "$ac_ct_STRIP"; then
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2703 $as_echo "$ac_ct_STRIP" >&6; }
2704 else
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2706 $as_echo "no" >&6; }
2707 fi
2708
2709 if test "x$ac_ct_STRIP" = x; then
2710 STRIP=":"
2711 else
2712 case $cross_compiling:$ac_tool_warned in
2713 yes:)
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2715 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2716 ac_tool_warned=yes ;;
2717 esac
2718 STRIP=$ac_ct_STRIP
2719 fi
2720 else
2721 STRIP="$ac_cv_prog_STRIP"
2722 fi
2723
2724 fi
2725 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2726
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2728 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2729 if test -z "$MKDIR_P"; then
2730 if ${ac_cv_path_mkdir+:} false; then :
2731 $as_echo_n "(cached) " >&6
2732 else
2733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2734 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2735 do
2736 IFS=$as_save_IFS
2737 test -z "$as_dir" && as_dir=.
2738 for ac_prog in mkdir gmkdir; do
2739 for ac_exec_ext in '' $ac_executable_extensions; do
2740 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2741 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2742 'mkdir (GNU coreutils) '* | \
2743 'mkdir (coreutils) '* | \
2744 'mkdir (fileutils) '4.1*)
2745 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2746 break 3;;
2747 esac
2748 done
2749 done
2750 done
2751 IFS=$as_save_IFS
2752
2753 fi
2754
2755 test -d ./--version && rmdir ./--version
2756 if test "${ac_cv_path_mkdir+set}" = set; then
2757 MKDIR_P="$ac_cv_path_mkdir -p"
2758 else
2759 # As a last resort, use the slow shell script. Don't cache a
2760 # value for MKDIR_P within a source directory, because that will
2761 # break other packages using the cache if that directory is
2762 # removed, or if the value is a relative name.
2763 MKDIR_P="$ac_install_sh -d"
2764 fi
2765 fi
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2767 $as_echo "$MKDIR_P" >&6; }
2768
2769 for ac_prog in gawk mawk nawk awk
2770 do
2771 # Extract the first word of "$ac_prog", so it can be a program name with args.
2772 set dummy $ac_prog; ac_word=$2
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2774 $as_echo_n "checking for $ac_word... " >&6; }
2775 if ${ac_cv_prog_AWK+:} false; then :
2776 $as_echo_n "(cached) " >&6
2777 else
2778 if test -n "$AWK"; then
2779 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2780 else
2781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2782 for as_dir in $PATH
2783 do
2784 IFS=$as_save_IFS
2785 test -z "$as_dir" && as_dir=.
2786 for ac_exec_ext in '' $ac_executable_extensions; do
2787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2788 ac_cv_prog_AWK="$ac_prog"
2789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2790 break 2
2791 fi
2792 done
2793 done
2794 IFS=$as_save_IFS
2795
2796 fi
2797 fi
2798 AWK=$ac_cv_prog_AWK
2799 if test -n "$AWK"; then
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2801 $as_echo "$AWK" >&6; }
2802 else
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2804 $as_echo "no" >&6; }
2805 fi
2806
2807
2808 test -n "$AWK" && break
2809 done
2810
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2812 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2813 set x ${MAKE-make}
2814 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2815 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2816 $as_echo_n "(cached) " >&6
2817 else
2818 cat >conftest.make <<\_ACEOF
2819 SHELL = /bin/sh
2820 all:
2821 @echo '@@@%%%=$(MAKE)=@@@%%%'
2822 _ACEOF
2823 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2824 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2825 *@@@%%%=?*=@@@%%%*)
2826 eval ac_cv_prog_make_${ac_make}_set=yes;;
2827 *)
2828 eval ac_cv_prog_make_${ac_make}_set=no;;
2829 esac
2830 rm -f conftest.make
2831 fi
2832 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2834 $as_echo "yes" >&6; }
2835 SET_MAKE=
2836 else
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2838 $as_echo "no" >&6; }
2839 SET_MAKE="MAKE=${MAKE-make}"
2840 fi
2841
2842 rm -rf .tst 2>/dev/null
2843 mkdir .tst 2>/dev/null
2844 if test -d .tst; then
2845 am__leading_dot=.
2846 else
2847 am__leading_dot=_
2848 fi
2849 rmdir .tst 2>/dev/null
2850
2851 # Check whether --enable-silent-rules was given.
2852 if test "${enable_silent_rules+set}" = set; then :
2853 enableval=$enable_silent_rules;
2854 fi
2855
2856 case $enable_silent_rules in # (((
2857 yes) AM_DEFAULT_VERBOSITY=0;;
2858 no) AM_DEFAULT_VERBOSITY=1;;
2859 *) AM_DEFAULT_VERBOSITY=1;;
2860 esac
2861 am_make=${MAKE-make}
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2863 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2864 if ${am_cv_make_support_nested_variables+:} false; then :
2865 $as_echo_n "(cached) " >&6
2866 else
2867 if $as_echo 'TRUE=$(BAR$(V))
2868 BAR0=false
2869 BAR1=true
2870 V=1
2871 am__doit:
2872 @$(TRUE)
2873 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2874 am_cv_make_support_nested_variables=yes
2875 else
2876 am_cv_make_support_nested_variables=no
2877 fi
2878 fi
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2880 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2881 if test $am_cv_make_support_nested_variables = yes; then
2882 AM_V='$(V)'
2883 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2884 else
2885 AM_V=$AM_DEFAULT_VERBOSITY
2886 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2887 fi
2888 AM_BACKSLASH='\'
2889
2890 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2891 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2892 # is not polluted with repeated "-I."
2893 am__isrc=' -I$(srcdir)'
2894 # test to see if srcdir already configured
2895 if test -f $srcdir/config.status; then
2896 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2897 fi
2898 fi
2899
2900 # test whether we have cygpath
2901 if test -z "$CYGPATH_W"; then
2902 if (cygpath --version) >/dev/null 2>/dev/null; then
2903 CYGPATH_W='cygpath -w'
2904 else
2905 CYGPATH_W=echo
2906 fi
2907 fi
2908
2909
2910 # Define the identity of the package.
2911 PACKAGE='libchardet'
2912 VERSION='1.0.6'
2913
2914
2915 cat >>confdefs.h <<_ACEOF
2916 #define PACKAGE "$PACKAGE"
2917 _ACEOF
2918
2919
2920 cat >>confdefs.h <<_ACEOF
2921 #define VERSION "$VERSION"
2922 _ACEOF
2923
2924 # Some tools Automake needs.
2925
2926 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2927
2928
2929 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2930
2931
2932 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2933
2934
2935 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2936
2937
2938 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2939
2940 # For better backward compatibility. To be removed once Automake 1.9.x
2941 # dies out for good. For more background, see:
2942 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2943 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2944 mkdir_p='$(MKDIR_P)'
2945
2946 # We need awk for the "check" target (and possibly the TAP driver). The
2947 # system "awk" is bad on some platforms.
2948 # Always define AMTAR for backward compatibility. Yes, it's still used
2949 # in the wild :-( We should find a proper way to deprecate it ...
2950 AMTAR='$${TAR-tar}'
2951
2952
2953 # We'll loop over all known methods to create a tar archive until one works.
2954 _am_tools='gnutar pax cpio none'
2955
2956 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2957
2958
2959
2960
2961
2962
2963 # POSIX will say in a future version that running "rm -f" with no argument
2964 # is OK; and we want to be able to make that assumption in our Makefile
2965 # recipes. So use an aggressive probe to check that the usage we want is
2966 # actually supported "in the wild" to an acceptable degree.
2967 # See automake bug#10828.
2968 # To make any issue more visible, cause the running configure to be aborted
2969 # by default if the 'rm' program in use doesn't match our expectations; the
2970 # user can still override this though.
2971 if rm -f && rm -fr && rm -rf; then : OK; else
2972 cat >&2 <<'END'
2973 Oops!
2974
2975 Your 'rm' program seems unable to run without file operands specified
2976 on the command line, even when the '-f' option is present. This is contrary
2977 to the behaviour of most rm programs out there, and not conforming with
2978 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2979
2980 Please tell [email protected] about your system, including the value
2981 of your $PATH and any error possibly output before this message. This
2982 can help us improve future automake versions.
2983
2984 END
2985 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2986 echo 'Configuration will proceed anyway, since you have set the' >&2
2987 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2988 echo >&2
2989 else
2990 cat >&2 <<'END'
2991 Aborting the configuration process, to ensure you take notice of the issue.
2992
2993 You can download and install GNU coreutils to get an 'rm' implementation
2994 that behaves properly: <https://www.gnu.org/software/coreutils/>.
2995
2996 If you want to complete the configuration process using your problematic
2997 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2998 to "yes", and re-run configure.
2999
3000 END
3001 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3002 fi
3003 fi
3004
3005
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3007 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3008 # Check whether --enable-maintainer-mode was given.
3009 if test "${enable_maintainer_mode+set}" = set; then :
3010 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3011 else
3012 USE_MAINTAINER_MODE=no
3013 fi
3014
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3016 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3017 if test $USE_MAINTAINER_MODE = yes; then
3018 MAINTAINER_MODE_TRUE=
3019 MAINTAINER_MODE_FALSE='#'
3020 else
3021 MAINTAINER_MODE_TRUE='#'
3022 MAINTAINER_MODE_FALSE=
3023 fi
3024
3025 MAINT=$MAINTAINER_MODE_TRUE
3026
3027
3028
3029
3030 ac_config_headers="$ac_config_headers chardet-config.h"
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041 PROG=`echo $PACKAGE_NAME | sed 's/^lib//g'`
3042
3043 SONAME_MAJOR=1
3044 SONAME_MINOR=0
3045 SONAME_REVISION=0
3046 SONAME_VERSION=$SONAME_MAJOR.$SONAME_MINOR.$SONAME_REVISION
3047
3048 SONAME_VALUE=$(($SONAME_MAJOR + $SONAME_MINOR))
3049 SONAME_INFO="$SONAME_VALUE:$SONAME_REVISION:$SONAME_MINOR"
3050
3051 # Checks for programs.
3052 ac_ext=c
3053 ac_cpp='$CPP $CPPFLAGS'
3054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3057 if test -n "$ac_tool_prefix"; then
3058 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3059 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3061 $as_echo_n "checking for $ac_word... " >&6; }
3062 if ${ac_cv_prog_CC+:} false; then :
3063 $as_echo_n "(cached) " >&6
3064 else
3065 if test -n "$CC"; then
3066 ac_cv_prog_CC="$CC" # Let the user override the test.
3067 else
3068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3069 for as_dir in $PATH
3070 do
3071 IFS=$as_save_IFS
3072 test -z "$as_dir" && as_dir=.
3073 for ac_exec_ext in '' $ac_executable_extensions; do
3074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3075 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3077 break 2
3078 fi
3079 done
3080 done
3081 IFS=$as_save_IFS
3082
3083 fi
3084 fi
3085 CC=$ac_cv_prog_CC
3086 if test -n "$CC"; then
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3088 $as_echo "$CC" >&6; }
3089 else
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3091 $as_echo "no" >&6; }
3092 fi
3093
3094
3095 fi
3096 if test -z "$ac_cv_prog_CC"; then
3097 ac_ct_CC=$CC
3098 # Extract the first word of "gcc", so it can be a program name with args.
3099 set dummy gcc; ac_word=$2
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3101 $as_echo_n "checking for $ac_word... " >&6; }
3102 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3103 $as_echo_n "(cached) " >&6
3104 else
3105 if test -n "$ac_ct_CC"; then
3106 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3107 else
3108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3109 for as_dir in $PATH
3110 do
3111 IFS=$as_save_IFS
3112 test -z "$as_dir" && as_dir=.
3113 for ac_exec_ext in '' $ac_executable_extensions; do
3114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3115 ac_cv_prog_ac_ct_CC="gcc"
3116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3117 break 2
3118 fi
3119 done
3120 done
3121 IFS=$as_save_IFS
3122
3123 fi
3124 fi
3125 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3126 if test -n "$ac_ct_CC"; then
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3128 $as_echo "$ac_ct_CC" >&6; }
3129 else
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3131 $as_echo "no" >&6; }
3132 fi
3133
3134 if test "x$ac_ct_CC" = x; then
3135 CC=""
3136 else
3137 case $cross_compiling:$ac_tool_warned in
3138 yes:)
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3140 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3141 ac_tool_warned=yes ;;
3142 esac
3143 CC=$ac_ct_CC
3144 fi
3145 else
3146 CC="$ac_cv_prog_CC"
3147 fi
3148
3149 if test -z "$CC"; then
3150 if test -n "$ac_tool_prefix"; then
3151 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3152 set dummy ${ac_tool_prefix}cc; ac_word=$2
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3154 $as_echo_n "checking for $ac_word... " >&6; }
3155 if ${ac_cv_prog_CC+:} false; then :
3156 $as_echo_n "(cached) " >&6
3157 else
3158 if test -n "$CC"; then
3159 ac_cv_prog_CC="$CC" # Let the user override the test.
3160 else
3161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3162 for as_dir in $PATH
3163 do
3164 IFS=$as_save_IFS
3165 test -z "$as_dir" && as_dir=.
3166 for ac_exec_ext in '' $ac_executable_extensions; do
3167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3168 ac_cv_prog_CC="${ac_tool_prefix}cc"
3169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3170 break 2
3171 fi
3172 done
3173 done
3174 IFS=$as_save_IFS
3175
3176 fi
3177 fi
3178 CC=$ac_cv_prog_CC
3179 if test -n "$CC"; then
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3181 $as_echo "$CC" >&6; }
3182 else
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3184 $as_echo "no" >&6; }
3185 fi
3186
3187
3188 fi
3189 fi
3190 if test -z "$CC"; then
3191 # Extract the first word of "cc", so it can be a program name with args.
3192 set dummy cc; ac_word=$2
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3194 $as_echo_n "checking for $ac_word... " >&6; }
3195 if ${ac_cv_prog_CC+:} false; then :
3196 $as_echo_n "(cached) " >&6
3197 else
3198 if test -n "$CC"; then
3199 ac_cv_prog_CC="$CC" # Let the user override the test.
3200 else
3201 ac_prog_rejected=no
3202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3203 for as_dir in $PATH
3204 do
3205 IFS=$as_save_IFS
3206 test -z "$as_dir" && as_dir=.
3207 for ac_exec_ext in '' $ac_executable_extensions; do
3208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3209 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3210 ac_prog_rejected=yes
3211 continue
3212 fi
3213 ac_cv_prog_CC="cc"
3214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3215 break 2
3216 fi
3217 done
3218 done
3219 IFS=$as_save_IFS
3220
3221 if test $ac_prog_rejected = yes; then
3222 # We found a bogon in the path, so make sure we never use it.
3223 set dummy $ac_cv_prog_CC
3224 shift
3225 if test $# != 0; then
3226 # We chose a different compiler from the bogus one.
3227 # However, it has the same basename, so the bogon will be chosen
3228 # first if we set CC to just the basename; use the full file name.
3229 shift
3230 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3231 fi
3232 fi
3233 fi
3234 fi
3235 CC=$ac_cv_prog_CC
3236 if test -n "$CC"; then
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3238 $as_echo "$CC" >&6; }
3239 else
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3241 $as_echo "no" >&6; }
3242 fi
3243
3244
3245 fi
3246 if test -z "$CC"; then
3247 if test -n "$ac_tool_prefix"; then
3248 for ac_prog in cl.exe
3249 do
3250 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3251 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3253 $as_echo_n "checking for $ac_word... " >&6; }
3254 if ${ac_cv_prog_CC+:} false; then :
3255 $as_echo_n "(cached) " >&6
3256 else
3257 if test -n "$CC"; then
3258 ac_cv_prog_CC="$CC" # Let the user override the test.
3259 else
3260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3261 for as_dir in $PATH
3262 do
3263 IFS=$as_save_IFS
3264 test -z "$as_dir" && as_dir=.
3265 for ac_exec_ext in '' $ac_executable_extensions; do
3266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3267 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3269 break 2
3270 fi
3271 done
3272 done
3273 IFS=$as_save_IFS
3274
3275 fi
3276 fi
3277 CC=$ac_cv_prog_CC
3278 if test -n "$CC"; then
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3280 $as_echo "$CC" >&6; }
3281 else
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3283 $as_echo "no" >&6; }
3284 fi
3285
3286
3287 test -n "$CC" && break
3288 done
3289 fi
3290 if test -z "$CC"; then
3291 ac_ct_CC=$CC
3292 for ac_prog in cl.exe
3293 do
3294 # Extract the first word of "$ac_prog", so it can be a program name with args.
3295 set dummy $ac_prog; ac_word=$2
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3297 $as_echo_n "checking for $ac_word... " >&6; }
3298 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3299 $as_echo_n "(cached) " >&6
3300 else
3301 if test -n "$ac_ct_CC"; then
3302 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3303 else
3304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3305 for as_dir in $PATH
3306 do
3307 IFS=$as_save_IFS
3308 test -z "$as_dir" && as_dir=.
3309 for ac_exec_ext in '' $ac_executable_extensions; do
3310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3311 ac_cv_prog_ac_ct_CC="$ac_prog"
3312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3313 break 2
3314 fi
3315 done
3316 done
3317 IFS=$as_save_IFS
3318
3319 fi
3320 fi
3321 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3322 if test -n "$ac_ct_CC"; then
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3324 $as_echo "$ac_ct_CC" >&6; }
3325 else
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3327 $as_echo "no" >&6; }
3328 fi
3329
3330
3331 test -n "$ac_ct_CC" && break
3332 done
3333
3334 if test "x$ac_ct_CC" = x; then
3335 CC=""
3336 else
3337 case $cross_compiling:$ac_tool_warned in
3338 yes:)
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3340 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3341 ac_tool_warned=yes ;;
3342 esac
3343 CC=$ac_ct_CC
3344 fi
3345 fi
3346
3347 fi
3348
3349
3350 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3351 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3352 as_fn_error $? "no acceptable C compiler found in \$PATH
3353 See \`config.log' for more details" "$LINENO" 5; }
3354
3355 # Provide some information about the compiler.
3356 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3357 set X $ac_compile
3358 ac_compiler=$2
3359 for ac_option in --version -v -V -qversion; do
3360 { { ac_try="$ac_compiler $ac_option >&5"
3361 case "(($ac_try" in
3362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3363 *) ac_try_echo=$ac_try;;
3364 esac
3365 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3366 $as_echo "$ac_try_echo"; } >&5
3367 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3368 ac_status=$?
3369 if test -s conftest.err; then
3370 sed '10a\
3371 ... rest of stderr output deleted ...
3372 10q' conftest.err >conftest.er1
3373 cat conftest.er1 >&5
3374 fi
3375 rm -f conftest.er1 conftest.err
3376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3377 test $ac_status = 0; }
3378 done
3379
3380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3381 /* end confdefs.h. */
3382
3383 int
3384 main ()
3385 {
3386
3387 ;
3388 return 0;
3389 }
3390 _ACEOF
3391 ac_clean_files_save=$ac_clean_files
3392 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3393 # Try to create an executable without -o first, disregard a.out.
3394 # It will help us diagnose broken compilers, and finding out an intuition
3395 # of exeext.
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3397 $as_echo_n "checking whether the C compiler works... " >&6; }
3398 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3399
3400 # The possible output files:
3401 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3402
3403 ac_rmfiles=
3404 for ac_file in $ac_files
3405 do
3406 case $ac_file in
3407 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3408 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3409 esac
3410 done
3411 rm -f $ac_rmfiles
3412
3413 if { { ac_try="$ac_link_default"
3414 case "(($ac_try" in
3415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3416 *) ac_try_echo=$ac_try;;
3417 esac
3418 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3419 $as_echo "$ac_try_echo"; } >&5
3420 (eval "$ac_link_default") 2>&5
3421 ac_status=$?
3422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3423 test $ac_status = 0; }; then :
3424 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3425 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3426 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3427 # so that the user can short-circuit this test for compilers unknown to
3428 # Autoconf.
3429 for ac_file in $ac_files ''
3430 do
3431 test -f "$ac_file" || continue
3432 case $ac_file in
3433 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3434 ;;
3435 [ab].out )
3436 # We found the default executable, but exeext='' is most
3437 # certainly right.
3438 break;;
3439 *.* )
3440 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3441 then :; else
3442 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3443 fi
3444 # We set ac_cv_exeext here because the later test for it is not
3445 # safe: cross compilers may not add the suffix if given an `-o'
3446 # argument, so we may need to know it at that point already.
3447 # Even if this section looks crufty: it has the advantage of
3448 # actually working.
3449 break;;
3450 * )
3451 break;;
3452 esac
3453 done
3454 test "$ac_cv_exeext" = no && ac_cv_exeext=
3455
3456 else
3457 ac_file=''
3458 fi
3459 if test -z "$ac_file"; then :
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3461 $as_echo "no" >&6; }
3462 $as_echo "$as_me: failed program was:" >&5
3463 sed 's/^/| /' conftest.$ac_ext >&5
3464
3465 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3466 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3467 as_fn_error 77 "C compiler cannot create executables
3468 See \`config.log' for more details" "$LINENO" 5; }
3469 else
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3471 $as_echo "yes" >&6; }
3472 fi
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3474 $as_echo_n "checking for C compiler default output file name... " >&6; }
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3476 $as_echo "$ac_file" >&6; }
3477 ac_exeext=$ac_cv_exeext
3478
3479 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3480 ac_clean_files=$ac_clean_files_save
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3482 $as_echo_n "checking for suffix of executables... " >&6; }
3483 if { { ac_try="$ac_link"
3484 case "(($ac_try" in
3485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3486 *) ac_try_echo=$ac_try;;
3487 esac
3488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3489 $as_echo "$ac_try_echo"; } >&5
3490 (eval "$ac_link") 2>&5
3491 ac_status=$?
3492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3493 test $ac_status = 0; }; then :
3494 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3495 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3496 # work properly (i.e., refer to `conftest.exe'), while it won't with
3497 # `rm'.
3498 for ac_file in conftest.exe conftest conftest.*; do
3499 test -f "$ac_file" || continue
3500 case $ac_file in
3501 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3502 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3503 break;;
3504 * ) break;;
3505 esac
3506 done
3507 else
3508 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3509 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3510 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3511 See \`config.log' for more details" "$LINENO" 5; }
3512 fi
3513 rm -f conftest conftest$ac_cv_exeext
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3515 $as_echo "$ac_cv_exeext" >&6; }
3516
3517 rm -f conftest.$ac_ext
3518 EXEEXT=$ac_cv_exeext
3519 ac_exeext=$EXEEXT
3520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3521 /* end confdefs.h. */
3522 #include <stdio.h>
3523 int
3524 main ()
3525 {
3526 FILE *f = fopen ("conftest.out", "w");
3527 return ferror (f) || fclose (f) != 0;
3528
3529 ;
3530 return 0;
3531 }
3532 _ACEOF
3533 ac_clean_files="$ac_clean_files conftest.out"
3534 # Check that the compiler produces executables we can run. If not, either
3535 # the compiler is broken, or we cross compile.
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3537 $as_echo_n "checking whether we are cross compiling... " >&6; }
3538 if test "$cross_compiling" != yes; then
3539 { { ac_try="$ac_link"
3540 case "(($ac_try" in
3541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3542 *) ac_try_echo=$ac_try;;
3543 esac
3544 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3545 $as_echo "$ac_try_echo"; } >&5
3546 (eval "$ac_link") 2>&5
3547 ac_status=$?
3548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3549 test $ac_status = 0; }
3550 if { ac_try='./conftest$ac_cv_exeext'
3551 { { case "(($ac_try" in
3552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3553 *) ac_try_echo=$ac_try;;
3554 esac
3555 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3556 $as_echo "$ac_try_echo"; } >&5
3557 (eval "$ac_try") 2>&5
3558 ac_status=$?
3559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3560 test $ac_status = 0; }; }; then
3561 cross_compiling=no
3562 else
3563 if test "$cross_compiling" = maybe; then
3564 cross_compiling=yes
3565 else
3566 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3567 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3568 as_fn_error $? "cannot run C compiled programs.
3569 If you meant to cross compile, use \`--host'.
3570 See \`config.log' for more details" "$LINENO" 5; }
3571 fi
3572 fi
3573 fi
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3575 $as_echo "$cross_compiling" >&6; }
3576
3577 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3578 ac_clean_files=$ac_clean_files_save
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3580 $as_echo_n "checking for suffix of object files... " >&6; }
3581 if ${ac_cv_objext+:} false; then :
3582 $as_echo_n "(cached) " >&6
3583 else
3584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3585 /* end confdefs.h. */
3586
3587 int
3588 main ()
3589 {
3590
3591 ;
3592 return 0;
3593 }
3594 _ACEOF
3595 rm -f conftest.o conftest.obj
3596 if { { ac_try="$ac_compile"
3597 case "(($ac_try" in
3598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3599 *) ac_try_echo=$ac_try;;
3600 esac
3601 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3602 $as_echo "$ac_try_echo"; } >&5
3603 (eval "$ac_compile") 2>&5
3604 ac_status=$?
3605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3606 test $ac_status = 0; }; then :
3607 for ac_file in conftest.o conftest.obj conftest.*; do
3608 test -f "$ac_file" || continue;
3609 case $ac_file in
3610 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3611 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3612 break;;
3613 esac
3614 done
3615 else
3616 $as_echo "$as_me: failed program was:" >&5
3617 sed 's/^/| /' conftest.$ac_ext >&5
3618
3619 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3620 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3621 as_fn_error $? "cannot compute suffix of object files: cannot compile
3622 See \`config.log' for more details" "$LINENO" 5; }
3623 fi
3624 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3625 fi
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3627 $as_echo "$ac_cv_objext" >&6; }
3628 OBJEXT=$ac_cv_objext
3629 ac_objext=$OBJEXT
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3631 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3632 if ${ac_cv_c_compiler_gnu+:} false; then :
3633 $as_echo_n "(cached) " >&6
3634 else
3635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3636 /* end confdefs.h. */
3637
3638 int
3639 main ()
3640 {
3641 #ifndef __GNUC__
3642 choke me
3643 #endif
3644
3645 ;
3646 return 0;
3647 }
3648 _ACEOF
3649 if ac_fn_c_try_compile "$LINENO"; then :
3650 ac_compiler_gnu=yes
3651 else
3652 ac_compiler_gnu=no
3653 fi
3654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3655 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3656
3657 fi
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3659 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3660 if test $ac_compiler_gnu = yes; then
3661 GCC=yes
3662 else
3663 GCC=
3664 fi
3665 ac_test_CFLAGS=${CFLAGS+set}
3666 ac_save_CFLAGS=$CFLAGS
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3668 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3669 if ${ac_cv_prog_cc_g+:} false; then :
3670 $as_echo_n "(cached) " >&6
3671 else
3672 ac_save_c_werror_flag=$ac_c_werror_flag
3673 ac_c_werror_flag=yes
3674 ac_cv_prog_cc_g=no
3675 CFLAGS="-g"
3676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3677 /* end confdefs.h. */
3678
3679 int
3680 main ()
3681 {
3682
3683 ;
3684 return 0;
3685 }
3686 _ACEOF
3687 if ac_fn_c_try_compile "$LINENO"; then :
3688 ac_cv_prog_cc_g=yes
3689 else
3690 CFLAGS=""
3691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3692 /* end confdefs.h. */
3693
3694 int
3695 main ()
3696 {
3697
3698 ;
3699 return 0;
3700 }
3701 _ACEOF
3702 if ac_fn_c_try_compile "$LINENO"; then :
3703
3704 else
3705 ac_c_werror_flag=$ac_save_c_werror_flag
3706 CFLAGS="-g"
3707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3708 /* end confdefs.h. */
3709
3710 int
3711 main ()
3712 {
3713
3714 ;
3715 return 0;
3716 }
3717 _ACEOF
3718 if ac_fn_c_try_compile "$LINENO"; then :
3719 ac_cv_prog_cc_g=yes
3720 fi
3721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3722 fi
3723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3724 fi
3725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3726 ac_c_werror_flag=$ac_save_c_werror_flag
3727 fi
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3729 $as_echo "$ac_cv_prog_cc_g" >&6; }
3730 if test "$ac_test_CFLAGS" = set; then
3731 CFLAGS=$ac_save_CFLAGS
3732 elif test $ac_cv_prog_cc_g = yes; then
3733 if test "$GCC" = yes; then
3734 CFLAGS="-g -O2"
3735 else
3736 CFLAGS="-g"
3737 fi
3738 else
3739 if test "$GCC" = yes; then
3740 CFLAGS="-O2"
3741 else
3742 CFLAGS=
3743 fi
3744 fi
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3746 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3747 if ${ac_cv_prog_cc_c89+:} false; then :
3748 $as_echo_n "(cached) " >&6
3749 else
3750 ac_cv_prog_cc_c89=no
3751 ac_save_CC=$CC
3752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3753 /* end confdefs.h. */
3754 #include <stdarg.h>
3755 #include <stdio.h>
3756 struct stat;
3757 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3758 struct buf { int x; };
3759 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3760 static char *e (p, i)
3761 char **p;
3762 int i;
3763 {
3764 return p[i];
3765 }
3766 static char *f (char * (*g) (char **, int), char **p, ...)
3767 {
3768 char *s;
3769 va_list v;
3770 va_start (v,p);
3771 s = g (p, va_arg (v,int));
3772 va_end (v);
3773 return s;
3774 }
3775
3776 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3777 function prototypes and stuff, but not '\xHH' hex character constants.
3778 These don't provoke an error unfortunately, instead are silently treated
3779 as 'x'. The following induces an error, until -std is added to get
3780 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3781 array size at least. It's necessary to write '\x00'==0 to get something
3782 that's true only with -std. */
3783 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3784
3785 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3786 inside strings and character constants. */
3787 #define FOO(x) 'x'
3788 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3789
3790 int test (int i, double x);
3791 struct s1 {int (*f) (int a);};
3792 struct s2 {int (*f) (double a);};
3793 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3794 int argc;
3795 char **argv;
3796 int
3797 main ()
3798 {
3799 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3800 ;
3801 return 0;
3802 }
3803 _ACEOF
3804 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3805 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3806 do
3807 CC="$ac_save_CC $ac_arg"
3808 if ac_fn_c_try_compile "$LINENO"; then :
3809 ac_cv_prog_cc_c89=$ac_arg
3810 fi
3811 rm -f core conftest.err conftest.$ac_objext
3812 test "x$ac_cv_prog_cc_c89" != "xno" && break
3813 done
3814 rm -f conftest.$ac_ext
3815 CC=$ac_save_CC
3816
3817 fi
3818 # AC_CACHE_VAL
3819 case "x$ac_cv_prog_cc_c89" in
3820 x)
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3822 $as_echo "none needed" >&6; } ;;
3823 xno)
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3825 $as_echo "unsupported" >&6; } ;;
3826 *)
3827 CC="$CC $ac_cv_prog_cc_c89"
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3829 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3830 esac
3831 if test "x$ac_cv_prog_cc_c89" != xno; then :
3832
3833 fi
3834
3835 ac_ext=c
3836 ac_cpp='$CPP $CPPFLAGS'
3837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3840
3841 ac_ext=c
3842 ac_cpp='$CPP $CPPFLAGS'
3843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3847 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3848 if ${am_cv_prog_cc_c_o+:} false; then :
3849 $as_echo_n "(cached) " >&6
3850 else
3851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3852 /* end confdefs.h. */
3853
3854 int
3855 main ()
3856 {
3857
3858 ;
3859 return 0;
3860 }
3861 _ACEOF
3862 # Make sure it works both with $CC and with simple cc.
3863 # Following AC_PROG_CC_C_O, we do the test twice because some
3864 # compilers refuse to overwrite an existing .o file with -o,
3865 # though they will create one.
3866 am_cv_prog_cc_c_o=yes
3867 for am_i in 1 2; do
3868 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3869 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3870 ac_status=$?
3871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872 (exit $ac_status); } \
3873 && test -f conftest2.$ac_objext; then
3874 : OK
3875 else
3876 am_cv_prog_cc_c_o=no
3877 break
3878 fi
3879 done
3880 rm -f core conftest*
3881 unset am_i
3882 fi
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3884 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3885 if test "$am_cv_prog_cc_c_o" != yes; then
3886 # Losing compiler, so override with the script.
3887 # FIXME: It is wrong to rewrite CC.
3888 # But if we don't then we get into trouble of one sort or another.
3889 # A longer-term fix would be to have automake use am__CC in this case,
3890 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3891 CC="$am_aux_dir/compile $CC"
3892 fi
3893 ac_ext=c
3894 ac_cpp='$CPP $CPPFLAGS'
3895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3898
3899
3900 ac_ext=cpp
3901 ac_cpp='$CXXCPP $CPPFLAGS'
3902 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3903 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3904 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3905 if test -z "$CXX"; then
3906 if test -n "$CCC"; then
3907 CXX=$CCC
3908 else
3909 if test -n "$ac_tool_prefix"; then
3910 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3911 do
3912 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3913 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3915 $as_echo_n "checking for $ac_word... " >&6; }
3916 if ${ac_cv_prog_CXX+:} false; then :
3917 $as_echo_n "(cached) " >&6
3918 else
3919 if test -n "$CXX"; then
3920 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3921 else
3922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3923 for as_dir in $PATH
3924 do
3925 IFS=$as_save_IFS
3926 test -z "$as_dir" && as_dir=.
3927 for ac_exec_ext in '' $ac_executable_extensions; do
3928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3929 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3931 break 2
3932 fi
3933 done
3934 done
3935 IFS=$as_save_IFS
3936
3937 fi
3938 fi
3939 CXX=$ac_cv_prog_CXX
3940 if test -n "$CXX"; then
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3942 $as_echo "$CXX" >&6; }
3943 else
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3945 $as_echo "no" >&6; }
3946 fi
3947
3948
3949 test -n "$CXX" && break
3950 done
3951 fi
3952 if test -z "$CXX"; then
3953 ac_ct_CXX=$CXX
3954 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3955 do
3956 # Extract the first word of "$ac_prog", so it can be a program name with args.
3957 set dummy $ac_prog; ac_word=$2
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3959 $as_echo_n "checking for $ac_word... " >&6; }
3960 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3961 $as_echo_n "(cached) " >&6
3962 else
3963 if test -n "$ac_ct_CXX"; then
3964 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3965 else
3966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3967 for as_dir in $PATH
3968 do
3969 IFS=$as_save_IFS
3970 test -z "$as_dir" && as_dir=.
3971 for ac_exec_ext in '' $ac_executable_extensions; do
3972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3973 ac_cv_prog_ac_ct_CXX="$ac_prog"
3974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3975 break 2
3976 fi
3977 done
3978 done
3979 IFS=$as_save_IFS
3980
3981 fi
3982 fi
3983 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3984 if test -n "$ac_ct_CXX"; then
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3986 $as_echo "$ac_ct_CXX" >&6; }
3987 else
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3989 $as_echo "no" >&6; }
3990 fi
3991
3992
3993 test -n "$ac_ct_CXX" && break
3994 done
3995
3996 if test "x$ac_ct_CXX" = x; then
3997 CXX="g++"
3998 else
3999 case $cross_compiling:$ac_tool_warned in
4000 yes:)
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4002 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4003 ac_tool_warned=yes ;;
4004 esac
4005 CXX=$ac_ct_CXX
4006 fi
4007 fi
4008
4009 fi
4010 fi
4011 # Provide some information about the compiler.
4012 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4013 set X $ac_compile
4014 ac_compiler=$2
4015 for ac_option in --version -v -V -qversion; do
4016 { { ac_try="$ac_compiler $ac_option >&5"
4017 case "(($ac_try" in
4018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4019 *) ac_try_echo=$ac_try;;
4020 esac
4021 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4022 $as_echo "$ac_try_echo"; } >&5
4023 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4024 ac_status=$?
4025 if test -s conftest.err; then
4026 sed '10a\
4027 ... rest of stderr output deleted ...
4028 10q' conftest.err >conftest.er1
4029 cat conftest.er1 >&5
4030 fi
4031 rm -f conftest.er1 conftest.err
4032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4033 test $ac_status = 0; }
4034 done
4035
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4037 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4038 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4039 $as_echo_n "(cached) " >&6
4040 else
4041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4042 /* end confdefs.h. */
4043
4044 int
4045 main ()
4046 {
4047 #ifndef __GNUC__
4048 choke me
4049 #endif
4050
4051 ;
4052 return 0;
4053 }
4054 _ACEOF
4055 if ac_fn_cxx_try_compile "$LINENO"; then :
4056 ac_compiler_gnu=yes
4057 else
4058 ac_compiler_gnu=no
4059 fi
4060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4061 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4062
4063 fi
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4065 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4066 if test $ac_compiler_gnu = yes; then
4067 GXX=yes
4068 else
4069 GXX=
4070 fi
4071 ac_test_CXXFLAGS=${CXXFLAGS+set}
4072 ac_save_CXXFLAGS=$CXXFLAGS
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4074 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4075 if ${ac_cv_prog_cxx_g+:} false; then :
4076 $as_echo_n "(cached) " >&6
4077 else
4078 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4079 ac_cxx_werror_flag=yes
4080 ac_cv_prog_cxx_g=no
4081 CXXFLAGS="-g"
4082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4083 /* end confdefs.h. */
4084
4085 int
4086 main ()
4087 {
4088
4089 ;
4090 return 0;
4091 }
4092 _ACEOF
4093 if ac_fn_cxx_try_compile "$LINENO"; then :
4094 ac_cv_prog_cxx_g=yes
4095 else
4096 CXXFLAGS=""
4097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4098 /* end confdefs.h. */
4099
4100 int
4101 main ()
4102 {
4103
4104 ;
4105 return 0;
4106 }
4107 _ACEOF
4108 if ac_fn_cxx_try_compile "$LINENO"; then :
4109
4110 else
4111 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4112 CXXFLAGS="-g"
4113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4114 /* end confdefs.h. */
4115
4116 int
4117 main ()
4118 {
4119
4120 ;
4121 return 0;
4122 }
4123 _ACEOF
4124 if ac_fn_cxx_try_compile "$LINENO"; then :
4125 ac_cv_prog_cxx_g=yes
4126 fi
4127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4128 fi
4129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4130 fi
4131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4132 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4133 fi
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4135 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4136 if test "$ac_test_CXXFLAGS" = set; then
4137 CXXFLAGS=$ac_save_CXXFLAGS
4138 elif test $ac_cv_prog_cxx_g = yes; then
4139 if test "$GXX" = yes; then
4140 CXXFLAGS="-g -O2"
4141 else
4142 CXXFLAGS="-g"
4143 fi
4144 else
4145 if test "$GXX" = yes; then
4146 CXXFLAGS="-O2"
4147 else
4148 CXXFLAGS=
4149 fi
4150 fi
4151 ac_ext=c
4152 ac_cpp='$CPP $CPPFLAGS'
4153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4156
4157 ac_ext=c
4158 ac_cpp='$CPP $CPPFLAGS'
4159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4163 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4164 # On Suns, sometimes $CPP names a directory.
4165 if test -n "$CPP" && test -d "$CPP"; then
4166 CPP=
4167 fi
4168 if test -z "$CPP"; then
4169 if ${ac_cv_prog_CPP+:} false; then :
4170 $as_echo_n "(cached) " >&6
4171 else
4172 # Double quotes because CPP needs to be expanded
4173 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4174 do
4175 ac_preproc_ok=false
4176 for ac_c_preproc_warn_flag in '' yes
4177 do
4178 # Use a header file that comes with gcc, so configuring glibc
4179 # with a fresh cross-compiler works.
4180 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4181 # <limits.h> exists even on freestanding compilers.
4182 # On the NeXT, cc -E runs the code through the compiler's parser,
4183 # not just through cpp. "Syntax error" is here to catch this case.
4184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4185 /* end confdefs.h. */
4186 #ifdef __STDC__
4187 # include <limits.h>
4188 #else
4189 # include <assert.h>
4190 #endif
4191 Syntax error
4192 _ACEOF
4193 if ac_fn_c_try_cpp "$LINENO"; then :
4194
4195 else
4196 # Broken: fails on valid input.
4197 continue
4198 fi
4199 rm -f conftest.err conftest.i conftest.$ac_ext
4200
4201 # OK, works on sane cases. Now check whether nonexistent headers
4202 # can be detected and how.
4203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4204 /* end confdefs.h. */
4205 #include <ac_nonexistent.h>
4206 _ACEOF
4207 if ac_fn_c_try_cpp "$LINENO"; then :
4208 # Broken: success on invalid input.
4209 continue
4210 else
4211 # Passes both tests.
4212 ac_preproc_ok=:
4213 break
4214 fi
4215 rm -f conftest.err conftest.i conftest.$ac_ext
4216
4217 done
4218 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4219 rm -f conftest.i conftest.err conftest.$ac_ext
4220 if $ac_preproc_ok; then :
4221 break
4222 fi
4223
4224 done
4225 ac_cv_prog_CPP=$CPP
4226
4227 fi
4228 CPP=$ac_cv_prog_CPP
4229 else
4230 ac_cv_prog_CPP=$CPP
4231 fi
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4233 $as_echo "$CPP" >&6; }
4234 ac_preproc_ok=false
4235 for ac_c_preproc_warn_flag in '' yes
4236 do
4237 # Use a header file that comes with gcc, so configuring glibc
4238 # with a fresh cross-compiler works.
4239 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4240 # <limits.h> exists even on freestanding compilers.
4241 # On the NeXT, cc -E runs the code through the compiler's parser,
4242 # not just through cpp. "Syntax error" is here to catch this case.
4243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4244 /* end confdefs.h. */
4245 #ifdef __STDC__
4246 # include <limits.h>
4247 #else
4248 # include <assert.h>
4249 #endif
4250 Syntax error
4251 _ACEOF
4252 if ac_fn_c_try_cpp "$LINENO"; then :
4253
4254 else
4255 # Broken: fails on valid input.
4256 continue
4257 fi
4258 rm -f conftest.err conftest.i conftest.$ac_ext
4259
4260 # OK, works on sane cases. Now check whether nonexistent headers
4261 # can be detected and how.
4262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4263 /* end confdefs.h. */
4264 #include <ac_nonexistent.h>
4265 _ACEOF
4266 if ac_fn_c_try_cpp "$LINENO"; then :
4267 # Broken: success on invalid input.
4268 continue
4269 else
4270 # Passes both tests.
4271 ac_preproc_ok=:
4272 break
4273 fi
4274 rm -f conftest.err conftest.i conftest.$ac_ext
4275
4276 done
4277 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4278 rm -f conftest.i conftest.err conftest.$ac_ext
4279 if $ac_preproc_ok; then :
4280
4281 else
4282 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4283 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4284 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4285 See \`config.log' for more details" "$LINENO" 5; }
4286 fi
4287
4288 ac_ext=c
4289 ac_cpp='$CPP $CPPFLAGS'
4290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4293
4294
4295 if test -n "$ac_tool_prefix"; then
4296 for ac_prog in ar lib "link -lib"
4297 do
4298 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4299 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4301 $as_echo_n "checking for $ac_word... " >&6; }
4302 if ${ac_cv_prog_AR+:} false; then :
4303 $as_echo_n "(cached) " >&6
4304 else
4305 if test -n "$AR"; then
4306 ac_cv_prog_AR="$AR" # Let the user override the test.
4307 else
4308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4309 for as_dir in $PATH
4310 do
4311 IFS=$as_save_IFS
4312 test -z "$as_dir" && as_dir=.
4313 for ac_exec_ext in '' $ac_executable_extensions; do
4314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4315 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4317 break 2
4318 fi
4319 done
4320 done
4321 IFS=$as_save_IFS
4322
4323 fi
4324 fi
4325 AR=$ac_cv_prog_AR
4326 if test -n "$AR"; then
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4328 $as_echo "$AR" >&6; }
4329 else
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4331 $as_echo "no" >&6; }
4332 fi
4333
4334
4335 test -n "$AR" && break
4336 done
4337 fi
4338 if test -z "$AR"; then
4339 ac_ct_AR=$AR
4340 for ac_prog in ar lib "link -lib"
4341 do
4342 # Extract the first word of "$ac_prog", so it can be a program name with args.
4343 set dummy $ac_prog; ac_word=$2
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4345 $as_echo_n "checking for $ac_word... " >&6; }
4346 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4347 $as_echo_n "(cached) " >&6
4348 else
4349 if test -n "$ac_ct_AR"; then
4350 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4351 else
4352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4353 for as_dir in $PATH
4354 do
4355 IFS=$as_save_IFS
4356 test -z "$as_dir" && as_dir=.
4357 for ac_exec_ext in '' $ac_executable_extensions; do
4358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4359 ac_cv_prog_ac_ct_AR="$ac_prog"
4360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4361 break 2
4362 fi
4363 done
4364 done
4365 IFS=$as_save_IFS
4366
4367 fi
4368 fi
4369 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4370 if test -n "$ac_ct_AR"; then
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4372 $as_echo "$ac_ct_AR" >&6; }
4373 else
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4375 $as_echo "no" >&6; }
4376 fi
4377
4378
4379 test -n "$ac_ct_AR" && break
4380 done
4381
4382 if test "x$ac_ct_AR" = x; then
4383 AR="false"
4384 else
4385 case $cross_compiling:$ac_tool_warned in
4386 yes:)
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4388 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4389 ac_tool_warned=yes ;;
4390 esac
4391 AR=$ac_ct_AR
4392 fi
4393 fi
4394
4395 : ${AR=ar}
4396
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4398 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4399 if ${am_cv_ar_interface+:} false; then :
4400 $as_echo_n "(cached) " >&6
4401 else
4402 ac_ext=c
4403 ac_cpp='$CPP $CPPFLAGS'
4404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4407
4408 am_cv_ar_interface=ar
4409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4410 /* end confdefs.h. */
4411 int some_variable = 0;
4412 _ACEOF
4413 if ac_fn_c_try_compile "$LINENO"; then :
4414 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4415 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4416 (eval $am_ar_try) 2>&5
4417 ac_status=$?
4418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4419 test $ac_status = 0; }
4420 if test "$ac_status" -eq 0; then
4421 am_cv_ar_interface=ar
4422 else
4423 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4424 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4425 (eval $am_ar_try) 2>&5
4426 ac_status=$?
4427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4428 test $ac_status = 0; }
4429 if test "$ac_status" -eq 0; then
4430 am_cv_ar_interface=lib
4431 else
4432 am_cv_ar_interface=unknown
4433 fi
4434 fi
4435 rm -f conftest.lib libconftest.a
4436
4437 fi
4438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4439 ac_ext=c
4440 ac_cpp='$CPP $CPPFLAGS'
4441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4444
4445 fi
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4447 $as_echo "$am_cv_ar_interface" >&6; }
4448
4449 case $am_cv_ar_interface in
4450 ar)
4451 ;;
4452 lib)
4453 # Microsoft lib, so override with the ar-lib wrapper script.
4454 # FIXME: It is wrong to rewrite AR.
4455 # But if we don't then we get into trouble of one sort or another.
4456 # A longer-term fix would be to have automake use am__AR in this case,
4457 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4458 # similar.
4459 AR="$am_aux_dir/ar-lib $AR"
4460 ;;
4461 unknown)
4462 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4463 ;;
4464 esac
4465 case `pwd` in
4466 *\ * | *\ *)
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4468 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4469 esac
4470
4471
4472
4473 macro_version='2.4.2'
4474 macro_revision='1.3337'
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488 ltmain="$ac_aux_dir/ltmain.sh"
4489
4490 # Make sure we can run config.sub.
4491 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4492 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4493
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4495 $as_echo_n "checking build system type... " >&6; }
4496 if ${ac_cv_build+:} false; then :
4497 $as_echo_n "(cached) " >&6
4498 else
4499 ac_build_alias=$build_alias
4500 test "x$ac_build_alias" = x &&
4501 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4502 test "x$ac_build_alias" = x &&
4503 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4504 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4505 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4506
4507 fi
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4509 $as_echo "$ac_cv_build" >&6; }
4510 case $ac_cv_build in
4511 *-*-*) ;;
4512 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4513 esac
4514 build=$ac_cv_build
4515 ac_save_IFS=$IFS; IFS='-'
4516 set x $ac_cv_build
4517 shift
4518 build_cpu=$1
4519 build_vendor=$2
4520 shift; shift
4521 # Remember, the first character of IFS is used to create $*,
4522 # except with old shells:
4523 build_os=$*
4524 IFS=$ac_save_IFS
4525 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4526
4527
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4529 $as_echo_n "checking host system type... " >&6; }
4530 if ${ac_cv_host+:} false; then :
4531 $as_echo_n "(cached) " >&6
4532 else
4533 if test "x$host_alias" = x; then
4534 ac_cv_host=$ac_cv_build
4535 else
4536 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4537 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4538 fi
4539
4540 fi
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4542 $as_echo "$ac_cv_host" >&6; }
4543 case $ac_cv_host in
4544 *-*-*) ;;
4545 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4546 esac
4547 host=$ac_cv_host
4548 ac_save_IFS=$IFS; IFS='-'
4549 set x $ac_cv_host
4550 shift
4551 host_cpu=$1
4552 host_vendor=$2
4553 shift; shift
4554 # Remember, the first character of IFS is used to create $*,
4555 # except with old shells:
4556 host_os=$*
4557 IFS=$ac_save_IFS
4558 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4559
4560
4561 # Backslashify metacharacters that are still active within
4562 # double-quoted strings.
4563 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4564
4565 # Same as above, but do not quote variable references.
4566 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4567
4568 # Sed substitution to delay expansion of an escaped shell variable in a
4569 # double_quote_subst'ed string.
4570 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4571
4572 # Sed substitution to delay expansion of an escaped single quote.
4573 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4574
4575 # Sed substitution to avoid accidental globbing in evaled expressions
4576 no_glob_subst='s/\*/\\\*/g'
4577
4578 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4579 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4580 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4581
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4583 $as_echo_n "checking how to print strings... " >&6; }
4584 # Test print first, because it will be a builtin if present.
4585 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4586 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4587 ECHO='print -r --'
4588 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4589 ECHO='printf %s\n'
4590 else
4591 # Use this function as a fallback that always works.
4592 func_fallback_echo ()
4593 {
4594 eval 'cat <<_LTECHO_EOF
4595 $1
4596 _LTECHO_EOF'
4597 }
4598 ECHO='func_fallback_echo'
4599 fi
4600
4601 # func_echo_all arg...
4602 # Invoke $ECHO with all args, space-separated.
4603 func_echo_all ()
4604 {
4605 $ECHO ""
4606 }
4607
4608 case "$ECHO" in
4609 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4610 $as_echo "printf" >&6; } ;;
4611 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4612 $as_echo "print -r" >&6; } ;;
4613 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4614 $as_echo "cat" >&6; } ;;
4615 esac
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4631 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4632 if ${ac_cv_path_SED+:} false; then :
4633 $as_echo_n "(cached) " >&6
4634 else
4635 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4636 for ac_i in 1 2 3 4 5 6 7; do
4637 ac_script="$ac_script$as_nl$ac_script"
4638 done
4639 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4640 { ac_script=; unset ac_script;}
4641 if test -z "$SED"; then
4642 ac_path_SED_found=false
4643 # Loop through the user's path and test for each of PROGNAME-LIST
4644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4645 for as_dir in $PATH
4646 do
4647 IFS=$as_save_IFS
4648 test -z "$as_dir" && as_dir=.
4649 for ac_prog in sed gsed; do
4650 for ac_exec_ext in '' $ac_executable_extensions; do
4651 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4652 as_fn_executable_p "$ac_path_SED" || continue
4653 # Check for GNU ac_path_SED and select it if it is found.
4654 # Check for GNU $ac_path_SED
4655 case `"$ac_path_SED" --version 2>&1` in
4656 *GNU*)
4657 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4658 *)
4659 ac_count=0
4660 $as_echo_n 0123456789 >"conftest.in"
4661 while :
4662 do
4663 cat "conftest.in" "conftest.in" >"conftest.tmp"
4664 mv "conftest.tmp" "conftest.in"
4665 cp "conftest.in" "conftest.nl"
4666 $as_echo '' >> "conftest.nl"
4667 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4668 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4669 as_fn_arith $ac_count + 1 && ac_count=$as_val
4670 if test $ac_count -gt ${ac_path_SED_max-0}; then
4671 # Best one so far, save it but keep looking for a better one
4672 ac_cv_path_SED="$ac_path_SED"
4673 ac_path_SED_max=$ac_count
4674 fi
4675 # 10*(2^10) chars as input seems more than enough
4676 test $ac_count -gt 10 && break
4677 done
4678 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4679 esac
4680
4681 $ac_path_SED_found && break 3
4682 done
4683 done
4684 done
4685 IFS=$as_save_IFS
4686 if test -z "$ac_cv_path_SED"; then
4687 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4688 fi
4689 else
4690 ac_cv_path_SED=$SED
4691 fi
4692
4693 fi
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4695 $as_echo "$ac_cv_path_SED" >&6; }
4696 SED="$ac_cv_path_SED"
4697 rm -f conftest.sed
4698
4699 test -z "$SED" && SED=sed
4700 Xsed="$SED -e 1s/^X//"
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4713 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4714 if ${ac_cv_path_GREP+:} false; then :
4715 $as_echo_n "(cached) " >&6
4716 else
4717 if test -z "$GREP"; then
4718 ac_path_GREP_found=false
4719 # Loop through the user's path and test for each of PROGNAME-LIST
4720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4721 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4722 do
4723 IFS=$as_save_IFS
4724 test -z "$as_dir" && as_dir=.
4725 for ac_prog in grep ggrep; do
4726 for ac_exec_ext in '' $ac_executable_extensions; do
4727 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4728 as_fn_executable_p "$ac_path_GREP" || continue
4729 # Check for GNU ac_path_GREP and select it if it is found.
4730 # Check for GNU $ac_path_GREP
4731 case `"$ac_path_GREP" --version 2>&1` in
4732 *GNU*)
4733 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4734 *)
4735 ac_count=0
4736 $as_echo_n 0123456789 >"conftest.in"
4737 while :
4738 do
4739 cat "conftest.in" "conftest.in" >"conftest.tmp"
4740 mv "conftest.tmp" "conftest.in"
4741 cp "conftest.in" "conftest.nl"
4742 $as_echo 'GREP' >> "conftest.nl"
4743 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4744 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4745 as_fn_arith $ac_count + 1 && ac_count=$as_val
4746 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4747 # Best one so far, save it but keep looking for a better one
4748 ac_cv_path_GREP="$ac_path_GREP"
4749 ac_path_GREP_max=$ac_count
4750 fi
4751 # 10*(2^10) chars as input seems more than enough
4752 test $ac_count -gt 10 && break
4753 done
4754 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4755 esac
4756
4757 $ac_path_GREP_found && break 3
4758 done
4759 done
4760 done
4761 IFS=$as_save_IFS
4762 if test -z "$ac_cv_path_GREP"; then
4763 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4764 fi
4765 else
4766 ac_cv_path_GREP=$GREP
4767 fi
4768
4769 fi
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4771 $as_echo "$ac_cv_path_GREP" >&6; }
4772 GREP="$ac_cv_path_GREP"
4773
4774
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4776 $as_echo_n "checking for egrep... " >&6; }
4777 if ${ac_cv_path_EGREP+:} false; then :
4778 $as_echo_n "(cached) " >&6
4779 else
4780 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4781 then ac_cv_path_EGREP="$GREP -E"
4782 else
4783 if test -z "$EGREP"; then
4784 ac_path_EGREP_found=false
4785 # Loop through the user's path and test for each of PROGNAME-LIST
4786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4787 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4788 do
4789 IFS=$as_save_IFS
4790 test -z "$as_dir" && as_dir=.
4791 for ac_prog in egrep; do
4792 for ac_exec_ext in '' $ac_executable_extensions; do
4793 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4794 as_fn_executable_p "$ac_path_EGREP" || continue
4795 # Check for GNU ac_path_EGREP and select it if it is found.
4796 # Check for GNU $ac_path_EGREP
4797 case `"$ac_path_EGREP" --version 2>&1` in
4798 *GNU*)
4799 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4800 *)
4801 ac_count=0
4802 $as_echo_n 0123456789 >"conftest.in"
4803 while :
4804 do
4805 cat "conftest.in" "conftest.in" >"conftest.tmp"
4806 mv "conftest.tmp" "conftest.in"
4807 cp "conftest.in" "conftest.nl"
4808 $as_echo 'EGREP' >> "conftest.nl"
4809 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4810 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4811 as_fn_arith $ac_count + 1 && ac_count=$as_val
4812 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4813 # Best one so far, save it but keep looking for a better one
4814 ac_cv_path_EGREP="$ac_path_EGREP"
4815 ac_path_EGREP_max=$ac_count
4816 fi
4817 # 10*(2^10) chars as input seems more than enough
4818 test $ac_count -gt 10 && break
4819 done
4820 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4821 esac
4822
4823 $ac_path_EGREP_found && break 3
4824 done
4825 done
4826 done
4827 IFS=$as_save_IFS
4828 if test -z "$ac_cv_path_EGREP"; then
4829 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4830 fi
4831 else
4832 ac_cv_path_EGREP=$EGREP
4833 fi
4834
4835 fi
4836 fi
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4838 $as_echo "$ac_cv_path_EGREP" >&6; }
4839 EGREP="$ac_cv_path_EGREP"
4840
4841
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4843 $as_echo_n "checking for fgrep... " >&6; }
4844 if ${ac_cv_path_FGREP+:} false; then :
4845 $as_echo_n "(cached) " >&6
4846 else
4847 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4848 then ac_cv_path_FGREP="$GREP -F"
4849 else
4850 if test -z "$FGREP"; then
4851 ac_path_FGREP_found=false
4852 # Loop through the user's path and test for each of PROGNAME-LIST
4853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4854 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4855 do
4856 IFS=$as_save_IFS
4857 test -z "$as_dir" && as_dir=.
4858 for ac_prog in fgrep; do
4859 for ac_exec_ext in '' $ac_executable_extensions; do
4860 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4861 as_fn_executable_p "$ac_path_FGREP" || continue
4862 # Check for GNU ac_path_FGREP and select it if it is found.
4863 # Check for GNU $ac_path_FGREP
4864 case `"$ac_path_FGREP" --version 2>&1` in
4865 *GNU*)
4866 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4867 *)
4868 ac_count=0
4869 $as_echo_n 0123456789 >"conftest.in"
4870 while :
4871 do
4872 cat "conftest.in" "conftest.in" >"conftest.tmp"
4873 mv "conftest.tmp" "conftest.in"
4874 cp "conftest.in" "conftest.nl"
4875 $as_echo 'FGREP' >> "conftest.nl"
4876 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4877 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4878 as_fn_arith $ac_count + 1 && ac_count=$as_val
4879 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4880 # Best one so far, save it but keep looking for a better one
4881 ac_cv_path_FGREP="$ac_path_FGREP"
4882 ac_path_FGREP_max=$ac_count
4883 fi
4884 # 10*(2^10) chars as input seems more than enough
4885 test $ac_count -gt 10 && break
4886 done
4887 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4888 esac
4889
4890 $ac_path_FGREP_found && break 3
4891 done
4892 done
4893 done
4894 IFS=$as_save_IFS
4895 if test -z "$ac_cv_path_FGREP"; then
4896 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4897 fi
4898 else
4899 ac_cv_path_FGREP=$FGREP
4900 fi
4901
4902 fi
4903 fi
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4905 $as_echo "$ac_cv_path_FGREP" >&6; }
4906 FGREP="$ac_cv_path_FGREP"
4907
4908
4909 test -z "$GREP" && GREP=grep
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929 # Check whether --with-gnu-ld was given.
4930 if test "${with_gnu_ld+set}" = set; then :
4931 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4932 else
4933 with_gnu_ld=no
4934 fi
4935
4936 ac_prog=ld
4937 if test "$GCC" = yes; then
4938 # Check if gcc -print-prog-name=ld gives a path.
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4940 $as_echo_n "checking for ld used by $CC... " >&6; }
4941 case $host in
4942 *-*-mingw*)
4943 # gcc leaves a trailing carriage return which upsets mingw
4944 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4945 *)
4946 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4947 esac
4948 case $ac_prog in
4949 # Accept absolute paths.
4950 [\\/]* | ?:[\\/]*)
4951 re_direlt='/[^/][^/]*/\.\./'
4952 # Canonicalize the pathname of ld
4953 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4954 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4955 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4956 done
4957 test -z "$LD" && LD="$ac_prog"
4958 ;;
4959 "")
4960 # If it fails, then pretend we aren't using GCC.
4961 ac_prog=ld
4962 ;;
4963 *)
4964 # If it is relative, then search for the first ld in PATH.
4965 with_gnu_ld=unknown
4966 ;;
4967 esac
4968 elif test "$with_gnu_ld" = yes; then
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4970 $as_echo_n "checking for GNU ld... " >&6; }
4971 else
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4973 $as_echo_n "checking for non-GNU ld... " >&6; }
4974 fi
4975 if ${lt_cv_path_LD+:} false; then :
4976 $as_echo_n "(cached) " >&6
4977 else
4978 if test -z "$LD"; then
4979 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4980 for ac_dir in $PATH; do
4981 IFS="$lt_save_ifs"
4982 test -z "$ac_dir" && ac_dir=.
4983 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4984 lt_cv_path_LD="$ac_dir/$ac_prog"
4985 # Check to see if the program is GNU ld. I'd rather use --version,
4986 # but apparently some variants of GNU ld only accept -v.
4987 # Break only if it was the GNU/non-GNU ld that we prefer.
4988 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4989 *GNU* | *'with BFD'*)
4990 test "$with_gnu_ld" != no && break
4991 ;;
4992 *)
4993 test "$with_gnu_ld" != yes && break
4994 ;;
4995 esac
4996 fi
4997 done
4998 IFS="$lt_save_ifs"
4999 else
5000 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5001 fi
5002 fi
5003
5004 LD="$lt_cv_path_LD"
5005 if test -n "$LD"; then
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5007 $as_echo "$LD" >&6; }
5008 else
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5010 $as_echo "no" >&6; }
5011 fi
5012 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5014 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5015 if ${lt_cv_prog_gnu_ld+:} false; then :
5016 $as_echo_n "(cached) " >&6
5017 else
5018 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5019 case `$LD -v 2>&1 </dev/null` in
5020 *GNU* | *'with BFD'*)
5021 lt_cv_prog_gnu_ld=yes
5022 ;;
5023 *)
5024 lt_cv_prog_gnu_ld=no
5025 ;;
5026 esac
5027 fi
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5029 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5030 with_gnu_ld=$lt_cv_prog_gnu_ld
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5041 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5042 if ${lt_cv_path_NM+:} false; then :
5043 $as_echo_n "(cached) " >&6
5044 else
5045 if test -n "$NM"; then
5046 # Let the user override the test.
5047 lt_cv_path_NM="$NM"
5048 else
5049 lt_nm_to_check="${ac_tool_prefix}nm"
5050 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5051 lt_nm_to_check="$lt_nm_to_check nm"
5052 fi
5053 for lt_tmp_nm in $lt_nm_to_check; do
5054 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5055 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5056 IFS="$lt_save_ifs"
5057 test -z "$ac_dir" && ac_dir=.
5058 tmp_nm="$ac_dir/$lt_tmp_nm"
5059 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5060 # Check to see if the nm accepts a BSD-compat flag.
5061 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5062 # nm: unknown option "B" ignored
5063 # Tru64's nm complains that /dev/null is an invalid object file
5064 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5065 */dev/null* | *'Invalid file or object type'*)
5066 lt_cv_path_NM="$tmp_nm -B"
5067 break
5068 ;;
5069 *)
5070 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5071 */dev/null*)
5072 lt_cv_path_NM="$tmp_nm -p"
5073 break
5074 ;;
5075 *)
5076 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5077 continue # so that we can try to find one that supports BSD flags
5078 ;;
5079 esac
5080 ;;
5081 esac
5082 fi
5083 done
5084 IFS="$lt_save_ifs"
5085 done
5086 : ${lt_cv_path_NM=no}
5087 fi
5088 fi
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5090 $as_echo "$lt_cv_path_NM" >&6; }
5091 if test "$lt_cv_path_NM" != "no"; then
5092 NM="$lt_cv_path_NM"
5093 else
5094 # Didn't find any BSD compatible name lister, look for dumpbin.
5095 if test -n "$DUMPBIN"; then :
5096 # Let the user override the test.
5097 else
5098 if test -n "$ac_tool_prefix"; then
5099 for ac_prog in dumpbin "link -dump"
5100 do
5101 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5102 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5104 $as_echo_n "checking for $ac_word... " >&6; }
5105 if ${ac_cv_prog_DUMPBIN+:} false; then :
5106 $as_echo_n "(cached) " >&6
5107 else
5108 if test -n "$DUMPBIN"; then
5109 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5110 else
5111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5112 for as_dir in $PATH
5113 do
5114 IFS=$as_save_IFS
5115 test -z "$as_dir" && as_dir=.
5116 for ac_exec_ext in '' $ac_executable_extensions; do
5117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5118 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5120 break 2
5121 fi
5122 done
5123 done
5124 IFS=$as_save_IFS
5125
5126 fi
5127 fi
5128 DUMPBIN=$ac_cv_prog_DUMPBIN
5129 if test -n "$DUMPBIN"; then
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5131 $as_echo "$DUMPBIN" >&6; }
5132 else
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5134 $as_echo "no" >&6; }
5135 fi
5136
5137
5138 test -n "$DUMPBIN" && break
5139 done
5140 fi
5141 if test -z "$DUMPBIN"; then
5142 ac_ct_DUMPBIN=$DUMPBIN
5143 for ac_prog in dumpbin "link -dump"
5144 do
5145 # Extract the first word of "$ac_prog", so it can be a program name with args.
5146 set dummy $ac_prog; ac_word=$2
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5148 $as_echo_n "checking for $ac_word... " >&6; }
5149 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5150 $as_echo_n "(cached) " >&6
5151 else
5152 if test -n "$ac_ct_DUMPBIN"; then
5153 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5154 else
5155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5156 for as_dir in $PATH
5157 do
5158 IFS=$as_save_IFS
5159 test -z "$as_dir" && as_dir=.
5160 for ac_exec_ext in '' $ac_executable_extensions; do
5161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5162 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5164 break 2
5165 fi
5166 done
5167 done
5168 IFS=$as_save_IFS
5169
5170 fi
5171 fi
5172 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5173 if test -n "$ac_ct_DUMPBIN"; then
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5175 $as_echo "$ac_ct_DUMPBIN" >&6; }
5176 else
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5178 $as_echo "no" >&6; }
5179 fi
5180
5181
5182 test -n "$ac_ct_DUMPBIN" && break
5183 done
5184
5185 if test "x$ac_ct_DUMPBIN" = x; then
5186 DUMPBIN=":"
5187 else
5188 case $cross_compiling:$ac_tool_warned in
5189 yes:)
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5191 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5192 ac_tool_warned=yes ;;
5193 esac
5194 DUMPBIN=$ac_ct_DUMPBIN
5195 fi
5196 fi
5197
5198 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5199 *COFF*)
5200 DUMPBIN="$DUMPBIN -symbols"
5201 ;;
5202 *)
5203 DUMPBIN=:
5204 ;;
5205 esac
5206 fi
5207
5208 if test "$DUMPBIN" != ":"; then
5209 NM="$DUMPBIN"
5210 fi
5211 fi
5212 test -z "$NM" && NM=nm
5213
5214
5215
5216
5217
5218
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5220 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5221 if ${lt_cv_nm_interface+:} false; then :
5222 $as_echo_n "(cached) " >&6
5223 else
5224 lt_cv_nm_interface="BSD nm"
5225 echo "int some_variable = 0;" > conftest.$ac_ext
5226 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5227 (eval "$ac_compile" 2>conftest.err)
5228 cat conftest.err >&5
5229 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5230 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5231 cat conftest.err >&5
5232 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5233 cat conftest.out >&5
5234 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5235 lt_cv_nm_interface="MS dumpbin"
5236 fi
5237 rm -f conftest*
5238 fi
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5240 $as_echo "$lt_cv_nm_interface" >&6; }
5241
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5243 $as_echo_n "checking whether ln -s works... " >&6; }
5244 LN_S=$as_ln_s
5245 if test "$LN_S" = "ln -s"; then
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5247 $as_echo "yes" >&6; }
5248 else
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5250 $as_echo "no, using $LN_S" >&6; }
5251 fi
5252
5253 # find the maximum length of command line arguments
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5255 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5256 if ${lt_cv_sys_max_cmd_len+:} false; then :
5257 $as_echo_n "(cached) " >&6
5258 else
5259 i=0
5260 teststring="ABCD"
5261
5262 case $build_os in
5263 msdosdjgpp*)
5264 # On DJGPP, this test can blow up pretty badly due to problems in libc
5265 # (any single argument exceeding 2000 bytes causes a buffer overrun
5266 # during glob expansion). Even if it were fixed, the result of this
5267 # check would be larger than it should be.
5268 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5269 ;;
5270
5271 gnu*)
5272 # Under GNU Hurd, this test is not required because there is
5273 # no limit to the length of command line arguments.
5274 # Libtool will interpret -1 as no limit whatsoever
5275 lt_cv_sys_max_cmd_len=-1;
5276 ;;
5277
5278 cygwin* | mingw* | cegcc*)
5279 # On Win9x/ME, this test blows up -- it succeeds, but takes
5280 # about 5 minutes as the teststring grows exponentially.
5281 # Worse, since 9x/ME are not pre-emptively multitasking,
5282 # you end up with a "frozen" computer, even though with patience
5283 # the test eventually succeeds (with a max line length of 256k).
5284 # Instead, let's just punt: use the minimum linelength reported by
5285 # all of the supported platforms: 8192 (on NT/2K/XP).
5286 lt_cv_sys_max_cmd_len=8192;
5287 ;;
5288
5289 mint*)
5290 # On MiNT this can take a long time and run out of memory.
5291 lt_cv_sys_max_cmd_len=8192;
5292 ;;
5293
5294 amigaos*)
5295 # On AmigaOS with pdksh, this test takes hours, literally.
5296 # So we just punt and use a minimum line length of 8192.
5297 lt_cv_sys_max_cmd_len=8192;
5298 ;;
5299
5300 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5301 # This has been around since 386BSD, at least. Likely further.
5302 if test -x /sbin/sysctl; then
5303 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5304 elif test -x /usr/sbin/sysctl; then
5305 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5306 else
5307 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5308 fi
5309 # And add a safety zone
5310 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5311 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5312 ;;
5313
5314 interix*)
5315 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5316 lt_cv_sys_max_cmd_len=196608
5317 ;;
5318
5319 os2*)
5320 # The test takes a long time on OS/2.
5321 lt_cv_sys_max_cmd_len=8192
5322 ;;
5323
5324 osf*)
5325 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5326 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5327 # nice to cause kernel panics so lets avoid the loop below.
5328 # First set a reasonable default.
5329 lt_cv_sys_max_cmd_len=16384
5330 #
5331 if test -x /sbin/sysconfig; then
5332 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5333 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5334 esac
5335 fi
5336 ;;
5337 sco3.2v5*)
5338 lt_cv_sys_max_cmd_len=102400
5339 ;;
5340 sysv5* | sco5v6* | sysv4.2uw2*)
5341 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5342 if test -n "$kargmax"; then
5343 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5344 else
5345 lt_cv_sys_max_cmd_len=32768
5346 fi
5347 ;;
5348 *)
5349 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5350 if test -n "$lt_cv_sys_max_cmd_len"; then
5351 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5352 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5353 else
5354 # Make teststring a little bigger before we do anything with it.
5355 # a 1K string should be a reasonable start.
5356 for i in 1 2 3 4 5 6 7 8 ; do
5357 teststring=$teststring$teststring
5358 done
5359 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5360 # If test is not a shell built-in, we'll probably end up computing a
5361 # maximum length that is only half of the actual maximum length, but
5362 # we can't tell.
5363 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5364 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5365 test $i != 17 # 1/2 MB should be enough
5366 do
5367 i=`expr $i + 1`
5368 teststring=$teststring$teststring
5369 done
5370 # Only check the string length outside the loop.
5371 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5372 teststring=
5373 # Add a significant safety factor because C++ compilers can tack on
5374 # massive amounts of additional arguments before passing them to the
5375 # linker. It appears as though 1/2 is a usable value.
5376 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5377 fi
5378 ;;
5379 esac
5380
5381 fi
5382
5383 if test -n $lt_cv_sys_max_cmd_len ; then
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5385 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5386 else
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5388 $as_echo "none" >&6; }
5389 fi
5390 max_cmd_len=$lt_cv_sys_max_cmd_len
5391
5392
5393
5394
5395
5396
5397 : ${CP="cp -f"}
5398 : ${MV="mv -f"}
5399 : ${RM="rm -f"}
5400
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5402 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5403 # Try some XSI features
5404 xsi_shell=no
5405 ( _lt_dummy="a/b/c"
5406 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5407 = c,a/b,b/c, \
5408 && eval 'test $(( 1 + 1 )) -eq 2 \
5409 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5410 && xsi_shell=yes
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5412 $as_echo "$xsi_shell" >&6; }
5413
5414
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5416 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5417 lt_shell_append=no
5418 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5419 >/dev/null 2>&1 \
5420 && lt_shell_append=yes
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5422 $as_echo "$lt_shell_append" >&6; }
5423
5424
5425 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5426 lt_unset=unset
5427 else
5428 lt_unset=false
5429 fi
5430
5431
5432
5433
5434
5435 # test EBCDIC or ASCII
5436 case `echo X|tr X '\101'` in
5437 A) # ASCII based system
5438 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5439 lt_SP2NL='tr \040 \012'
5440 lt_NL2SP='tr \015\012 \040\040'
5441 ;;
5442 *) # EBCDIC based system
5443 lt_SP2NL='tr \100 \n'
5444 lt_NL2SP='tr \r\n \100\100'
5445 ;;
5446 esac
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5457 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5458 if ${lt_cv_to_host_file_cmd+:} false; then :
5459 $as_echo_n "(cached) " >&6
5460 else
5461 case $host in
5462 *-*-mingw* )
5463 case $build in
5464 *-*-mingw* ) # actually msys
5465 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5466 ;;
5467 *-*-cygwin* )
5468 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5469 ;;
5470 * ) # otherwise, assume *nix
5471 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5472 ;;
5473 esac
5474 ;;
5475 *-*-cygwin* )
5476 case $build in
5477 *-*-mingw* ) # actually msys
5478 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5479 ;;
5480 *-*-cygwin* )
5481 lt_cv_to_host_file_cmd=func_convert_file_noop
5482 ;;
5483 * ) # otherwise, assume *nix
5484 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5485 ;;
5486 esac
5487 ;;
5488 * ) # unhandled hosts (and "normal" native builds)
5489 lt_cv_to_host_file_cmd=func_convert_file_noop
5490 ;;
5491 esac
5492
5493 fi
5494
5495 to_host_file_cmd=$lt_cv_to_host_file_cmd
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5497 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5498
5499
5500
5501
5502
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5504 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5505 if ${lt_cv_to_tool_file_cmd+:} false; then :
5506 $as_echo_n "(cached) " >&6
5507 else
5508 #assume ordinary cross tools, or native build.
5509 lt_cv_to_tool_file_cmd=func_convert_file_noop
5510 case $host in
5511 *-*-mingw* )
5512 case $build in
5513 *-*-mingw* ) # actually msys
5514 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5515 ;;
5516 esac
5517 ;;
5518 esac
5519
5520 fi
5521
5522 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5524 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5525
5526
5527
5528
5529
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5531 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5532 if ${lt_cv_ld_reload_flag+:} false; then :
5533 $as_echo_n "(cached) " >&6
5534 else
5535 lt_cv_ld_reload_flag='-r'
5536 fi
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5538 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5539 reload_flag=$lt_cv_ld_reload_flag
5540 case $reload_flag in
5541 "" | " "*) ;;
5542 *) reload_flag=" $reload_flag" ;;
5543 esac
5544 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5545 case $host_os in
5546 cygwin* | mingw* | pw32* | cegcc*)
5547 if test "$GCC" != yes; then
5548 reload_cmds=false
5549 fi
5550 ;;
5551 darwin*)
5552 if test "$GCC" = yes; then
5553 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5554 else
5555 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5556 fi
5557 ;;
5558 esac
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568 if test -n "$ac_tool_prefix"; then
5569 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5570 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5572 $as_echo_n "checking for $ac_word... " >&6; }
5573 if ${ac_cv_prog_OBJDUMP+:} false; then :
5574 $as_echo_n "(cached) " >&6
5575 else
5576 if test -n "$OBJDUMP"; then
5577 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5578 else
5579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5580 for as_dir in $PATH
5581 do
5582 IFS=$as_save_IFS
5583 test -z "$as_dir" && as_dir=.
5584 for ac_exec_ext in '' $ac_executable_extensions; do
5585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5586 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5588 break 2
5589 fi
5590 done
5591 done
5592 IFS=$as_save_IFS
5593
5594 fi
5595 fi
5596 OBJDUMP=$ac_cv_prog_OBJDUMP
5597 if test -n "$OBJDUMP"; then
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5599 $as_echo "$OBJDUMP" >&6; }
5600 else
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5602 $as_echo "no" >&6; }
5603 fi
5604
5605
5606 fi
5607 if test -z "$ac_cv_prog_OBJDUMP"; then
5608 ac_ct_OBJDUMP=$OBJDUMP
5609 # Extract the first word of "objdump", so it can be a program name with args.
5610 set dummy objdump; ac_word=$2
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5612 $as_echo_n "checking for $ac_word... " >&6; }
5613 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5614 $as_echo_n "(cached) " >&6
5615 else
5616 if test -n "$ac_ct_OBJDUMP"; then
5617 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5618 else
5619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5620 for as_dir in $PATH
5621 do
5622 IFS=$as_save_IFS
5623 test -z "$as_dir" && as_dir=.
5624 for ac_exec_ext in '' $ac_executable_extensions; do
5625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5626 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5628 break 2
5629 fi
5630 done
5631 done
5632 IFS=$as_save_IFS
5633
5634 fi
5635 fi
5636 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5637 if test -n "$ac_ct_OBJDUMP"; then
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5639 $as_echo "$ac_ct_OBJDUMP" >&6; }
5640 else
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5642 $as_echo "no" >&6; }
5643 fi
5644
5645 if test "x$ac_ct_OBJDUMP" = x; then
5646 OBJDUMP="false"
5647 else
5648 case $cross_compiling:$ac_tool_warned in
5649 yes:)
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5651 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5652 ac_tool_warned=yes ;;
5653 esac
5654 OBJDUMP=$ac_ct_OBJDUMP
5655 fi
5656 else
5657 OBJDUMP="$ac_cv_prog_OBJDUMP"
5658 fi
5659
5660 test -z "$OBJDUMP" && OBJDUMP=objdump
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5671 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5672 if ${lt_cv_deplibs_check_method+:} false; then :
5673 $as_echo_n "(cached) " >&6
5674 else
5675 lt_cv_file_magic_cmd='$MAGIC_CMD'
5676 lt_cv_file_magic_test_file=
5677 lt_cv_deplibs_check_method='unknown'
5678 # Need to set the preceding variable on all platforms that support
5679 # interlibrary dependencies.
5680 # 'none' -- dependencies not supported.
5681 # `unknown' -- same as none, but documents that we really don't know.
5682 # 'pass_all' -- all dependencies passed with no checks.
5683 # 'test_compile' -- check by making test program.
5684 # 'file_magic [[regex]]' -- check by looking for files in library path
5685 # which responds to the $file_magic_cmd with a given extended regex.
5686 # If you have `file' or equivalent on your system and you're not sure
5687 # whether `pass_all' will *always* work, you probably want this one.
5688
5689 case $host_os in
5690 aix[4-9]*)
5691 lt_cv_deplibs_check_method=pass_all
5692 ;;
5693
5694 beos*)
5695 lt_cv_deplibs_check_method=pass_all
5696 ;;
5697
5698 bsdi[45]*)
5699 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5700 lt_cv_file_magic_cmd='/usr/bin/file -L'
5701 lt_cv_file_magic_test_file=/shlib/libc.so
5702 ;;
5703
5704 cygwin*)
5705 # func_win32_libid is a shell function defined in ltmain.sh
5706 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5707 lt_cv_file_magic_cmd='func_win32_libid'
5708 ;;
5709
5710 mingw* | pw32*)
5711 # Base MSYS/MinGW do not provide the 'file' command needed by
5712 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5713 # unless we find 'file', for example because we are cross-compiling.
5714 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5715 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5716 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5717 lt_cv_file_magic_cmd='func_win32_libid'
5718 else
5719 # Keep this pattern in sync with the one in func_win32_libid.
5720 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5721 lt_cv_file_magic_cmd='$OBJDUMP -f'
5722 fi
5723 ;;
5724
5725 cegcc*)
5726 # use the weaker test based on 'objdump'. See mingw*.
5727 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5728 lt_cv_file_magic_cmd='$OBJDUMP -f'
5729 ;;
5730
5731 darwin* | rhapsody*)
5732 lt_cv_deplibs_check_method=pass_all
5733 ;;
5734
5735 freebsd* | dragonfly*)
5736 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5737 case $host_cpu in
5738 i*86 )
5739 # Not sure whether the presence of OpenBSD here was a mistake.
5740 # Let's accept both of them until this is cleared up.
5741 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5742 lt_cv_file_magic_cmd=/usr/bin/file
5743 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5744 ;;
5745 esac
5746 else
5747 lt_cv_deplibs_check_method=pass_all
5748 fi
5749 ;;
5750
5751 gnu*)
5752 lt_cv_deplibs_check_method=pass_all
5753 ;;
5754
5755 haiku*)
5756 lt_cv_deplibs_check_method=pass_all
5757 ;;
5758
5759 hpux10.20* | hpux11*)
5760 lt_cv_file_magic_cmd=/usr/bin/file
5761 case $host_cpu in
5762 ia64*)
5763 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5764 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5765 ;;
5766 hppa*64*)
5767 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]'
5768 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5769 ;;
5770 *)
5771 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5772 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5773 ;;
5774 esac
5775 ;;
5776
5777 interix[3-9]*)
5778 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5779 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5780 ;;
5781
5782 irix5* | irix6* | nonstopux*)
5783 case $LD in
5784 *-32|*"-32 ") libmagic=32-bit;;
5785 *-n32|*"-n32 ") libmagic=N32;;
5786 *-64|*"-64 ") libmagic=64-bit;;
5787 *) libmagic=never-match;;
5788 esac
5789 lt_cv_deplibs_check_method=pass_all
5790 ;;
5791
5792 # This must be glibc/ELF.
5793 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5794 lt_cv_deplibs_check_method=pass_all
5795 ;;
5796
5797 netbsd*)
5798 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5799 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5800 else
5801 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5802 fi
5803 ;;
5804
5805 newos6*)
5806 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5807 lt_cv_file_magic_cmd=/usr/bin/file
5808 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5809 ;;
5810
5811 *nto* | *qnx*)
5812 lt_cv_deplibs_check_method=pass_all
5813 ;;
5814
5815 openbsd*)
5816 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5817 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5818 else
5819 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5820 fi
5821 ;;
5822
5823 osf3* | osf4* | osf5*)
5824 lt_cv_deplibs_check_method=pass_all
5825 ;;
5826
5827 rdos*)
5828 lt_cv_deplibs_check_method=pass_all
5829 ;;
5830
5831 solaris*)
5832 lt_cv_deplibs_check_method=pass_all
5833 ;;
5834
5835 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5836 lt_cv_deplibs_check_method=pass_all
5837 ;;
5838
5839 sysv4 | sysv4.3*)
5840 case $host_vendor in
5841 motorola)
5842 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]'
5843 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5844 ;;
5845 ncr)
5846 lt_cv_deplibs_check_method=pass_all
5847 ;;
5848 sequent)
5849 lt_cv_file_magic_cmd='/bin/file'
5850 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5851 ;;
5852 sni)
5853 lt_cv_file_magic_cmd='/bin/file'
5854 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5855 lt_cv_file_magic_test_file=/lib/libc.so
5856 ;;
5857 siemens)
5858 lt_cv_deplibs_check_method=pass_all
5859 ;;
5860 pc)
5861 lt_cv_deplibs_check_method=pass_all
5862 ;;
5863 esac
5864 ;;
5865
5866 tpf*)
5867 lt_cv_deplibs_check_method=pass_all
5868 ;;
5869 esac
5870
5871 fi
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5873 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5874
5875 file_magic_glob=
5876 want_nocaseglob=no
5877 if test "$build" = "$host"; then
5878 case $host_os in
5879 mingw* | pw32*)
5880 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5881 want_nocaseglob=yes
5882 else
5883 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5884 fi
5885 ;;
5886 esac
5887 fi
5888
5889 file_magic_cmd=$lt_cv_file_magic_cmd
5890 deplibs_check_method=$lt_cv_deplibs_check_method
5891 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914 if test -n "$ac_tool_prefix"; then
5915 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5916 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5918 $as_echo_n "checking for $ac_word... " >&6; }
5919 if ${ac_cv_prog_DLLTOOL+:} false; then :
5920 $as_echo_n "(cached) " >&6
5921 else
5922 if test -n "$DLLTOOL"; then
5923 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5924 else
5925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5926 for as_dir in $PATH
5927 do
5928 IFS=$as_save_IFS
5929 test -z "$as_dir" && as_dir=.
5930 for ac_exec_ext in '' $ac_executable_extensions; do
5931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5932 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5934 break 2
5935 fi
5936 done
5937 done
5938 IFS=$as_save_IFS
5939
5940 fi
5941 fi
5942 DLLTOOL=$ac_cv_prog_DLLTOOL
5943 if test -n "$DLLTOOL"; then
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5945 $as_echo "$DLLTOOL" >&6; }
5946 else
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5948 $as_echo "no" >&6; }
5949 fi
5950
5951
5952 fi
5953 if test -z "$ac_cv_prog_DLLTOOL"; then
5954 ac_ct_DLLTOOL=$DLLTOOL
5955 # Extract the first word of "dlltool", so it can be a program name with args.
5956 set dummy dlltool; ac_word=$2
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5958 $as_echo_n "checking for $ac_word... " >&6; }
5959 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5960 $as_echo_n "(cached) " >&6
5961 else
5962 if test -n "$ac_ct_DLLTOOL"; then
5963 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5964 else
5965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5966 for as_dir in $PATH
5967 do
5968 IFS=$as_save_IFS
5969 test -z "$as_dir" && as_dir=.
5970 for ac_exec_ext in '' $ac_executable_extensions; do
5971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5972 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5974 break 2
5975 fi
5976 done
5977 done
5978 IFS=$as_save_IFS
5979
5980 fi
5981 fi
5982 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5983 if test -n "$ac_ct_DLLTOOL"; then
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5985 $as_echo "$ac_ct_DLLTOOL" >&6; }
5986 else
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5988 $as_echo "no" >&6; }
5989 fi
5990
5991 if test "x$ac_ct_DLLTOOL" = x; then
5992 DLLTOOL="false"
5993 else
5994 case $cross_compiling:$ac_tool_warned in
5995 yes:)
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5997 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5998 ac_tool_warned=yes ;;
5999 esac
6000 DLLTOOL=$ac_ct_DLLTOOL
6001 fi
6002 else
6003 DLLTOOL="$ac_cv_prog_DLLTOOL"
6004 fi
6005
6006 test -z "$DLLTOOL" && DLLTOOL=dlltool
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6018 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6019 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6020 $as_echo_n "(cached) " >&6
6021 else
6022 lt_cv_sharedlib_from_linklib_cmd='unknown'
6023
6024 case $host_os in
6025 cygwin* | mingw* | pw32* | cegcc*)
6026 # two different shell functions defined in ltmain.sh
6027 # decide which to use based on capabilities of $DLLTOOL
6028 case `$DLLTOOL --help 2>&1` in
6029 *--identify-strict*)
6030 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6031 ;;
6032 *)
6033 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6034 ;;
6035 esac
6036 ;;
6037 *)
6038 # fallback: assume linklib IS sharedlib
6039 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6040 ;;
6041 esac
6042
6043 fi
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6045 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6046 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6047 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6048
6049
6050
6051
6052
6053
6054
6055 if test -n "$ac_tool_prefix"; then
6056 for ac_prog in ar
6057 do
6058 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6059 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6061 $as_echo_n "checking for $ac_word... " >&6; }
6062 if ${ac_cv_prog_AR+:} false; then :
6063 $as_echo_n "(cached) " >&6
6064 else
6065 if test -n "$AR"; then
6066 ac_cv_prog_AR="$AR" # Let the user override the test.
6067 else
6068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6069 for as_dir in $PATH
6070 do
6071 IFS=$as_save_IFS
6072 test -z "$as_dir" && as_dir=.
6073 for ac_exec_ext in '' $ac_executable_extensions; do
6074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6075 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6077 break 2
6078 fi
6079 done
6080 done
6081 IFS=$as_save_IFS
6082
6083 fi
6084 fi
6085 AR=$ac_cv_prog_AR
6086 if test -n "$AR"; then
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6088 $as_echo "$AR" >&6; }
6089 else
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6091 $as_echo "no" >&6; }
6092 fi
6093
6094
6095 test -n "$AR" && break
6096 done
6097 fi
6098 if test -z "$AR"; then
6099 ac_ct_AR=$AR
6100 for ac_prog in ar
6101 do
6102 # Extract the first word of "$ac_prog", so it can be a program name with args.
6103 set dummy $ac_prog; ac_word=$2
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6105 $as_echo_n "checking for $ac_word... " >&6; }
6106 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6107 $as_echo_n "(cached) " >&6
6108 else
6109 if test -n "$ac_ct_AR"; then
6110 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6111 else
6112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6113 for as_dir in $PATH
6114 do
6115 IFS=$as_save_IFS
6116 test -z "$as_dir" && as_dir=.
6117 for ac_exec_ext in '' $ac_executable_extensions; do
6118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6119 ac_cv_prog_ac_ct_AR="$ac_prog"
6120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6121 break 2
6122 fi
6123 done
6124 done
6125 IFS=$as_save_IFS
6126
6127 fi
6128 fi
6129 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6130 if test -n "$ac_ct_AR"; then
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6132 $as_echo "$ac_ct_AR" >&6; }
6133 else
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6135 $as_echo "no" >&6; }
6136 fi
6137
6138
6139 test -n "$ac_ct_AR" && break
6140 done
6141
6142 if test "x$ac_ct_AR" = x; then
6143 AR="false"
6144 else
6145 case $cross_compiling:$ac_tool_warned in
6146 yes:)
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6148 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6149 ac_tool_warned=yes ;;
6150 esac
6151 AR=$ac_ct_AR
6152 fi
6153 fi
6154
6155 : ${AR=ar}
6156 : ${AR_FLAGS=cru}
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6169 $as_echo_n "checking for archiver @FILE support... " >&6; }
6170 if ${lt_cv_ar_at_file+:} false; then :
6171 $as_echo_n "(cached) " >&6
6172 else
6173 lt_cv_ar_at_file=no
6174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6175 /* end confdefs.h. */
6176
6177 int
6178 main ()
6179 {
6180
6181 ;
6182 return 0;
6183 }
6184 _ACEOF
6185 if ac_fn_c_try_compile "$LINENO"; then :
6186 echo conftest.$ac_objext > conftest.lst
6187 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6188 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6189 (eval $lt_ar_try) 2>&5
6190 ac_status=$?
6191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6192 test $ac_status = 0; }
6193 if test "$ac_status" -eq 0; then
6194 # Ensure the archiver fails upon bogus file names.
6195 rm -f conftest.$ac_objext libconftest.a
6196 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6197 (eval $lt_ar_try) 2>&5
6198 ac_status=$?
6199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6200 test $ac_status = 0; }
6201 if test "$ac_status" -ne 0; then
6202 lt_cv_ar_at_file=@
6203 fi
6204 fi
6205 rm -f conftest.* libconftest.a
6206
6207 fi
6208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6209
6210 fi
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6212 $as_echo "$lt_cv_ar_at_file" >&6; }
6213
6214 if test "x$lt_cv_ar_at_file" = xno; then
6215 archiver_list_spec=
6216 else
6217 archiver_list_spec=$lt_cv_ar_at_file
6218 fi
6219
6220
6221
6222
6223
6224
6225
6226 if test -n "$ac_tool_prefix"; then
6227 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6228 set dummy ${ac_tool_prefix}strip; ac_word=$2
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6230 $as_echo_n "checking for $ac_word... " >&6; }
6231 if ${ac_cv_prog_STRIP+:} false; then :
6232 $as_echo_n "(cached) " >&6
6233 else
6234 if test -n "$STRIP"; then
6235 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6236 else
6237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6238 for as_dir in $PATH
6239 do
6240 IFS=$as_save_IFS
6241 test -z "$as_dir" && as_dir=.
6242 for ac_exec_ext in '' $ac_executable_extensions; do
6243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6244 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6246 break 2
6247 fi
6248 done
6249 done
6250 IFS=$as_save_IFS
6251
6252 fi
6253 fi
6254 STRIP=$ac_cv_prog_STRIP
6255 if test -n "$STRIP"; then
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6257 $as_echo "$STRIP" >&6; }
6258 else
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6260 $as_echo "no" >&6; }
6261 fi
6262
6263
6264 fi
6265 if test -z "$ac_cv_prog_STRIP"; then
6266 ac_ct_STRIP=$STRIP
6267 # Extract the first word of "strip", so it can be a program name with args.
6268 set dummy strip; ac_word=$2
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6270 $as_echo_n "checking for $ac_word... " >&6; }
6271 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6272 $as_echo_n "(cached) " >&6
6273 else
6274 if test -n "$ac_ct_STRIP"; then
6275 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6276 else
6277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6278 for as_dir in $PATH
6279 do
6280 IFS=$as_save_IFS
6281 test -z "$as_dir" && as_dir=.
6282 for ac_exec_ext in '' $ac_executable_extensions; do
6283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6284 ac_cv_prog_ac_ct_STRIP="strip"
6285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6286 break 2
6287 fi
6288 done
6289 done
6290 IFS=$as_save_IFS
6291
6292 fi
6293 fi
6294 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6295 if test -n "$ac_ct_STRIP"; then
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6297 $as_echo "$ac_ct_STRIP" >&6; }
6298 else
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6300 $as_echo "no" >&6; }
6301 fi
6302
6303 if test "x$ac_ct_STRIP" = x; then
6304 STRIP=":"
6305 else
6306 case $cross_compiling:$ac_tool_warned in
6307 yes:)
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6309 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6310 ac_tool_warned=yes ;;
6311 esac
6312 STRIP=$ac_ct_STRIP
6313 fi
6314 else
6315 STRIP="$ac_cv_prog_STRIP"
6316 fi
6317
6318 test -z "$STRIP" && STRIP=:
6319
6320
6321
6322
6323
6324
6325 if test -n "$ac_tool_prefix"; then
6326 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6327 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6329 $as_echo_n "checking for $ac_word... " >&6; }
6330 if ${ac_cv_prog_RANLIB+:} false; then :
6331 $as_echo_n "(cached) " >&6
6332 else
6333 if test -n "$RANLIB"; then
6334 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6335 else
6336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6337 for as_dir in $PATH
6338 do
6339 IFS=$as_save_IFS
6340 test -z "$as_dir" && as_dir=.
6341 for ac_exec_ext in '' $ac_executable_extensions; do
6342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6343 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6345 break 2
6346 fi
6347 done
6348 done
6349 IFS=$as_save_IFS
6350
6351 fi
6352 fi
6353 RANLIB=$ac_cv_prog_RANLIB
6354 if test -n "$RANLIB"; then
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6356 $as_echo "$RANLIB" >&6; }
6357 else
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6359 $as_echo "no" >&6; }
6360 fi
6361
6362
6363 fi
6364 if test -z "$ac_cv_prog_RANLIB"; then
6365 ac_ct_RANLIB=$RANLIB
6366 # Extract the first word of "ranlib", so it can be a program name with args.
6367 set dummy ranlib; ac_word=$2
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6369 $as_echo_n "checking for $ac_word... " >&6; }
6370 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6371 $as_echo_n "(cached) " >&6
6372 else
6373 if test -n "$ac_ct_RANLIB"; then
6374 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6375 else
6376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6377 for as_dir in $PATH
6378 do
6379 IFS=$as_save_IFS
6380 test -z "$as_dir" && as_dir=.
6381 for ac_exec_ext in '' $ac_executable_extensions; do
6382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6383 ac_cv_prog_ac_ct_RANLIB="ranlib"
6384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6385 break 2
6386 fi
6387 done
6388 done
6389 IFS=$as_save_IFS
6390
6391 fi
6392 fi
6393 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6394 if test -n "$ac_ct_RANLIB"; then
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6396 $as_echo "$ac_ct_RANLIB" >&6; }
6397 else
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6399 $as_echo "no" >&6; }
6400 fi
6401
6402 if test "x$ac_ct_RANLIB" = x; then
6403 RANLIB=":"
6404 else
6405 case $cross_compiling:$ac_tool_warned in
6406 yes:)
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6408 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6409 ac_tool_warned=yes ;;
6410 esac
6411 RANLIB=$ac_ct_RANLIB
6412 fi
6413 else
6414 RANLIB="$ac_cv_prog_RANLIB"
6415 fi
6416
6417 test -z "$RANLIB" && RANLIB=:
6418
6419
6420
6421
6422
6423
6424 # Determine commands to create old-style static archives.
6425 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6426 old_postinstall_cmds='chmod 644 $oldlib'
6427 old_postuninstall_cmds=
6428
6429 if test -n "$RANLIB"; then
6430 case $host_os in
6431 openbsd*)
6432 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6433 ;;
6434 *)
6435 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6436 ;;
6437 esac
6438 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6439 fi
6440
6441 case $host_os in
6442 darwin*)
6443 lock_old_archive_extraction=yes ;;
6444 *)
6445 lock_old_archive_extraction=no ;;
6446 esac
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
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486 # If no C compiler was specified, use CC.
6487 LTCC=${LTCC-"$CC"}
6488
6489 # If no C compiler flags were specified, use CFLAGS.
6490 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6491
6492 # Allow CC to be a program name with arguments.
6493 compiler=$CC
6494
6495
6496 # Check for command to grab the raw symbol name followed by C symbol from nm.
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6498 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6499 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6500 $as_echo_n "(cached) " >&6
6501 else
6502
6503 # These are sane defaults that work on at least a few old systems.
6504 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6505
6506 # Character class describing NM global symbol codes.
6507 symcode='[BCDEGRST]'
6508
6509 # Regexp to match symbols that can be accessed directly from C.
6510 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6511
6512 # Define system-specific variables.
6513 case $host_os in
6514 aix*)
6515 symcode='[BCDT]'
6516 ;;
6517 cygwin* | mingw* | pw32* | cegcc*)
6518 symcode='[ABCDGISTW]'
6519 ;;
6520 hpux*)
6521 if test "$host_cpu" = ia64; then
6522 symcode='[ABCDEGRST]'
6523 fi
6524 ;;
6525 irix* | nonstopux*)
6526 symcode='[BCDEGRST]'
6527 ;;
6528 osf*)
6529 symcode='[BCDEGQRST]'
6530 ;;
6531 solaris*)
6532 symcode='[BDRT]'
6533 ;;
6534 sco3.2v5*)
6535 symcode='[DT]'
6536 ;;
6537 sysv4.2uw2*)
6538 symcode='[DT]'
6539 ;;
6540 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6541 symcode='[ABDT]'
6542 ;;
6543 sysv4)
6544 symcode='[DFNSTU]'
6545 ;;
6546 esac
6547
6548 # If we're using GNU nm, then use its standard symbol codes.
6549 case `$NM -V 2>&1` in
6550 *GNU* | *'with BFD'*)
6551 symcode='[ABCDGIRSTW]' ;;
6552 esac
6553
6554 # Transform an extracted symbol line into a proper C declaration.
6555 # Some systems (esp. on ia64) link data and code symbols differently,
6556 # so use this general approach.
6557 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6558
6559 # Transform an extracted symbol line into symbol name and symbol address
6560 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6561 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'"
6562
6563 # Handle CRLF in mingw tool chain
6564 opt_cr=
6565 case $build_os in
6566 mingw*)
6567 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6568 ;;
6569 esac
6570
6571 # Try without a prefix underscore, then with it.
6572 for ac_symprfx in "" "_"; do
6573
6574 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6575 symxfrm="\\1 $ac_symprfx\\2 \\2"
6576
6577 # Write the raw and C identifiers.
6578 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6579 # Fake it for dumpbin and say T for any non-static function
6580 # and D for any global variable.
6581 # Also find C++ and __fastcall symbols from MSVC++,
6582 # which start with @ or ?.
6583 lt_cv_sys_global_symbol_pipe="$AWK '"\
6584 " {last_section=section; section=\$ 3};"\
6585 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6586 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6587 " \$ 0!~/External *\|/{next};"\
6588 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6589 " {if(hide[section]) next};"\
6590 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6591 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6592 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6593 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6594 " ' prfx=^$ac_symprfx"
6595 else
6596 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6597 fi
6598 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6599
6600 # Check to see that the pipe works correctly.
6601 pipe_works=no
6602
6603 rm -f conftest*
6604 cat > conftest.$ac_ext <<_LT_EOF
6605 #ifdef __cplusplus
6606 extern "C" {
6607 #endif
6608 char nm_test_var;
6609 void nm_test_func(void);
6610 void nm_test_func(void){}
6611 #ifdef __cplusplus
6612 }
6613 #endif
6614 int main(){nm_test_var='a';nm_test_func();return(0);}
6615 _LT_EOF
6616
6617 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6618 (eval $ac_compile) 2>&5
6619 ac_status=$?
6620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6621 test $ac_status = 0; }; then
6622 # Now try to grab the symbols.
6623 nlist=conftest.nm
6624 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6625 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6626 ac_status=$?
6627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6628 test $ac_status = 0; } && test -s "$nlist"; then
6629 # Try sorting and uniquifying the output.
6630 if sort "$nlist" | uniq > "$nlist"T; then
6631 mv -f "$nlist"T "$nlist"
6632 else
6633 rm -f "$nlist"T
6634 fi
6635
6636 # Make sure that we snagged all the symbols we need.
6637 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6638 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6639 cat <<_LT_EOF > conftest.$ac_ext
6640 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6641 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6642 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6643 relocations are performed -- see ld's documentation on pseudo-relocs. */
6644 # define LT_DLSYM_CONST
6645 #elif defined(__osf__)
6646 /* This system does not cope well with relocations in const data. */
6647 # define LT_DLSYM_CONST
6648 #else
6649 # define LT_DLSYM_CONST const
6650 #endif
6651
6652 #ifdef __cplusplus
6653 extern "C" {
6654 #endif
6655
6656 _LT_EOF
6657 # Now generate the symbol file.
6658 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6659
6660 cat <<_LT_EOF >> conftest.$ac_ext
6661
6662 /* The mapping between symbol names and symbols. */
6663 LT_DLSYM_CONST struct {
6664 const char *name;
6665 void *address;
6666 }
6667 lt__PROGRAM__LTX_preloaded_symbols[] =
6668 {
6669 { "@PROGRAM@", (void *) 0 },
6670 _LT_EOF
6671 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6672 cat <<\_LT_EOF >> conftest.$ac_ext
6673 {0, (void *) 0}
6674 };
6675
6676 /* This works around a problem in FreeBSD linker */
6677 #ifdef FREEBSD_WORKAROUND
6678 static const void *lt_preloaded_setup() {
6679 return lt__PROGRAM__LTX_preloaded_symbols;
6680 }
6681 #endif
6682
6683 #ifdef __cplusplus
6684 }
6685 #endif
6686 _LT_EOF
6687 # Now try linking the two files.
6688 mv conftest.$ac_objext conftstm.$ac_objext
6689 lt_globsym_save_LIBS=$LIBS
6690 lt_globsym_save_CFLAGS=$CFLAGS
6691 LIBS="conftstm.$ac_objext"
6692 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6693 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6694 (eval $ac_link) 2>&5
6695 ac_status=$?
6696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6697 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6698 pipe_works=yes
6699 fi
6700 LIBS=$lt_globsym_save_LIBS
6701 CFLAGS=$lt_globsym_save_CFLAGS
6702 else
6703 echo "cannot find nm_test_func in $nlist" >&5
6704 fi
6705 else
6706 echo "cannot find nm_test_var in $nlist" >&5
6707 fi
6708 else
6709 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6710 fi
6711 else
6712 echo "$progname: failed program was:" >&5
6713 cat conftest.$ac_ext >&5
6714 fi
6715 rm -rf conftest* conftst*
6716
6717 # Do not use the global_symbol_pipe unless it works.
6718 if test "$pipe_works" = yes; then
6719 break
6720 else
6721 lt_cv_sys_global_symbol_pipe=
6722 fi
6723 done
6724
6725 fi
6726
6727 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6728 lt_cv_sys_global_symbol_to_cdecl=
6729 fi
6730 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6732 $as_echo "failed" >&6; }
6733 else
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6735 $as_echo "ok" >&6; }
6736 fi
6737
6738 # Response file support.
6739 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6740 nm_file_list_spec='@'
6741 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6742 nm_file_list_spec='@'
6743 fi
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6772 $as_echo_n "checking for sysroot... " >&6; }
6773
6774 # Check whether --with-sysroot was given.
6775 if test "${with_sysroot+set}" = set; then :
6776 withval=$with_sysroot;
6777 else
6778 with_sysroot=no
6779 fi
6780
6781
6782 lt_sysroot=
6783 case ${with_sysroot} in #(
6784 yes)
6785 if test "$GCC" = yes; then
6786 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6787 fi
6788 ;; #(
6789 /*)
6790 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6791 ;; #(
6792 no|'')
6793 ;; #(
6794 *)
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6796 $as_echo "${with_sysroot}" >&6; }
6797 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6798 ;;
6799 esac
6800
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6802 $as_echo "${lt_sysroot:-no}" >&6; }
6803
6804
6805
6806
6807
6808 # Check whether --enable-libtool-lock was given.
6809 if test "${enable_libtool_lock+set}" = set; then :
6810 enableval=$enable_libtool_lock;
6811 fi
6812
6813 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6814
6815 # Some flags need to be propagated to the compiler or linker for good
6816 # libtool support.
6817 case $host in
6818 ia64-*-hpux*)
6819 # Find out which ABI we are using.
6820 echo 'int i;' > conftest.$ac_ext
6821 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6822 (eval $ac_compile) 2>&5
6823 ac_status=$?
6824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6825 test $ac_status = 0; }; then
6826 case `/usr/bin/file conftest.$ac_objext` in
6827 *ELF-32*)
6828 HPUX_IA64_MODE="32"
6829 ;;
6830 *ELF-64*)
6831 HPUX_IA64_MODE="64"
6832 ;;
6833 esac
6834 fi
6835 rm -rf conftest*
6836 ;;
6837 *-*-irix6*)
6838 # Find out which ABI we are using.
6839 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6840 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6841 (eval $ac_compile) 2>&5
6842 ac_status=$?
6843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6844 test $ac_status = 0; }; then
6845 if test "$lt_cv_prog_gnu_ld" = yes; then
6846 case `/usr/bin/file conftest.$ac_objext` in
6847 *32-bit*)
6848 LD="${LD-ld} -melf32bsmip"
6849 ;;
6850 *N32*)
6851 LD="${LD-ld} -melf32bmipn32"
6852 ;;
6853 *64-bit*)
6854 LD="${LD-ld} -melf64bmip"
6855 ;;
6856 esac
6857 else
6858 case `/usr/bin/file conftest.$ac_objext` in
6859 *32-bit*)
6860 LD="${LD-ld} -32"
6861 ;;
6862 *N32*)
6863 LD="${LD-ld} -n32"
6864 ;;
6865 *64-bit*)
6866 LD="${LD-ld} -64"
6867 ;;
6868 esac
6869 fi
6870 fi
6871 rm -rf conftest*
6872 ;;
6873
6874 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6875 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6876 # Find out which ABI we are using.
6877 echo 'int i;' > conftest.$ac_ext
6878 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6879 (eval $ac_compile) 2>&5
6880 ac_status=$?
6881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6882 test $ac_status = 0; }; then
6883 case `/usr/bin/file conftest.o` in
6884 *32-bit*)
6885 case $host in
6886 x86_64-*kfreebsd*-gnu)
6887 LD="${LD-ld} -m elf_i386_fbsd"
6888 ;;
6889 x86_64-*linux*)
6890 LD="${LD-ld} -m elf_i386"
6891 ;;
6892 ppc64-*linux*|powerpc64-*linux*)
6893 LD="${LD-ld} -m elf32ppclinux"
6894 ;;
6895 s390x-*linux*)
6896 LD="${LD-ld} -m elf_s390"
6897 ;;
6898 sparc64-*linux*)
6899 LD="${LD-ld} -m elf32_sparc"
6900 ;;
6901 esac
6902 ;;
6903 *64-bit*)
6904 case $host in
6905 x86_64-*kfreebsd*-gnu)
6906 LD="${LD-ld} -m elf_x86_64_fbsd"
6907 ;;
6908 x86_64-*linux*)
6909 LD="${LD-ld} -m elf_x86_64"
6910 ;;
6911 ppc*-*linux*|powerpc*-*linux*)
6912 LD="${LD-ld} -m elf64ppc"
6913 ;;
6914 s390*-*linux*|s390*-*tpf*)
6915 LD="${LD-ld} -m elf64_s390"
6916 ;;
6917 sparc*-*linux*)
6918 LD="${LD-ld} -m elf64_sparc"
6919 ;;
6920 esac
6921 ;;
6922 esac
6923 fi
6924 rm -rf conftest*
6925 ;;
6926
6927 *-*-sco3.2v5*)
6928 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6929 SAVE_CFLAGS="$CFLAGS"
6930 CFLAGS="$CFLAGS -belf"
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6932 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6933 if ${lt_cv_cc_needs_belf+:} false; then :
6934 $as_echo_n "(cached) " >&6
6935 else
6936 ac_ext=c
6937 ac_cpp='$CPP $CPPFLAGS'
6938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6941
6942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6943 /* end confdefs.h. */
6944
6945 int
6946 main ()
6947 {
6948
6949 ;
6950 return 0;
6951 }
6952 _ACEOF
6953 if ac_fn_c_try_link "$LINENO"; then :
6954 lt_cv_cc_needs_belf=yes
6955 else
6956 lt_cv_cc_needs_belf=no
6957 fi
6958 rm -f core conftest.err conftest.$ac_objext \
6959 conftest$ac_exeext conftest.$ac_ext
6960 ac_ext=c
6961 ac_cpp='$CPP $CPPFLAGS'
6962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6965
6966 fi
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6968 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6969 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6970 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6971 CFLAGS="$SAVE_CFLAGS"
6972 fi
6973 ;;
6974 *-*solaris*)
6975 # Find out which ABI we are using.
6976 echo 'int i;' > conftest.$ac_ext
6977 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6978 (eval $ac_compile) 2>&5
6979 ac_status=$?
6980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6981 test $ac_status = 0; }; then
6982 case `/usr/bin/file conftest.o` in
6983 *64-bit*)
6984 case $lt_cv_prog_gnu_ld in
6985 yes*)
6986 case $host in
6987 i?86-*-solaris*)
6988 LD="${LD-ld} -m elf_x86_64"
6989 ;;
6990 sparc*-*-solaris*)
6991 LD="${LD-ld} -m elf64_sparc"
6992 ;;
6993 esac
6994 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6995 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6996 LD="${LD-ld}_sol2"
6997 fi
6998 ;;
6999 *)
7000 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7001 LD="${LD-ld} -64"
7002 fi
7003 ;;
7004 esac
7005 ;;
7006 esac
7007 fi
7008 rm -rf conftest*
7009 ;;
7010 esac
7011
7012 need_locks="$enable_libtool_lock"
7013
7014 if test -n "$ac_tool_prefix"; then
7015 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7016 set dummy ${ac_tool_prefix}mt; ac_word=$2
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7018 $as_echo_n "checking for $ac_word... " >&6; }
7019 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7020 $as_echo_n "(cached) " >&6
7021 else
7022 if test -n "$MANIFEST_TOOL"; then
7023 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7024 else
7025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7026 for as_dir in $PATH
7027 do
7028 IFS=$as_save_IFS
7029 test -z "$as_dir" && as_dir=.
7030 for ac_exec_ext in '' $ac_executable_extensions; do
7031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7032 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7034 break 2
7035 fi
7036 done
7037 done
7038 IFS=$as_save_IFS
7039
7040 fi
7041 fi
7042 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7043 if test -n "$MANIFEST_TOOL"; then
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7045 $as_echo "$MANIFEST_TOOL" >&6; }
7046 else
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7048 $as_echo "no" >&6; }
7049 fi
7050
7051
7052 fi
7053 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7054 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7055 # Extract the first word of "mt", so it can be a program name with args.
7056 set dummy mt; ac_word=$2
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7058 $as_echo_n "checking for $ac_word... " >&6; }
7059 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7060 $as_echo_n "(cached) " >&6
7061 else
7062 if test -n "$ac_ct_MANIFEST_TOOL"; then
7063 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7064 else
7065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7066 for as_dir in $PATH
7067 do
7068 IFS=$as_save_IFS
7069 test -z "$as_dir" && as_dir=.
7070 for ac_exec_ext in '' $ac_executable_extensions; do
7071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7072 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7074 break 2
7075 fi
7076 done
7077 done
7078 IFS=$as_save_IFS
7079
7080 fi
7081 fi
7082 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7083 if test -n "$ac_ct_MANIFEST_TOOL"; then
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7085 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7086 else
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7088 $as_echo "no" >&6; }
7089 fi
7090
7091 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7092 MANIFEST_TOOL=":"
7093 else
7094 case $cross_compiling:$ac_tool_warned in
7095 yes:)
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7097 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7098 ac_tool_warned=yes ;;
7099 esac
7100 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7101 fi
7102 else
7103 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7104 fi
7105
7106 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7108 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7109 if ${lt_cv_path_mainfest_tool+:} false; then :
7110 $as_echo_n "(cached) " >&6
7111 else
7112 lt_cv_path_mainfest_tool=no
7113 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7114 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7115 cat conftest.err >&5
7116 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7117 lt_cv_path_mainfest_tool=yes
7118 fi
7119 rm -f conftest*
7120 fi
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7122 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7123 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7124 MANIFEST_TOOL=:
7125 fi
7126
7127
7128
7129
7130
7131
7132 case $host_os in
7133 rhapsody* | darwin*)
7134 if test -n "$ac_tool_prefix"; then
7135 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7136 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7138 $as_echo_n "checking for $ac_word... " >&6; }
7139 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7140 $as_echo_n "(cached) " >&6
7141 else
7142 if test -n "$DSYMUTIL"; then
7143 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7144 else
7145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7146 for as_dir in $PATH
7147 do
7148 IFS=$as_save_IFS
7149 test -z "$as_dir" && as_dir=.
7150 for ac_exec_ext in '' $ac_executable_extensions; do
7151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7152 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7154 break 2
7155 fi
7156 done
7157 done
7158 IFS=$as_save_IFS
7159
7160 fi
7161 fi
7162 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7163 if test -n "$DSYMUTIL"; then
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7165 $as_echo "$DSYMUTIL" >&6; }
7166 else
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7168 $as_echo "no" >&6; }
7169 fi
7170
7171
7172 fi
7173 if test -z "$ac_cv_prog_DSYMUTIL"; then
7174 ac_ct_DSYMUTIL=$DSYMUTIL
7175 # Extract the first word of "dsymutil", so it can be a program name with args.
7176 set dummy dsymutil; ac_word=$2
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7178 $as_echo_n "checking for $ac_word... " >&6; }
7179 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7180 $as_echo_n "(cached) " >&6
7181 else
7182 if test -n "$ac_ct_DSYMUTIL"; then
7183 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7184 else
7185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7186 for as_dir in $PATH
7187 do
7188 IFS=$as_save_IFS
7189 test -z "$as_dir" && as_dir=.
7190 for ac_exec_ext in '' $ac_executable_extensions; do
7191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7192 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7194 break 2
7195 fi
7196 done
7197 done
7198 IFS=$as_save_IFS
7199
7200 fi
7201 fi
7202 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7203 if test -n "$ac_ct_DSYMUTIL"; then
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7205 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7206 else
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7208 $as_echo "no" >&6; }
7209 fi
7210
7211 if test "x$ac_ct_DSYMUTIL" = x; then
7212 DSYMUTIL=":"
7213 else
7214 case $cross_compiling:$ac_tool_warned in
7215 yes:)
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7217 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7218 ac_tool_warned=yes ;;
7219 esac
7220 DSYMUTIL=$ac_ct_DSYMUTIL
7221 fi
7222 else
7223 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7224 fi
7225
7226 if test -n "$ac_tool_prefix"; then
7227 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7228 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7230 $as_echo_n "checking for $ac_word... " >&6; }
7231 if ${ac_cv_prog_NMEDIT+:} false; then :
7232 $as_echo_n "(cached) " >&6
7233 else
7234 if test -n "$NMEDIT"; then
7235 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7236 else
7237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7238 for as_dir in $PATH
7239 do
7240 IFS=$as_save_IFS
7241 test -z "$as_dir" && as_dir=.
7242 for ac_exec_ext in '' $ac_executable_extensions; do
7243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7244 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7246 break 2
7247 fi
7248 done
7249 done
7250 IFS=$as_save_IFS
7251
7252 fi
7253 fi
7254 NMEDIT=$ac_cv_prog_NMEDIT
7255 if test -n "$NMEDIT"; then
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7257 $as_echo "$NMEDIT" >&6; }
7258 else
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7260 $as_echo "no" >&6; }
7261 fi
7262
7263
7264 fi
7265 if test -z "$ac_cv_prog_NMEDIT"; then
7266 ac_ct_NMEDIT=$NMEDIT
7267 # Extract the first word of "nmedit", so it can be a program name with args.
7268 set dummy nmedit; ac_word=$2
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7270 $as_echo_n "checking for $ac_word... " >&6; }
7271 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7272 $as_echo_n "(cached) " >&6
7273 else
7274 if test -n "$ac_ct_NMEDIT"; then
7275 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7276 else
7277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7278 for as_dir in $PATH
7279 do
7280 IFS=$as_save_IFS
7281 test -z "$as_dir" && as_dir=.
7282 for ac_exec_ext in '' $ac_executable_extensions; do
7283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7284 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7286 break 2
7287 fi
7288 done
7289 done
7290 IFS=$as_save_IFS
7291
7292 fi
7293 fi
7294 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7295 if test -n "$ac_ct_NMEDIT"; then
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7297 $as_echo "$ac_ct_NMEDIT" >&6; }
7298 else
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7300 $as_echo "no" >&6; }
7301 fi
7302
7303 if test "x$ac_ct_NMEDIT" = x; then
7304 NMEDIT=":"
7305 else
7306 case $cross_compiling:$ac_tool_warned in
7307 yes:)
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7309 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7310 ac_tool_warned=yes ;;
7311 esac
7312 NMEDIT=$ac_ct_NMEDIT
7313 fi
7314 else
7315 NMEDIT="$ac_cv_prog_NMEDIT"
7316 fi
7317
7318 if test -n "$ac_tool_prefix"; then
7319 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7320 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7322 $as_echo_n "checking for $ac_word... " >&6; }
7323 if ${ac_cv_prog_LIPO+:} false; then :
7324 $as_echo_n "(cached) " >&6
7325 else
7326 if test -n "$LIPO"; then
7327 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7328 else
7329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7330 for as_dir in $PATH
7331 do
7332 IFS=$as_save_IFS
7333 test -z "$as_dir" && as_dir=.
7334 for ac_exec_ext in '' $ac_executable_extensions; do
7335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7336 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7338 break 2
7339 fi
7340 done
7341 done
7342 IFS=$as_save_IFS
7343
7344 fi
7345 fi
7346 LIPO=$ac_cv_prog_LIPO
7347 if test -n "$LIPO"; then
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7349 $as_echo "$LIPO" >&6; }
7350 else
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7352 $as_echo "no" >&6; }
7353 fi
7354
7355
7356 fi
7357 if test -z "$ac_cv_prog_LIPO"; then
7358 ac_ct_LIPO=$LIPO
7359 # Extract the first word of "lipo", so it can be a program name with args.
7360 set dummy lipo; ac_word=$2
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7362 $as_echo_n "checking for $ac_word... " >&6; }
7363 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7364 $as_echo_n "(cached) " >&6
7365 else
7366 if test -n "$ac_ct_LIPO"; then
7367 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7368 else
7369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7370 for as_dir in $PATH
7371 do
7372 IFS=$as_save_IFS
7373 test -z "$as_dir" && as_dir=.
7374 for ac_exec_ext in '' $ac_executable_extensions; do
7375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7376 ac_cv_prog_ac_ct_LIPO="lipo"
7377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7378 break 2
7379 fi
7380 done
7381 done
7382 IFS=$as_save_IFS
7383
7384 fi
7385 fi
7386 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7387 if test -n "$ac_ct_LIPO"; then
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7389 $as_echo "$ac_ct_LIPO" >&6; }
7390 else
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7392 $as_echo "no" >&6; }
7393 fi
7394
7395 if test "x$ac_ct_LIPO" = x; then
7396 LIPO=":"
7397 else
7398 case $cross_compiling:$ac_tool_warned in
7399 yes:)
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7401 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7402 ac_tool_warned=yes ;;
7403 esac
7404 LIPO=$ac_ct_LIPO
7405 fi
7406 else
7407 LIPO="$ac_cv_prog_LIPO"
7408 fi
7409
7410 if test -n "$ac_tool_prefix"; then
7411 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7412 set dummy ${ac_tool_prefix}otool; ac_word=$2
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7414 $as_echo_n "checking for $ac_word... " >&6; }
7415 if ${ac_cv_prog_OTOOL+:} false; then :
7416 $as_echo_n "(cached) " >&6
7417 else
7418 if test -n "$OTOOL"; then
7419 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7420 else
7421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7422 for as_dir in $PATH
7423 do
7424 IFS=$as_save_IFS
7425 test -z "$as_dir" && as_dir=.
7426 for ac_exec_ext in '' $ac_executable_extensions; do
7427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7428 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7430 break 2
7431 fi
7432 done
7433 done
7434 IFS=$as_save_IFS
7435
7436 fi
7437 fi
7438 OTOOL=$ac_cv_prog_OTOOL
7439 if test -n "$OTOOL"; then
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7441 $as_echo "$OTOOL" >&6; }
7442 else
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7444 $as_echo "no" >&6; }
7445 fi
7446
7447
7448 fi
7449 if test -z "$ac_cv_prog_OTOOL"; then
7450 ac_ct_OTOOL=$OTOOL
7451 # Extract the first word of "otool", so it can be a program name with args.
7452 set dummy otool; ac_word=$2
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7454 $as_echo_n "checking for $ac_word... " >&6; }
7455 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7456 $as_echo_n "(cached) " >&6
7457 else
7458 if test -n "$ac_ct_OTOOL"; then
7459 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7460 else
7461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7462 for as_dir in $PATH
7463 do
7464 IFS=$as_save_IFS
7465 test -z "$as_dir" && as_dir=.
7466 for ac_exec_ext in '' $ac_executable_extensions; do
7467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7468 ac_cv_prog_ac_ct_OTOOL="otool"
7469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7470 break 2
7471 fi
7472 done
7473 done
7474 IFS=$as_save_IFS
7475
7476 fi
7477 fi
7478 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7479 if test -n "$ac_ct_OTOOL"; then
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7481 $as_echo "$ac_ct_OTOOL" >&6; }
7482 else
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7484 $as_echo "no" >&6; }
7485 fi
7486
7487 if test "x$ac_ct_OTOOL" = x; then
7488 OTOOL=":"
7489 else
7490 case $cross_compiling:$ac_tool_warned in
7491 yes:)
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7493 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7494 ac_tool_warned=yes ;;
7495 esac
7496 OTOOL=$ac_ct_OTOOL
7497 fi
7498 else
7499 OTOOL="$ac_cv_prog_OTOOL"
7500 fi
7501
7502 if test -n "$ac_tool_prefix"; then
7503 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7504 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7506 $as_echo_n "checking for $ac_word... " >&6; }
7507 if ${ac_cv_prog_OTOOL64+:} false; then :
7508 $as_echo_n "(cached) " >&6
7509 else
7510 if test -n "$OTOOL64"; then
7511 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7512 else
7513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7514 for as_dir in $PATH
7515 do
7516 IFS=$as_save_IFS
7517 test -z "$as_dir" && as_dir=.
7518 for ac_exec_ext in '' $ac_executable_extensions; do
7519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7520 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7522 break 2
7523 fi
7524 done
7525 done
7526 IFS=$as_save_IFS
7527
7528 fi
7529 fi
7530 OTOOL64=$ac_cv_prog_OTOOL64
7531 if test -n "$OTOOL64"; then
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7533 $as_echo "$OTOOL64" >&6; }
7534 else
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7536 $as_echo "no" >&6; }
7537 fi
7538
7539
7540 fi
7541 if test -z "$ac_cv_prog_OTOOL64"; then
7542 ac_ct_OTOOL64=$OTOOL64
7543 # Extract the first word of "otool64", so it can be a program name with args.
7544 set dummy otool64; ac_word=$2
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7546 $as_echo_n "checking for $ac_word... " >&6; }
7547 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7548 $as_echo_n "(cached) " >&6
7549 else
7550 if test -n "$ac_ct_OTOOL64"; then
7551 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7552 else
7553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7554 for as_dir in $PATH
7555 do
7556 IFS=$as_save_IFS
7557 test -z "$as_dir" && as_dir=.
7558 for ac_exec_ext in '' $ac_executable_extensions; do
7559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7560 ac_cv_prog_ac_ct_OTOOL64="otool64"
7561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7562 break 2
7563 fi
7564 done
7565 done
7566 IFS=$as_save_IFS
7567
7568 fi
7569 fi
7570 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7571 if test -n "$ac_ct_OTOOL64"; then
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7573 $as_echo "$ac_ct_OTOOL64" >&6; }
7574 else
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7576 $as_echo "no" >&6; }
7577 fi
7578
7579 if test "x$ac_ct_OTOOL64" = x; then
7580 OTOOL64=":"
7581 else
7582 case $cross_compiling:$ac_tool_warned in
7583 yes:)
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7585 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7586 ac_tool_warned=yes ;;
7587 esac
7588 OTOOL64=$ac_ct_OTOOL64
7589 fi
7590 else
7591 OTOOL64="$ac_cv_prog_OTOOL64"
7592 fi
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
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7621 $as_echo_n "checking for -single_module linker flag... " >&6; }
7622 if ${lt_cv_apple_cc_single_mod+:} false; then :
7623 $as_echo_n "(cached) " >&6
7624 else
7625 lt_cv_apple_cc_single_mod=no
7626 if test -z "${LT_MULTI_MODULE}"; then
7627 # By default we will add the -single_module flag. You can override
7628 # by either setting the environment variable LT_MULTI_MODULE
7629 # non-empty at configure time, or by adding -multi_module to the
7630 # link flags.
7631 rm -rf libconftest.dylib*
7632 echo "int foo(void){return 1;}" > conftest.c
7633 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7634 -dynamiclib -Wl,-single_module conftest.c" >&5
7635 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7636 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7637 _lt_result=$?
7638 # If there is a non-empty error log, and "single_module"
7639 # appears in it, assume the flag caused a linker warning
7640 if test -s conftest.err && $GREP single_module conftest.err; then
7641 cat conftest.err >&5
7642 # Otherwise, if the output was created with a 0 exit code from
7643 # the compiler, it worked.
7644 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7645 lt_cv_apple_cc_single_mod=yes
7646 else
7647 cat conftest.err >&5
7648 fi
7649 rm -rf libconftest.dylib*
7650 rm -f conftest.*
7651 fi
7652 fi
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7654 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7655
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7657 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7658 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7659 $as_echo_n "(cached) " >&6
7660 else
7661 lt_cv_ld_exported_symbols_list=no
7662 save_LDFLAGS=$LDFLAGS
7663 echo "_main" > conftest.sym
7664 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7666 /* end confdefs.h. */
7667
7668 int
7669 main ()
7670 {
7671
7672 ;
7673 return 0;
7674 }
7675 _ACEOF
7676 if ac_fn_c_try_link "$LINENO"; then :
7677 lt_cv_ld_exported_symbols_list=yes
7678 else
7679 lt_cv_ld_exported_symbols_list=no
7680 fi
7681 rm -f core conftest.err conftest.$ac_objext \
7682 conftest$ac_exeext conftest.$ac_ext
7683 LDFLAGS="$save_LDFLAGS"
7684
7685 fi
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7687 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7688
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7690 $as_echo_n "checking for -force_load linker flag... " >&6; }
7691 if ${lt_cv_ld_force_load+:} false; then :
7692 $as_echo_n "(cached) " >&6
7693 else
7694 lt_cv_ld_force_load=no
7695 cat > conftest.c << _LT_EOF
7696 int forced_loaded() { return 2;}
7697 _LT_EOF
7698 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7699 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7700 echo "$AR cru libconftest.a conftest.o" >&5
7701 $AR cru libconftest.a conftest.o 2>&5
7702 echo "$RANLIB libconftest.a" >&5
7703 $RANLIB libconftest.a 2>&5
7704 cat > conftest.c << _LT_EOF
7705 int main() { return 0;}
7706 _LT_EOF
7707 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7708 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7709 _lt_result=$?
7710 if test -s conftest.err && $GREP force_load conftest.err; then
7711 cat conftest.err >&5
7712 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7713 lt_cv_ld_force_load=yes
7714 else
7715 cat conftest.err >&5
7716 fi
7717 rm -f conftest.err libconftest.a conftest conftest.c
7718 rm -rf conftest.dSYM
7719
7720 fi
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7722 $as_echo "$lt_cv_ld_force_load" >&6; }
7723 case $host_os in
7724 rhapsody* | darwin1.[012])
7725 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7726 darwin1.*)
7727 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7728 darwin*) # darwin 5.x on
7729 # if running on 10.5 or later, the deployment target defaults
7730 # to the OS version, if on x86, and 10.4, the deployment
7731 # target defaults to 10.4. Don't you love it?
7732 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7733 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7734 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7735 10.[012]*)
7736 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7737 10.*)
7738 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7739 esac
7740 ;;
7741 esac
7742 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7743 _lt_dar_single_mod='$single_module'
7744 fi
7745 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7746 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7747 else
7748 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7749 fi
7750 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7751 _lt_dsymutil='~$DSYMUTIL $lib || :'
7752 else
7753 _lt_dsymutil=
7754 fi
7755 ;;
7756 esac
7757
7758
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7760 $as_echo_n "checking for ANSI C header files... " >&6; }
7761 if ${ac_cv_header_stdc+:} false; then :
7762 $as_echo_n "(cached) " >&6
7763 else
7764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7765 /* end confdefs.h. */
7766 #include <stdlib.h>
7767 #include <stdarg.h>
7768 #include <string.h>
7769 #include <float.h>
7770
7771 int
7772 main ()
7773 {
7774
7775 ;
7776 return 0;
7777 }
7778 _ACEOF
7779 if ac_fn_c_try_compile "$LINENO"; then :
7780 ac_cv_header_stdc=yes
7781 else
7782 ac_cv_header_stdc=no
7783 fi
7784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7785
7786 if test $ac_cv_header_stdc = yes; then
7787 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7789 /* end confdefs.h. */
7790 #include <string.h>
7791
7792 _ACEOF
7793 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7794 $EGREP "memchr" >/dev/null 2>&1; then :
7795
7796 else
7797 ac_cv_header_stdc=no
7798 fi
7799 rm -f conftest*
7800
7801 fi
7802
7803 if test $ac_cv_header_stdc = yes; then
7804 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7806 /* end confdefs.h. */
7807 #include <stdlib.h>
7808
7809 _ACEOF
7810 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7811 $EGREP "free" >/dev/null 2>&1; then :
7812
7813 else
7814 ac_cv_header_stdc=no
7815 fi
7816 rm -f conftest*
7817
7818 fi
7819
7820 if test $ac_cv_header_stdc = yes; then
7821 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7822 if test "$cross_compiling" = yes; then :
7823 :
7824 else
7825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7826 /* end confdefs.h. */
7827 #include <ctype.h>
7828 #include <stdlib.h>
7829 #if ((' ' & 0x0FF) == 0x020)
7830 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7831 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7832 #else
7833 # define ISLOWER(c) \
7834 (('a' <= (c) && (c) <= 'i') \
7835 || ('j' <= (c) && (c) <= 'r') \
7836 || ('s' <= (c) && (c) <= 'z'))
7837 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7838 #endif
7839
7840 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7841 int
7842 main ()
7843 {
7844 int i;
7845 for (i = 0; i < 256; i++)
7846 if (XOR (islower (i), ISLOWER (i))
7847 || toupper (i) != TOUPPER (i))
7848 return 2;
7849 return 0;
7850 }
7851 _ACEOF
7852 if ac_fn_c_try_run "$LINENO"; then :
7853
7854 else
7855 ac_cv_header_stdc=no
7856 fi
7857 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7858 conftest.$ac_objext conftest.beam conftest.$ac_ext
7859 fi
7860
7861 fi
7862 fi
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7864 $as_echo "$ac_cv_header_stdc" >&6; }
7865 if test $ac_cv_header_stdc = yes; then
7866
7867 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7868
7869 fi
7870
7871 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7872 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7873 inttypes.h stdint.h unistd.h
7874 do :
7875 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7876 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7877 "
7878 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7879 cat >>confdefs.h <<_ACEOF
7880 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7881 _ACEOF
7882
7883 fi
7884
7885 done
7886
7887
7888 for ac_header in dlfcn.h
7889 do :
7890 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7891 "
7892 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7893 cat >>confdefs.h <<_ACEOF
7894 #define HAVE_DLFCN_H 1
7895 _ACEOF
7896
7897 fi
7898
7899 done
7900
7901
7902
7903
7904 func_stripname_cnf ()
7905 {
7906 case ${2} in
7907 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
7908 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
7909 esac
7910 } # func_stripname_cnf
7911
7912
7913
7914
7915
7916 # Set options
7917
7918
7919
7920 enable_dlopen=no
7921
7922
7923 enable_win32_dll=no
7924
7925
7926 # Check whether --enable-shared was given.
7927 if test "${enable_shared+set}" = set; then :
7928 enableval=$enable_shared; p=${PACKAGE-default}
7929 case $enableval in
7930 yes) enable_shared=yes ;;
7931 no) enable_shared=no ;;
7932 *)
7933 enable_shared=no
7934 # Look at the argument we got. We use all the common list separators.
7935 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7936 for pkg in $enableval; do
7937 IFS="$lt_save_ifs"
7938 if test "X$pkg" = "X$p"; then
7939 enable_shared=yes
7940 fi
7941 done
7942 IFS="$lt_save_ifs"
7943 ;;
7944 esac
7945 else
7946 enable_shared=yes
7947 fi
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957 # Check whether --enable-static was given.
7958 if test "${enable_static+set}" = set; then :
7959 enableval=$enable_static; p=${PACKAGE-default}
7960 case $enableval in
7961 yes) enable_static=yes ;;
7962 no) enable_static=no ;;
7963 *)
7964 enable_static=no
7965 # Look at the argument we got. We use all the common list separators.
7966 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7967 for pkg in $enableval; do
7968 IFS="$lt_save_ifs"
7969 if test "X$pkg" = "X$p"; then
7970 enable_static=yes
7971 fi
7972 done
7973 IFS="$lt_save_ifs"
7974 ;;
7975 esac
7976 else
7977 enable_static=yes
7978 fi
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989 # Check whether --with-pic was given.
7990 if test "${with_pic+set}" = set; then :
7991 withval=$with_pic; lt_p=${PACKAGE-default}
7992 case $withval in
7993 yes|no) pic_mode=$withval ;;
7994 *)
7995 pic_mode=default
7996 # Look at the argument we got. We use all the common list separators.
7997 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7998 for lt_pkg in $withval; do
7999 IFS="$lt_save_ifs"
8000 if test "X$lt_pkg" = "X$lt_p"; then
8001 pic_mode=yes
8002 fi
8003 done
8004 IFS="$lt_save_ifs"
8005 ;;
8006 esac
8007 else
8008 pic_mode=default
8009 fi
8010
8011
8012 test -z "$pic_mode" && pic_mode=default
8013
8014
8015
8016
8017
8018
8019
8020 # Check whether --enable-fast-install was given.
8021 if test "${enable_fast_install+set}" = set; then :
8022 enableval=$enable_fast_install; p=${PACKAGE-default}
8023 case $enableval in
8024 yes) enable_fast_install=yes ;;
8025 no) enable_fast_install=no ;;
8026 *)
8027 enable_fast_install=no
8028 # Look at the argument we got. We use all the common list separators.
8029 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8030 for pkg in $enableval; do
8031 IFS="$lt_save_ifs"
8032 if test "X$pkg" = "X$p"; then
8033 enable_fast_install=yes
8034 fi
8035 done
8036 IFS="$lt_save_ifs"
8037 ;;
8038 esac
8039 else
8040 enable_fast_install=yes
8041 fi
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053 # This can be used to rebuild libtool when needed
8054 LIBTOOL_DEPS="$ltmain"
8055
8056 # Always use our own libtool.
8057 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088 test -z "$LN_S" && LN_S="ln -s"
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103 if test -n "${ZSH_VERSION+set}" ; then
8104 setopt NO_GLOB_SUBST
8105 fi
8106
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8108 $as_echo_n "checking for objdir... " >&6; }
8109 if ${lt_cv_objdir+:} false; then :
8110 $as_echo_n "(cached) " >&6
8111 else
8112 rm -f .libs 2>/dev/null
8113 mkdir .libs 2>/dev/null
8114 if test -d .libs; then
8115 lt_cv_objdir=.libs
8116 else
8117 # MS-DOS does not allow filenames that begin with a dot.
8118 lt_cv_objdir=_libs
8119 fi
8120 rmdir .libs 2>/dev/null
8121 fi
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8123 $as_echo "$lt_cv_objdir" >&6; }
8124 objdir=$lt_cv_objdir
8125
8126
8127
8128
8129
8130 cat >>confdefs.h <<_ACEOF
8131 #define LT_OBJDIR "$lt_cv_objdir/"
8132 _ACEOF
8133
8134
8135
8136
8137 case $host_os in
8138 aix3*)
8139 # AIX sometimes has problems with the GCC collect2 program. For some
8140 # reason, if we set the COLLECT_NAMES environment variable, the problems
8141 # vanish in a puff of smoke.
8142 if test "X${COLLECT_NAMES+set}" != Xset; then
8143 COLLECT_NAMES=
8144 export COLLECT_NAMES
8145 fi
8146 ;;
8147 esac
8148
8149 # Global variables:
8150 ofile=libtool
8151 can_build_shared=yes
8152
8153 # All known linkers require a `.a' archive for static linking (except MSVC,
8154 # which needs '.lib').
8155 libext=a
8156
8157 with_gnu_ld="$lt_cv_prog_gnu_ld"
8158
8159 old_CC="$CC"
8160 old_CFLAGS="$CFLAGS"
8161
8162 # Set sane defaults for various variables
8163 test -z "$CC" && CC=cc
8164 test -z "$LTCC" && LTCC=$CC
8165 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8166 test -z "$LD" && LD=ld
8167 test -z "$ac_objext" && ac_objext=o
8168
8169 for cc_temp in $compiler""; do
8170 case $cc_temp in
8171 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8172 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8173 \-*) ;;
8174 *) break;;
8175 esac
8176 done
8177 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8178
8179
8180 # Only perform the check for file, if the check method requires it
8181 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8182 case $deplibs_check_method in
8183 file_magic*)
8184 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8186 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8187 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8188 $as_echo_n "(cached) " >&6
8189 else
8190 case $MAGIC_CMD in
8191 [\\/*] | ?:[\\/]*)
8192 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8193 ;;
8194 *)
8195 lt_save_MAGIC_CMD="$MAGIC_CMD"
8196 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8197 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8198 for ac_dir in $ac_dummy; do
8199 IFS="$lt_save_ifs"
8200 test -z "$ac_dir" && ac_dir=.
8201 if test -f $ac_dir/${ac_tool_prefix}file; then
8202 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8203 if test -n "$file_magic_test_file"; then
8204 case $deplibs_check_method in
8205 "file_magic "*)
8206 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8207 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8208 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8209 $EGREP "$file_magic_regex" > /dev/null; then
8210 :
8211 else
8212 cat <<_LT_EOF 1>&2
8213
8214 *** Warning: the command libtool uses to detect shared libraries,
8215 *** $file_magic_cmd, produces output that libtool cannot recognize.
8216 *** The result is that libtool may fail to recognize shared libraries
8217 *** as such. This will affect the creation of libtool libraries that
8218 *** depend on shared libraries, but programs linked with such libtool
8219 *** libraries will work regardless of this problem. Nevertheless, you
8220 *** may want to report the problem to your system manager and/or to
8221 *** [email protected]
8222
8223 _LT_EOF
8224 fi ;;
8225 esac
8226 fi
8227 break
8228 fi
8229 done
8230 IFS="$lt_save_ifs"
8231 MAGIC_CMD="$lt_save_MAGIC_CMD"
8232 ;;
8233 esac
8234 fi
8235
8236 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8237 if test -n "$MAGIC_CMD"; then
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8239 $as_echo "$MAGIC_CMD" >&6; }
8240 else
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8242 $as_echo "no" >&6; }
8243 fi
8244
8245
8246
8247
8248
8249 if test -z "$lt_cv_path_MAGIC_CMD"; then
8250 if test -n "$ac_tool_prefix"; then
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8252 $as_echo_n "checking for file... " >&6; }
8253 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8254 $as_echo_n "(cached) " >&6
8255 else
8256 case $MAGIC_CMD in
8257 [\\/*] | ?:[\\/]*)
8258 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8259 ;;
8260 *)
8261 lt_save_MAGIC_CMD="$MAGIC_CMD"
8262 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8263 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8264 for ac_dir in $ac_dummy; do
8265 IFS="$lt_save_ifs"
8266 test -z "$ac_dir" && ac_dir=.
8267 if test -f $ac_dir/file; then
8268 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8269 if test -n "$file_magic_test_file"; then
8270 case $deplibs_check_method in
8271 "file_magic "*)
8272 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8273 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8274 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8275 $EGREP "$file_magic_regex" > /dev/null; then
8276 :
8277 else
8278 cat <<_LT_EOF 1>&2
8279
8280 *** Warning: the command libtool uses to detect shared libraries,
8281 *** $file_magic_cmd, produces output that libtool cannot recognize.
8282 *** The result is that libtool may fail to recognize shared libraries
8283 *** as such. This will affect the creation of libtool libraries that
8284 *** depend on shared libraries, but programs linked with such libtool
8285 *** libraries will work regardless of this problem. Nevertheless, you
8286 *** may want to report the problem to your system manager and/or to
8287 *** [email protected]
8288
8289 _LT_EOF
8290 fi ;;
8291 esac
8292 fi
8293 break
8294 fi
8295 done
8296 IFS="$lt_save_ifs"
8297 MAGIC_CMD="$lt_save_MAGIC_CMD"
8298 ;;
8299 esac
8300 fi
8301
8302 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8303 if test -n "$MAGIC_CMD"; then
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8305 $as_echo "$MAGIC_CMD" >&6; }
8306 else
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8308 $as_echo "no" >&6; }
8309 fi
8310
8311
8312 else
8313 MAGIC_CMD=:
8314 fi
8315 fi
8316
8317 fi
8318 ;;
8319 esac
8320
8321 # Use C for the default configuration in the libtool script
8322
8323 lt_save_CC="$CC"
8324 ac_ext=c
8325 ac_cpp='$CPP $CPPFLAGS'
8326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8329
8330
8331 # Source file extension for C test sources.
8332 ac_ext=c
8333
8334 # Object file extension for compiled C test sources.
8335 objext=o
8336 objext=$objext
8337
8338 # Code to be used in simple compile tests
8339 lt_simple_compile_test_code="int some_variable = 0;"
8340
8341 # Code to be used in simple link tests
8342 lt_simple_link_test_code='int main(){return(0);}'
8343
8344
8345
8346
8347
8348
8349
8350 # If no C compiler was specified, use CC.
8351 LTCC=${LTCC-"$CC"}
8352
8353 # If no C compiler flags were specified, use CFLAGS.
8354 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8355
8356 # Allow CC to be a program name with arguments.
8357 compiler=$CC
8358
8359 # Save the default compiler, since it gets overwritten when the other
8360 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8361 compiler_DEFAULT=$CC
8362
8363 # save warnings/boilerplate of simple test code
8364 ac_outfile=conftest.$ac_objext
8365 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8366 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8367 _lt_compiler_boilerplate=`cat conftest.err`
8368 $RM conftest*
8369
8370 ac_outfile=conftest.$ac_objext
8371 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8372 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8373 _lt_linker_boilerplate=`cat conftest.err`
8374 $RM -r conftest*
8375
8376
8377 ## CAVEAT EMPTOR:
8378 ## There is no encapsulation within the following macros, do not change
8379 ## the running order or otherwise move them around unless you know exactly
8380 ## what you are doing...
8381 if test -n "$compiler"; then
8382
8383 lt_prog_compiler_no_builtin_flag=
8384
8385 if test "$GCC" = yes; then
8386 case $cc_basename in
8387 nvcc*)
8388 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8389 *)
8390 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8391 esac
8392
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8394 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8395 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8396 $as_echo_n "(cached) " >&6
8397 else
8398 lt_cv_prog_compiler_rtti_exceptions=no
8399 ac_outfile=conftest.$ac_objext
8400 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8401 lt_compiler_flag="-fno-rtti -fno-exceptions"
8402 # Insert the option either (1) after the last *FLAGS variable, or
8403 # (2) before a word containing "conftest.", or (3) at the end.
8404 # Note that $ac_compile itself does not contain backslashes and begins
8405 # with a dollar sign (not a hyphen), so the echo should work correctly.
8406 # The option is referenced via a variable to avoid confusing sed.
8407 lt_compile=`echo "$ac_compile" | $SED \
8408 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8409 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8410 -e 's:$: $lt_compiler_flag:'`
8411 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8412 (eval "$lt_compile" 2>conftest.err)
8413 ac_status=$?
8414 cat conftest.err >&5
8415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416 if (exit $ac_status) && test -s "$ac_outfile"; then
8417 # The compiler can only warn and ignore the option if not recognized
8418 # So say no if there are warnings other than the usual output.
8419 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8420 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8421 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8422 lt_cv_prog_compiler_rtti_exceptions=yes
8423 fi
8424 fi
8425 $RM conftest*
8426
8427 fi
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8429 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8430
8431 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8432 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8433 else
8434 :
8435 fi
8436
8437 fi
8438
8439
8440
8441
8442
8443
8444 lt_prog_compiler_wl=
8445 lt_prog_compiler_pic=
8446 lt_prog_compiler_static=
8447
8448
8449 if test "$GCC" = yes; then
8450 lt_prog_compiler_wl='-Wl,'
8451 lt_prog_compiler_static='-static'
8452
8453 case $host_os in
8454 aix*)
8455 # All AIX code is PIC.
8456 if test "$host_cpu" = ia64; then
8457 # AIX 5 now supports IA64 processor
8458 lt_prog_compiler_static='-Bstatic'
8459 fi
8460 ;;
8461
8462 amigaos*)
8463 case $host_cpu in
8464 powerpc)
8465 # see comment about AmigaOS4 .so support
8466 lt_prog_compiler_pic='-fPIC'
8467 ;;
8468 m68k)
8469 # FIXME: we need at least 68020 code to build shared libraries, but
8470 # adding the `-m68020' flag to GCC prevents building anything better,
8471 # like `-m68040'.
8472 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8473 ;;
8474 esac
8475 ;;
8476
8477 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8478 # PIC is the default for these OSes.
8479 ;;
8480
8481 mingw* | cygwin* | pw32* | os2* | cegcc*)
8482 # This hack is so that the source file can tell whether it is being
8483 # built for inclusion in a dll (and should export symbols for example).
8484 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8485 # (--disable-auto-import) libraries
8486 lt_prog_compiler_pic='-DDLL_EXPORT'
8487 ;;
8488
8489 darwin* | rhapsody*)
8490 # PIC is the default on this platform
8491 # Common symbols not allowed in MH_DYLIB files
8492 lt_prog_compiler_pic='-fno-common'
8493 ;;
8494
8495 haiku*)
8496 # PIC is the default for Haiku.
8497 # The "-static" flag exists, but is broken.
8498 lt_prog_compiler_static=
8499 ;;
8500
8501 hpux*)
8502 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8503 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8504 # sets the default TLS model and affects inlining.
8505 case $host_cpu in
8506 hppa*64*)
8507 # +Z the default
8508 ;;
8509 *)
8510 lt_prog_compiler_pic='-fPIC'
8511 ;;
8512 esac
8513 ;;
8514
8515 interix[3-9]*)
8516 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8517 # Instead, we relocate shared libraries at runtime.
8518 ;;
8519
8520 msdosdjgpp*)
8521 # Just because we use GCC doesn't mean we suddenly get shared libraries
8522 # on systems that don't support them.
8523 lt_prog_compiler_can_build_shared=no
8524 enable_shared=no
8525 ;;
8526
8527 *nto* | *qnx*)
8528 # QNX uses GNU C++, but need to define -shared option too, otherwise
8529 # it will coredump.
8530 lt_prog_compiler_pic='-fPIC -shared'
8531 ;;
8532
8533 sysv4*MP*)
8534 if test -d /usr/nec; then
8535 lt_prog_compiler_pic=-Kconform_pic
8536 fi
8537 ;;
8538
8539 *)
8540 lt_prog_compiler_pic='-fPIC'
8541 ;;
8542 esac
8543
8544 case $cc_basename in
8545 nvcc*) # Cuda Compiler Driver 2.2
8546 lt_prog_compiler_wl='-Xlinker '
8547 if test -n "$lt_prog_compiler_pic"; then
8548 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8549 fi
8550 ;;
8551 esac
8552 else
8553 # PORTME Check for flag to pass linker flags through the system compiler.
8554 case $host_os in
8555 aix*)
8556 lt_prog_compiler_wl='-Wl,'
8557 if test "$host_cpu" = ia64; then
8558 # AIX 5 now supports IA64 processor
8559 lt_prog_compiler_static='-Bstatic'
8560 else
8561 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8562 fi
8563 ;;
8564
8565 mingw* | cygwin* | pw32* | os2* | cegcc*)
8566 # This hack is so that the source file can tell whether it is being
8567 # built for inclusion in a dll (and should export symbols for example).
8568 lt_prog_compiler_pic='-DDLL_EXPORT'
8569 ;;
8570
8571 hpux9* | hpux10* | hpux11*)
8572 lt_prog_compiler_wl='-Wl,'
8573 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8574 # not for PA HP-UX.
8575 case $host_cpu in
8576 hppa*64*|ia64*)
8577 # +Z the default
8578 ;;
8579 *)
8580 lt_prog_compiler_pic='+Z'
8581 ;;
8582 esac
8583 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8584 lt_prog_compiler_static='${wl}-a ${wl}archive'
8585 ;;
8586
8587 irix5* | irix6* | nonstopux*)
8588 lt_prog_compiler_wl='-Wl,'
8589 # PIC (with -KPIC) is the default.
8590 lt_prog_compiler_static='-non_shared'
8591 ;;
8592
8593 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8594 case $cc_basename in
8595 # old Intel for x86_64 which still supported -KPIC.
8596 ecc*)
8597 lt_prog_compiler_wl='-Wl,'
8598 lt_prog_compiler_pic='-KPIC'
8599 lt_prog_compiler_static='-static'
8600 ;;
8601 # icc used to be incompatible with GCC.
8602 # ICC 10 doesn't accept -KPIC any more.
8603 icc* | ifort*)
8604 lt_prog_compiler_wl='-Wl,'
8605 lt_prog_compiler_pic='-fPIC'
8606 lt_prog_compiler_static='-static'
8607 ;;
8608 # Lahey Fortran 8.1.
8609 lf95*)
8610 lt_prog_compiler_wl='-Wl,'
8611 lt_prog_compiler_pic='--shared'
8612 lt_prog_compiler_static='--static'
8613 ;;
8614 nagfor*)
8615 # NAG Fortran compiler
8616 lt_prog_compiler_wl='-Wl,-Wl,,'
8617 lt_prog_compiler_pic='-PIC'
8618 lt_prog_compiler_static='-Bstatic'
8619 ;;
8620 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8621 # Portland Group compilers (*not* the Pentium gcc compiler,
8622 # which looks to be a dead project)
8623 lt_prog_compiler_wl='-Wl,'
8624 lt_prog_compiler_pic='-fpic'
8625 lt_prog_compiler_static='-Bstatic'
8626 ;;
8627 ccc*)
8628 lt_prog_compiler_wl='-Wl,'
8629 # All Alpha code is PIC.
8630 lt_prog_compiler_static='-non_shared'
8631 ;;
8632 xl* | bgxl* | bgf* | mpixl*)
8633 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8634 lt_prog_compiler_wl='-Wl,'
8635 lt_prog_compiler_pic='-qpic'
8636 lt_prog_compiler_static='-qstaticlink'
8637 ;;
8638 *)
8639 case `$CC -V 2>&1 | sed 5q` in
8640 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8641 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8642 lt_prog_compiler_pic='-KPIC'
8643 lt_prog_compiler_static='-Bstatic'
8644 lt_prog_compiler_wl=''
8645 ;;
8646 *Sun\ F* | *Sun*Fortran*)
8647 lt_prog_compiler_pic='-KPIC'
8648 lt_prog_compiler_static='-Bstatic'
8649 lt_prog_compiler_wl='-Qoption ld '
8650 ;;
8651 *Sun\ C*)
8652 # Sun C 5.9
8653 lt_prog_compiler_pic='-KPIC'
8654 lt_prog_compiler_static='-Bstatic'
8655 lt_prog_compiler_wl='-Wl,'
8656 ;;
8657 *Intel*\ [CF]*Compiler*)
8658 lt_prog_compiler_wl='-Wl,'
8659 lt_prog_compiler_pic='-fPIC'
8660 lt_prog_compiler_static='-static'
8661 ;;
8662 *Portland\ Group*)
8663 lt_prog_compiler_wl='-Wl,'
8664 lt_prog_compiler_pic='-fpic'
8665 lt_prog_compiler_static='-Bstatic'
8666 ;;
8667 esac
8668 ;;
8669 esac
8670 ;;
8671
8672 newsos6)
8673 lt_prog_compiler_pic='-KPIC'
8674 lt_prog_compiler_static='-Bstatic'
8675 ;;
8676
8677 *nto* | *qnx*)
8678 # QNX uses GNU C++, but need to define -shared option too, otherwise
8679 # it will coredump.
8680 lt_prog_compiler_pic='-fPIC -shared'
8681 ;;
8682
8683 osf3* | osf4* | osf5*)
8684 lt_prog_compiler_wl='-Wl,'
8685 # All OSF/1 code is PIC.
8686 lt_prog_compiler_static='-non_shared'
8687 ;;
8688
8689 rdos*)
8690 lt_prog_compiler_static='-non_shared'
8691 ;;
8692
8693 solaris*)
8694 lt_prog_compiler_pic='-KPIC'
8695 lt_prog_compiler_static='-Bstatic'
8696 case $cc_basename in
8697 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8698 lt_prog_compiler_wl='-Qoption ld ';;
8699 *)
8700 lt_prog_compiler_wl='-Wl,';;
8701 esac
8702 ;;
8703
8704 sunos4*)
8705 lt_prog_compiler_wl='-Qoption ld '
8706 lt_prog_compiler_pic='-PIC'
8707 lt_prog_compiler_static='-Bstatic'
8708 ;;
8709
8710 sysv4 | sysv4.2uw2* | sysv4.3*)
8711 lt_prog_compiler_wl='-Wl,'
8712 lt_prog_compiler_pic='-KPIC'
8713 lt_prog_compiler_static='-Bstatic'
8714 ;;
8715
8716 sysv4*MP*)
8717 if test -d /usr/nec ;then
8718 lt_prog_compiler_pic='-Kconform_pic'
8719 lt_prog_compiler_static='-Bstatic'
8720 fi
8721 ;;
8722
8723 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8724 lt_prog_compiler_wl='-Wl,'
8725 lt_prog_compiler_pic='-KPIC'
8726 lt_prog_compiler_static='-Bstatic'
8727 ;;
8728
8729 unicos*)
8730 lt_prog_compiler_wl='-Wl,'
8731 lt_prog_compiler_can_build_shared=no
8732 ;;
8733
8734 uts4*)
8735 lt_prog_compiler_pic='-pic'
8736 lt_prog_compiler_static='-Bstatic'
8737 ;;
8738
8739 *)
8740 lt_prog_compiler_can_build_shared=no
8741 ;;
8742 esac
8743 fi
8744
8745 case $host_os in
8746 # For platforms which do not support PIC, -DPIC is meaningless:
8747 *djgpp*)
8748 lt_prog_compiler_pic=
8749 ;;
8750 *)
8751 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8752 ;;
8753 esac
8754
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8756 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8757 if ${lt_cv_prog_compiler_pic+:} false; then :
8758 $as_echo_n "(cached) " >&6
8759 else
8760 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8761 fi
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8763 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8764 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8765
8766 #
8767 # Check to make sure the PIC flag actually works.
8768 #
8769 if test -n "$lt_prog_compiler_pic"; then
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8771 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8772 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8773 $as_echo_n "(cached) " >&6
8774 else
8775 lt_cv_prog_compiler_pic_works=no
8776 ac_outfile=conftest.$ac_objext
8777 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8778 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8779 # Insert the option either (1) after the last *FLAGS variable, or
8780 # (2) before a word containing "conftest.", or (3) at the end.
8781 # Note that $ac_compile itself does not contain backslashes and begins
8782 # with a dollar sign (not a hyphen), so the echo should work correctly.
8783 # The option is referenced via a variable to avoid confusing sed.
8784 lt_compile=`echo "$ac_compile" | $SED \
8785 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8786 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8787 -e 's:$: $lt_compiler_flag:'`
8788 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8789 (eval "$lt_compile" 2>conftest.err)
8790 ac_status=$?
8791 cat conftest.err >&5
8792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8793 if (exit $ac_status) && test -s "$ac_outfile"; then
8794 # The compiler can only warn and ignore the option if not recognized
8795 # So say no if there are warnings other than the usual output.
8796 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8797 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8798 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8799 lt_cv_prog_compiler_pic_works=yes
8800 fi
8801 fi
8802 $RM conftest*
8803
8804 fi
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8806 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8807
8808 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8809 case $lt_prog_compiler_pic in
8810 "" | " "*) ;;
8811 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8812 esac
8813 else
8814 lt_prog_compiler_pic=
8815 lt_prog_compiler_can_build_shared=no
8816 fi
8817
8818 fi
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830 #
8831 # Check to make sure the static flag actually works.
8832 #
8833 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8835 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8836 if ${lt_cv_prog_compiler_static_works+:} false; then :
8837 $as_echo_n "(cached) " >&6
8838 else
8839 lt_cv_prog_compiler_static_works=no
8840 save_LDFLAGS="$LDFLAGS"
8841 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8842 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8843 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8844 # The linker can only warn and ignore the option if not recognized
8845 # So say no if there are warnings
8846 if test -s conftest.err; then
8847 # Append any errors to the config.log.
8848 cat conftest.err 1>&5
8849 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8850 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8851 if diff conftest.exp conftest.er2 >/dev/null; then
8852 lt_cv_prog_compiler_static_works=yes
8853 fi
8854 else
8855 lt_cv_prog_compiler_static_works=yes
8856 fi
8857 fi
8858 $RM -r conftest*
8859 LDFLAGS="$save_LDFLAGS"
8860
8861 fi
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8863 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8864
8865 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8866 :
8867 else
8868 lt_prog_compiler_static=
8869 fi
8870
8871
8872
8873
8874
8875
8876
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8878 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8879 if ${lt_cv_prog_compiler_c_o+:} false; then :
8880 $as_echo_n "(cached) " >&6
8881 else
8882 lt_cv_prog_compiler_c_o=no
8883 $RM -r conftest 2>/dev/null
8884 mkdir conftest
8885 cd conftest
8886 mkdir out
8887 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8888
8889 lt_compiler_flag="-o out/conftest2.$ac_objext"
8890 # Insert the option either (1) after the last *FLAGS variable, or
8891 # (2) before a word containing "conftest.", or (3) at the end.
8892 # Note that $ac_compile itself does not contain backslashes and begins
8893 # with a dollar sign (not a hyphen), so the echo should work correctly.
8894 lt_compile=`echo "$ac_compile" | $SED \
8895 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8896 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8897 -e 's:$: $lt_compiler_flag:'`
8898 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8899 (eval "$lt_compile" 2>out/conftest.err)
8900 ac_status=$?
8901 cat out/conftest.err >&5
8902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8904 then
8905 # The compiler can only warn and ignore the option if not recognized
8906 # So say no if there are warnings
8907 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8908 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8909 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8910 lt_cv_prog_compiler_c_o=yes
8911 fi
8912 fi
8913 chmod u+w . 2>&5
8914 $RM conftest*
8915 # SGI C++ compiler will create directory out/ii_files/ for
8916 # template instantiation
8917 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8918 $RM out/* && rmdir out
8919 cd ..
8920 $RM -r conftest
8921 $RM conftest*
8922
8923 fi
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8925 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8926
8927
8928
8929
8930
8931
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8933 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8934 if ${lt_cv_prog_compiler_c_o+:} false; then :
8935 $as_echo_n "(cached) " >&6
8936 else
8937 lt_cv_prog_compiler_c_o=no
8938 $RM -r conftest 2>/dev/null
8939 mkdir conftest
8940 cd conftest
8941 mkdir out
8942 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8943
8944 lt_compiler_flag="-o out/conftest2.$ac_objext"
8945 # Insert the option either (1) after the last *FLAGS variable, or
8946 # (2) before a word containing "conftest.", or (3) at the end.
8947 # Note that $ac_compile itself does not contain backslashes and begins
8948 # with a dollar sign (not a hyphen), so the echo should work correctly.
8949 lt_compile=`echo "$ac_compile" | $SED \
8950 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8951 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8952 -e 's:$: $lt_compiler_flag:'`
8953 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8954 (eval "$lt_compile" 2>out/conftest.err)
8955 ac_status=$?
8956 cat out/conftest.err >&5
8957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8959 then
8960 # The compiler can only warn and ignore the option if not recognized
8961 # So say no if there are warnings
8962 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8963 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8964 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8965 lt_cv_prog_compiler_c_o=yes
8966 fi
8967 fi
8968 chmod u+w . 2>&5
8969 $RM conftest*
8970 # SGI C++ compiler will create directory out/ii_files/ for
8971 # template instantiation
8972 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8973 $RM out/* && rmdir out
8974 cd ..
8975 $RM -r conftest
8976 $RM conftest*
8977
8978 fi
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8980 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8981
8982
8983
8984
8985 hard_links="nottested"
8986 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8987 # do not overwrite the value of need_locks provided by the user
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8989 $as_echo_n "checking if we can lock with hard links... " >&6; }
8990 hard_links=yes
8991 $RM conftest*
8992 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8993 touch conftest.a
8994 ln conftest.a conftest.b 2>&5 || hard_links=no
8995 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8997 $as_echo "$hard_links" >&6; }
8998 if test "$hard_links" = no; then
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9000 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9001 need_locks=warn
9002 fi
9003 else
9004 need_locks=no
9005 fi
9006
9007
9008
9009
9010
9011
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9013 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9014
9015 runpath_var=
9016 allow_undefined_flag=
9017 always_export_symbols=no
9018 archive_cmds=
9019 archive_expsym_cmds=
9020 compiler_needs_object=no
9021 enable_shared_with_static_runtimes=no
9022 export_dynamic_flag_spec=
9023 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9024 hardcode_automatic=no
9025 hardcode_direct=no
9026 hardcode_direct_absolute=no
9027 hardcode_libdir_flag_spec=
9028 hardcode_libdir_separator=
9029 hardcode_minus_L=no
9030 hardcode_shlibpath_var=unsupported
9031 inherit_rpath=no
9032 link_all_deplibs=unknown
9033 module_cmds=
9034 module_expsym_cmds=
9035 old_archive_from_new_cmds=
9036 old_archive_from_expsyms_cmds=
9037 thread_safe_flag_spec=
9038 whole_archive_flag_spec=
9039 # include_expsyms should be a list of space-separated symbols to be *always*
9040 # included in the symbol list
9041 include_expsyms=
9042 # exclude_expsyms can be an extended regexp of symbols to exclude
9043 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9044 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9045 # as well as any symbol that contains `d'.
9046 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9047 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9048 # platforms (ab)use it in PIC code, but their linkers get confused if
9049 # the symbol is explicitly referenced. Since portable code cannot
9050 # rely on this symbol name, it's probably fine to never include it in
9051 # preloaded symbol tables.
9052 # Exclude shared library initialization/finalization symbols.
9053 extract_expsyms_cmds=
9054
9055 case $host_os in
9056 cygwin* | mingw* | pw32* | cegcc*)
9057 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9058 # When not using gcc, we currently assume that we are using
9059 # Microsoft Visual C++.
9060 if test "$GCC" != yes; then
9061 with_gnu_ld=no
9062 fi
9063 ;;
9064 interix*)
9065 # we just hope/assume this is gcc and not c89 (= MSVC++)
9066 with_gnu_ld=yes
9067 ;;
9068 openbsd*)
9069 with_gnu_ld=no
9070 ;;
9071 esac
9072
9073 ld_shlibs=yes
9074
9075 # On some targets, GNU ld is compatible enough with the native linker
9076 # that we're better off using the native interface for both.
9077 lt_use_gnu_ld_interface=no
9078 if test "$with_gnu_ld" = yes; then
9079 case $host_os in
9080 aix*)
9081 # The AIX port of GNU ld has always aspired to compatibility
9082 # with the native linker. However, as the warning in the GNU ld
9083 # block says, versions before 2.19.5* couldn't really create working
9084 # shared libraries, regardless of the interface used.
9085 case `$LD -v 2>&1` in
9086 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9087 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9088 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9089 *)
9090 lt_use_gnu_ld_interface=yes
9091 ;;
9092 esac
9093 ;;
9094 *)
9095 lt_use_gnu_ld_interface=yes
9096 ;;
9097 esac
9098 fi
9099
9100 if test "$lt_use_gnu_ld_interface" = yes; then
9101 # If archive_cmds runs LD, not CC, wlarc should be empty
9102 wlarc='${wl}'
9103
9104 # Set some defaults for GNU ld with shared library support. These
9105 # are reset later if shared libraries are not supported. Putting them
9106 # here allows them to be overridden if necessary.
9107 runpath_var=LD_RUN_PATH
9108 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9109 export_dynamic_flag_spec='${wl}--export-dynamic'
9110 # ancient GNU ld didn't support --whole-archive et. al.
9111 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9112 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9113 else
9114 whole_archive_flag_spec=
9115 fi
9116 supports_anon_versioning=no
9117 case `$LD -v 2>&1` in
9118 *GNU\ gold*) supports_anon_versioning=yes ;;
9119 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9120 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9121 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9122 *\ 2.11.*) ;; # other 2.11 versions
9123 *) supports_anon_versioning=yes ;;
9124 esac
9125
9126 # See if GNU ld supports shared libraries.
9127 case $host_os in
9128 aix[3-9]*)
9129 # On AIX/PPC, the GNU linker is very broken
9130 if test "$host_cpu" != ia64; then
9131 ld_shlibs=no
9132 cat <<_LT_EOF 1>&2
9133
9134 *** Warning: the GNU linker, at least up to release 2.19, is reported
9135 *** to be unable to reliably create shared libraries on AIX.
9136 *** Therefore, libtool is disabling shared libraries support. If you
9137 *** really care for shared libraries, you may want to install binutils
9138 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9139 *** You will then need to restart the configuration process.
9140
9141 _LT_EOF
9142 fi
9143 ;;
9144
9145 amigaos*)
9146 case $host_cpu in
9147 powerpc)
9148 # see comment about AmigaOS4 .so support
9149 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9150 archive_expsym_cmds=''
9151 ;;
9152 m68k)
9153 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)'
9154 hardcode_libdir_flag_spec='-L$libdir'
9155 hardcode_minus_L=yes
9156 ;;
9157 esac
9158 ;;
9159
9160 beos*)
9161 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9162 allow_undefined_flag=unsupported
9163 # Joseph Beckenbach <[email protected]> says some releases of gcc
9164 # support --undefined. This deserves some investigation. FIXME
9165 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9166 else
9167 ld_shlibs=no
9168 fi
9169 ;;
9170
9171 cygwin* | mingw* | pw32* | cegcc*)
9172 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9173 # as there is no search path for DLLs.
9174 hardcode_libdir_flag_spec='-L$libdir'
9175 export_dynamic_flag_spec='${wl}--export-all-symbols'
9176 allow_undefined_flag=unsupported
9177 always_export_symbols=no
9178 enable_shared_with_static_runtimes=yes
9179 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'
9180 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9181
9182 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9183 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9184 # If the export-symbols file already is a .def file (1st line
9185 # is EXPORTS), use it as is; otherwise, prepend...
9186 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9187 cp $export_symbols $output_objdir/$soname.def;
9188 else
9189 echo EXPORTS > $output_objdir/$soname.def;
9190 cat $export_symbols >> $output_objdir/$soname.def;
9191 fi~
9192 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9193 else
9194 ld_shlibs=no
9195 fi
9196 ;;
9197
9198 haiku*)
9199 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9200 link_all_deplibs=yes
9201 ;;
9202
9203 interix[3-9]*)
9204 hardcode_direct=no
9205 hardcode_shlibpath_var=no
9206 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9207 export_dynamic_flag_spec='${wl}-E'
9208 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9209 # Instead, shared libraries are loaded at an image base (0x10000000 by
9210 # default) and relocated if they conflict, which is a slow very memory
9211 # consuming and fragmenting process. To avoid this, we pick a random,
9212 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9213 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9214 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9215 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'
9216 ;;
9217
9218 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9219 tmp_diet=no
9220 if test "$host_os" = linux-dietlibc; then
9221 case $cc_basename in
9222 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9223 esac
9224 fi
9225 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9226 && test "$tmp_diet" = no
9227 then
9228 tmp_addflag=' $pic_flag'
9229 tmp_sharedflag='-shared'
9230 case $cc_basename,$host_cpu in
9231 pgcc*) # Portland Group C compiler
9232 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'
9233 tmp_addflag=' $pic_flag'
9234 ;;
9235 pgf77* | pgf90* | pgf95* | pgfortran*)
9236 # Portland Group f77 and f90 compilers
9237 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'
9238 tmp_addflag=' $pic_flag -Mnomain' ;;
9239 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9240 tmp_addflag=' -i_dynamic' ;;
9241 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9242 tmp_addflag=' -i_dynamic -nofor_main' ;;
9243 ifc* | ifort*) # Intel Fortran compiler
9244 tmp_addflag=' -nofor_main' ;;
9245 lf95*) # Lahey Fortran 8.1
9246 whole_archive_flag_spec=
9247 tmp_sharedflag='--shared' ;;
9248 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9249 tmp_sharedflag='-qmkshrobj'
9250 tmp_addflag= ;;
9251 nvcc*) # Cuda Compiler Driver 2.2
9252 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'
9253 compiler_needs_object=yes
9254 ;;
9255 esac
9256 case `$CC -V 2>&1 | sed 5q` in
9257 *Sun\ C*) # Sun C 5.9
9258 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'
9259 compiler_needs_object=yes
9260 tmp_sharedflag='-G' ;;
9261 *Sun\ F*) # Sun Fortran 8.3
9262 tmp_sharedflag='-G' ;;
9263 esac
9264 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9265
9266 if test "x$supports_anon_versioning" = xyes; then
9267 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9268 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9269 echo "local: *; };" >> $output_objdir/$libname.ver~
9270 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9271 fi
9272
9273 case $cc_basename in
9274 xlf* | bgf* | bgxlf* | mpixlf*)
9275 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9276 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9277 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9278 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9279 if test "x$supports_anon_versioning" = xyes; then
9280 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9281 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9282 echo "local: *; };" >> $output_objdir/$libname.ver~
9283 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9284 fi
9285 ;;
9286 esac
9287 else
9288 ld_shlibs=no
9289 fi
9290 ;;
9291
9292 netbsd*)
9293 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9294 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9295 wlarc=
9296 else
9297 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9298 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9299 fi
9300 ;;
9301
9302 solaris*)
9303 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9304 ld_shlibs=no
9305 cat <<_LT_EOF 1>&2
9306
9307 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9308 *** create shared libraries on Solaris systems. Therefore, libtool
9309 *** is disabling shared libraries support. We urge you to upgrade GNU
9310 *** binutils to release 2.9.1 or newer. Another option is to modify
9311 *** your PATH or compiler configuration so that the native linker is
9312 *** used, and then restart.
9313
9314 _LT_EOF
9315 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9316 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9317 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9318 else
9319 ld_shlibs=no
9320 fi
9321 ;;
9322
9323 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9324 case `$LD -v 2>&1` in
9325 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9326 ld_shlibs=no
9327 cat <<_LT_EOF 1>&2
9328
9329 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9330 *** reliably create shared libraries on SCO systems. Therefore, libtool
9331 *** is disabling shared libraries support. We urge you to upgrade GNU
9332 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9333 *** your PATH or compiler configuration so that the native linker is
9334 *** used, and then restart.
9335
9336 _LT_EOF
9337 ;;
9338 *)
9339 # For security reasons, it is highly recommended that you always
9340 # use absolute paths for naming shared libraries, and exclude the
9341 # DT_RUNPATH tag from executables and libraries. But doing so
9342 # requires that you compile everything twice, which is a pain.
9343 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9344 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9345 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9346 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9347 else
9348 ld_shlibs=no
9349 fi
9350 ;;
9351 esac
9352 ;;
9353
9354 sunos4*)
9355 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9356 wlarc=
9357 hardcode_direct=yes
9358 hardcode_shlibpath_var=no
9359 ;;
9360
9361 *)
9362 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9363 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9364 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9365 else
9366 ld_shlibs=no
9367 fi
9368 ;;
9369 esac
9370
9371 if test "$ld_shlibs" = no; then
9372 runpath_var=
9373 hardcode_libdir_flag_spec=
9374 export_dynamic_flag_spec=
9375 whole_archive_flag_spec=
9376 fi
9377 else
9378 # PORTME fill in a description of your system's linker (not GNU ld)
9379 case $host_os in
9380 aix3*)
9381 allow_undefined_flag=unsupported
9382 always_export_symbols=yes
9383 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'
9384 # Note: this linker hardcodes the directories in LIBPATH if there
9385 # are no directories specified by -L.
9386 hardcode_minus_L=yes
9387 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9388 # Neither direct hardcoding nor static linking is supported with a
9389 # broken collect2.
9390 hardcode_direct=unsupported
9391 fi
9392 ;;
9393
9394 aix[4-9]*)
9395 if test "$host_cpu" = ia64; then
9396 # On IA64, the linker does run time linking by default, so we don't
9397 # have to do anything special.
9398 aix_use_runtimelinking=no
9399 exp_sym_flag='-Bexport'
9400 no_entry_flag=""
9401 else
9402 # If we're using GNU nm, then we don't want the "-C" option.
9403 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9404 # Also, AIX nm treats weak defined symbols like other global
9405 # defined symbols, whereas GNU nm marks them as "W".
9406 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9407 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'
9408 else
9409 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'
9410 fi
9411 aix_use_runtimelinking=no
9412
9413 # Test if we are trying to use run time linking or normal
9414 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9415 # need to do runtime linking.
9416 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9417 for ld_flag in $LDFLAGS; do
9418 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9419 aix_use_runtimelinking=yes
9420 break
9421 fi
9422 done
9423 ;;
9424 esac
9425
9426 exp_sym_flag='-bexport'
9427 no_entry_flag='-bnoentry'
9428 fi
9429
9430 # When large executables or shared objects are built, AIX ld can
9431 # have problems creating the table of contents. If linking a library
9432 # or program results in "error TOC overflow" add -mminimal-toc to
9433 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9434 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9435
9436 archive_cmds=''
9437 hardcode_direct=yes
9438 hardcode_direct_absolute=yes
9439 hardcode_libdir_separator=':'
9440 link_all_deplibs=yes
9441 file_list_spec='${wl}-f,'
9442
9443 if test "$GCC" = yes; then
9444 case $host_os in aix4.[012]|aix4.[012].*)
9445 # We only want to do this on AIX 4.2 and lower, the check
9446 # below for broken collect2 doesn't work under 4.3+
9447 collect2name=`${CC} -print-prog-name=collect2`
9448 if test -f "$collect2name" &&
9449 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9450 then
9451 # We have reworked collect2
9452 :
9453 else
9454 # We have old collect2
9455 hardcode_direct=unsupported
9456 # It fails to find uninstalled libraries when the uninstalled
9457 # path is not listed in the libpath. Setting hardcode_minus_L
9458 # to unsupported forces relinking
9459 hardcode_minus_L=yes
9460 hardcode_libdir_flag_spec='-L$libdir'
9461 hardcode_libdir_separator=
9462 fi
9463 ;;
9464 esac
9465 shared_flag='-shared'
9466 if test "$aix_use_runtimelinking" = yes; then
9467 shared_flag="$shared_flag "'${wl}-G'
9468 fi
9469 else
9470 # not using gcc
9471 if test "$host_cpu" = ia64; then
9472 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9473 # chokes on -Wl,-G. The following line is correct:
9474 shared_flag='-G'
9475 else
9476 if test "$aix_use_runtimelinking" = yes; then
9477 shared_flag='${wl}-G'
9478 else
9479 shared_flag='${wl}-bM:SRE'
9480 fi
9481 fi
9482 fi
9483
9484 export_dynamic_flag_spec='${wl}-bexpall'
9485 # It seems that -bexpall does not export symbols beginning with
9486 # underscore (_), so it is better to generate a list of symbols to export.
9487 always_export_symbols=yes
9488 if test "$aix_use_runtimelinking" = yes; then
9489 # Warning - without using the other runtime loading flags (-brtl),
9490 # -berok will link without error, but may produce a broken library.
9491 allow_undefined_flag='-berok'
9492 # Determine the default libpath from the value encoded in an
9493 # empty executable.
9494 if test "${lt_cv_aix_libpath+set}" = set; then
9495 aix_libpath=$lt_cv_aix_libpath
9496 else
9497 if ${lt_cv_aix_libpath_+:} false; then :
9498 $as_echo_n "(cached) " >&6
9499 else
9500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9501 /* end confdefs.h. */
9502
9503 int
9504 main ()
9505 {
9506
9507 ;
9508 return 0;
9509 }
9510 _ACEOF
9511 if ac_fn_c_try_link "$LINENO"; then :
9512
9513 lt_aix_libpath_sed='
9514 /Import File Strings/,/^$/ {
9515 /^0/ {
9516 s/^0 *\([^ ]*\) *$/\1/
9517 p
9518 }
9519 }'
9520 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9521 # Check for a 64-bit object if we didn't find anything.
9522 if test -z "$lt_cv_aix_libpath_"; then
9523 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9524 fi
9525 fi
9526 rm -f core conftest.err conftest.$ac_objext \
9527 conftest$ac_exeext conftest.$ac_ext
9528 if test -z "$lt_cv_aix_libpath_"; then
9529 lt_cv_aix_libpath_="/usr/lib:/lib"
9530 fi
9531
9532 fi
9533
9534 aix_libpath=$lt_cv_aix_libpath_
9535 fi
9536
9537 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9538 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"
9539 else
9540 if test "$host_cpu" = ia64; then
9541 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9542 allow_undefined_flag="-z nodefs"
9543 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"
9544 else
9545 # Determine the default libpath from the value encoded in an
9546 # empty executable.
9547 if test "${lt_cv_aix_libpath+set}" = set; then
9548 aix_libpath=$lt_cv_aix_libpath
9549 else
9550 if ${lt_cv_aix_libpath_+:} false; then :
9551 $as_echo_n "(cached) " >&6
9552 else
9553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9554 /* end confdefs.h. */
9555
9556 int
9557 main ()
9558 {
9559
9560 ;
9561 return 0;
9562 }
9563 _ACEOF
9564 if ac_fn_c_try_link "$LINENO"; then :
9565
9566 lt_aix_libpath_sed='
9567 /Import File Strings/,/^$/ {
9568 /^0/ {
9569 s/^0 *\([^ ]*\) *$/\1/
9570 p
9571 }
9572 }'
9573 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9574 # Check for a 64-bit object if we didn't find anything.
9575 if test -z "$lt_cv_aix_libpath_"; then
9576 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9577 fi
9578 fi
9579 rm -f core conftest.err conftest.$ac_objext \
9580 conftest$ac_exeext conftest.$ac_ext
9581 if test -z "$lt_cv_aix_libpath_"; then
9582 lt_cv_aix_libpath_="/usr/lib:/lib"
9583 fi
9584
9585 fi
9586
9587 aix_libpath=$lt_cv_aix_libpath_
9588 fi
9589
9590 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9591 # Warning - without using the other run time loading flags,
9592 # -berok will link without error, but may produce a broken library.
9593 no_undefined_flag=' ${wl}-bernotok'
9594 allow_undefined_flag=' ${wl}-berok'
9595 if test "$with_gnu_ld" = yes; then
9596 # We only use this code for GNU lds that support --whole-archive.
9597 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9598 else
9599 # Exported symbols can be pulled into shared objects from archives
9600 whole_archive_flag_spec='$convenience'
9601 fi
9602 archive_cmds_need_lc=yes
9603 # This is similar to how AIX traditionally builds its shared libraries.
9604 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'
9605 fi
9606 fi
9607 ;;
9608
9609 amigaos*)
9610 case $host_cpu in
9611 powerpc)
9612 # see comment about AmigaOS4 .so support
9613 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9614 archive_expsym_cmds=''
9615 ;;
9616 m68k)
9617 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)'
9618 hardcode_libdir_flag_spec='-L$libdir'
9619 hardcode_minus_L=yes
9620 ;;
9621 esac
9622 ;;
9623
9624 bsdi[45]*)
9625 export_dynamic_flag_spec=-rdynamic
9626 ;;
9627
9628 cygwin* | mingw* | pw32* | cegcc*)
9629 # When not using gcc, we currently assume that we are using
9630 # Microsoft Visual C++.
9631 # hardcode_libdir_flag_spec is actually meaningless, as there is
9632 # no search path for DLLs.
9633 case $cc_basename in
9634 cl*)
9635 # Native MSVC
9636 hardcode_libdir_flag_spec=' '
9637 allow_undefined_flag=unsupported
9638 always_export_symbols=yes
9639 file_list_spec='@'
9640 # Tell ltmain to make .lib files, not .a files.
9641 libext=lib
9642 # Tell ltmain to make .dll files, not .so files.
9643 shrext_cmds=".dll"
9644 # FIXME: Setting linknames here is a bad hack.
9645 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9646 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9647 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9648 else
9649 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9650 fi~
9651 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9652 linknames='
9653 # The linker will not automatically build a static lib if we build a DLL.
9654 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9655 enable_shared_with_static_runtimes=yes
9656 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9657 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9658 # Don't use ranlib
9659 old_postinstall_cmds='chmod 644 $oldlib'
9660 postlink_cmds='lt_outputfile="@OUTPUT@"~
9661 lt_tool_outputfile="@TOOL_OUTPUT@"~
9662 case $lt_outputfile in
9663 *.exe|*.EXE) ;;
9664 *)
9665 lt_outputfile="$lt_outputfile.exe"
9666 lt_tool_outputfile="$lt_tool_outputfile.exe"
9667 ;;
9668 esac~
9669 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9670 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9671 $RM "$lt_outputfile.manifest";
9672 fi'
9673 ;;
9674 *)
9675 # Assume MSVC wrapper
9676 hardcode_libdir_flag_spec=' '
9677 allow_undefined_flag=unsupported
9678 # Tell ltmain to make .lib files, not .a files.
9679 libext=lib
9680 # Tell ltmain to make .dll files, not .so files.
9681 shrext_cmds=".dll"
9682 # FIXME: Setting linknames here is a bad hack.
9683 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9684 # The linker will automatically build a .lib file if we build a DLL.
9685 old_archive_from_new_cmds='true'
9686 # FIXME: Should let the user specify the lib program.
9687 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9688 enable_shared_with_static_runtimes=yes
9689 ;;
9690 esac
9691 ;;
9692
9693 darwin* | rhapsody*)
9694
9695
9696 archive_cmds_need_lc=no
9697 hardcode_direct=no
9698 hardcode_automatic=yes
9699 hardcode_shlibpath_var=unsupported
9700 if test "$lt_cv_ld_force_load" = "yes"; then
9701 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\"`'
9702
9703 else
9704 whole_archive_flag_spec=''
9705 fi
9706 link_all_deplibs=yes
9707 allow_undefined_flag="$_lt_dar_allow_undefined"
9708 case $cc_basename in
9709 ifort*) _lt_dar_can_shared=yes ;;
9710 *) _lt_dar_can_shared=$GCC ;;
9711 esac
9712 if test "$_lt_dar_can_shared" = "yes"; then
9713 output_verbose_link_cmd=func_echo_all
9714 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9715 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9716 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}"
9717 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}"
9718
9719 else
9720 ld_shlibs=no
9721 fi
9722
9723 ;;
9724
9725 dgux*)
9726 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9727 hardcode_libdir_flag_spec='-L$libdir'
9728 hardcode_shlibpath_var=no
9729 ;;
9730
9731 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9732 # support. Future versions do this automatically, but an explicit c++rt0.o
9733 # does not break anything, and helps significantly (at the cost of a little
9734 # extra space).
9735 freebsd2.2*)
9736 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9737 hardcode_libdir_flag_spec='-R$libdir'
9738 hardcode_direct=yes
9739 hardcode_shlibpath_var=no
9740 ;;
9741
9742 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9743 freebsd2.*)
9744 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9745 hardcode_direct=yes
9746 hardcode_minus_L=yes
9747 hardcode_shlibpath_var=no
9748 ;;
9749
9750 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9751 freebsd* | dragonfly*)
9752 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9753 hardcode_libdir_flag_spec='-R$libdir'
9754 hardcode_direct=yes
9755 hardcode_shlibpath_var=no
9756 ;;
9757
9758 hpux9*)
9759 if test "$GCC" = yes; then
9760 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'
9761 else
9762 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'
9763 fi
9764 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9765 hardcode_libdir_separator=:
9766 hardcode_direct=yes
9767
9768 # hardcode_minus_L: Not really in the search PATH,
9769 # but as the default location of the library.
9770 hardcode_minus_L=yes
9771 export_dynamic_flag_spec='${wl}-E'
9772 ;;
9773
9774 hpux10*)
9775 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9776 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9777 else
9778 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9779 fi
9780 if test "$with_gnu_ld" = no; then
9781 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9782 hardcode_libdir_separator=:
9783 hardcode_direct=yes
9784 hardcode_direct_absolute=yes
9785 export_dynamic_flag_spec='${wl}-E'
9786 # hardcode_minus_L: Not really in the search PATH,
9787 # but as the default location of the library.
9788 hardcode_minus_L=yes
9789 fi
9790 ;;
9791
9792 hpux11*)
9793 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9794 case $host_cpu in
9795 hppa*64*)
9796 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9797 ;;
9798 ia64*)
9799 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9800 ;;
9801 *)
9802 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9803 ;;
9804 esac
9805 else
9806 case $host_cpu in
9807 hppa*64*)
9808 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9809 ;;
9810 ia64*)
9811 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9812 ;;
9813 *)
9814
9815 # Older versions of the 11.00 compiler do not understand -b yet
9816 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9818 $as_echo_n "checking if $CC understands -b... " >&6; }
9819 if ${lt_cv_prog_compiler__b+:} false; then :
9820 $as_echo_n "(cached) " >&6
9821 else
9822 lt_cv_prog_compiler__b=no
9823 save_LDFLAGS="$LDFLAGS"
9824 LDFLAGS="$LDFLAGS -b"
9825 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9826 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9827 # The linker can only warn and ignore the option if not recognized
9828 # So say no if there are warnings
9829 if test -s conftest.err; then
9830 # Append any errors to the config.log.
9831 cat conftest.err 1>&5
9832 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9833 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9834 if diff conftest.exp conftest.er2 >/dev/null; then
9835 lt_cv_prog_compiler__b=yes
9836 fi
9837 else
9838 lt_cv_prog_compiler__b=yes
9839 fi
9840 fi
9841 $RM -r conftest*
9842 LDFLAGS="$save_LDFLAGS"
9843
9844 fi
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9846 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9847
9848 if test x"$lt_cv_prog_compiler__b" = xyes; then
9849 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9850 else
9851 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9852 fi
9853
9854 ;;
9855 esac
9856 fi
9857 if test "$with_gnu_ld" = no; then
9858 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9859 hardcode_libdir_separator=:
9860
9861 case $host_cpu in
9862 hppa*64*|ia64*)
9863 hardcode_direct=no
9864 hardcode_shlibpath_var=no
9865 ;;
9866 *)
9867 hardcode_direct=yes
9868 hardcode_direct_absolute=yes
9869 export_dynamic_flag_spec='${wl}-E'
9870
9871 # hardcode_minus_L: Not really in the search PATH,
9872 # but as the default location of the library.
9873 hardcode_minus_L=yes
9874 ;;
9875 esac
9876 fi
9877 ;;
9878
9879 irix5* | irix6* | nonstopux*)
9880 if test "$GCC" = yes; then
9881 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'
9882 # Try to use the -exported_symbol ld option, if it does not
9883 # work, assume that -exports_file does not work either and
9884 # implicitly export all symbols.
9885 # This should be the same for all languages, so no per-tag cache variable.
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9887 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9888 if ${lt_cv_irix_exported_symbol+:} false; then :
9889 $as_echo_n "(cached) " >&6
9890 else
9891 save_LDFLAGS="$LDFLAGS"
9892 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9894 /* end confdefs.h. */
9895 int foo (void) { return 0; }
9896 _ACEOF
9897 if ac_fn_c_try_link "$LINENO"; then :
9898 lt_cv_irix_exported_symbol=yes
9899 else
9900 lt_cv_irix_exported_symbol=no
9901 fi
9902 rm -f core conftest.err conftest.$ac_objext \
9903 conftest$ac_exeext conftest.$ac_ext
9904 LDFLAGS="$save_LDFLAGS"
9905 fi
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9907 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9908 if test "$lt_cv_irix_exported_symbol" = yes; then
9909 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'
9910 fi
9911 else
9912 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'
9913 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'
9914 fi
9915 archive_cmds_need_lc='no'
9916 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9917 hardcode_libdir_separator=:
9918 inherit_rpath=yes
9919 link_all_deplibs=yes
9920 ;;
9921
9922 netbsd*)
9923 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9924 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9925 else
9926 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9927 fi
9928 hardcode_libdir_flag_spec='-R$libdir'
9929 hardcode_direct=yes
9930 hardcode_shlibpath_var=no
9931 ;;
9932
9933 newsos6)
9934 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9935 hardcode_direct=yes
9936 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9937 hardcode_libdir_separator=:
9938 hardcode_shlibpath_var=no
9939 ;;
9940
9941 *nto* | *qnx*)
9942 ;;
9943
9944 openbsd*)
9945 if test -f /usr/libexec/ld.so; then
9946 hardcode_direct=yes
9947 hardcode_shlibpath_var=no
9948 hardcode_direct_absolute=yes
9949 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9950 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9951 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9952 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9953 export_dynamic_flag_spec='${wl}-E'
9954 else
9955 case $host_os in
9956 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9957 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9958 hardcode_libdir_flag_spec='-R$libdir'
9959 ;;
9960 *)
9961 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9962 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9963 ;;
9964 esac
9965 fi
9966 else
9967 ld_shlibs=no
9968 fi
9969 ;;
9970
9971 os2*)
9972 hardcode_libdir_flag_spec='-L$libdir'
9973 hardcode_minus_L=yes
9974 allow_undefined_flag=unsupported
9975 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'
9976 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9977 ;;
9978
9979 osf3*)
9980 if test "$GCC" = yes; then
9981 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9982 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'
9983 else
9984 allow_undefined_flag=' -expect_unresolved \*'
9985 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'
9986 fi
9987 archive_cmds_need_lc='no'
9988 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9989 hardcode_libdir_separator=:
9990 ;;
9991
9992 osf4* | osf5*) # as osf3* with the addition of -msym flag
9993 if test "$GCC" = yes; then
9994 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9995 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'
9996 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9997 else
9998 allow_undefined_flag=' -expect_unresolved \*'
9999 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'
10000 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~
10001 $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'
10002
10003 # Both c and cxx compiler support -rpath directly
10004 hardcode_libdir_flag_spec='-rpath $libdir'
10005 fi
10006 archive_cmds_need_lc='no'
10007 hardcode_libdir_separator=:
10008 ;;
10009
10010 solaris*)
10011 no_undefined_flag=' -z defs'
10012 if test "$GCC" = yes; then
10013 wlarc='${wl}'
10014 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10015 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10016 $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'
10017 else
10018 case `$CC -V 2>&1` in
10019 *"Compilers 5.0"*)
10020 wlarc=''
10021 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10022 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10023 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10024 ;;
10025 *)
10026 wlarc='${wl}'
10027 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10028 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10029 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10030 ;;
10031 esac
10032 fi
10033 hardcode_libdir_flag_spec='-R$libdir'
10034 hardcode_shlibpath_var=no
10035 case $host_os in
10036 solaris2.[0-5] | solaris2.[0-5].*) ;;
10037 *)
10038 # The compiler driver will combine and reorder linker options,
10039 # but understands `-z linker_flag'. GCC discards it without `$wl',
10040 # but is careful enough not to reorder.
10041 # Supported since Solaris 2.6 (maybe 2.5.1?)
10042 if test "$GCC" = yes; then
10043 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10044 else
10045 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10046 fi
10047 ;;
10048 esac
10049 link_all_deplibs=yes
10050 ;;
10051
10052 sunos4*)
10053 if test "x$host_vendor" = xsequent; then
10054 # Use $CC to link under sequent, because it throws in some extra .o
10055 # files that make .init and .fini sections work.
10056 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10057 else
10058 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10059 fi
10060 hardcode_libdir_flag_spec='-L$libdir'
10061 hardcode_direct=yes
10062 hardcode_minus_L=yes
10063 hardcode_shlibpath_var=no
10064 ;;
10065
10066 sysv4)
10067 case $host_vendor in
10068 sni)
10069 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10070 hardcode_direct=yes # is this really true???
10071 ;;
10072 siemens)
10073 ## LD is ld it makes a PLAMLIB
10074 ## CC just makes a GrossModule.
10075 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10076 reload_cmds='$CC -r -o $output$reload_objs'
10077 hardcode_direct=no
10078 ;;
10079 motorola)
10080 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10081 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10082 ;;
10083 esac
10084 runpath_var='LD_RUN_PATH'
10085 hardcode_shlibpath_var=no
10086 ;;
10087
10088 sysv4.3*)
10089 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10090 hardcode_shlibpath_var=no
10091 export_dynamic_flag_spec='-Bexport'
10092 ;;
10093
10094 sysv4*MP*)
10095 if test -d /usr/nec; then
10096 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10097 hardcode_shlibpath_var=no
10098 runpath_var=LD_RUN_PATH
10099 hardcode_runpath_var=yes
10100 ld_shlibs=yes
10101 fi
10102 ;;
10103
10104 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10105 no_undefined_flag='${wl}-z,text'
10106 archive_cmds_need_lc=no
10107 hardcode_shlibpath_var=no
10108 runpath_var='LD_RUN_PATH'
10109
10110 if test "$GCC" = yes; then
10111 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10112 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10113 else
10114 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10115 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10116 fi
10117 ;;
10118
10119 sysv5* | sco3.2v5* | sco5v6*)
10120 # Note: We can NOT use -z defs as we might desire, because we do not
10121 # link with -lc, and that would cause any symbols used from libc to
10122 # always be unresolved, which means just about no library would
10123 # ever link correctly. If we're not using GNU ld we use -z text
10124 # though, which does catch some bad symbols but isn't as heavy-handed
10125 # as -z defs.
10126 no_undefined_flag='${wl}-z,text'
10127 allow_undefined_flag='${wl}-z,nodefs'
10128 archive_cmds_need_lc=no
10129 hardcode_shlibpath_var=no
10130 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10131 hardcode_libdir_separator=':'
10132 link_all_deplibs=yes
10133 export_dynamic_flag_spec='${wl}-Bexport'
10134 runpath_var='LD_RUN_PATH'
10135
10136 if test "$GCC" = yes; then
10137 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10138 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10139 else
10140 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10141 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10142 fi
10143 ;;
10144
10145 uts4*)
10146 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10147 hardcode_libdir_flag_spec='-L$libdir'
10148 hardcode_shlibpath_var=no
10149 ;;
10150
10151 *)
10152 ld_shlibs=no
10153 ;;
10154 esac
10155
10156 if test x$host_vendor = xsni; then
10157 case $host in
10158 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10159 export_dynamic_flag_spec='${wl}-Blargedynsym'
10160 ;;
10161 esac
10162 fi
10163 fi
10164
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10166 $as_echo "$ld_shlibs" >&6; }
10167 test "$ld_shlibs" = no && can_build_shared=no
10168
10169 with_gnu_ld=$with_gnu_ld
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185 #
10186 # Do we need to explicitly link libc?
10187 #
10188 case "x$archive_cmds_need_lc" in
10189 x|xyes)
10190 # Assume -lc should be added
10191 archive_cmds_need_lc=yes
10192
10193 if test "$enable_shared" = yes && test "$GCC" = yes; then
10194 case $archive_cmds in
10195 *'~'*)
10196 # FIXME: we may have to deal with multi-command sequences.
10197 ;;
10198 '$CC '*)
10199 # Test whether the compiler implicitly links with -lc since on some
10200 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10201 # to ld, don't add -lc before -lgcc.
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10203 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10204 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10205 $as_echo_n "(cached) " >&6
10206 else
10207 $RM conftest*
10208 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10209
10210 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10211 (eval $ac_compile) 2>&5
10212 ac_status=$?
10213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10214 test $ac_status = 0; } 2>conftest.err; then
10215 soname=conftest
10216 lib=conftest
10217 libobjs=conftest.$ac_objext
10218 deplibs=
10219 wl=$lt_prog_compiler_wl
10220 pic_flag=$lt_prog_compiler_pic
10221 compiler_flags=-v
10222 linker_flags=-v
10223 verstring=
10224 output_objdir=.
10225 libname=conftest
10226 lt_save_allow_undefined_flag=$allow_undefined_flag
10227 allow_undefined_flag=
10228 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10229 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10230 ac_status=$?
10231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10232 test $ac_status = 0; }
10233 then
10234 lt_cv_archive_cmds_need_lc=no
10235 else
10236 lt_cv_archive_cmds_need_lc=yes
10237 fi
10238 allow_undefined_flag=$lt_save_allow_undefined_flag
10239 else
10240 cat conftest.err 1>&5
10241 fi
10242 $RM conftest*
10243
10244 fi
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10246 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10247 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10248 ;;
10249 esac
10250 fi
10251 ;;
10252 esac
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10406 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10407
10408 if test "$GCC" = yes; then
10409 case $host_os in
10410 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10411 *) lt_awk_arg="/^libraries:/" ;;
10412 esac
10413 case $host_os in
10414 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10415 *) lt_sed_strip_eq="s,=/,/,g" ;;
10416 esac
10417 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10418 case $lt_search_path_spec in
10419 *\;*)
10420 # if the path contains ";" then we assume it to be the separator
10421 # otherwise default to the standard path separator (i.e. ":") - it is
10422 # assumed that no part of a normal pathname contains ";" but that should
10423 # okay in the real world where ";" in dirpaths is itself problematic.
10424 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10425 ;;
10426 *)
10427 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10428 ;;
10429 esac
10430 # Ok, now we have the path, separated by spaces, we can step through it
10431 # and add multilib dir if necessary.
10432 lt_tmp_lt_search_path_spec=
10433 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10434 for lt_sys_path in $lt_search_path_spec; do
10435 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10436 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10437 else
10438 test -d "$lt_sys_path" && \
10439 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10440 fi
10441 done
10442 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10443 BEGIN {RS=" "; FS="/|\n";} {
10444 lt_foo="";
10445 lt_count=0;
10446 for (lt_i = NF; lt_i > 0; lt_i--) {
10447 if ($lt_i != "" && $lt_i != ".") {
10448 if ($lt_i == "..") {
10449 lt_count++;
10450 } else {
10451 if (lt_count == 0) {
10452 lt_foo="/" $lt_i lt_foo;
10453 } else {
10454 lt_count--;
10455 }
10456 }
10457 }
10458 }
10459 if (lt_foo != "") { lt_freq[lt_foo]++; }
10460 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10461 }'`
10462 # AWK program above erroneously prepends '/' to C:/dos/paths
10463 # for these hosts.
10464 case $host_os in
10465 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10466 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10467 esac
10468 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10469 else
10470 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10471 fi
10472 library_names_spec=
10473 libname_spec='lib$name'
10474 soname_spec=
10475 shrext_cmds=".so"
10476 postinstall_cmds=
10477 postuninstall_cmds=
10478 finish_cmds=
10479 finish_eval=
10480 shlibpath_var=
10481 shlibpath_overrides_runpath=unknown
10482 version_type=none
10483 dynamic_linker="$host_os ld.so"
10484 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10485 need_lib_prefix=unknown
10486 hardcode_into_libs=no
10487
10488 # when you set need_version to no, make sure it does not cause -set_version
10489 # flags to be left without arguments
10490 need_version=unknown
10491
10492 case $host_os in
10493 aix3*)
10494 version_type=linux # correct to gnu/linux during the next big refactor
10495 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10496 shlibpath_var=LIBPATH
10497
10498 # AIX 3 has no versioning support, so we append a major version to the name.
10499 soname_spec='${libname}${release}${shared_ext}$major'
10500 ;;
10501
10502 aix[4-9]*)
10503 version_type=linux # correct to gnu/linux during the next big refactor
10504 need_lib_prefix=no
10505 need_version=no
10506 hardcode_into_libs=yes
10507 if test "$host_cpu" = ia64; then
10508 # AIX 5 supports IA64
10509 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10510 shlibpath_var=LD_LIBRARY_PATH
10511 else
10512 # With GCC up to 2.95.x, collect2 would create an import file
10513 # for dependence libraries. The import file would start with
10514 # the line `#! .'. This would cause the generated library to
10515 # depend on `.', always an invalid library. This was fixed in
10516 # development snapshots of GCC prior to 3.0.
10517 case $host_os in
10518 aix4 | aix4.[01] | aix4.[01].*)
10519 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10520 echo ' yes '
10521 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10522 :
10523 else
10524 can_build_shared=no
10525 fi
10526 ;;
10527 esac
10528 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10529 # soname into executable. Probably we can add versioning support to
10530 # collect2, so additional links can be useful in future.
10531 if test "$aix_use_runtimelinking" = yes; then
10532 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10533 # instead of lib<name>.a to let people know that these are not
10534 # typical AIX shared libraries.
10535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10536 else
10537 # We preserve .a as extension for shared libraries through AIX4.2
10538 # and later when we are not doing run time linking.
10539 library_names_spec='${libname}${release}.a $libname.a'
10540 soname_spec='${libname}${release}${shared_ext}$major'
10541 fi
10542 shlibpath_var=LIBPATH
10543 fi
10544 ;;
10545
10546 amigaos*)
10547 case $host_cpu in
10548 powerpc)
10549 # Since July 2007 AmigaOS4 officially supports .so libraries.
10550 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10552 ;;
10553 m68k)
10554 library_names_spec='$libname.ixlibrary $libname.a'
10555 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10556 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'
10557 ;;
10558 esac
10559 ;;
10560
10561 beos*)
10562 library_names_spec='${libname}${shared_ext}'
10563 dynamic_linker="$host_os ld.so"
10564 shlibpath_var=LIBRARY_PATH
10565 ;;
10566
10567 bsdi[45]*)
10568 version_type=linux # correct to gnu/linux during the next big refactor
10569 need_version=no
10570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10571 soname_spec='${libname}${release}${shared_ext}$major'
10572 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10573 shlibpath_var=LD_LIBRARY_PATH
10574 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10575 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10576 # the default ld.so.conf also contains /usr/contrib/lib and
10577 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10578 # libtool to hard-code these into programs
10579 ;;
10580
10581 cygwin* | mingw* | pw32* | cegcc*)
10582 version_type=windows
10583 shrext_cmds=".dll"
10584 need_version=no
10585 need_lib_prefix=no
10586
10587 case $GCC,$cc_basename in
10588 yes,*)
10589 # gcc
10590 library_names_spec='$libname.dll.a'
10591 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10592 postinstall_cmds='base_file=`basename \${file}`~
10593 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10594 dldir=$destdir/`dirname \$dlpath`~
10595 test -d \$dldir || mkdir -p \$dldir~
10596 $install_prog $dir/$dlname \$dldir/$dlname~
10597 chmod a+x \$dldir/$dlname~
10598 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10599 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10600 fi'
10601 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10602 dlpath=$dir/\$dldll~
10603 $RM \$dlpath'
10604 shlibpath_overrides_runpath=yes
10605
10606 case $host_os in
10607 cygwin*)
10608 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10609 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10610
10611 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10612 ;;
10613 mingw* | cegcc*)
10614 # MinGW DLLs use traditional 'lib' prefix
10615 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10616 ;;
10617 pw32*)
10618 # pw32 DLLs use 'pw' prefix rather than 'lib'
10619 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10620 ;;
10621 esac
10622 dynamic_linker='Win32 ld.exe'
10623 ;;
10624
10625 *,cl*)
10626 # Native MSVC
10627 libname_spec='$name'
10628 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10629 library_names_spec='${libname}.dll.lib'
10630
10631 case $build_os in
10632 mingw*)
10633 sys_lib_search_path_spec=
10634 lt_save_ifs=$IFS
10635 IFS=';'
10636 for lt_path in $LIB
10637 do
10638 IFS=$lt_save_ifs
10639 # Let DOS variable expansion print the short 8.3 style file name.
10640 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10641 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10642 done
10643 IFS=$lt_save_ifs
10644 # Convert to MSYS style.
10645 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10646 ;;
10647 cygwin*)
10648 # Convert to unix form, then to dos form, then back to unix form
10649 # but this time dos style (no spaces!) so that the unix form looks
10650 # like /cygdrive/c/PROGRA~1:/cygdr...
10651 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10652 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10653 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10654 ;;
10655 *)
10656 sys_lib_search_path_spec="$LIB"
10657 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10658 # It is most probably a Windows format PATH.
10659 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10660 else
10661 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10662 fi
10663 # FIXME: find the short name or the path components, as spaces are
10664 # common. (e.g. "Program Files" -> "PROGRA~1")
10665 ;;
10666 esac
10667
10668 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10669 postinstall_cmds='base_file=`basename \${file}`~
10670 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10671 dldir=$destdir/`dirname \$dlpath`~
10672 test -d \$dldir || mkdir -p \$dldir~
10673 $install_prog $dir/$dlname \$dldir/$dlname'
10674 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10675 dlpath=$dir/\$dldll~
10676 $RM \$dlpath'
10677 shlibpath_overrides_runpath=yes
10678 dynamic_linker='Win32 link.exe'
10679 ;;
10680
10681 *)
10682 # Assume MSVC wrapper
10683 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10684 dynamic_linker='Win32 ld.exe'
10685 ;;
10686 esac
10687 # FIXME: first we should search . and the directory the executable is in
10688 shlibpath_var=PATH
10689 ;;
10690
10691 darwin* | rhapsody*)
10692 dynamic_linker="$host_os dyld"
10693 version_type=darwin
10694 need_lib_prefix=no
10695 need_version=no
10696 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10697 soname_spec='${libname}${release}${major}$shared_ext'
10698 shlibpath_overrides_runpath=yes
10699 shlibpath_var=DYLD_LIBRARY_PATH
10700 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10701
10702 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10703 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10704 ;;
10705
10706 dgux*)
10707 version_type=linux # correct to gnu/linux during the next big refactor
10708 need_lib_prefix=no
10709 need_version=no
10710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10711 soname_spec='${libname}${release}${shared_ext}$major'
10712 shlibpath_var=LD_LIBRARY_PATH
10713 ;;
10714
10715 freebsd* | dragonfly*)
10716 # DragonFly does not have aout. When/if they implement a new
10717 # versioning mechanism, adjust this.
10718 if test -x /usr/bin/objformat; then
10719 objformat=`/usr/bin/objformat`
10720 else
10721 case $host_os in
10722 freebsd[23].*) objformat=aout ;;
10723 *) objformat=elf ;;
10724 esac
10725 fi
10726 version_type=freebsd-$objformat
10727 case $version_type in
10728 freebsd-elf*)
10729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10730 need_version=no
10731 need_lib_prefix=no
10732 ;;
10733 freebsd-*)
10734 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10735 need_version=yes
10736 ;;
10737 esac
10738 shlibpath_var=LD_LIBRARY_PATH
10739 case $host_os in
10740 freebsd2.*)
10741 shlibpath_overrides_runpath=yes
10742 ;;
10743 freebsd3.[01]* | freebsdelf3.[01]*)
10744 shlibpath_overrides_runpath=yes
10745 hardcode_into_libs=yes
10746 ;;
10747 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10748 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10749 shlibpath_overrides_runpath=no
10750 hardcode_into_libs=yes
10751 ;;
10752 *) # from 4.6 on, and DragonFly
10753 shlibpath_overrides_runpath=yes
10754 hardcode_into_libs=yes
10755 ;;
10756 esac
10757 ;;
10758
10759 gnu*)
10760 version_type=linux # correct to gnu/linux during the next big refactor
10761 need_lib_prefix=no
10762 need_version=no
10763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10764 soname_spec='${libname}${release}${shared_ext}$major'
10765 shlibpath_var=LD_LIBRARY_PATH
10766 shlibpath_overrides_runpath=no
10767 hardcode_into_libs=yes
10768 ;;
10769
10770 haiku*)
10771 version_type=linux # correct to gnu/linux during the next big refactor
10772 need_lib_prefix=no
10773 need_version=no
10774 dynamic_linker="$host_os runtime_loader"
10775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10776 soname_spec='${libname}${release}${shared_ext}$major'
10777 shlibpath_var=LIBRARY_PATH
10778 shlibpath_overrides_runpath=yes
10779 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10780 hardcode_into_libs=yes
10781 ;;
10782
10783 hpux9* | hpux10* | hpux11*)
10784 # Give a soname corresponding to the major version so that dld.sl refuses to
10785 # link against other versions.
10786 version_type=sunos
10787 need_lib_prefix=no
10788 need_version=no
10789 case $host_cpu in
10790 ia64*)
10791 shrext_cmds='.so'
10792 hardcode_into_libs=yes
10793 dynamic_linker="$host_os dld.so"
10794 shlibpath_var=LD_LIBRARY_PATH
10795 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10797 soname_spec='${libname}${release}${shared_ext}$major'
10798 if test "X$HPUX_IA64_MODE" = X32; then
10799 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10800 else
10801 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10802 fi
10803 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10804 ;;
10805 hppa*64*)
10806 shrext_cmds='.sl'
10807 hardcode_into_libs=yes
10808 dynamic_linker="$host_os dld.sl"
10809 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10810 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10812 soname_spec='${libname}${release}${shared_ext}$major'
10813 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10814 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10815 ;;
10816 *)
10817 shrext_cmds='.sl'
10818 dynamic_linker="$host_os dld.sl"
10819 shlibpath_var=SHLIB_PATH
10820 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10822 soname_spec='${libname}${release}${shared_ext}$major'
10823 ;;
10824 esac
10825 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10826 postinstall_cmds='chmod 555 $lib'
10827 # or fails outright, so override atomically:
10828 install_override_mode=555
10829 ;;
10830
10831 interix[3-9]*)
10832 version_type=linux # correct to gnu/linux during the next big refactor
10833 need_lib_prefix=no
10834 need_version=no
10835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10836 soname_spec='${libname}${release}${shared_ext}$major'
10837 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10838 shlibpath_var=LD_LIBRARY_PATH
10839 shlibpath_overrides_runpath=no
10840 hardcode_into_libs=yes
10841 ;;
10842
10843 irix5* | irix6* | nonstopux*)
10844 case $host_os in
10845 nonstopux*) version_type=nonstopux ;;
10846 *)
10847 if test "$lt_cv_prog_gnu_ld" = yes; then
10848 version_type=linux # correct to gnu/linux during the next big refactor
10849 else
10850 version_type=irix
10851 fi ;;
10852 esac
10853 need_lib_prefix=no
10854 need_version=no
10855 soname_spec='${libname}${release}${shared_ext}$major'
10856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10857 case $host_os in
10858 irix5* | nonstopux*)
10859 libsuff= shlibsuff=
10860 ;;
10861 *)
10862 case $LD in # libtool.m4 will add one of these switches to LD
10863 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10864 libsuff= shlibsuff= libmagic=32-bit;;
10865 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10866 libsuff=32 shlibsuff=N32 libmagic=N32;;
10867 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10868 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10869 *) libsuff= shlibsuff= libmagic=never-match;;
10870 esac
10871 ;;
10872 esac
10873 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10874 shlibpath_overrides_runpath=no
10875 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10876 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10877 hardcode_into_libs=yes
10878 ;;
10879
10880 # No shared lib support for Linux oldld, aout, or coff.
10881 linux*oldld* | linux*aout* | linux*coff*)
10882 dynamic_linker=no
10883 ;;
10884
10885 # This must be glibc/ELF.
10886 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10887 version_type=linux # correct to gnu/linux during the next big refactor
10888 need_lib_prefix=no
10889 need_version=no
10890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10891 soname_spec='${libname}${release}${shared_ext}$major'
10892 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10893 shlibpath_var=LD_LIBRARY_PATH
10894 shlibpath_overrides_runpath=no
10895
10896 # Some binutils ld are patched to set DT_RUNPATH
10897 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10898 $as_echo_n "(cached) " >&6
10899 else
10900 lt_cv_shlibpath_overrides_runpath=no
10901 save_LDFLAGS=$LDFLAGS
10902 save_libdir=$libdir
10903 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10904 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10906 /* end confdefs.h. */
10907
10908 int
10909 main ()
10910 {
10911
10912 ;
10913 return 0;
10914 }
10915 _ACEOF
10916 if ac_fn_c_try_link "$LINENO"; then :
10917 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10918 lt_cv_shlibpath_overrides_runpath=yes
10919 fi
10920 fi
10921 rm -f core conftest.err conftest.$ac_objext \
10922 conftest$ac_exeext conftest.$ac_ext
10923 LDFLAGS=$save_LDFLAGS
10924 libdir=$save_libdir
10925
10926 fi
10927
10928 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10929
10930 # This implies no fast_install, which is unacceptable.
10931 # Some rework will be needed to allow for fast_install
10932 # before this can be enabled.
10933 hardcode_into_libs=yes
10934
10935 # Add ABI-specific directories to the system library path.
10936 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10937
10938 # Append ld.so.conf contents to the search path
10939 if test -f /etc/ld.so.conf; then
10940 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' ' '`
10941 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10942
10943 fi
10944
10945 # We used to test for /lib/ld.so.1 and disable shared libraries on
10946 # powerpc, because MkLinux only supported shared libraries with the
10947 # GNU dynamic linker. Since this was broken with cross compilers,
10948 # most powerpc-linux boxes support dynamic linking these days and
10949 # people can always --disable-shared, the test was removed, and we
10950 # assume the GNU/Linux dynamic linker is in use.
10951 dynamic_linker='GNU/Linux ld.so'
10952 ;;
10953
10954 netbsd*)
10955 version_type=sunos
10956 need_lib_prefix=no
10957 need_version=no
10958 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10960 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10961 dynamic_linker='NetBSD (a.out) ld.so'
10962 else
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='NetBSD ld.elf_so'
10966 fi
10967 shlibpath_var=LD_LIBRARY_PATH
10968 shlibpath_overrides_runpath=yes
10969 hardcode_into_libs=yes
10970 ;;
10971
10972 newsos6)
10973 version_type=linux # correct to gnu/linux during the next big refactor
10974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10975 shlibpath_var=LD_LIBRARY_PATH
10976 shlibpath_overrides_runpath=yes
10977 ;;
10978
10979 *nto* | *qnx*)
10980 version_type=qnx
10981 need_lib_prefix=no
10982 need_version=no
10983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10984 soname_spec='${libname}${release}${shared_ext}$major'
10985 shlibpath_var=LD_LIBRARY_PATH
10986 shlibpath_overrides_runpath=no
10987 hardcode_into_libs=yes
10988 dynamic_linker='ldqnx.so'
10989 ;;
10990
10991 openbsd*)
10992 version_type=sunos
10993 sys_lib_dlsearch_path_spec="/usr/lib"
10994 need_lib_prefix=no
10995 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10996 case $host_os in
10997 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10998 *) need_version=no ;;
10999 esac
11000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11001 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11002 shlibpath_var=LD_LIBRARY_PATH
11003 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11004 case $host_os in
11005 openbsd2.[89] | openbsd2.[89].*)
11006 shlibpath_overrides_runpath=no
11007 ;;
11008 *)
11009 shlibpath_overrides_runpath=yes
11010 ;;
11011 esac
11012 else
11013 shlibpath_overrides_runpath=yes
11014 fi
11015 ;;
11016
11017 os2*)
11018 libname_spec='$name'
11019 shrext_cmds=".dll"
11020 need_lib_prefix=no
11021 library_names_spec='$libname${shared_ext} $libname.a'
11022 dynamic_linker='OS/2 ld.exe'
11023 shlibpath_var=LIBPATH
11024 ;;
11025
11026 osf3* | osf4* | osf5*)
11027 version_type=osf
11028 need_lib_prefix=no
11029 need_version=no
11030 soname_spec='${libname}${release}${shared_ext}$major'
11031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11032 shlibpath_var=LD_LIBRARY_PATH
11033 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11034 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11035 ;;
11036
11037 rdos*)
11038 dynamic_linker=no
11039 ;;
11040
11041 solaris*)
11042 version_type=linux # correct to gnu/linux during the next big refactor
11043 need_lib_prefix=no
11044 need_version=no
11045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11046 soname_spec='${libname}${release}${shared_ext}$major'
11047 shlibpath_var=LD_LIBRARY_PATH
11048 shlibpath_overrides_runpath=yes
11049 hardcode_into_libs=yes
11050 # ldd complains unless libraries are executable
11051 postinstall_cmds='chmod +x $lib'
11052 ;;
11053
11054 sunos4*)
11055 version_type=sunos
11056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11057 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11058 shlibpath_var=LD_LIBRARY_PATH
11059 shlibpath_overrides_runpath=yes
11060 if test "$with_gnu_ld" = yes; then
11061 need_lib_prefix=no
11062 fi
11063 need_version=yes
11064 ;;
11065
11066 sysv4 | sysv4.3*)
11067 version_type=linux # correct to gnu/linux during the next big refactor
11068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11069 soname_spec='${libname}${release}${shared_ext}$major'
11070 shlibpath_var=LD_LIBRARY_PATH
11071 case $host_vendor in
11072 sni)
11073 shlibpath_overrides_runpath=no
11074 need_lib_prefix=no
11075 runpath_var=LD_RUN_PATH
11076 ;;
11077 siemens)
11078 need_lib_prefix=no
11079 ;;
11080 motorola)
11081 need_lib_prefix=no
11082 need_version=no
11083 shlibpath_overrides_runpath=no
11084 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11085 ;;
11086 esac
11087 ;;
11088
11089 sysv4*MP*)
11090 if test -d /usr/nec ;then
11091 version_type=linux # correct to gnu/linux during the next big refactor
11092 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11093 soname_spec='$libname${shared_ext}.$major'
11094 shlibpath_var=LD_LIBRARY_PATH
11095 fi
11096 ;;
11097
11098 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11099 version_type=freebsd-elf
11100 need_lib_prefix=no
11101 need_version=no
11102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11103 soname_spec='${libname}${release}${shared_ext}$major'
11104 shlibpath_var=LD_LIBRARY_PATH
11105 shlibpath_overrides_runpath=yes
11106 hardcode_into_libs=yes
11107 if test "$with_gnu_ld" = yes; then
11108 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11109 else
11110 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11111 case $host_os in
11112 sco3.2v5*)
11113 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11114 ;;
11115 esac
11116 fi
11117 sys_lib_dlsearch_path_spec='/usr/lib'
11118 ;;
11119
11120 tpf*)
11121 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11122 version_type=linux # correct to gnu/linux during the next big refactor
11123 need_lib_prefix=no
11124 need_version=no
11125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11126 shlibpath_var=LD_LIBRARY_PATH
11127 shlibpath_overrides_runpath=no
11128 hardcode_into_libs=yes
11129 ;;
11130
11131 uts4*)
11132 version_type=linux # correct to gnu/linux during the next big refactor
11133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11134 soname_spec='${libname}${release}${shared_ext}$major'
11135 shlibpath_var=LD_LIBRARY_PATH
11136 ;;
11137
11138 *)
11139 dynamic_linker=no
11140 ;;
11141 esac
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11143 $as_echo "$dynamic_linker" >&6; }
11144 test "$dynamic_linker" = no && can_build_shared=no
11145
11146 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11147 if test "$GCC" = yes; then
11148 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11149 fi
11150
11151 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11152 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11153 fi
11154 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11155 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11156 fi
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11250 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11251 hardcode_action=
11252 if test -n "$hardcode_libdir_flag_spec" ||
11253 test -n "$runpath_var" ||
11254 test "X$hardcode_automatic" = "Xyes" ; then
11255
11256 # We can hardcode non-existent directories.
11257 if test "$hardcode_direct" != no &&
11258 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11259 # have to relink, otherwise we might link with an installed library
11260 # when we should be linking with a yet-to-be-installed one
11261 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11262 test "$hardcode_minus_L" != no; then
11263 # Linking always hardcodes the temporary library directory.
11264 hardcode_action=relink
11265 else
11266 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11267 hardcode_action=immediate
11268 fi
11269 else
11270 # We cannot hardcode anything, or else we can only hardcode existing
11271 # directories.
11272 hardcode_action=unsupported
11273 fi
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11275 $as_echo "$hardcode_action" >&6; }
11276
11277 if test "$hardcode_action" = relink ||
11278 test "$inherit_rpath" = yes; then
11279 # Fast installation is not supported
11280 enable_fast_install=no
11281 elif test "$shlibpath_overrides_runpath" = yes ||
11282 test "$enable_shared" = no; then
11283 # Fast installation is not necessary
11284 enable_fast_install=needless
11285 fi
11286
11287
11288
11289
11290
11291
11292 if test "x$enable_dlopen" != xyes; then
11293 enable_dlopen=unknown
11294 enable_dlopen_self=unknown
11295 enable_dlopen_self_static=unknown
11296 else
11297 lt_cv_dlopen=no
11298 lt_cv_dlopen_libs=
11299
11300 case $host_os in
11301 beos*)
11302 lt_cv_dlopen="load_add_on"
11303 lt_cv_dlopen_libs=
11304 lt_cv_dlopen_self=yes
11305 ;;
11306
11307 mingw* | pw32* | cegcc*)
11308 lt_cv_dlopen="LoadLibrary"
11309 lt_cv_dlopen_libs=
11310 ;;
11311
11312 cygwin*)
11313 lt_cv_dlopen="dlopen"
11314 lt_cv_dlopen_libs=
11315 ;;
11316
11317 darwin*)
11318 # if libdl is installed we need to link against it
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11320 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11321 if ${ac_cv_lib_dl_dlopen+:} false; then :
11322 $as_echo_n "(cached) " >&6
11323 else
11324 ac_check_lib_save_LIBS=$LIBS
11325 LIBS="-ldl $LIBS"
11326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11327 /* end confdefs.h. */
11328
11329 /* Override any GCC internal prototype to avoid an error.
11330 Use char because int might match the return type of a GCC
11331 builtin and then its argument prototype would still apply. */
11332 #ifdef __cplusplus
11333 extern "C"
11334 #endif
11335 char dlopen ();
11336 int
11337 main ()
11338 {
11339 return dlopen ();
11340 ;
11341 return 0;
11342 }
11343 _ACEOF
11344 if ac_fn_c_try_link "$LINENO"; then :
11345 ac_cv_lib_dl_dlopen=yes
11346 else
11347 ac_cv_lib_dl_dlopen=no
11348 fi
11349 rm -f core conftest.err conftest.$ac_objext \
11350 conftest$ac_exeext conftest.$ac_ext
11351 LIBS=$ac_check_lib_save_LIBS
11352 fi
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11354 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11355 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11356 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11357 else
11358
11359 lt_cv_dlopen="dyld"
11360 lt_cv_dlopen_libs=
11361 lt_cv_dlopen_self=yes
11362
11363 fi
11364
11365 ;;
11366
11367 *)
11368 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11369 if test "x$ac_cv_func_shl_load" = xyes; then :
11370 lt_cv_dlopen="shl_load"
11371 else
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11373 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11374 if ${ac_cv_lib_dld_shl_load+:} false; then :
11375 $as_echo_n "(cached) " >&6
11376 else
11377 ac_check_lib_save_LIBS=$LIBS
11378 LIBS="-ldld $LIBS"
11379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11380 /* end confdefs.h. */
11381
11382 /* Override any GCC internal prototype to avoid an error.
11383 Use char because int might match the return type of a GCC
11384 builtin and then its argument prototype would still apply. */
11385 #ifdef __cplusplus
11386 extern "C"
11387 #endif
11388 char shl_load ();
11389 int
11390 main ()
11391 {
11392 return shl_load ();
11393 ;
11394 return 0;
11395 }
11396 _ACEOF
11397 if ac_fn_c_try_link "$LINENO"; then :
11398 ac_cv_lib_dld_shl_load=yes
11399 else
11400 ac_cv_lib_dld_shl_load=no
11401 fi
11402 rm -f core conftest.err conftest.$ac_objext \
11403 conftest$ac_exeext conftest.$ac_ext
11404 LIBS=$ac_check_lib_save_LIBS
11405 fi
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11407 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11408 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11409 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11410 else
11411 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11412 if test "x$ac_cv_func_dlopen" = xyes; then :
11413 lt_cv_dlopen="dlopen"
11414 else
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11416 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11417 if ${ac_cv_lib_dl_dlopen+:} false; then :
11418 $as_echo_n "(cached) " >&6
11419 else
11420 ac_check_lib_save_LIBS=$LIBS
11421 LIBS="-ldl $LIBS"
11422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11423 /* end confdefs.h. */
11424
11425 /* Override any GCC internal prototype to avoid an error.
11426 Use char because int might match the return type of a GCC
11427 builtin and then its argument prototype would still apply. */
11428 #ifdef __cplusplus
11429 extern "C"
11430 #endif
11431 char dlopen ();
11432 int
11433 main ()
11434 {
11435 return dlopen ();
11436 ;
11437 return 0;
11438 }
11439 _ACEOF
11440 if ac_fn_c_try_link "$LINENO"; then :
11441 ac_cv_lib_dl_dlopen=yes
11442 else
11443 ac_cv_lib_dl_dlopen=no
11444 fi
11445 rm -f core conftest.err conftest.$ac_objext \
11446 conftest$ac_exeext conftest.$ac_ext
11447 LIBS=$ac_check_lib_save_LIBS
11448 fi
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11450 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11451 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11452 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11453 else
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11455 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11456 if ${ac_cv_lib_svld_dlopen+:} false; then :
11457 $as_echo_n "(cached) " >&6
11458 else
11459 ac_check_lib_save_LIBS=$LIBS
11460 LIBS="-lsvld $LIBS"
11461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11462 /* end confdefs.h. */
11463
11464 /* Override any GCC internal prototype to avoid an error.
11465 Use char because int might match the return type of a GCC
11466 builtin and then its argument prototype would still apply. */
11467 #ifdef __cplusplus
11468 extern "C"
11469 #endif
11470 char dlopen ();
11471 int
11472 main ()
11473 {
11474 return dlopen ();
11475 ;
11476 return 0;
11477 }
11478 _ACEOF
11479 if ac_fn_c_try_link "$LINENO"; then :
11480 ac_cv_lib_svld_dlopen=yes
11481 else
11482 ac_cv_lib_svld_dlopen=no
11483 fi
11484 rm -f core conftest.err conftest.$ac_objext \
11485 conftest$ac_exeext conftest.$ac_ext
11486 LIBS=$ac_check_lib_save_LIBS
11487 fi
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11489 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11490 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11491 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11492 else
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11494 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11495 if ${ac_cv_lib_dld_dld_link+:} false; then :
11496 $as_echo_n "(cached) " >&6
11497 else
11498 ac_check_lib_save_LIBS=$LIBS
11499 LIBS="-ldld $LIBS"
11500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11501 /* end confdefs.h. */
11502
11503 /* Override any GCC internal prototype to avoid an error.
11504 Use char because int might match the return type of a GCC
11505 builtin and then its argument prototype would still apply. */
11506 #ifdef __cplusplus
11507 extern "C"
11508 #endif
11509 char dld_link ();
11510 int
11511 main ()
11512 {
11513 return dld_link ();
11514 ;
11515 return 0;
11516 }
11517 _ACEOF
11518 if ac_fn_c_try_link "$LINENO"; then :
11519 ac_cv_lib_dld_dld_link=yes
11520 else
11521 ac_cv_lib_dld_dld_link=no
11522 fi
11523 rm -f core conftest.err conftest.$ac_objext \
11524 conftest$ac_exeext conftest.$ac_ext
11525 LIBS=$ac_check_lib_save_LIBS
11526 fi
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11528 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11529 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11530 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11531 fi
11532
11533
11534 fi
11535
11536
11537 fi
11538
11539
11540 fi
11541
11542
11543 fi
11544
11545
11546 fi
11547
11548 ;;
11549 esac
11550
11551 if test "x$lt_cv_dlopen" != xno; then
11552 enable_dlopen=yes
11553 else
11554 enable_dlopen=no
11555 fi
11556
11557 case $lt_cv_dlopen in
11558 dlopen)
11559 save_CPPFLAGS="$CPPFLAGS"
11560 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11561
11562 save_LDFLAGS="$LDFLAGS"
11563 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11564
11565 save_LIBS="$LIBS"
11566 LIBS="$lt_cv_dlopen_libs $LIBS"
11567
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11569 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11570 if ${lt_cv_dlopen_self+:} false; then :
11571 $as_echo_n "(cached) " >&6
11572 else
11573 if test "$cross_compiling" = yes; then :
11574 lt_cv_dlopen_self=cross
11575 else
11576 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11577 lt_status=$lt_dlunknown
11578 cat > conftest.$ac_ext <<_LT_EOF
11579 #line $LINENO "configure"
11580 #include "confdefs.h"
11581
11582 #if HAVE_DLFCN_H
11583 #include <dlfcn.h>
11584 #endif
11585
11586 #include <stdio.h>
11587
11588 #ifdef RTLD_GLOBAL
11589 # define LT_DLGLOBAL RTLD_GLOBAL
11590 #else
11591 # ifdef DL_GLOBAL
11592 # define LT_DLGLOBAL DL_GLOBAL
11593 # else
11594 # define LT_DLGLOBAL 0
11595 # endif
11596 #endif
11597
11598 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11599 find out it does not work in some platform. */
11600 #ifndef LT_DLLAZY_OR_NOW
11601 # ifdef RTLD_LAZY
11602 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11603 # else
11604 # ifdef DL_LAZY
11605 # define LT_DLLAZY_OR_NOW DL_LAZY
11606 # else
11607 # ifdef RTLD_NOW
11608 # define LT_DLLAZY_OR_NOW RTLD_NOW
11609 # else
11610 # ifdef DL_NOW
11611 # define LT_DLLAZY_OR_NOW DL_NOW
11612 # else
11613 # define LT_DLLAZY_OR_NOW 0
11614 # endif
11615 # endif
11616 # endif
11617 # endif
11618 #endif
11619
11620 /* When -fvisbility=hidden is used, assume the code has been annotated
11621 correspondingly for the symbols needed. */
11622 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11623 int fnord () __attribute__((visibility("default")));
11624 #endif
11625
11626 int fnord () { return 42; }
11627 int main ()
11628 {
11629 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11630 int status = $lt_dlunknown;
11631
11632 if (self)
11633 {
11634 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11635 else
11636 {
11637 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11638 else puts (dlerror ());
11639 }
11640 /* dlclose (self); */
11641 }
11642 else
11643 puts (dlerror ());
11644
11645 return status;
11646 }
11647 _LT_EOF
11648 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11649 (eval $ac_link) 2>&5
11650 ac_status=$?
11651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11652 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11653 (./conftest; exit; ) >&5 2>/dev/null
11654 lt_status=$?
11655 case x$lt_status in
11656 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11657 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11658 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11659 esac
11660 else :
11661 # compilation failed
11662 lt_cv_dlopen_self=no
11663 fi
11664 fi
11665 rm -fr conftest*
11666
11667
11668 fi
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11670 $as_echo "$lt_cv_dlopen_self" >&6; }
11671
11672 if test "x$lt_cv_dlopen_self" = xyes; then
11673 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11675 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11676 if ${lt_cv_dlopen_self_static+:} false; then :
11677 $as_echo_n "(cached) " >&6
11678 else
11679 if test "$cross_compiling" = yes; then :
11680 lt_cv_dlopen_self_static=cross
11681 else
11682 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11683 lt_status=$lt_dlunknown
11684 cat > conftest.$ac_ext <<_LT_EOF
11685 #line $LINENO "configure"
11686 #include "confdefs.h"
11687
11688 #if HAVE_DLFCN_H
11689 #include <dlfcn.h>
11690 #endif
11691
11692 #include <stdio.h>
11693
11694 #ifdef RTLD_GLOBAL
11695 # define LT_DLGLOBAL RTLD_GLOBAL
11696 #else
11697 # ifdef DL_GLOBAL
11698 # define LT_DLGLOBAL DL_GLOBAL
11699 # else
11700 # define LT_DLGLOBAL 0
11701 # endif
11702 #endif
11703
11704 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11705 find out it does not work in some platform. */
11706 #ifndef LT_DLLAZY_OR_NOW
11707 # ifdef RTLD_LAZY
11708 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11709 # else
11710 # ifdef DL_LAZY
11711 # define LT_DLLAZY_OR_NOW DL_LAZY
11712 # else
11713 # ifdef RTLD_NOW
11714 # define LT_DLLAZY_OR_NOW RTLD_NOW
11715 # else
11716 # ifdef DL_NOW
11717 # define LT_DLLAZY_OR_NOW DL_NOW
11718 # else
11719 # define LT_DLLAZY_OR_NOW 0
11720 # endif
11721 # endif
11722 # endif
11723 # endif
11724 #endif
11725
11726 /* When -fvisbility=hidden is used, assume the code has been annotated
11727 correspondingly for the symbols needed. */
11728 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11729 int fnord () __attribute__((visibility("default")));
11730 #endif
11731
11732 int fnord () { return 42; }
11733 int main ()
11734 {
11735 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11736 int status = $lt_dlunknown;
11737
11738 if (self)
11739 {
11740 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11741 else
11742 {
11743 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11744 else puts (dlerror ());
11745 }
11746 /* dlclose (self); */
11747 }
11748 else
11749 puts (dlerror ());
11750
11751 return status;
11752 }
11753 _LT_EOF
11754 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11755 (eval $ac_link) 2>&5
11756 ac_status=$?
11757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11758 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11759 (./conftest; exit; ) >&5 2>/dev/null
11760 lt_status=$?
11761 case x$lt_status in
11762 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11763 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11764 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11765 esac
11766 else :
11767 # compilation failed
11768 lt_cv_dlopen_self_static=no
11769 fi
11770 fi
11771 rm -fr conftest*
11772
11773
11774 fi
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11776 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11777 fi
11778
11779 CPPFLAGS="$save_CPPFLAGS"
11780 LDFLAGS="$save_LDFLAGS"
11781 LIBS="$save_LIBS"
11782 ;;
11783 esac
11784
11785 case $lt_cv_dlopen_self in
11786 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11787 *) enable_dlopen_self=unknown ;;
11788 esac
11789
11790 case $lt_cv_dlopen_self_static in
11791 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11792 *) enable_dlopen_self_static=unknown ;;
11793 esac
11794 fi
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812 striplib=
11813 old_striplib=
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11815 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11816 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11817 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11818 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11820 $as_echo "yes" >&6; }
11821 else
11822 # FIXME - insert some real tests, host_os isn't really good enough
11823 case $host_os in
11824 darwin*)
11825 if test -n "$STRIP" ; then
11826 striplib="$STRIP -x"
11827 old_striplib="$STRIP -S"
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11829 $as_echo "yes" >&6; }
11830 else
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11832 $as_echo "no" >&6; }
11833 fi
11834 ;;
11835 *)
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11837 $as_echo "no" >&6; }
11838 ;;
11839 esac
11840 fi
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853 # Report which library types will actually be built
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11855 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11857 $as_echo "$can_build_shared" >&6; }
11858
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11860 $as_echo_n "checking whether to build shared libraries... " >&6; }
11861 test "$can_build_shared" = "no" && enable_shared=no
11862
11863 # On AIX, shared libraries and static libraries use the same namespace, and
11864 # are all built from PIC.
11865 case $host_os in
11866 aix3*)
11867 test "$enable_shared" = yes && enable_static=no
11868 if test -n "$RANLIB"; then
11869 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11870 postinstall_cmds='$RANLIB $lib'
11871 fi
11872 ;;
11873
11874 aix[4-9]*)
11875 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11876 test "$enable_shared" = yes && enable_static=no
11877 fi
11878 ;;
11879 esac
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11881 $as_echo "$enable_shared" >&6; }
11882
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11884 $as_echo_n "checking whether to build static libraries... " >&6; }
11885 # Make sure either enable_shared or enable_static is yes.
11886 test "$enable_shared" = yes || enable_static=yes
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11888 $as_echo "$enable_static" >&6; }
11889
11890
11891
11892
11893 fi
11894 ac_ext=c
11895 ac_cpp='$CPP $CPPFLAGS'
11896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11899
11900 CC="$lt_save_CC"
11901
11902 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11903 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11904 (test "X$CXX" != "Xg++"))) ; then
11905 ac_ext=cpp
11906 ac_cpp='$CXXCPP $CPPFLAGS'
11907 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11908 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11909 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11911 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11912 if test -z "$CXXCPP"; then
11913 if ${ac_cv_prog_CXXCPP+:} false; then :
11914 $as_echo_n "(cached) " >&6
11915 else
11916 # Double quotes because CXXCPP needs to be expanded
11917 for CXXCPP in "$CXX -E" "/lib/cpp"
11918 do
11919 ac_preproc_ok=false
11920 for ac_cxx_preproc_warn_flag in '' yes
11921 do
11922 # Use a header file that comes with gcc, so configuring glibc
11923 # with a fresh cross-compiler works.
11924 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11925 # <limits.h> exists even on freestanding compilers.
11926 # On the NeXT, cc -E runs the code through the compiler's parser,
11927 # not just through cpp. "Syntax error" is here to catch this case.
11928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11929 /* end confdefs.h. */
11930 #ifdef __STDC__
11931 # include <limits.h>
11932 #else
11933 # include <assert.h>
11934 #endif
11935 Syntax error
11936 _ACEOF
11937 if ac_fn_cxx_try_cpp "$LINENO"; then :
11938
11939 else
11940 # Broken: fails on valid input.
11941 continue
11942 fi
11943 rm -f conftest.err conftest.i conftest.$ac_ext
11944
11945 # OK, works on sane cases. Now check whether nonexistent headers
11946 # can be detected and how.
11947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11948 /* end confdefs.h. */
11949 #include <ac_nonexistent.h>
11950 _ACEOF
11951 if ac_fn_cxx_try_cpp "$LINENO"; then :
11952 # Broken: success on invalid input.
11953 continue
11954 else
11955 # Passes both tests.
11956 ac_preproc_ok=:
11957 break
11958 fi
11959 rm -f conftest.err conftest.i conftest.$ac_ext
11960
11961 done
11962 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11963 rm -f conftest.i conftest.err conftest.$ac_ext
11964 if $ac_preproc_ok; then :
11965 break
11966 fi
11967
11968 done
11969 ac_cv_prog_CXXCPP=$CXXCPP
11970
11971 fi
11972 CXXCPP=$ac_cv_prog_CXXCPP
11973 else
11974 ac_cv_prog_CXXCPP=$CXXCPP
11975 fi
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11977 $as_echo "$CXXCPP" >&6; }
11978 ac_preproc_ok=false
11979 for ac_cxx_preproc_warn_flag in '' yes
11980 do
11981 # Use a header file that comes with gcc, so configuring glibc
11982 # with a fresh cross-compiler works.
11983 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11984 # <limits.h> exists even on freestanding compilers.
11985 # On the NeXT, cc -E runs the code through the compiler's parser,
11986 # not just through cpp. "Syntax error" is here to catch this case.
11987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11988 /* end confdefs.h. */
11989 #ifdef __STDC__
11990 # include <limits.h>
11991 #else
11992 # include <assert.h>
11993 #endif
11994 Syntax error
11995 _ACEOF
11996 if ac_fn_cxx_try_cpp "$LINENO"; then :
11997
11998 else
11999 # Broken: fails on valid input.
12000 continue
12001 fi
12002 rm -f conftest.err conftest.i conftest.$ac_ext
12003
12004 # OK, works on sane cases. Now check whether nonexistent headers
12005 # can be detected and how.
12006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12007 /* end confdefs.h. */
12008 #include <ac_nonexistent.h>
12009 _ACEOF
12010 if ac_fn_cxx_try_cpp "$LINENO"; then :
12011 # Broken: success on invalid input.
12012 continue
12013 else
12014 # Passes both tests.
12015 ac_preproc_ok=:
12016 break
12017 fi
12018 rm -f conftest.err conftest.i conftest.$ac_ext
12019
12020 done
12021 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12022 rm -f conftest.i conftest.err conftest.$ac_ext
12023 if $ac_preproc_ok; then :
12024
12025 else
12026 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12027 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12028 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12029 See \`config.log' for more details" "$LINENO" 5; }
12030 fi
12031
12032 ac_ext=c
12033 ac_cpp='$CPP $CPPFLAGS'
12034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12037
12038 else
12039 _lt_caught_CXX_error=yes
12040 fi
12041
12042 ac_ext=cpp
12043 ac_cpp='$CXXCPP $CPPFLAGS'
12044 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12045 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12046 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12047
12048 archive_cmds_need_lc_CXX=no
12049 allow_undefined_flag_CXX=
12050 always_export_symbols_CXX=no
12051 archive_expsym_cmds_CXX=
12052 compiler_needs_object_CXX=no
12053 export_dynamic_flag_spec_CXX=
12054 hardcode_direct_CXX=no
12055 hardcode_direct_absolute_CXX=no
12056 hardcode_libdir_flag_spec_CXX=
12057 hardcode_libdir_separator_CXX=
12058 hardcode_minus_L_CXX=no
12059 hardcode_shlibpath_var_CXX=unsupported
12060 hardcode_automatic_CXX=no
12061 inherit_rpath_CXX=no
12062 module_cmds_CXX=
12063 module_expsym_cmds_CXX=
12064 link_all_deplibs_CXX=unknown
12065 old_archive_cmds_CXX=$old_archive_cmds
12066 reload_flag_CXX=$reload_flag
12067 reload_cmds_CXX=$reload_cmds
12068 no_undefined_flag_CXX=
12069 whole_archive_flag_spec_CXX=
12070 enable_shared_with_static_runtimes_CXX=no
12071
12072 # Source file extension for C++ test sources.
12073 ac_ext=cpp
12074
12075 # Object file extension for compiled C++ test sources.
12076 objext=o
12077 objext_CXX=$objext
12078
12079 # No sense in running all these tests if we already determined that
12080 # the CXX compiler isn't working. Some variables (like enable_shared)
12081 # are currently assumed to apply to all compilers on this platform,
12082 # and will be corrupted by setting them based on a non-working compiler.
12083 if test "$_lt_caught_CXX_error" != yes; then
12084 # Code to be used in simple compile tests
12085 lt_simple_compile_test_code="int some_variable = 0;"
12086
12087 # Code to be used in simple link tests
12088 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12089
12090 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12091
12092
12093
12094
12095
12096
12097 # If no C compiler was specified, use CC.
12098 LTCC=${LTCC-"$CC"}
12099
12100 # If no C compiler flags were specified, use CFLAGS.
12101 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12102
12103 # Allow CC to be a program name with arguments.
12104 compiler=$CC
12105
12106
12107 # save warnings/boilerplate of simple test code
12108 ac_outfile=conftest.$ac_objext
12109 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12110 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12111 _lt_compiler_boilerplate=`cat conftest.err`
12112 $RM conftest*
12113
12114 ac_outfile=conftest.$ac_objext
12115 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12116 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12117 _lt_linker_boilerplate=`cat conftest.err`
12118 $RM -r conftest*
12119
12120
12121 # Allow CC to be a program name with arguments.
12122 lt_save_CC=$CC
12123 lt_save_CFLAGS=$CFLAGS
12124 lt_save_LD=$LD
12125 lt_save_GCC=$GCC
12126 GCC=$GXX
12127 lt_save_with_gnu_ld=$with_gnu_ld
12128 lt_save_path_LD=$lt_cv_path_LD
12129 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12130 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12131 else
12132 $as_unset lt_cv_prog_gnu_ld
12133 fi
12134 if test -n "${lt_cv_path_LDCXX+set}"; then
12135 lt_cv_path_LD=$lt_cv_path_LDCXX
12136 else
12137 $as_unset lt_cv_path_LD
12138 fi
12139 test -z "${LDCXX+set}" || LD=$LDCXX
12140 CC=${CXX-"c++"}
12141 CFLAGS=$CXXFLAGS
12142 compiler=$CC
12143 compiler_CXX=$CC
12144 for cc_temp in $compiler""; do
12145 case $cc_temp in
12146 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12147 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12148 \-*) ;;
12149 *) break;;
12150 esac
12151 done
12152 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12153
12154
12155 if test -n "$compiler"; then
12156 # We don't want -fno-exception when compiling C++ code, so set the
12157 # no_builtin_flag separately
12158 if test "$GXX" = yes; then
12159 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12160 else
12161 lt_prog_compiler_no_builtin_flag_CXX=
12162 fi
12163
12164 if test "$GXX" = yes; then
12165 # Set up default GNU C++ configuration
12166
12167
12168
12169 # Check whether --with-gnu-ld was given.
12170 if test "${with_gnu_ld+set}" = set; then :
12171 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12172 else
12173 with_gnu_ld=no
12174 fi
12175
12176 ac_prog=ld
12177 if test "$GCC" = yes; then
12178 # Check if gcc -print-prog-name=ld gives a path.
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12180 $as_echo_n "checking for ld used by $CC... " >&6; }
12181 case $host in
12182 *-*-mingw*)
12183 # gcc leaves a trailing carriage return which upsets mingw
12184 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12185 *)
12186 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12187 esac
12188 case $ac_prog in
12189 # Accept absolute paths.
12190 [\\/]* | ?:[\\/]*)
12191 re_direlt='/[^/][^/]*/\.\./'
12192 # Canonicalize the pathname of ld
12193 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12194 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12195 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12196 done
12197 test -z "$LD" && LD="$ac_prog"
12198 ;;
12199 "")
12200 # If it fails, then pretend we aren't using GCC.
12201 ac_prog=ld
12202 ;;
12203 *)
12204 # If it is relative, then search for the first ld in PATH.
12205 with_gnu_ld=unknown
12206 ;;
12207 esac
12208 elif test "$with_gnu_ld" = yes; then
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12210 $as_echo_n "checking for GNU ld... " >&6; }
12211 else
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12213 $as_echo_n "checking for non-GNU ld... " >&6; }
12214 fi
12215 if ${lt_cv_path_LD+:} false; then :
12216 $as_echo_n "(cached) " >&6
12217 else
12218 if test -z "$LD"; then
12219 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12220 for ac_dir in $PATH; do
12221 IFS="$lt_save_ifs"
12222 test -z "$ac_dir" && ac_dir=.
12223 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12224 lt_cv_path_LD="$ac_dir/$ac_prog"
12225 # Check to see if the program is GNU ld. I'd rather use --version,
12226 # but apparently some variants of GNU ld only accept -v.
12227 # Break only if it was the GNU/non-GNU ld that we prefer.
12228 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12229 *GNU* | *'with BFD'*)
12230 test "$with_gnu_ld" != no && break
12231 ;;
12232 *)
12233 test "$with_gnu_ld" != yes && break
12234 ;;
12235 esac
12236 fi
12237 done
12238 IFS="$lt_save_ifs"
12239 else
12240 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12241 fi
12242 fi
12243
12244 LD="$lt_cv_path_LD"
12245 if test -n "$LD"; then
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12247 $as_echo "$LD" >&6; }
12248 else
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12250 $as_echo "no" >&6; }
12251 fi
12252 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12254 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12255 if ${lt_cv_prog_gnu_ld+:} false; then :
12256 $as_echo_n "(cached) " >&6
12257 else
12258 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12259 case `$LD -v 2>&1 </dev/null` in
12260 *GNU* | *'with BFD'*)
12261 lt_cv_prog_gnu_ld=yes
12262 ;;
12263 *)
12264 lt_cv_prog_gnu_ld=no
12265 ;;
12266 esac
12267 fi
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12269 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12270 with_gnu_ld=$lt_cv_prog_gnu_ld
12271
12272
12273
12274
12275
12276
12277
12278 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12279 # archiving commands below assume that GNU ld is being used.
12280 if test "$with_gnu_ld" = yes; then
12281 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12282 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'
12283
12284 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12285 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12286
12287 # If archive_cmds runs LD, not CC, wlarc should be empty
12288 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12289 # investigate it a little bit more. (MM)
12290 wlarc='${wl}'
12291
12292 # ancient GNU ld didn't support --whole-archive et. al.
12293 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12294 $GREP 'no-whole-archive' > /dev/null; then
12295 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12296 else
12297 whole_archive_flag_spec_CXX=
12298 fi
12299 else
12300 with_gnu_ld=no
12301 wlarc=
12302
12303 # A generic and very simple default shared library creation
12304 # command for GNU C++ for the case where it uses the native
12305 # linker, instead of GNU ld. If possible, this setting should
12306 # overridden to take advantage of the native linker features on
12307 # the platform it is being used on.
12308 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12309 fi
12310
12311 # Commands to make compiler produce verbose output that lists
12312 # what "hidden" libraries, object files and flags are used when
12313 # linking a shared library.
12314 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12315
12316 else
12317 GXX=no
12318 with_gnu_ld=no
12319 wlarc=
12320 fi
12321
12322 # PORTME: fill in a description of your system's C++ link characteristics
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12324 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12325 ld_shlibs_CXX=yes
12326 case $host_os in
12327 aix3*)
12328 # FIXME: insert proper C++ library support
12329 ld_shlibs_CXX=no
12330 ;;
12331 aix[4-9]*)
12332 if test "$host_cpu" = ia64; then
12333 # On IA64, the linker does run time linking by default, so we don't
12334 # have to do anything special.
12335 aix_use_runtimelinking=no
12336 exp_sym_flag='-Bexport'
12337 no_entry_flag=""
12338 else
12339 aix_use_runtimelinking=no
12340
12341 # Test if we are trying to use run time linking or normal
12342 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12343 # need to do runtime linking.
12344 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12345 for ld_flag in $LDFLAGS; do
12346 case $ld_flag in
12347 *-brtl*)
12348 aix_use_runtimelinking=yes
12349 break
12350 ;;
12351 esac
12352 done
12353 ;;
12354 esac
12355
12356 exp_sym_flag='-bexport'
12357 no_entry_flag='-bnoentry'
12358 fi
12359
12360 # When large executables or shared objects are built, AIX ld can
12361 # have problems creating the table of contents. If linking a library
12362 # or program results in "error TOC overflow" add -mminimal-toc to
12363 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12364 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12365
12366 archive_cmds_CXX=''
12367 hardcode_direct_CXX=yes
12368 hardcode_direct_absolute_CXX=yes
12369 hardcode_libdir_separator_CXX=':'
12370 link_all_deplibs_CXX=yes
12371 file_list_spec_CXX='${wl}-f,'
12372
12373 if test "$GXX" = yes; then
12374 case $host_os in aix4.[012]|aix4.[012].*)
12375 # We only want to do this on AIX 4.2 and lower, the check
12376 # below for broken collect2 doesn't work under 4.3+
12377 collect2name=`${CC} -print-prog-name=collect2`
12378 if test -f "$collect2name" &&
12379 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12380 then
12381 # We have reworked collect2
12382 :
12383 else
12384 # We have old collect2
12385 hardcode_direct_CXX=unsupported
12386 # It fails to find uninstalled libraries when the uninstalled
12387 # path is not listed in the libpath. Setting hardcode_minus_L
12388 # to unsupported forces relinking
12389 hardcode_minus_L_CXX=yes
12390 hardcode_libdir_flag_spec_CXX='-L$libdir'
12391 hardcode_libdir_separator_CXX=
12392 fi
12393 esac
12394 shared_flag='-shared'
12395 if test "$aix_use_runtimelinking" = yes; then
12396 shared_flag="$shared_flag "'${wl}-G'
12397 fi
12398 else
12399 # not using gcc
12400 if test "$host_cpu" = ia64; then
12401 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12402 # chokes on -Wl,-G. The following line is correct:
12403 shared_flag='-G'
12404 else
12405 if test "$aix_use_runtimelinking" = yes; then
12406 shared_flag='${wl}-G'
12407 else
12408 shared_flag='${wl}-bM:SRE'
12409 fi
12410 fi
12411 fi
12412
12413 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12414 # It seems that -bexpall does not export symbols beginning with
12415 # underscore (_), so it is better to generate a list of symbols to
12416 # export.
12417 always_export_symbols_CXX=yes
12418 if test "$aix_use_runtimelinking" = yes; then
12419 # Warning - without using the other runtime loading flags (-brtl),
12420 # -berok will link without error, but may produce a broken library.
12421 allow_undefined_flag_CXX='-berok'
12422 # Determine the default libpath from the value encoded in an empty
12423 # executable.
12424 if test "${lt_cv_aix_libpath+set}" = set; then
12425 aix_libpath=$lt_cv_aix_libpath
12426 else
12427 if ${lt_cv_aix_libpath__CXX+:} false; then :
12428 $as_echo_n "(cached) " >&6
12429 else
12430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12431 /* end confdefs.h. */
12432
12433 int
12434 main ()
12435 {
12436
12437 ;
12438 return 0;
12439 }
12440 _ACEOF
12441 if ac_fn_cxx_try_link "$LINENO"; then :
12442
12443 lt_aix_libpath_sed='
12444 /Import File Strings/,/^$/ {
12445 /^0/ {
12446 s/^0 *\([^ ]*\) *$/\1/
12447 p
12448 }
12449 }'
12450 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12451 # Check for a 64-bit object if we didn't find anything.
12452 if test -z "$lt_cv_aix_libpath__CXX"; then
12453 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12454 fi
12455 fi
12456 rm -f core conftest.err conftest.$ac_objext \
12457 conftest$ac_exeext conftest.$ac_ext
12458 if test -z "$lt_cv_aix_libpath__CXX"; then
12459 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12460 fi
12461
12462 fi
12463
12464 aix_libpath=$lt_cv_aix_libpath__CXX
12465 fi
12466
12467 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12468
12469 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"
12470 else
12471 if test "$host_cpu" = ia64; then
12472 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12473 allow_undefined_flag_CXX="-z nodefs"
12474 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"
12475 else
12476 # Determine the default libpath from the value encoded in an
12477 # empty executable.
12478 if test "${lt_cv_aix_libpath+set}" = set; then
12479 aix_libpath=$lt_cv_aix_libpath
12480 else
12481 if ${lt_cv_aix_libpath__CXX+:} false; then :
12482 $as_echo_n "(cached) " >&6
12483 else
12484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12485 /* end confdefs.h. */
12486
12487 int
12488 main ()
12489 {
12490
12491 ;
12492 return 0;
12493 }
12494 _ACEOF
12495 if ac_fn_cxx_try_link "$LINENO"; then :
12496
12497 lt_aix_libpath_sed='
12498 /Import File Strings/,/^$/ {
12499 /^0/ {
12500 s/^0 *\([^ ]*\) *$/\1/
12501 p
12502 }
12503 }'
12504 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12505 # Check for a 64-bit object if we didn't find anything.
12506 if test -z "$lt_cv_aix_libpath__CXX"; then
12507 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12508 fi
12509 fi
12510 rm -f core conftest.err conftest.$ac_objext \
12511 conftest$ac_exeext conftest.$ac_ext
12512 if test -z "$lt_cv_aix_libpath__CXX"; then
12513 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12514 fi
12515
12516 fi
12517
12518 aix_libpath=$lt_cv_aix_libpath__CXX
12519 fi
12520
12521 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12522 # Warning - without using the other run time loading flags,
12523 # -berok will link without error, but may produce a broken library.
12524 no_undefined_flag_CXX=' ${wl}-bernotok'
12525 allow_undefined_flag_CXX=' ${wl}-berok'
12526 if test "$with_gnu_ld" = yes; then
12527 # We only use this code for GNU lds that support --whole-archive.
12528 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12529 else
12530 # Exported symbols can be pulled into shared objects from archives
12531 whole_archive_flag_spec_CXX='$convenience'
12532 fi
12533 archive_cmds_need_lc_CXX=yes
12534 # This is similar to how AIX traditionally builds its shared
12535 # libraries.
12536 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'
12537 fi
12538 fi
12539 ;;
12540
12541 beos*)
12542 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12543 allow_undefined_flag_CXX=unsupported
12544 # Joseph Beckenbach <[email protected]> says some releases of gcc
12545 # support --undefined. This deserves some investigation. FIXME
12546 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12547 else
12548 ld_shlibs_CXX=no
12549 fi
12550 ;;
12551
12552 chorus*)
12553 case $cc_basename in
12554 *)
12555 # FIXME: insert proper C++ library support
12556 ld_shlibs_CXX=no
12557 ;;
12558 esac
12559 ;;
12560
12561 cygwin* | mingw* | pw32* | cegcc*)
12562 case $GXX,$cc_basename in
12563 ,cl* | no,cl*)
12564 # Native MSVC
12565 # hardcode_libdir_flag_spec is actually meaningless, as there is
12566 # no search path for DLLs.
12567 hardcode_libdir_flag_spec_CXX=' '
12568 allow_undefined_flag_CXX=unsupported
12569 always_export_symbols_CXX=yes
12570 file_list_spec_CXX='@'
12571 # Tell ltmain to make .lib files, not .a files.
12572 libext=lib
12573 # Tell ltmain to make .dll files, not .so files.
12574 shrext_cmds=".dll"
12575 # FIXME: Setting linknames here is a bad hack.
12576 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12577 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12578 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12579 else
12580 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12581 fi~
12582 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12583 linknames='
12584 # The linker will not automatically build a static lib if we build a DLL.
12585 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12586 enable_shared_with_static_runtimes_CXX=yes
12587 # Don't use ranlib
12588 old_postinstall_cmds_CXX='chmod 644 $oldlib'
12589 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12590 lt_tool_outputfile="@TOOL_OUTPUT@"~
12591 case $lt_outputfile in
12592 *.exe|*.EXE) ;;
12593 *)
12594 lt_outputfile="$lt_outputfile.exe"
12595 lt_tool_outputfile="$lt_tool_outputfile.exe"
12596 ;;
12597 esac~
12598 func_to_tool_file "$lt_outputfile"~
12599 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12600 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12601 $RM "$lt_outputfile.manifest";
12602 fi'
12603 ;;
12604 *)
12605 # g++
12606 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12607 # as there is no search path for DLLs.
12608 hardcode_libdir_flag_spec_CXX='-L$libdir'
12609 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12610 allow_undefined_flag_CXX=unsupported
12611 always_export_symbols_CXX=no
12612 enable_shared_with_static_runtimes_CXX=yes
12613
12614 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12615 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'
12616 # If the export-symbols file already is a .def file (1st line
12617 # is EXPORTS), use it as is; otherwise, prepend...
12618 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12619 cp $export_symbols $output_objdir/$soname.def;
12620 else
12621 echo EXPORTS > $output_objdir/$soname.def;
12622 cat $export_symbols >> $output_objdir/$soname.def;
12623 fi~
12624 $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'
12625 else
12626 ld_shlibs_CXX=no
12627 fi
12628 ;;
12629 esac
12630 ;;
12631 darwin* | rhapsody*)
12632
12633
12634 archive_cmds_need_lc_CXX=no
12635 hardcode_direct_CXX=no
12636 hardcode_automatic_CXX=yes
12637 hardcode_shlibpath_var_CXX=unsupported
12638 if test "$lt_cv_ld_force_load" = "yes"; then
12639 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\"`'
12640
12641 else
12642 whole_archive_flag_spec_CXX=''
12643 fi
12644 link_all_deplibs_CXX=yes
12645 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12646 case $cc_basename in
12647 ifort*) _lt_dar_can_shared=yes ;;
12648 *) _lt_dar_can_shared=$GCC ;;
12649 esac
12650 if test "$_lt_dar_can_shared" = "yes"; then
12651 output_verbose_link_cmd=func_echo_all
12652 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}"
12653 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12654 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}"
12655 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}"
12656 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12657 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}"
12658 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}"
12659 fi
12660
12661 else
12662 ld_shlibs_CXX=no
12663 fi
12664
12665 ;;
12666
12667 dgux*)
12668 case $cc_basename in
12669 ec++*)
12670 # FIXME: insert proper C++ library support
12671 ld_shlibs_CXX=no
12672 ;;
12673 ghcx*)
12674 # Green Hills C++ Compiler
12675 # FIXME: insert proper C++ library support
12676 ld_shlibs_CXX=no
12677 ;;
12678 *)
12679 # FIXME: insert proper C++ library support
12680 ld_shlibs_CXX=no
12681 ;;
12682 esac
12683 ;;
12684
12685 freebsd2.*)
12686 # C++ shared libraries reported to be fairly broken before
12687 # switch to ELF
12688 ld_shlibs_CXX=no
12689 ;;
12690
12691 freebsd-elf*)
12692 archive_cmds_need_lc_CXX=no
12693 ;;
12694
12695 freebsd* | dragonfly*)
12696 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12697 # conventions
12698 ld_shlibs_CXX=yes
12699 ;;
12700
12701 gnu*)
12702 ;;
12703
12704 haiku*)
12705 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12706 link_all_deplibs_CXX=yes
12707 ;;
12708
12709 hpux9*)
12710 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12711 hardcode_libdir_separator_CXX=:
12712 export_dynamic_flag_spec_CXX='${wl}-E'
12713 hardcode_direct_CXX=yes
12714 hardcode_minus_L_CXX=yes # Not in the search PATH,
12715 # but as the default
12716 # location of the library.
12717
12718 case $cc_basename in
12719 CC*)
12720 # FIXME: insert proper C++ library support
12721 ld_shlibs_CXX=no
12722 ;;
12723 aCC*)
12724 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'
12725 # Commands to make compiler produce verbose output that lists
12726 # what "hidden" libraries, object files and flags are used when
12727 # linking a shared library.
12728 #
12729 # There doesn't appear to be a way to prevent this compiler from
12730 # explicitly linking system object files so we need to strip them
12731 # from the output so that they don't get included in the library
12732 # dependencies.
12733 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"'
12734 ;;
12735 *)
12736 if test "$GXX" = yes; then
12737 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'
12738 else
12739 # FIXME: insert proper C++ library support
12740 ld_shlibs_CXX=no
12741 fi
12742 ;;
12743 esac
12744 ;;
12745
12746 hpux10*|hpux11*)
12747 if test $with_gnu_ld = no; then
12748 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12749 hardcode_libdir_separator_CXX=:
12750
12751 case $host_cpu in
12752 hppa*64*|ia64*)
12753 ;;
12754 *)
12755 export_dynamic_flag_spec_CXX='${wl}-E'
12756 ;;
12757 esac
12758 fi
12759 case $host_cpu in
12760 hppa*64*|ia64*)
12761 hardcode_direct_CXX=no
12762 hardcode_shlibpath_var_CXX=no
12763 ;;
12764 *)
12765 hardcode_direct_CXX=yes
12766 hardcode_direct_absolute_CXX=yes
12767 hardcode_minus_L_CXX=yes # Not in the search PATH,
12768 # but as the default
12769 # location of the library.
12770 ;;
12771 esac
12772
12773 case $cc_basename in
12774 CC*)
12775 # FIXME: insert proper C++ library support
12776 ld_shlibs_CXX=no
12777 ;;
12778 aCC*)
12779 case $host_cpu in
12780 hppa*64*)
12781 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12782 ;;
12783 ia64*)
12784 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12785 ;;
12786 *)
12787 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12788 ;;
12789 esac
12790 # Commands to make compiler produce verbose output that lists
12791 # what "hidden" libraries, object files and flags are used when
12792 # linking a shared library.
12793 #
12794 # There doesn't appear to be a way to prevent this compiler from
12795 # explicitly linking system object files so we need to strip them
12796 # from the output so that they don't get included in the library
12797 # dependencies.
12798 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"'
12799 ;;
12800 *)
12801 if test "$GXX" = yes; then
12802 if test $with_gnu_ld = no; then
12803 case $host_cpu in
12804 hppa*64*)
12805 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12806 ;;
12807 ia64*)
12808 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12809 ;;
12810 *)
12811 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'
12812 ;;
12813 esac
12814 fi
12815 else
12816 # FIXME: insert proper C++ library support
12817 ld_shlibs_CXX=no
12818 fi
12819 ;;
12820 esac
12821 ;;
12822
12823 interix[3-9]*)
12824 hardcode_direct_CXX=no
12825 hardcode_shlibpath_var_CXX=no
12826 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12827 export_dynamic_flag_spec_CXX='${wl}-E'
12828 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12829 # Instead, shared libraries are loaded at an image base (0x10000000 by
12830 # default) and relocated if they conflict, which is a slow very memory
12831 # consuming and fragmenting process. To avoid this, we pick a random,
12832 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12833 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12834 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'
12835 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'
12836 ;;
12837 irix5* | irix6*)
12838 case $cc_basename in
12839 CC*)
12840 # SGI C++
12841 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'
12842
12843 # Archives containing C++ object files must be created using
12844 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12845 # necessary to make sure instantiated templates are included
12846 # in the archive.
12847 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12848 ;;
12849 *)
12850 if test "$GXX" = yes; then
12851 if test "$with_gnu_ld" = no; then
12852 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'
12853 else
12854 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'
12855 fi
12856 fi
12857 link_all_deplibs_CXX=yes
12858 ;;
12859 esac
12860 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12861 hardcode_libdir_separator_CXX=:
12862 inherit_rpath_CXX=yes
12863 ;;
12864
12865 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12866 case $cc_basename in
12867 KCC*)
12868 # Kuck and Associates, Inc. (KAI) C++ Compiler
12869
12870 # KCC will only create a shared library if the output file
12871 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12872 # to its proper name (with version) after linking.
12873 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'
12874 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'
12875 # Commands to make compiler produce verbose output that lists
12876 # what "hidden" libraries, object files and flags are used when
12877 # linking a shared library.
12878 #
12879 # There doesn't appear to be a way to prevent this compiler from
12880 # explicitly linking system object files so we need to strip them
12881 # from the output so that they don't get included in the library
12882 # dependencies.
12883 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"'
12884
12885 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12886 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12887
12888 # Archives containing C++ object files must be created using
12889 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12890 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12891 ;;
12892 icpc* | ecpc* )
12893 # Intel C++
12894 with_gnu_ld=yes
12895 # version 8.0 and above of icpc choke on multiply defined symbols
12896 # if we add $predep_objects and $postdep_objects, however 7.1 and
12897 # earlier do not add the objects themselves.
12898 case `$CC -V 2>&1` in
12899 *"Version 7."*)
12900 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12901 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'
12902 ;;
12903 *) # Version 8.0 or newer
12904 tmp_idyn=
12905 case $host_cpu in
12906 ia64*) tmp_idyn=' -i_dynamic';;
12907 esac
12908 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12909 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'
12910 ;;
12911 esac
12912 archive_cmds_need_lc_CXX=no
12913 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12914 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12915 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12916 ;;
12917 pgCC* | pgcpp*)
12918 # Portland Group C++ compiler
12919 case `$CC -V` in
12920 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12921 prelink_cmds_CXX='tpldir=Template.dir~
12922 rm -rf $tpldir~
12923 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12924 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12925 old_archive_cmds_CXX='tpldir=Template.dir~
12926 rm -rf $tpldir~
12927 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12928 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12929 $RANLIB $oldlib'
12930 archive_cmds_CXX='tpldir=Template.dir~
12931 rm -rf $tpldir~
12932 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12933 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12934 archive_expsym_cmds_CXX='tpldir=Template.dir~
12935 rm -rf $tpldir~
12936 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12937 $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'
12938 ;;
12939 *) # Version 6 and above use weak symbols
12940 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12941 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'
12942 ;;
12943 esac
12944
12945 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12946 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12947 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'
12948 ;;
12949 cxx*)
12950 # Compaq C++
12951 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12952 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'
12953
12954 runpath_var=LD_RUN_PATH
12955 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12956 hardcode_libdir_separator_CXX=:
12957
12958 # Commands to make compiler produce verbose output that lists
12959 # what "hidden" libraries, object files and flags are used when
12960 # linking a shared library.
12961 #
12962 # There doesn't appear to be a way to prevent this compiler from
12963 # explicitly linking system object files so we need to strip them
12964 # from the output so that they don't get included in the library
12965 # dependencies.
12966 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'
12967 ;;
12968 xl* | mpixl* | bgxl*)
12969 # IBM XL 8.0 on PPC, with GNU ld
12970 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12971 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12972 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12973 if test "x$supports_anon_versioning" = xyes; then
12974 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12975 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12976 echo "local: *; };" >> $output_objdir/$libname.ver~
12977 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12978 fi
12979 ;;
12980 *)
12981 case `$CC -V 2>&1 | sed 5q` in
12982 *Sun\ C*)
12983 # Sun C++ 5.9
12984 no_undefined_flag_CXX=' -zdefs'
12985 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12986 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'
12987 hardcode_libdir_flag_spec_CXX='-R$libdir'
12988 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'
12989 compiler_needs_object_CXX=yes
12990
12991 # Not sure whether something based on
12992 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12993 # would be better.
12994 output_verbose_link_cmd='func_echo_all'
12995
12996 # Archives containing C++ object files must be created using
12997 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12998 # necessary to make sure instantiated templates are included
12999 # in the archive.
13000 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13001 ;;
13002 esac
13003 ;;
13004 esac
13005 ;;
13006
13007 lynxos*)
13008 # FIXME: insert proper C++ library support
13009 ld_shlibs_CXX=no
13010 ;;
13011
13012 m88k*)
13013 # FIXME: insert proper C++ library support
13014 ld_shlibs_CXX=no
13015 ;;
13016
13017 mvs*)
13018 case $cc_basename in
13019 cxx*)
13020 # FIXME: insert proper C++ library support
13021 ld_shlibs_CXX=no
13022 ;;
13023 *)
13024 # FIXME: insert proper C++ library support
13025 ld_shlibs_CXX=no
13026 ;;
13027 esac
13028 ;;
13029
13030 netbsd*)
13031 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13032 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13033 wlarc=
13034 hardcode_libdir_flag_spec_CXX='-R$libdir'
13035 hardcode_direct_CXX=yes
13036 hardcode_shlibpath_var_CXX=no
13037 fi
13038 # Workaround some broken pre-1.5 toolchains
13039 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13040 ;;
13041
13042 *nto* | *qnx*)
13043 ld_shlibs_CXX=yes
13044 ;;
13045
13046 openbsd2*)
13047 # C++ shared libraries are fairly broken
13048 ld_shlibs_CXX=no
13049 ;;
13050
13051 openbsd*)
13052 if test -f /usr/libexec/ld.so; then
13053 hardcode_direct_CXX=yes
13054 hardcode_shlibpath_var_CXX=no
13055 hardcode_direct_absolute_CXX=yes
13056 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13057 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13058 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13059 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13060 export_dynamic_flag_spec_CXX='${wl}-E'
13061 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13062 fi
13063 output_verbose_link_cmd=func_echo_all
13064 else
13065 ld_shlibs_CXX=no
13066 fi
13067 ;;
13068
13069 osf3* | osf4* | osf5*)
13070 case $cc_basename in
13071 KCC*)
13072 # Kuck and Associates, Inc. (KAI) C++ Compiler
13073
13074 # KCC will only create a shared library if the output file
13075 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13076 # to its proper name (with version) after linking.
13077 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'
13078
13079 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13080 hardcode_libdir_separator_CXX=:
13081
13082 # Archives containing C++ object files must be created using
13083 # the KAI C++ compiler.
13084 case $host in
13085 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13086 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13087 esac
13088 ;;
13089 RCC*)
13090 # Rational C++ 2.4.1
13091 # FIXME: insert proper C++ library support
13092 ld_shlibs_CXX=no
13093 ;;
13094 cxx*)
13095 case $host in
13096 osf3*)
13097 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13098 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'
13099 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13100 ;;
13101 *)
13102 allow_undefined_flag_CXX=' -expect_unresolved \*'
13103 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'
13104 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13105 echo "-hidden">> $lib.exp~
13106 $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~
13107 $RM $lib.exp'
13108 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13109 ;;
13110 esac
13111
13112 hardcode_libdir_separator_CXX=:
13113
13114 # Commands to make compiler produce verbose output that lists
13115 # what "hidden" libraries, object files and flags are used when
13116 # linking a shared library.
13117 #
13118 # There doesn't appear to be a way to prevent this compiler from
13119 # explicitly linking system object files so we need to strip them
13120 # from the output so that they don't get included in the library
13121 # dependencies.
13122 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"'
13123 ;;
13124 *)
13125 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13126 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13127 case $host in
13128 osf3*)
13129 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'
13130 ;;
13131 *)
13132 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'
13133 ;;
13134 esac
13135
13136 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13137 hardcode_libdir_separator_CXX=:
13138
13139 # Commands to make compiler produce verbose output that lists
13140 # what "hidden" libraries, object files and flags are used when
13141 # linking a shared library.
13142 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13143
13144 else
13145 # FIXME: insert proper C++ library support
13146 ld_shlibs_CXX=no
13147 fi
13148 ;;
13149 esac
13150 ;;
13151
13152 psos*)
13153 # FIXME: insert proper C++ library support
13154 ld_shlibs_CXX=no
13155 ;;
13156
13157 sunos4*)
13158 case $cc_basename in
13159 CC*)
13160 # Sun C++ 4.x
13161 # FIXME: insert proper C++ library support
13162 ld_shlibs_CXX=no
13163 ;;
13164 lcc*)
13165 # Lucid
13166 # FIXME: insert proper C++ library support
13167 ld_shlibs_CXX=no
13168 ;;
13169 *)
13170 # FIXME: insert proper C++ library support
13171 ld_shlibs_CXX=no
13172 ;;
13173 esac
13174 ;;
13175
13176 solaris*)
13177 case $cc_basename in
13178 CC* | sunCC*)
13179 # Sun C++ 4.2, 5.x and Centerline C++
13180 archive_cmds_need_lc_CXX=yes
13181 no_undefined_flag_CXX=' -zdefs'
13182 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13183 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13184 $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'
13185
13186 hardcode_libdir_flag_spec_CXX='-R$libdir'
13187 hardcode_shlibpath_var_CXX=no
13188 case $host_os in
13189 solaris2.[0-5] | solaris2.[0-5].*) ;;
13190 *)
13191 # The compiler driver will combine and reorder linker options,
13192 # but understands `-z linker_flag'.
13193 # Supported since Solaris 2.6 (maybe 2.5.1?)
13194 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13195 ;;
13196 esac
13197 link_all_deplibs_CXX=yes
13198
13199 output_verbose_link_cmd='func_echo_all'
13200
13201 # Archives containing C++ object files must be created using
13202 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13203 # necessary to make sure instantiated templates are included
13204 # in the archive.
13205 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13206 ;;
13207 gcx*)
13208 # Green Hills C++ Compiler
13209 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13210
13211 # The C++ compiler must be used to create the archive.
13212 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13213 ;;
13214 *)
13215 # GNU C++ compiler with Solaris linker
13216 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13217 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13218 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13219 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13220 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13221 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13222
13223 # Commands to make compiler produce verbose output that lists
13224 # what "hidden" libraries, object files and flags are used when
13225 # linking a shared library.
13226 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13227 else
13228 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13229 # platform.
13230 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13231 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13232 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13233
13234 # Commands to make compiler produce verbose output that lists
13235 # what "hidden" libraries, object files and flags are used when
13236 # linking a shared library.
13237 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13238 fi
13239
13240 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13241 case $host_os in
13242 solaris2.[0-5] | solaris2.[0-5].*) ;;
13243 *)
13244 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13245 ;;
13246 esac
13247 fi
13248 ;;
13249 esac
13250 ;;
13251
13252 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13253 no_undefined_flag_CXX='${wl}-z,text'
13254 archive_cmds_need_lc_CXX=no
13255 hardcode_shlibpath_var_CXX=no
13256 runpath_var='LD_RUN_PATH'
13257
13258 case $cc_basename in
13259 CC*)
13260 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13261 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13262 ;;
13263 *)
13264 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13265 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13266 ;;
13267 esac
13268 ;;
13269
13270 sysv5* | sco3.2v5* | sco5v6*)
13271 # Note: We can NOT use -z defs as we might desire, because we do not
13272 # link with -lc, and that would cause any symbols used from libc to
13273 # always be unresolved, which means just about no library would
13274 # ever link correctly. If we're not using GNU ld we use -z text
13275 # though, which does catch some bad symbols but isn't as heavy-handed
13276 # as -z defs.
13277 no_undefined_flag_CXX='${wl}-z,text'
13278 allow_undefined_flag_CXX='${wl}-z,nodefs'
13279 archive_cmds_need_lc_CXX=no
13280 hardcode_shlibpath_var_CXX=no
13281 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13282 hardcode_libdir_separator_CXX=':'
13283 link_all_deplibs_CXX=yes
13284 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13285 runpath_var='LD_RUN_PATH'
13286
13287 case $cc_basename in
13288 CC*)
13289 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13290 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13291 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13292 '"$old_archive_cmds_CXX"
13293 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13294 '"$reload_cmds_CXX"
13295 ;;
13296 *)
13297 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13298 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13299 ;;
13300 esac
13301 ;;
13302
13303 tandem*)
13304 case $cc_basename in
13305 NCC*)
13306 # NonStop-UX NCC 3.20
13307 # FIXME: insert proper C++ library support
13308 ld_shlibs_CXX=no
13309 ;;
13310 *)
13311 # FIXME: insert proper C++ library support
13312 ld_shlibs_CXX=no
13313 ;;
13314 esac
13315 ;;
13316
13317 vxworks*)
13318 # FIXME: insert proper C++ library support
13319 ld_shlibs_CXX=no
13320 ;;
13321
13322 *)
13323 # FIXME: insert proper C++ library support
13324 ld_shlibs_CXX=no
13325 ;;
13326 esac
13327
13328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13329 $as_echo "$ld_shlibs_CXX" >&6; }
13330 test "$ld_shlibs_CXX" = no && can_build_shared=no
13331
13332 GCC_CXX="$GXX"
13333 LD_CXX="$LD"
13334
13335 ## CAVEAT EMPTOR:
13336 ## There is no encapsulation within the following macros, do not change
13337 ## the running order or otherwise move them around unless you know exactly
13338 ## what you are doing...
13339 # Dependencies to place before and after the object being linked:
13340 predep_objects_CXX=
13341 postdep_objects_CXX=
13342 predeps_CXX=
13343 postdeps_CXX=
13344 compiler_lib_search_path_CXX=
13345
13346 cat > conftest.$ac_ext <<_LT_EOF
13347 class Foo
13348 {
13349 public:
13350 Foo (void) { a = 0; }
13351 private:
13352 int a;
13353 };
13354 _LT_EOF
13355
13356
13357 _lt_libdeps_save_CFLAGS=$CFLAGS
13358 case "$CC $CFLAGS " in #(
13359 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13360 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13361 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13362 esac
13363
13364 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13365 (eval $ac_compile) 2>&5
13366 ac_status=$?
13367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13368 test $ac_status = 0; }; then
13369 # Parse the compiler output and extract the necessary
13370 # objects, libraries and library flags.
13371
13372 # Sentinel used to keep track of whether or not we are before
13373 # the conftest object file.
13374 pre_test_object_deps_done=no
13375
13376 for p in `eval "$output_verbose_link_cmd"`; do
13377 case ${prev}${p} in
13378
13379 -L* | -R* | -l*)
13380 # Some compilers place space between "-{L,R}" and the path.
13381 # Remove the space.
13382 if test $p = "-L" ||
13383 test $p = "-R"; then
13384 prev=$p
13385 continue
13386 fi
13387
13388 # Expand the sysroot to ease extracting the directories later.
13389 if test -z "$prev"; then
13390 case $p in
13391 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13392 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13393 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13394 esac
13395 fi
13396 case $p in
13397 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13398 esac
13399 if test "$pre_test_object_deps_done" = no; then
13400 case ${prev} in
13401 -L | -R)
13402 # Internal compiler library paths should come after those
13403 # provided the user. The postdeps already come after the
13404 # user supplied libs so there is no need to process them.
13405 if test -z "$compiler_lib_search_path_CXX"; then
13406 compiler_lib_search_path_CXX="${prev}${p}"
13407 else
13408 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13409 fi
13410 ;;
13411 # The "-l" case would never come before the object being
13412 # linked, so don't bother handling this case.
13413 esac
13414 else
13415 if test -z "$postdeps_CXX"; then
13416 postdeps_CXX="${prev}${p}"
13417 else
13418 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13419 fi
13420 fi
13421 prev=
13422 ;;
13423
13424 *.lto.$objext) ;; # Ignore GCC LTO objects
13425 *.$objext)
13426 # This assumes that the test object file only shows up
13427 # once in the compiler output.
13428 if test "$p" = "conftest.$objext"; then
13429 pre_test_object_deps_done=yes
13430 continue
13431 fi
13432
13433 if test "$pre_test_object_deps_done" = no; then
13434 if test -z "$predep_objects_CXX"; then
13435 predep_objects_CXX="$p"
13436 else
13437 predep_objects_CXX="$predep_objects_CXX $p"
13438 fi
13439 else
13440 if test -z "$postdep_objects_CXX"; then
13441 postdep_objects_CXX="$p"
13442 else
13443 postdep_objects_CXX="$postdep_objects_CXX $p"
13444 fi
13445 fi
13446 ;;
13447
13448 *) ;; # Ignore the rest.
13449
13450 esac
13451 done
13452
13453 # Clean up.
13454 rm -f a.out a.exe
13455 else
13456 echo "libtool.m4: error: problem compiling CXX test program"
13457 fi
13458
13459 $RM -f confest.$objext
13460 CFLAGS=$_lt_libdeps_save_CFLAGS
13461
13462 # PORTME: override above test on systems where it is broken
13463 case $host_os in
13464 interix[3-9]*)
13465 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13466 # hack all around it, let's just trust "g++" to DTRT.
13467 predep_objects_CXX=
13468 postdep_objects_CXX=
13469 postdeps_CXX=
13470 ;;
13471
13472 linux*)
13473 case `$CC -V 2>&1 | sed 5q` in
13474 *Sun\ C*)
13475 # Sun C++ 5.9
13476
13477 # The more standards-conforming stlport4 library is
13478 # incompatible with the Cstd library. Avoid specifying
13479 # it if it's in CXXFLAGS. Ignore libCrun as
13480 # -library=stlport4 depends on it.
13481 case " $CXX $CXXFLAGS " in
13482 *" -library=stlport4 "*)
13483 solaris_use_stlport4=yes
13484 ;;
13485 esac
13486
13487 if test "$solaris_use_stlport4" != yes; then
13488 postdeps_CXX='-library=Cstd -library=Crun'
13489 fi
13490 ;;
13491 esac
13492 ;;
13493
13494 solaris*)
13495 case $cc_basename in
13496 CC* | sunCC*)
13497 # The more standards-conforming stlport4 library is
13498 # incompatible with the Cstd library. Avoid specifying
13499 # it if it's in CXXFLAGS. Ignore libCrun as
13500 # -library=stlport4 depends on it.
13501 case " $CXX $CXXFLAGS " in
13502 *" -library=stlport4 "*)
13503 solaris_use_stlport4=yes
13504 ;;
13505 esac
13506
13507 # Adding this requires a known-good setup of shared libraries for
13508 # Sun compiler versions before 5.6, else PIC objects from an old
13509 # archive will be linked into the output, leading to subtle bugs.
13510 if test "$solaris_use_stlport4" != yes; then
13511 postdeps_CXX='-library=Cstd -library=Crun'
13512 fi
13513 ;;
13514 esac
13515 ;;
13516 esac
13517
13518
13519 case " $postdeps_CXX " in
13520 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13521 esac
13522 compiler_lib_search_dirs_CXX=
13523 if test -n "${compiler_lib_search_path_CXX}"; then
13524 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13525 fi
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557 lt_prog_compiler_wl_CXX=
13558 lt_prog_compiler_pic_CXX=
13559 lt_prog_compiler_static_CXX=
13560
13561
13562 # C++ specific cases for pic, static, wl, etc.
13563 if test "$GXX" = yes; then
13564 lt_prog_compiler_wl_CXX='-Wl,'
13565 lt_prog_compiler_static_CXX='-static'
13566
13567 case $host_os in
13568 aix*)
13569 # All AIX code is PIC.
13570 if test "$host_cpu" = ia64; then
13571 # AIX 5 now supports IA64 processor
13572 lt_prog_compiler_static_CXX='-Bstatic'
13573 fi
13574 ;;
13575
13576 amigaos*)
13577 case $host_cpu in
13578 powerpc)
13579 # see comment about AmigaOS4 .so support
13580 lt_prog_compiler_pic_CXX='-fPIC'
13581 ;;
13582 m68k)
13583 # FIXME: we need at least 68020 code to build shared libraries, but
13584 # adding the `-m68020' flag to GCC prevents building anything better,
13585 # like `-m68040'.
13586 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13587 ;;
13588 esac
13589 ;;
13590
13591 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13592 # PIC is the default for these OSes.
13593 ;;
13594 mingw* | cygwin* | os2* | pw32* | cegcc*)
13595 # This hack is so that the source file can tell whether it is being
13596 # built for inclusion in a dll (and should export symbols for example).
13597 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13598 # (--disable-auto-import) libraries
13599 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13600 ;;
13601 darwin* | rhapsody*)
13602 # PIC is the default on this platform
13603 # Common symbols not allowed in MH_DYLIB files
13604 lt_prog_compiler_pic_CXX='-fno-common'
13605 ;;
13606 *djgpp*)
13607 # DJGPP does not support shared libraries at all
13608 lt_prog_compiler_pic_CXX=
13609 ;;
13610 haiku*)
13611 # PIC is the default for Haiku.
13612 # The "-static" flag exists, but is broken.
13613 lt_prog_compiler_static_CXX=
13614 ;;
13615 interix[3-9]*)
13616 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13617 # Instead, we relocate shared libraries at runtime.
13618 ;;
13619 sysv4*MP*)
13620 if test -d /usr/nec; then
13621 lt_prog_compiler_pic_CXX=-Kconform_pic
13622 fi
13623 ;;
13624 hpux*)
13625 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13626 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13627 # sets the default TLS model and affects inlining.
13628 case $host_cpu in
13629 hppa*64*)
13630 ;;
13631 *)
13632 lt_prog_compiler_pic_CXX='-fPIC'
13633 ;;
13634 esac
13635 ;;
13636 *qnx* | *nto*)
13637 # QNX uses GNU C++, but need to define -shared option too, otherwise
13638 # it will coredump.
13639 lt_prog_compiler_pic_CXX='-fPIC -shared'
13640 ;;
13641 *)
13642 lt_prog_compiler_pic_CXX='-fPIC'
13643 ;;
13644 esac
13645 else
13646 case $host_os in
13647 aix[4-9]*)
13648 # All AIX code is PIC.
13649 if test "$host_cpu" = ia64; then
13650 # AIX 5 now supports IA64 processor
13651 lt_prog_compiler_static_CXX='-Bstatic'
13652 else
13653 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13654 fi
13655 ;;
13656 chorus*)
13657 case $cc_basename in
13658 cxch68*)
13659 # Green Hills C++ Compiler
13660 # _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"
13661 ;;
13662 esac
13663 ;;
13664 mingw* | cygwin* | os2* | pw32* | cegcc*)
13665 # This hack is so that the source file can tell whether it is being
13666 # built for inclusion in a dll (and should export symbols for example).
13667 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13668 ;;
13669 dgux*)
13670 case $cc_basename in
13671 ec++*)
13672 lt_prog_compiler_pic_CXX='-KPIC'
13673 ;;
13674 ghcx*)
13675 # Green Hills C++ Compiler
13676 lt_prog_compiler_pic_CXX='-pic'
13677 ;;
13678 *)
13679 ;;
13680 esac
13681 ;;
13682 freebsd* | dragonfly*)
13683 # FreeBSD uses GNU C++
13684 ;;
13685 hpux9* | hpux10* | hpux11*)
13686 case $cc_basename in
13687 CC*)
13688 lt_prog_compiler_wl_CXX='-Wl,'
13689 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13690 if test "$host_cpu" != ia64; then
13691 lt_prog_compiler_pic_CXX='+Z'
13692 fi
13693 ;;
13694 aCC*)
13695 lt_prog_compiler_wl_CXX='-Wl,'
13696 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13697 case $host_cpu in
13698 hppa*64*|ia64*)
13699 # +Z the default
13700 ;;
13701 *)
13702 lt_prog_compiler_pic_CXX='+Z'
13703 ;;
13704 esac
13705 ;;
13706 *)
13707 ;;
13708 esac
13709 ;;
13710 interix*)
13711 # This is c89, which is MS Visual C++ (no shared libs)
13712 # Anyone wants to do a port?
13713 ;;
13714 irix5* | irix6* | nonstopux*)
13715 case $cc_basename in
13716 CC*)
13717 lt_prog_compiler_wl_CXX='-Wl,'
13718 lt_prog_compiler_static_CXX='-non_shared'
13719 # CC pic flag -KPIC is the default.
13720 ;;
13721 *)
13722 ;;
13723 esac
13724 ;;
13725 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13726 case $cc_basename in
13727 KCC*)
13728 # KAI C++ Compiler
13729 lt_prog_compiler_wl_CXX='--backend -Wl,'
13730 lt_prog_compiler_pic_CXX='-fPIC'
13731 ;;
13732 ecpc* )
13733 # old Intel C++ for x86_64 which still supported -KPIC.
13734 lt_prog_compiler_wl_CXX='-Wl,'
13735 lt_prog_compiler_pic_CXX='-KPIC'
13736 lt_prog_compiler_static_CXX='-static'
13737 ;;
13738 icpc* )
13739 # Intel C++, used to be incompatible with GCC.
13740 # ICC 10 doesn't accept -KPIC any more.
13741 lt_prog_compiler_wl_CXX='-Wl,'
13742 lt_prog_compiler_pic_CXX='-fPIC'
13743 lt_prog_compiler_static_CXX='-static'
13744 ;;
13745 pgCC* | pgcpp*)
13746 # Portland Group C++ compiler
13747 lt_prog_compiler_wl_CXX='-Wl,'
13748 lt_prog_compiler_pic_CXX='-fpic'
13749 lt_prog_compiler_static_CXX='-Bstatic'
13750 ;;
13751 cxx*)
13752 # Compaq C++
13753 # Make sure the PIC flag is empty. It appears that all Alpha
13754 # Linux and Compaq Tru64 Unix objects are PIC.
13755 lt_prog_compiler_pic_CXX=
13756 lt_prog_compiler_static_CXX='-non_shared'
13757 ;;
13758 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13759 # IBM XL 8.0, 9.0 on PPC and BlueGene
13760 lt_prog_compiler_wl_CXX='-Wl,'
13761 lt_prog_compiler_pic_CXX='-qpic'
13762 lt_prog_compiler_static_CXX='-qstaticlink'
13763 ;;
13764 *)
13765 case `$CC -V 2>&1 | sed 5q` in
13766 *Sun\ C*)
13767 # Sun C++ 5.9
13768 lt_prog_compiler_pic_CXX='-KPIC'
13769 lt_prog_compiler_static_CXX='-Bstatic'
13770 lt_prog_compiler_wl_CXX='-Qoption ld '
13771 ;;
13772 esac
13773 ;;
13774 esac
13775 ;;
13776 lynxos*)
13777 ;;
13778 m88k*)
13779 ;;
13780 mvs*)
13781 case $cc_basename in
13782 cxx*)
13783 lt_prog_compiler_pic_CXX='-W c,exportall'
13784 ;;
13785 *)
13786 ;;
13787 esac
13788 ;;
13789 netbsd*)
13790 ;;
13791 *qnx* | *nto*)
13792 # QNX uses GNU C++, but need to define -shared option too, otherwise
13793 # it will coredump.
13794 lt_prog_compiler_pic_CXX='-fPIC -shared'
13795 ;;
13796 osf3* | osf4* | osf5*)
13797 case $cc_basename in
13798 KCC*)
13799 lt_prog_compiler_wl_CXX='--backend -Wl,'
13800 ;;
13801 RCC*)
13802 # Rational C++ 2.4.1
13803 lt_prog_compiler_pic_CXX='-pic'
13804 ;;
13805 cxx*)
13806 # Digital/Compaq C++
13807 lt_prog_compiler_wl_CXX='-Wl,'
13808 # Make sure the PIC flag is empty. It appears that all Alpha
13809 # Linux and Compaq Tru64 Unix objects are PIC.
13810 lt_prog_compiler_pic_CXX=
13811 lt_prog_compiler_static_CXX='-non_shared'
13812 ;;
13813 *)
13814 ;;
13815 esac
13816 ;;
13817 psos*)
13818 ;;
13819 solaris*)
13820 case $cc_basename in
13821 CC* | sunCC*)
13822 # Sun C++ 4.2, 5.x and Centerline C++
13823 lt_prog_compiler_pic_CXX='-KPIC'
13824 lt_prog_compiler_static_CXX='-Bstatic'
13825 lt_prog_compiler_wl_CXX='-Qoption ld '
13826 ;;
13827 gcx*)
13828 # Green Hills C++ Compiler
13829 lt_prog_compiler_pic_CXX='-PIC'
13830 ;;
13831 *)
13832 ;;
13833 esac
13834 ;;
13835 sunos4*)
13836 case $cc_basename in
13837 CC*)
13838 # Sun C++ 4.x
13839 lt_prog_compiler_pic_CXX='-pic'
13840 lt_prog_compiler_static_CXX='-Bstatic'
13841 ;;
13842 lcc*)
13843 # Lucid
13844 lt_prog_compiler_pic_CXX='-pic'
13845 ;;
13846 *)
13847 ;;
13848 esac
13849 ;;
13850 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13851 case $cc_basename in
13852 CC*)
13853 lt_prog_compiler_wl_CXX='-Wl,'
13854 lt_prog_compiler_pic_CXX='-KPIC'
13855 lt_prog_compiler_static_CXX='-Bstatic'
13856 ;;
13857 esac
13858 ;;
13859 tandem*)
13860 case $cc_basename in
13861 NCC*)
13862 # NonStop-UX NCC 3.20
13863 lt_prog_compiler_pic_CXX='-KPIC'
13864 ;;
13865 *)
13866 ;;
13867 esac
13868 ;;
13869 vxworks*)
13870 ;;
13871 *)
13872 lt_prog_compiler_can_build_shared_CXX=no
13873 ;;
13874 esac
13875 fi
13876
13877 case $host_os in
13878 # For platforms which do not support PIC, -DPIC is meaningless:
13879 *djgpp*)
13880 lt_prog_compiler_pic_CXX=
13881 ;;
13882 *)
13883 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13884 ;;
13885 esac
13886
13887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13888 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13889 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
13890 $as_echo_n "(cached) " >&6
13891 else
13892 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
13893 fi
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
13895 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
13896 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
13897
13898 #
13899 # Check to make sure the PIC flag actually works.
13900 #
13901 if test -n "$lt_prog_compiler_pic_CXX"; then
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13903 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13904 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13905 $as_echo_n "(cached) " >&6
13906 else
13907 lt_cv_prog_compiler_pic_works_CXX=no
13908 ac_outfile=conftest.$ac_objext
13909 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13910 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13911 # Insert the option either (1) after the last *FLAGS variable, or
13912 # (2) before a word containing "conftest.", or (3) at the end.
13913 # Note that $ac_compile itself does not contain backslashes and begins
13914 # with a dollar sign (not a hyphen), so the echo should work correctly.
13915 # The option is referenced via a variable to avoid confusing sed.
13916 lt_compile=`echo "$ac_compile" | $SED \
13917 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13918 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13919 -e 's:$: $lt_compiler_flag:'`
13920 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13921 (eval "$lt_compile" 2>conftest.err)
13922 ac_status=$?
13923 cat conftest.err >&5
13924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13925 if (exit $ac_status) && test -s "$ac_outfile"; then
13926 # The compiler can only warn and ignore the option if not recognized
13927 # So say no if there are warnings other than the usual output.
13928 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13929 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13930 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13931 lt_cv_prog_compiler_pic_works_CXX=yes
13932 fi
13933 fi
13934 $RM conftest*
13935
13936 fi
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13938 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13939
13940 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13941 case $lt_prog_compiler_pic_CXX in
13942 "" | " "*) ;;
13943 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13944 esac
13945 else
13946 lt_prog_compiler_pic_CXX=
13947 lt_prog_compiler_can_build_shared_CXX=no
13948 fi
13949
13950 fi
13951
13952
13953
13954
13955
13956 #
13957 # Check to make sure the static flag actually works.
13958 #
13959 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13961 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13962 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13963 $as_echo_n "(cached) " >&6
13964 else
13965 lt_cv_prog_compiler_static_works_CXX=no
13966 save_LDFLAGS="$LDFLAGS"
13967 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13968 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13969 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13970 # The linker can only warn and ignore the option if not recognized
13971 # So say no if there are warnings
13972 if test -s conftest.err; then
13973 # Append any errors to the config.log.
13974 cat conftest.err 1>&5
13975 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13976 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13977 if diff conftest.exp conftest.er2 >/dev/null; then
13978 lt_cv_prog_compiler_static_works_CXX=yes
13979 fi
13980 else
13981 lt_cv_prog_compiler_static_works_CXX=yes
13982 fi
13983 fi
13984 $RM -r conftest*
13985 LDFLAGS="$save_LDFLAGS"
13986
13987 fi
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13989 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13990
13991 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13992 :
13993 else
13994 lt_prog_compiler_static_CXX=
13995 fi
13996
13997
13998
13999
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14001 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14002 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14003 $as_echo_n "(cached) " >&6
14004 else
14005 lt_cv_prog_compiler_c_o_CXX=no
14006 $RM -r conftest 2>/dev/null
14007 mkdir conftest
14008 cd conftest
14009 mkdir out
14010 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14011
14012 lt_compiler_flag="-o out/conftest2.$ac_objext"
14013 # Insert the option either (1) after the last *FLAGS variable, or
14014 # (2) before a word containing "conftest.", or (3) at the end.
14015 # Note that $ac_compile itself does not contain backslashes and begins
14016 # with a dollar sign (not a hyphen), so the echo should work correctly.
14017 lt_compile=`echo "$ac_compile" | $SED \
14018 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14019 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14020 -e 's:$: $lt_compiler_flag:'`
14021 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14022 (eval "$lt_compile" 2>out/conftest.err)
14023 ac_status=$?
14024 cat out/conftest.err >&5
14025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14027 then
14028 # The compiler can only warn and ignore the option if not recognized
14029 # So say no if there are warnings
14030 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14031 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14032 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14033 lt_cv_prog_compiler_c_o_CXX=yes
14034 fi
14035 fi
14036 chmod u+w . 2>&5
14037 $RM conftest*
14038 # SGI C++ compiler will create directory out/ii_files/ for
14039 # template instantiation
14040 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14041 $RM out/* && rmdir out
14042 cd ..
14043 $RM -r conftest
14044 $RM conftest*
14045
14046 fi
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14048 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14049
14050
14051
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14053 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14054 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14055 $as_echo_n "(cached) " >&6
14056 else
14057 lt_cv_prog_compiler_c_o_CXX=no
14058 $RM -r conftest 2>/dev/null
14059 mkdir conftest
14060 cd conftest
14061 mkdir out
14062 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14063
14064 lt_compiler_flag="-o out/conftest2.$ac_objext"
14065 # Insert the option either (1) after the last *FLAGS variable, or
14066 # (2) before a word containing "conftest.", or (3) at the end.
14067 # Note that $ac_compile itself does not contain backslashes and begins
14068 # with a dollar sign (not a hyphen), so the echo should work correctly.
14069 lt_compile=`echo "$ac_compile" | $SED \
14070 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14071 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14072 -e 's:$: $lt_compiler_flag:'`
14073 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14074 (eval "$lt_compile" 2>out/conftest.err)
14075 ac_status=$?
14076 cat out/conftest.err >&5
14077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14078 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14079 then
14080 # The compiler can only warn and ignore the option if not recognized
14081 # So say no if there are warnings
14082 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14083 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14084 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14085 lt_cv_prog_compiler_c_o_CXX=yes
14086 fi
14087 fi
14088 chmod u+w . 2>&5
14089 $RM conftest*
14090 # SGI C++ compiler will create directory out/ii_files/ for
14091 # template instantiation
14092 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14093 $RM out/* && rmdir out
14094 cd ..
14095 $RM -r conftest
14096 $RM conftest*
14097
14098 fi
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14100 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14101
14102
14103
14104
14105 hard_links="nottested"
14106 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14107 # do not overwrite the value of need_locks provided by the user
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14109 $as_echo_n "checking if we can lock with hard links... " >&6; }
14110 hard_links=yes
14111 $RM conftest*
14112 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14113 touch conftest.a
14114 ln conftest.a conftest.b 2>&5 || hard_links=no
14115 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14117 $as_echo "$hard_links" >&6; }
14118 if test "$hard_links" = no; then
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14120 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14121 need_locks=warn
14122 fi
14123 else
14124 need_locks=no
14125 fi
14126
14127
14128
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14130 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14131
14132 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14133 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14134 case $host_os in
14135 aix[4-9]*)
14136 # If we're using GNU nm, then we don't want the "-C" option.
14137 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14138 # Also, AIX nm treats weak defined symbols like other global defined
14139 # symbols, whereas GNU nm marks them as "W".
14140 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14141 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'
14142 else
14143 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'
14144 fi
14145 ;;
14146 pw32*)
14147 export_symbols_cmds_CXX="$ltdll_cmds"
14148 ;;
14149 cygwin* | mingw* | cegcc*)
14150 case $cc_basename in
14151 cl*)
14152 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14153 ;;
14154 *)
14155 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'
14156 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14157 ;;
14158 esac
14159 ;;
14160 *)
14161 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14162 ;;
14163 esac
14164
14165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14166 $as_echo "$ld_shlibs_CXX" >&6; }
14167 test "$ld_shlibs_CXX" = no && can_build_shared=no
14168
14169 with_gnu_ld_CXX=$with_gnu_ld
14170
14171
14172
14173
14174
14175
14176 #
14177 # Do we need to explicitly link libc?
14178 #
14179 case "x$archive_cmds_need_lc_CXX" in
14180 x|xyes)
14181 # Assume -lc should be added
14182 archive_cmds_need_lc_CXX=yes
14183
14184 if test "$enable_shared" = yes && test "$GCC" = yes; then
14185 case $archive_cmds_CXX in
14186 *'~'*)
14187 # FIXME: we may have to deal with multi-command sequences.
14188 ;;
14189 '$CC '*)
14190 # Test whether the compiler implicitly links with -lc since on some
14191 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14192 # to ld, don't add -lc before -lgcc.
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14194 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14195 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14196 $as_echo_n "(cached) " >&6
14197 else
14198 $RM conftest*
14199 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14200
14201 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14202 (eval $ac_compile) 2>&5
14203 ac_status=$?
14204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14205 test $ac_status = 0; } 2>conftest.err; then
14206 soname=conftest
14207 lib=conftest
14208 libobjs=conftest.$ac_objext
14209 deplibs=
14210 wl=$lt_prog_compiler_wl_CXX
14211 pic_flag=$lt_prog_compiler_pic_CXX
14212 compiler_flags=-v
14213 linker_flags=-v
14214 verstring=
14215 output_objdir=.
14216 libname=conftest
14217 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14218 allow_undefined_flag_CXX=
14219 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14220 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14221 ac_status=$?
14222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14223 test $ac_status = 0; }
14224 then
14225 lt_cv_archive_cmds_need_lc_CXX=no
14226 else
14227 lt_cv_archive_cmds_need_lc_CXX=yes
14228 fi
14229 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14230 else
14231 cat conftest.err 1>&5
14232 fi
14233 $RM conftest*
14234
14235 fi
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14237 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14238 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14239 ;;
14240 esac
14241 fi
14242 ;;
14243 esac
14244
14245
14246
14247
14248
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14307 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14308
14309 library_names_spec=
14310 libname_spec='lib$name'
14311 soname_spec=
14312 shrext_cmds=".so"
14313 postinstall_cmds=
14314 postuninstall_cmds=
14315 finish_cmds=
14316 finish_eval=
14317 shlibpath_var=
14318 shlibpath_overrides_runpath=unknown
14319 version_type=none
14320 dynamic_linker="$host_os ld.so"
14321 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14322 need_lib_prefix=unknown
14323 hardcode_into_libs=no
14324
14325 # when you set need_version to no, make sure it does not cause -set_version
14326 # flags to be left without arguments
14327 need_version=unknown
14328
14329 case $host_os in
14330 aix3*)
14331 version_type=linux # correct to gnu/linux during the next big refactor
14332 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14333 shlibpath_var=LIBPATH
14334
14335 # AIX 3 has no versioning support, so we append a major version to the name.
14336 soname_spec='${libname}${release}${shared_ext}$major'
14337 ;;
14338
14339 aix[4-9]*)
14340 version_type=linux # correct to gnu/linux during the next big refactor
14341 need_lib_prefix=no
14342 need_version=no
14343 hardcode_into_libs=yes
14344 if test "$host_cpu" = ia64; then
14345 # AIX 5 supports IA64
14346 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14347 shlibpath_var=LD_LIBRARY_PATH
14348 else
14349 # With GCC up to 2.95.x, collect2 would create an import file
14350 # for dependence libraries. The import file would start with
14351 # the line `#! .'. This would cause the generated library to
14352 # depend on `.', always an invalid library. This was fixed in
14353 # development snapshots of GCC prior to 3.0.
14354 case $host_os in
14355 aix4 | aix4.[01] | aix4.[01].*)
14356 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14357 echo ' yes '
14358 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14359 :
14360 else
14361 can_build_shared=no
14362 fi
14363 ;;
14364 esac
14365 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14366 # soname into executable. Probably we can add versioning support to
14367 # collect2, so additional links can be useful in future.
14368 if test "$aix_use_runtimelinking" = yes; then
14369 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14370 # instead of lib<name>.a to let people know that these are not
14371 # typical AIX shared libraries.
14372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14373 else
14374 # We preserve .a as extension for shared libraries through AIX4.2
14375 # and later when we are not doing run time linking.
14376 library_names_spec='${libname}${release}.a $libname.a'
14377 soname_spec='${libname}${release}${shared_ext}$major'
14378 fi
14379 shlibpath_var=LIBPATH
14380 fi
14381 ;;
14382
14383 amigaos*)
14384 case $host_cpu in
14385 powerpc)
14386 # Since July 2007 AmigaOS4 officially supports .so libraries.
14387 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14389 ;;
14390 m68k)
14391 library_names_spec='$libname.ixlibrary $libname.a'
14392 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14393 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'
14394 ;;
14395 esac
14396 ;;
14397
14398 beos*)
14399 library_names_spec='${libname}${shared_ext}'
14400 dynamic_linker="$host_os ld.so"
14401 shlibpath_var=LIBRARY_PATH
14402 ;;
14403
14404 bsdi[45]*)
14405 version_type=linux # correct to gnu/linux during the next big refactor
14406 need_version=no
14407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14408 soname_spec='${libname}${release}${shared_ext}$major'
14409 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14410 shlibpath_var=LD_LIBRARY_PATH
14411 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14412 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14413 # the default ld.so.conf also contains /usr/contrib/lib and
14414 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14415 # libtool to hard-code these into programs
14416 ;;
14417
14418 cygwin* | mingw* | pw32* | cegcc*)
14419 version_type=windows
14420 shrext_cmds=".dll"
14421 need_version=no
14422 need_lib_prefix=no
14423
14424 case $GCC,$cc_basename in
14425 yes,*)
14426 # gcc
14427 library_names_spec='$libname.dll.a'
14428 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14429 postinstall_cmds='base_file=`basename \${file}`~
14430 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14431 dldir=$destdir/`dirname \$dlpath`~
14432 test -d \$dldir || mkdir -p \$dldir~
14433 $install_prog $dir/$dlname \$dldir/$dlname~
14434 chmod a+x \$dldir/$dlname~
14435 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14436 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14437 fi'
14438 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14439 dlpath=$dir/\$dldll~
14440 $RM \$dlpath'
14441 shlibpath_overrides_runpath=yes
14442
14443 case $host_os in
14444 cygwin*)
14445 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14446 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14447
14448 ;;
14449 mingw* | cegcc*)
14450 # MinGW DLLs use traditional 'lib' prefix
14451 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14452 ;;
14453 pw32*)
14454 # pw32 DLLs use 'pw' prefix rather than 'lib'
14455 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14456 ;;
14457 esac
14458 dynamic_linker='Win32 ld.exe'
14459 ;;
14460
14461 *,cl*)
14462 # Native MSVC
14463 libname_spec='$name'
14464 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14465 library_names_spec='${libname}.dll.lib'
14466
14467 case $build_os in
14468 mingw*)
14469 sys_lib_search_path_spec=
14470 lt_save_ifs=$IFS
14471 IFS=';'
14472 for lt_path in $LIB
14473 do
14474 IFS=$lt_save_ifs
14475 # Let DOS variable expansion print the short 8.3 style file name.
14476 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14477 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14478 done
14479 IFS=$lt_save_ifs
14480 # Convert to MSYS style.
14481 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14482 ;;
14483 cygwin*)
14484 # Convert to unix form, then to dos form, then back to unix form
14485 # but this time dos style (no spaces!) so that the unix form looks
14486 # like /cygdrive/c/PROGRA~1:/cygdr...
14487 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14488 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14489 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14490 ;;
14491 *)
14492 sys_lib_search_path_spec="$LIB"
14493 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14494 # It is most probably a Windows format PATH.
14495 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14496 else
14497 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14498 fi
14499 # FIXME: find the short name or the path components, as spaces are
14500 # common. (e.g. "Program Files" -> "PROGRA~1")
14501 ;;
14502 esac
14503
14504 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14505 postinstall_cmds='base_file=`basename \${file}`~
14506 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14507 dldir=$destdir/`dirname \$dlpath`~
14508 test -d \$dldir || mkdir -p \$dldir~
14509 $install_prog $dir/$dlname \$dldir/$dlname'
14510 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14511 dlpath=$dir/\$dldll~
14512 $RM \$dlpath'
14513 shlibpath_overrides_runpath=yes
14514 dynamic_linker='Win32 link.exe'
14515 ;;
14516
14517 *)
14518 # Assume MSVC wrapper
14519 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14520 dynamic_linker='Win32 ld.exe'
14521 ;;
14522 esac
14523 # FIXME: first we should search . and the directory the executable is in
14524 shlibpath_var=PATH
14525 ;;
14526
14527 darwin* | rhapsody*)
14528 dynamic_linker="$host_os dyld"
14529 version_type=darwin
14530 need_lib_prefix=no
14531 need_version=no
14532 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14533 soname_spec='${libname}${release}${major}$shared_ext'
14534 shlibpath_overrides_runpath=yes
14535 shlibpath_var=DYLD_LIBRARY_PATH
14536 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14537
14538 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14539 ;;
14540
14541 dgux*)
14542 version_type=linux # correct to gnu/linux during the next big refactor
14543 need_lib_prefix=no
14544 need_version=no
14545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14546 soname_spec='${libname}${release}${shared_ext}$major'
14547 shlibpath_var=LD_LIBRARY_PATH
14548 ;;
14549
14550 freebsd* | dragonfly*)
14551 # DragonFly does not have aout. When/if they implement a new
14552 # versioning mechanism, adjust this.
14553 if test -x /usr/bin/objformat; then
14554 objformat=`/usr/bin/objformat`
14555 else
14556 case $host_os in
14557 freebsd[23].*) objformat=aout ;;
14558 *) objformat=elf ;;
14559 esac
14560 fi
14561 version_type=freebsd-$objformat
14562 case $version_type in
14563 freebsd-elf*)
14564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14565 need_version=no
14566 need_lib_prefix=no
14567 ;;
14568 freebsd-*)
14569 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14570 need_version=yes
14571 ;;
14572 esac
14573 shlibpath_var=LD_LIBRARY_PATH
14574 case $host_os in
14575 freebsd2.*)
14576 shlibpath_overrides_runpath=yes
14577 ;;
14578 freebsd3.[01]* | freebsdelf3.[01]*)
14579 shlibpath_overrides_runpath=yes
14580 hardcode_into_libs=yes
14581 ;;
14582 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14583 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14584 shlibpath_overrides_runpath=no
14585 hardcode_into_libs=yes
14586 ;;
14587 *) # from 4.6 on, and DragonFly
14588 shlibpath_overrides_runpath=yes
14589 hardcode_into_libs=yes
14590 ;;
14591 esac
14592 ;;
14593
14594 gnu*)
14595 version_type=linux # correct to gnu/linux during the next big refactor
14596 need_lib_prefix=no
14597 need_version=no
14598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14599 soname_spec='${libname}${release}${shared_ext}$major'
14600 shlibpath_var=LD_LIBRARY_PATH
14601 shlibpath_overrides_runpath=no
14602 hardcode_into_libs=yes
14603 ;;
14604
14605 haiku*)
14606 version_type=linux # correct to gnu/linux during the next big refactor
14607 need_lib_prefix=no
14608 need_version=no
14609 dynamic_linker="$host_os runtime_loader"
14610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14611 soname_spec='${libname}${release}${shared_ext}$major'
14612 shlibpath_var=LIBRARY_PATH
14613 shlibpath_overrides_runpath=yes
14614 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14615 hardcode_into_libs=yes
14616 ;;
14617
14618 hpux9* | hpux10* | hpux11*)
14619 # Give a soname corresponding to the major version so that dld.sl refuses to
14620 # link against other versions.
14621 version_type=sunos
14622 need_lib_prefix=no
14623 need_version=no
14624 case $host_cpu in
14625 ia64*)
14626 shrext_cmds='.so'
14627 hardcode_into_libs=yes
14628 dynamic_linker="$host_os dld.so"
14629 shlibpath_var=LD_LIBRARY_PATH
14630 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14632 soname_spec='${libname}${release}${shared_ext}$major'
14633 if test "X$HPUX_IA64_MODE" = X32; then
14634 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14635 else
14636 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14637 fi
14638 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14639 ;;
14640 hppa*64*)
14641 shrext_cmds='.sl'
14642 hardcode_into_libs=yes
14643 dynamic_linker="$host_os dld.sl"
14644 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14645 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14647 soname_spec='${libname}${release}${shared_ext}$major'
14648 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14649 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14650 ;;
14651 *)
14652 shrext_cmds='.sl'
14653 dynamic_linker="$host_os dld.sl"
14654 shlibpath_var=SHLIB_PATH
14655 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14657 soname_spec='${libname}${release}${shared_ext}$major'
14658 ;;
14659 esac
14660 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14661 postinstall_cmds='chmod 555 $lib'
14662 # or fails outright, so override atomically:
14663 install_override_mode=555
14664 ;;
14665
14666 interix[3-9]*)
14667 version_type=linux # correct to gnu/linux during the next big refactor
14668 need_lib_prefix=no
14669 need_version=no
14670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14671 soname_spec='${libname}${release}${shared_ext}$major'
14672 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14673 shlibpath_var=LD_LIBRARY_PATH
14674 shlibpath_overrides_runpath=no
14675 hardcode_into_libs=yes
14676 ;;
14677
14678 irix5* | irix6* | nonstopux*)
14679 case $host_os in
14680 nonstopux*) version_type=nonstopux ;;
14681 *)
14682 if test "$lt_cv_prog_gnu_ld" = yes; then
14683 version_type=linux # correct to gnu/linux during the next big refactor
14684 else
14685 version_type=irix
14686 fi ;;
14687 esac
14688 need_lib_prefix=no
14689 need_version=no
14690 soname_spec='${libname}${release}${shared_ext}$major'
14691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14692 case $host_os in
14693 irix5* | nonstopux*)
14694 libsuff= shlibsuff=
14695 ;;
14696 *)
14697 case $LD in # libtool.m4 will add one of these switches to LD
14698 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14699 libsuff= shlibsuff= libmagic=32-bit;;
14700 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14701 libsuff=32 shlibsuff=N32 libmagic=N32;;
14702 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14703 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14704 *) libsuff= shlibsuff= libmagic=never-match;;
14705 esac
14706 ;;
14707 esac
14708 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14709 shlibpath_overrides_runpath=no
14710 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14711 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14712 hardcode_into_libs=yes
14713 ;;
14714
14715 # No shared lib support for Linux oldld, aout, or coff.
14716 linux*oldld* | linux*aout* | linux*coff*)
14717 dynamic_linker=no
14718 ;;
14719
14720 # This must be glibc/ELF.
14721 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14722 version_type=linux # correct to gnu/linux during the next big refactor
14723 need_lib_prefix=no
14724 need_version=no
14725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14726 soname_spec='${libname}${release}${shared_ext}$major'
14727 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14728 shlibpath_var=LD_LIBRARY_PATH
14729 shlibpath_overrides_runpath=no
14730
14731 # Some binutils ld are patched to set DT_RUNPATH
14732 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14733 $as_echo_n "(cached) " >&6
14734 else
14735 lt_cv_shlibpath_overrides_runpath=no
14736 save_LDFLAGS=$LDFLAGS
14737 save_libdir=$libdir
14738 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14739 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14741 /* end confdefs.h. */
14742
14743 int
14744 main ()
14745 {
14746
14747 ;
14748 return 0;
14749 }
14750 _ACEOF
14751 if ac_fn_cxx_try_link "$LINENO"; then :
14752 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14753 lt_cv_shlibpath_overrides_runpath=yes
14754 fi
14755 fi
14756 rm -f core conftest.err conftest.$ac_objext \
14757 conftest$ac_exeext conftest.$ac_ext
14758 LDFLAGS=$save_LDFLAGS
14759 libdir=$save_libdir
14760
14761 fi
14762
14763 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14764
14765 # This implies no fast_install, which is unacceptable.
14766 # Some rework will be needed to allow for fast_install
14767 # before this can be enabled.
14768 hardcode_into_libs=yes
14769
14770 # Add ABI-specific directories to the system library path.
14771 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
14772
14773 # Append ld.so.conf contents to the search path
14774 if test -f /etc/ld.so.conf; then
14775 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' ' '`
14776 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
14777
14778 fi
14779
14780 # We used to test for /lib/ld.so.1 and disable shared libraries on
14781 # powerpc, because MkLinux only supported shared libraries with the
14782 # GNU dynamic linker. Since this was broken with cross compilers,
14783 # most powerpc-linux boxes support dynamic linking these days and
14784 # people can always --disable-shared, the test was removed, and we
14785 # assume the GNU/Linux dynamic linker is in use.
14786 dynamic_linker='GNU/Linux ld.so'
14787 ;;
14788
14789 netbsd*)
14790 version_type=sunos
14791 need_lib_prefix=no
14792 need_version=no
14793 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14795 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14796 dynamic_linker='NetBSD (a.out) ld.so'
14797 else
14798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14799 soname_spec='${libname}${release}${shared_ext}$major'
14800 dynamic_linker='NetBSD ld.elf_so'
14801 fi
14802 shlibpath_var=LD_LIBRARY_PATH
14803 shlibpath_overrides_runpath=yes
14804 hardcode_into_libs=yes
14805 ;;
14806
14807 newsos6)
14808 version_type=linux # correct to gnu/linux during the next big refactor
14809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14810 shlibpath_var=LD_LIBRARY_PATH
14811 shlibpath_overrides_runpath=yes
14812 ;;
14813
14814 *nto* | *qnx*)
14815 version_type=qnx
14816 need_lib_prefix=no
14817 need_version=no
14818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14819 soname_spec='${libname}${release}${shared_ext}$major'
14820 shlibpath_var=LD_LIBRARY_PATH
14821 shlibpath_overrides_runpath=no
14822 hardcode_into_libs=yes
14823 dynamic_linker='ldqnx.so'
14824 ;;
14825
14826 openbsd*)
14827 version_type=sunos
14828 sys_lib_dlsearch_path_spec="/usr/lib"
14829 need_lib_prefix=no
14830 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14831 case $host_os in
14832 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14833 *) need_version=no ;;
14834 esac
14835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14836 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14837 shlibpath_var=LD_LIBRARY_PATH
14838 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14839 case $host_os in
14840 openbsd2.[89] | openbsd2.[89].*)
14841 shlibpath_overrides_runpath=no
14842 ;;
14843 *)
14844 shlibpath_overrides_runpath=yes
14845 ;;
14846 esac
14847 else
14848 shlibpath_overrides_runpath=yes
14849 fi
14850 ;;
14851
14852 os2*)
14853 libname_spec='$name'
14854 shrext_cmds=".dll"
14855 need_lib_prefix=no
14856 library_names_spec='$libname${shared_ext} $libname.a'
14857 dynamic_linker='OS/2 ld.exe'
14858 shlibpath_var=LIBPATH
14859 ;;
14860
14861 osf3* | osf4* | osf5*)
14862 version_type=osf
14863 need_lib_prefix=no
14864 need_version=no
14865 soname_spec='${libname}${release}${shared_ext}$major'
14866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14867 shlibpath_var=LD_LIBRARY_PATH
14868 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14869 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14870 ;;
14871
14872 rdos*)
14873 dynamic_linker=no
14874 ;;
14875
14876 solaris*)
14877 version_type=linux # correct to gnu/linux during the next big refactor
14878 need_lib_prefix=no
14879 need_version=no
14880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14881 soname_spec='${libname}${release}${shared_ext}$major'
14882 shlibpath_var=LD_LIBRARY_PATH
14883 shlibpath_overrides_runpath=yes
14884 hardcode_into_libs=yes
14885 # ldd complains unless libraries are executable
14886 postinstall_cmds='chmod +x $lib'
14887 ;;
14888
14889 sunos4*)
14890 version_type=sunos
14891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14892 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14893 shlibpath_var=LD_LIBRARY_PATH
14894 shlibpath_overrides_runpath=yes
14895 if test "$with_gnu_ld" = yes; then
14896 need_lib_prefix=no
14897 fi
14898 need_version=yes
14899 ;;
14900
14901 sysv4 | sysv4.3*)
14902 version_type=linux # correct to gnu/linux during the next big refactor
14903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14904 soname_spec='${libname}${release}${shared_ext}$major'
14905 shlibpath_var=LD_LIBRARY_PATH
14906 case $host_vendor in
14907 sni)
14908 shlibpath_overrides_runpath=no
14909 need_lib_prefix=no
14910 runpath_var=LD_RUN_PATH
14911 ;;
14912 siemens)
14913 need_lib_prefix=no
14914 ;;
14915 motorola)
14916 need_lib_prefix=no
14917 need_version=no
14918 shlibpath_overrides_runpath=no
14919 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14920 ;;
14921 esac
14922 ;;
14923
14924 sysv4*MP*)
14925 if test -d /usr/nec ;then
14926 version_type=linux # correct to gnu/linux during the next big refactor
14927 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14928 soname_spec='$libname${shared_ext}.$major'
14929 shlibpath_var=LD_LIBRARY_PATH
14930 fi
14931 ;;
14932
14933 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14934 version_type=freebsd-elf
14935 need_lib_prefix=no
14936 need_version=no
14937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14938 soname_spec='${libname}${release}${shared_ext}$major'
14939 shlibpath_var=LD_LIBRARY_PATH
14940 shlibpath_overrides_runpath=yes
14941 hardcode_into_libs=yes
14942 if test "$with_gnu_ld" = yes; then
14943 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14944 else
14945 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14946 case $host_os in
14947 sco3.2v5*)
14948 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14949 ;;
14950 esac
14951 fi
14952 sys_lib_dlsearch_path_spec='/usr/lib'
14953 ;;
14954
14955 tpf*)
14956 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14957 version_type=linux # correct to gnu/linux during the next big refactor
14958 need_lib_prefix=no
14959 need_version=no
14960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14961 shlibpath_var=LD_LIBRARY_PATH
14962 shlibpath_overrides_runpath=no
14963 hardcode_into_libs=yes
14964 ;;
14965
14966 uts4*)
14967 version_type=linux # correct to gnu/linux during the next big refactor
14968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14969 soname_spec='${libname}${release}${shared_ext}$major'
14970 shlibpath_var=LD_LIBRARY_PATH
14971 ;;
14972
14973 *)
14974 dynamic_linker=no
14975 ;;
14976 esac
14977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14978 $as_echo "$dynamic_linker" >&6; }
14979 test "$dynamic_linker" = no && can_build_shared=no
14980
14981 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14982 if test "$GCC" = yes; then
14983 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14984 fi
14985
14986 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14987 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14988 fi
14989 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14990 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14991 fi
14992
14993
14994
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006
15007
15008
15009
15010
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15031 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15032 hardcode_action_CXX=
15033 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15034 test -n "$runpath_var_CXX" ||
15035 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15036
15037 # We can hardcode non-existent directories.
15038 if test "$hardcode_direct_CXX" != no &&
15039 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15040 # have to relink, otherwise we might link with an installed library
15041 # when we should be linking with a yet-to-be-installed one
15042 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15043 test "$hardcode_minus_L_CXX" != no; then
15044 # Linking always hardcodes the temporary library directory.
15045 hardcode_action_CXX=relink
15046 else
15047 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15048 hardcode_action_CXX=immediate
15049 fi
15050 else
15051 # We cannot hardcode anything, or else we can only hardcode existing
15052 # directories.
15053 hardcode_action_CXX=unsupported
15054 fi
15055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15056 $as_echo "$hardcode_action_CXX" >&6; }
15057
15058 if test "$hardcode_action_CXX" = relink ||
15059 test "$inherit_rpath_CXX" = yes; then
15060 # Fast installation is not supported
15061 enable_fast_install=no
15062 elif test "$shlibpath_overrides_runpath" = yes ||
15063 test "$enable_shared" = no; then
15064 # Fast installation is not necessary
15065 enable_fast_install=needless
15066 fi
15067
15068
15069
15070
15071
15072
15073
15074 fi # test -n "$compiler"
15075
15076 CC=$lt_save_CC
15077 CFLAGS=$lt_save_CFLAGS
15078 LDCXX=$LD
15079 LD=$lt_save_LD
15080 GCC=$lt_save_GCC
15081 with_gnu_ld=$lt_save_with_gnu_ld
15082 lt_cv_path_LDCXX=$lt_cv_path_LD
15083 lt_cv_path_LD=$lt_save_path_LD
15084 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15085 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15086 fi # test "$_lt_caught_CXX_error" != yes
15087
15088 ac_ext=c
15089 ac_cpp='$CPP $CPPFLAGS'
15090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108 ac_config_commands="$ac_config_commands libtool"
15109
15110
15111
15112
15113 # Only expand once:
15114
15115
15116
15117
15118 HAVE_VISIBILITY=0
15119 if test -n "$GCC"; then
15120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
15121 $as_echo_n "checking for simple visibility declarations... " >&6; }
15122 if ${gl_cv_cc_visibility+:} false; then :
15123 $as_echo_n "(cached) " >&6
15124 else
15125
15126 gl_save_CFLAGS="$CFLAGS"
15127 CFLAGS="$CFLAGS -fvisibility=hidden"
15128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15129 /* end confdefs.h. */
15130 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
15131 extern __attribute__((__visibility__("default"))) int exportedvar;
15132 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
15133 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
15134 int
15135 main ()
15136 {
15137
15138 ;
15139 return 0;
15140 }
15141 _ACEOF
15142 if ac_fn_c_try_compile "$LINENO"; then :
15143 gl_cv_cc_visibility=yes
15144 else
15145 gl_cv_cc_visibility=no
15146 fi
15147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15148 CFLAGS="$gl_save_CFLAGS"
15149 fi
15150
15151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
15152 $as_echo "$gl_cv_cc_visibility" >&6; }
15153 if test $gl_cv_cc_visibility = yes; then
15154 CFLAGS="$CFLAGS -fvisibility=hidden"
15155 CPPFLAGS="$CPPFLAGS -fvisibility=hidden"
15156 HAVE_VISIBILITY=1
15157
15158 cat >>confdefs.h <<_ACEOF
15159 #define HAVE_VISIBILITY $HAVE_VISIBILITY
15160 _ACEOF
15161
15162 fi
15163 fi
15164
15165 # DLL_EXPORT check
15166
15167
15168 HAVE_DLL_EXPORT=0
15169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLL_EXPORT declarations" >&5
15170 $as_echo_n "checking for DLL_EXPORT declarations... " >&6; }
15171
15172 case $host_os in
15173 mingw* | cygwin* | pw32* | os2* | cegcc*)
15174 HAVE_DLL_EXPORT=1
15175 MINGW_CYGWIN_DYNLIB="-no-undefined"
15176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15177 $as_echo "yes" >&6; }
15178
15179 cat >>confdefs.h <<_ACEOF
15180 #define HAVE_DLL_EXPORT $HAVE_DLL_EXPORT
15181 _ACEOF
15182
15183 ;;
15184 *)
15185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15186 $as_echo "no" >&6; }
15187 ;;
15188 esac
15189
15190
15191
15192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
15193 $as_echo_n "checking whether ln -s works... " >&6; }
15194 LN_S=$as_ln_s
15195 if test "$LN_S" = "ln -s"; then
15196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15197 $as_echo "yes" >&6; }
15198 else
15199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
15200 $as_echo "no, using $LN_S" >&6; }
15201 fi
15202
15203 for ac_prog in gawk mawk nawk awk
15204 do
15205 # Extract the first word of "$ac_prog", so it can be a program name with args.
15206 set dummy $ac_prog; ac_word=$2
15207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15208 $as_echo_n "checking for $ac_word... " >&6; }
15209 if ${ac_cv_prog_AWK+:} false; then :
15210 $as_echo_n "(cached) " >&6
15211 else
15212 if test -n "$AWK"; then
15213 ac_cv_prog_AWK="$AWK" # Let the user override the test.
15214 else
15215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15216 for as_dir in $PATH
15217 do
15218 IFS=$as_save_IFS
15219 test -z "$as_dir" && as_dir=.
15220 for ac_exec_ext in '' $ac_executable_extensions; do
15221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15222 ac_cv_prog_AWK="$ac_prog"
15223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15224 break 2
15225 fi
15226 done
15227 done
15228 IFS=$as_save_IFS
15229
15230 fi
15231 fi
15232 AWK=$ac_cv_prog_AWK
15233 if test -n "$AWK"; then
15234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
15235 $as_echo "$AWK" >&6; }
15236 else
15237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15238 $as_echo "no" >&6; }
15239 fi
15240
15241
15242 test -n "$AWK" && break
15243 done
15244
15245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
15246 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
15247 set x ${MAKE-make}
15248 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
15249 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
15250 $as_echo_n "(cached) " >&6
15251 else
15252 cat >conftest.make <<\_ACEOF
15253 SHELL = /bin/sh
15254 all:
15255 @echo '@@@%%%=$(MAKE)=@@@%%%'
15256 _ACEOF
15257 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
15258 case `${MAKE-make} -f conftest.make 2>/dev/null` in
15259 *@@@%%%=?*=@@@%%%*)
15260 eval ac_cv_prog_make_${ac_make}_set=yes;;
15261 *)
15262 eval ac_cv_prog_make_${ac_make}_set=no;;
15263 esac
15264 rm -f conftest.make
15265 fi
15266 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
15267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15268 $as_echo "yes" >&6; }
15269 SET_MAKE=
15270 else
15271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15272 $as_echo "no" >&6; }
15273 SET_MAKE="MAKE=${MAKE-make}"
15274 fi
15275
15276 if test -n "$ac_tool_prefix"; then
15277 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
15278 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
15279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15280 $as_echo_n "checking for $ac_word... " >&6; }
15281 if ${ac_cv_prog_RANLIB+:} false; then :
15282 $as_echo_n "(cached) " >&6
15283 else
15284 if test -n "$RANLIB"; then
15285 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15286 else
15287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15288 for as_dir in $PATH
15289 do
15290 IFS=$as_save_IFS
15291 test -z "$as_dir" && as_dir=.
15292 for ac_exec_ext in '' $ac_executable_extensions; do
15293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15294 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
15295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15296 break 2
15297 fi
15298 done
15299 done
15300 IFS=$as_save_IFS
15301
15302 fi
15303 fi
15304 RANLIB=$ac_cv_prog_RANLIB
15305 if test -n "$RANLIB"; then
15306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
15307 $as_echo "$RANLIB" >&6; }
15308 else
15309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15310 $as_echo "no" >&6; }
15311 fi
15312
15313
15314 fi
15315 if test -z "$ac_cv_prog_RANLIB"; then
15316 ac_ct_RANLIB=$RANLIB
15317 # Extract the first word of "ranlib", so it can be a program name with args.
15318 set dummy ranlib; ac_word=$2
15319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15320 $as_echo_n "checking for $ac_word... " >&6; }
15321 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
15322 $as_echo_n "(cached) " >&6
15323 else
15324 if test -n "$ac_ct_RANLIB"; then
15325 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15326 else
15327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15328 for as_dir in $PATH
15329 do
15330 IFS=$as_save_IFS
15331 test -z "$as_dir" && as_dir=.
15332 for ac_exec_ext in '' $ac_executable_extensions; do
15333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15334 ac_cv_prog_ac_ct_RANLIB="ranlib"
15335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15336 break 2
15337 fi
15338 done
15339 done
15340 IFS=$as_save_IFS
15341
15342 fi
15343 fi
15344 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15345 if test -n "$ac_ct_RANLIB"; then
15346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
15347 $as_echo "$ac_ct_RANLIB" >&6; }
15348 else
15349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15350 $as_echo "no" >&6; }
15351 fi
15352
15353 if test "x$ac_ct_RANLIB" = x; then
15354 RANLIB=":"
15355 else
15356 case $cross_compiling:$ac_tool_warned in
15357 yes:)
15358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15359 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15360 ac_tool_warned=yes ;;
15361 esac
15362 RANLIB=$ac_ct_RANLIB
15363 fi
15364 else
15365 RANLIB="$ac_cv_prog_RANLIB"
15366 fi
15367
15368
15369
15370 # Extract the first word of "perl", so it can be a program name with args.
15371 set dummy perl; ac_word=$2
15372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15373 $as_echo_n "checking for $ac_word... " >&6; }
15374 if ${ac_cv_path_PERL+:} false; then :
15375 $as_echo_n "(cached) " >&6
15376 else
15377 case $PERL in
15378 [\\/]* | ?:[\\/]*)
15379 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
15380 ;;
15381 *)
15382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15383 for as_dir in $PATH
15384 do
15385 IFS=$as_save_IFS
15386 test -z "$as_dir" && as_dir=.
15387 for ac_exec_ext in '' $ac_executable_extensions; do
15388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15389 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
15390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15391 break 2
15392 fi
15393 done
15394 done
15395 IFS=$as_save_IFS
15396
15397 ;;
15398 esac
15399 fi
15400 PERL=$ac_cv_path_PERL
15401 if test -n "$PERL"; then
15402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
15403 $as_echo "$PERL" >&6; }
15404 else
15405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15406 $as_echo "no" >&6; }
15407 fi
15408
15409
15410 if test ! -f "$ac_cv_path_PERL"; then
15411 as_fn_error $? "Can't not found perl" "$LINENO" 5
15412 fi
15413
15414 # Extract the first word of "date", so it can be a program name with args.
15415 set dummy date; ac_word=$2
15416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15417 $as_echo_n "checking for $ac_word... " >&6; }
15418 if ${ac_cv_path_DATE+:} false; then :
15419 $as_echo_n "(cached) " >&6
15420 else
15421 case $DATE in
15422 [\\/]* | ?:[\\/]*)
15423 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
15424 ;;
15425 *)
15426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15427 for as_dir in $PATH
15428 do
15429 IFS=$as_save_IFS
15430 test -z "$as_dir" && as_dir=.
15431 for ac_exec_ext in '' $ac_executable_extensions; do
15432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15433 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
15434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15435 break 2
15436 fi
15437 done
15438 done
15439 IFS=$as_save_IFS
15440
15441 ;;
15442 esac
15443 fi
15444 DATE=$ac_cv_path_DATE
15445 if test -n "$DATE"; then
15446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
15447 $as_echo "$DATE" >&6; }
15448 else
15449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15450 $as_echo "no" >&6; }
15451 fi
15452
15453
15454 if test ! -f "$ac_cv_path_DATE"; then
15455 as_fn_error $? "Can't not found date" "$LINENO" 5
15456 fi
15457
15458
15459 PACKAGE_DATE=$(LANG= $DATE +"%a %b %d %Y")
15460
15461 # Checks for header files.
15462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15463 $as_echo_n "checking for ANSI C header files... " >&6; }
15464 if ${ac_cv_header_stdc+:} false; then :
15465 $as_echo_n "(cached) " >&6
15466 else
15467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15468 /* end confdefs.h. */
15469 #include <stdlib.h>
15470 #include <stdarg.h>
15471 #include <string.h>
15472 #include <float.h>
15473
15474 int
15475 main ()
15476 {
15477
15478 ;
15479 return 0;
15480 }
15481 _ACEOF
15482 if ac_fn_c_try_compile "$LINENO"; then :
15483 ac_cv_header_stdc=yes
15484 else
15485 ac_cv_header_stdc=no
15486 fi
15487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15488
15489 if test $ac_cv_header_stdc = yes; then
15490 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15492 /* end confdefs.h. */
15493 #include <string.h>
15494
15495 _ACEOF
15496 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15497 $EGREP "memchr" >/dev/null 2>&1; then :
15498
15499 else
15500 ac_cv_header_stdc=no
15501 fi
15502 rm -f conftest*
15503
15504 fi
15505
15506 if test $ac_cv_header_stdc = yes; then
15507 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15509 /* end confdefs.h. */
15510 #include <stdlib.h>
15511
15512 _ACEOF
15513 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15514 $EGREP "free" >/dev/null 2>&1; then :
15515
15516 else
15517 ac_cv_header_stdc=no
15518 fi
15519 rm -f conftest*
15520
15521 fi
15522
15523 if test $ac_cv_header_stdc = yes; then
15524 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15525 if test "$cross_compiling" = yes; then :
15526 :
15527 else
15528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15529 /* end confdefs.h. */
15530 #include <ctype.h>
15531 #include <stdlib.h>
15532 #if ((' ' & 0x0FF) == 0x020)
15533 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15534 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15535 #else
15536 # define ISLOWER(c) \
15537 (('a' <= (c) && (c) <= 'i') \
15538 || ('j' <= (c) && (c) <= 'r') \
15539 || ('s' <= (c) && (c) <= 'z'))
15540 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15541 #endif
15542
15543 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15544 int
15545 main ()
15546 {
15547 int i;
15548 for (i = 0; i < 256; i++)
15549 if (XOR (islower (i), ISLOWER (i))
15550 || toupper (i) != TOUPPER (i))
15551 return 2;
15552 return 0;
15553 }
15554 _ACEOF
15555 if ac_fn_c_try_run "$LINENO"; then :
15556
15557 else
15558 ac_cv_header_stdc=no
15559 fi
15560 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15561 conftest.$ac_objext conftest.beam conftest.$ac_ext
15562 fi
15563
15564 fi
15565 fi
15566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15567 $as_echo "$ac_cv_header_stdc" >&6; }
15568 if test $ac_cv_header_stdc = yes; then
15569
15570 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15571
15572 fi
15573
15574 for ac_header in stdlib.h
15575 do :
15576 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
15577 if test "x$ac_cv_header_stdlib_h" = xyes; then :
15578 cat >>confdefs.h <<_ACEOF
15579 #define HAVE_STDLIB_H 1
15580 _ACEOF
15581
15582 fi
15583
15584 done
15585
15586
15587 # Checks for typedefs, structures, and compiler characteristics.
15588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
15589 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
15590 if ${ac_cv_c_const+:} false; then :
15591 $as_echo_n "(cached) " >&6
15592 else
15593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15594 /* end confdefs.h. */
15595
15596 int
15597 main ()
15598 {
15599
15600 #ifndef __cplusplus
15601 /* Ultrix mips cc rejects this sort of thing. */
15602 typedef int charset[2];
15603 const charset cs = { 0, 0 };
15604 /* SunOS 4.1.1 cc rejects this. */
15605 char const *const *pcpcc;
15606 char **ppc;
15607 /* NEC SVR4.0.2 mips cc rejects this. */
15608 struct point {int x, y;};
15609 static struct point const zero = {0,0};
15610 /* AIX XL C 1.02.0.0 rejects this.
15611 It does not let you subtract one const X* pointer from another in
15612 an arm of an if-expression whose if-part is not a constant
15613 expression */
15614 const char *g = "string";
15615 pcpcc = &g + (g ? g-g : 0);
15616 /* HPUX 7.0 cc rejects these. */
15617 ++pcpcc;
15618 ppc = (char**) pcpcc;
15619 pcpcc = (char const *const *) ppc;
15620 { /* SCO 3.2v4 cc rejects this sort of thing. */
15621 char tx;
15622 char *t = &tx;
15623 char const *s = 0 ? (char *) 0 : (char const *) 0;
15624
15625 *t++ = 0;
15626 if (s) return 0;
15627 }
15628 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15629 int x[] = {25, 17};
15630 const int *foo = &x[0];
15631 ++foo;
15632 }
15633 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15634 typedef const int *iptr;
15635 iptr p = 0;
15636 ++p;
15637 }
15638 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
15639 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15640 struct s { int j; const int *ap[3]; } bx;
15641 struct s *b = &bx; b->j = 5;
15642 }
15643 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15644 const int foo = 10;
15645 if (!foo) return 0;
15646 }
15647 return !cs[0] && !zero.x;
15648 #endif
15649
15650 ;
15651 return 0;
15652 }
15653 _ACEOF
15654 if ac_fn_c_try_compile "$LINENO"; then :
15655 ac_cv_c_const=yes
15656 else
15657 ac_cv_c_const=no
15658 fi
15659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15660 fi
15661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
15662 $as_echo "$ac_cv_c_const" >&6; }
15663 if test $ac_cv_c_const = no; then
15664
15665 $as_echo "#define const /**/" >>confdefs.h
15666
15667 fi
15668
15669 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15670 if test "x$ac_cv_type_size_t" = xyes; then :
15671
15672 else
15673
15674 cat >>confdefs.h <<_ACEOF
15675 #define size_t unsigned int
15676 _ACEOF
15677
15678 fi
15679
15680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
15681 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
15682 if ${ac_cv_header_time+:} false; then :
15683 $as_echo_n "(cached) " >&6
15684 else
15685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15686 /* end confdefs.h. */
15687 #include <sys/types.h>
15688 #include <sys/time.h>
15689 #include <time.h>
15690
15691 int
15692 main ()
15693 {
15694 if ((struct tm *) 0)
15695 return 0;
15696 ;
15697 return 0;
15698 }
15699 _ACEOF
15700 if ac_fn_c_try_compile "$LINENO"; then :
15701 ac_cv_header_time=yes
15702 else
15703 ac_cv_header_time=no
15704 fi
15705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15706 fi
15707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
15708 $as_echo "$ac_cv_header_time" >&6; }
15709 if test $ac_cv_header_time = yes; then
15710
15711 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
15712
15713 fi
15714
15715
15716 # Checks for library functions.
15717 for ac_header in stdlib.h
15718 do :
15719 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
15720 if test "x$ac_cv_header_stdlib_h" = xyes; then :
15721 cat >>confdefs.h <<_ACEOF
15722 #define HAVE_STDLIB_H 1
15723 _ACEOF
15724
15725 fi
15726
15727 done
15728
15729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
15730 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
15731 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
15732 $as_echo_n "(cached) " >&6
15733 else
15734 if test "$cross_compiling" = yes; then :
15735 ac_cv_func_malloc_0_nonnull=no
15736 else
15737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15738 /* end confdefs.h. */
15739 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
15740 # include <stdlib.h>
15741 #else
15742 char *malloc ();
15743 #endif
15744
15745 int
15746 main ()
15747 {
15748 return ! malloc (0);
15749 ;
15750 return 0;
15751 }
15752 _ACEOF
15753 if ac_fn_c_try_run "$LINENO"; then :
15754 ac_cv_func_malloc_0_nonnull=yes
15755 else
15756 ac_cv_func_malloc_0_nonnull=no
15757 fi
15758 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15759 conftest.$ac_objext conftest.beam conftest.$ac_ext
15760 fi
15761
15762 fi
15763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
15764 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
15765 if test $ac_cv_func_malloc_0_nonnull = yes; then :
15766
15767 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
15768
15769 else
15770 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
15771
15772 case " $LIBOBJS " in
15773 *" malloc.$ac_objext "* ) ;;
15774 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
15775 ;;
15776 esac
15777
15778
15779 $as_echo "#define malloc rpl_malloc" >>confdefs.h
15780
15781 fi
15782
15783
15784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
15785 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
15786 if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
15787 $as_echo_n "(cached) " >&6
15788 else
15789 rm -f conftest.sym conftest.file
15790 echo >conftest.file
15791 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
15792 if test "$cross_compiling" = yes; then :
15793 ac_cv_func_lstat_dereferences_slashed_symlink=no
15794 else
15795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15796 /* end confdefs.h. */
15797 $ac_includes_default
15798 int
15799 main ()
15800 {
15801 struct stat sbuf;
15802 /* Linux will dereference the symlink and fail, as required by POSIX.
15803 That is better in the sense that it means we will not
15804 have to compile and use the lstat wrapper. */
15805 return lstat ("conftest.sym/", &sbuf) == 0;
15806 ;
15807 return 0;
15808 }
15809 _ACEOF
15810 if ac_fn_c_try_run "$LINENO"; then :
15811 ac_cv_func_lstat_dereferences_slashed_symlink=yes
15812 else
15813 ac_cv_func_lstat_dereferences_slashed_symlink=no
15814 fi
15815 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15816 conftest.$ac_objext conftest.beam conftest.$ac_ext
15817 fi
15818
15819 else
15820 # If the `ln -s' command failed, then we probably don't even
15821 # have an lstat function.
15822 ac_cv_func_lstat_dereferences_slashed_symlink=no
15823 fi
15824 rm -f conftest.sym conftest.file
15825
15826 fi
15827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
15828 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
15829
15830 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
15831
15832 cat >>confdefs.h <<_ACEOF
15833 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
15834 _ACEOF
15835
15836
15837 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
15838 case " $LIBOBJS " in
15839 *" lstat.$ac_objext "* ) ;;
15840 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
15841 ;;
15842 esac
15843
15844 fi
15845
15846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
15847 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
15848 if ${ac_cv_func_stat_empty_string_bug+:} false; then :
15849 $as_echo_n "(cached) " >&6
15850 else
15851 if test "$cross_compiling" = yes; then :
15852 ac_cv_func_stat_empty_string_bug=yes
15853 else
15854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15855 /* end confdefs.h. */
15856 $ac_includes_default
15857 int
15858 main ()
15859 {
15860 struct stat sbuf;
15861 return stat ("", &sbuf) == 0;
15862 ;
15863 return 0;
15864 }
15865 _ACEOF
15866 if ac_fn_c_try_run "$LINENO"; then :
15867 ac_cv_func_stat_empty_string_bug=no
15868 else
15869 ac_cv_func_stat_empty_string_bug=yes
15870 fi
15871 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15872 conftest.$ac_objext conftest.beam conftest.$ac_ext
15873 fi
15874
15875 fi
15876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
15877 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
15878 if test $ac_cv_func_stat_empty_string_bug = yes; then
15879 case " $LIBOBJS " in
15880 *" stat.$ac_objext "* ) ;;
15881 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
15882 ;;
15883 esac
15884
15885
15886 cat >>confdefs.h <<_ACEOF
15887 #define HAVE_STAT_EMPTY_STRING_BUG 1
15888 _ACEOF
15889
15890 fi
15891
15892
15893 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile test/Makefile chardet-config chardet.pc libchardet.spec"
15894
15895 cat >confcache <<\_ACEOF
15896 # This file is a shell script that caches the results of configure
15897 # tests run on this system so they can be shared between configure
15898 # scripts and configure runs, see configure's option --config-cache.
15899 # It is not useful on other systems. If it contains results you don't
15900 # want to keep, you may remove or edit it.
15901 #
15902 # config.status only pays attention to the cache file if you give it
15903 # the --recheck option to rerun configure.
15904 #
15905 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15906 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15907 # following values.
15908
15909 _ACEOF
15910
15911 # The following way of writing the cache mishandles newlines in values,
15912 # but we know of no workaround that is simple, portable, and efficient.
15913 # So, we kill variables containing newlines.
15914 # Ultrix sh set writes to stderr and can't be redirected directly,
15915 # and sets the high bit in the cache file unless we assign to the vars.
15916 (
15917 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15918 eval ac_val=\$$ac_var
15919 case $ac_val in #(
15920 *${as_nl}*)
15921 case $ac_var in #(
15922 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15923 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15924 esac
15925 case $ac_var in #(
15926 _ | IFS | as_nl) ;; #(
15927 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15928 *) { eval $ac_var=; unset $ac_var;} ;;
15929 esac ;;
15930 esac
15931 done
15932
15933 (set) 2>&1 |
15934 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15935 *${as_nl}ac_space=\ *)
15936 # `set' does not quote correctly, so add quotes: double-quote
15937 # substitution turns \\\\ into \\, and sed turns \\ into \.
15938 sed -n \
15939 "s/'/'\\\\''/g;
15940 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15941 ;; #(
15942 *)
15943 # `set' quotes correctly as required by POSIX, so do not add quotes.
15944 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15945 ;;
15946 esac |
15947 sort
15948 ) |
15949 sed '
15950 /^ac_cv_env_/b end
15951 t clear
15952 :clear
15953 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15954 t end
15955 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15956 :end' >>confcache
15957 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15958 if test -w "$cache_file"; then
15959 if test "x$cache_file" != "x/dev/null"; then
15960 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15961 $as_echo "$as_me: updating cache $cache_file" >&6;}
15962 if test ! -f "$cache_file" || test -h "$cache_file"; then
15963 cat confcache >"$cache_file"
15964 else
15965 case $cache_file in #(
15966 */* | ?:*)
15967 mv -f confcache "$cache_file"$$ &&
15968 mv -f "$cache_file"$$ "$cache_file" ;; #(
15969 *)
15970 mv -f confcache "$cache_file" ;;
15971 esac
15972 fi
15973 fi
15974 else
15975 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15976 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15977 fi
15978 fi
15979 rm -f confcache
15980
15981 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15982 # Let make expand exec_prefix.
15983 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15984
15985 DEFS=-DHAVE_CONFIG_H
15986
15987 ac_libobjs=
15988 ac_ltlibobjs=
15989 U=
15990 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15991 # 1. Remove the extension, and $U if already installed.
15992 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15993 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15994 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15995 # will be set to the directory where LIBOBJS objects are built.
15996 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15997 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15998 done
15999 LIBOBJS=$ac_libobjs
16000
16001 LTLIBOBJS=$ac_ltlibobjs
16002
16003
16004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16005 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16006 if test -n "$am_sleep_pid"; then
16007 # Hide warnings about reused PIDs.
16008 wait $am_sleep_pid 2>/dev/null
16009 fi
16010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16011 $as_echo "done" >&6; }
16012 if test -n "$EXEEXT"; then
16013 am__EXEEXT_TRUE=
16014 am__EXEEXT_FALSE='#'
16015 else
16016 am__EXEEXT_TRUE='#'
16017 am__EXEEXT_FALSE=
16018 fi
16019
16020 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16021 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16022 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16023 fi
16024
16025 : "${CONFIG_STATUS=./config.status}"
16026 ac_write_fail=0
16027 ac_clean_files_save=$ac_clean_files
16028 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16029 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16030 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16031 as_write_fail=0
16032 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16033 #! $SHELL
16034 # Generated by $as_me.
16035 # Run this file to recreate the current configuration.
16036 # Compiler output produced by configure, useful for debugging
16037 # configure, is in config.log if it exists.
16038
16039 debug=false
16040 ac_cs_recheck=false
16041 ac_cs_silent=false
16042
16043 SHELL=\${CONFIG_SHELL-$SHELL}
16044 export SHELL
16045 _ASEOF
16046 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16047 ## -------------------- ##
16048 ## M4sh Initialization. ##
16049 ## -------------------- ##
16050
16051 # Be more Bourne compatible
16052 DUALCASE=1; export DUALCASE # for MKS sh
16053 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16054 emulate sh
16055 NULLCMD=:
16056 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16057 # is contrary to our usage. Disable this feature.
16058 alias -g '${1+"$@"}'='"$@"'
16059 setopt NO_GLOB_SUBST
16060 else
16061 case `(set -o) 2>/dev/null` in #(
16062 *posix*) :
16063 set -o posix ;; #(
16064 *) :
16065 ;;
16066 esac
16067 fi
16068
16069
16070 as_nl='
16071 '
16072 export as_nl
16073 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16074 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16075 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16076 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16077 # Prefer a ksh shell builtin over an external printf program on Solaris,
16078 # but without wasting forks for bash or zsh.
16079 if test -z "$BASH_VERSION$ZSH_VERSION" \
16080 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16081 as_echo='print -r --'
16082 as_echo_n='print -rn --'
16083 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16084 as_echo='printf %s\n'
16085 as_echo_n='printf %s'
16086 else
16087 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16088 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16089 as_echo_n='/usr/ucb/echo -n'
16090 else
16091 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16092 as_echo_n_body='eval
16093 arg=$1;
16094 case $arg in #(
16095 *"$as_nl"*)
16096 expr "X$arg" : "X\\(.*\\)$as_nl";
16097 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16098 esac;
16099 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16100 '
16101 export as_echo_n_body
16102 as_echo_n='sh -c $as_echo_n_body as_echo'
16103 fi
16104 export as_echo_body
16105 as_echo='sh -c $as_echo_body as_echo'
16106 fi
16107
16108 # The user is always right.
16109 if test "${PATH_SEPARATOR+set}" != set; then
16110 PATH_SEPARATOR=:
16111 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16112 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16113 PATH_SEPARATOR=';'
16114 }
16115 fi
16116
16117
16118 # IFS
16119 # We need space, tab and new line, in precisely that order. Quoting is
16120 # there to prevent editors from complaining about space-tab.
16121 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16122 # splitting by setting IFS to empty value.)
16123 IFS=" "" $as_nl"
16124
16125 # Find who we are. Look in the path if we contain no directory separator.
16126 as_myself=
16127 case $0 in #((
16128 *[\\/]* ) as_myself=$0 ;;
16129 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16130 for as_dir in $PATH
16131 do
16132 IFS=$as_save_IFS
16133 test -z "$as_dir" && as_dir=.
16134 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16135 done
16136 IFS=$as_save_IFS
16137
16138 ;;
16139 esac
16140 # We did not find ourselves, most probably we were run as `sh COMMAND'
16141 # in which case we are not to be found in the path.
16142 if test "x$as_myself" = x; then
16143 as_myself=$0
16144 fi
16145 if test ! -f "$as_myself"; then
16146 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16147 exit 1
16148 fi
16149
16150 # Unset variables that we do not need and which cause bugs (e.g. in
16151 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16152 # suppresses any "Segmentation fault" message there. '((' could
16153 # trigger a bug in pdksh 5.2.14.
16154 for as_var in BASH_ENV ENV MAIL MAILPATH
16155 do eval test x\${$as_var+set} = xset \
16156 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16157 done
16158 PS1='$ '
16159 PS2='> '
16160 PS4='+ '
16161
16162 # NLS nuisances.
16163 LC_ALL=C
16164 export LC_ALL
16165 LANGUAGE=C
16166 export LANGUAGE
16167
16168 # CDPATH.
16169 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16170
16171
16172 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16173 # ----------------------------------------
16174 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16175 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16176 # script with STATUS, using 1 if that was 0.
16177 as_fn_error ()
16178 {
16179 as_status=$1; test $as_status -eq 0 && as_status=1
16180 if test "$4"; then
16181 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16182 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16183 fi
16184 $as_echo "$as_me: error: $2" >&2
16185 as_fn_exit $as_status
16186 } # as_fn_error
16187
16188
16189 # as_fn_set_status STATUS
16190 # -----------------------
16191 # Set $? to STATUS, without forking.
16192 as_fn_set_status ()
16193 {
16194 return $1
16195 } # as_fn_set_status
16196
16197 # as_fn_exit STATUS
16198 # -----------------
16199 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16200 as_fn_exit ()
16201 {
16202 set +e
16203 as_fn_set_status $1
16204 exit $1
16205 } # as_fn_exit
16206
16207 # as_fn_unset VAR
16208 # ---------------
16209 # Portably unset VAR.
16210 as_fn_unset ()
16211 {
16212 { eval $1=; unset $1;}
16213 }
16214 as_unset=as_fn_unset
16215 # as_fn_append VAR VALUE
16216 # ----------------------
16217 # Append the text in VALUE to the end of the definition contained in VAR. Take
16218 # advantage of any shell optimizations that allow amortized linear growth over
16219 # repeated appends, instead of the typical quadratic growth present in naive
16220 # implementations.
16221 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16222 eval 'as_fn_append ()
16223 {
16224 eval $1+=\$2
16225 }'
16226 else
16227 as_fn_append ()
16228 {
16229 eval $1=\$$1\$2
16230 }
16231 fi # as_fn_append
16232
16233 # as_fn_arith ARG...
16234 # ------------------
16235 # Perform arithmetic evaluation on the ARGs, and store the result in the
16236 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16237 # must be portable across $(()) and expr.
16238 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16239 eval 'as_fn_arith ()
16240 {
16241 as_val=$(( $* ))
16242 }'
16243 else
16244 as_fn_arith ()
16245 {
16246 as_val=`expr "$@" || test $? -eq 1`
16247 }
16248 fi # as_fn_arith
16249
16250
16251 if expr a : '\(a\)' >/dev/null 2>&1 &&
16252 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16253 as_expr=expr
16254 else
16255 as_expr=false
16256 fi
16257
16258 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16259 as_basename=basename
16260 else
16261 as_basename=false
16262 fi
16263
16264 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16265 as_dirname=dirname
16266 else
16267 as_dirname=false
16268 fi
16269
16270 as_me=`$as_basename -- "$0" ||
16271 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16272 X"$0" : 'X\(//\)$' \| \
16273 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16274 $as_echo X/"$0" |
16275 sed '/^.*\/\([^/][^/]*\)\/*$/{
16276 s//\1/
16277 q
16278 }
16279 /^X\/\(\/\/\)$/{
16280 s//\1/
16281 q
16282 }
16283 /^X\/\(\/\).*/{
16284 s//\1/
16285 q
16286 }
16287 s/.*/./; q'`
16288
16289 # Avoid depending upon Character Ranges.
16290 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16291 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16292 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16293 as_cr_digits='0123456789'
16294 as_cr_alnum=$as_cr_Letters$as_cr_digits
16295
16296 ECHO_C= ECHO_N= ECHO_T=
16297 case `echo -n x` in #(((((
16298 -n*)
16299 case `echo 'xy\c'` in
16300 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16301 xy) ECHO_C='\c';;
16302 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16303 ECHO_T=' ';;
16304 esac;;
16305 *)
16306 ECHO_N='-n';;
16307 esac
16308
16309 rm -f conf$$ conf$$.exe conf$$.file
16310 if test -d conf$$.dir; then
16311 rm -f conf$$.dir/conf$$.file
16312 else
16313 rm -f conf$$.dir
16314 mkdir conf$$.dir 2>/dev/null
16315 fi
16316 if (echo >conf$$.file) 2>/dev/null; then
16317 if ln -s conf$$.file conf$$ 2>/dev/null; then
16318 as_ln_s='ln -s'
16319 # ... but there are two gotchas:
16320 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16321 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16322 # In both cases, we have to default to `cp -pR'.
16323 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16324 as_ln_s='cp -pR'
16325 elif ln conf$$.file conf$$ 2>/dev/null; then
16326 as_ln_s=ln
16327 else
16328 as_ln_s='cp -pR'
16329 fi
16330 else
16331 as_ln_s='cp -pR'
16332 fi
16333 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16334 rmdir conf$$.dir 2>/dev/null
16335
16336
16337 # as_fn_mkdir_p
16338 # -------------
16339 # Create "$as_dir" as a directory, including parents if necessary.
16340 as_fn_mkdir_p ()
16341 {
16342
16343 case $as_dir in #(
16344 -*) as_dir=./$as_dir;;
16345 esac
16346 test -d "$as_dir" || eval $as_mkdir_p || {
16347 as_dirs=
16348 while :; do
16349 case $as_dir in #(
16350 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16351 *) as_qdir=$as_dir;;
16352 esac
16353 as_dirs="'$as_qdir' $as_dirs"
16354 as_dir=`$as_dirname -- "$as_dir" ||
16355 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16356 X"$as_dir" : 'X\(//\)[^/]' \| \
16357 X"$as_dir" : 'X\(//\)$' \| \
16358 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16359 $as_echo X"$as_dir" |
16360 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16361 s//\1/
16362 q
16363 }
16364 /^X\(\/\/\)[^/].*/{
16365 s//\1/
16366 q
16367 }
16368 /^X\(\/\/\)$/{
16369 s//\1/
16370 q
16371 }
16372 /^X\(\/\).*/{
16373 s//\1/
16374 q
16375 }
16376 s/.*/./; q'`
16377 test -d "$as_dir" && break
16378 done
16379 test -z "$as_dirs" || eval "mkdir $as_dirs"
16380 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16381
16382
16383 } # as_fn_mkdir_p
16384 if mkdir -p . 2>/dev/null; then
16385 as_mkdir_p='mkdir -p "$as_dir"'
16386 else
16387 test -d ./-p && rmdir ./-p
16388 as_mkdir_p=false
16389 fi
16390
16391
16392 # as_fn_executable_p FILE
16393 # -----------------------
16394 # Test if FILE is an executable regular file.
16395 as_fn_executable_p ()
16396 {
16397 test -f "$1" && test -x "$1"
16398 } # as_fn_executable_p
16399 as_test_x='test -x'
16400 as_executable_p=as_fn_executable_p
16401
16402 # Sed expression to map a string onto a valid CPP name.
16403 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16404
16405 # Sed expression to map a string onto a valid variable name.
16406 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16407
16408
16409 exec 6>&1
16410 ## ----------------------------------- ##
16411 ## Main body of $CONFIG_STATUS script. ##
16412 ## ----------------------------------- ##
16413 _ASEOF
16414 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16415
16416 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16417 # Save the log message, to keep $0 and so on meaningful, and to
16418 # report actual input values of CONFIG_FILES etc. instead of their
16419 # values after options handling.
16420 ac_log="
16421 This file was extended by libchardet $as_me 1.0.6, which was
16422 generated by GNU Autoconf 2.69. Invocation command line was
16423
16424 CONFIG_FILES = $CONFIG_FILES
16425 CONFIG_HEADERS = $CONFIG_HEADERS
16426 CONFIG_LINKS = $CONFIG_LINKS
16427 CONFIG_COMMANDS = $CONFIG_COMMANDS
16428 $ $0 $@
16429
16430 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16431 "
16432
16433 _ACEOF
16434
16435 case $ac_config_files in *"
16436 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16437 esac
16438
16439 case $ac_config_headers in *"
16440 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16441 esac
16442
16443
16444 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16445 # Files that config.status was made for.
16446 config_files="$ac_config_files"
16447 config_headers="$ac_config_headers"
16448 config_commands="$ac_config_commands"
16449
16450 _ACEOF
16451
16452 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16453 ac_cs_usage="\
16454 \`$as_me' instantiates files and other configuration actions
16455 from templates according to the current configuration. Unless the files
16456 and actions are specified as TAGs, all are instantiated by default.
16457
16458 Usage: $0 [OPTION]... [TAG]...
16459
16460 -h, --help print this help, then exit
16461 -V, --version print version number and configuration settings, then exit
16462 --config print configuration, then exit
16463 -q, --quiet, --silent
16464 do not print progress messages
16465 -d, --debug don't remove temporary files
16466 --recheck update $as_me by reconfiguring in the same conditions
16467 --file=FILE[:TEMPLATE]
16468 instantiate the configuration file FILE
16469 --header=FILE[:TEMPLATE]
16470 instantiate the configuration header FILE
16471
16472 Configuration files:
16473 $config_files
16474
16475 Configuration headers:
16476 $config_headers
16477
16478 Configuration commands:
16479 $config_commands
16480
16481 Report bugs to <https://github.com/Joungkyun/libchardet/issues>."
16482
16483 _ACEOF
16484 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16485 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16486 ac_cs_version="\\
16487 libchardet config.status 1.0.6
16488 configured by $0, generated by GNU Autoconf 2.69,
16489 with options \\"\$ac_cs_config\\"
16490
16491 Copyright (C) 2012 Free Software Foundation, Inc.
16492 This config.status script is free software; the Free Software Foundation
16493 gives unlimited permission to copy, distribute and modify it."
16494
16495 ac_pwd='$ac_pwd'
16496 srcdir='$srcdir'
16497 INSTALL='$INSTALL'
16498 MKDIR_P='$MKDIR_P'
16499 AWK='$AWK'
16500 test -n "\$AWK" || AWK=awk
16501 _ACEOF
16502
16503 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16504 # The default lists apply if the user does not specify any file.
16505 ac_need_defaults=:
16506 while test $# != 0
16507 do
16508 case $1 in
16509 --*=?*)
16510 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16511 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16512 ac_shift=:
16513 ;;
16514 --*=)
16515 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16516 ac_optarg=
16517 ac_shift=:
16518 ;;
16519 *)
16520 ac_option=$1
16521 ac_optarg=$2
16522 ac_shift=shift
16523 ;;
16524 esac
16525
16526 case $ac_option in
16527 # Handling of the options.
16528 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16529 ac_cs_recheck=: ;;
16530 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16531 $as_echo "$ac_cs_version"; exit ;;
16532 --config | --confi | --conf | --con | --co | --c )
16533 $as_echo "$ac_cs_config"; exit ;;
16534 --debug | --debu | --deb | --de | --d | -d )
16535 debug=: ;;
16536 --file | --fil | --fi | --f )
16537 $ac_shift
16538 case $ac_optarg in
16539 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16540 '') as_fn_error $? "missing file argument" ;;
16541 esac
16542 as_fn_append CONFIG_FILES " '$ac_optarg'"
16543 ac_need_defaults=false;;
16544 --header | --heade | --head | --hea )
16545 $ac_shift
16546 case $ac_optarg in
16547 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16548 esac
16549 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16550 ac_need_defaults=false;;
16551 --he | --h)
16552 # Conflict between --help and --header
16553 as_fn_error $? "ambiguous option: \`$1'
16554 Try \`$0 --help' for more information.";;
16555 --help | --hel | -h )
16556 $as_echo "$ac_cs_usage"; exit ;;
16557 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16558 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16559 ac_cs_silent=: ;;
16560
16561 # This is an error.
16562 -*) as_fn_error $? "unrecognized option: \`$1'
16563 Try \`$0 --help' for more information." ;;
16564
16565 *) as_fn_append ac_config_targets " $1"
16566 ac_need_defaults=false ;;
16567
16568 esac
16569 shift
16570 done
16571
16572 ac_configure_extra_args=
16573
16574 if $ac_cs_silent; then
16575 exec 6>/dev/null
16576 ac_configure_extra_args="$ac_configure_extra_args --silent"
16577 fi
16578
16579 _ACEOF
16580 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16581 if \$ac_cs_recheck; then
16582 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16583 shift
16584 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16585 CONFIG_SHELL='$SHELL'
16586 export CONFIG_SHELL
16587 exec "\$@"
16588 fi
16589
16590 _ACEOF
16591 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16592 exec 5>>config.log
16593 {
16594 echo
16595 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16596 ## Running $as_me. ##
16597 _ASBOX
16598 $as_echo "$ac_log"
16599 } >&5
16600
16601 _ACEOF
16602 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16603 #
16604 # INIT-COMMANDS
16605 #
16606
16607
16608 # The HP-UX ksh and POSIX shell print the target directory to stdout
16609 # if CDPATH is set.
16610 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16611
16612 sed_quote_subst='$sed_quote_subst'
16613 double_quote_subst='$double_quote_subst'
16614 delay_variable_subst='$delay_variable_subst'
16615 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16616 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16617 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16618 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16619 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16620 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16621 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16622 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16623 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16624 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16625 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16626 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16627 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16628 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16629 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16630 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16631 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16632 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16633 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16634 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16635 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16636 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16637 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16638 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16639 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16640 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16641 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16642 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16643 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16644 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16645 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16646 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16647 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16648 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16649 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16650 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16651 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16652 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16653 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16654 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16655 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16656 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16657 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16658 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16659 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16660 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16661 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16662 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16663 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16664 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16665 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16666 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16667 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16668 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16669 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16670 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16671 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"`'
16672 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16673 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16674 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16675 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16676 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16677 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16678 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16679 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16680 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16681 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16682 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16683 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16684 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16685 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16686 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16687 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16688 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16689 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16690 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16691 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16692 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16693 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16694 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16695 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16696 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16697 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16698 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16699 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16700 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16701 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16702 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16703 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16704 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16705 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16706 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16707 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16708 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16709 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16710 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16711 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16712 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16713 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16714 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16715 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16716 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16717 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16718 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16719 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16720 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16721 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16722 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16723 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16724 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16725 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16726 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16727 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16728 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16729 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16730 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16731 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16732 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16733 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16734 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16735 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16736 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16737 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16738 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16739 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16740 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16741 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16742 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16743 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16744 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16745 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16746 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16747 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16748 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16749 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16750 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16751 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
16752 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
16753 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16754 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16755 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
16756 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
16757 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16758 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
16759 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
16760 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
16761 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
16762 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
16763 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
16764 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16765 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16766 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
16767 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16768 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16769 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16770 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16771 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16772 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16773 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
16774 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16775 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16776 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16777 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
16778 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
16779 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
16780 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
16781 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
16782 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
16783 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
16784 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
16785 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
16786 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16787 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16788 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16789 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16790 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16791 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
16792 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
16793 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
16794 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16795 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16796 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
16797 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
16798 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
16799
16800 LTCC='$LTCC'
16801 LTCFLAGS='$LTCFLAGS'
16802 compiler='$compiler_DEFAULT'
16803
16804 # A function that is used when there is no print builtin or printf.
16805 func_fallback_echo ()
16806 {
16807 eval 'cat <<_LTECHO_EOF
16808 \$1
16809 _LTECHO_EOF'
16810 }
16811
16812 # Quote evaled strings.
16813 for var in SHELL \
16814 ECHO \
16815 PATH_SEPARATOR \
16816 SED \
16817 GREP \
16818 EGREP \
16819 FGREP \
16820 LD \
16821 NM \
16822 LN_S \
16823 lt_SP2NL \
16824 lt_NL2SP \
16825 reload_flag \
16826 OBJDUMP \
16827 deplibs_check_method \
16828 file_magic_cmd \
16829 file_magic_glob \
16830 want_nocaseglob \
16831 DLLTOOL \
16832 sharedlib_from_linklib_cmd \
16833 AR \
16834 AR_FLAGS \
16835 archiver_list_spec \
16836 STRIP \
16837 RANLIB \
16838 CC \
16839 CFLAGS \
16840 compiler \
16841 lt_cv_sys_global_symbol_pipe \
16842 lt_cv_sys_global_symbol_to_cdecl \
16843 lt_cv_sys_global_symbol_to_c_name_address \
16844 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16845 nm_file_list_spec \
16846 lt_prog_compiler_no_builtin_flag \
16847 lt_prog_compiler_pic \
16848 lt_prog_compiler_wl \
16849 lt_prog_compiler_static \
16850 lt_cv_prog_compiler_c_o \
16851 need_locks \
16852 MANIFEST_TOOL \
16853 DSYMUTIL \
16854 NMEDIT \
16855 LIPO \
16856 OTOOL \
16857 OTOOL64 \
16858 shrext_cmds \
16859 export_dynamic_flag_spec \
16860 whole_archive_flag_spec \
16861 compiler_needs_object \
16862 with_gnu_ld \
16863 allow_undefined_flag \
16864 no_undefined_flag \
16865 hardcode_libdir_flag_spec \
16866 hardcode_libdir_separator \
16867 exclude_expsyms \
16868 include_expsyms \
16869 file_list_spec \
16870 variables_saved_for_relink \
16871 libname_spec \
16872 library_names_spec \
16873 soname_spec \
16874 install_override_mode \
16875 finish_eval \
16876 old_striplib \
16877 striplib \
16878 compiler_lib_search_dirs \
16879 predep_objects \
16880 postdep_objects \
16881 predeps \
16882 postdeps \
16883 compiler_lib_search_path \
16884 LD_CXX \
16885 reload_flag_CXX \
16886 compiler_CXX \
16887 lt_prog_compiler_no_builtin_flag_CXX \
16888 lt_prog_compiler_pic_CXX \
16889 lt_prog_compiler_wl_CXX \
16890 lt_prog_compiler_static_CXX \
16891 lt_cv_prog_compiler_c_o_CXX \
16892 export_dynamic_flag_spec_CXX \
16893 whole_archive_flag_spec_CXX \
16894 compiler_needs_object_CXX \
16895 with_gnu_ld_CXX \
16896 allow_undefined_flag_CXX \
16897 no_undefined_flag_CXX \
16898 hardcode_libdir_flag_spec_CXX \
16899 hardcode_libdir_separator_CXX \
16900 exclude_expsyms_CXX \
16901 include_expsyms_CXX \
16902 file_list_spec_CXX \
16903 compiler_lib_search_dirs_CXX \
16904 predep_objects_CXX \
16905 postdep_objects_CXX \
16906 predeps_CXX \
16907 postdeps_CXX \
16908 compiler_lib_search_path_CXX; do
16909 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16910 *[\\\\\\\`\\"\\\$]*)
16911 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16912 ;;
16913 *)
16914 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16915 ;;
16916 esac
16917 done
16918
16919 # Double-quote double-evaled strings.
16920 for var in reload_cmds \
16921 old_postinstall_cmds \
16922 old_postuninstall_cmds \
16923 old_archive_cmds \
16924 extract_expsyms_cmds \
16925 old_archive_from_new_cmds \
16926 old_archive_from_expsyms_cmds \
16927 archive_cmds \
16928 archive_expsym_cmds \
16929 module_cmds \
16930 module_expsym_cmds \
16931 export_symbols_cmds \
16932 prelink_cmds \
16933 postlink_cmds \
16934 postinstall_cmds \
16935 postuninstall_cmds \
16936 finish_cmds \
16937 sys_lib_search_path_spec \
16938 sys_lib_dlsearch_path_spec \
16939 reload_cmds_CXX \
16940 old_archive_cmds_CXX \
16941 old_archive_from_new_cmds_CXX \
16942 old_archive_from_expsyms_cmds_CXX \
16943 archive_cmds_CXX \
16944 archive_expsym_cmds_CXX \
16945 module_cmds_CXX \
16946 module_expsym_cmds_CXX \
16947 export_symbols_cmds_CXX \
16948 prelink_cmds_CXX \
16949 postlink_cmds_CXX; do
16950 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16951 *[\\\\\\\`\\"\\\$]*)
16952 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16953 ;;
16954 *)
16955 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16956 ;;
16957 esac
16958 done
16959
16960 ac_aux_dir='$ac_aux_dir'
16961 xsi_shell='$xsi_shell'
16962 lt_shell_append='$lt_shell_append'
16963
16964 # See if we are running on zsh, and set the options which allow our
16965 # commands through without removal of \ escapes INIT.
16966 if test -n "\${ZSH_VERSION+set}" ; then
16967 setopt NO_GLOB_SUBST
16968 fi
16969
16970
16971 PACKAGE='$PACKAGE'
16972 VERSION='$VERSION'
16973 TIMESTAMP='$TIMESTAMP'
16974 RM='$RM'
16975 ofile='$ofile'
16976
16977
16978
16979
16980
16981
16982 _ACEOF
16983
16984 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16985
16986 # Handling of arguments.
16987 for ac_config_target in $ac_config_targets
16988 do
16989 case $ac_config_target in
16990 "chardet-config.h") CONFIG_HEADERS="$CONFIG_HEADERS chardet-config.h" ;;
16991 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16992 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16993 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16994 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
16995 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
16996 "chardet-config") CONFIG_FILES="$CONFIG_FILES chardet-config" ;;
16997 "chardet.pc") CONFIG_FILES="$CONFIG_FILES chardet.pc" ;;
16998 "libchardet.spec") CONFIG_FILES="$CONFIG_FILES libchardet.spec" ;;
16999
17000 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17001 esac
17002 done
17003
17004
17005 # If the user did not use the arguments to specify the items to instantiate,
17006 # then the envvar interface is used. Set only those that are not.
17007 # We use the long form for the default assignment because of an extremely
17008 # bizarre bug on SunOS 4.1.3.
17009 if $ac_need_defaults; then
17010 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17011 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17012 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17013 fi
17014
17015 # Have a temporary directory for convenience. Make it in the build tree
17016 # simply because there is no reason against having it here, and in addition,
17017 # creating and moving files from /tmp can sometimes cause problems.
17018 # Hook for its removal unless debugging.
17019 # Note that there is a small window in which the directory will not be cleaned:
17020 # after its creation but before its name has been assigned to `$tmp'.
17021 $debug ||
17022 {
17023 tmp= ac_tmp=
17024 trap 'exit_status=$?
17025 : "${ac_tmp:=$tmp}"
17026 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17027 ' 0
17028 trap 'as_fn_exit 1' 1 2 13 15
17029 }
17030 # Create a (secure) tmp directory for tmp files.
17031
17032 {
17033 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17034 test -d "$tmp"
17035 } ||
17036 {
17037 tmp=./conf$$-$RANDOM
17038 (umask 077 && mkdir "$tmp")
17039 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17040 ac_tmp=$tmp
17041
17042 # Set up the scripts for CONFIG_FILES section.
17043 # No need to generate them if there are no CONFIG_FILES.
17044 # This happens for instance with `./config.status config.h'.
17045 if test -n "$CONFIG_FILES"; then
17046
17047
17048 ac_cr=`echo X | tr X '\015'`
17049 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17050 # But we know of no other shell where ac_cr would be empty at this
17051 # point, so we can use a bashism as a fallback.
17052 if test "x$ac_cr" = x; then
17053 eval ac_cr=\$\'\\r\'
17054 fi
17055 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17056 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17057 ac_cs_awk_cr='\\r'
17058 else
17059 ac_cs_awk_cr=$ac_cr
17060 fi
17061
17062 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17063 _ACEOF
17064
17065
17066 {
17067 echo "cat >conf$$subs.awk <<_ACEOF" &&
17068 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17069 echo "_ACEOF"
17070 } >conf$$subs.sh ||
17071 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17072 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17073 ac_delim='%!_!# '
17074 for ac_last_try in false false false false false :; do
17075 . ./conf$$subs.sh ||
17076 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17077
17078 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17079 if test $ac_delim_n = $ac_delim_num; then
17080 break
17081 elif $ac_last_try; then
17082 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17083 else
17084 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17085 fi
17086 done
17087 rm -f conf$$subs.sh
17088
17089 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17090 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17091 _ACEOF
17092 sed -n '
17093 h
17094 s/^/S["/; s/!.*/"]=/
17095 p
17096 g
17097 s/^[^!]*!//
17098 :repl
17099 t repl
17100 s/'"$ac_delim"'$//
17101 t delim
17102 :nl
17103 h
17104 s/\(.\{148\}\)..*/\1/
17105 t more1
17106 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17107 p
17108 n
17109 b repl
17110 :more1
17111 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17112 p
17113 g
17114 s/.\{148\}//
17115 t nl
17116 :delim
17117 h
17118 s/\(.\{148\}\)..*/\1/
17119 t more2
17120 s/["\\]/\\&/g; s/^/"/; s/$/"/
17121 p
17122 b
17123 :more2
17124 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17125 p
17126 g
17127 s/.\{148\}//
17128 t delim
17129 ' <conf$$subs.awk | sed '
17130 /^[^""]/{
17131 N
17132 s/\n//
17133 }
17134 ' >>$CONFIG_STATUS || ac_write_fail=1
17135 rm -f conf$$subs.awk
17136 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17137 _ACAWK
17138 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17139 for (key in S) S_is_set[key] = 1
17140 FS = ""
17141
17142 }
17143 {
17144 line = $ 0
17145 nfields = split(line, field, "@")
17146 substed = 0
17147 len = length(field[1])
17148 for (i = 2; i < nfields; i++) {
17149 key = field[i]
17150 keylen = length(key)
17151 if (S_is_set[key]) {
17152 value = S[key]
17153 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17154 len += length(value) + length(field[++i])
17155 substed = 1
17156 } else
17157 len += 1 + keylen
17158 }
17159
17160 print line
17161 }
17162
17163 _ACAWK
17164 _ACEOF
17165 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17166 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17167 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17168 else
17169 cat
17170 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17171 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17172 _ACEOF
17173
17174 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17175 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17176 # trailing colons and then remove the whole line if VPATH becomes empty
17177 # (actually we leave an empty line to preserve line numbers).
17178 if test "x$srcdir" = x.; then
17179 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17180 h
17181 s///
17182 s/^/:/
17183 s/[ ]*$/:/
17184 s/:\$(srcdir):/:/g
17185 s/:\${srcdir}:/:/g
17186 s/:@srcdir@:/:/g
17187 s/^:*//
17188 s/:*$//
17189 x
17190 s/\(=[ ]*\).*/\1/
17191 G
17192 s/\n//
17193 s/^[^=]*=[ ]*$//
17194 }'
17195 fi
17196
17197 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17198 fi # test -n "$CONFIG_FILES"
17199
17200 # Set up the scripts for CONFIG_HEADERS section.
17201 # No need to generate them if there are no CONFIG_HEADERS.
17202 # This happens for instance with `./config.status Makefile'.
17203 if test -n "$CONFIG_HEADERS"; then
17204 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17205 BEGIN {
17206 _ACEOF
17207
17208 # Transform confdefs.h into an awk script `defines.awk', embedded as
17209 # here-document in config.status, that substitutes the proper values into
17210 # config.h.in to produce config.h.
17211
17212 # Create a delimiter string that does not exist in confdefs.h, to ease
17213 # handling of long lines.
17214 ac_delim='%!_!# '
17215 for ac_last_try in false false :; do
17216 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17217 if test -z "$ac_tt"; then
17218 break
17219 elif $ac_last_try; then
17220 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17221 else
17222 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17223 fi
17224 done
17225
17226 # For the awk script, D is an array of macro values keyed by name,
17227 # likewise P contains macro parameters if any. Preserve backslash
17228 # newline sequences.
17229
17230 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17231 sed -n '
17232 s/.\{148\}/&'"$ac_delim"'/g
17233 t rset
17234 :rset
17235 s/^[ ]*#[ ]*define[ ][ ]*/ /
17236 t def
17237 d
17238 :def
17239 s/\\$//
17240 t bsnl
17241 s/["\\]/\\&/g
17242 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17243 D["\1"]=" \3"/p
17244 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17245 d
17246 :bsnl
17247 s/["\\]/\\&/g
17248 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17249 D["\1"]=" \3\\\\\\n"\\/p
17250 t cont
17251 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17252 t cont
17253 d
17254 :cont
17255 n
17256 s/.\{148\}/&'"$ac_delim"'/g
17257 t clear
17258 :clear
17259 s/\\$//
17260 t bsnlc
17261 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17262 d
17263 :bsnlc
17264 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17265 b cont
17266 ' <confdefs.h | sed '
17267 s/'"$ac_delim"'/"\\\
17268 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17269
17270 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17271 for (key in D) D_is_set[key] = 1
17272 FS = ""
17273 }
17274 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17275 line = \$ 0
17276 split(line, arg, " ")
17277 if (arg[1] == "#") {
17278 defundef = arg[2]
17279 mac1 = arg[3]
17280 } else {
17281 defundef = substr(arg[1], 2)
17282 mac1 = arg[2]
17283 }
17284 split(mac1, mac2, "(") #)
17285 macro = mac2[1]
17286 prefix = substr(line, 1, index(line, defundef) - 1)
17287 if (D_is_set[macro]) {
17288 # Preserve the white space surrounding the "#".
17289 print prefix "define", macro P[macro] D[macro]
17290 next
17291 } else {
17292 # Replace #undef with comments. This is necessary, for example,
17293 # in the case of _POSIX_SOURCE, which is predefined and required
17294 # on some systems where configure will not decide to define it.
17295 if (defundef == "undef") {
17296 print "/*", prefix defundef, macro, "*/"
17297 next
17298 }
17299 }
17300 }
17301 { print }
17302 _ACAWK
17303 _ACEOF
17304 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17305 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17306 fi # test -n "$CONFIG_HEADERS"
17307
17308
17309 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17310 shift
17311 for ac_tag
17312 do
17313 case $ac_tag in
17314 :[FHLC]) ac_mode=$ac_tag; continue;;
17315 esac
17316 case $ac_mode$ac_tag in
17317 :[FHL]*:*);;
17318 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17319 :[FH]-) ac_tag=-:-;;
17320 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17321 esac
17322 ac_save_IFS=$IFS
17323 IFS=:
17324 set x $ac_tag
17325 IFS=$ac_save_IFS
17326 shift
17327 ac_file=$1
17328 shift
17329
17330 case $ac_mode in
17331 :L) ac_source=$1;;
17332 :[FH])
17333 ac_file_inputs=
17334 for ac_f
17335 do
17336 case $ac_f in
17337 -) ac_f="$ac_tmp/stdin";;
17338 *) # Look for the file first in the build tree, then in the source tree
17339 # (if the path is not absolute). The absolute path cannot be DOS-style,
17340 # because $ac_f cannot contain `:'.
17341 test -f "$ac_f" ||
17342 case $ac_f in
17343 [\\/$]*) false;;
17344 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17345 esac ||
17346 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17347 esac
17348 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17349 as_fn_append ac_file_inputs " '$ac_f'"
17350 done
17351
17352 # Let's still pretend it is `configure' which instantiates (i.e., don't
17353 # use $as_me), people would be surprised to read:
17354 # /* config.h. Generated by config.status. */
17355 configure_input='Generated from '`
17356 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17357 `' by configure.'
17358 if test x"$ac_file" != x-; then
17359 configure_input="$ac_file. $configure_input"
17360 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17361 $as_echo "$as_me: creating $ac_file" >&6;}
17362 fi
17363 # Neutralize special characters interpreted by sed in replacement strings.
17364 case $configure_input in #(
17365 *\&* | *\|* | *\\* )
17366 ac_sed_conf_input=`$as_echo "$configure_input" |
17367 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17368 *) ac_sed_conf_input=$configure_input;;
17369 esac
17370
17371 case $ac_tag in
17372 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17373 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17374 esac
17375 ;;
17376 esac
17377
17378 ac_dir=`$as_dirname -- "$ac_file" ||
17379 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17380 X"$ac_file" : 'X\(//\)[^/]' \| \
17381 X"$ac_file" : 'X\(//\)$' \| \
17382 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17383 $as_echo X"$ac_file" |
17384 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17385 s//\1/
17386 q
17387 }
17388 /^X\(\/\/\)[^/].*/{
17389 s//\1/
17390 q
17391 }
17392 /^X\(\/\/\)$/{
17393 s//\1/
17394 q
17395 }
17396 /^X\(\/\).*/{
17397 s//\1/
17398 q
17399 }
17400 s/.*/./; q'`
17401 as_dir="$ac_dir"; as_fn_mkdir_p
17402 ac_builddir=.
17403
17404 case "$ac_dir" in
17405 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17406 *)
17407 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17408 # A ".." for each directory in $ac_dir_suffix.
17409 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17410 case $ac_top_builddir_sub in
17411 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17412 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17413 esac ;;
17414 esac
17415 ac_abs_top_builddir=$ac_pwd
17416 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17417 # for backward compatibility:
17418 ac_top_builddir=$ac_top_build_prefix
17419
17420 case $srcdir in
17421 .) # We are building in place.
17422 ac_srcdir=.
17423 ac_top_srcdir=$ac_top_builddir_sub
17424 ac_abs_top_srcdir=$ac_pwd ;;
17425 [\\/]* | ?:[\\/]* ) # Absolute name.
17426 ac_srcdir=$srcdir$ac_dir_suffix;
17427 ac_top_srcdir=$srcdir
17428 ac_abs_top_srcdir=$srcdir ;;
17429 *) # Relative name.
17430 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17431 ac_top_srcdir=$ac_top_build_prefix$srcdir
17432 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17433 esac
17434 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17435
17436
17437 case $ac_mode in
17438 :F)
17439 #
17440 # CONFIG_FILE
17441 #
17442
17443 case $INSTALL in
17444 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17445 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17446 esac
17447 ac_MKDIR_P=$MKDIR_P
17448 case $MKDIR_P in
17449 [\\/$]* | ?:[\\/]* ) ;;
17450 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17451 esac
17452 _ACEOF
17453
17454 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17455 # If the template does not know about datarootdir, expand it.
17456 # FIXME: This hack should be removed a few years after 2.60.
17457 ac_datarootdir_hack=; ac_datarootdir_seen=
17458 ac_sed_dataroot='
17459 /datarootdir/ {
17460 p
17461 q
17462 }
17463 /@datadir@/p
17464 /@docdir@/p
17465 /@infodir@/p
17466 /@localedir@/p
17467 /@mandir@/p'
17468 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17469 *datarootdir*) ac_datarootdir_seen=yes;;
17470 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17472 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17473 _ACEOF
17474 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17475 ac_datarootdir_hack='
17476 s&@datadir@&$datadir&g
17477 s&@docdir@&$docdir&g
17478 s&@infodir@&$infodir&g
17479 s&@localedir@&$localedir&g
17480 s&@mandir@&$mandir&g
17481 s&\\\${datarootdir}&$datarootdir&g' ;;
17482 esac
17483 _ACEOF
17484
17485 # Neutralize VPATH when `$srcdir' = `.'.
17486 # Shell code in configure.ac might set extrasub.
17487 # FIXME: do we really want to maintain this feature?
17488 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17489 ac_sed_extra="$ac_vpsub
17490 $extrasub
17491 _ACEOF
17492 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17493 :t
17494 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17495 s|@configure_input@|$ac_sed_conf_input|;t t
17496 s&@top_builddir@&$ac_top_builddir_sub&;t t
17497 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17498 s&@srcdir@&$ac_srcdir&;t t
17499 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17500 s&@top_srcdir@&$ac_top_srcdir&;t t
17501 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17502 s&@builddir@&$ac_builddir&;t t
17503 s&@abs_builddir@&$ac_abs_builddir&;t t
17504 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17505 s&@INSTALL@&$ac_INSTALL&;t t
17506 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17507 $ac_datarootdir_hack
17508 "
17509 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17510 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17511
17512 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17513 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17514 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17515 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17517 which seems to be undefined. Please make sure it is defined" >&5
17518 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17519 which seems to be undefined. Please make sure it is defined" >&2;}
17520
17521 rm -f "$ac_tmp/stdin"
17522 case $ac_file in
17523 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17524 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17525 esac \
17526 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17527 ;;
17528 :H)
17529 #
17530 # CONFIG_HEADER
17531 #
17532 if test x"$ac_file" != x-; then
17533 {
17534 $as_echo "/* $configure_input */" \
17535 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17536 } >"$ac_tmp/config.h" \
17537 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17538 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17539 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17540 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17541 else
17542 rm -f "$ac_file"
17543 mv "$ac_tmp/config.h" "$ac_file" \
17544 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17545 fi
17546 else
17547 $as_echo "/* $configure_input */" \
17548 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17549 || as_fn_error $? "could not create -" "$LINENO" 5
17550 fi
17551 # Compute "$ac_file"'s index in $config_headers.
17552 _am_arg="$ac_file"
17553 _am_stamp_count=1
17554 for _am_header in $config_headers :; do
17555 case $_am_header in
17556 $_am_arg | $_am_arg:* )
17557 break ;;
17558 * )
17559 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17560 esac
17561 done
17562 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17563 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17564 X"$_am_arg" : 'X\(//\)[^/]' \| \
17565 X"$_am_arg" : 'X\(//\)$' \| \
17566 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17567 $as_echo X"$_am_arg" |
17568 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17569 s//\1/
17570 q
17571 }
17572 /^X\(\/\/\)[^/].*/{
17573 s//\1/
17574 q
17575 }
17576 /^X\(\/\/\)$/{
17577 s//\1/
17578 q
17579 }
17580 /^X\(\/\).*/{
17581 s//\1/
17582 q
17583 }
17584 s/.*/./; q'`/stamp-h$_am_stamp_count
17585 ;;
17586
17587 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17588 $as_echo "$as_me: executing $ac_file commands" >&6;}
17589 ;;
17590 esac
17591
17592
17593 case $ac_file$ac_mode in
17594 "libtool":C)
17595
17596 # See if we are running on zsh, and set the options which allow our
17597 # commands through without removal of \ escapes.
17598 if test -n "${ZSH_VERSION+set}" ; then
17599 setopt NO_GLOB_SUBST
17600 fi
17601
17602 cfgfile="${ofile}T"
17603 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17604 $RM "$cfgfile"
17605
17606 cat <<_LT_EOF >> "$cfgfile"
17607 #! $SHELL
17608
17609 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17610 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17611 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17612 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17613 #
17614 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17615 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
17616 # Foundation, Inc.
17617 # Written by Gordon Matzigkeit, 1996
17618 #
17619 # This file is part of GNU Libtool.
17620 #
17621 # GNU Libtool is free software; you can redistribute it and/or
17622 # modify it under the terms of the GNU General Public License as
17623 # published by the Free Software Foundation; either version 2 of
17624 # the License, or (at your option) any later version.
17625 #
17626 # As a special exception to the GNU General Public License,
17627 # if you distribute this file as part of a program or library that
17628 # is built using GNU Libtool, you may include this file under the
17629 # same distribution terms that you use for the rest of that program.
17630 #
17631 # GNU Libtool is distributed in the hope that it will be useful,
17632 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17633 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17634 # GNU General Public License for more details.
17635 #
17636 # You should have received a copy of the GNU General Public License
17637 # along with GNU Libtool; see the file COPYING. If not, a copy
17638 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17639 # obtained by writing to the Free Software Foundation, Inc.,
17640 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17641
17642
17643 # The names of the tagged configurations supported by this script.
17644 available_tags="CXX "
17645
17646 # ### BEGIN LIBTOOL CONFIG
17647
17648 # Which release of libtool.m4 was used?
17649 macro_version=$macro_version
17650 macro_revision=$macro_revision
17651
17652 # Whether or not to build shared libraries.
17653 build_libtool_libs=$enable_shared
17654
17655 # Whether or not to build static libraries.
17656 build_old_libs=$enable_static
17657
17658 # What type of objects to build.
17659 pic_mode=$pic_mode
17660
17661 # Whether or not to optimize for fast installation.
17662 fast_install=$enable_fast_install
17663
17664 # Shell to use when invoking shell scripts.
17665 SHELL=$lt_SHELL
17666
17667 # An echo program that protects backslashes.
17668 ECHO=$lt_ECHO
17669
17670 # The PATH separator for the build system.
17671 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17672
17673 # The host system.
17674 host_alias=$host_alias
17675 host=$host
17676 host_os=$host_os
17677
17678 # The build system.
17679 build_alias=$build_alias
17680 build=$build
17681 build_os=$build_os
17682
17683 # A sed program that does not truncate output.
17684 SED=$lt_SED
17685
17686 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17687 Xsed="\$SED -e 1s/^X//"
17688
17689 # A grep program that handles long lines.
17690 GREP=$lt_GREP
17691
17692 # An ERE matcher.
17693 EGREP=$lt_EGREP
17694
17695 # A literal string matcher.
17696 FGREP=$lt_FGREP
17697
17698 # A BSD- or MS-compatible name lister.
17699 NM=$lt_NM
17700
17701 # Whether we need soft or hard links.
17702 LN_S=$lt_LN_S
17703
17704 # What is the maximum length of a command?
17705 max_cmd_len=$max_cmd_len
17706
17707 # Object file suffix (normally "o").
17708 objext=$ac_objext
17709
17710 # Executable file suffix (normally "").
17711 exeext=$exeext
17712
17713 # whether the shell understands "unset".
17714 lt_unset=$lt_unset
17715
17716 # turn spaces into newlines.
17717 SP2NL=$lt_lt_SP2NL
17718
17719 # turn newlines into spaces.
17720 NL2SP=$lt_lt_NL2SP
17721
17722 # convert \$build file names to \$host format.
17723 to_host_file_cmd=$lt_cv_to_host_file_cmd
17724
17725 # convert \$build files to toolchain format.
17726 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17727
17728 # An object symbol dumper.
17729 OBJDUMP=$lt_OBJDUMP
17730
17731 # Method to check whether dependent libraries are shared objects.
17732 deplibs_check_method=$lt_deplibs_check_method
17733
17734 # Command to use when deplibs_check_method = "file_magic".
17735 file_magic_cmd=$lt_file_magic_cmd
17736
17737 # How to find potential files when deplibs_check_method = "file_magic".
17738 file_magic_glob=$lt_file_magic_glob
17739
17740 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17741 want_nocaseglob=$lt_want_nocaseglob
17742
17743 # DLL creation program.
17744 DLLTOOL=$lt_DLLTOOL
17745
17746 # Command to associate shared and link libraries.
17747 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17748
17749 # The archiver.
17750 AR=$lt_AR
17751
17752 # Flags to create an archive.
17753 AR_FLAGS=$lt_AR_FLAGS
17754
17755 # How to feed a file listing to the archiver.
17756 archiver_list_spec=$lt_archiver_list_spec
17757
17758 # A symbol stripping program.
17759 STRIP=$lt_STRIP
17760
17761 # Commands used to install an old-style archive.
17762 RANLIB=$lt_RANLIB
17763 old_postinstall_cmds=$lt_old_postinstall_cmds
17764 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17765
17766 # Whether to use a lock for old archive extraction.
17767 lock_old_archive_extraction=$lock_old_archive_extraction
17768
17769 # A C compiler.
17770 LTCC=$lt_CC
17771
17772 # LTCC compiler flags.
17773 LTCFLAGS=$lt_CFLAGS
17774
17775 # Take the output of nm and produce a listing of raw symbols and C names.
17776 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17777
17778 # Transform the output of nm in a proper C declaration.
17779 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17780
17781 # Transform the output of nm in a C name address pair.
17782 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17783
17784 # Transform the output of nm in a C name address pair when lib prefix is needed.
17785 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17786
17787 # Specify filename containing input files for \$NM.
17788 nm_file_list_spec=$lt_nm_file_list_spec
17789
17790 # The root where to search for dependent libraries,and in which our libraries should be installed.
17791 lt_sysroot=$lt_sysroot
17792
17793 # The name of the directory that contains temporary libtool files.
17794 objdir=$objdir
17795
17796 # Used to examine libraries when file_magic_cmd begins with "file".
17797 MAGIC_CMD=$MAGIC_CMD
17798
17799 # Must we lock files when doing compilation?
17800 need_locks=$lt_need_locks
17801
17802 # Manifest tool.
17803 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17804
17805 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17806 DSYMUTIL=$lt_DSYMUTIL
17807
17808 # Tool to change global to local symbols on Mac OS X.
17809 NMEDIT=$lt_NMEDIT
17810
17811 # Tool to manipulate fat objects and archives on Mac OS X.
17812 LIPO=$lt_LIPO
17813
17814 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17815 OTOOL=$lt_OTOOL
17816
17817 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17818 OTOOL64=$lt_OTOOL64
17819
17820 # Old archive suffix (normally "a").
17821 libext=$libext
17822
17823 # Shared library suffix (normally ".so").
17824 shrext_cmds=$lt_shrext_cmds
17825
17826 # The commands to extract the exported symbol list from a shared archive.
17827 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17828
17829 # Variables whose values should be saved in libtool wrapper scripts and
17830 # restored at link time.
17831 variables_saved_for_relink=$lt_variables_saved_for_relink
17832
17833 # Do we need the "lib" prefix for modules?
17834 need_lib_prefix=$need_lib_prefix
17835
17836 # Do we need a version for libraries?
17837 need_version=$need_version
17838
17839 # Library versioning type.
17840 version_type=$version_type
17841
17842 # Shared library runtime path variable.
17843 runpath_var=$runpath_var
17844
17845 # Shared library path variable.
17846 shlibpath_var=$shlibpath_var
17847
17848 # Is shlibpath searched before the hard-coded library search path?
17849 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17850
17851 # Format of library name prefix.
17852 libname_spec=$lt_libname_spec
17853
17854 # List of archive names. First name is the real one, the rest are links.
17855 # The last name is the one that the linker finds with -lNAME
17856 library_names_spec=$lt_library_names_spec
17857
17858 # The coded name of the library, if different from the real name.
17859 soname_spec=$lt_soname_spec
17860
17861 # Permission mode override for installation of shared libraries.
17862 install_override_mode=$lt_install_override_mode
17863
17864 # Command to use after installation of a shared archive.
17865 postinstall_cmds=$lt_postinstall_cmds
17866
17867 # Command to use after uninstallation of a shared archive.
17868 postuninstall_cmds=$lt_postuninstall_cmds
17869
17870 # Commands used to finish a libtool library installation in a directory.
17871 finish_cmds=$lt_finish_cmds
17872
17873 # As "finish_cmds", except a single script fragment to be evaled but
17874 # not shown.
17875 finish_eval=$lt_finish_eval
17876
17877 # Whether we should hardcode library paths into libraries.
17878 hardcode_into_libs=$hardcode_into_libs
17879
17880 # Compile-time system search path for libraries.
17881 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17882
17883 # Run-time system search path for libraries.
17884 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17885
17886 # Whether dlopen is supported.
17887 dlopen_support=$enable_dlopen
17888
17889 # Whether dlopen of programs is supported.
17890 dlopen_self=$enable_dlopen_self
17891
17892 # Whether dlopen of statically linked programs is supported.
17893 dlopen_self_static=$enable_dlopen_self_static
17894
17895 # Commands to strip libraries.
17896 old_striplib=$lt_old_striplib
17897 striplib=$lt_striplib
17898
17899
17900 # The linker used to build libraries.
17901 LD=$lt_LD
17902
17903 # How to create reloadable object files.
17904 reload_flag=$lt_reload_flag
17905 reload_cmds=$lt_reload_cmds
17906
17907 # Commands used to build an old-style archive.
17908 old_archive_cmds=$lt_old_archive_cmds
17909
17910 # A language specific compiler.
17911 CC=$lt_compiler
17912
17913 # Is the compiler the GNU compiler?
17914 with_gcc=$GCC
17915
17916 # Compiler flag to turn off builtin functions.
17917 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17918
17919 # Additional compiler flags for building library objects.
17920 pic_flag=$lt_lt_prog_compiler_pic
17921
17922 # How to pass a linker flag through the compiler.
17923 wl=$lt_lt_prog_compiler_wl
17924
17925 # Compiler flag to prevent dynamic linking.
17926 link_static_flag=$lt_lt_prog_compiler_static
17927
17928 # Does compiler simultaneously support -c and -o options?
17929 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17930
17931 # Whether or not to add -lc for building shared libraries.
17932 build_libtool_need_lc=$archive_cmds_need_lc
17933
17934 # Whether or not to disallow shared libs when runtime libs are static.
17935 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17936
17937 # Compiler flag to allow reflexive dlopens.
17938 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17939
17940 # Compiler flag to generate shared objects directly from archives.
17941 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17942
17943 # Whether the compiler copes with passing no objects directly.
17944 compiler_needs_object=$lt_compiler_needs_object
17945
17946 # Create an old-style archive from a shared archive.
17947 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17948
17949 # Create a temporary old-style archive to link instead of a shared archive.
17950 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17951
17952 # Commands used to build a shared archive.
17953 archive_cmds=$lt_archive_cmds
17954 archive_expsym_cmds=$lt_archive_expsym_cmds
17955
17956 # Commands used to build a loadable module if different from building
17957 # a shared archive.
17958 module_cmds=$lt_module_cmds
17959 module_expsym_cmds=$lt_module_expsym_cmds
17960
17961 # Whether we are building with GNU ld or not.
17962 with_gnu_ld=$lt_with_gnu_ld
17963
17964 # Flag that allows shared libraries with undefined symbols to be built.
17965 allow_undefined_flag=$lt_allow_undefined_flag
17966
17967 # Flag that enforces no undefined symbols.
17968 no_undefined_flag=$lt_no_undefined_flag
17969
17970 # Flag to hardcode \$libdir into a binary during linking.
17971 # This must work even if \$libdir does not exist
17972 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17973
17974 # Whether we need a single "-rpath" flag with a separated argument.
17975 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17976
17977 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17978 # DIR into the resulting binary.
17979 hardcode_direct=$hardcode_direct
17980
17981 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17982 # DIR into the resulting binary and the resulting library dependency is
17983 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17984 # library is relocated.
17985 hardcode_direct_absolute=$hardcode_direct_absolute
17986
17987 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17988 # into the resulting binary.
17989 hardcode_minus_L=$hardcode_minus_L
17990
17991 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17992 # into the resulting binary.
17993 hardcode_shlibpath_var=$hardcode_shlibpath_var
17994
17995 # Set to "yes" if building a shared library automatically hardcodes DIR
17996 # into the library and all subsequent libraries and executables linked
17997 # against it.
17998 hardcode_automatic=$hardcode_automatic
17999
18000 # Set to yes if linker adds runtime paths of dependent libraries
18001 # to runtime path list.
18002 inherit_rpath=$inherit_rpath
18003
18004 # Whether libtool must link a program against all its dependency libraries.
18005 link_all_deplibs=$link_all_deplibs
18006
18007 # Set to "yes" if exported symbols are required.
18008 always_export_symbols=$always_export_symbols
18009
18010 # The commands to list exported symbols.
18011 export_symbols_cmds=$lt_export_symbols_cmds
18012
18013 # Symbols that should not be listed in the preloaded symbols.
18014 exclude_expsyms=$lt_exclude_expsyms
18015
18016 # Symbols that must always be exported.
18017 include_expsyms=$lt_include_expsyms
18018
18019 # Commands necessary for linking programs (against libraries) with templates.
18020 prelink_cmds=$lt_prelink_cmds
18021
18022 # Commands necessary for finishing linking programs.
18023 postlink_cmds=$lt_postlink_cmds
18024
18025 # Specify filename containing input files.
18026 file_list_spec=$lt_file_list_spec
18027
18028 # How to hardcode a shared library path into an executable.
18029 hardcode_action=$hardcode_action
18030
18031 # The directories searched by this compiler when creating a shared library.
18032 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18033
18034 # Dependencies to place before and after the objects being linked to
18035 # create a shared library.
18036 predep_objects=$lt_predep_objects
18037 postdep_objects=$lt_postdep_objects
18038 predeps=$lt_predeps
18039 postdeps=$lt_postdeps
18040
18041 # The library search path used internally by the compiler when linking
18042 # a shared library.
18043 compiler_lib_search_path=$lt_compiler_lib_search_path
18044
18045 # ### END LIBTOOL CONFIG
18046
18047 _LT_EOF
18048
18049 case $host_os in
18050 aix3*)
18051 cat <<\_LT_EOF >> "$cfgfile"
18052 # AIX sometimes has problems with the GCC collect2 program. For some
18053 # reason, if we set the COLLECT_NAMES environment variable, the problems
18054 # vanish in a puff of smoke.
18055 if test "X${COLLECT_NAMES+set}" != Xset; then
18056 COLLECT_NAMES=
18057 export COLLECT_NAMES
18058 fi
18059 _LT_EOF
18060 ;;
18061 esac
18062
18063
18064 ltmain="$ac_aux_dir/ltmain.sh"
18065
18066
18067 # We use sed instead of cat because bash on DJGPP gets confused if
18068 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18069 # text mode, it properly converts lines to CR/LF. This bash problem
18070 # is reportedly fixed, but why not run on old versions too?
18071 sed '$q' "$ltmain" >> "$cfgfile" \
18072 || (rm -f "$cfgfile"; exit 1)
18073
18074 if test x"$xsi_shell" = xyes; then
18075 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18076 func_dirname ()\
18077 {\
18078 \ case ${1} in\
18079 \ */*) func_dirname_result="${1%/*}${2}" ;;\
18080 \ * ) func_dirname_result="${3}" ;;\
18081 \ esac\
18082 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18083 && mv -f "$cfgfile.tmp" "$cfgfile" \
18084 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18085 test 0 -eq $? || _lt_function_replace_fail=:
18086
18087
18088 sed -e '/^func_basename ()$/,/^} # func_basename /c\
18089 func_basename ()\
18090 {\
18091 \ func_basename_result="${1##*/}"\
18092 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18093 && mv -f "$cfgfile.tmp" "$cfgfile" \
18094 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18095 test 0 -eq $? || _lt_function_replace_fail=:
18096
18097
18098 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18099 func_dirname_and_basename ()\
18100 {\
18101 \ case ${1} in\
18102 \ */*) func_dirname_result="${1%/*}${2}" ;;\
18103 \ * ) func_dirname_result="${3}" ;;\
18104 \ esac\
18105 \ func_basename_result="${1##*/}"\
18106 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18107 && mv -f "$cfgfile.tmp" "$cfgfile" \
18108 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18109 test 0 -eq $? || _lt_function_replace_fail=:
18110
18111
18112 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18113 func_stripname ()\
18114 {\
18115 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18116 \ # positional parameters, so assign one to ordinary parameter first.\
18117 \ func_stripname_result=${3}\
18118 \ func_stripname_result=${func_stripname_result#"${1}"}\
18119 \ func_stripname_result=${func_stripname_result%"${2}"}\
18120 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18121 && mv -f "$cfgfile.tmp" "$cfgfile" \
18122 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18123 test 0 -eq $? || _lt_function_replace_fail=:
18124
18125
18126 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18127 func_split_long_opt ()\
18128 {\
18129 \ func_split_long_opt_name=${1%%=*}\
18130 \ func_split_long_opt_arg=${1#*=}\
18131 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18132 && mv -f "$cfgfile.tmp" "$cfgfile" \
18133 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18134 test 0 -eq $? || _lt_function_replace_fail=:
18135
18136
18137 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18138 func_split_short_opt ()\
18139 {\
18140 \ func_split_short_opt_arg=${1#??}\
18141 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18142 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18143 && mv -f "$cfgfile.tmp" "$cfgfile" \
18144 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18145 test 0 -eq $? || _lt_function_replace_fail=:
18146
18147
18148 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18149 func_lo2o ()\
18150 {\
18151 \ case ${1} in\
18152 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18153 \ *) func_lo2o_result=${1} ;;\
18154 \ esac\
18155 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18156 && mv -f "$cfgfile.tmp" "$cfgfile" \
18157 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18158 test 0 -eq $? || _lt_function_replace_fail=:
18159
18160
18161 sed -e '/^func_xform ()$/,/^} # func_xform /c\
18162 func_xform ()\
18163 {\
18164 func_xform_result=${1%.*}.lo\
18165 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18166 && mv -f "$cfgfile.tmp" "$cfgfile" \
18167 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18168 test 0 -eq $? || _lt_function_replace_fail=:
18169
18170
18171 sed -e '/^func_arith ()$/,/^} # func_arith /c\
18172 func_arith ()\
18173 {\
18174 func_arith_result=$(( $* ))\
18175 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18176 && mv -f "$cfgfile.tmp" "$cfgfile" \
18177 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18178 test 0 -eq $? || _lt_function_replace_fail=:
18179
18180
18181 sed -e '/^func_len ()$/,/^} # func_len /c\
18182 func_len ()\
18183 {\
18184 func_len_result=${#1}\
18185 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18186 && mv -f "$cfgfile.tmp" "$cfgfile" \
18187 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18188 test 0 -eq $? || _lt_function_replace_fail=:
18189
18190 fi
18191
18192 if test x"$lt_shell_append" = xyes; then
18193 sed -e '/^func_append ()$/,/^} # func_append /c\
18194 func_append ()\
18195 {\
18196 eval "${1}+=\\${2}"\
18197 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18198 && mv -f "$cfgfile.tmp" "$cfgfile" \
18199 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18200 test 0 -eq $? || _lt_function_replace_fail=:
18201
18202
18203 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18204 func_append_quoted ()\
18205 {\
18206 \ func_quote_for_eval "${2}"\
18207 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18208 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18209 && mv -f "$cfgfile.tmp" "$cfgfile" \
18210 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18211 test 0 -eq $? || _lt_function_replace_fail=:
18212
18213
18214 # Save a `func_append' function call where possible by direct use of '+='
18215 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18216 && mv -f "$cfgfile.tmp" "$cfgfile" \
18217 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18218 test 0 -eq $? || _lt_function_replace_fail=:
18219 else
18220 # Save a `func_append' function call even when '+=' is not available
18221 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18222 && mv -f "$cfgfile.tmp" "$cfgfile" \
18223 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18224 test 0 -eq $? || _lt_function_replace_fail=:
18225 fi
18226
18227 if test x"$_lt_function_replace_fail" = x":"; then
18228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18229 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18230 fi
18231
18232
18233 mv -f "$cfgfile" "$ofile" ||
18234 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18235 chmod +x "$ofile"
18236
18237
18238 cat <<_LT_EOF >> "$ofile"
18239
18240 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18241
18242 # The linker used to build libraries.
18243 LD=$lt_LD_CXX
18244
18245 # How to create reloadable object files.
18246 reload_flag=$lt_reload_flag_CXX
18247 reload_cmds=$lt_reload_cmds_CXX
18248
18249 # Commands used to build an old-style archive.
18250 old_archive_cmds=$lt_old_archive_cmds_CXX
18251
18252 # A language specific compiler.
18253 CC=$lt_compiler_CXX
18254
18255 # Is the compiler the GNU compiler?
18256 with_gcc=$GCC_CXX
18257
18258 # Compiler flag to turn off builtin functions.
18259 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18260
18261 # Additional compiler flags for building library objects.
18262 pic_flag=$lt_lt_prog_compiler_pic_CXX
18263
18264 # How to pass a linker flag through the compiler.
18265 wl=$lt_lt_prog_compiler_wl_CXX
18266
18267 # Compiler flag to prevent dynamic linking.
18268 link_static_flag=$lt_lt_prog_compiler_static_CXX
18269
18270 # Does compiler simultaneously support -c and -o options?
18271 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18272
18273 # Whether or not to add -lc for building shared libraries.
18274 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18275
18276 # Whether or not to disallow shared libs when runtime libs are static.
18277 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18278
18279 # Compiler flag to allow reflexive dlopens.
18280 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18281
18282 # Compiler flag to generate shared objects directly from archives.
18283 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18284
18285 # Whether the compiler copes with passing no objects directly.
18286 compiler_needs_object=$lt_compiler_needs_object_CXX
18287
18288 # Create an old-style archive from a shared archive.
18289 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18290
18291 # Create a temporary old-style archive to link instead of a shared archive.
18292 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18293
18294 # Commands used to build a shared archive.
18295 archive_cmds=$lt_archive_cmds_CXX
18296 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18297
18298 # Commands used to build a loadable module if different from building
18299 # a shared archive.
18300 module_cmds=$lt_module_cmds_CXX
18301 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18302
18303 # Whether we are building with GNU ld or not.
18304 with_gnu_ld=$lt_with_gnu_ld_CXX
18305
18306 # Flag that allows shared libraries with undefined symbols to be built.
18307 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18308
18309 # Flag that enforces no undefined symbols.
18310 no_undefined_flag=$lt_no_undefined_flag_CXX
18311
18312 # Flag to hardcode \$libdir into a binary during linking.
18313 # This must work even if \$libdir does not exist
18314 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18315
18316 # Whether we need a single "-rpath" flag with a separated argument.
18317 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18318
18319 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18320 # DIR into the resulting binary.
18321 hardcode_direct=$hardcode_direct_CXX
18322
18323 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18324 # DIR into the resulting binary and the resulting library dependency is
18325 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18326 # library is relocated.
18327 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18328
18329 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18330 # into the resulting binary.
18331 hardcode_minus_L=$hardcode_minus_L_CXX
18332
18333 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18334 # into the resulting binary.
18335 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18336
18337 # Set to "yes" if building a shared library automatically hardcodes DIR
18338 # into the library and all subsequent libraries and executables linked
18339 # against it.
18340 hardcode_automatic=$hardcode_automatic_CXX
18341
18342 # Set to yes if linker adds runtime paths of dependent libraries
18343 # to runtime path list.
18344 inherit_rpath=$inherit_rpath_CXX
18345
18346 # Whether libtool must link a program against all its dependency libraries.
18347 link_all_deplibs=$link_all_deplibs_CXX
18348
18349 # Set to "yes" if exported symbols are required.
18350 always_export_symbols=$always_export_symbols_CXX
18351
18352 # The commands to list exported symbols.
18353 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18354
18355 # Symbols that should not be listed in the preloaded symbols.
18356 exclude_expsyms=$lt_exclude_expsyms_CXX
18357
18358 # Symbols that must always be exported.
18359 include_expsyms=$lt_include_expsyms_CXX
18360
18361 # Commands necessary for linking programs (against libraries) with templates.
18362 prelink_cmds=$lt_prelink_cmds_CXX
18363
18364 # Commands necessary for finishing linking programs.
18365 postlink_cmds=$lt_postlink_cmds_CXX
18366
18367 # Specify filename containing input files.
18368 file_list_spec=$lt_file_list_spec_CXX
18369
18370 # How to hardcode a shared library path into an executable.
18371 hardcode_action=$hardcode_action_CXX
18372
18373 # The directories searched by this compiler when creating a shared library.
18374 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18375
18376 # Dependencies to place before and after the objects being linked to
18377 # create a shared library.
18378 predep_objects=$lt_predep_objects_CXX
18379 postdep_objects=$lt_postdep_objects_CXX
18380 predeps=$lt_predeps_CXX
18381 postdeps=$lt_postdeps_CXX
18382
18383 # The library search path used internally by the compiler when linking
18384 # a shared library.
18385 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18386
18387 # ### END LIBTOOL TAG CONFIG: CXX
18388 _LT_EOF
18389
18390 ;;
18391
18392 esac
18393 done # for ac_tag
18394
18395
18396 as_fn_exit 0
18397 _ACEOF
18398 ac_clean_files=$ac_clean_files_save
18399
18400 test $ac_write_fail = 0 ||
18401 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18402
18403
18404 # configure is writing to config.log, and then calls config.status.
18405 # config.status does its own redirection, appending to config.log.
18406 # Unfortunately, on DOS this fails, as config.log is still kept open
18407 # by configure, so config.status won't be able to write to it; its
18408 # output is simply discarded. So we exec the FD to /dev/null,
18409 # effectively closing config.log, so it can be properly (re)opened and
18410 # appended to by config.status. When coming back to configure, we
18411 # need to make the FD available again.
18412 if test "$no_create" != yes; then
18413 ac_cs_success=:
18414 ac_config_status_args=
18415 test "$silent" = yes &&
18416 ac_config_status_args="$ac_config_status_args --quiet"
18417 exec 5>/dev/null
18418 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18419 exec 5>>config.log
18420 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18421 # would make configure fail if this is the last instruction.
18422 $ac_cs_success || as_fn_exit 1
18423 fi
18424 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18426 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18427 fi
18428