Allow libpinyin to build in cross compile mode.
[platform/upstream/libpinyin.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libpinyin 1.0.0.
4 #
5 # Report bugs to <https://github.com/libpinyin/libpinyin/issues/new>.
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 test \$(( 1 + 1 )) = 2 || exit 1
202
203   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207     PATH=/empty FPATH=/empty; export PATH FPATH
208     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: https://github.com/libpinyin/libpinyin/issues/new 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='libpinyin'
592 PACKAGE_TARNAME='libpinyin'
593 PACKAGE_VERSION='1.0.0'
594 PACKAGE_STRING='libpinyin 1.0.0'
595 PACKAGE_BUGREPORT='https://github.com/libpinyin/libpinyin/issues/new'
596 PACKAGE_URL=''
597
598 ac_unique_file="config.h.in"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 #  include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 #  include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_header_list=
636 ac_subst_vars='am__EXEEXT_FALSE
637 am__EXEEXT_TRUE
638 LTLIBOBJS
639 LIBOBJS
640 GLIB2_LIBS
641 GLIB2_CFLAGS
642 PKG_CONFIG_LIBDIR
643 PKG_CONFIG_PATH
644 PKG_CONFIG
645 LIBTOOL_EXPORT_OPTIONS
646 LIBTOOL_DEPS
647 CXXCPP
648 OTOOL64
649 OTOOL
650 LIPO
651 NMEDIT
652 DSYMUTIL
653 MANIFEST_TOOL
654 RANLIB
655 ac_ct_AR
656 AR
657 DLLTOOL
658 OBJDUMP
659 NM
660 ac_ct_DUMPBIN
661 DUMPBIN
662 LD
663 FGREP
664 SED
665 host_os
666 host_vendor
667 host_cpu
668 host
669 build_os
670 build_vendor
671 build_cpu
672 build
673 LIBTOOL
674 EGREP
675 GREP
676 LN_S
677 CPP
678 am__fastdepCC_FALSE
679 am__fastdepCC_TRUE
680 CCDEPMODE
681 ac_ct_CC
682 CFLAGS
683 CC
684 am__fastdepCXX_FALSE
685 am__fastdepCXX_TRUE
686 CXXDEPMODE
687 am__nodep
688 AMDEPBACKSLASH
689 AMDEP_FALSE
690 AMDEP_TRUE
691 am__quote
692 am__include
693 DEPDIR
694 OBJEXT
695 EXEEXT
696 ac_ct_CXX
697 CPPFLAGS
698 LDFLAGS
699 CXXFLAGS
700 CXX
701 LIBPINYIN_BINARY_VERSION
702 LT_VERSION_INFO
703 AM_BACKSLASH
704 AM_DEFAULT_VERBOSITY
705 AM_DEFAULT_V
706 AM_V
707 am__untar
708 am__tar
709 AMTAR
710 am__leading_dot
711 SET_MAKE
712 AWK
713 mkdir_p
714 MKDIR_P
715 INSTALL_STRIP_PROGRAM
716 STRIP
717 install_sh
718 MAKEINFO
719 AUTOHEADER
720 AUTOMAKE
721 AUTOCONF
722 ACLOCAL
723 VERSION
724 PACKAGE
725 CYGPATH_W
726 am__isrc
727 INSTALL_DATA
728 INSTALL_SCRIPT
729 INSTALL_PROGRAM
730 target_alias
731 host_alias
732 build_alias
733 LIBS
734 ECHO_T
735 ECHO_N
736 ECHO_C
737 DEFS
738 mandir
739 localedir
740 libdir
741 psdir
742 pdfdir
743 dvidir
744 htmldir
745 infodir
746 docdir
747 oldincludedir
748 includedir
749 localstatedir
750 sharedstatedir
751 sysconfdir
752 datadir
753 datarootdir
754 libexecdir
755 sbindir
756 bindir
757 program_transform_name
758 prefix
759 exec_prefix
760 PACKAGE_URL
761 PACKAGE_BUGREPORT
762 PACKAGE_STRING
763 PACKAGE_VERSION
764 PACKAGE_TARNAME
765 PACKAGE_NAME
766 PATH_SEPARATOR
767 SHELL'
768 ac_subst_files=''
769 ac_user_opts='
770 enable_option_checking
771 enable_silent_rules
772 enable_dependency_tracking
773 enable_shared
774 enable_static
775 with_pic
776 enable_fast_install
777 with_gnu_ld
778 with_sysroot
779 enable_libtool_lock
780 '
781       ac_precious_vars='build_alias
782 host_alias
783 target_alias
784 CXX
785 CXXFLAGS
786 LDFLAGS
787 LIBS
788 CPPFLAGS
789 CCC
790 CC
791 CFLAGS
792 CPP
793 CXXCPP
794 PKG_CONFIG
795 PKG_CONFIG_PATH
796 PKG_CONFIG_LIBDIR
797 GLIB2_CFLAGS
798 GLIB2_LIBS'
799
800
801 # Initialize some variables set by options.
802 ac_init_help=
803 ac_init_version=false
804 ac_unrecognized_opts=
805 ac_unrecognized_sep=
806 # The variables have the same names as the options, with
807 # dashes changed to underlines.
808 cache_file=/dev/null
809 exec_prefix=NONE
810 no_create=
811 no_recursion=
812 prefix=NONE
813 program_prefix=NONE
814 program_suffix=NONE
815 program_transform_name=s,x,x,
816 silent=
817 site=
818 srcdir=
819 verbose=
820 x_includes=NONE
821 x_libraries=NONE
822
823 # Installation directory options.
824 # These are left unexpanded so users can "make install exec_prefix=/foo"
825 # and all the variables that are supposed to be based on exec_prefix
826 # by default will actually change.
827 # Use braces instead of parens because sh, perl, etc. also accept them.
828 # (The list follows the same order as the GNU Coding Standards.)
829 bindir='${exec_prefix}/bin'
830 sbindir='${exec_prefix}/sbin'
831 libexecdir='${exec_prefix}/libexec'
832 datarootdir='${prefix}/share'
833 datadir='${datarootdir}'
834 sysconfdir='${prefix}/etc'
835 sharedstatedir='${prefix}/com'
836 localstatedir='${prefix}/var'
837 includedir='${prefix}/include'
838 oldincludedir='/usr/include'
839 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
840 infodir='${datarootdir}/info'
841 htmldir='${docdir}'
842 dvidir='${docdir}'
843 pdfdir='${docdir}'
844 psdir='${docdir}'
845 libdir='${exec_prefix}/lib'
846 localedir='${datarootdir}/locale'
847 mandir='${datarootdir}/man'
848
849 ac_prev=
850 ac_dashdash=
851 for ac_option
852 do
853   # If the previous option needs an argument, assign it.
854   if test -n "$ac_prev"; then
855     eval $ac_prev=\$ac_option
856     ac_prev=
857     continue
858   fi
859
860   case $ac_option in
861   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
862   *=)   ac_optarg= ;;
863   *)    ac_optarg=yes ;;
864   esac
865
866   # Accept the important Cygnus configure options, so we can diagnose typos.
867
868   case $ac_dashdash$ac_option in
869   --)
870     ac_dashdash=yes ;;
871
872   -bindir | --bindir | --bindi | --bind | --bin | --bi)
873     ac_prev=bindir ;;
874   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
875     bindir=$ac_optarg ;;
876
877   -build | --build | --buil | --bui | --bu)
878     ac_prev=build_alias ;;
879   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
880     build_alias=$ac_optarg ;;
881
882   -cache-file | --cache-file | --cache-fil | --cache-fi \
883   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
884     ac_prev=cache_file ;;
885   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
886   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
887     cache_file=$ac_optarg ;;
888
889   --config-cache | -C)
890     cache_file=config.cache ;;
891
892   -datadir | --datadir | --datadi | --datad)
893     ac_prev=datadir ;;
894   -datadir=* | --datadir=* | --datadi=* | --datad=*)
895     datadir=$ac_optarg ;;
896
897   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
898   | --dataroo | --dataro | --datar)
899     ac_prev=datarootdir ;;
900   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
901   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
902     datarootdir=$ac_optarg ;;
903
904   -disable-* | --disable-*)
905     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
906     # Reject names that are not valid shell variable names.
907     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
908       as_fn_error $? "invalid feature name: $ac_useropt"
909     ac_useropt_orig=$ac_useropt
910     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
911     case $ac_user_opts in
912       *"
913 "enable_$ac_useropt"
914 "*) ;;
915       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
916          ac_unrecognized_sep=', ';;
917     esac
918     eval enable_$ac_useropt=no ;;
919
920   -docdir | --docdir | --docdi | --doc | --do)
921     ac_prev=docdir ;;
922   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
923     docdir=$ac_optarg ;;
924
925   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
926     ac_prev=dvidir ;;
927   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
928     dvidir=$ac_optarg ;;
929
930   -enable-* | --enable-*)
931     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
932     # Reject names that are not valid shell variable names.
933     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
934       as_fn_error $? "invalid feature name: $ac_useropt"
935     ac_useropt_orig=$ac_useropt
936     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
937     case $ac_user_opts in
938       *"
939 "enable_$ac_useropt"
940 "*) ;;
941       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
942          ac_unrecognized_sep=', ';;
943     esac
944     eval enable_$ac_useropt=\$ac_optarg ;;
945
946   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
947   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
948   | --exec | --exe | --ex)
949     ac_prev=exec_prefix ;;
950   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
951   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
952   | --exec=* | --exe=* | --ex=*)
953     exec_prefix=$ac_optarg ;;
954
955   -gas | --gas | --ga | --g)
956     # Obsolete; use --with-gas.
957     with_gas=yes ;;
958
959   -help | --help | --hel | --he | -h)
960     ac_init_help=long ;;
961   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
962     ac_init_help=recursive ;;
963   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
964     ac_init_help=short ;;
965
966   -host | --host | --hos | --ho)
967     ac_prev=host_alias ;;
968   -host=* | --host=* | --hos=* | --ho=*)
969     host_alias=$ac_optarg ;;
970
971   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
972     ac_prev=htmldir ;;
973   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
974   | --ht=*)
975     htmldir=$ac_optarg ;;
976
977   -includedir | --includedir | --includedi | --included | --include \
978   | --includ | --inclu | --incl | --inc)
979     ac_prev=includedir ;;
980   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
981   | --includ=* | --inclu=* | --incl=* | --inc=*)
982     includedir=$ac_optarg ;;
983
984   -infodir | --infodir | --infodi | --infod | --info | --inf)
985     ac_prev=infodir ;;
986   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
987     infodir=$ac_optarg ;;
988
989   -libdir | --libdir | --libdi | --libd)
990     ac_prev=libdir ;;
991   -libdir=* | --libdir=* | --libdi=* | --libd=*)
992     libdir=$ac_optarg ;;
993
994   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
995   | --libexe | --libex | --libe)
996     ac_prev=libexecdir ;;
997   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
998   | --libexe=* | --libex=* | --libe=*)
999     libexecdir=$ac_optarg ;;
1000
1001   -localedir | --localedir | --localedi | --localed | --locale)
1002     ac_prev=localedir ;;
1003   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1004     localedir=$ac_optarg ;;
1005
1006   -localstatedir | --localstatedir | --localstatedi | --localstated \
1007   | --localstate | --localstat | --localsta | --localst | --locals)
1008     ac_prev=localstatedir ;;
1009   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1010   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1011     localstatedir=$ac_optarg ;;
1012
1013   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1014     ac_prev=mandir ;;
1015   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1016     mandir=$ac_optarg ;;
1017
1018   -nfp | --nfp | --nf)
1019     # Obsolete; use --without-fp.
1020     with_fp=no ;;
1021
1022   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1023   | --no-cr | --no-c | -n)
1024     no_create=yes ;;
1025
1026   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1027   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1028     no_recursion=yes ;;
1029
1030   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1031   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1032   | --oldin | --oldi | --old | --ol | --o)
1033     ac_prev=oldincludedir ;;
1034   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1035   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1036   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1037     oldincludedir=$ac_optarg ;;
1038
1039   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1040     ac_prev=prefix ;;
1041   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1042     prefix=$ac_optarg ;;
1043
1044   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1045   | --program-pre | --program-pr | --program-p)
1046     ac_prev=program_prefix ;;
1047   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1048   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1049     program_prefix=$ac_optarg ;;
1050
1051   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1052   | --program-suf | --program-su | --program-s)
1053     ac_prev=program_suffix ;;
1054   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1055   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1056     program_suffix=$ac_optarg ;;
1057
1058   -program-transform-name | --program-transform-name \
1059   | --program-transform-nam | --program-transform-na \
1060   | --program-transform-n | --program-transform- \
1061   | --program-transform | --program-transfor \
1062   | --program-transfo | --program-transf \
1063   | --program-trans | --program-tran \
1064   | --progr-tra | --program-tr | --program-t)
1065     ac_prev=program_transform_name ;;
1066   -program-transform-name=* | --program-transform-name=* \
1067   | --program-transform-nam=* | --program-transform-na=* \
1068   | --program-transform-n=* | --program-transform-=* \
1069   | --program-transform=* | --program-transfor=* \
1070   | --program-transfo=* | --program-transf=* \
1071   | --program-trans=* | --program-tran=* \
1072   | --progr-tra=* | --program-tr=* | --program-t=*)
1073     program_transform_name=$ac_optarg ;;
1074
1075   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1076     ac_prev=pdfdir ;;
1077   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1078     pdfdir=$ac_optarg ;;
1079
1080   -psdir | --psdir | --psdi | --psd | --ps)
1081     ac_prev=psdir ;;
1082   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1083     psdir=$ac_optarg ;;
1084
1085   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1086   | -silent | --silent | --silen | --sile | --sil)
1087     silent=yes ;;
1088
1089   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1090     ac_prev=sbindir ;;
1091   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1092   | --sbi=* | --sb=*)
1093     sbindir=$ac_optarg ;;
1094
1095   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1096   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1097   | --sharedst | --shareds | --shared | --share | --shar \
1098   | --sha | --sh)
1099     ac_prev=sharedstatedir ;;
1100   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1101   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1102   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1103   | --sha=* | --sh=*)
1104     sharedstatedir=$ac_optarg ;;
1105
1106   -site | --site | --sit)
1107     ac_prev=site ;;
1108   -site=* | --site=* | --sit=*)
1109     site=$ac_optarg ;;
1110
1111   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1112     ac_prev=srcdir ;;
1113   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1114     srcdir=$ac_optarg ;;
1115
1116   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1117   | --syscon | --sysco | --sysc | --sys | --sy)
1118     ac_prev=sysconfdir ;;
1119   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1120   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1121     sysconfdir=$ac_optarg ;;
1122
1123   -target | --target | --targe | --targ | --tar | --ta | --t)
1124     ac_prev=target_alias ;;
1125   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1126     target_alias=$ac_optarg ;;
1127
1128   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1129     verbose=yes ;;
1130
1131   -version | --version | --versio | --versi | --vers | -V)
1132     ac_init_version=: ;;
1133
1134   -with-* | --with-*)
1135     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1136     # Reject names that are not valid shell variable names.
1137     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1138       as_fn_error $? "invalid package name: $ac_useropt"
1139     ac_useropt_orig=$ac_useropt
1140     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1141     case $ac_user_opts in
1142       *"
1143 "with_$ac_useropt"
1144 "*) ;;
1145       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1146          ac_unrecognized_sep=', ';;
1147     esac
1148     eval with_$ac_useropt=\$ac_optarg ;;
1149
1150   -without-* | --without-*)
1151     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1152     # Reject names that are not valid shell variable names.
1153     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1154       as_fn_error $? "invalid package name: $ac_useropt"
1155     ac_useropt_orig=$ac_useropt
1156     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1157     case $ac_user_opts in
1158       *"
1159 "with_$ac_useropt"
1160 "*) ;;
1161       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1162          ac_unrecognized_sep=', ';;
1163     esac
1164     eval with_$ac_useropt=no ;;
1165
1166   --x)
1167     # Obsolete; use --with-x.
1168     with_x=yes ;;
1169
1170   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1171   | --x-incl | --x-inc | --x-in | --x-i)
1172     ac_prev=x_includes ;;
1173   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1174   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1175     x_includes=$ac_optarg ;;
1176
1177   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1178   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1179     ac_prev=x_libraries ;;
1180   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1181   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1182     x_libraries=$ac_optarg ;;
1183
1184   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1185 Try \`$0 --help' for more information"
1186     ;;
1187
1188   *=*)
1189     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1190     # Reject names that are not valid shell variable names.
1191     case $ac_envvar in #(
1192       '' | [0-9]* | *[!_$as_cr_alnum]* )
1193       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1194     esac
1195     eval $ac_envvar=\$ac_optarg
1196     export $ac_envvar ;;
1197
1198   *)
1199     # FIXME: should be removed in autoconf 3.0.
1200     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1201     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1202       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1203     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1204     ;;
1205
1206   esac
1207 done
1208
1209 if test -n "$ac_prev"; then
1210   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1211   as_fn_error $? "missing argument to $ac_option"
1212 fi
1213
1214 if test -n "$ac_unrecognized_opts"; then
1215   case $enable_option_checking in
1216     no) ;;
1217     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1218     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1219   esac
1220 fi
1221
1222 # Check all directory arguments for consistency.
1223 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1224                 datadir sysconfdir sharedstatedir localstatedir includedir \
1225                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1226                 libdir localedir mandir
1227 do
1228   eval ac_val=\$$ac_var
1229   # Remove trailing slashes.
1230   case $ac_val in
1231     */ )
1232       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1233       eval $ac_var=\$ac_val;;
1234   esac
1235   # Be sure to have absolute directory names.
1236   case $ac_val in
1237     [\\/$]* | ?:[\\/]* )  continue;;
1238     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1239   esac
1240   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1241 done
1242
1243 # There might be people who depend on the old broken behavior: `$host'
1244 # used to hold the argument of --host etc.
1245 # FIXME: To remove some day.
1246 build=$build_alias
1247 host=$host_alias
1248 target=$target_alias
1249
1250 # FIXME: To remove some day.
1251 if test "x$host_alias" != x; then
1252   if test "x$build_alias" = x; then
1253     cross_compiling=maybe
1254   elif test "x$build_alias" != "x$host_alias"; then
1255     cross_compiling=yes
1256   fi
1257 fi
1258
1259 ac_tool_prefix=
1260 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1261
1262 test "$silent" = yes && exec 6>/dev/null
1263
1264
1265 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1266 ac_ls_di=`ls -di .` &&
1267 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1268   as_fn_error $? "working directory cannot be determined"
1269 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1270   as_fn_error $? "pwd does not report name of working directory"
1271
1272
1273 # Find the source files, if location was not specified.
1274 if test -z "$srcdir"; then
1275   ac_srcdir_defaulted=yes
1276   # Try the directory containing this script, then the parent directory.
1277   ac_confdir=`$as_dirname -- "$as_myself" ||
1278 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1279          X"$as_myself" : 'X\(//\)[^/]' \| \
1280          X"$as_myself" : 'X\(//\)$' \| \
1281          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1282 $as_echo X"$as_myself" |
1283     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1284             s//\1/
1285             q
1286           }
1287           /^X\(\/\/\)[^/].*/{
1288             s//\1/
1289             q
1290           }
1291           /^X\(\/\/\)$/{
1292             s//\1/
1293             q
1294           }
1295           /^X\(\/\).*/{
1296             s//\1/
1297             q
1298           }
1299           s/.*/./; q'`
1300   srcdir=$ac_confdir
1301   if test ! -r "$srcdir/$ac_unique_file"; then
1302     srcdir=..
1303   fi
1304 else
1305   ac_srcdir_defaulted=no
1306 fi
1307 if test ! -r "$srcdir/$ac_unique_file"; then
1308   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1309   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1310 fi
1311 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1312 ac_abs_confdir=`(
1313         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1314         pwd)`
1315 # When building in place, set srcdir=.
1316 if test "$ac_abs_confdir" = "$ac_pwd"; then
1317   srcdir=.
1318 fi
1319 # Remove unnecessary trailing slashes from srcdir.
1320 # Double slashes in file names in object file debugging info
1321 # mess up M-x gdb in Emacs.
1322 case $srcdir in
1323 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1324 esac
1325 for ac_var in $ac_precious_vars; do
1326   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1327   eval ac_env_${ac_var}_value=\$${ac_var}
1328   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1329   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1330 done
1331
1332 #
1333 # Report the --help message.
1334 #
1335 if test "$ac_init_help" = "long"; then
1336   # Omit some internal or obsolete options to make the list less imposing.
1337   # This message is too long to be a string in the A/UX 3.1 sh.
1338   cat <<_ACEOF
1339 \`configure' configures libpinyin 1.0.0 to adapt to many kinds of systems.
1340
1341 Usage: $0 [OPTION]... [VAR=VALUE]...
1342
1343 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1344 VAR=VALUE.  See below for descriptions of some of the useful variables.
1345
1346 Defaults for the options are specified in brackets.
1347
1348 Configuration:
1349   -h, --help              display this help and exit
1350       --help=short        display options specific to this package
1351       --help=recursive    display the short help of all the included packages
1352   -V, --version           display version information and exit
1353   -q, --quiet, --silent   do not print \`checking ...' messages
1354       --cache-file=FILE   cache test results in FILE [disabled]
1355   -C, --config-cache      alias for \`--cache-file=config.cache'
1356   -n, --no-create         do not create output files
1357       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1358
1359 Installation directories:
1360   --prefix=PREFIX         install architecture-independent files in PREFIX
1361                           [$ac_default_prefix]
1362   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1363                           [PREFIX]
1364
1365 By default, \`make install' will install all the files in
1366 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1367 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1368 for instance \`--prefix=\$HOME'.
1369
1370 For better control, use the options below.
1371
1372 Fine tuning of the installation directories:
1373   --bindir=DIR            user executables [EPREFIX/bin]
1374   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1375   --libexecdir=DIR        program executables [EPREFIX/libexec]
1376   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1377   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1378   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1379   --libdir=DIR            object code libraries [EPREFIX/lib]
1380   --includedir=DIR        C header files [PREFIX/include]
1381   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1382   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1383   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1384   --infodir=DIR           info documentation [DATAROOTDIR/info]
1385   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1386   --mandir=DIR            man documentation [DATAROOTDIR/man]
1387   --docdir=DIR            documentation root [DATAROOTDIR/doc/libpinyin]
1388   --htmldir=DIR           html documentation [DOCDIR]
1389   --dvidir=DIR            dvi documentation [DOCDIR]
1390   --pdfdir=DIR            pdf documentation [DOCDIR]
1391   --psdir=DIR             ps documentation [DOCDIR]
1392 _ACEOF
1393
1394   cat <<\_ACEOF
1395
1396 Program names:
1397   --program-prefix=PREFIX            prepend PREFIX to installed program names
1398   --program-suffix=SUFFIX            append SUFFIX to installed program names
1399   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1400
1401 System types:
1402   --build=BUILD     configure for building on BUILD [guessed]
1403   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1404 _ACEOF
1405 fi
1406
1407 if test -n "$ac_init_help"; then
1408   case $ac_init_help in
1409      short | recursive ) echo "Configuration of libpinyin 1.0.0:";;
1410    esac
1411   cat <<\_ACEOF
1412
1413 Optional Features:
1414   --disable-option-checking  ignore unrecognized --enable/--with options
1415   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1416   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1417   --enable-silent-rules   less verbose build output (undo: "make V=1")
1418   --disable-silent-rules  verbose build output (undo: "make V=0")
1419   --enable-dependency-tracking
1420                           do not reject slow dependency extractors
1421   --disable-dependency-tracking
1422                           speeds up one-time build
1423   --enable-shared[=PKGS]  build shared libraries [default=yes]
1424   --enable-static[=PKGS]  build static libraries [default=yes]
1425   --enable-fast-install[=PKGS]
1426                           optimize for fast installation [default=yes]
1427   --disable-libtool-lock  avoid locking (might break parallel builds)
1428
1429 Optional Packages:
1430   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1431   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1432   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1433                           both]
1434   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1435   --with-sysroot=DIR Search for dependent libraries within DIR
1436                         (or the compiler's sysroot if not specified).
1437
1438 Some influential environment variables:
1439   CXX         C++ compiler command
1440   CXXFLAGS    C++ compiler flags
1441   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1442               nonstandard directory <lib dir>
1443   LIBS        libraries to pass to the linker, e.g. -l<library>
1444   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1445               you have headers in a nonstandard directory <include dir>
1446   CC          C compiler command
1447   CFLAGS      C compiler flags
1448   CPP         C preprocessor
1449   CXXCPP      C++ preprocessor
1450   PKG_CONFIG  path to pkg-config utility
1451   PKG_CONFIG_PATH
1452               directories to add to pkg-config's search path
1453   PKG_CONFIG_LIBDIR
1454               path overriding pkg-config's built-in search path
1455   GLIB2_CFLAGS
1456               C compiler flags for GLIB2, overriding pkg-config
1457   GLIB2_LIBS  linker flags for GLIB2, overriding pkg-config
1458
1459 Use these variables to override the choices made by `configure' or to help
1460 it to find libraries and programs with nonstandard names/locations.
1461
1462 Report bugs to <https://github.com/libpinyin/libpinyin/issues/new>.
1463 _ACEOF
1464 ac_status=$?
1465 fi
1466
1467 if test "$ac_init_help" = "recursive"; then
1468   # If there are subdirs, report their specific --help.
1469   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1470     test -d "$ac_dir" ||
1471       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1472       continue
1473     ac_builddir=.
1474
1475 case "$ac_dir" in
1476 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1477 *)
1478   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1479   # A ".." for each directory in $ac_dir_suffix.
1480   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1481   case $ac_top_builddir_sub in
1482   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1483   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1484   esac ;;
1485 esac
1486 ac_abs_top_builddir=$ac_pwd
1487 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1488 # for backward compatibility:
1489 ac_top_builddir=$ac_top_build_prefix
1490
1491 case $srcdir in
1492   .)  # We are building in place.
1493     ac_srcdir=.
1494     ac_top_srcdir=$ac_top_builddir_sub
1495     ac_abs_top_srcdir=$ac_pwd ;;
1496   [\\/]* | ?:[\\/]* )  # Absolute name.
1497     ac_srcdir=$srcdir$ac_dir_suffix;
1498     ac_top_srcdir=$srcdir
1499     ac_abs_top_srcdir=$srcdir ;;
1500   *) # Relative name.
1501     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1502     ac_top_srcdir=$ac_top_build_prefix$srcdir
1503     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1504 esac
1505 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1506
1507     cd "$ac_dir" || { ac_status=$?; continue; }
1508     # Check for guested configure.
1509     if test -f "$ac_srcdir/configure.gnu"; then
1510       echo &&
1511       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1512     elif test -f "$ac_srcdir/configure"; then
1513       echo &&
1514       $SHELL "$ac_srcdir/configure" --help=recursive
1515     else
1516       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1517     fi || ac_status=$?
1518     cd "$ac_pwd" || { ac_status=$?; break; }
1519   done
1520 fi
1521
1522 test -n "$ac_init_help" && exit $ac_status
1523 if $ac_init_version; then
1524   cat <<\_ACEOF
1525 libpinyin configure 1.0.0
1526 generated by GNU Autoconf 2.69
1527
1528 Copyright (C) 2012 Free Software Foundation, Inc.
1529 This configure script is free software; the Free Software Foundation
1530 gives unlimited permission to copy, distribute and modify it.
1531 _ACEOF
1532   exit
1533 fi
1534
1535 ## ------------------------ ##
1536 ## Autoconf initialization. ##
1537 ## ------------------------ ##
1538
1539 # ac_fn_cxx_try_compile LINENO
1540 # ----------------------------
1541 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1542 ac_fn_cxx_try_compile ()
1543 {
1544   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1545   rm -f conftest.$ac_objext
1546   if { { ac_try="$ac_compile"
1547 case "(($ac_try" in
1548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1549   *) ac_try_echo=$ac_try;;
1550 esac
1551 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1552 $as_echo "$ac_try_echo"; } >&5
1553   (eval "$ac_compile") 2>conftest.err
1554   ac_status=$?
1555   if test -s conftest.err; then
1556     grep -v '^ *+' conftest.err >conftest.er1
1557     cat conftest.er1 >&5
1558     mv -f conftest.er1 conftest.err
1559   fi
1560   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1561   test $ac_status = 0; } && {
1562          test -z "$ac_cxx_werror_flag" ||
1563          test ! -s conftest.err
1564        } && test -s conftest.$ac_objext; then :
1565   ac_retval=0
1566 else
1567   $as_echo "$as_me: failed program was:" >&5
1568 sed 's/^/| /' conftest.$ac_ext >&5
1569
1570         ac_retval=1
1571 fi
1572   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1573   as_fn_set_status $ac_retval
1574
1575 } # ac_fn_cxx_try_compile
1576
1577 # ac_fn_c_try_compile LINENO
1578 # --------------------------
1579 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1580 ac_fn_c_try_compile ()
1581 {
1582   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1583   rm -f conftest.$ac_objext
1584   if { { ac_try="$ac_compile"
1585 case "(($ac_try" in
1586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1587   *) ac_try_echo=$ac_try;;
1588 esac
1589 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1590 $as_echo "$ac_try_echo"; } >&5
1591   (eval "$ac_compile") 2>conftest.err
1592   ac_status=$?
1593   if test -s conftest.err; then
1594     grep -v '^ *+' conftest.err >conftest.er1
1595     cat conftest.er1 >&5
1596     mv -f conftest.er1 conftest.err
1597   fi
1598   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1599   test $ac_status = 0; } && {
1600          test -z "$ac_c_werror_flag" ||
1601          test ! -s conftest.err
1602        } && test -s conftest.$ac_objext; then :
1603   ac_retval=0
1604 else
1605   $as_echo "$as_me: failed program was:" >&5
1606 sed 's/^/| /' conftest.$ac_ext >&5
1607
1608         ac_retval=1
1609 fi
1610   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1611   as_fn_set_status $ac_retval
1612
1613 } # ac_fn_c_try_compile
1614
1615 # ac_fn_c_try_cpp LINENO
1616 # ----------------------
1617 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1618 ac_fn_c_try_cpp ()
1619 {
1620   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621   if { { ac_try="$ac_cpp conftest.$ac_ext"
1622 case "(($ac_try" in
1623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1624   *) ac_try_echo=$ac_try;;
1625 esac
1626 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1627 $as_echo "$ac_try_echo"; } >&5
1628   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1629   ac_status=$?
1630   if test -s conftest.err; then
1631     grep -v '^ *+' conftest.err >conftest.er1
1632     cat conftest.er1 >&5
1633     mv -f conftest.er1 conftest.err
1634   fi
1635   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1636   test $ac_status = 0; } > conftest.i && {
1637          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1638          test ! -s conftest.err
1639        }; then :
1640   ac_retval=0
1641 else
1642   $as_echo "$as_me: failed program was:" >&5
1643 sed 's/^/| /' conftest.$ac_ext >&5
1644
1645     ac_retval=1
1646 fi
1647   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1648   as_fn_set_status $ac_retval
1649
1650 } # ac_fn_c_try_cpp
1651
1652 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1653 # -------------------------------------------------------
1654 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1655 # the include files in INCLUDES and setting the cache variable VAR
1656 # accordingly.
1657 ac_fn_c_check_header_mongrel ()
1658 {
1659   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660   if eval \${$3+:} false; then :
1661   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1662 $as_echo_n "checking for $2... " >&6; }
1663 if eval \${$3+:} false; then :
1664   $as_echo_n "(cached) " >&6
1665 fi
1666 eval ac_res=\$$3
1667                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1668 $as_echo "$ac_res" >&6; }
1669 else
1670   # Is the header compilable?
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1672 $as_echo_n "checking $2 usability... " >&6; }
1673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1674 /* end confdefs.h.  */
1675 $4
1676 #include <$2>
1677 _ACEOF
1678 if ac_fn_c_try_compile "$LINENO"; then :
1679   ac_header_compiler=yes
1680 else
1681   ac_header_compiler=no
1682 fi
1683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1685 $as_echo "$ac_header_compiler" >&6; }
1686
1687 # Is the header present?
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1689 $as_echo_n "checking $2 presence... " >&6; }
1690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1691 /* end confdefs.h.  */
1692 #include <$2>
1693 _ACEOF
1694 if ac_fn_c_try_cpp "$LINENO"; then :
1695   ac_header_preproc=yes
1696 else
1697   ac_header_preproc=no
1698 fi
1699 rm -f conftest.err conftest.i conftest.$ac_ext
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1701 $as_echo "$ac_header_preproc" >&6; }
1702
1703 # So?  What about this header?
1704 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1705   yes:no: )
1706     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1707 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1708     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1709 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1710     ;;
1711   no:yes:* )
1712     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1713 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1714     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1715 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1716     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1717 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1718     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1719 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1720     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1721 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1722 ( $as_echo "## ---------------------------------------------------------------- ##
1723 ## Report this to https://github.com/libpinyin/libpinyin/issues/new ##
1724 ## ---------------------------------------------------------------- ##"
1725      ) | sed "s/^/$as_me: WARNING:     /" >&2
1726     ;;
1727 esac
1728   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1729 $as_echo_n "checking for $2... " >&6; }
1730 if eval \${$3+:} false; then :
1731   $as_echo_n "(cached) " >&6
1732 else
1733   eval "$3=\$ac_header_compiler"
1734 fi
1735 eval ac_res=\$$3
1736                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1737 $as_echo "$ac_res" >&6; }
1738 fi
1739   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1740
1741 } # ac_fn_c_check_header_mongrel
1742
1743 # ac_fn_c_try_run LINENO
1744 # ----------------------
1745 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1746 # that executables *can* be run.
1747 ac_fn_c_try_run ()
1748 {
1749   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750   if { { ac_try="$ac_link"
1751 case "(($ac_try" in
1752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1753   *) ac_try_echo=$ac_try;;
1754 esac
1755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1756 $as_echo "$ac_try_echo"; } >&5
1757   (eval "$ac_link") 2>&5
1758   ac_status=$?
1759   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1760   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1761   { { case "(($ac_try" in
1762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1763   *) ac_try_echo=$ac_try;;
1764 esac
1765 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1766 $as_echo "$ac_try_echo"; } >&5
1767   (eval "$ac_try") 2>&5
1768   ac_status=$?
1769   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1770   test $ac_status = 0; }; }; then :
1771   ac_retval=0
1772 else
1773   $as_echo "$as_me: program exited with status $ac_status" >&5
1774        $as_echo "$as_me: failed program was:" >&5
1775 sed 's/^/| /' conftest.$ac_ext >&5
1776
1777        ac_retval=$ac_status
1778 fi
1779   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1780   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1781   as_fn_set_status $ac_retval
1782
1783 } # ac_fn_c_try_run
1784
1785 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1786 # -------------------------------------------------------
1787 # Tests whether HEADER exists and can be compiled using the include files in
1788 # INCLUDES, setting the cache variable VAR accordingly.
1789 ac_fn_c_check_header_compile ()
1790 {
1791   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1793 $as_echo_n "checking for $2... " >&6; }
1794 if eval \${$3+:} false; then :
1795   $as_echo_n "(cached) " >&6
1796 else
1797   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1798 /* end confdefs.h.  */
1799 $4
1800 #include <$2>
1801 _ACEOF
1802 if ac_fn_c_try_compile "$LINENO"; then :
1803   eval "$3=yes"
1804 else
1805   eval "$3=no"
1806 fi
1807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1808 fi
1809 eval ac_res=\$$3
1810                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1811 $as_echo "$ac_res" >&6; }
1812   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1813
1814 } # ac_fn_c_check_header_compile
1815
1816 # ac_fn_c_try_link LINENO
1817 # -----------------------
1818 # Try to link conftest.$ac_ext, and return whether this succeeded.
1819 ac_fn_c_try_link ()
1820 {
1821   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822   rm -f conftest.$ac_objext conftest$ac_exeext
1823   if { { ac_try="$ac_link"
1824 case "(($ac_try" in
1825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1826   *) ac_try_echo=$ac_try;;
1827 esac
1828 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1829 $as_echo "$ac_try_echo"; } >&5
1830   (eval "$ac_link") 2>conftest.err
1831   ac_status=$?
1832   if test -s conftest.err; then
1833     grep -v '^ *+' conftest.err >conftest.er1
1834     cat conftest.er1 >&5
1835     mv -f conftest.er1 conftest.err
1836   fi
1837   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1838   test $ac_status = 0; } && {
1839          test -z "$ac_c_werror_flag" ||
1840          test ! -s conftest.err
1841        } && test -s conftest$ac_exeext && {
1842          test "$cross_compiling" = yes ||
1843          test -x conftest$ac_exeext
1844        }; then :
1845   ac_retval=0
1846 else
1847   $as_echo "$as_me: failed program was:" >&5
1848 sed 's/^/| /' conftest.$ac_ext >&5
1849
1850         ac_retval=1
1851 fi
1852   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1853   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1854   # interfere with the next link command; also delete a directory that is
1855   # left behind by Apple's compiler.  We do this before executing the actions.
1856   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1857   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1858   as_fn_set_status $ac_retval
1859
1860 } # ac_fn_c_try_link
1861
1862 # ac_fn_c_check_func LINENO FUNC VAR
1863 # ----------------------------------
1864 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1865 ac_fn_c_check_func ()
1866 {
1867   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1869 $as_echo_n "checking for $2... " >&6; }
1870 if eval \${$3+:} false; then :
1871   $as_echo_n "(cached) " >&6
1872 else
1873   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1874 /* end confdefs.h.  */
1875 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1876    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1877 #define $2 innocuous_$2
1878
1879 /* System header to define __stub macros and hopefully few prototypes,
1880     which can conflict with char $2 (); below.
1881     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1882     <limits.h> exists even on freestanding compilers.  */
1883
1884 #ifdef __STDC__
1885 # include <limits.h>
1886 #else
1887 # include <assert.h>
1888 #endif
1889
1890 #undef $2
1891
1892 /* Override any GCC internal prototype to avoid an error.
1893    Use char because int might match the return type of a GCC
1894    builtin and then its argument prototype would still apply.  */
1895 #ifdef __cplusplus
1896 extern "C"
1897 #endif
1898 char $2 ();
1899 /* The GNU C library defines this for functions which it implements
1900     to always fail with ENOSYS.  Some functions are actually named
1901     something starting with __ and the normal name is an alias.  */
1902 #if defined __stub_$2 || defined __stub___$2
1903 choke me
1904 #endif
1905
1906 int
1907 main ()
1908 {
1909 return $2 ();
1910   ;
1911   return 0;
1912 }
1913 _ACEOF
1914 if ac_fn_c_try_link "$LINENO"; then :
1915   eval "$3=yes"
1916 else
1917   eval "$3=no"
1918 fi
1919 rm -f core conftest.err conftest.$ac_objext \
1920     conftest$ac_exeext conftest.$ac_ext
1921 fi
1922 eval ac_res=\$$3
1923                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1924 $as_echo "$ac_res" >&6; }
1925   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1926
1927 } # ac_fn_c_check_func
1928
1929 # ac_fn_cxx_try_cpp LINENO
1930 # ------------------------
1931 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1932 ac_fn_cxx_try_cpp ()
1933 {
1934   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1935   if { { ac_try="$ac_cpp conftest.$ac_ext"
1936 case "(($ac_try" in
1937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1938   *) ac_try_echo=$ac_try;;
1939 esac
1940 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1941 $as_echo "$ac_try_echo"; } >&5
1942   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1943   ac_status=$?
1944   if test -s conftest.err; then
1945     grep -v '^ *+' conftest.err >conftest.er1
1946     cat conftest.er1 >&5
1947     mv -f conftest.er1 conftest.err
1948   fi
1949   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1950   test $ac_status = 0; } > conftest.i && {
1951          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1952          test ! -s conftest.err
1953        }; then :
1954   ac_retval=0
1955 else
1956   $as_echo "$as_me: failed program was:" >&5
1957 sed 's/^/| /' conftest.$ac_ext >&5
1958
1959     ac_retval=1
1960 fi
1961   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1962   as_fn_set_status $ac_retval
1963
1964 } # ac_fn_cxx_try_cpp
1965
1966 # ac_fn_cxx_try_link LINENO
1967 # -------------------------
1968 # Try to link conftest.$ac_ext, and return whether this succeeded.
1969 ac_fn_cxx_try_link ()
1970 {
1971   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1972   rm -f conftest.$ac_objext conftest$ac_exeext
1973   if { { ac_try="$ac_link"
1974 case "(($ac_try" in
1975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1976   *) ac_try_echo=$ac_try;;
1977 esac
1978 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1979 $as_echo "$ac_try_echo"; } >&5
1980   (eval "$ac_link") 2>conftest.err
1981   ac_status=$?
1982   if test -s conftest.err; then
1983     grep -v '^ *+' conftest.err >conftest.er1
1984     cat conftest.er1 >&5
1985     mv -f conftest.er1 conftest.err
1986   fi
1987   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1988   test $ac_status = 0; } && {
1989          test -z "$ac_cxx_werror_flag" ||
1990          test ! -s conftest.err
1991        } && test -s conftest$ac_exeext && {
1992          test "$cross_compiling" = yes ||
1993          test -x conftest$ac_exeext
1994        }; then :
1995   ac_retval=0
1996 else
1997   $as_echo "$as_me: failed program was:" >&5
1998 sed 's/^/| /' conftest.$ac_ext >&5
1999
2000         ac_retval=1
2001 fi
2002   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2003   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2004   # interfere with the next link command; also delete a directory that is
2005   # left behind by Apple's compiler.  We do this before executing the actions.
2006   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2007   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2008   as_fn_set_status $ac_retval
2009
2010 } # ac_fn_cxx_try_link
2011
2012 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2013 # -------------------------------------------
2014 # Tests whether TYPE exists after having included INCLUDES, setting cache
2015 # variable VAR accordingly.
2016 ac_fn_c_check_type ()
2017 {
2018   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2019   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2020 $as_echo_n "checking for $2... " >&6; }
2021 if eval \${$3+:} false; then :
2022   $as_echo_n "(cached) " >&6
2023 else
2024   eval "$3=no"
2025   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2026 /* end confdefs.h.  */
2027 $4
2028 int
2029 main ()
2030 {
2031 if (sizeof ($2))
2032          return 0;
2033   ;
2034   return 0;
2035 }
2036 _ACEOF
2037 if ac_fn_c_try_compile "$LINENO"; then :
2038   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2039 /* end confdefs.h.  */
2040 $4
2041 int
2042 main ()
2043 {
2044 if (sizeof (($2)))
2045             return 0;
2046   ;
2047   return 0;
2048 }
2049 _ACEOF
2050 if ac_fn_c_try_compile "$LINENO"; then :
2051
2052 else
2053   eval "$3=yes"
2054 fi
2055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2056 fi
2057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2058 fi
2059 eval ac_res=\$$3
2060                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2061 $as_echo "$ac_res" >&6; }
2062   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2063
2064 } # ac_fn_c_check_type
2065 cat >config.log <<_ACEOF
2066 This file contains any messages produced by compilers while
2067 running configure, to aid debugging if configure makes a mistake.
2068
2069 It was created by libpinyin $as_me 1.0.0, which was
2070 generated by GNU Autoconf 2.69.  Invocation command line was
2071
2072   $ $0 $@
2073
2074 _ACEOF
2075 exec 5>>config.log
2076 {
2077 cat <<_ASUNAME
2078 ## --------- ##
2079 ## Platform. ##
2080 ## --------- ##
2081
2082 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2083 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2084 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2085 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2086 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2087
2088 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2089 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2090
2091 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2092 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2093 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2094 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2095 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2096 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2097 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2098
2099 _ASUNAME
2100
2101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2102 for as_dir in $PATH
2103 do
2104   IFS=$as_save_IFS
2105   test -z "$as_dir" && as_dir=.
2106     $as_echo "PATH: $as_dir"
2107   done
2108 IFS=$as_save_IFS
2109
2110 } >&5
2111
2112 cat >&5 <<_ACEOF
2113
2114
2115 ## ----------- ##
2116 ## Core tests. ##
2117 ## ----------- ##
2118
2119 _ACEOF
2120
2121
2122 # Keep a trace of the command line.
2123 # Strip out --no-create and --no-recursion so they do not pile up.
2124 # Strip out --silent because we don't want to record it for future runs.
2125 # Also quote any args containing shell meta-characters.
2126 # Make two passes to allow for proper duplicate-argument suppression.
2127 ac_configure_args=
2128 ac_configure_args0=
2129 ac_configure_args1=
2130 ac_must_keep_next=false
2131 for ac_pass in 1 2
2132 do
2133   for ac_arg
2134   do
2135     case $ac_arg in
2136     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2137     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2138     | -silent | --silent | --silen | --sile | --sil)
2139       continue ;;
2140     *\'*)
2141       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2142     esac
2143     case $ac_pass in
2144     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2145     2)
2146       as_fn_append ac_configure_args1 " '$ac_arg'"
2147       if test $ac_must_keep_next = true; then
2148         ac_must_keep_next=false # Got value, back to normal.
2149       else
2150         case $ac_arg in
2151           *=* | --config-cache | -C | -disable-* | --disable-* \
2152           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2153           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2154           | -with-* | --with-* | -without-* | --without-* | --x)
2155             case "$ac_configure_args0 " in
2156               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2157             esac
2158             ;;
2159           -* ) ac_must_keep_next=true ;;
2160         esac
2161       fi
2162       as_fn_append ac_configure_args " '$ac_arg'"
2163       ;;
2164     esac
2165   done
2166 done
2167 { ac_configure_args0=; unset ac_configure_args0;}
2168 { ac_configure_args1=; unset ac_configure_args1;}
2169
2170 # When interrupted or exit'd, cleanup temporary files, and complete
2171 # config.log.  We remove comments because anyway the quotes in there
2172 # would cause problems or look ugly.
2173 # WARNING: Use '\'' to represent an apostrophe within the trap.
2174 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2175 trap 'exit_status=$?
2176   # Save into config.log some information that might help in debugging.
2177   {
2178     echo
2179
2180     $as_echo "## ---------------- ##
2181 ## Cache variables. ##
2182 ## ---------------- ##"
2183     echo
2184     # The following way of writing the cache mishandles newlines in values,
2185 (
2186   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2187     eval ac_val=\$$ac_var
2188     case $ac_val in #(
2189     *${as_nl}*)
2190       case $ac_var in #(
2191       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2192 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2193       esac
2194       case $ac_var in #(
2195       _ | IFS | as_nl) ;; #(
2196       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2197       *) { eval $ac_var=; unset $ac_var;} ;;
2198       esac ;;
2199     esac
2200   done
2201   (set) 2>&1 |
2202     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2203     *${as_nl}ac_space=\ *)
2204       sed -n \
2205         "s/'\''/'\''\\\\'\'''\''/g;
2206           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2207       ;; #(
2208     *)
2209       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2210       ;;
2211     esac |
2212     sort
2213 )
2214     echo
2215
2216     $as_echo "## ----------------- ##
2217 ## Output variables. ##
2218 ## ----------------- ##"
2219     echo
2220     for ac_var in $ac_subst_vars
2221     do
2222       eval ac_val=\$$ac_var
2223       case $ac_val in
2224       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2225       esac
2226       $as_echo "$ac_var='\''$ac_val'\''"
2227     done | sort
2228     echo
2229
2230     if test -n "$ac_subst_files"; then
2231       $as_echo "## ------------------- ##
2232 ## File substitutions. ##
2233 ## ------------------- ##"
2234       echo
2235       for ac_var in $ac_subst_files
2236       do
2237         eval ac_val=\$$ac_var
2238         case $ac_val in
2239         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2240         esac
2241         $as_echo "$ac_var='\''$ac_val'\''"
2242       done | sort
2243       echo
2244     fi
2245
2246     if test -s confdefs.h; then
2247       $as_echo "## ----------- ##
2248 ## confdefs.h. ##
2249 ## ----------- ##"
2250       echo
2251       cat confdefs.h
2252       echo
2253     fi
2254     test "$ac_signal" != 0 &&
2255       $as_echo "$as_me: caught signal $ac_signal"
2256     $as_echo "$as_me: exit $exit_status"
2257   } >&5
2258   rm -f core *.core core.conftest.* &&
2259     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2260     exit $exit_status
2261 ' 0
2262 for ac_signal in 1 2 13 15; do
2263   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2264 done
2265 ac_signal=0
2266
2267 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2268 rm -f -r conftest* confdefs.h
2269
2270 $as_echo "/* confdefs.h */" > confdefs.h
2271
2272 # Predefined preprocessor variables.
2273
2274 cat >>confdefs.h <<_ACEOF
2275 #define PACKAGE_NAME "$PACKAGE_NAME"
2276 _ACEOF
2277
2278 cat >>confdefs.h <<_ACEOF
2279 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2280 _ACEOF
2281
2282 cat >>confdefs.h <<_ACEOF
2283 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2284 _ACEOF
2285
2286 cat >>confdefs.h <<_ACEOF
2287 #define PACKAGE_STRING "$PACKAGE_STRING"
2288 _ACEOF
2289
2290 cat >>confdefs.h <<_ACEOF
2291 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2292 _ACEOF
2293
2294 cat >>confdefs.h <<_ACEOF
2295 #define PACKAGE_URL "$PACKAGE_URL"
2296 _ACEOF
2297
2298
2299 # Let the site file select an alternate cache file if it wants to.
2300 # Prefer an explicitly selected file to automatically selected ones.
2301 ac_site_file1=NONE
2302 ac_site_file2=NONE
2303 if test -n "$CONFIG_SITE"; then
2304   # We do not want a PATH search for config.site.
2305   case $CONFIG_SITE in #((
2306     -*)  ac_site_file1=./$CONFIG_SITE;;
2307     */*) ac_site_file1=$CONFIG_SITE;;
2308     *)   ac_site_file1=./$CONFIG_SITE;;
2309   esac
2310 elif test "x$prefix" != xNONE; then
2311   ac_site_file1=$prefix/share/config.site
2312   ac_site_file2=$prefix/etc/config.site
2313 else
2314   ac_site_file1=$ac_default_prefix/share/config.site
2315   ac_site_file2=$ac_default_prefix/etc/config.site
2316 fi
2317 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2318 do
2319   test "x$ac_site_file" = xNONE && continue
2320   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2321     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2322 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2323     sed 's/^/| /' "$ac_site_file" >&5
2324     . "$ac_site_file" \
2325       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2326 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2327 as_fn_error $? "failed to load site script $ac_site_file
2328 See \`config.log' for more details" "$LINENO" 5; }
2329   fi
2330 done
2331
2332 if test -r "$cache_file"; then
2333   # Some versions of bash will fail to source /dev/null (special files
2334   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2335   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2336     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2337 $as_echo "$as_me: loading cache $cache_file" >&6;}
2338     case $cache_file in
2339       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2340       *)                      . "./$cache_file";;
2341     esac
2342   fi
2343 else
2344   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2345 $as_echo "$as_me: creating cache $cache_file" >&6;}
2346   >$cache_file
2347 fi
2348
2349 as_fn_append ac_header_list " stdlib.h"
2350 as_fn_append ac_header_list " unistd.h"
2351 as_fn_append ac_header_list " sys/param.h"
2352 # Check that the precious variables saved in the cache have kept the same
2353 # value.
2354 ac_cache_corrupted=false
2355 for ac_var in $ac_precious_vars; do
2356   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2357   eval ac_new_set=\$ac_env_${ac_var}_set
2358   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2359   eval ac_new_val=\$ac_env_${ac_var}_value
2360   case $ac_old_set,$ac_new_set in
2361     set,)
2362       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2363 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2364       ac_cache_corrupted=: ;;
2365     ,set)
2366       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2367 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2368       ac_cache_corrupted=: ;;
2369     ,);;
2370     *)
2371       if test "x$ac_old_val" != "x$ac_new_val"; then
2372         # differences in whitespace do not lead to failure.
2373         ac_old_val_w=`echo x $ac_old_val`
2374         ac_new_val_w=`echo x $ac_new_val`
2375         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2376           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2377 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2378           ac_cache_corrupted=:
2379         else
2380           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2381 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2382           eval $ac_var=\$ac_old_val
2383         fi
2384         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2385 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2386         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2387 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2388       fi;;
2389   esac
2390   # Pass precious variables to config.status.
2391   if test "$ac_new_set" = set; then
2392     case $ac_new_val in
2393     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2394     *) ac_arg=$ac_var=$ac_new_val ;;
2395     esac
2396     case " $ac_configure_args " in
2397       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2398       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2399     esac
2400   fi
2401 done
2402 if $ac_cache_corrupted; then
2403   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2404 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2405   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2406 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2407   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2408 fi
2409 ## -------------------- ##
2410 ## Main body of script. ##
2411 ## -------------------- ##
2412
2413 ac_ext=c
2414 ac_cpp='$CPP $CPPFLAGS'
2415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2418
2419
2420 am__api_version='1.13'
2421
2422 ac_aux_dir=
2423 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2424   if test -f "$ac_dir/install-sh"; then
2425     ac_aux_dir=$ac_dir
2426     ac_install_sh="$ac_aux_dir/install-sh -c"
2427     break
2428   elif test -f "$ac_dir/install.sh"; then
2429     ac_aux_dir=$ac_dir
2430     ac_install_sh="$ac_aux_dir/install.sh -c"
2431     break
2432   elif test -f "$ac_dir/shtool"; then
2433     ac_aux_dir=$ac_dir
2434     ac_install_sh="$ac_aux_dir/shtool install -c"
2435     break
2436   fi
2437 done
2438 if test -z "$ac_aux_dir"; then
2439   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2440 fi
2441
2442 # These three variables are undocumented and unsupported,
2443 # and are intended to be withdrawn in a future Autoconf release.
2444 # They can cause serious problems if a builder's source tree is in a directory
2445 # whose full name contains unusual characters.
2446 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2447 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2448 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2449
2450
2451 # Find a good install program.  We prefer a C program (faster),
2452 # so one script is as good as another.  But avoid the broken or
2453 # incompatible versions:
2454 # SysV /etc/install, /usr/sbin/install
2455 # SunOS /usr/etc/install
2456 # IRIX /sbin/install
2457 # AIX /bin/install
2458 # AmigaOS /C/install, which installs bootblocks on floppy discs
2459 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2460 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2461 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2462 # OS/2's system install, which has a completely different semantic
2463 # ./install, which can be erroneously created by make from ./install.sh.
2464 # Reject install programs that cannot install multiple files.
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2466 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2467 if test -z "$INSTALL"; then
2468 if ${ac_cv_path_install+:} false; then :
2469   $as_echo_n "(cached) " >&6
2470 else
2471   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2472 for as_dir in $PATH
2473 do
2474   IFS=$as_save_IFS
2475   test -z "$as_dir" && as_dir=.
2476     # Account for people who put trailing slashes in PATH elements.
2477 case $as_dir/ in #((
2478   ./ | .// | /[cC]/* | \
2479   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2480   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2481   /usr/ucb/* ) ;;
2482   *)
2483     # OSF1 and SCO ODT 3.0 have their own names for install.
2484     # Don't use installbsd from OSF since it installs stuff as root
2485     # by default.
2486     for ac_prog in ginstall scoinst install; do
2487       for ac_exec_ext in '' $ac_executable_extensions; do
2488         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2489           if test $ac_prog = install &&
2490             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2491             # AIX install.  It has an incompatible calling convention.
2492             :
2493           elif test $ac_prog = install &&
2494             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2495             # program-specific install script used by HP pwplus--don't use.
2496             :
2497           else
2498             rm -rf conftest.one conftest.two conftest.dir
2499             echo one > conftest.one
2500             echo two > conftest.two
2501             mkdir conftest.dir
2502             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2503               test -s conftest.one && test -s conftest.two &&
2504               test -s conftest.dir/conftest.one &&
2505               test -s conftest.dir/conftest.two
2506             then
2507               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2508               break 3
2509             fi
2510           fi
2511         fi
2512       done
2513     done
2514     ;;
2515 esac
2516
2517   done
2518 IFS=$as_save_IFS
2519
2520 rm -rf conftest.one conftest.two conftest.dir
2521
2522 fi
2523   if test "${ac_cv_path_install+set}" = set; then
2524     INSTALL=$ac_cv_path_install
2525   else
2526     # As a last resort, use the slow shell script.  Don't cache a
2527     # value for INSTALL within a source directory, because that will
2528     # break other packages using the cache if that directory is
2529     # removed, or if the value is a relative name.
2530     INSTALL=$ac_install_sh
2531   fi
2532 fi
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2534 $as_echo "$INSTALL" >&6; }
2535
2536 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2537 # It thinks the first close brace ends the variable substitution.
2538 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2539
2540 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2541
2542 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2543
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2545 $as_echo_n "checking whether build environment is sane... " >&6; }
2546 # Reject unsafe characters in $srcdir or the absolute working directory
2547 # name.  Accept space and tab only in the latter.
2548 am_lf='
2549 '
2550 case `pwd` in
2551   *[\\\"\#\$\&\'\`$am_lf]*)
2552     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2553 esac
2554 case $srcdir in
2555   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2556     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2557 esac
2558
2559 # Do 'set' in a subshell so we don't clobber the current shell's
2560 # arguments.  Must try -L first in case configure is actually a
2561 # symlink; some systems play weird games with the mod time of symlinks
2562 # (eg FreeBSD returns the mod time of the symlink's containing
2563 # directory).
2564 if (
2565    am_has_slept=no
2566    for am_try in 1 2; do
2567      echo "timestamp, slept: $am_has_slept" > conftest.file
2568      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2569      if test "$*" = "X"; then
2570         # -L didn't work.
2571         set X `ls -t "$srcdir/configure" conftest.file`
2572      fi
2573      if test "$*" != "X $srcdir/configure conftest.file" \
2574         && test "$*" != "X conftest.file $srcdir/configure"; then
2575
2576         # If neither matched, then we have a broken ls.  This can happen
2577         # if, for instance, CONFIG_SHELL is bash and it inherits a
2578         # broken ls alias from the environment.  This has actually
2579         # happened.  Such a system could not be considered "sane".
2580         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2581   alias in your environment" "$LINENO" 5
2582      fi
2583      if test "$2" = conftest.file || test $am_try -eq 2; then
2584        break
2585      fi
2586      # Just in case.
2587      sleep 1
2588      am_has_slept=yes
2589    done
2590    test "$2" = conftest.file
2591    )
2592 then
2593    # Ok.
2594    :
2595 else
2596    as_fn_error $? "newly created file is older than distributed files!
2597 Check your system clock" "$LINENO" 5
2598 fi
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2600 $as_echo "yes" >&6; }
2601 # If we didn't sleep, we still need to ensure time stamps of config.status and
2602 # generated files are strictly newer.
2603 am_sleep_pid=
2604 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2605   ( sleep 1 ) &
2606   am_sleep_pid=$!
2607 fi
2608
2609 rm -f conftest.file
2610
2611 test "$program_prefix" != NONE &&
2612   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2613 # Use a double $ so make ignores it.
2614 test "$program_suffix" != NONE &&
2615   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2616 # Double any \ or $.
2617 # By default was `s,x,x', remove it if useless.
2618 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2619 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2620
2621 # expand $ac_aux_dir to an absolute path
2622 am_aux_dir=`cd $ac_aux_dir && pwd`
2623
2624 if test x"${MISSING+set}" != xset; then
2625   case $am_aux_dir in
2626   *\ * | *\     *)
2627     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2628   *)
2629     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2630   esac
2631 fi
2632 # Use eval to expand $SHELL
2633 if eval "$MISSING --is-lightweight"; then
2634   am_missing_run="$MISSING "
2635 else
2636   am_missing_run=
2637   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2638 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2639 fi
2640
2641 if test x"${install_sh}" != xset; then
2642   case $am_aux_dir in
2643   *\ * | *\     *)
2644     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2645   *)
2646     install_sh="\${SHELL} $am_aux_dir/install-sh"
2647   esac
2648 fi
2649
2650 # Installed binaries are usually stripped using 'strip' when the user
2651 # run "make install-strip".  However 'strip' might not be the right
2652 # tool to use in cross-compilation environments, therefore Automake
2653 # will honor the 'STRIP' environment variable to overrule this program.
2654 if test "$cross_compiling" != no; then
2655   if test -n "$ac_tool_prefix"; then
2656   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2657 set dummy ${ac_tool_prefix}strip; ac_word=$2
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2659 $as_echo_n "checking for $ac_word... " >&6; }
2660 if ${ac_cv_prog_STRIP+:} false; then :
2661   $as_echo_n "(cached) " >&6
2662 else
2663   if test -n "$STRIP"; then
2664   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2665 else
2666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2667 for as_dir in $PATH
2668 do
2669   IFS=$as_save_IFS
2670   test -z "$as_dir" && as_dir=.
2671     for ac_exec_ext in '' $ac_executable_extensions; do
2672   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2673     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2674     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2675     break 2
2676   fi
2677 done
2678   done
2679 IFS=$as_save_IFS
2680
2681 fi
2682 fi
2683 STRIP=$ac_cv_prog_STRIP
2684 if test -n "$STRIP"; then
2685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2686 $as_echo "$STRIP" >&6; }
2687 else
2688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2689 $as_echo "no" >&6; }
2690 fi
2691
2692
2693 fi
2694 if test -z "$ac_cv_prog_STRIP"; then
2695   ac_ct_STRIP=$STRIP
2696   # Extract the first word of "strip", so it can be a program name with args.
2697 set dummy strip; ac_word=$2
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2699 $as_echo_n "checking for $ac_word... " >&6; }
2700 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2701   $as_echo_n "(cached) " >&6
2702 else
2703   if test -n "$ac_ct_STRIP"; then
2704   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2705 else
2706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2707 for as_dir in $PATH
2708 do
2709   IFS=$as_save_IFS
2710   test -z "$as_dir" && as_dir=.
2711     for ac_exec_ext in '' $ac_executable_extensions; do
2712   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2713     ac_cv_prog_ac_ct_STRIP="strip"
2714     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2715     break 2
2716   fi
2717 done
2718   done
2719 IFS=$as_save_IFS
2720
2721 fi
2722 fi
2723 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2724 if test -n "$ac_ct_STRIP"; then
2725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2726 $as_echo "$ac_ct_STRIP" >&6; }
2727 else
2728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2729 $as_echo "no" >&6; }
2730 fi
2731
2732   if test "x$ac_ct_STRIP" = x; then
2733     STRIP=":"
2734   else
2735     case $cross_compiling:$ac_tool_warned in
2736 yes:)
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2738 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2739 ac_tool_warned=yes ;;
2740 esac
2741     STRIP=$ac_ct_STRIP
2742   fi
2743 else
2744   STRIP="$ac_cv_prog_STRIP"
2745 fi
2746
2747 fi
2748 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2749
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2751 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2752 if test -z "$MKDIR_P"; then
2753   if ${ac_cv_path_mkdir+:} false; then :
2754   $as_echo_n "(cached) " >&6
2755 else
2756   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2757 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2758 do
2759   IFS=$as_save_IFS
2760   test -z "$as_dir" && as_dir=.
2761     for ac_prog in mkdir gmkdir; do
2762          for ac_exec_ext in '' $ac_executable_extensions; do
2763            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2764            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2765              'mkdir (GNU coreutils) '* | \
2766              'mkdir (coreutils) '* | \
2767              'mkdir (fileutils) '4.1*)
2768                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2769                break 3;;
2770            esac
2771          done
2772        done
2773   done
2774 IFS=$as_save_IFS
2775
2776 fi
2777
2778   test -d ./--version && rmdir ./--version
2779   if test "${ac_cv_path_mkdir+set}" = set; then
2780     MKDIR_P="$ac_cv_path_mkdir -p"
2781   else
2782     # As a last resort, use the slow shell script.  Don't cache a
2783     # value for MKDIR_P within a source directory, because that will
2784     # break other packages using the cache if that directory is
2785     # removed, or if the value is a relative name.
2786     MKDIR_P="$ac_install_sh -d"
2787   fi
2788 fi
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2790 $as_echo "$MKDIR_P" >&6; }
2791
2792 for ac_prog in gawk mawk nawk awk
2793 do
2794   # Extract the first word of "$ac_prog", so it can be a program name with args.
2795 set dummy $ac_prog; ac_word=$2
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2797 $as_echo_n "checking for $ac_word... " >&6; }
2798 if ${ac_cv_prog_AWK+:} false; then :
2799   $as_echo_n "(cached) " >&6
2800 else
2801   if test -n "$AWK"; then
2802   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2803 else
2804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2805 for as_dir in $PATH
2806 do
2807   IFS=$as_save_IFS
2808   test -z "$as_dir" && as_dir=.
2809     for ac_exec_ext in '' $ac_executable_extensions; do
2810   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2811     ac_cv_prog_AWK="$ac_prog"
2812     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2813     break 2
2814   fi
2815 done
2816   done
2817 IFS=$as_save_IFS
2818
2819 fi
2820 fi
2821 AWK=$ac_cv_prog_AWK
2822 if test -n "$AWK"; then
2823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2824 $as_echo "$AWK" >&6; }
2825 else
2826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2827 $as_echo "no" >&6; }
2828 fi
2829
2830
2831   test -n "$AWK" && break
2832 done
2833
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2835 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2836 set x ${MAKE-make}
2837 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2838 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2839   $as_echo_n "(cached) " >&6
2840 else
2841   cat >conftest.make <<\_ACEOF
2842 SHELL = /bin/sh
2843 all:
2844         @echo '@@@%%%=$(MAKE)=@@@%%%'
2845 _ACEOF
2846 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2847 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2848   *@@@%%%=?*=@@@%%%*)
2849     eval ac_cv_prog_make_${ac_make}_set=yes;;
2850   *)
2851     eval ac_cv_prog_make_${ac_make}_set=no;;
2852 esac
2853 rm -f conftest.make
2854 fi
2855 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2857 $as_echo "yes" >&6; }
2858   SET_MAKE=
2859 else
2860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2861 $as_echo "no" >&6; }
2862   SET_MAKE="MAKE=${MAKE-make}"
2863 fi
2864
2865 rm -rf .tst 2>/dev/null
2866 mkdir .tst 2>/dev/null
2867 if test -d .tst; then
2868   am__leading_dot=.
2869 else
2870   am__leading_dot=_
2871 fi
2872 rmdir .tst 2>/dev/null
2873
2874 # Check whether --enable-silent-rules was given.
2875 if test "${enable_silent_rules+set}" = set; then :
2876   enableval=$enable_silent_rules;
2877 fi
2878
2879 case $enable_silent_rules in # (((
2880   yes) AM_DEFAULT_VERBOSITY=0;;
2881    no) AM_DEFAULT_VERBOSITY=1;;
2882     *) AM_DEFAULT_VERBOSITY=1;;
2883 esac
2884 am_make=${MAKE-make}
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2886 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2887 if ${am_cv_make_support_nested_variables+:} false; then :
2888   $as_echo_n "(cached) " >&6
2889 else
2890   if $as_echo 'TRUE=$(BAR$(V))
2891 BAR0=false
2892 BAR1=true
2893 V=1
2894 am__doit:
2895         @$(TRUE)
2896 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2897   am_cv_make_support_nested_variables=yes
2898 else
2899   am_cv_make_support_nested_variables=no
2900 fi
2901 fi
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2903 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2904 if test $am_cv_make_support_nested_variables = yes; then
2905     AM_V='$(V)'
2906   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2907 else
2908   AM_V=$AM_DEFAULT_VERBOSITY
2909   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2910 fi
2911 AM_BACKSLASH='\'
2912
2913 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2914   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2915   # is not polluted with repeated "-I."
2916   am__isrc=' -I$(srcdir)'
2917   # test to see if srcdir already configured
2918   if test -f $srcdir/config.status; then
2919     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2920   fi
2921 fi
2922
2923 # test whether we have cygpath
2924 if test -z "$CYGPATH_W"; then
2925   if (cygpath --version) >/dev/null 2>/dev/null; then
2926     CYGPATH_W='cygpath -w'
2927   else
2928     CYGPATH_W=echo
2929   fi
2930 fi
2931
2932
2933 # Define the identity of the package.
2934  PACKAGE='libpinyin'
2935  VERSION='1.0.0'
2936
2937
2938 cat >>confdefs.h <<_ACEOF
2939 #define PACKAGE "$PACKAGE"
2940 _ACEOF
2941
2942
2943 cat >>confdefs.h <<_ACEOF
2944 #define VERSION "$VERSION"
2945 _ACEOF
2946
2947 # Some tools Automake needs.
2948
2949 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2950
2951
2952 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2953
2954
2955 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2956
2957
2958 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2959
2960
2961 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2962
2963 # For better backward compatibility.  To be removed once Automake 1.9.x
2964 # dies out for good.  For more background, see:
2965 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2966 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2967 mkdir_p='$(MKDIR_P)'
2968
2969 # We need awk for the "check" target.  The system "awk" is bad on
2970 # some platforms.
2971 # Always define AMTAR for backward compatibility.  Yes, it's still used
2972 # in the wild :-(  We should find a proper way to deprecate it ...
2973 AMTAR='$${TAR-tar}'
2974
2975
2976 # We'll loop over all known methods to create a tar archive until one works.
2977 _am_tools='gnutar  pax cpio none'
2978
2979 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2980
2981
2982
2983
2984
2985
2986
2987 ac_config_headers="$ac_config_headers config.h"
2988
2989 # Check whether --enable-silent-rules was given.
2990 if test "${enable_silent_rules+set}" = set; then :
2991   enableval=$enable_silent_rules;
2992 fi
2993
2994 case $enable_silent_rules in # (((
2995   yes) AM_DEFAULT_VERBOSITY=0;;
2996    no) AM_DEFAULT_VERBOSITY=1;;
2997     *) AM_DEFAULT_VERBOSITY=0;;
2998 esac
2999 am_make=${MAKE-make}
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3001 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3002 if ${am_cv_make_support_nested_variables+:} false; then :
3003   $as_echo_n "(cached) " >&6
3004 else
3005   if $as_echo 'TRUE=$(BAR$(V))
3006 BAR0=false
3007 BAR1=true
3008 V=1
3009 am__doit:
3010         @$(TRUE)
3011 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3012   am_cv_make_support_nested_variables=yes
3013 else
3014   am_cv_make_support_nested_variables=no
3015 fi
3016 fi
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3018 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3019 if test $am_cv_make_support_nested_variables = yes; then
3020     AM_V='$(V)'
3021   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3022 else
3023   AM_V=$AM_DEFAULT_VERBOSITY
3024   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3025 fi
3026 AM_BACKSLASH='\'
3027
3028
3029 # Define a string for binary compatibility
3030
3031
3032 LT_VERSION_INFO="4:0"
3033
3034
3035 LIBPINYIN_BINARY_VERSION="4.0"
3036
3037
3038 # Checks for programs.
3039 ac_ext=cpp
3040 ac_cpp='$CXXCPP $CPPFLAGS'
3041 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3042 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3043 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3044 if test -z "$CXX"; then
3045   if test -n "$CCC"; then
3046     CXX=$CCC
3047   else
3048     if test -n "$ac_tool_prefix"; then
3049   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3050   do
3051     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3052 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3054 $as_echo_n "checking for $ac_word... " >&6; }
3055 if ${ac_cv_prog_CXX+:} false; then :
3056   $as_echo_n "(cached) " >&6
3057 else
3058   if test -n "$CXX"; then
3059   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3060 else
3061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3062 for as_dir in $PATH
3063 do
3064   IFS=$as_save_IFS
3065   test -z "$as_dir" && as_dir=.
3066     for ac_exec_ext in '' $ac_executable_extensions; do
3067   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3068     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3069     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3070     break 2
3071   fi
3072 done
3073   done
3074 IFS=$as_save_IFS
3075
3076 fi
3077 fi
3078 CXX=$ac_cv_prog_CXX
3079 if test -n "$CXX"; then
3080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3081 $as_echo "$CXX" >&6; }
3082 else
3083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3084 $as_echo "no" >&6; }
3085 fi
3086
3087
3088     test -n "$CXX" && break
3089   done
3090 fi
3091 if test -z "$CXX"; then
3092   ac_ct_CXX=$CXX
3093   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3094 do
3095   # Extract the first word of "$ac_prog", so it can be a program name with args.
3096 set dummy $ac_prog; ac_word=$2
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3098 $as_echo_n "checking for $ac_word... " >&6; }
3099 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3100   $as_echo_n "(cached) " >&6
3101 else
3102   if test -n "$ac_ct_CXX"; then
3103   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3104 else
3105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3106 for as_dir in $PATH
3107 do
3108   IFS=$as_save_IFS
3109   test -z "$as_dir" && as_dir=.
3110     for ac_exec_ext in '' $ac_executable_extensions; do
3111   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3112     ac_cv_prog_ac_ct_CXX="$ac_prog"
3113     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3114     break 2
3115   fi
3116 done
3117   done
3118 IFS=$as_save_IFS
3119
3120 fi
3121 fi
3122 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3123 if test -n "$ac_ct_CXX"; then
3124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3125 $as_echo "$ac_ct_CXX" >&6; }
3126 else
3127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3128 $as_echo "no" >&6; }
3129 fi
3130
3131
3132   test -n "$ac_ct_CXX" && break
3133 done
3134
3135   if test "x$ac_ct_CXX" = x; then
3136     CXX="g++"
3137   else
3138     case $cross_compiling:$ac_tool_warned in
3139 yes:)
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3141 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3142 ac_tool_warned=yes ;;
3143 esac
3144     CXX=$ac_ct_CXX
3145   fi
3146 fi
3147
3148   fi
3149 fi
3150 # Provide some information about the compiler.
3151 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3152 set X $ac_compile
3153 ac_compiler=$2
3154 for ac_option in --version -v -V -qversion; do
3155   { { ac_try="$ac_compiler $ac_option >&5"
3156 case "(($ac_try" in
3157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158   *) ac_try_echo=$ac_try;;
3159 esac
3160 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3161 $as_echo "$ac_try_echo"; } >&5
3162   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3163   ac_status=$?
3164   if test -s conftest.err; then
3165     sed '10a\
3166 ... rest of stderr output deleted ...
3167          10q' conftest.err >conftest.er1
3168     cat conftest.er1 >&5
3169   fi
3170   rm -f conftest.er1 conftest.err
3171   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3172   test $ac_status = 0; }
3173 done
3174
3175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3176 /* end confdefs.h.  */
3177
3178 int
3179 main ()
3180 {
3181
3182   ;
3183   return 0;
3184 }
3185 _ACEOF
3186 ac_clean_files_save=$ac_clean_files
3187 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3188 # Try to create an executable without -o first, disregard a.out.
3189 # It will help us diagnose broken compilers, and finding out an intuition
3190 # of exeext.
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3192 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3193 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3194
3195 # The possible output files:
3196 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3197
3198 ac_rmfiles=
3199 for ac_file in $ac_files
3200 do
3201   case $ac_file in
3202     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3203     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3204   esac
3205 done
3206 rm -f $ac_rmfiles
3207
3208 if { { ac_try="$ac_link_default"
3209 case "(($ac_try" in
3210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3211   *) ac_try_echo=$ac_try;;
3212 esac
3213 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3214 $as_echo "$ac_try_echo"; } >&5
3215   (eval "$ac_link_default") 2>&5
3216   ac_status=$?
3217   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3218   test $ac_status = 0; }; then :
3219   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3220 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3221 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3222 # so that the user can short-circuit this test for compilers unknown to
3223 # Autoconf.
3224 for ac_file in $ac_files ''
3225 do
3226   test -f "$ac_file" || continue
3227   case $ac_file in
3228     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3229         ;;
3230     [ab].out )
3231         # We found the default executable, but exeext='' is most
3232         # certainly right.
3233         break;;
3234     *.* )
3235         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3236         then :; else
3237            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3238         fi
3239         # We set ac_cv_exeext here because the later test for it is not
3240         # safe: cross compilers may not add the suffix if given an `-o'
3241         # argument, so we may need to know it at that point already.
3242         # Even if this section looks crufty: it has the advantage of
3243         # actually working.
3244         break;;
3245     * )
3246         break;;
3247   esac
3248 done
3249 test "$ac_cv_exeext" = no && ac_cv_exeext=
3250
3251 else
3252   ac_file=''
3253 fi
3254 if test -z "$ac_file"; then :
3255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3256 $as_echo "no" >&6; }
3257 $as_echo "$as_me: failed program was:" >&5
3258 sed 's/^/| /' conftest.$ac_ext >&5
3259
3260 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3261 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3262 as_fn_error 77 "C++ compiler cannot create executables
3263 See \`config.log' for more details" "$LINENO" 5; }
3264 else
3265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3266 $as_echo "yes" >&6; }
3267 fi
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3269 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3271 $as_echo "$ac_file" >&6; }
3272 ac_exeext=$ac_cv_exeext
3273
3274 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3275 ac_clean_files=$ac_clean_files_save
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3277 $as_echo_n "checking for suffix of executables... " >&6; }
3278 if { { ac_try="$ac_link"
3279 case "(($ac_try" in
3280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3281   *) ac_try_echo=$ac_try;;
3282 esac
3283 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3284 $as_echo "$ac_try_echo"; } >&5
3285   (eval "$ac_link") 2>&5
3286   ac_status=$?
3287   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3288   test $ac_status = 0; }; then :
3289   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3290 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3291 # work properly (i.e., refer to `conftest.exe'), while it won't with
3292 # `rm'.
3293 for ac_file in conftest.exe conftest conftest.*; do
3294   test -f "$ac_file" || continue
3295   case $ac_file in
3296     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3297     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3298           break;;
3299     * ) break;;
3300   esac
3301 done
3302 else
3303   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3304 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3305 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3306 See \`config.log' for more details" "$LINENO" 5; }
3307 fi
3308 rm -f conftest conftest$ac_cv_exeext
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3310 $as_echo "$ac_cv_exeext" >&6; }
3311
3312 rm -f conftest.$ac_ext
3313 EXEEXT=$ac_cv_exeext
3314 ac_exeext=$EXEEXT
3315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3316 /* end confdefs.h.  */
3317 #include <stdio.h>
3318 int
3319 main ()
3320 {
3321 FILE *f = fopen ("conftest.out", "w");
3322  return ferror (f) || fclose (f) != 0;
3323
3324   ;
3325   return 0;
3326 }
3327 _ACEOF
3328 ac_clean_files="$ac_clean_files conftest.out"
3329 # Check that the compiler produces executables we can run.  If not, either
3330 # the compiler is broken, or we cross compile.
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3332 $as_echo_n "checking whether we are cross compiling... " >&6; }
3333 if test "$cross_compiling" != yes; then
3334   { { ac_try="$ac_link"
3335 case "(($ac_try" in
3336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3337   *) ac_try_echo=$ac_try;;
3338 esac
3339 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3340 $as_echo "$ac_try_echo"; } >&5
3341   (eval "$ac_link") 2>&5
3342   ac_status=$?
3343   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3344   test $ac_status = 0; }
3345   if { ac_try='./conftest$ac_cv_exeext'
3346   { { case "(($ac_try" in
3347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3348   *) ac_try_echo=$ac_try;;
3349 esac
3350 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3351 $as_echo "$ac_try_echo"; } >&5
3352   (eval "$ac_try") 2>&5
3353   ac_status=$?
3354   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3355   test $ac_status = 0; }; }; then
3356     cross_compiling=no
3357   else
3358     if test "$cross_compiling" = maybe; then
3359         cross_compiling=yes
3360     else
3361         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3362 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3363 as_fn_error $? "cannot run C++ compiled programs.
3364 If you meant to cross compile, use \`--host'.
3365 See \`config.log' for more details" "$LINENO" 5; }
3366     fi
3367   fi
3368 fi
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3370 $as_echo "$cross_compiling" >&6; }
3371
3372 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3373 ac_clean_files=$ac_clean_files_save
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3375 $as_echo_n "checking for suffix of object files... " >&6; }
3376 if ${ac_cv_objext+:} false; then :
3377   $as_echo_n "(cached) " >&6
3378 else
3379   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3380 /* end confdefs.h.  */
3381
3382 int
3383 main ()
3384 {
3385
3386   ;
3387   return 0;
3388 }
3389 _ACEOF
3390 rm -f conftest.o conftest.obj
3391 if { { ac_try="$ac_compile"
3392 case "(($ac_try" in
3393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3394   *) ac_try_echo=$ac_try;;
3395 esac
3396 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3397 $as_echo "$ac_try_echo"; } >&5
3398   (eval "$ac_compile") 2>&5
3399   ac_status=$?
3400   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3401   test $ac_status = 0; }; then :
3402   for ac_file in conftest.o conftest.obj conftest.*; do
3403   test -f "$ac_file" || continue;
3404   case $ac_file in
3405     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3406     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3407        break;;
3408   esac
3409 done
3410 else
3411   $as_echo "$as_me: failed program was:" >&5
3412 sed 's/^/| /' conftest.$ac_ext >&5
3413
3414 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3415 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3416 as_fn_error $? "cannot compute suffix of object files: cannot compile
3417 See \`config.log' for more details" "$LINENO" 5; }
3418 fi
3419 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3420 fi
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3422 $as_echo "$ac_cv_objext" >&6; }
3423 OBJEXT=$ac_cv_objext
3424 ac_objext=$OBJEXT
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3426 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3427 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3428   $as_echo_n "(cached) " >&6
3429 else
3430   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3431 /* end confdefs.h.  */
3432
3433 int
3434 main ()
3435 {
3436 #ifndef __GNUC__
3437        choke me
3438 #endif
3439
3440   ;
3441   return 0;
3442 }
3443 _ACEOF
3444 if ac_fn_cxx_try_compile "$LINENO"; then :
3445   ac_compiler_gnu=yes
3446 else
3447   ac_compiler_gnu=no
3448 fi
3449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3450 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3451
3452 fi
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3454 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3455 if test $ac_compiler_gnu = yes; then
3456   GXX=yes
3457 else
3458   GXX=
3459 fi
3460 ac_test_CXXFLAGS=${CXXFLAGS+set}
3461 ac_save_CXXFLAGS=$CXXFLAGS
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3463 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3464 if ${ac_cv_prog_cxx_g+:} false; then :
3465   $as_echo_n "(cached) " >&6
3466 else
3467   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3468    ac_cxx_werror_flag=yes
3469    ac_cv_prog_cxx_g=no
3470    CXXFLAGS="-g"
3471    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3472 /* end confdefs.h.  */
3473
3474 int
3475 main ()
3476 {
3477
3478   ;
3479   return 0;
3480 }
3481 _ACEOF
3482 if ac_fn_cxx_try_compile "$LINENO"; then :
3483   ac_cv_prog_cxx_g=yes
3484 else
3485   CXXFLAGS=""
3486       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3487 /* end confdefs.h.  */
3488
3489 int
3490 main ()
3491 {
3492
3493   ;
3494   return 0;
3495 }
3496 _ACEOF
3497 if ac_fn_cxx_try_compile "$LINENO"; then :
3498
3499 else
3500   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3501          CXXFLAGS="-g"
3502          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3503 /* end confdefs.h.  */
3504
3505 int
3506 main ()
3507 {
3508
3509   ;
3510   return 0;
3511 }
3512 _ACEOF
3513 if ac_fn_cxx_try_compile "$LINENO"; then :
3514   ac_cv_prog_cxx_g=yes
3515 fi
3516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3517 fi
3518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3519 fi
3520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3521    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3522 fi
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3524 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3525 if test "$ac_test_CXXFLAGS" = set; then
3526   CXXFLAGS=$ac_save_CXXFLAGS
3527 elif test $ac_cv_prog_cxx_g = yes; then
3528   if test "$GXX" = yes; then
3529     CXXFLAGS="-g -O2"
3530   else
3531     CXXFLAGS="-g"
3532   fi
3533 else
3534   if test "$GXX" = yes; then
3535     CXXFLAGS="-O2"
3536   else
3537     CXXFLAGS=
3538   fi
3539 fi
3540 ac_ext=c
3541 ac_cpp='$CPP $CPPFLAGS'
3542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3545 DEPDIR="${am__leading_dot}deps"
3546
3547 ac_config_commands="$ac_config_commands depfiles"
3548
3549
3550 am_make=${MAKE-make}
3551 cat > confinc << 'END'
3552 am__doit:
3553         @echo this is the am__doit target
3554 .PHONY: am__doit
3555 END
3556 # If we don't find an include directive, just comment out the code.
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3558 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3559 am__include="#"
3560 am__quote=
3561 _am_result=none
3562 # First try GNU make style include.
3563 echo "include confinc" > confmf
3564 # Ignore all kinds of additional output from 'make'.
3565 case `$am_make -s -f confmf 2> /dev/null` in #(
3566 *the\ am__doit\ target*)
3567   am__include=include
3568   am__quote=
3569   _am_result=GNU
3570   ;;
3571 esac
3572 # Now try BSD make style include.
3573 if test "$am__include" = "#"; then
3574    echo '.include "confinc"' > confmf
3575    case `$am_make -s -f confmf 2> /dev/null` in #(
3576    *the\ am__doit\ target*)
3577      am__include=.include
3578      am__quote="\""
3579      _am_result=BSD
3580      ;;
3581    esac
3582 fi
3583
3584
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3586 $as_echo "$_am_result" >&6; }
3587 rm -f confinc confmf
3588
3589 # Check whether --enable-dependency-tracking was given.
3590 if test "${enable_dependency_tracking+set}" = set; then :
3591   enableval=$enable_dependency_tracking;
3592 fi
3593
3594 if test "x$enable_dependency_tracking" != xno; then
3595   am_depcomp="$ac_aux_dir/depcomp"
3596   AMDEPBACKSLASH='\'
3597   am__nodep='_no'
3598 fi
3599  if test "x$enable_dependency_tracking" != xno; then
3600   AMDEP_TRUE=
3601   AMDEP_FALSE='#'
3602 else
3603   AMDEP_TRUE='#'
3604   AMDEP_FALSE=
3605 fi
3606
3607
3608
3609 depcc="$CXX"  am_compiler_list=
3610
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3612 $as_echo_n "checking dependency style of $depcc... " >&6; }
3613 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
3614   $as_echo_n "(cached) " >&6
3615 else
3616   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3617   # We make a subdir and do the tests there.  Otherwise we can end up
3618   # making bogus files that we don't know about and never remove.  For
3619   # instance it was reported that on HP-UX the gcc test will end up
3620   # making a dummy file named 'D' -- because '-MD' means "put the output
3621   # in D".
3622   rm -rf conftest.dir
3623   mkdir conftest.dir
3624   # Copy depcomp to subdir because otherwise we won't find it if we're
3625   # using a relative directory.
3626   cp "$am_depcomp" conftest.dir
3627   cd conftest.dir
3628   # We will build objects and dependencies in a subdirectory because
3629   # it helps to detect inapplicable dependency modes.  For instance
3630   # both Tru64's cc and ICC support -MD to output dependencies as a
3631   # side effect of compilation, but ICC will put the dependencies in
3632   # the current directory while Tru64 will put them in the object
3633   # directory.
3634   mkdir sub
3635
3636   am_cv_CXX_dependencies_compiler_type=none
3637   if test "$am_compiler_list" = ""; then
3638      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3639   fi
3640   am__universal=false
3641   case " $depcc " in #(
3642      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3643      esac
3644
3645   for depmode in $am_compiler_list; do
3646     # Setup a source with many dependencies, because some compilers
3647     # like to wrap large dependency lists on column 80 (with \), and
3648     # we should not choose a depcomp mode which is confused by this.
3649     #
3650     # We need to recreate these files for each test, as the compiler may
3651     # overwrite some of them when testing with obscure command lines.
3652     # This happens at least with the AIX C compiler.
3653     : > sub/conftest.c
3654     for i in 1 2 3 4 5 6; do
3655       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3656       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3657       # Solaris 10 /bin/sh.
3658       echo '/* dummy */' > sub/conftst$i.h
3659     done
3660     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3661
3662     # We check with '-c' and '-o' for the sake of the "dashmstdout"
3663     # mode.  It turns out that the SunPro C++ compiler does not properly
3664     # handle '-M -o', and we need to detect this.  Also, some Intel
3665     # versions had trouble with output in subdirs.
3666     am__obj=sub/conftest.${OBJEXT-o}
3667     am__minus_obj="-o $am__obj"
3668     case $depmode in
3669     gcc)
3670       # This depmode causes a compiler race in universal mode.
3671       test "$am__universal" = false || continue
3672       ;;
3673     nosideeffect)
3674       # After this tag, mechanisms are not by side-effect, so they'll
3675       # only be used when explicitly requested.
3676       if test "x$enable_dependency_tracking" = xyes; then
3677         continue
3678       else
3679         break
3680       fi
3681       ;;
3682     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3683       # This compiler won't grok '-c -o', but also, the minuso test has
3684       # not run yet.  These depmodes are late enough in the game, and
3685       # so weak that their functioning should not be impacted.
3686       am__obj=conftest.${OBJEXT-o}
3687       am__minus_obj=
3688       ;;
3689     none) break ;;
3690     esac
3691     if depmode=$depmode \
3692        source=sub/conftest.c object=$am__obj \
3693        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3694        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3695          >/dev/null 2>conftest.err &&
3696        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3697        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3698        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3699        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3700       # icc doesn't choke on unknown options, it will just issue warnings
3701       # or remarks (even with -Werror).  So we grep stderr for any message
3702       # that says an option was ignored or not supported.
3703       # When given -MP, icc 7.0 and 7.1 complain thusly:
3704       #   icc: Command line warning: ignoring option '-M'; no argument required
3705       # The diagnosis changed in icc 8.0:
3706       #   icc: Command line remark: option '-MP' not supported
3707       if (grep 'ignoring option' conftest.err ||
3708           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3709         am_cv_CXX_dependencies_compiler_type=$depmode
3710         break
3711       fi
3712     fi
3713   done
3714
3715   cd ..
3716   rm -rf conftest.dir
3717 else
3718   am_cv_CXX_dependencies_compiler_type=none
3719 fi
3720
3721 fi
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3723 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3724 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3725
3726  if
3727   test "x$enable_dependency_tracking" != xno \
3728   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3729   am__fastdepCXX_TRUE=
3730   am__fastdepCXX_FALSE='#'
3731 else
3732   am__fastdepCXX_TRUE='#'
3733   am__fastdepCXX_FALSE=
3734 fi
3735
3736
3737 ac_ext=c
3738 ac_cpp='$CPP $CPPFLAGS'
3739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3742 if test -n "$ac_tool_prefix"; then
3743   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3744 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3746 $as_echo_n "checking for $ac_word... " >&6; }
3747 if ${ac_cv_prog_CC+:} false; then :
3748   $as_echo_n "(cached) " >&6
3749 else
3750   if test -n "$CC"; then
3751   ac_cv_prog_CC="$CC" # Let the user override the test.
3752 else
3753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3754 for as_dir in $PATH
3755 do
3756   IFS=$as_save_IFS
3757   test -z "$as_dir" && as_dir=.
3758     for ac_exec_ext in '' $ac_executable_extensions; do
3759   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3760     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3761     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3762     break 2
3763   fi
3764 done
3765   done
3766 IFS=$as_save_IFS
3767
3768 fi
3769 fi
3770 CC=$ac_cv_prog_CC
3771 if test -n "$CC"; then
3772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3773 $as_echo "$CC" >&6; }
3774 else
3775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3776 $as_echo "no" >&6; }
3777 fi
3778
3779
3780 fi
3781 if test -z "$ac_cv_prog_CC"; then
3782   ac_ct_CC=$CC
3783   # Extract the first word of "gcc", so it can be a program name with args.
3784 set dummy gcc; ac_word=$2
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3786 $as_echo_n "checking for $ac_word... " >&6; }
3787 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3788   $as_echo_n "(cached) " >&6
3789 else
3790   if test -n "$ac_ct_CC"; then
3791   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3792 else
3793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3794 for as_dir in $PATH
3795 do
3796   IFS=$as_save_IFS
3797   test -z "$as_dir" && as_dir=.
3798     for ac_exec_ext in '' $ac_executable_extensions; do
3799   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3800     ac_cv_prog_ac_ct_CC="gcc"
3801     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3802     break 2
3803   fi
3804 done
3805   done
3806 IFS=$as_save_IFS
3807
3808 fi
3809 fi
3810 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3811 if test -n "$ac_ct_CC"; then
3812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3813 $as_echo "$ac_ct_CC" >&6; }
3814 else
3815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3816 $as_echo "no" >&6; }
3817 fi
3818
3819   if test "x$ac_ct_CC" = x; then
3820     CC=""
3821   else
3822     case $cross_compiling:$ac_tool_warned in
3823 yes:)
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3825 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3826 ac_tool_warned=yes ;;
3827 esac
3828     CC=$ac_ct_CC
3829   fi
3830 else
3831   CC="$ac_cv_prog_CC"
3832 fi
3833
3834 if test -z "$CC"; then
3835           if test -n "$ac_tool_prefix"; then
3836     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3837 set dummy ${ac_tool_prefix}cc; ac_word=$2
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3839 $as_echo_n "checking for $ac_word... " >&6; }
3840 if ${ac_cv_prog_CC+:} false; then :
3841   $as_echo_n "(cached) " >&6
3842 else
3843   if test -n "$CC"; then
3844   ac_cv_prog_CC="$CC" # Let the user override the test.
3845 else
3846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3847 for as_dir in $PATH
3848 do
3849   IFS=$as_save_IFS
3850   test -z "$as_dir" && as_dir=.
3851     for ac_exec_ext in '' $ac_executable_extensions; do
3852   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3853     ac_cv_prog_CC="${ac_tool_prefix}cc"
3854     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3855     break 2
3856   fi
3857 done
3858   done
3859 IFS=$as_save_IFS
3860
3861 fi
3862 fi
3863 CC=$ac_cv_prog_CC
3864 if test -n "$CC"; then
3865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3866 $as_echo "$CC" >&6; }
3867 else
3868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3869 $as_echo "no" >&6; }
3870 fi
3871
3872
3873   fi
3874 fi
3875 if test -z "$CC"; then
3876   # Extract the first word of "cc", so it can be a program name with args.
3877 set dummy cc; ac_word=$2
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3879 $as_echo_n "checking for $ac_word... " >&6; }
3880 if ${ac_cv_prog_CC+:} false; then :
3881   $as_echo_n "(cached) " >&6
3882 else
3883   if test -n "$CC"; then
3884   ac_cv_prog_CC="$CC" # Let the user override the test.
3885 else
3886   ac_prog_rejected=no
3887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3888 for as_dir in $PATH
3889 do
3890   IFS=$as_save_IFS
3891   test -z "$as_dir" && as_dir=.
3892     for ac_exec_ext in '' $ac_executable_extensions; do
3893   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3894     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3895        ac_prog_rejected=yes
3896        continue
3897      fi
3898     ac_cv_prog_CC="cc"
3899     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3900     break 2
3901   fi
3902 done
3903   done
3904 IFS=$as_save_IFS
3905
3906 if test $ac_prog_rejected = yes; then
3907   # We found a bogon in the path, so make sure we never use it.
3908   set dummy $ac_cv_prog_CC
3909   shift
3910   if test $# != 0; then
3911     # We chose a different compiler from the bogus one.
3912     # However, it has the same basename, so the bogon will be chosen
3913     # first if we set CC to just the basename; use the full file name.
3914     shift
3915     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3916   fi
3917 fi
3918 fi
3919 fi
3920 CC=$ac_cv_prog_CC
3921 if test -n "$CC"; then
3922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3923 $as_echo "$CC" >&6; }
3924 else
3925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3926 $as_echo "no" >&6; }
3927 fi
3928
3929
3930 fi
3931 if test -z "$CC"; then
3932   if test -n "$ac_tool_prefix"; then
3933   for ac_prog in cl.exe
3934   do
3935     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3936 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3938 $as_echo_n "checking for $ac_word... " >&6; }
3939 if ${ac_cv_prog_CC+:} false; then :
3940   $as_echo_n "(cached) " >&6
3941 else
3942   if test -n "$CC"; then
3943   ac_cv_prog_CC="$CC" # Let the user override the test.
3944 else
3945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3946 for as_dir in $PATH
3947 do
3948   IFS=$as_save_IFS
3949   test -z "$as_dir" && as_dir=.
3950     for ac_exec_ext in '' $ac_executable_extensions; do
3951   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3952     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3953     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3954     break 2
3955   fi
3956 done
3957   done
3958 IFS=$as_save_IFS
3959
3960 fi
3961 fi
3962 CC=$ac_cv_prog_CC
3963 if test -n "$CC"; then
3964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3965 $as_echo "$CC" >&6; }
3966 else
3967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3968 $as_echo "no" >&6; }
3969 fi
3970
3971
3972     test -n "$CC" && break
3973   done
3974 fi
3975 if test -z "$CC"; then
3976   ac_ct_CC=$CC
3977   for ac_prog in cl.exe
3978 do
3979   # Extract the first word of "$ac_prog", so it can be a program name with args.
3980 set dummy $ac_prog; ac_word=$2
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3982 $as_echo_n "checking for $ac_word... " >&6; }
3983 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3984   $as_echo_n "(cached) " >&6
3985 else
3986   if test -n "$ac_ct_CC"; then
3987   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3988 else
3989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3990 for as_dir in $PATH
3991 do
3992   IFS=$as_save_IFS
3993   test -z "$as_dir" && as_dir=.
3994     for ac_exec_ext in '' $ac_executable_extensions; do
3995   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3996     ac_cv_prog_ac_ct_CC="$ac_prog"
3997     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3998     break 2
3999   fi
4000 done
4001   done
4002 IFS=$as_save_IFS
4003
4004 fi
4005 fi
4006 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4007 if test -n "$ac_ct_CC"; then
4008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4009 $as_echo "$ac_ct_CC" >&6; }
4010 else
4011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4012 $as_echo "no" >&6; }
4013 fi
4014
4015
4016   test -n "$ac_ct_CC" && break
4017 done
4018
4019   if test "x$ac_ct_CC" = x; then
4020     CC=""
4021   else
4022     case $cross_compiling:$ac_tool_warned in
4023 yes:)
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4025 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4026 ac_tool_warned=yes ;;
4027 esac
4028     CC=$ac_ct_CC
4029   fi
4030 fi
4031
4032 fi
4033
4034
4035 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4036 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4037 as_fn_error $? "no acceptable C compiler found in \$PATH
4038 See \`config.log' for more details" "$LINENO" 5; }
4039
4040 # Provide some information about the compiler.
4041 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4042 set X $ac_compile
4043 ac_compiler=$2
4044 for ac_option in --version -v -V -qversion; do
4045   { { ac_try="$ac_compiler $ac_option >&5"
4046 case "(($ac_try" in
4047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4048   *) ac_try_echo=$ac_try;;
4049 esac
4050 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4051 $as_echo "$ac_try_echo"; } >&5
4052   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4053   ac_status=$?
4054   if test -s conftest.err; then
4055     sed '10a\
4056 ... rest of stderr output deleted ...
4057          10q' conftest.err >conftest.er1
4058     cat conftest.er1 >&5
4059   fi
4060   rm -f conftest.er1 conftest.err
4061   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4062   test $ac_status = 0; }
4063 done
4064
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4066 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4067 if ${ac_cv_c_compiler_gnu+:} false; then :
4068   $as_echo_n "(cached) " >&6
4069 else
4070   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4071 /* end confdefs.h.  */
4072
4073 int
4074 main ()
4075 {
4076 #ifndef __GNUC__
4077        choke me
4078 #endif
4079
4080   ;
4081   return 0;
4082 }
4083 _ACEOF
4084 if ac_fn_c_try_compile "$LINENO"; then :
4085   ac_compiler_gnu=yes
4086 else
4087   ac_compiler_gnu=no
4088 fi
4089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4090 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4091
4092 fi
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4094 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4095 if test $ac_compiler_gnu = yes; then
4096   GCC=yes
4097 else
4098   GCC=
4099 fi
4100 ac_test_CFLAGS=${CFLAGS+set}
4101 ac_save_CFLAGS=$CFLAGS
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4103 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4104 if ${ac_cv_prog_cc_g+:} false; then :
4105   $as_echo_n "(cached) " >&6
4106 else
4107   ac_save_c_werror_flag=$ac_c_werror_flag
4108    ac_c_werror_flag=yes
4109    ac_cv_prog_cc_g=no
4110    CFLAGS="-g"
4111    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4112 /* end confdefs.h.  */
4113
4114 int
4115 main ()
4116 {
4117
4118   ;
4119   return 0;
4120 }
4121 _ACEOF
4122 if ac_fn_c_try_compile "$LINENO"; then :
4123   ac_cv_prog_cc_g=yes
4124 else
4125   CFLAGS=""
4126       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4127 /* end confdefs.h.  */
4128
4129 int
4130 main ()
4131 {
4132
4133   ;
4134   return 0;
4135 }
4136 _ACEOF
4137 if ac_fn_c_try_compile "$LINENO"; then :
4138
4139 else
4140   ac_c_werror_flag=$ac_save_c_werror_flag
4141          CFLAGS="-g"
4142          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4143 /* end confdefs.h.  */
4144
4145 int
4146 main ()
4147 {
4148
4149   ;
4150   return 0;
4151 }
4152 _ACEOF
4153 if ac_fn_c_try_compile "$LINENO"; then :
4154   ac_cv_prog_cc_g=yes
4155 fi
4156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4157 fi
4158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4159 fi
4160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4161    ac_c_werror_flag=$ac_save_c_werror_flag
4162 fi
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4164 $as_echo "$ac_cv_prog_cc_g" >&6; }
4165 if test "$ac_test_CFLAGS" = set; then
4166   CFLAGS=$ac_save_CFLAGS
4167 elif test $ac_cv_prog_cc_g = yes; then
4168   if test "$GCC" = yes; then
4169     CFLAGS="-g -O2"
4170   else
4171     CFLAGS="-g"
4172   fi
4173 else
4174   if test "$GCC" = yes; then
4175     CFLAGS="-O2"
4176   else
4177     CFLAGS=
4178   fi
4179 fi
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4181 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4182 if ${ac_cv_prog_cc_c89+:} false; then :
4183   $as_echo_n "(cached) " >&6
4184 else
4185   ac_cv_prog_cc_c89=no
4186 ac_save_CC=$CC
4187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4188 /* end confdefs.h.  */
4189 #include <stdarg.h>
4190 #include <stdio.h>
4191 struct stat;
4192 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4193 struct buf { int x; };
4194 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4195 static char *e (p, i)
4196      char **p;
4197      int i;
4198 {
4199   return p[i];
4200 }
4201 static char *f (char * (*g) (char **, int), char **p, ...)
4202 {
4203   char *s;
4204   va_list v;
4205   va_start (v,p);
4206   s = g (p, va_arg (v,int));
4207   va_end (v);
4208   return s;
4209 }
4210
4211 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4212    function prototypes and stuff, but not '\xHH' hex character constants.
4213    These don't provoke an error unfortunately, instead are silently treated
4214    as 'x'.  The following induces an error, until -std is added to get
4215    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4216    array size at least.  It's necessary to write '\x00'==0 to get something
4217    that's true only with -std.  */
4218 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4219
4220 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4221    inside strings and character constants.  */
4222 #define FOO(x) 'x'
4223 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4224
4225 int test (int i, double x);
4226 struct s1 {int (*f) (int a);};
4227 struct s2 {int (*f) (double a);};
4228 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4229 int argc;
4230 char **argv;
4231 int
4232 main ()
4233 {
4234 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4235   ;
4236   return 0;
4237 }
4238 _ACEOF
4239 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4240         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4241 do
4242   CC="$ac_save_CC $ac_arg"
4243   if ac_fn_c_try_compile "$LINENO"; then :
4244   ac_cv_prog_cc_c89=$ac_arg
4245 fi
4246 rm -f core conftest.err conftest.$ac_objext
4247   test "x$ac_cv_prog_cc_c89" != "xno" && break
4248 done
4249 rm -f conftest.$ac_ext
4250 CC=$ac_save_CC
4251
4252 fi
4253 # AC_CACHE_VAL
4254 case "x$ac_cv_prog_cc_c89" in
4255   x)
4256     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4257 $as_echo "none needed" >&6; } ;;
4258   xno)
4259     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4260 $as_echo "unsupported" >&6; } ;;
4261   *)
4262     CC="$CC $ac_cv_prog_cc_c89"
4263     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4264 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4265 esac
4266 if test "x$ac_cv_prog_cc_c89" != xno; then :
4267
4268 fi
4269
4270 ac_ext=c
4271 ac_cpp='$CPP $CPPFLAGS'
4272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4275
4276 depcc="$CC"   am_compiler_list=
4277
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4279 $as_echo_n "checking dependency style of $depcc... " >&6; }
4280 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4281   $as_echo_n "(cached) " >&6
4282 else
4283   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4284   # We make a subdir and do the tests there.  Otherwise we can end up
4285   # making bogus files that we don't know about and never remove.  For
4286   # instance it was reported that on HP-UX the gcc test will end up
4287   # making a dummy file named 'D' -- because '-MD' means "put the output
4288   # in D".
4289   rm -rf conftest.dir
4290   mkdir conftest.dir
4291   # Copy depcomp to subdir because otherwise we won't find it if we're
4292   # using a relative directory.
4293   cp "$am_depcomp" conftest.dir
4294   cd conftest.dir
4295   # We will build objects and dependencies in a subdirectory because
4296   # it helps to detect inapplicable dependency modes.  For instance
4297   # both Tru64's cc and ICC support -MD to output dependencies as a
4298   # side effect of compilation, but ICC will put the dependencies in
4299   # the current directory while Tru64 will put them in the object
4300   # directory.
4301   mkdir sub
4302
4303   am_cv_CC_dependencies_compiler_type=none
4304   if test "$am_compiler_list" = ""; then
4305      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4306   fi
4307   am__universal=false
4308   case " $depcc " in #(
4309      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4310      esac
4311
4312   for depmode in $am_compiler_list; do
4313     # Setup a source with many dependencies, because some compilers
4314     # like to wrap large dependency lists on column 80 (with \), and
4315     # we should not choose a depcomp mode which is confused by this.
4316     #
4317     # We need to recreate these files for each test, as the compiler may
4318     # overwrite some of them when testing with obscure command lines.
4319     # This happens at least with the AIX C compiler.
4320     : > sub/conftest.c
4321     for i in 1 2 3 4 5 6; do
4322       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4323       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4324       # Solaris 10 /bin/sh.
4325       echo '/* dummy */' > sub/conftst$i.h
4326     done
4327     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4328
4329     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4330     # mode.  It turns out that the SunPro C++ compiler does not properly
4331     # handle '-M -o', and we need to detect this.  Also, some Intel
4332     # versions had trouble with output in subdirs.
4333     am__obj=sub/conftest.${OBJEXT-o}
4334     am__minus_obj="-o $am__obj"
4335     case $depmode in
4336     gcc)
4337       # This depmode causes a compiler race in universal mode.
4338       test "$am__universal" = false || continue
4339       ;;
4340     nosideeffect)
4341       # After this tag, mechanisms are not by side-effect, so they'll
4342       # only be used when explicitly requested.
4343       if test "x$enable_dependency_tracking" = xyes; then
4344         continue
4345       else
4346         break
4347       fi
4348       ;;
4349     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4350       # This compiler won't grok '-c -o', but also, the minuso test has
4351       # not run yet.  These depmodes are late enough in the game, and
4352       # so weak that their functioning should not be impacted.
4353       am__obj=conftest.${OBJEXT-o}
4354       am__minus_obj=
4355       ;;
4356     none) break ;;
4357     esac
4358     if depmode=$depmode \
4359        source=sub/conftest.c object=$am__obj \
4360        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4361        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4362          >/dev/null 2>conftest.err &&
4363        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4364        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4365        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4366        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4367       # icc doesn't choke on unknown options, it will just issue warnings
4368       # or remarks (even with -Werror).  So we grep stderr for any message
4369       # that says an option was ignored or not supported.
4370       # When given -MP, icc 7.0 and 7.1 complain thusly:
4371       #   icc: Command line warning: ignoring option '-M'; no argument required
4372       # The diagnosis changed in icc 8.0:
4373       #   icc: Command line remark: option '-MP' not supported
4374       if (grep 'ignoring option' conftest.err ||
4375           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4376         am_cv_CC_dependencies_compiler_type=$depmode
4377         break
4378       fi
4379     fi
4380   done
4381
4382   cd ..
4383   rm -rf conftest.dir
4384 else
4385   am_cv_CC_dependencies_compiler_type=none
4386 fi
4387
4388 fi
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4390 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4391 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4392
4393  if
4394   test "x$enable_dependency_tracking" != xno \
4395   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4396   am__fastdepCC_TRUE=
4397   am__fastdepCC_FALSE='#'
4398 else
4399   am__fastdepCC_TRUE='#'
4400   am__fastdepCC_FALSE=
4401 fi
4402
4403
4404 ac_ext=c
4405 ac_cpp='$CPP $CPPFLAGS'
4406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4410 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4411 # On Suns, sometimes $CPP names a directory.
4412 if test -n "$CPP" && test -d "$CPP"; then
4413   CPP=
4414 fi
4415 if test -z "$CPP"; then
4416   if ${ac_cv_prog_CPP+:} false; then :
4417   $as_echo_n "(cached) " >&6
4418 else
4419       # Double quotes because CPP needs to be expanded
4420     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4421     do
4422       ac_preproc_ok=false
4423 for ac_c_preproc_warn_flag in '' yes
4424 do
4425   # Use a header file that comes with gcc, so configuring glibc
4426   # with a fresh cross-compiler works.
4427   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4428   # <limits.h> exists even on freestanding compilers.
4429   # On the NeXT, cc -E runs the code through the compiler's parser,
4430   # not just through cpp. "Syntax error" is here to catch this case.
4431   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4432 /* end confdefs.h.  */
4433 #ifdef __STDC__
4434 # include <limits.h>
4435 #else
4436 # include <assert.h>
4437 #endif
4438                      Syntax error
4439 _ACEOF
4440 if ac_fn_c_try_cpp "$LINENO"; then :
4441
4442 else
4443   # Broken: fails on valid input.
4444 continue
4445 fi
4446 rm -f conftest.err conftest.i conftest.$ac_ext
4447
4448   # OK, works on sane cases.  Now check whether nonexistent headers
4449   # can be detected and how.
4450   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4451 /* end confdefs.h.  */
4452 #include <ac_nonexistent.h>
4453 _ACEOF
4454 if ac_fn_c_try_cpp "$LINENO"; then :
4455   # Broken: success on invalid input.
4456 continue
4457 else
4458   # Passes both tests.
4459 ac_preproc_ok=:
4460 break
4461 fi
4462 rm -f conftest.err conftest.i conftest.$ac_ext
4463
4464 done
4465 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4466 rm -f conftest.i conftest.err conftest.$ac_ext
4467 if $ac_preproc_ok; then :
4468   break
4469 fi
4470
4471     done
4472     ac_cv_prog_CPP=$CPP
4473
4474 fi
4475   CPP=$ac_cv_prog_CPP
4476 else
4477   ac_cv_prog_CPP=$CPP
4478 fi
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4480 $as_echo "$CPP" >&6; }
4481 ac_preproc_ok=false
4482 for ac_c_preproc_warn_flag in '' yes
4483 do
4484   # Use a header file that comes with gcc, so configuring glibc
4485   # with a fresh cross-compiler works.
4486   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4487   # <limits.h> exists even on freestanding compilers.
4488   # On the NeXT, cc -E runs the code through the compiler's parser,
4489   # not just through cpp. "Syntax error" is here to catch this case.
4490   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4491 /* end confdefs.h.  */
4492 #ifdef __STDC__
4493 # include <limits.h>
4494 #else
4495 # include <assert.h>
4496 #endif
4497                      Syntax error
4498 _ACEOF
4499 if ac_fn_c_try_cpp "$LINENO"; then :
4500
4501 else
4502   # Broken: fails on valid input.
4503 continue
4504 fi
4505 rm -f conftest.err conftest.i conftest.$ac_ext
4506
4507   # OK, works on sane cases.  Now check whether nonexistent headers
4508   # can be detected and how.
4509   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4510 /* end confdefs.h.  */
4511 #include <ac_nonexistent.h>
4512 _ACEOF
4513 if ac_fn_c_try_cpp "$LINENO"; then :
4514   # Broken: success on invalid input.
4515 continue
4516 else
4517   # Passes both tests.
4518 ac_preproc_ok=:
4519 break
4520 fi
4521 rm -f conftest.err conftest.i conftest.$ac_ext
4522
4523 done
4524 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4525 rm -f conftest.i conftest.err conftest.$ac_ext
4526 if $ac_preproc_ok; then :
4527
4528 else
4529   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4530 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4531 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4532 See \`config.log' for more details" "$LINENO" 5; }
4533 fi
4534
4535 ac_ext=c
4536 ac_cpp='$CPP $CPPFLAGS'
4537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4540
4541
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4543 $as_echo_n "checking whether ln -s works... " >&6; }
4544 LN_S=$as_ln_s
4545 if test "$LN_S" = "ln -s"; then
4546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4547 $as_echo "yes" >&6; }
4548 else
4549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4550 $as_echo "no, using $LN_S" >&6; }
4551 fi
4552
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4554 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4555 set x ${MAKE-make}
4556 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4557 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4558   $as_echo_n "(cached) " >&6
4559 else
4560   cat >conftest.make <<\_ACEOF
4561 SHELL = /bin/sh
4562 all:
4563         @echo '@@@%%%=$(MAKE)=@@@%%%'
4564 _ACEOF
4565 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4566 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4567   *@@@%%%=?*=@@@%%%*)
4568     eval ac_cv_prog_make_${ac_make}_set=yes;;
4569   *)
4570     eval ac_cv_prog_make_${ac_make}_set=no;;
4571 esac
4572 rm -f conftest.make
4573 fi
4574 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4576 $as_echo "yes" >&6; }
4577   SET_MAKE=
4578 else
4579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4580 $as_echo "no" >&6; }
4581   SET_MAKE="MAKE=${MAKE-make}"
4582 fi
4583
4584
4585
4586
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4588 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4589 if ${ac_cv_path_GREP+:} false; then :
4590   $as_echo_n "(cached) " >&6
4591 else
4592   if test -z "$GREP"; then
4593   ac_path_GREP_found=false
4594   # Loop through the user's path and test for each of PROGNAME-LIST
4595   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4596 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4597 do
4598   IFS=$as_save_IFS
4599   test -z "$as_dir" && as_dir=.
4600     for ac_prog in grep ggrep; do
4601     for ac_exec_ext in '' $ac_executable_extensions; do
4602       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4603       as_fn_executable_p "$ac_path_GREP" || continue
4604 # Check for GNU ac_path_GREP and select it if it is found.
4605   # Check for GNU $ac_path_GREP
4606 case `"$ac_path_GREP" --version 2>&1` in
4607 *GNU*)
4608   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4609 *)
4610   ac_count=0
4611   $as_echo_n 0123456789 >"conftest.in"
4612   while :
4613   do
4614     cat "conftest.in" "conftest.in" >"conftest.tmp"
4615     mv "conftest.tmp" "conftest.in"
4616     cp "conftest.in" "conftest.nl"
4617     $as_echo 'GREP' >> "conftest.nl"
4618     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4619     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4620     as_fn_arith $ac_count + 1 && ac_count=$as_val
4621     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4622       # Best one so far, save it but keep looking for a better one
4623       ac_cv_path_GREP="$ac_path_GREP"
4624       ac_path_GREP_max=$ac_count
4625     fi
4626     # 10*(2^10) chars as input seems more than enough
4627     test $ac_count -gt 10 && break
4628   done
4629   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4630 esac
4631
4632       $ac_path_GREP_found && break 3
4633     done
4634   done
4635   done
4636 IFS=$as_save_IFS
4637   if test -z "$ac_cv_path_GREP"; then
4638     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4639   fi
4640 else
4641   ac_cv_path_GREP=$GREP
4642 fi
4643
4644 fi
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4646 $as_echo "$ac_cv_path_GREP" >&6; }
4647  GREP="$ac_cv_path_GREP"
4648
4649
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4651 $as_echo_n "checking for egrep... " >&6; }
4652 if ${ac_cv_path_EGREP+:} false; then :
4653   $as_echo_n "(cached) " >&6
4654 else
4655   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4656    then ac_cv_path_EGREP="$GREP -E"
4657    else
4658      if test -z "$EGREP"; then
4659   ac_path_EGREP_found=false
4660   # Loop through the user's path and test for each of PROGNAME-LIST
4661   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4663 do
4664   IFS=$as_save_IFS
4665   test -z "$as_dir" && as_dir=.
4666     for ac_prog in egrep; do
4667     for ac_exec_ext in '' $ac_executable_extensions; do
4668       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4669       as_fn_executable_p "$ac_path_EGREP" || continue
4670 # Check for GNU ac_path_EGREP and select it if it is found.
4671   # Check for GNU $ac_path_EGREP
4672 case `"$ac_path_EGREP" --version 2>&1` in
4673 *GNU*)
4674   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4675 *)
4676   ac_count=0
4677   $as_echo_n 0123456789 >"conftest.in"
4678   while :
4679   do
4680     cat "conftest.in" "conftest.in" >"conftest.tmp"
4681     mv "conftest.tmp" "conftest.in"
4682     cp "conftest.in" "conftest.nl"
4683     $as_echo 'EGREP' >> "conftest.nl"
4684     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4685     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4686     as_fn_arith $ac_count + 1 && ac_count=$as_val
4687     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4688       # Best one so far, save it but keep looking for a better one
4689       ac_cv_path_EGREP="$ac_path_EGREP"
4690       ac_path_EGREP_max=$ac_count
4691     fi
4692     # 10*(2^10) chars as input seems more than enough
4693     test $ac_count -gt 10 && break
4694   done
4695   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4696 esac
4697
4698       $ac_path_EGREP_found && break 3
4699     done
4700   done
4701   done
4702 IFS=$as_save_IFS
4703   if test -z "$ac_cv_path_EGREP"; then
4704     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4705   fi
4706 else
4707   ac_cv_path_EGREP=$EGREP
4708 fi
4709
4710    fi
4711 fi
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4713 $as_echo "$ac_cv_path_EGREP" >&6; }
4714  EGREP="$ac_cv_path_EGREP"
4715
4716
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4718 $as_echo_n "checking for ANSI C header files... " >&6; }
4719 if ${ac_cv_header_stdc+:} false; then :
4720   $as_echo_n "(cached) " >&6
4721 else
4722   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4723 /* end confdefs.h.  */
4724 #include <stdlib.h>
4725 #include <stdarg.h>
4726 #include <string.h>
4727 #include <float.h>
4728
4729 int
4730 main ()
4731 {
4732
4733   ;
4734   return 0;
4735 }
4736 _ACEOF
4737 if ac_fn_c_try_compile "$LINENO"; then :
4738   ac_cv_header_stdc=yes
4739 else
4740   ac_cv_header_stdc=no
4741 fi
4742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4743
4744 if test $ac_cv_header_stdc = yes; then
4745   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4746   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4747 /* end confdefs.h.  */
4748 #include <string.h>
4749
4750 _ACEOF
4751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4752   $EGREP "memchr" >/dev/null 2>&1; then :
4753
4754 else
4755   ac_cv_header_stdc=no
4756 fi
4757 rm -f conftest*
4758
4759 fi
4760
4761 if test $ac_cv_header_stdc = yes; then
4762   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4763   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4764 /* end confdefs.h.  */
4765 #include <stdlib.h>
4766
4767 _ACEOF
4768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4769   $EGREP "free" >/dev/null 2>&1; then :
4770
4771 else
4772   ac_cv_header_stdc=no
4773 fi
4774 rm -f conftest*
4775
4776 fi
4777
4778 if test $ac_cv_header_stdc = yes; then
4779   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4780   if test "$cross_compiling" = yes; then :
4781   :
4782 else
4783   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4784 /* end confdefs.h.  */
4785 #include <ctype.h>
4786 #include <stdlib.h>
4787 #if ((' ' & 0x0FF) == 0x020)
4788 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4789 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4790 #else
4791 # define ISLOWER(c) \
4792                    (('a' <= (c) && (c) <= 'i') \
4793                      || ('j' <= (c) && (c) <= 'r') \
4794                      || ('s' <= (c) && (c) <= 'z'))
4795 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4796 #endif
4797
4798 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4799 int
4800 main ()
4801 {
4802   int i;
4803   for (i = 0; i < 256; i++)
4804     if (XOR (islower (i), ISLOWER (i))
4805         || toupper (i) != TOUPPER (i))
4806       return 2;
4807   return 0;
4808 }
4809 _ACEOF
4810 if ac_fn_c_try_run "$LINENO"; then :
4811
4812 else
4813   ac_cv_header_stdc=no
4814 fi
4815 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4816   conftest.$ac_objext conftest.beam conftest.$ac_ext
4817 fi
4818
4819 fi
4820 fi
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4822 $as_echo "$ac_cv_header_stdc" >&6; }
4823 if test $ac_cv_header_stdc = yes; then
4824
4825 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4826
4827 fi
4828
4829 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4830 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4831                   inttypes.h stdint.h unistd.h
4832 do :
4833   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4834 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4835 "
4836 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4837   cat >>confdefs.h <<_ACEOF
4838 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4839 _ACEOF
4840
4841 fi
4842
4843 done
4844
4845
4846
4847   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4848 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4849   MINIX=yes
4850 else
4851   MINIX=
4852 fi
4853
4854
4855   if test "$MINIX" = yes; then
4856
4857 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4858
4859
4860 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4861
4862
4863 $as_echo "#define _MINIX 1" >>confdefs.h
4864
4865   fi
4866
4867
4868   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4869 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4870 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4871   $as_echo_n "(cached) " >&6
4872 else
4873   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4874 /* end confdefs.h.  */
4875
4876 #         define __EXTENSIONS__ 1
4877           $ac_includes_default
4878 int
4879 main ()
4880 {
4881
4882   ;
4883   return 0;
4884 }
4885 _ACEOF
4886 if ac_fn_c_try_compile "$LINENO"; then :
4887   ac_cv_safe_to_define___extensions__=yes
4888 else
4889   ac_cv_safe_to_define___extensions__=no
4890 fi
4891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4892 fi
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4894 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4895   test $ac_cv_safe_to_define___extensions__ = yes &&
4896     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4897
4898   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4899
4900   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4901
4902   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4903
4904   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4905
4906
4907
4908
4909 # Init libtool
4910 case `pwd` in
4911   *\ * | *\     *)
4912     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4913 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4914 esac
4915
4916
4917
4918 macro_version='2.4.2'
4919 macro_revision='1.3337'
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933 ltmain="$ac_aux_dir/ltmain.sh"
4934
4935 # Make sure we can run config.sub.
4936 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4937   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4938
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4940 $as_echo_n "checking build system type... " >&6; }
4941 if ${ac_cv_build+:} false; then :
4942   $as_echo_n "(cached) " >&6
4943 else
4944   ac_build_alias=$build_alias
4945 test "x$ac_build_alias" = x &&
4946   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4947 test "x$ac_build_alias" = x &&
4948   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4949 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4950   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4951
4952 fi
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4954 $as_echo "$ac_cv_build" >&6; }
4955 case $ac_cv_build in
4956 *-*-*) ;;
4957 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4958 esac
4959 build=$ac_cv_build
4960 ac_save_IFS=$IFS; IFS='-'
4961 set x $ac_cv_build
4962 shift
4963 build_cpu=$1
4964 build_vendor=$2
4965 shift; shift
4966 # Remember, the first character of IFS is used to create $*,
4967 # except with old shells:
4968 build_os=$*
4969 IFS=$ac_save_IFS
4970 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4971
4972
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4974 $as_echo_n "checking host system type... " >&6; }
4975 if ${ac_cv_host+:} false; then :
4976   $as_echo_n "(cached) " >&6
4977 else
4978   if test "x$host_alias" = x; then
4979   ac_cv_host=$ac_cv_build
4980 else
4981   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4982     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4983 fi
4984
4985 fi
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4987 $as_echo "$ac_cv_host" >&6; }
4988 case $ac_cv_host in
4989 *-*-*) ;;
4990 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4991 esac
4992 host=$ac_cv_host
4993 ac_save_IFS=$IFS; IFS='-'
4994 set x $ac_cv_host
4995 shift
4996 host_cpu=$1
4997 host_vendor=$2
4998 shift; shift
4999 # Remember, the first character of IFS is used to create $*,
5000 # except with old shells:
5001 host_os=$*
5002 IFS=$ac_save_IFS
5003 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5004
5005
5006 # Backslashify metacharacters that are still active within
5007 # double-quoted strings.
5008 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5009
5010 # Same as above, but do not quote variable references.
5011 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5012
5013 # Sed substitution to delay expansion of an escaped shell variable in a
5014 # double_quote_subst'ed string.
5015 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5016
5017 # Sed substitution to delay expansion of an escaped single quote.
5018 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5019
5020 # Sed substitution to avoid accidental globbing in evaled expressions
5021 no_glob_subst='s/\*/\\\*/g'
5022
5023 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5024 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5025 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5026
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5028 $as_echo_n "checking how to print strings... " >&6; }
5029 # Test print first, because it will be a builtin if present.
5030 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5031    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5032   ECHO='print -r --'
5033 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5034   ECHO='printf %s\n'
5035 else
5036   # Use this function as a fallback that always works.
5037   func_fallback_echo ()
5038   {
5039     eval 'cat <<_LTECHO_EOF
5040 $1
5041 _LTECHO_EOF'
5042   }
5043   ECHO='func_fallback_echo'
5044 fi
5045
5046 # func_echo_all arg...
5047 # Invoke $ECHO with all args, space-separated.
5048 func_echo_all ()
5049 {
5050     $ECHO ""
5051 }
5052
5053 case "$ECHO" in
5054   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5055 $as_echo "printf" >&6; } ;;
5056   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5057 $as_echo "print -r" >&6; } ;;
5058   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5059 $as_echo "cat" >&6; } ;;
5060 esac
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5076 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5077 if ${ac_cv_path_SED+:} false; then :
5078   $as_echo_n "(cached) " >&6
5079 else
5080             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5081      for ac_i in 1 2 3 4 5 6 7; do
5082        ac_script="$ac_script$as_nl$ac_script"
5083      done
5084      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5085      { ac_script=; unset ac_script;}
5086      if test -z "$SED"; then
5087   ac_path_SED_found=false
5088   # Loop through the user's path and test for each of PROGNAME-LIST
5089   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5090 for as_dir in $PATH
5091 do
5092   IFS=$as_save_IFS
5093   test -z "$as_dir" && as_dir=.
5094     for ac_prog in sed gsed; do
5095     for ac_exec_ext in '' $ac_executable_extensions; do
5096       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5097       as_fn_executable_p "$ac_path_SED" || continue
5098 # Check for GNU ac_path_SED and select it if it is found.
5099   # Check for GNU $ac_path_SED
5100 case `"$ac_path_SED" --version 2>&1` in
5101 *GNU*)
5102   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5103 *)
5104   ac_count=0
5105   $as_echo_n 0123456789 >"conftest.in"
5106   while :
5107   do
5108     cat "conftest.in" "conftest.in" >"conftest.tmp"
5109     mv "conftest.tmp" "conftest.in"
5110     cp "conftest.in" "conftest.nl"
5111     $as_echo '' >> "conftest.nl"
5112     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5113     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5114     as_fn_arith $ac_count + 1 && ac_count=$as_val
5115     if test $ac_count -gt ${ac_path_SED_max-0}; then
5116       # Best one so far, save it but keep looking for a better one
5117       ac_cv_path_SED="$ac_path_SED"
5118       ac_path_SED_max=$ac_count
5119     fi
5120     # 10*(2^10) chars as input seems more than enough
5121     test $ac_count -gt 10 && break
5122   done
5123   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5124 esac
5125
5126       $ac_path_SED_found && break 3
5127     done
5128   done
5129   done
5130 IFS=$as_save_IFS
5131   if test -z "$ac_cv_path_SED"; then
5132     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5133   fi
5134 else
5135   ac_cv_path_SED=$SED
5136 fi
5137
5138 fi
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5140 $as_echo "$ac_cv_path_SED" >&6; }
5141  SED="$ac_cv_path_SED"
5142   rm -f conftest.sed
5143
5144 test -z "$SED" && SED=sed
5145 Xsed="$SED -e 1s/^X//"
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5158 $as_echo_n "checking for fgrep... " >&6; }
5159 if ${ac_cv_path_FGREP+:} false; then :
5160   $as_echo_n "(cached) " >&6
5161 else
5162   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5163    then ac_cv_path_FGREP="$GREP -F"
5164    else
5165      if test -z "$FGREP"; then
5166   ac_path_FGREP_found=false
5167   # Loop through the user's path and test for each of PROGNAME-LIST
5168   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5169 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5170 do
5171   IFS=$as_save_IFS
5172   test -z "$as_dir" && as_dir=.
5173     for ac_prog in fgrep; do
5174     for ac_exec_ext in '' $ac_executable_extensions; do
5175       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5176       as_fn_executable_p "$ac_path_FGREP" || continue
5177 # Check for GNU ac_path_FGREP and select it if it is found.
5178   # Check for GNU $ac_path_FGREP
5179 case `"$ac_path_FGREP" --version 2>&1` in
5180 *GNU*)
5181   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5182 *)
5183   ac_count=0
5184   $as_echo_n 0123456789 >"conftest.in"
5185   while :
5186   do
5187     cat "conftest.in" "conftest.in" >"conftest.tmp"
5188     mv "conftest.tmp" "conftest.in"
5189     cp "conftest.in" "conftest.nl"
5190     $as_echo 'FGREP' >> "conftest.nl"
5191     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5192     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5193     as_fn_arith $ac_count + 1 && ac_count=$as_val
5194     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5195       # Best one so far, save it but keep looking for a better one
5196       ac_cv_path_FGREP="$ac_path_FGREP"
5197       ac_path_FGREP_max=$ac_count
5198     fi
5199     # 10*(2^10) chars as input seems more than enough
5200     test $ac_count -gt 10 && break
5201   done
5202   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5203 esac
5204
5205       $ac_path_FGREP_found && break 3
5206     done
5207   done
5208   done
5209 IFS=$as_save_IFS
5210   if test -z "$ac_cv_path_FGREP"; then
5211     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5212   fi
5213 else
5214   ac_cv_path_FGREP=$FGREP
5215 fi
5216
5217    fi
5218 fi
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5220 $as_echo "$ac_cv_path_FGREP" >&6; }
5221  FGREP="$ac_cv_path_FGREP"
5222
5223
5224 test -z "$GREP" && GREP=grep
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244 # Check whether --with-gnu-ld was given.
5245 if test "${with_gnu_ld+set}" = set; then :
5246   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5247 else
5248   with_gnu_ld=no
5249 fi
5250
5251 ac_prog=ld
5252 if test "$GCC" = yes; then
5253   # Check if gcc -print-prog-name=ld gives a path.
5254   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5255 $as_echo_n "checking for ld used by $CC... " >&6; }
5256   case $host in
5257   *-*-mingw*)
5258     # gcc leaves a trailing carriage return which upsets mingw
5259     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5260   *)
5261     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5262   esac
5263   case $ac_prog in
5264     # Accept absolute paths.
5265     [\\/]* | ?:[\\/]*)
5266       re_direlt='/[^/][^/]*/\.\./'
5267       # Canonicalize the pathname of ld
5268       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5269       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5270         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5271       done
5272       test -z "$LD" && LD="$ac_prog"
5273       ;;
5274   "")
5275     # If it fails, then pretend we aren't using GCC.
5276     ac_prog=ld
5277     ;;
5278   *)
5279     # If it is relative, then search for the first ld in PATH.
5280     with_gnu_ld=unknown
5281     ;;
5282   esac
5283 elif test "$with_gnu_ld" = yes; then
5284   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5285 $as_echo_n "checking for GNU ld... " >&6; }
5286 else
5287   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5288 $as_echo_n "checking for non-GNU ld... " >&6; }
5289 fi
5290 if ${lt_cv_path_LD+:} false; then :
5291   $as_echo_n "(cached) " >&6
5292 else
5293   if test -z "$LD"; then
5294   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5295   for ac_dir in $PATH; do
5296     IFS="$lt_save_ifs"
5297     test -z "$ac_dir" && ac_dir=.
5298     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5299       lt_cv_path_LD="$ac_dir/$ac_prog"
5300       # Check to see if the program is GNU ld.  I'd rather use --version,
5301       # but apparently some variants of GNU ld only accept -v.
5302       # Break only if it was the GNU/non-GNU ld that we prefer.
5303       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5304       *GNU* | *'with BFD'*)
5305         test "$with_gnu_ld" != no && break
5306         ;;
5307       *)
5308         test "$with_gnu_ld" != yes && break
5309         ;;
5310       esac
5311     fi
5312   done
5313   IFS="$lt_save_ifs"
5314 else
5315   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5316 fi
5317 fi
5318
5319 LD="$lt_cv_path_LD"
5320 if test -n "$LD"; then
5321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5322 $as_echo "$LD" >&6; }
5323 else
5324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5325 $as_echo "no" >&6; }
5326 fi
5327 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5329 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5330 if ${lt_cv_prog_gnu_ld+:} false; then :
5331   $as_echo_n "(cached) " >&6
5332 else
5333   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5334 case `$LD -v 2>&1 </dev/null` in
5335 *GNU* | *'with BFD'*)
5336   lt_cv_prog_gnu_ld=yes
5337   ;;
5338 *)
5339   lt_cv_prog_gnu_ld=no
5340   ;;
5341 esac
5342 fi
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5344 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5345 with_gnu_ld=$lt_cv_prog_gnu_ld
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5356 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5357 if ${lt_cv_path_NM+:} false; then :
5358   $as_echo_n "(cached) " >&6
5359 else
5360   if test -n "$NM"; then
5361   # Let the user override the test.
5362   lt_cv_path_NM="$NM"
5363 else
5364   lt_nm_to_check="${ac_tool_prefix}nm"
5365   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5366     lt_nm_to_check="$lt_nm_to_check nm"
5367   fi
5368   for lt_tmp_nm in $lt_nm_to_check; do
5369     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5370     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5371       IFS="$lt_save_ifs"
5372       test -z "$ac_dir" && ac_dir=.
5373       tmp_nm="$ac_dir/$lt_tmp_nm"
5374       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5375         # Check to see if the nm accepts a BSD-compat flag.
5376         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5377         #   nm: unknown option "B" ignored
5378         # Tru64's nm complains that /dev/null is an invalid object file
5379         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5380         */dev/null* | *'Invalid file or object type'*)
5381           lt_cv_path_NM="$tmp_nm -B"
5382           break
5383           ;;
5384         *)
5385           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5386           */dev/null*)
5387             lt_cv_path_NM="$tmp_nm -p"
5388             break
5389             ;;
5390           *)
5391             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5392             continue # so that we can try to find one that supports BSD flags
5393             ;;
5394           esac
5395           ;;
5396         esac
5397       fi
5398     done
5399     IFS="$lt_save_ifs"
5400   done
5401   : ${lt_cv_path_NM=no}
5402 fi
5403 fi
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5405 $as_echo "$lt_cv_path_NM" >&6; }
5406 if test "$lt_cv_path_NM" != "no"; then
5407   NM="$lt_cv_path_NM"
5408 else
5409   # Didn't find any BSD compatible name lister, look for dumpbin.
5410   if test -n "$DUMPBIN"; then :
5411     # Let the user override the test.
5412   else
5413     if test -n "$ac_tool_prefix"; then
5414   for ac_prog in dumpbin "link -dump"
5415   do
5416     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5417 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5419 $as_echo_n "checking for $ac_word... " >&6; }
5420 if ${ac_cv_prog_DUMPBIN+:} false; then :
5421   $as_echo_n "(cached) " >&6
5422 else
5423   if test -n "$DUMPBIN"; then
5424   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5425 else
5426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5427 for as_dir in $PATH
5428 do
5429   IFS=$as_save_IFS
5430   test -z "$as_dir" && as_dir=.
5431     for ac_exec_ext in '' $ac_executable_extensions; do
5432   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5433     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5434     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5435     break 2
5436   fi
5437 done
5438   done
5439 IFS=$as_save_IFS
5440
5441 fi
5442 fi
5443 DUMPBIN=$ac_cv_prog_DUMPBIN
5444 if test -n "$DUMPBIN"; then
5445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5446 $as_echo "$DUMPBIN" >&6; }
5447 else
5448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5449 $as_echo "no" >&6; }
5450 fi
5451
5452
5453     test -n "$DUMPBIN" && break
5454   done
5455 fi
5456 if test -z "$DUMPBIN"; then
5457   ac_ct_DUMPBIN=$DUMPBIN
5458   for ac_prog in dumpbin "link -dump"
5459 do
5460   # Extract the first word of "$ac_prog", so it can be a program name with args.
5461 set dummy $ac_prog; ac_word=$2
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5463 $as_echo_n "checking for $ac_word... " >&6; }
5464 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5465   $as_echo_n "(cached) " >&6
5466 else
5467   if test -n "$ac_ct_DUMPBIN"; then
5468   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5469 else
5470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5471 for as_dir in $PATH
5472 do
5473   IFS=$as_save_IFS
5474   test -z "$as_dir" && as_dir=.
5475     for ac_exec_ext in '' $ac_executable_extensions; do
5476   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5477     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5478     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5479     break 2
5480   fi
5481 done
5482   done
5483 IFS=$as_save_IFS
5484
5485 fi
5486 fi
5487 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5488 if test -n "$ac_ct_DUMPBIN"; then
5489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5490 $as_echo "$ac_ct_DUMPBIN" >&6; }
5491 else
5492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5493 $as_echo "no" >&6; }
5494 fi
5495
5496
5497   test -n "$ac_ct_DUMPBIN" && break
5498 done
5499
5500   if test "x$ac_ct_DUMPBIN" = x; then
5501     DUMPBIN=":"
5502   else
5503     case $cross_compiling:$ac_tool_warned in
5504 yes:)
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5506 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5507 ac_tool_warned=yes ;;
5508 esac
5509     DUMPBIN=$ac_ct_DUMPBIN
5510   fi
5511 fi
5512
5513     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5514     *COFF*)
5515       DUMPBIN="$DUMPBIN -symbols"
5516       ;;
5517     *)
5518       DUMPBIN=:
5519       ;;
5520     esac
5521   fi
5522
5523   if test "$DUMPBIN" != ":"; then
5524     NM="$DUMPBIN"
5525   fi
5526 fi
5527 test -z "$NM" && NM=nm
5528
5529
5530
5531
5532
5533
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5535 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5536 if ${lt_cv_nm_interface+:} false; then :
5537   $as_echo_n "(cached) " >&6
5538 else
5539   lt_cv_nm_interface="BSD nm"
5540   echo "int some_variable = 0;" > conftest.$ac_ext
5541   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5542   (eval "$ac_compile" 2>conftest.err)
5543   cat conftest.err >&5
5544   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5545   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5546   cat conftest.err >&5
5547   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5548   cat conftest.out >&5
5549   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5550     lt_cv_nm_interface="MS dumpbin"
5551   fi
5552   rm -f conftest*
5553 fi
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5555 $as_echo "$lt_cv_nm_interface" >&6; }
5556
5557 # find the maximum length of command line arguments
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5559 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5560 if ${lt_cv_sys_max_cmd_len+:} false; then :
5561   $as_echo_n "(cached) " >&6
5562 else
5563     i=0
5564   teststring="ABCD"
5565
5566   case $build_os in
5567   msdosdjgpp*)
5568     # On DJGPP, this test can blow up pretty badly due to problems in libc
5569     # (any single argument exceeding 2000 bytes causes a buffer overrun
5570     # during glob expansion).  Even if it were fixed, the result of this
5571     # check would be larger than it should be.
5572     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5573     ;;
5574
5575   gnu*)
5576     # Under GNU Hurd, this test is not required because there is
5577     # no limit to the length of command line arguments.
5578     # Libtool will interpret -1 as no limit whatsoever
5579     lt_cv_sys_max_cmd_len=-1;
5580     ;;
5581
5582   cygwin* | mingw* | cegcc*)
5583     # On Win9x/ME, this test blows up -- it succeeds, but takes
5584     # about 5 minutes as the teststring grows exponentially.
5585     # Worse, since 9x/ME are not pre-emptively multitasking,
5586     # you end up with a "frozen" computer, even though with patience
5587     # the test eventually succeeds (with a max line length of 256k).
5588     # Instead, let's just punt: use the minimum linelength reported by
5589     # all of the supported platforms: 8192 (on NT/2K/XP).
5590     lt_cv_sys_max_cmd_len=8192;
5591     ;;
5592
5593   mint*)
5594     # On MiNT this can take a long time and run out of memory.
5595     lt_cv_sys_max_cmd_len=8192;
5596     ;;
5597
5598   amigaos*)
5599     # On AmigaOS with pdksh, this test takes hours, literally.
5600     # So we just punt and use a minimum line length of 8192.
5601     lt_cv_sys_max_cmd_len=8192;
5602     ;;
5603
5604   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5605     # This has been around since 386BSD, at least.  Likely further.
5606     if test -x /sbin/sysctl; then
5607       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5608     elif test -x /usr/sbin/sysctl; then
5609       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5610     else
5611       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5612     fi
5613     # And add a safety zone
5614     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5615     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5616     ;;
5617
5618   interix*)
5619     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5620     lt_cv_sys_max_cmd_len=196608
5621     ;;
5622
5623   os2*)
5624     # The test takes a long time on OS/2.
5625     lt_cv_sys_max_cmd_len=8192
5626     ;;
5627
5628   osf*)
5629     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5630     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5631     # nice to cause kernel panics so lets avoid the loop below.
5632     # First set a reasonable default.
5633     lt_cv_sys_max_cmd_len=16384
5634     #
5635     if test -x /sbin/sysconfig; then
5636       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5637         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5638       esac
5639     fi
5640     ;;
5641   sco3.2v5*)
5642     lt_cv_sys_max_cmd_len=102400
5643     ;;
5644   sysv5* | sco5v6* | sysv4.2uw2*)
5645     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5646     if test -n "$kargmax"; then
5647       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5648     else
5649       lt_cv_sys_max_cmd_len=32768
5650     fi
5651     ;;
5652   *)
5653     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5654     if test -n "$lt_cv_sys_max_cmd_len"; then
5655       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5656       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5657     else
5658       # Make teststring a little bigger before we do anything with it.
5659       # a 1K string should be a reasonable start.
5660       for i in 1 2 3 4 5 6 7 8 ; do
5661         teststring=$teststring$teststring
5662       done
5663       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5664       # If test is not a shell built-in, we'll probably end up computing a
5665       # maximum length that is only half of the actual maximum length, but
5666       # we can't tell.
5667       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5668                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5669               test $i != 17 # 1/2 MB should be enough
5670       do
5671         i=`expr $i + 1`
5672         teststring=$teststring$teststring
5673       done
5674       # Only check the string length outside the loop.
5675       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5676       teststring=
5677       # Add a significant safety factor because C++ compilers can tack on
5678       # massive amounts of additional arguments before passing them to the
5679       # linker.  It appears as though 1/2 is a usable value.
5680       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5681     fi
5682     ;;
5683   esac
5684
5685 fi
5686
5687 if test -n $lt_cv_sys_max_cmd_len ; then
5688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5689 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5690 else
5691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5692 $as_echo "none" >&6; }
5693 fi
5694 max_cmd_len=$lt_cv_sys_max_cmd_len
5695
5696
5697
5698
5699
5700
5701 : ${CP="cp -f"}
5702 : ${MV="mv -f"}
5703 : ${RM="rm -f"}
5704
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5706 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5707 # Try some XSI features
5708 xsi_shell=no
5709 ( _lt_dummy="a/b/c"
5710   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5711       = c,a/b,b/c, \
5712     && eval 'test $(( 1 + 1 )) -eq 2 \
5713     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5714   && xsi_shell=yes
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5716 $as_echo "$xsi_shell" >&6; }
5717
5718
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5720 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5721 lt_shell_append=no
5722 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5723     >/dev/null 2>&1 \
5724   && lt_shell_append=yes
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5726 $as_echo "$lt_shell_append" >&6; }
5727
5728
5729 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5730   lt_unset=unset
5731 else
5732   lt_unset=false
5733 fi
5734
5735
5736
5737
5738
5739 # test EBCDIC or ASCII
5740 case `echo X|tr X '\101'` in
5741  A) # ASCII based system
5742     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5743   lt_SP2NL='tr \040 \012'
5744   lt_NL2SP='tr \015\012 \040\040'
5745   ;;
5746  *) # EBCDIC based system
5747   lt_SP2NL='tr \100 \n'
5748   lt_NL2SP='tr \r\n \100\100'
5749   ;;
5750 esac
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5761 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5762 if ${lt_cv_to_host_file_cmd+:} false; then :
5763   $as_echo_n "(cached) " >&6
5764 else
5765   case $host in
5766   *-*-mingw* )
5767     case $build in
5768       *-*-mingw* ) # actually msys
5769         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5770         ;;
5771       *-*-cygwin* )
5772         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5773         ;;
5774       * ) # otherwise, assume *nix
5775         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5776         ;;
5777     esac
5778     ;;
5779   *-*-cygwin* )
5780     case $build in
5781       *-*-mingw* ) # actually msys
5782         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5783         ;;
5784       *-*-cygwin* )
5785         lt_cv_to_host_file_cmd=func_convert_file_noop
5786         ;;
5787       * ) # otherwise, assume *nix
5788         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5789         ;;
5790     esac
5791     ;;
5792   * ) # unhandled hosts (and "normal" native builds)
5793     lt_cv_to_host_file_cmd=func_convert_file_noop
5794     ;;
5795 esac
5796
5797 fi
5798
5799 to_host_file_cmd=$lt_cv_to_host_file_cmd
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5801 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5802
5803
5804
5805
5806
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5808 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5809 if ${lt_cv_to_tool_file_cmd+:} false; then :
5810   $as_echo_n "(cached) " >&6
5811 else
5812   #assume ordinary cross tools, or native build.
5813 lt_cv_to_tool_file_cmd=func_convert_file_noop
5814 case $host in
5815   *-*-mingw* )
5816     case $build in
5817       *-*-mingw* ) # actually msys
5818         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5819         ;;
5820     esac
5821     ;;
5822 esac
5823
5824 fi
5825
5826 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5828 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5829
5830
5831
5832
5833
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5835 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5836 if ${lt_cv_ld_reload_flag+:} false; then :
5837   $as_echo_n "(cached) " >&6
5838 else
5839   lt_cv_ld_reload_flag='-r'
5840 fi
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5842 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5843 reload_flag=$lt_cv_ld_reload_flag
5844 case $reload_flag in
5845 "" | " "*) ;;
5846 *) reload_flag=" $reload_flag" ;;
5847 esac
5848 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5849 case $host_os in
5850   cygwin* | mingw* | pw32* | cegcc*)
5851     if test "$GCC" != yes; then
5852       reload_cmds=false
5853     fi
5854     ;;
5855   darwin*)
5856     if test "$GCC" = yes; then
5857       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5858     else
5859       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5860     fi
5861     ;;
5862 esac
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872 if test -n "$ac_tool_prefix"; then
5873   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5874 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5876 $as_echo_n "checking for $ac_word... " >&6; }
5877 if ${ac_cv_prog_OBJDUMP+:} false; then :
5878   $as_echo_n "(cached) " >&6
5879 else
5880   if test -n "$OBJDUMP"; then
5881   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5882 else
5883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5884 for as_dir in $PATH
5885 do
5886   IFS=$as_save_IFS
5887   test -z "$as_dir" && as_dir=.
5888     for ac_exec_ext in '' $ac_executable_extensions; do
5889   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5890     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5891     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5892     break 2
5893   fi
5894 done
5895   done
5896 IFS=$as_save_IFS
5897
5898 fi
5899 fi
5900 OBJDUMP=$ac_cv_prog_OBJDUMP
5901 if test -n "$OBJDUMP"; then
5902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5903 $as_echo "$OBJDUMP" >&6; }
5904 else
5905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5906 $as_echo "no" >&6; }
5907 fi
5908
5909
5910 fi
5911 if test -z "$ac_cv_prog_OBJDUMP"; then
5912   ac_ct_OBJDUMP=$OBJDUMP
5913   # Extract the first word of "objdump", so it can be a program name with args.
5914 set dummy objdump; ac_word=$2
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5916 $as_echo_n "checking for $ac_word... " >&6; }
5917 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5918   $as_echo_n "(cached) " >&6
5919 else
5920   if test -n "$ac_ct_OBJDUMP"; then
5921   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5922 else
5923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5924 for as_dir in $PATH
5925 do
5926   IFS=$as_save_IFS
5927   test -z "$as_dir" && as_dir=.
5928     for ac_exec_ext in '' $ac_executable_extensions; do
5929   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5930     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5931     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5932     break 2
5933   fi
5934 done
5935   done
5936 IFS=$as_save_IFS
5937
5938 fi
5939 fi
5940 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5941 if test -n "$ac_ct_OBJDUMP"; then
5942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5943 $as_echo "$ac_ct_OBJDUMP" >&6; }
5944 else
5945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5946 $as_echo "no" >&6; }
5947 fi
5948
5949   if test "x$ac_ct_OBJDUMP" = x; then
5950     OBJDUMP="false"
5951   else
5952     case $cross_compiling:$ac_tool_warned in
5953 yes:)
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5955 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5956 ac_tool_warned=yes ;;
5957 esac
5958     OBJDUMP=$ac_ct_OBJDUMP
5959   fi
5960 else
5961   OBJDUMP="$ac_cv_prog_OBJDUMP"
5962 fi
5963
5964 test -z "$OBJDUMP" && OBJDUMP=objdump
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5975 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5976 if ${lt_cv_deplibs_check_method+:} false; then :
5977   $as_echo_n "(cached) " >&6
5978 else
5979   lt_cv_file_magic_cmd='$MAGIC_CMD'
5980 lt_cv_file_magic_test_file=
5981 lt_cv_deplibs_check_method='unknown'
5982 # Need to set the preceding variable on all platforms that support
5983 # interlibrary dependencies.
5984 # 'none' -- dependencies not supported.
5985 # `unknown' -- same as none, but documents that we really don't know.
5986 # 'pass_all' -- all dependencies passed with no checks.
5987 # 'test_compile' -- check by making test program.
5988 # 'file_magic [[regex]]' -- check by looking for files in library path
5989 # which responds to the $file_magic_cmd with a given extended regex.
5990 # If you have `file' or equivalent on your system and you're not sure
5991 # whether `pass_all' will *always* work, you probably want this one.
5992
5993 case $host_os in
5994 aix[4-9]*)
5995   lt_cv_deplibs_check_method=pass_all
5996   ;;
5997
5998 beos*)
5999   lt_cv_deplibs_check_method=pass_all
6000   ;;
6001
6002 bsdi[45]*)
6003   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6004   lt_cv_file_magic_cmd='/usr/bin/file -L'
6005   lt_cv_file_magic_test_file=/shlib/libc.so
6006   ;;
6007
6008 cygwin*)
6009   # func_win32_libid is a shell function defined in ltmain.sh
6010   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6011   lt_cv_file_magic_cmd='func_win32_libid'
6012   ;;
6013
6014 mingw* | pw32*)
6015   # Base MSYS/MinGW do not provide the 'file' command needed by
6016   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6017   # unless we find 'file', for example because we are cross-compiling.
6018   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6019   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6020     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6021     lt_cv_file_magic_cmd='func_win32_libid'
6022   else
6023     # Keep this pattern in sync with the one in func_win32_libid.
6024     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6025     lt_cv_file_magic_cmd='$OBJDUMP -f'
6026   fi
6027   ;;
6028
6029 cegcc*)
6030   # use the weaker test based on 'objdump'. See mingw*.
6031   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6032   lt_cv_file_magic_cmd='$OBJDUMP -f'
6033   ;;
6034
6035 darwin* | rhapsody*)
6036   lt_cv_deplibs_check_method=pass_all
6037   ;;
6038
6039 freebsd* | dragonfly*)
6040   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6041     case $host_cpu in
6042     i*86 )
6043       # Not sure whether the presence of OpenBSD here was a mistake.
6044       # Let's accept both of them until this is cleared up.
6045       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6046       lt_cv_file_magic_cmd=/usr/bin/file
6047       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6048       ;;
6049     esac
6050   else
6051     lt_cv_deplibs_check_method=pass_all
6052   fi
6053   ;;
6054
6055 gnu*)
6056   lt_cv_deplibs_check_method=pass_all
6057   ;;
6058
6059 haiku*)
6060   lt_cv_deplibs_check_method=pass_all
6061   ;;
6062
6063 hpux10.20* | hpux11*)
6064   lt_cv_file_magic_cmd=/usr/bin/file
6065   case $host_cpu in
6066   ia64*)
6067     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6068     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6069     ;;
6070   hppa*64*)
6071     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]'
6072     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6073     ;;
6074   *)
6075     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6076     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6077     ;;
6078   esac
6079   ;;
6080
6081 interix[3-9]*)
6082   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6083   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6084   ;;
6085
6086 irix5* | irix6* | nonstopux*)
6087   case $LD in
6088   *-32|*"-32 ") libmagic=32-bit;;
6089   *-n32|*"-n32 ") libmagic=N32;;
6090   *-64|*"-64 ") libmagic=64-bit;;
6091   *) libmagic=never-match;;
6092   esac
6093   lt_cv_deplibs_check_method=pass_all
6094   ;;
6095
6096 # This must be glibc/ELF.
6097 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6098   lt_cv_deplibs_check_method=pass_all
6099   ;;
6100
6101 netbsd*)
6102   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6103     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6104   else
6105     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6106   fi
6107   ;;
6108
6109 newos6*)
6110   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6111   lt_cv_file_magic_cmd=/usr/bin/file
6112   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6113   ;;
6114
6115 *nto* | *qnx*)
6116   lt_cv_deplibs_check_method=pass_all
6117   ;;
6118
6119 openbsd*)
6120   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6121     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6122   else
6123     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6124   fi
6125   ;;
6126
6127 osf3* | osf4* | osf5*)
6128   lt_cv_deplibs_check_method=pass_all
6129   ;;
6130
6131 rdos*)
6132   lt_cv_deplibs_check_method=pass_all
6133   ;;
6134
6135 solaris*)
6136   lt_cv_deplibs_check_method=pass_all
6137   ;;
6138
6139 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6140   lt_cv_deplibs_check_method=pass_all
6141   ;;
6142
6143 sysv4 | sysv4.3*)
6144   case $host_vendor in
6145   motorola)
6146     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]'
6147     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6148     ;;
6149   ncr)
6150     lt_cv_deplibs_check_method=pass_all
6151     ;;
6152   sequent)
6153     lt_cv_file_magic_cmd='/bin/file'
6154     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6155     ;;
6156   sni)
6157     lt_cv_file_magic_cmd='/bin/file'
6158     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6159     lt_cv_file_magic_test_file=/lib/libc.so
6160     ;;
6161   siemens)
6162     lt_cv_deplibs_check_method=pass_all
6163     ;;
6164   pc)
6165     lt_cv_deplibs_check_method=pass_all
6166     ;;
6167   esac
6168   ;;
6169
6170 tpf*)
6171   lt_cv_deplibs_check_method=pass_all
6172   ;;
6173 esac
6174
6175 fi
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6177 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6178
6179 file_magic_glob=
6180 want_nocaseglob=no
6181 if test "$build" = "$host"; then
6182   case $host_os in
6183   mingw* | pw32*)
6184     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6185       want_nocaseglob=yes
6186     else
6187       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6188     fi
6189     ;;
6190   esac
6191 fi
6192
6193 file_magic_cmd=$lt_cv_file_magic_cmd
6194 deplibs_check_method=$lt_cv_deplibs_check_method
6195 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218 if test -n "$ac_tool_prefix"; then
6219   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6220 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6222 $as_echo_n "checking for $ac_word... " >&6; }
6223 if ${ac_cv_prog_DLLTOOL+:} false; then :
6224   $as_echo_n "(cached) " >&6
6225 else
6226   if test -n "$DLLTOOL"; then
6227   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6228 else
6229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6230 for as_dir in $PATH
6231 do
6232   IFS=$as_save_IFS
6233   test -z "$as_dir" && as_dir=.
6234     for ac_exec_ext in '' $ac_executable_extensions; do
6235   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6236     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6237     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6238     break 2
6239   fi
6240 done
6241   done
6242 IFS=$as_save_IFS
6243
6244 fi
6245 fi
6246 DLLTOOL=$ac_cv_prog_DLLTOOL
6247 if test -n "$DLLTOOL"; then
6248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6249 $as_echo "$DLLTOOL" >&6; }
6250 else
6251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6252 $as_echo "no" >&6; }
6253 fi
6254
6255
6256 fi
6257 if test -z "$ac_cv_prog_DLLTOOL"; then
6258   ac_ct_DLLTOOL=$DLLTOOL
6259   # Extract the first word of "dlltool", so it can be a program name with args.
6260 set dummy dlltool; ac_word=$2
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6262 $as_echo_n "checking for $ac_word... " >&6; }
6263 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6264   $as_echo_n "(cached) " >&6
6265 else
6266   if test -n "$ac_ct_DLLTOOL"; then
6267   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6268 else
6269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6270 for as_dir in $PATH
6271 do
6272   IFS=$as_save_IFS
6273   test -z "$as_dir" && as_dir=.
6274     for ac_exec_ext in '' $ac_executable_extensions; do
6275   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6276     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6277     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6278     break 2
6279   fi
6280 done
6281   done
6282 IFS=$as_save_IFS
6283
6284 fi
6285 fi
6286 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6287 if test -n "$ac_ct_DLLTOOL"; then
6288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6289 $as_echo "$ac_ct_DLLTOOL" >&6; }
6290 else
6291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6292 $as_echo "no" >&6; }
6293 fi
6294
6295   if test "x$ac_ct_DLLTOOL" = x; then
6296     DLLTOOL="false"
6297   else
6298     case $cross_compiling:$ac_tool_warned in
6299 yes:)
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6301 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6302 ac_tool_warned=yes ;;
6303 esac
6304     DLLTOOL=$ac_ct_DLLTOOL
6305   fi
6306 else
6307   DLLTOOL="$ac_cv_prog_DLLTOOL"
6308 fi
6309
6310 test -z "$DLLTOOL" && DLLTOOL=dlltool
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6322 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6323 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6324   $as_echo_n "(cached) " >&6
6325 else
6326   lt_cv_sharedlib_from_linklib_cmd='unknown'
6327
6328 case $host_os in
6329 cygwin* | mingw* | pw32* | cegcc*)
6330   # two different shell functions defined in ltmain.sh
6331   # decide which to use based on capabilities of $DLLTOOL
6332   case `$DLLTOOL --help 2>&1` in
6333   *--identify-strict*)
6334     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6335     ;;
6336   *)
6337     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6338     ;;
6339   esac
6340   ;;
6341 *)
6342   # fallback: assume linklib IS sharedlib
6343   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6344   ;;
6345 esac
6346
6347 fi
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6349 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6350 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6351 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6352
6353
6354
6355
6356
6357
6358
6359 if test -n "$ac_tool_prefix"; then
6360   for ac_prog in ar
6361   do
6362     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6363 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6365 $as_echo_n "checking for $ac_word... " >&6; }
6366 if ${ac_cv_prog_AR+:} false; then :
6367   $as_echo_n "(cached) " >&6
6368 else
6369   if test -n "$AR"; then
6370   ac_cv_prog_AR="$AR" # Let the user override the test.
6371 else
6372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6373 for as_dir in $PATH
6374 do
6375   IFS=$as_save_IFS
6376   test -z "$as_dir" && as_dir=.
6377     for ac_exec_ext in '' $ac_executable_extensions; do
6378   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6379     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6380     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6381     break 2
6382   fi
6383 done
6384   done
6385 IFS=$as_save_IFS
6386
6387 fi
6388 fi
6389 AR=$ac_cv_prog_AR
6390 if test -n "$AR"; then
6391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6392 $as_echo "$AR" >&6; }
6393 else
6394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6395 $as_echo "no" >&6; }
6396 fi
6397
6398
6399     test -n "$AR" && break
6400   done
6401 fi
6402 if test -z "$AR"; then
6403   ac_ct_AR=$AR
6404   for ac_prog in ar
6405 do
6406   # Extract the first word of "$ac_prog", so it can be a program name with args.
6407 set dummy $ac_prog; ac_word=$2
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6409 $as_echo_n "checking for $ac_word... " >&6; }
6410 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6411   $as_echo_n "(cached) " >&6
6412 else
6413   if test -n "$ac_ct_AR"; then
6414   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6415 else
6416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6417 for as_dir in $PATH
6418 do
6419   IFS=$as_save_IFS
6420   test -z "$as_dir" && as_dir=.
6421     for ac_exec_ext in '' $ac_executable_extensions; do
6422   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6423     ac_cv_prog_ac_ct_AR="$ac_prog"
6424     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6425     break 2
6426   fi
6427 done
6428   done
6429 IFS=$as_save_IFS
6430
6431 fi
6432 fi
6433 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6434 if test -n "$ac_ct_AR"; then
6435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6436 $as_echo "$ac_ct_AR" >&6; }
6437 else
6438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6439 $as_echo "no" >&6; }
6440 fi
6441
6442
6443   test -n "$ac_ct_AR" && break
6444 done
6445
6446   if test "x$ac_ct_AR" = x; then
6447     AR="false"
6448   else
6449     case $cross_compiling:$ac_tool_warned in
6450 yes:)
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6452 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6453 ac_tool_warned=yes ;;
6454 esac
6455     AR=$ac_ct_AR
6456   fi
6457 fi
6458
6459 : ${AR=ar}
6460 : ${AR_FLAGS=cru}
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6473 $as_echo_n "checking for archiver @FILE support... " >&6; }
6474 if ${lt_cv_ar_at_file+:} false; then :
6475   $as_echo_n "(cached) " >&6
6476 else
6477   lt_cv_ar_at_file=no
6478    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6479 /* end confdefs.h.  */
6480
6481 int
6482 main ()
6483 {
6484
6485   ;
6486   return 0;
6487 }
6488 _ACEOF
6489 if ac_fn_c_try_compile "$LINENO"; then :
6490   echo conftest.$ac_objext > conftest.lst
6491       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6492       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6493   (eval $lt_ar_try) 2>&5
6494   ac_status=$?
6495   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6496   test $ac_status = 0; }
6497       if test "$ac_status" -eq 0; then
6498         # Ensure the archiver fails upon bogus file names.
6499         rm -f conftest.$ac_objext libconftest.a
6500         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6501   (eval $lt_ar_try) 2>&5
6502   ac_status=$?
6503   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6504   test $ac_status = 0; }
6505         if test "$ac_status" -ne 0; then
6506           lt_cv_ar_at_file=@
6507         fi
6508       fi
6509       rm -f conftest.* libconftest.a
6510
6511 fi
6512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6513
6514 fi
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6516 $as_echo "$lt_cv_ar_at_file" >&6; }
6517
6518 if test "x$lt_cv_ar_at_file" = xno; then
6519   archiver_list_spec=
6520 else
6521   archiver_list_spec=$lt_cv_ar_at_file
6522 fi
6523
6524
6525
6526
6527
6528
6529
6530 if test -n "$ac_tool_prefix"; then
6531   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6532 set dummy ${ac_tool_prefix}strip; ac_word=$2
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6534 $as_echo_n "checking for $ac_word... " >&6; }
6535 if ${ac_cv_prog_STRIP+:} false; then :
6536   $as_echo_n "(cached) " >&6
6537 else
6538   if test -n "$STRIP"; then
6539   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6540 else
6541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6542 for as_dir in $PATH
6543 do
6544   IFS=$as_save_IFS
6545   test -z "$as_dir" && as_dir=.
6546     for ac_exec_ext in '' $ac_executable_extensions; do
6547   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6548     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6549     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6550     break 2
6551   fi
6552 done
6553   done
6554 IFS=$as_save_IFS
6555
6556 fi
6557 fi
6558 STRIP=$ac_cv_prog_STRIP
6559 if test -n "$STRIP"; then
6560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6561 $as_echo "$STRIP" >&6; }
6562 else
6563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6564 $as_echo "no" >&6; }
6565 fi
6566
6567
6568 fi
6569 if test -z "$ac_cv_prog_STRIP"; then
6570   ac_ct_STRIP=$STRIP
6571   # Extract the first word of "strip", so it can be a program name with args.
6572 set dummy strip; ac_word=$2
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6574 $as_echo_n "checking for $ac_word... " >&6; }
6575 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6576   $as_echo_n "(cached) " >&6
6577 else
6578   if test -n "$ac_ct_STRIP"; then
6579   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6580 else
6581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6582 for as_dir in $PATH
6583 do
6584   IFS=$as_save_IFS
6585   test -z "$as_dir" && as_dir=.
6586     for ac_exec_ext in '' $ac_executable_extensions; do
6587   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6588     ac_cv_prog_ac_ct_STRIP="strip"
6589     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6590     break 2
6591   fi
6592 done
6593   done
6594 IFS=$as_save_IFS
6595
6596 fi
6597 fi
6598 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6599 if test -n "$ac_ct_STRIP"; then
6600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6601 $as_echo "$ac_ct_STRIP" >&6; }
6602 else
6603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6604 $as_echo "no" >&6; }
6605 fi
6606
6607   if test "x$ac_ct_STRIP" = x; then
6608     STRIP=":"
6609   else
6610     case $cross_compiling:$ac_tool_warned in
6611 yes:)
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6613 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6614 ac_tool_warned=yes ;;
6615 esac
6616     STRIP=$ac_ct_STRIP
6617   fi
6618 else
6619   STRIP="$ac_cv_prog_STRIP"
6620 fi
6621
6622 test -z "$STRIP" && STRIP=:
6623
6624
6625
6626
6627
6628
6629 if test -n "$ac_tool_prefix"; then
6630   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6631 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6633 $as_echo_n "checking for $ac_word... " >&6; }
6634 if ${ac_cv_prog_RANLIB+:} false; then :
6635   $as_echo_n "(cached) " >&6
6636 else
6637   if test -n "$RANLIB"; then
6638   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6639 else
6640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6641 for as_dir in $PATH
6642 do
6643   IFS=$as_save_IFS
6644   test -z "$as_dir" && as_dir=.
6645     for ac_exec_ext in '' $ac_executable_extensions; do
6646   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6647     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6648     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6649     break 2
6650   fi
6651 done
6652   done
6653 IFS=$as_save_IFS
6654
6655 fi
6656 fi
6657 RANLIB=$ac_cv_prog_RANLIB
6658 if test -n "$RANLIB"; then
6659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6660 $as_echo "$RANLIB" >&6; }
6661 else
6662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6663 $as_echo "no" >&6; }
6664 fi
6665
6666
6667 fi
6668 if test -z "$ac_cv_prog_RANLIB"; then
6669   ac_ct_RANLIB=$RANLIB
6670   # Extract the first word of "ranlib", so it can be a program name with args.
6671 set dummy ranlib; ac_word=$2
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6673 $as_echo_n "checking for $ac_word... " >&6; }
6674 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6675   $as_echo_n "(cached) " >&6
6676 else
6677   if test -n "$ac_ct_RANLIB"; then
6678   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6679 else
6680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6681 for as_dir in $PATH
6682 do
6683   IFS=$as_save_IFS
6684   test -z "$as_dir" && as_dir=.
6685     for ac_exec_ext in '' $ac_executable_extensions; do
6686   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6687     ac_cv_prog_ac_ct_RANLIB="ranlib"
6688     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6689     break 2
6690   fi
6691 done
6692   done
6693 IFS=$as_save_IFS
6694
6695 fi
6696 fi
6697 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6698 if test -n "$ac_ct_RANLIB"; then
6699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6700 $as_echo "$ac_ct_RANLIB" >&6; }
6701 else
6702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6703 $as_echo "no" >&6; }
6704 fi
6705
6706   if test "x$ac_ct_RANLIB" = x; then
6707     RANLIB=":"
6708   else
6709     case $cross_compiling:$ac_tool_warned in
6710 yes:)
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6712 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6713 ac_tool_warned=yes ;;
6714 esac
6715     RANLIB=$ac_ct_RANLIB
6716   fi
6717 else
6718   RANLIB="$ac_cv_prog_RANLIB"
6719 fi
6720
6721 test -z "$RANLIB" && RANLIB=:
6722
6723
6724
6725
6726
6727
6728 # Determine commands to create old-style static archives.
6729 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6730 old_postinstall_cmds='chmod 644 $oldlib'
6731 old_postuninstall_cmds=
6732
6733 if test -n "$RANLIB"; then
6734   case $host_os in
6735   openbsd*)
6736     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6737     ;;
6738   *)
6739     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6740     ;;
6741   esac
6742   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6743 fi
6744
6745 case $host_os in
6746   darwin*)
6747     lock_old_archive_extraction=yes ;;
6748   *)
6749     lock_old_archive_extraction=no ;;
6750 esac
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790 # If no C compiler was specified, use CC.
6791 LTCC=${LTCC-"$CC"}
6792
6793 # If no C compiler flags were specified, use CFLAGS.
6794 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6795
6796 # Allow CC to be a program name with arguments.
6797 compiler=$CC
6798
6799
6800 # Check for command to grab the raw symbol name followed by C symbol from nm.
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6802 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6803 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6804   $as_echo_n "(cached) " >&6
6805 else
6806
6807 # These are sane defaults that work on at least a few old systems.
6808 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6809
6810 # Character class describing NM global symbol codes.
6811 symcode='[BCDEGRST]'
6812
6813 # Regexp to match symbols that can be accessed directly from C.
6814 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6815
6816 # Define system-specific variables.
6817 case $host_os in
6818 aix*)
6819   symcode='[BCDT]'
6820   ;;
6821 cygwin* | mingw* | pw32* | cegcc*)
6822   symcode='[ABCDGISTW]'
6823   ;;
6824 hpux*)
6825   if test "$host_cpu" = ia64; then
6826     symcode='[ABCDEGRST]'
6827   fi
6828   ;;
6829 irix* | nonstopux*)
6830   symcode='[BCDEGRST]'
6831   ;;
6832 osf*)
6833   symcode='[BCDEGQRST]'
6834   ;;
6835 solaris*)
6836   symcode='[BDRT]'
6837   ;;
6838 sco3.2v5*)
6839   symcode='[DT]'
6840   ;;
6841 sysv4.2uw2*)
6842   symcode='[DT]'
6843   ;;
6844 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6845   symcode='[ABDT]'
6846   ;;
6847 sysv4)
6848   symcode='[DFNSTU]'
6849   ;;
6850 esac
6851
6852 # If we're using GNU nm, then use its standard symbol codes.
6853 case `$NM -V 2>&1` in
6854 *GNU* | *'with BFD'*)
6855   symcode='[ABCDGIRSTW]' ;;
6856 esac
6857
6858 # Transform an extracted symbol line into a proper C declaration.
6859 # Some systems (esp. on ia64) link data and code symbols differently,
6860 # so use this general approach.
6861 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6862
6863 # Transform an extracted symbol line into symbol name and symbol address
6864 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6865 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'"
6866
6867 # Handle CRLF in mingw tool chain
6868 opt_cr=
6869 case $build_os in
6870 mingw*)
6871   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6872   ;;
6873 esac
6874
6875 # Try without a prefix underscore, then with it.
6876 for ac_symprfx in "" "_"; do
6877
6878   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6879   symxfrm="\\1 $ac_symprfx\\2 \\2"
6880
6881   # Write the raw and C identifiers.
6882   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6883     # Fake it for dumpbin and say T for any non-static function
6884     # and D for any global variable.
6885     # Also find C++ and __fastcall symbols from MSVC++,
6886     # which start with @ or ?.
6887     lt_cv_sys_global_symbol_pipe="$AWK '"\
6888 "     {last_section=section; section=\$ 3};"\
6889 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6890 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6891 "     \$ 0!~/External *\|/{next};"\
6892 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6893 "     {if(hide[section]) next};"\
6894 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6895 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6896 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6897 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6898 "     ' prfx=^$ac_symprfx"
6899   else
6900     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6901   fi
6902   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6903
6904   # Check to see that the pipe works correctly.
6905   pipe_works=no
6906
6907   rm -f conftest*
6908   cat > conftest.$ac_ext <<_LT_EOF
6909 #ifdef __cplusplus
6910 extern "C" {
6911 #endif
6912 char nm_test_var;
6913 void nm_test_func(void);
6914 void nm_test_func(void){}
6915 #ifdef __cplusplus
6916 }
6917 #endif
6918 int main(){nm_test_var='a';nm_test_func();return(0);}
6919 _LT_EOF
6920
6921   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6922   (eval $ac_compile) 2>&5
6923   ac_status=$?
6924   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6925   test $ac_status = 0; }; then
6926     # Now try to grab the symbols.
6927     nlist=conftest.nm
6928     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6929   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6930   ac_status=$?
6931   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6932   test $ac_status = 0; } && test -s "$nlist"; then
6933       # Try sorting and uniquifying the output.
6934       if sort "$nlist" | uniq > "$nlist"T; then
6935         mv -f "$nlist"T "$nlist"
6936       else
6937         rm -f "$nlist"T
6938       fi
6939
6940       # Make sure that we snagged all the symbols we need.
6941       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6942         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6943           cat <<_LT_EOF > conftest.$ac_ext
6944 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6945 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6946 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6947    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6948 # define LT_DLSYM_CONST
6949 #elif defined(__osf__)
6950 /* This system does not cope well with relocations in const data.  */
6951 # define LT_DLSYM_CONST
6952 #else
6953 # define LT_DLSYM_CONST const
6954 #endif
6955
6956 #ifdef __cplusplus
6957 extern "C" {
6958 #endif
6959
6960 _LT_EOF
6961           # Now generate the symbol file.
6962           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6963
6964           cat <<_LT_EOF >> conftest.$ac_ext
6965
6966 /* The mapping between symbol names and symbols.  */
6967 LT_DLSYM_CONST struct {
6968   const char *name;
6969   void       *address;
6970 }
6971 lt__PROGRAM__LTX_preloaded_symbols[] =
6972 {
6973   { "@PROGRAM@", (void *) 0 },
6974 _LT_EOF
6975           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6976           cat <<\_LT_EOF >> conftest.$ac_ext
6977   {0, (void *) 0}
6978 };
6979
6980 /* This works around a problem in FreeBSD linker */
6981 #ifdef FREEBSD_WORKAROUND
6982 static const void *lt_preloaded_setup() {
6983   return lt__PROGRAM__LTX_preloaded_symbols;
6984 }
6985 #endif
6986
6987 #ifdef __cplusplus
6988 }
6989 #endif
6990 _LT_EOF
6991           # Now try linking the two files.
6992           mv conftest.$ac_objext conftstm.$ac_objext
6993           lt_globsym_save_LIBS=$LIBS
6994           lt_globsym_save_CFLAGS=$CFLAGS
6995           LIBS="conftstm.$ac_objext"
6996           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6997           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6998   (eval $ac_link) 2>&5
6999   ac_status=$?
7000   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7001   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7002             pipe_works=yes
7003           fi
7004           LIBS=$lt_globsym_save_LIBS
7005           CFLAGS=$lt_globsym_save_CFLAGS
7006         else
7007           echo "cannot find nm_test_func in $nlist" >&5
7008         fi
7009       else
7010         echo "cannot find nm_test_var in $nlist" >&5
7011       fi
7012     else
7013       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7014     fi
7015   else
7016     echo "$progname: failed program was:" >&5
7017     cat conftest.$ac_ext >&5
7018   fi
7019   rm -rf conftest* conftst*
7020
7021   # Do not use the global_symbol_pipe unless it works.
7022   if test "$pipe_works" = yes; then
7023     break
7024   else
7025     lt_cv_sys_global_symbol_pipe=
7026   fi
7027 done
7028
7029 fi
7030
7031 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7032   lt_cv_sys_global_symbol_to_cdecl=
7033 fi
7034 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7036 $as_echo "failed" >&6; }
7037 else
7038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7039 $as_echo "ok" >&6; }
7040 fi
7041
7042 # Response file support.
7043 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7044   nm_file_list_spec='@'
7045 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7046   nm_file_list_spec='@'
7047 fi
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7076 $as_echo_n "checking for sysroot... " >&6; }
7077
7078 # Check whether --with-sysroot was given.
7079 if test "${with_sysroot+set}" = set; then :
7080   withval=$with_sysroot;
7081 else
7082   with_sysroot=no
7083 fi
7084
7085
7086 lt_sysroot=
7087 case ${with_sysroot} in #(
7088  yes)
7089    if test "$GCC" = yes; then
7090      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7091    fi
7092    ;; #(
7093  /*)
7094    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7095    ;; #(
7096  no|'')
7097    ;; #(
7098  *)
7099    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7100 $as_echo "${with_sysroot}" >&6; }
7101    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7102    ;;
7103 esac
7104
7105  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7106 $as_echo "${lt_sysroot:-no}" >&6; }
7107
7108
7109
7110
7111
7112 # Check whether --enable-libtool-lock was given.
7113 if test "${enable_libtool_lock+set}" = set; then :
7114   enableval=$enable_libtool_lock;
7115 fi
7116
7117 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7118
7119 # Some flags need to be propagated to the compiler or linker for good
7120 # libtool support.
7121 case $host in
7122 ia64-*-hpux*)
7123   # Find out which ABI we are using.
7124   echo 'int i;' > conftest.$ac_ext
7125   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7126   (eval $ac_compile) 2>&5
7127   ac_status=$?
7128   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7129   test $ac_status = 0; }; then
7130     case `/usr/bin/file conftest.$ac_objext` in
7131       *ELF-32*)
7132         HPUX_IA64_MODE="32"
7133         ;;
7134       *ELF-64*)
7135         HPUX_IA64_MODE="64"
7136         ;;
7137     esac
7138   fi
7139   rm -rf conftest*
7140   ;;
7141 *-*-irix6*)
7142   # Find out which ABI we are using.
7143   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7144   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7145   (eval $ac_compile) 2>&5
7146   ac_status=$?
7147   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7148   test $ac_status = 0; }; then
7149     if test "$lt_cv_prog_gnu_ld" = yes; then
7150       case `/usr/bin/file conftest.$ac_objext` in
7151         *32-bit*)
7152           LD="${LD-ld} -melf32bsmip"
7153           ;;
7154         *N32*)
7155           LD="${LD-ld} -melf32bmipn32"
7156           ;;
7157         *64-bit*)
7158           LD="${LD-ld} -melf64bmip"
7159         ;;
7160       esac
7161     else
7162       case `/usr/bin/file conftest.$ac_objext` in
7163         *32-bit*)
7164           LD="${LD-ld} -32"
7165           ;;
7166         *N32*)
7167           LD="${LD-ld} -n32"
7168           ;;
7169         *64-bit*)
7170           LD="${LD-ld} -64"
7171           ;;
7172       esac
7173     fi
7174   fi
7175   rm -rf conftest*
7176   ;;
7177
7178 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7179 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7180   # Find out which ABI we are using.
7181   echo 'int i;' > conftest.$ac_ext
7182   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7183   (eval $ac_compile) 2>&5
7184   ac_status=$?
7185   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7186   test $ac_status = 0; }; then
7187     case `/usr/bin/file conftest.o` in
7188       *32-bit*)
7189         case $host in
7190           x86_64-*kfreebsd*-gnu)
7191             LD="${LD-ld} -m elf_i386_fbsd"
7192             ;;
7193           x86_64-*linux*)
7194             LD="${LD-ld} -m elf_i386"
7195             ;;
7196           powerpcle-*linux*)
7197             LD="${LD-ld} -m elf32lppclinux"
7198             ;;
7199           powerpc-*linux*)
7200             LD="${LD-ld} -m elf32ppclinux"
7201             ;;
7202           s390x-*linux*)
7203             LD="${LD-ld} -m elf_s390"
7204             ;;
7205           sparc64-*linux*)
7206             LD="${LD-ld} -m elf32_sparc"
7207             ;;
7208         esac
7209         ;;
7210       *64-bit*)
7211         case $host in
7212           x86_64-*kfreebsd*-gnu)
7213             LD="${LD-ld} -m elf_x86_64_fbsd"
7214             ;;
7215           x86_64-*linux*)
7216             LD="${LD-ld} -m elf_x86_64"
7217             ;;
7218           powerpcle-*linux*)
7219             LD="${LD-ld} -m elf64lppc"
7220             ;;
7221           powerpc-*linux*)
7222             LD="${LD-ld} -m elf64ppc"
7223             ;;
7224           s390*-*linux*|s390*-*tpf*)
7225             LD="${LD-ld} -m elf64_s390"
7226             ;;
7227           sparc*-*linux*)
7228             LD="${LD-ld} -m elf64_sparc"
7229             ;;
7230         esac
7231         ;;
7232     esac
7233   fi
7234   rm -rf conftest*
7235   ;;
7236
7237 *-*-sco3.2v5*)
7238   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7239   SAVE_CFLAGS="$CFLAGS"
7240   CFLAGS="$CFLAGS -belf"
7241   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7242 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7243 if ${lt_cv_cc_needs_belf+:} false; then :
7244   $as_echo_n "(cached) " >&6
7245 else
7246   ac_ext=c
7247 ac_cpp='$CPP $CPPFLAGS'
7248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7251
7252      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7253 /* end confdefs.h.  */
7254
7255 int
7256 main ()
7257 {
7258
7259   ;
7260   return 0;
7261 }
7262 _ACEOF
7263 if ac_fn_c_try_link "$LINENO"; then :
7264   lt_cv_cc_needs_belf=yes
7265 else
7266   lt_cv_cc_needs_belf=no
7267 fi
7268 rm -f core conftest.err conftest.$ac_objext \
7269     conftest$ac_exeext conftest.$ac_ext
7270      ac_ext=c
7271 ac_cpp='$CPP $CPPFLAGS'
7272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7275
7276 fi
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7278 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7279   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7280     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7281     CFLAGS="$SAVE_CFLAGS"
7282   fi
7283   ;;
7284 *-*solaris*)
7285   # Find out which ABI we are using.
7286   echo 'int i;' > conftest.$ac_ext
7287   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7288   (eval $ac_compile) 2>&5
7289   ac_status=$?
7290   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7291   test $ac_status = 0; }; then
7292     case `/usr/bin/file conftest.o` in
7293     *64-bit*)
7294       case $lt_cv_prog_gnu_ld in
7295       yes*)
7296         case $host in
7297         i?86-*-solaris*)
7298           LD="${LD-ld} -m elf_x86_64"
7299           ;;
7300         sparc*-*-solaris*)
7301           LD="${LD-ld} -m elf64_sparc"
7302           ;;
7303         esac
7304         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7305         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7306           LD="${LD-ld}_sol2"
7307         fi
7308         ;;
7309       *)
7310         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7311           LD="${LD-ld} -64"
7312         fi
7313         ;;
7314       esac
7315       ;;
7316     esac
7317   fi
7318   rm -rf conftest*
7319   ;;
7320 esac
7321
7322 need_locks="$enable_libtool_lock"
7323
7324 if test -n "$ac_tool_prefix"; then
7325   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7326 set dummy ${ac_tool_prefix}mt; ac_word=$2
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7328 $as_echo_n "checking for $ac_word... " >&6; }
7329 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7330   $as_echo_n "(cached) " >&6
7331 else
7332   if test -n "$MANIFEST_TOOL"; then
7333   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7334 else
7335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7336 for as_dir in $PATH
7337 do
7338   IFS=$as_save_IFS
7339   test -z "$as_dir" && as_dir=.
7340     for ac_exec_ext in '' $ac_executable_extensions; do
7341   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7342     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7343     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7344     break 2
7345   fi
7346 done
7347   done
7348 IFS=$as_save_IFS
7349
7350 fi
7351 fi
7352 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7353 if test -n "$MANIFEST_TOOL"; then
7354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7355 $as_echo "$MANIFEST_TOOL" >&6; }
7356 else
7357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7358 $as_echo "no" >&6; }
7359 fi
7360
7361
7362 fi
7363 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7364   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7365   # Extract the first word of "mt", so it can be a program name with args.
7366 set dummy mt; ac_word=$2
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7368 $as_echo_n "checking for $ac_word... " >&6; }
7369 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7370   $as_echo_n "(cached) " >&6
7371 else
7372   if test -n "$ac_ct_MANIFEST_TOOL"; then
7373   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7374 else
7375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7376 for as_dir in $PATH
7377 do
7378   IFS=$as_save_IFS
7379   test -z "$as_dir" && as_dir=.
7380     for ac_exec_ext in '' $ac_executable_extensions; do
7381   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7382     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7383     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7384     break 2
7385   fi
7386 done
7387   done
7388 IFS=$as_save_IFS
7389
7390 fi
7391 fi
7392 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7393 if test -n "$ac_ct_MANIFEST_TOOL"; then
7394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7395 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7396 else
7397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7398 $as_echo "no" >&6; }
7399 fi
7400
7401   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7402     MANIFEST_TOOL=":"
7403   else
7404     case $cross_compiling:$ac_tool_warned in
7405 yes:)
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7407 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7408 ac_tool_warned=yes ;;
7409 esac
7410     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7411   fi
7412 else
7413   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7414 fi
7415
7416 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7418 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7419 if ${lt_cv_path_mainfest_tool+:} false; then :
7420   $as_echo_n "(cached) " >&6
7421 else
7422   lt_cv_path_mainfest_tool=no
7423   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7424   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7425   cat conftest.err >&5
7426   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7427     lt_cv_path_mainfest_tool=yes
7428   fi
7429   rm -f conftest*
7430 fi
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7432 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7433 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7434   MANIFEST_TOOL=:
7435 fi
7436
7437
7438
7439
7440
7441
7442   case $host_os in
7443     rhapsody* | darwin*)
7444     if test -n "$ac_tool_prefix"; then
7445   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7446 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7448 $as_echo_n "checking for $ac_word... " >&6; }
7449 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7450   $as_echo_n "(cached) " >&6
7451 else
7452   if test -n "$DSYMUTIL"; then
7453   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7454 else
7455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7456 for as_dir in $PATH
7457 do
7458   IFS=$as_save_IFS
7459   test -z "$as_dir" && as_dir=.
7460     for ac_exec_ext in '' $ac_executable_extensions; do
7461   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7462     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7463     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7464     break 2
7465   fi
7466 done
7467   done
7468 IFS=$as_save_IFS
7469
7470 fi
7471 fi
7472 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7473 if test -n "$DSYMUTIL"; then
7474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7475 $as_echo "$DSYMUTIL" >&6; }
7476 else
7477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7478 $as_echo "no" >&6; }
7479 fi
7480
7481
7482 fi
7483 if test -z "$ac_cv_prog_DSYMUTIL"; then
7484   ac_ct_DSYMUTIL=$DSYMUTIL
7485   # Extract the first word of "dsymutil", so it can be a program name with args.
7486 set dummy dsymutil; ac_word=$2
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7488 $as_echo_n "checking for $ac_word... " >&6; }
7489 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7490   $as_echo_n "(cached) " >&6
7491 else
7492   if test -n "$ac_ct_DSYMUTIL"; then
7493   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7494 else
7495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7496 for as_dir in $PATH
7497 do
7498   IFS=$as_save_IFS
7499   test -z "$as_dir" && as_dir=.
7500     for ac_exec_ext in '' $ac_executable_extensions; do
7501   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7502     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7503     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7504     break 2
7505   fi
7506 done
7507   done
7508 IFS=$as_save_IFS
7509
7510 fi
7511 fi
7512 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7513 if test -n "$ac_ct_DSYMUTIL"; then
7514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7515 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7516 else
7517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7518 $as_echo "no" >&6; }
7519 fi
7520
7521   if test "x$ac_ct_DSYMUTIL" = x; then
7522     DSYMUTIL=":"
7523   else
7524     case $cross_compiling:$ac_tool_warned in
7525 yes:)
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7527 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7528 ac_tool_warned=yes ;;
7529 esac
7530     DSYMUTIL=$ac_ct_DSYMUTIL
7531   fi
7532 else
7533   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7534 fi
7535
7536     if test -n "$ac_tool_prefix"; then
7537   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7538 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7540 $as_echo_n "checking for $ac_word... " >&6; }
7541 if ${ac_cv_prog_NMEDIT+:} false; then :
7542   $as_echo_n "(cached) " >&6
7543 else
7544   if test -n "$NMEDIT"; then
7545   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7546 else
7547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7548 for as_dir in $PATH
7549 do
7550   IFS=$as_save_IFS
7551   test -z "$as_dir" && as_dir=.
7552     for ac_exec_ext in '' $ac_executable_extensions; do
7553   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7554     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7555     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7556     break 2
7557   fi
7558 done
7559   done
7560 IFS=$as_save_IFS
7561
7562 fi
7563 fi
7564 NMEDIT=$ac_cv_prog_NMEDIT
7565 if test -n "$NMEDIT"; then
7566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7567 $as_echo "$NMEDIT" >&6; }
7568 else
7569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7570 $as_echo "no" >&6; }
7571 fi
7572
7573
7574 fi
7575 if test -z "$ac_cv_prog_NMEDIT"; then
7576   ac_ct_NMEDIT=$NMEDIT
7577   # Extract the first word of "nmedit", so it can be a program name with args.
7578 set dummy nmedit; ac_word=$2
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7580 $as_echo_n "checking for $ac_word... " >&6; }
7581 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7582   $as_echo_n "(cached) " >&6
7583 else
7584   if test -n "$ac_ct_NMEDIT"; then
7585   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7586 else
7587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7588 for as_dir in $PATH
7589 do
7590   IFS=$as_save_IFS
7591   test -z "$as_dir" && as_dir=.
7592     for ac_exec_ext in '' $ac_executable_extensions; do
7593   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7594     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7595     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7596     break 2
7597   fi
7598 done
7599   done
7600 IFS=$as_save_IFS
7601
7602 fi
7603 fi
7604 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7605 if test -n "$ac_ct_NMEDIT"; then
7606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7607 $as_echo "$ac_ct_NMEDIT" >&6; }
7608 else
7609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7610 $as_echo "no" >&6; }
7611 fi
7612
7613   if test "x$ac_ct_NMEDIT" = x; then
7614     NMEDIT=":"
7615   else
7616     case $cross_compiling:$ac_tool_warned in
7617 yes:)
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7619 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7620 ac_tool_warned=yes ;;
7621 esac
7622     NMEDIT=$ac_ct_NMEDIT
7623   fi
7624 else
7625   NMEDIT="$ac_cv_prog_NMEDIT"
7626 fi
7627
7628     if test -n "$ac_tool_prefix"; then
7629   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7630 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7632 $as_echo_n "checking for $ac_word... " >&6; }
7633 if ${ac_cv_prog_LIPO+:} false; then :
7634   $as_echo_n "(cached) " >&6
7635 else
7636   if test -n "$LIPO"; then
7637   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7638 else
7639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7640 for as_dir in $PATH
7641 do
7642   IFS=$as_save_IFS
7643   test -z "$as_dir" && as_dir=.
7644     for ac_exec_ext in '' $ac_executable_extensions; do
7645   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7646     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7647     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7648     break 2
7649   fi
7650 done
7651   done
7652 IFS=$as_save_IFS
7653
7654 fi
7655 fi
7656 LIPO=$ac_cv_prog_LIPO
7657 if test -n "$LIPO"; then
7658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7659 $as_echo "$LIPO" >&6; }
7660 else
7661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7662 $as_echo "no" >&6; }
7663 fi
7664
7665
7666 fi
7667 if test -z "$ac_cv_prog_LIPO"; then
7668   ac_ct_LIPO=$LIPO
7669   # Extract the first word of "lipo", so it can be a program name with args.
7670 set dummy lipo; ac_word=$2
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7672 $as_echo_n "checking for $ac_word... " >&6; }
7673 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7674   $as_echo_n "(cached) " >&6
7675 else
7676   if test -n "$ac_ct_LIPO"; then
7677   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7678 else
7679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7680 for as_dir in $PATH
7681 do
7682   IFS=$as_save_IFS
7683   test -z "$as_dir" && as_dir=.
7684     for ac_exec_ext in '' $ac_executable_extensions; do
7685   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7686     ac_cv_prog_ac_ct_LIPO="lipo"
7687     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7688     break 2
7689   fi
7690 done
7691   done
7692 IFS=$as_save_IFS
7693
7694 fi
7695 fi
7696 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7697 if test -n "$ac_ct_LIPO"; then
7698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7699 $as_echo "$ac_ct_LIPO" >&6; }
7700 else
7701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7702 $as_echo "no" >&6; }
7703 fi
7704
7705   if test "x$ac_ct_LIPO" = x; then
7706     LIPO=":"
7707   else
7708     case $cross_compiling:$ac_tool_warned in
7709 yes:)
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7711 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7712 ac_tool_warned=yes ;;
7713 esac
7714     LIPO=$ac_ct_LIPO
7715   fi
7716 else
7717   LIPO="$ac_cv_prog_LIPO"
7718 fi
7719
7720     if test -n "$ac_tool_prefix"; then
7721   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7722 set dummy ${ac_tool_prefix}otool; ac_word=$2
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7724 $as_echo_n "checking for $ac_word... " >&6; }
7725 if ${ac_cv_prog_OTOOL+:} false; then :
7726   $as_echo_n "(cached) " >&6
7727 else
7728   if test -n "$OTOOL"; then
7729   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7730 else
7731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7732 for as_dir in $PATH
7733 do
7734   IFS=$as_save_IFS
7735   test -z "$as_dir" && as_dir=.
7736     for ac_exec_ext in '' $ac_executable_extensions; do
7737   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7738     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7739     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7740     break 2
7741   fi
7742 done
7743   done
7744 IFS=$as_save_IFS
7745
7746 fi
7747 fi
7748 OTOOL=$ac_cv_prog_OTOOL
7749 if test -n "$OTOOL"; then
7750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7751 $as_echo "$OTOOL" >&6; }
7752 else
7753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7754 $as_echo "no" >&6; }
7755 fi
7756
7757
7758 fi
7759 if test -z "$ac_cv_prog_OTOOL"; then
7760   ac_ct_OTOOL=$OTOOL
7761   # Extract the first word of "otool", so it can be a program name with args.
7762 set dummy otool; ac_word=$2
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7764 $as_echo_n "checking for $ac_word... " >&6; }
7765 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7766   $as_echo_n "(cached) " >&6
7767 else
7768   if test -n "$ac_ct_OTOOL"; then
7769   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7770 else
7771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7772 for as_dir in $PATH
7773 do
7774   IFS=$as_save_IFS
7775   test -z "$as_dir" && as_dir=.
7776     for ac_exec_ext in '' $ac_executable_extensions; do
7777   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7778     ac_cv_prog_ac_ct_OTOOL="otool"
7779     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7780     break 2
7781   fi
7782 done
7783   done
7784 IFS=$as_save_IFS
7785
7786 fi
7787 fi
7788 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7789 if test -n "$ac_ct_OTOOL"; then
7790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7791 $as_echo "$ac_ct_OTOOL" >&6; }
7792 else
7793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7794 $as_echo "no" >&6; }
7795 fi
7796
7797   if test "x$ac_ct_OTOOL" = x; then
7798     OTOOL=":"
7799   else
7800     case $cross_compiling:$ac_tool_warned in
7801 yes:)
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7803 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7804 ac_tool_warned=yes ;;
7805 esac
7806     OTOOL=$ac_ct_OTOOL
7807   fi
7808 else
7809   OTOOL="$ac_cv_prog_OTOOL"
7810 fi
7811
7812     if test -n "$ac_tool_prefix"; then
7813   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7814 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7816 $as_echo_n "checking for $ac_word... " >&6; }
7817 if ${ac_cv_prog_OTOOL64+:} false; then :
7818   $as_echo_n "(cached) " >&6
7819 else
7820   if test -n "$OTOOL64"; then
7821   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7822 else
7823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7824 for as_dir in $PATH
7825 do
7826   IFS=$as_save_IFS
7827   test -z "$as_dir" && as_dir=.
7828     for ac_exec_ext in '' $ac_executable_extensions; do
7829   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7830     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7831     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7832     break 2
7833   fi
7834 done
7835   done
7836 IFS=$as_save_IFS
7837
7838 fi
7839 fi
7840 OTOOL64=$ac_cv_prog_OTOOL64
7841 if test -n "$OTOOL64"; then
7842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7843 $as_echo "$OTOOL64" >&6; }
7844 else
7845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7846 $as_echo "no" >&6; }
7847 fi
7848
7849
7850 fi
7851 if test -z "$ac_cv_prog_OTOOL64"; then
7852   ac_ct_OTOOL64=$OTOOL64
7853   # Extract the first word of "otool64", so it can be a program name with args.
7854 set dummy otool64; ac_word=$2
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7856 $as_echo_n "checking for $ac_word... " >&6; }
7857 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7858   $as_echo_n "(cached) " >&6
7859 else
7860   if test -n "$ac_ct_OTOOL64"; then
7861   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7862 else
7863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7864 for as_dir in $PATH
7865 do
7866   IFS=$as_save_IFS
7867   test -z "$as_dir" && as_dir=.
7868     for ac_exec_ext in '' $ac_executable_extensions; do
7869   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7870     ac_cv_prog_ac_ct_OTOOL64="otool64"
7871     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7872     break 2
7873   fi
7874 done
7875   done
7876 IFS=$as_save_IFS
7877
7878 fi
7879 fi
7880 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7881 if test -n "$ac_ct_OTOOL64"; then
7882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7883 $as_echo "$ac_ct_OTOOL64" >&6; }
7884 else
7885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7886 $as_echo "no" >&6; }
7887 fi
7888
7889   if test "x$ac_ct_OTOOL64" = x; then
7890     OTOOL64=":"
7891   else
7892     case $cross_compiling:$ac_tool_warned in
7893 yes:)
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7895 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7896 ac_tool_warned=yes ;;
7897 esac
7898     OTOOL64=$ac_ct_OTOOL64
7899   fi
7900 else
7901   OTOOL64="$ac_cv_prog_OTOOL64"
7902 fi
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7931 $as_echo_n "checking for -single_module linker flag... " >&6; }
7932 if ${lt_cv_apple_cc_single_mod+:} false; then :
7933   $as_echo_n "(cached) " >&6
7934 else
7935   lt_cv_apple_cc_single_mod=no
7936       if test -z "${LT_MULTI_MODULE}"; then
7937         # By default we will add the -single_module flag. You can override
7938         # by either setting the environment variable LT_MULTI_MODULE
7939         # non-empty at configure time, or by adding -multi_module to the
7940         # link flags.
7941         rm -rf libconftest.dylib*
7942         echo "int foo(void){return 1;}" > conftest.c
7943         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7944 -dynamiclib -Wl,-single_module conftest.c" >&5
7945         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7946           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7947         _lt_result=$?
7948         # If there is a non-empty error log, and "single_module"
7949         # appears in it, assume the flag caused a linker warning
7950         if test -s conftest.err && $GREP single_module conftest.err; then
7951           cat conftest.err >&5
7952         # Otherwise, if the output was created with a 0 exit code from
7953         # the compiler, it worked.
7954         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7955           lt_cv_apple_cc_single_mod=yes
7956         else
7957           cat conftest.err >&5
7958         fi
7959         rm -rf libconftest.dylib*
7960         rm -f conftest.*
7961       fi
7962 fi
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7964 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7965
7966     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7967 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7968 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7969   $as_echo_n "(cached) " >&6
7970 else
7971   lt_cv_ld_exported_symbols_list=no
7972       save_LDFLAGS=$LDFLAGS
7973       echo "_main" > conftest.sym
7974       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7975       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7976 /* end confdefs.h.  */
7977
7978 int
7979 main ()
7980 {
7981
7982   ;
7983   return 0;
7984 }
7985 _ACEOF
7986 if ac_fn_c_try_link "$LINENO"; then :
7987   lt_cv_ld_exported_symbols_list=yes
7988 else
7989   lt_cv_ld_exported_symbols_list=no
7990 fi
7991 rm -f core conftest.err conftest.$ac_objext \
7992     conftest$ac_exeext conftest.$ac_ext
7993         LDFLAGS="$save_LDFLAGS"
7994
7995 fi
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7997 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7998
7999     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8000 $as_echo_n "checking for -force_load linker flag... " >&6; }
8001 if ${lt_cv_ld_force_load+:} false; then :
8002   $as_echo_n "(cached) " >&6
8003 else
8004   lt_cv_ld_force_load=no
8005       cat > conftest.c << _LT_EOF
8006 int forced_loaded() { return 2;}
8007 _LT_EOF
8008       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8009       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8010       echo "$AR cru libconftest.a conftest.o" >&5
8011       $AR cru libconftest.a conftest.o 2>&5
8012       echo "$RANLIB libconftest.a" >&5
8013       $RANLIB libconftest.a 2>&5
8014       cat > conftest.c << _LT_EOF
8015 int main() { return 0;}
8016 _LT_EOF
8017       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8018       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8019       _lt_result=$?
8020       if test -s conftest.err && $GREP force_load conftest.err; then
8021         cat conftest.err >&5
8022       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8023         lt_cv_ld_force_load=yes
8024       else
8025         cat conftest.err >&5
8026       fi
8027         rm -f conftest.err libconftest.a conftest conftest.c
8028         rm -rf conftest.dSYM
8029
8030 fi
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8032 $as_echo "$lt_cv_ld_force_load" >&6; }
8033     case $host_os in
8034     rhapsody* | darwin1.[012])
8035       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8036     darwin1.*)
8037       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8038     darwin*) # darwin 5.x on
8039       # if running on 10.5 or later, the deployment target defaults
8040       # to the OS version, if on x86, and 10.4, the deployment
8041       # target defaults to 10.4. Don't you love it?
8042       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8043         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8044           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8045         10.[012]*)
8046           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8047         10.*)
8048           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8049       esac
8050     ;;
8051   esac
8052     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8053       _lt_dar_single_mod='$single_module'
8054     fi
8055     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8056       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8057     else
8058       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8059     fi
8060     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8061       _lt_dsymutil='~$DSYMUTIL $lib || :'
8062     else
8063       _lt_dsymutil=
8064     fi
8065     ;;
8066   esac
8067
8068 for ac_header in dlfcn.h
8069 do :
8070   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8071 "
8072 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8073   cat >>confdefs.h <<_ACEOF
8074 #define HAVE_DLFCN_H 1
8075 _ACEOF
8076
8077 fi
8078
8079 done
8080
8081
8082
8083
8084 func_stripname_cnf ()
8085 {
8086   case ${2} in
8087   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8088   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8089   esac
8090 } # func_stripname_cnf
8091
8092
8093
8094
8095
8096 # Set options
8097
8098
8099
8100         enable_dlopen=no
8101
8102
8103   enable_win32_dll=no
8104
8105
8106             # Check whether --enable-shared was given.
8107 if test "${enable_shared+set}" = set; then :
8108   enableval=$enable_shared; p=${PACKAGE-default}
8109     case $enableval in
8110     yes) enable_shared=yes ;;
8111     no) enable_shared=no ;;
8112     *)
8113       enable_shared=no
8114       # Look at the argument we got.  We use all the common list separators.
8115       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8116       for pkg in $enableval; do
8117         IFS="$lt_save_ifs"
8118         if test "X$pkg" = "X$p"; then
8119           enable_shared=yes
8120         fi
8121       done
8122       IFS="$lt_save_ifs"
8123       ;;
8124     esac
8125 else
8126   enable_shared=yes
8127 fi
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137   # Check whether --enable-static was given.
8138 if test "${enable_static+set}" = set; then :
8139   enableval=$enable_static; p=${PACKAGE-default}
8140     case $enableval in
8141     yes) enable_static=yes ;;
8142     no) enable_static=no ;;
8143     *)
8144      enable_static=no
8145       # Look at the argument we got.  We use all the common list separators.
8146       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8147       for pkg in $enableval; do
8148         IFS="$lt_save_ifs"
8149         if test "X$pkg" = "X$p"; then
8150           enable_static=yes
8151         fi
8152       done
8153       IFS="$lt_save_ifs"
8154       ;;
8155     esac
8156 else
8157   enable_static=yes
8158 fi
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169 # Check whether --with-pic was given.
8170 if test "${with_pic+set}" = set; then :
8171   withval=$with_pic; lt_p=${PACKAGE-default}
8172     case $withval in
8173     yes|no) pic_mode=$withval ;;
8174     *)
8175       pic_mode=default
8176       # Look at the argument we got.  We use all the common list separators.
8177       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8178       for lt_pkg in $withval; do
8179         IFS="$lt_save_ifs"
8180         if test "X$lt_pkg" = "X$lt_p"; then
8181           pic_mode=yes
8182         fi
8183       done
8184       IFS="$lt_save_ifs"
8185       ;;
8186     esac
8187 else
8188   pic_mode=default
8189 fi
8190
8191
8192 test -z "$pic_mode" && pic_mode=default
8193
8194
8195
8196
8197
8198
8199
8200   # Check whether --enable-fast-install was given.
8201 if test "${enable_fast_install+set}" = set; then :
8202   enableval=$enable_fast_install; p=${PACKAGE-default}
8203     case $enableval in
8204     yes) enable_fast_install=yes ;;
8205     no) enable_fast_install=no ;;
8206     *)
8207       enable_fast_install=no
8208       # Look at the argument we got.  We use all the common list separators.
8209       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8210       for pkg in $enableval; do
8211         IFS="$lt_save_ifs"
8212         if test "X$pkg" = "X$p"; then
8213           enable_fast_install=yes
8214         fi
8215       done
8216       IFS="$lt_save_ifs"
8217       ;;
8218     esac
8219 else
8220   enable_fast_install=yes
8221 fi
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233 # This can be used to rebuild libtool when needed
8234 LIBTOOL_DEPS="$ltmain"
8235
8236 # Always use our own libtool.
8237 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268 test -z "$LN_S" && LN_S="ln -s"
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283 if test -n "${ZSH_VERSION+set}" ; then
8284    setopt NO_GLOB_SUBST
8285 fi
8286
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8288 $as_echo_n "checking for objdir... " >&6; }
8289 if ${lt_cv_objdir+:} false; then :
8290   $as_echo_n "(cached) " >&6
8291 else
8292   rm -f .libs 2>/dev/null
8293 mkdir .libs 2>/dev/null
8294 if test -d .libs; then
8295   lt_cv_objdir=.libs
8296 else
8297   # MS-DOS does not allow filenames that begin with a dot.
8298   lt_cv_objdir=_libs
8299 fi
8300 rmdir .libs 2>/dev/null
8301 fi
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8303 $as_echo "$lt_cv_objdir" >&6; }
8304 objdir=$lt_cv_objdir
8305
8306
8307
8308
8309
8310 cat >>confdefs.h <<_ACEOF
8311 #define LT_OBJDIR "$lt_cv_objdir/"
8312 _ACEOF
8313
8314
8315
8316
8317 case $host_os in
8318 aix3*)
8319   # AIX sometimes has problems with the GCC collect2 program.  For some
8320   # reason, if we set the COLLECT_NAMES environment variable, the problems
8321   # vanish in a puff of smoke.
8322   if test "X${COLLECT_NAMES+set}" != Xset; then
8323     COLLECT_NAMES=
8324     export COLLECT_NAMES
8325   fi
8326   ;;
8327 esac
8328
8329 # Global variables:
8330 ofile=libtool
8331 can_build_shared=yes
8332
8333 # All known linkers require a `.a' archive for static linking (except MSVC,
8334 # which needs '.lib').
8335 libext=a
8336
8337 with_gnu_ld="$lt_cv_prog_gnu_ld"
8338
8339 old_CC="$CC"
8340 old_CFLAGS="$CFLAGS"
8341
8342 # Set sane defaults for various variables
8343 test -z "$CC" && CC=cc
8344 test -z "$LTCC" && LTCC=$CC
8345 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8346 test -z "$LD" && LD=ld
8347 test -z "$ac_objext" && ac_objext=o
8348
8349 for cc_temp in $compiler""; do
8350   case $cc_temp in
8351     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8352     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8353     \-*) ;;
8354     *) break;;
8355   esac
8356 done
8357 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8358
8359
8360 # Only perform the check for file, if the check method requires it
8361 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8362 case $deplibs_check_method in
8363 file_magic*)
8364   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8365     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8366 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8367 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8368   $as_echo_n "(cached) " >&6
8369 else
8370   case $MAGIC_CMD in
8371 [\\/*] |  ?:[\\/]*)
8372   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8373   ;;
8374 *)
8375   lt_save_MAGIC_CMD="$MAGIC_CMD"
8376   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8377   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8378   for ac_dir in $ac_dummy; do
8379     IFS="$lt_save_ifs"
8380     test -z "$ac_dir" && ac_dir=.
8381     if test -f $ac_dir/${ac_tool_prefix}file; then
8382       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8383       if test -n "$file_magic_test_file"; then
8384         case $deplibs_check_method in
8385         "file_magic "*)
8386           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8387           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8388           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8389             $EGREP "$file_magic_regex" > /dev/null; then
8390             :
8391           else
8392             cat <<_LT_EOF 1>&2
8393
8394 *** Warning: the command libtool uses to detect shared libraries,
8395 *** $file_magic_cmd, produces output that libtool cannot recognize.
8396 *** The result is that libtool may fail to recognize shared libraries
8397 *** as such.  This will affect the creation of libtool libraries that
8398 *** depend on shared libraries, but programs linked with such libtool
8399 *** libraries will work regardless of this problem.  Nevertheless, you
8400 *** may want to report the problem to your system manager and/or to
8401 *** bug-libtool@gnu.org
8402
8403 _LT_EOF
8404           fi ;;
8405         esac
8406       fi
8407       break
8408     fi
8409   done
8410   IFS="$lt_save_ifs"
8411   MAGIC_CMD="$lt_save_MAGIC_CMD"
8412   ;;
8413 esac
8414 fi
8415
8416 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8417 if test -n "$MAGIC_CMD"; then
8418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8419 $as_echo "$MAGIC_CMD" >&6; }
8420 else
8421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8422 $as_echo "no" >&6; }
8423 fi
8424
8425
8426
8427
8428
8429 if test -z "$lt_cv_path_MAGIC_CMD"; then
8430   if test -n "$ac_tool_prefix"; then
8431     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8432 $as_echo_n "checking for file... " >&6; }
8433 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8434   $as_echo_n "(cached) " >&6
8435 else
8436   case $MAGIC_CMD in
8437 [\\/*] |  ?:[\\/]*)
8438   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8439   ;;
8440 *)
8441   lt_save_MAGIC_CMD="$MAGIC_CMD"
8442   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8443   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8444   for ac_dir in $ac_dummy; do
8445     IFS="$lt_save_ifs"
8446     test -z "$ac_dir" && ac_dir=.
8447     if test -f $ac_dir/file; then
8448       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8449       if test -n "$file_magic_test_file"; then
8450         case $deplibs_check_method in
8451         "file_magic "*)
8452           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8453           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8454           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8455             $EGREP "$file_magic_regex" > /dev/null; then
8456             :
8457           else
8458             cat <<_LT_EOF 1>&2
8459
8460 *** Warning: the command libtool uses to detect shared libraries,
8461 *** $file_magic_cmd, produces output that libtool cannot recognize.
8462 *** The result is that libtool may fail to recognize shared libraries
8463 *** as such.  This will affect the creation of libtool libraries that
8464 *** depend on shared libraries, but programs linked with such libtool
8465 *** libraries will work regardless of this problem.  Nevertheless, you
8466 *** may want to report the problem to your system manager and/or to
8467 *** bug-libtool@gnu.org
8468
8469 _LT_EOF
8470           fi ;;
8471         esac
8472       fi
8473       break
8474     fi
8475   done
8476   IFS="$lt_save_ifs"
8477   MAGIC_CMD="$lt_save_MAGIC_CMD"
8478   ;;
8479 esac
8480 fi
8481
8482 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8483 if test -n "$MAGIC_CMD"; then
8484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8485 $as_echo "$MAGIC_CMD" >&6; }
8486 else
8487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8488 $as_echo "no" >&6; }
8489 fi
8490
8491
8492   else
8493     MAGIC_CMD=:
8494   fi
8495 fi
8496
8497   fi
8498   ;;
8499 esac
8500
8501 # Use C for the default configuration in the libtool script
8502
8503 lt_save_CC="$CC"
8504 ac_ext=c
8505 ac_cpp='$CPP $CPPFLAGS'
8506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8509
8510
8511 # Source file extension for C test sources.
8512 ac_ext=c
8513
8514 # Object file extension for compiled C test sources.
8515 objext=o
8516 objext=$objext
8517
8518 # Code to be used in simple compile tests
8519 lt_simple_compile_test_code="int some_variable = 0;"
8520
8521 # Code to be used in simple link tests
8522 lt_simple_link_test_code='int main(){return(0);}'
8523
8524
8525
8526
8527
8528
8529
8530 # If no C compiler was specified, use CC.
8531 LTCC=${LTCC-"$CC"}
8532
8533 # If no C compiler flags were specified, use CFLAGS.
8534 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8535
8536 # Allow CC to be a program name with arguments.
8537 compiler=$CC
8538
8539 # Save the default compiler, since it gets overwritten when the other
8540 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8541 compiler_DEFAULT=$CC
8542
8543 # save warnings/boilerplate of simple test code
8544 ac_outfile=conftest.$ac_objext
8545 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8546 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8547 _lt_compiler_boilerplate=`cat conftest.err`
8548 $RM conftest*
8549
8550 ac_outfile=conftest.$ac_objext
8551 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8552 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8553 _lt_linker_boilerplate=`cat conftest.err`
8554 $RM -r conftest*
8555
8556
8557 if test -n "$compiler"; then
8558
8559 lt_prog_compiler_no_builtin_flag=
8560
8561 if test "$GCC" = yes; then
8562   case $cc_basename in
8563   nvcc*)
8564     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8565   *)
8566     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8567   esac
8568
8569   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8570 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8571 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8572   $as_echo_n "(cached) " >&6
8573 else
8574   lt_cv_prog_compiler_rtti_exceptions=no
8575    ac_outfile=conftest.$ac_objext
8576    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8577    lt_compiler_flag="-fno-rtti -fno-exceptions"
8578    # Insert the option either (1) after the last *FLAGS variable, or
8579    # (2) before a word containing "conftest.", or (3) at the end.
8580    # Note that $ac_compile itself does not contain backslashes and begins
8581    # with a dollar sign (not a hyphen), so the echo should work correctly.
8582    # The option is referenced via a variable to avoid confusing sed.
8583    lt_compile=`echo "$ac_compile" | $SED \
8584    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8585    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8586    -e 's:$: $lt_compiler_flag:'`
8587    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8588    (eval "$lt_compile" 2>conftest.err)
8589    ac_status=$?
8590    cat conftest.err >&5
8591    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592    if (exit $ac_status) && test -s "$ac_outfile"; then
8593      # The compiler can only warn and ignore the option if not recognized
8594      # So say no if there are warnings other than the usual output.
8595      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8596      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8597      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8598        lt_cv_prog_compiler_rtti_exceptions=yes
8599      fi
8600    fi
8601    $RM conftest*
8602
8603 fi
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8605 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8606
8607 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8608     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8609 else
8610     :
8611 fi
8612
8613 fi
8614
8615
8616
8617
8618
8619
8620   lt_prog_compiler_wl=
8621 lt_prog_compiler_pic=
8622 lt_prog_compiler_static=
8623
8624
8625   if test "$GCC" = yes; then
8626     lt_prog_compiler_wl='-Wl,'
8627     lt_prog_compiler_static='-static'
8628
8629     case $host_os in
8630       aix*)
8631       # All AIX code is PIC.
8632       if test "$host_cpu" = ia64; then
8633         # AIX 5 now supports IA64 processor
8634         lt_prog_compiler_static='-Bstatic'
8635       fi
8636       ;;
8637
8638     amigaos*)
8639       case $host_cpu in
8640       powerpc)
8641             # see comment about AmigaOS4 .so support
8642             lt_prog_compiler_pic='-fPIC'
8643         ;;
8644       m68k)
8645             # FIXME: we need at least 68020 code to build shared libraries, but
8646             # adding the `-m68020' flag to GCC prevents building anything better,
8647             # like `-m68040'.
8648             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8649         ;;
8650       esac
8651       ;;
8652
8653     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8654       # PIC is the default for these OSes.
8655       ;;
8656
8657     mingw* | cygwin* | pw32* | os2* | cegcc*)
8658       # This hack is so that the source file can tell whether it is being
8659       # built for inclusion in a dll (and should export symbols for example).
8660       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8661       # (--disable-auto-import) libraries
8662       lt_prog_compiler_pic='-DDLL_EXPORT'
8663       ;;
8664
8665     darwin* | rhapsody*)
8666       # PIC is the default on this platform
8667       # Common symbols not allowed in MH_DYLIB files
8668       lt_prog_compiler_pic='-fno-common'
8669       ;;
8670
8671     haiku*)
8672       # PIC is the default for Haiku.
8673       # The "-static" flag exists, but is broken.
8674       lt_prog_compiler_static=
8675       ;;
8676
8677     hpux*)
8678       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8679       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8680       # sets the default TLS model and affects inlining.
8681       case $host_cpu in
8682       hppa*64*)
8683         # +Z the default
8684         ;;
8685       *)
8686         lt_prog_compiler_pic='-fPIC'
8687         ;;
8688       esac
8689       ;;
8690
8691     interix[3-9]*)
8692       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8693       # Instead, we relocate shared libraries at runtime.
8694       ;;
8695
8696     msdosdjgpp*)
8697       # Just because we use GCC doesn't mean we suddenly get shared libraries
8698       # on systems that don't support them.
8699       lt_prog_compiler_can_build_shared=no
8700       enable_shared=no
8701       ;;
8702
8703     *nto* | *qnx*)
8704       # QNX uses GNU C++, but need to define -shared option too, otherwise
8705       # it will coredump.
8706       lt_prog_compiler_pic='-fPIC -shared'
8707       ;;
8708
8709     sysv4*MP*)
8710       if test -d /usr/nec; then
8711         lt_prog_compiler_pic=-Kconform_pic
8712       fi
8713       ;;
8714
8715     *)
8716       lt_prog_compiler_pic='-fPIC'
8717       ;;
8718     esac
8719
8720     case $cc_basename in
8721     nvcc*) # Cuda Compiler Driver 2.2
8722       lt_prog_compiler_wl='-Xlinker '
8723       if test -n "$lt_prog_compiler_pic"; then
8724         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8725       fi
8726       ;;
8727     esac
8728   else
8729     # PORTME Check for flag to pass linker flags through the system compiler.
8730     case $host_os in
8731     aix*)
8732       lt_prog_compiler_wl='-Wl,'
8733       if test "$host_cpu" = ia64; then
8734         # AIX 5 now supports IA64 processor
8735         lt_prog_compiler_static='-Bstatic'
8736       else
8737         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8738       fi
8739       ;;
8740
8741     mingw* | cygwin* | pw32* | os2* | cegcc*)
8742       # This hack is so that the source file can tell whether it is being
8743       # built for inclusion in a dll (and should export symbols for example).
8744       lt_prog_compiler_pic='-DDLL_EXPORT'
8745       ;;
8746
8747     hpux9* | hpux10* | hpux11*)
8748       lt_prog_compiler_wl='-Wl,'
8749       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8750       # not for PA HP-UX.
8751       case $host_cpu in
8752       hppa*64*|ia64*)
8753         # +Z the default
8754         ;;
8755       *)
8756         lt_prog_compiler_pic='+Z'
8757         ;;
8758       esac
8759       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8760       lt_prog_compiler_static='${wl}-a ${wl}archive'
8761       ;;
8762
8763     irix5* | irix6* | nonstopux*)
8764       lt_prog_compiler_wl='-Wl,'
8765       # PIC (with -KPIC) is the default.
8766       lt_prog_compiler_static='-non_shared'
8767       ;;
8768
8769     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8770       case $cc_basename in
8771       # old Intel for x86_64 which still supported -KPIC.
8772       ecc*)
8773         lt_prog_compiler_wl='-Wl,'
8774         lt_prog_compiler_pic='-KPIC'
8775         lt_prog_compiler_static='-static'
8776         ;;
8777       # icc used to be incompatible with GCC.
8778       # ICC 10 doesn't accept -KPIC any more.
8779       icc* | ifort*)
8780         lt_prog_compiler_wl='-Wl,'
8781         lt_prog_compiler_pic='-fPIC'
8782         lt_prog_compiler_static='-static'
8783         ;;
8784       # Lahey Fortran 8.1.
8785       lf95*)
8786         lt_prog_compiler_wl='-Wl,'
8787         lt_prog_compiler_pic='--shared'
8788         lt_prog_compiler_static='--static'
8789         ;;
8790       nagfor*)
8791         # NAG Fortran compiler
8792         lt_prog_compiler_wl='-Wl,-Wl,,'
8793         lt_prog_compiler_pic='-PIC'
8794         lt_prog_compiler_static='-Bstatic'
8795         ;;
8796       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8797         # Portland Group compilers (*not* the Pentium gcc compiler,
8798         # which looks to be a dead project)
8799         lt_prog_compiler_wl='-Wl,'
8800         lt_prog_compiler_pic='-fpic'
8801         lt_prog_compiler_static='-Bstatic'
8802         ;;
8803       ccc*)
8804         lt_prog_compiler_wl='-Wl,'
8805         # All Alpha code is PIC.
8806         lt_prog_compiler_static='-non_shared'
8807         ;;
8808       xl* | bgxl* | bgf* | mpixl*)
8809         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8810         lt_prog_compiler_wl='-Wl,'
8811         lt_prog_compiler_pic='-qpic'
8812         lt_prog_compiler_static='-qstaticlink'
8813         ;;
8814       *)
8815         case `$CC -V 2>&1 | sed 5q` in
8816         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8817           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8818           lt_prog_compiler_pic='-KPIC'
8819           lt_prog_compiler_static='-Bstatic'
8820           lt_prog_compiler_wl=''
8821           ;;
8822         *Sun\ F* | *Sun*Fortran*)
8823           lt_prog_compiler_pic='-KPIC'
8824           lt_prog_compiler_static='-Bstatic'
8825           lt_prog_compiler_wl='-Qoption ld '
8826           ;;
8827         *Sun\ C*)
8828           # Sun C 5.9
8829           lt_prog_compiler_pic='-KPIC'
8830           lt_prog_compiler_static='-Bstatic'
8831           lt_prog_compiler_wl='-Wl,'
8832           ;;
8833         *Intel*\ [CF]*Compiler*)
8834           lt_prog_compiler_wl='-Wl,'
8835           lt_prog_compiler_pic='-fPIC'
8836           lt_prog_compiler_static='-static'
8837           ;;
8838         *Portland\ Group*)
8839           lt_prog_compiler_wl='-Wl,'
8840           lt_prog_compiler_pic='-fpic'
8841           lt_prog_compiler_static='-Bstatic'
8842           ;;
8843         esac
8844         ;;
8845       esac
8846       ;;
8847
8848     newsos6)
8849       lt_prog_compiler_pic='-KPIC'
8850       lt_prog_compiler_static='-Bstatic'
8851       ;;
8852
8853     *nto* | *qnx*)
8854       # QNX uses GNU C++, but need to define -shared option too, otherwise
8855       # it will coredump.
8856       lt_prog_compiler_pic='-fPIC -shared'
8857       ;;
8858
8859     osf3* | osf4* | osf5*)
8860       lt_prog_compiler_wl='-Wl,'
8861       # All OSF/1 code is PIC.
8862       lt_prog_compiler_static='-non_shared'
8863       ;;
8864
8865     rdos*)
8866       lt_prog_compiler_static='-non_shared'
8867       ;;
8868
8869     solaris*)
8870       lt_prog_compiler_pic='-KPIC'
8871       lt_prog_compiler_static='-Bstatic'
8872       case $cc_basename in
8873       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8874         lt_prog_compiler_wl='-Qoption ld ';;
8875       *)
8876         lt_prog_compiler_wl='-Wl,';;
8877       esac
8878       ;;
8879
8880     sunos4*)
8881       lt_prog_compiler_wl='-Qoption ld '
8882       lt_prog_compiler_pic='-PIC'
8883       lt_prog_compiler_static='-Bstatic'
8884       ;;
8885
8886     sysv4 | sysv4.2uw2* | sysv4.3*)
8887       lt_prog_compiler_wl='-Wl,'
8888       lt_prog_compiler_pic='-KPIC'
8889       lt_prog_compiler_static='-Bstatic'
8890       ;;
8891
8892     sysv4*MP*)
8893       if test -d /usr/nec ;then
8894         lt_prog_compiler_pic='-Kconform_pic'
8895         lt_prog_compiler_static='-Bstatic'
8896       fi
8897       ;;
8898
8899     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8900       lt_prog_compiler_wl='-Wl,'
8901       lt_prog_compiler_pic='-KPIC'
8902       lt_prog_compiler_static='-Bstatic'
8903       ;;
8904
8905     unicos*)
8906       lt_prog_compiler_wl='-Wl,'
8907       lt_prog_compiler_can_build_shared=no
8908       ;;
8909
8910     uts4*)
8911       lt_prog_compiler_pic='-pic'
8912       lt_prog_compiler_static='-Bstatic'
8913       ;;
8914
8915     *)
8916       lt_prog_compiler_can_build_shared=no
8917       ;;
8918     esac
8919   fi
8920
8921 case $host_os in
8922   # For platforms which do not support PIC, -DPIC is meaningless:
8923   *djgpp*)
8924     lt_prog_compiler_pic=
8925     ;;
8926   *)
8927     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8928     ;;
8929 esac
8930
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8932 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8933 if ${lt_cv_prog_compiler_pic+:} false; then :
8934   $as_echo_n "(cached) " >&6
8935 else
8936   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8937 fi
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8939 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8940 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8941
8942 #
8943 # Check to make sure the PIC flag actually works.
8944 #
8945 if test -n "$lt_prog_compiler_pic"; then
8946   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8947 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8948 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8949   $as_echo_n "(cached) " >&6
8950 else
8951   lt_cv_prog_compiler_pic_works=no
8952    ac_outfile=conftest.$ac_objext
8953    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8954    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8955    # Insert the option either (1) after the last *FLAGS variable, or
8956    # (2) before a word containing "conftest.", or (3) at the end.
8957    # Note that $ac_compile itself does not contain backslashes and begins
8958    # with a dollar sign (not a hyphen), so the echo should work correctly.
8959    # The option is referenced via a variable to avoid confusing sed.
8960    lt_compile=`echo "$ac_compile" | $SED \
8961    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8962    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8963    -e 's:$: $lt_compiler_flag:'`
8964    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8965    (eval "$lt_compile" 2>conftest.err)
8966    ac_status=$?
8967    cat conftest.err >&5
8968    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969    if (exit $ac_status) && test -s "$ac_outfile"; then
8970      # The compiler can only warn and ignore the option if not recognized
8971      # So say no if there are warnings other than the usual output.
8972      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8973      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8974      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8975        lt_cv_prog_compiler_pic_works=yes
8976      fi
8977    fi
8978    $RM conftest*
8979
8980 fi
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8982 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8983
8984 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8985     case $lt_prog_compiler_pic in
8986      "" | " "*) ;;
8987      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8988      esac
8989 else
8990     lt_prog_compiler_pic=
8991      lt_prog_compiler_can_build_shared=no
8992 fi
8993
8994 fi
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006 #
9007 # Check to make sure the static flag actually works.
9008 #
9009 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9011 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9012 if ${lt_cv_prog_compiler_static_works+:} false; then :
9013   $as_echo_n "(cached) " >&6
9014 else
9015   lt_cv_prog_compiler_static_works=no
9016    save_LDFLAGS="$LDFLAGS"
9017    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9018    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9019    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9020      # The linker can only warn and ignore the option if not recognized
9021      # So say no if there are warnings
9022      if test -s conftest.err; then
9023        # Append any errors to the config.log.
9024        cat conftest.err 1>&5
9025        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9026        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9027        if diff conftest.exp conftest.er2 >/dev/null; then
9028          lt_cv_prog_compiler_static_works=yes
9029        fi
9030      else
9031        lt_cv_prog_compiler_static_works=yes
9032      fi
9033    fi
9034    $RM -r conftest*
9035    LDFLAGS="$save_LDFLAGS"
9036
9037 fi
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9039 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9040
9041 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9042     :
9043 else
9044     lt_prog_compiler_static=
9045 fi
9046
9047
9048
9049
9050
9051
9052
9053   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9054 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9055 if ${lt_cv_prog_compiler_c_o+:} false; then :
9056   $as_echo_n "(cached) " >&6
9057 else
9058   lt_cv_prog_compiler_c_o=no
9059    $RM -r conftest 2>/dev/null
9060    mkdir conftest
9061    cd conftest
9062    mkdir out
9063    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9064
9065    lt_compiler_flag="-o out/conftest2.$ac_objext"
9066    # Insert the option either (1) after the last *FLAGS variable, or
9067    # (2) before a word containing "conftest.", or (3) at the end.
9068    # Note that $ac_compile itself does not contain backslashes and begins
9069    # with a dollar sign (not a hyphen), so the echo should work correctly.
9070    lt_compile=`echo "$ac_compile" | $SED \
9071    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9072    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9073    -e 's:$: $lt_compiler_flag:'`
9074    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9075    (eval "$lt_compile" 2>out/conftest.err)
9076    ac_status=$?
9077    cat out/conftest.err >&5
9078    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9080    then
9081      # The compiler can only warn and ignore the option if not recognized
9082      # So say no if there are warnings
9083      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9084      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9085      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9086        lt_cv_prog_compiler_c_o=yes
9087      fi
9088    fi
9089    chmod u+w . 2>&5
9090    $RM conftest*
9091    # SGI C++ compiler will create directory out/ii_files/ for
9092    # template instantiation
9093    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9094    $RM out/* && rmdir out
9095    cd ..
9096    $RM -r conftest
9097    $RM conftest*
9098
9099 fi
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9101 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9102
9103
9104
9105
9106
9107
9108   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9109 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9110 if ${lt_cv_prog_compiler_c_o+:} false; then :
9111   $as_echo_n "(cached) " >&6
9112 else
9113   lt_cv_prog_compiler_c_o=no
9114    $RM -r conftest 2>/dev/null
9115    mkdir conftest
9116    cd conftest
9117    mkdir out
9118    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9119
9120    lt_compiler_flag="-o out/conftest2.$ac_objext"
9121    # Insert the option either (1) after the last *FLAGS variable, or
9122    # (2) before a word containing "conftest.", or (3) at the end.
9123    # Note that $ac_compile itself does not contain backslashes and begins
9124    # with a dollar sign (not a hyphen), so the echo should work correctly.
9125    lt_compile=`echo "$ac_compile" | $SED \
9126    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9127    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9128    -e 's:$: $lt_compiler_flag:'`
9129    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9130    (eval "$lt_compile" 2>out/conftest.err)
9131    ac_status=$?
9132    cat out/conftest.err >&5
9133    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9135    then
9136      # The compiler can only warn and ignore the option if not recognized
9137      # So say no if there are warnings
9138      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9139      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9140      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9141        lt_cv_prog_compiler_c_o=yes
9142      fi
9143    fi
9144    chmod u+w . 2>&5
9145    $RM conftest*
9146    # SGI C++ compiler will create directory out/ii_files/ for
9147    # template instantiation
9148    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9149    $RM out/* && rmdir out
9150    cd ..
9151    $RM -r conftest
9152    $RM conftest*
9153
9154 fi
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9156 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9157
9158
9159
9160
9161 hard_links="nottested"
9162 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9163   # do not overwrite the value of need_locks provided by the user
9164   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9165 $as_echo_n "checking if we can lock with hard links... " >&6; }
9166   hard_links=yes
9167   $RM conftest*
9168   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9169   touch conftest.a
9170   ln conftest.a conftest.b 2>&5 || hard_links=no
9171   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9173 $as_echo "$hard_links" >&6; }
9174   if test "$hard_links" = no; then
9175     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9176 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9177     need_locks=warn
9178   fi
9179 else
9180   need_locks=no
9181 fi
9182
9183
9184
9185
9186
9187
9188   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9189 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9190
9191   runpath_var=
9192   allow_undefined_flag=
9193   always_export_symbols=no
9194   archive_cmds=
9195   archive_expsym_cmds=
9196   compiler_needs_object=no
9197   enable_shared_with_static_runtimes=no
9198   export_dynamic_flag_spec=
9199   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9200   hardcode_automatic=no
9201   hardcode_direct=no
9202   hardcode_direct_absolute=no
9203   hardcode_libdir_flag_spec=
9204   hardcode_libdir_separator=
9205   hardcode_minus_L=no
9206   hardcode_shlibpath_var=unsupported
9207   inherit_rpath=no
9208   link_all_deplibs=unknown
9209   module_cmds=
9210   module_expsym_cmds=
9211   old_archive_from_new_cmds=
9212   old_archive_from_expsyms_cmds=
9213   thread_safe_flag_spec=
9214   whole_archive_flag_spec=
9215   # include_expsyms should be a list of space-separated symbols to be *always*
9216   # included in the symbol list
9217   include_expsyms=
9218   # exclude_expsyms can be an extended regexp of symbols to exclude
9219   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9220   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9221   # as well as any symbol that contains `d'.
9222   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9223   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9224   # platforms (ab)use it in PIC code, but their linkers get confused if
9225   # the symbol is explicitly referenced.  Since portable code cannot
9226   # rely on this symbol name, it's probably fine to never include it in
9227   # preloaded symbol tables.
9228   # Exclude shared library initialization/finalization symbols.
9229   extract_expsyms_cmds=
9230
9231   case $host_os in
9232   cygwin* | mingw* | pw32* | cegcc*)
9233     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9234     # When not using gcc, we currently assume that we are using
9235     # Microsoft Visual C++.
9236     if test "$GCC" != yes; then
9237       with_gnu_ld=no
9238     fi
9239     ;;
9240   interix*)
9241     # we just hope/assume this is gcc and not c89 (= MSVC++)
9242     with_gnu_ld=yes
9243     ;;
9244   openbsd*)
9245     with_gnu_ld=no
9246     ;;
9247   esac
9248
9249   ld_shlibs=yes
9250
9251   # On some targets, GNU ld is compatible enough with the native linker
9252   # that we're better off using the native interface for both.
9253   lt_use_gnu_ld_interface=no
9254   if test "$with_gnu_ld" = yes; then
9255     case $host_os in
9256       aix*)
9257         # The AIX port of GNU ld has always aspired to compatibility
9258         # with the native linker.  However, as the warning in the GNU ld
9259         # block says, versions before 2.19.5* couldn't really create working
9260         # shared libraries, regardless of the interface used.
9261         case `$LD -v 2>&1` in
9262           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9263           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9264           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9265           *)
9266             lt_use_gnu_ld_interface=yes
9267             ;;
9268         esac
9269         ;;
9270       *)
9271         lt_use_gnu_ld_interface=yes
9272         ;;
9273     esac
9274   fi
9275
9276   if test "$lt_use_gnu_ld_interface" = yes; then
9277     # If archive_cmds runs LD, not CC, wlarc should be empty
9278     wlarc='${wl}'
9279
9280     # Set some defaults for GNU ld with shared library support. These
9281     # are reset later if shared libraries are not supported. Putting them
9282     # here allows them to be overridden if necessary.
9283     runpath_var=LD_RUN_PATH
9284     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9285     export_dynamic_flag_spec='${wl}--export-dynamic'
9286     # ancient GNU ld didn't support --whole-archive et. al.
9287     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9288       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9289     else
9290       whole_archive_flag_spec=
9291     fi
9292     supports_anon_versioning=no
9293     case `$LD -v 2>&1` in
9294       *GNU\ gold*) supports_anon_versioning=yes ;;
9295       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9296       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9297       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9298       *\ 2.11.*) ;; # other 2.11 versions
9299       *) supports_anon_versioning=yes ;;
9300     esac
9301
9302     # See if GNU ld supports shared libraries.
9303     case $host_os in
9304     aix[3-9]*)
9305       # On AIX/PPC, the GNU linker is very broken
9306       if test "$host_cpu" != ia64; then
9307         ld_shlibs=no
9308         cat <<_LT_EOF 1>&2
9309
9310 *** Warning: the GNU linker, at least up to release 2.19, is reported
9311 *** to be unable to reliably create shared libraries on AIX.
9312 *** Therefore, libtool is disabling shared libraries support.  If you
9313 *** really care for shared libraries, you may want to install binutils
9314 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9315 *** You will then need to restart the configuration process.
9316
9317 _LT_EOF
9318       fi
9319       ;;
9320
9321     amigaos*)
9322       case $host_cpu in
9323       powerpc)
9324             # see comment about AmigaOS4 .so support
9325             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9326             archive_expsym_cmds=''
9327         ;;
9328       m68k)
9329             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)'
9330             hardcode_libdir_flag_spec='-L$libdir'
9331             hardcode_minus_L=yes
9332         ;;
9333       esac
9334       ;;
9335
9336     beos*)
9337       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9338         allow_undefined_flag=unsupported
9339         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9340         # support --undefined.  This deserves some investigation.  FIXME
9341         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9342       else
9343         ld_shlibs=no
9344       fi
9345       ;;
9346
9347     cygwin* | mingw* | pw32* | cegcc*)
9348       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9349       # as there is no search path for DLLs.
9350       hardcode_libdir_flag_spec='-L$libdir'
9351       export_dynamic_flag_spec='${wl}--export-all-symbols'
9352       allow_undefined_flag=unsupported
9353       always_export_symbols=no
9354       enable_shared_with_static_runtimes=yes
9355       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'
9356       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9357
9358       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9359         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9360         # If the export-symbols file already is a .def file (1st line
9361         # is EXPORTS), use it as is; otherwise, prepend...
9362         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9363           cp $export_symbols $output_objdir/$soname.def;
9364         else
9365           echo EXPORTS > $output_objdir/$soname.def;
9366           cat $export_symbols >> $output_objdir/$soname.def;
9367         fi~
9368         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9369       else
9370         ld_shlibs=no
9371       fi
9372       ;;
9373
9374     haiku*)
9375       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9376       link_all_deplibs=yes
9377       ;;
9378
9379     interix[3-9]*)
9380       hardcode_direct=no
9381       hardcode_shlibpath_var=no
9382       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9383       export_dynamic_flag_spec='${wl}-E'
9384       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9385       # Instead, shared libraries are loaded at an image base (0x10000000 by
9386       # default) and relocated if they conflict, which is a slow very memory
9387       # consuming and fragmenting process.  To avoid this, we pick a random,
9388       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9389       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9390       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9391       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'
9392       ;;
9393
9394     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9395       tmp_diet=no
9396       if test "$host_os" = linux-dietlibc; then
9397         case $cc_basename in
9398           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9399         esac
9400       fi
9401       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9402          && test "$tmp_diet" = no
9403       then
9404         tmp_addflag=' $pic_flag'
9405         tmp_sharedflag='-shared'
9406         case $cc_basename,$host_cpu in
9407         pgcc*)                          # Portland Group C compiler
9408           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'
9409           tmp_addflag=' $pic_flag'
9410           ;;
9411         pgf77* | pgf90* | pgf95* | pgfortran*)
9412                                         # Portland Group f77 and f90 compilers
9413           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'
9414           tmp_addflag=' $pic_flag -Mnomain' ;;
9415         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9416           tmp_addflag=' -i_dynamic' ;;
9417         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9418           tmp_addflag=' -i_dynamic -nofor_main' ;;
9419         ifc* | ifort*)                  # Intel Fortran compiler
9420           tmp_addflag=' -nofor_main' ;;
9421         lf95*)                          # Lahey Fortran 8.1
9422           whole_archive_flag_spec=
9423           tmp_sharedflag='--shared' ;;
9424         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9425           tmp_sharedflag='-qmkshrobj'
9426           tmp_addflag= ;;
9427         nvcc*)  # Cuda Compiler Driver 2.2
9428           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'
9429           compiler_needs_object=yes
9430           ;;
9431         esac
9432         case `$CC -V 2>&1 | sed 5q` in
9433         *Sun\ C*)                       # Sun C 5.9
9434           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'
9435           compiler_needs_object=yes
9436           tmp_sharedflag='-G' ;;
9437         *Sun\ F*)                       # Sun Fortran 8.3
9438           tmp_sharedflag='-G' ;;
9439         esac
9440         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9441
9442         if test "x$supports_anon_versioning" = xyes; then
9443           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9444             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9445             echo "local: *; };" >> $output_objdir/$libname.ver~
9446             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9447         fi
9448
9449         case $cc_basename in
9450         xlf* | bgf* | bgxlf* | mpixlf*)
9451           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9452           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9453           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9454           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9455           if test "x$supports_anon_versioning" = xyes; then
9456             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9457               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9458               echo "local: *; };" >> $output_objdir/$libname.ver~
9459               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9460           fi
9461           ;;
9462         esac
9463       else
9464         ld_shlibs=no
9465       fi
9466       ;;
9467
9468     netbsd*)
9469       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9470         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9471         wlarc=
9472       else
9473         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9474         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9475       fi
9476       ;;
9477
9478     solaris*)
9479       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9480         ld_shlibs=no
9481         cat <<_LT_EOF 1>&2
9482
9483 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9484 *** create shared libraries on Solaris systems.  Therefore, libtool
9485 *** is disabling shared libraries support.  We urge you to upgrade GNU
9486 *** binutils to release 2.9.1 or newer.  Another option is to modify
9487 *** your PATH or compiler configuration so that the native linker is
9488 *** used, and then restart.
9489
9490 _LT_EOF
9491       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9492         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9493         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9494       else
9495         ld_shlibs=no
9496       fi
9497       ;;
9498
9499     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9500       case `$LD -v 2>&1` in
9501         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9502         ld_shlibs=no
9503         cat <<_LT_EOF 1>&2
9504
9505 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9506 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9507 *** is disabling shared libraries support.  We urge you to upgrade GNU
9508 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9509 *** your PATH or compiler configuration so that the native linker is
9510 *** used, and then restart.
9511
9512 _LT_EOF
9513         ;;
9514         *)
9515           # For security reasons, it is highly recommended that you always
9516           # use absolute paths for naming shared libraries, and exclude the
9517           # DT_RUNPATH tag from executables and libraries.  But doing so
9518           # requires that you compile everything twice, which is a pain.
9519           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9520             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9521             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9522             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9523           else
9524             ld_shlibs=no
9525           fi
9526         ;;
9527       esac
9528       ;;
9529
9530     sunos4*)
9531       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9532       wlarc=
9533       hardcode_direct=yes
9534       hardcode_shlibpath_var=no
9535       ;;
9536
9537     *)
9538       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9539         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9540         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9541       else
9542         ld_shlibs=no
9543       fi
9544       ;;
9545     esac
9546
9547     if test "$ld_shlibs" = no; then
9548       runpath_var=
9549       hardcode_libdir_flag_spec=
9550       export_dynamic_flag_spec=
9551       whole_archive_flag_spec=
9552     fi
9553   else
9554     # PORTME fill in a description of your system's linker (not GNU ld)
9555     case $host_os in
9556     aix3*)
9557       allow_undefined_flag=unsupported
9558       always_export_symbols=yes
9559       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'
9560       # Note: this linker hardcodes the directories in LIBPATH if there
9561       # are no directories specified by -L.
9562       hardcode_minus_L=yes
9563       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9564         # Neither direct hardcoding nor static linking is supported with a
9565         # broken collect2.
9566         hardcode_direct=unsupported
9567       fi
9568       ;;
9569
9570     aix[4-9]*)
9571       if test "$host_cpu" = ia64; then
9572         # On IA64, the linker does run time linking by default, so we don't
9573         # have to do anything special.
9574         aix_use_runtimelinking=no
9575         exp_sym_flag='-Bexport'
9576         no_entry_flag=""
9577       else
9578         # If we're using GNU nm, then we don't want the "-C" option.
9579         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9580         # Also, AIX nm treats weak defined symbols like other global
9581         # defined symbols, whereas GNU nm marks them as "W".
9582         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9583           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'
9584         else
9585           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'
9586         fi
9587         aix_use_runtimelinking=no
9588
9589         # Test if we are trying to use run time linking or normal
9590         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9591         # need to do runtime linking.
9592         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9593           for ld_flag in $LDFLAGS; do
9594           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9595             aix_use_runtimelinking=yes
9596             break
9597           fi
9598           done
9599           ;;
9600         esac
9601
9602         exp_sym_flag='-bexport'
9603         no_entry_flag='-bnoentry'
9604       fi
9605
9606       # When large executables or shared objects are built, AIX ld can
9607       # have problems creating the table of contents.  If linking a library
9608       # or program results in "error TOC overflow" add -mminimal-toc to
9609       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9610       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9611
9612       archive_cmds=''
9613       hardcode_direct=yes
9614       hardcode_direct_absolute=yes
9615       hardcode_libdir_separator=':'
9616       link_all_deplibs=yes
9617       file_list_spec='${wl}-f,'
9618
9619       if test "$GCC" = yes; then
9620         case $host_os in aix4.[012]|aix4.[012].*)
9621         # We only want to do this on AIX 4.2 and lower, the check
9622         # below for broken collect2 doesn't work under 4.3+
9623           collect2name=`${CC} -print-prog-name=collect2`
9624           if test -f "$collect2name" &&
9625            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9626           then
9627           # We have reworked collect2
9628           :
9629           else
9630           # We have old collect2
9631           hardcode_direct=unsupported
9632           # It fails to find uninstalled libraries when the uninstalled
9633           # path is not listed in the libpath.  Setting hardcode_minus_L
9634           # to unsupported forces relinking
9635           hardcode_minus_L=yes
9636           hardcode_libdir_flag_spec='-L$libdir'
9637           hardcode_libdir_separator=
9638           fi
9639           ;;
9640         esac
9641         shared_flag='-shared'
9642         if test "$aix_use_runtimelinking" = yes; then
9643           shared_flag="$shared_flag "'${wl}-G'
9644         fi
9645       else
9646         # not using gcc
9647         if test "$host_cpu" = ia64; then
9648         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9649         # chokes on -Wl,-G. The following line is correct:
9650           shared_flag='-G'
9651         else
9652           if test "$aix_use_runtimelinking" = yes; then
9653             shared_flag='${wl}-G'
9654           else
9655             shared_flag='${wl}-bM:SRE'
9656           fi
9657         fi
9658       fi
9659
9660       export_dynamic_flag_spec='${wl}-bexpall'
9661       # It seems that -bexpall does not export symbols beginning with
9662       # underscore (_), so it is better to generate a list of symbols to export.
9663       always_export_symbols=yes
9664       if test "$aix_use_runtimelinking" = yes; then
9665         # Warning - without using the other runtime loading flags (-brtl),
9666         # -berok will link without error, but may produce a broken library.
9667         allow_undefined_flag='-berok'
9668         # Determine the default libpath from the value encoded in an
9669         # empty executable.
9670         if test "${lt_cv_aix_libpath+set}" = set; then
9671   aix_libpath=$lt_cv_aix_libpath
9672 else
9673   if ${lt_cv_aix_libpath_+:} false; then :
9674   $as_echo_n "(cached) " >&6
9675 else
9676   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9677 /* end confdefs.h.  */
9678
9679 int
9680 main ()
9681 {
9682
9683   ;
9684   return 0;
9685 }
9686 _ACEOF
9687 if ac_fn_c_try_link "$LINENO"; then :
9688
9689   lt_aix_libpath_sed='
9690       /Import File Strings/,/^$/ {
9691           /^0/ {
9692               s/^0  *\([^ ]*\) *$/\1/
9693               p
9694           }
9695       }'
9696   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9697   # Check for a 64-bit object if we didn't find anything.
9698   if test -z "$lt_cv_aix_libpath_"; then
9699     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9700   fi
9701 fi
9702 rm -f core conftest.err conftest.$ac_objext \
9703     conftest$ac_exeext conftest.$ac_ext
9704   if test -z "$lt_cv_aix_libpath_"; then
9705     lt_cv_aix_libpath_="/usr/lib:/lib"
9706   fi
9707
9708 fi
9709
9710   aix_libpath=$lt_cv_aix_libpath_
9711 fi
9712
9713         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9714         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"
9715       else
9716         if test "$host_cpu" = ia64; then
9717           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9718           allow_undefined_flag="-z nodefs"
9719           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"
9720         else
9721          # Determine the default libpath from the value encoded in an
9722          # empty executable.
9723          if test "${lt_cv_aix_libpath+set}" = set; then
9724   aix_libpath=$lt_cv_aix_libpath
9725 else
9726   if ${lt_cv_aix_libpath_+:} false; then :
9727   $as_echo_n "(cached) " >&6
9728 else
9729   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9730 /* end confdefs.h.  */
9731
9732 int
9733 main ()
9734 {
9735
9736   ;
9737   return 0;
9738 }
9739 _ACEOF
9740 if ac_fn_c_try_link "$LINENO"; then :
9741
9742   lt_aix_libpath_sed='
9743       /Import File Strings/,/^$/ {
9744           /^0/ {
9745               s/^0  *\([^ ]*\) *$/\1/
9746               p
9747           }
9748       }'
9749   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9750   # Check for a 64-bit object if we didn't find anything.
9751   if test -z "$lt_cv_aix_libpath_"; then
9752     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9753   fi
9754 fi
9755 rm -f core conftest.err conftest.$ac_objext \
9756     conftest$ac_exeext conftest.$ac_ext
9757   if test -z "$lt_cv_aix_libpath_"; then
9758     lt_cv_aix_libpath_="/usr/lib:/lib"
9759   fi
9760
9761 fi
9762
9763   aix_libpath=$lt_cv_aix_libpath_
9764 fi
9765
9766          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9767           # Warning - without using the other run time loading flags,
9768           # -berok will link without error, but may produce a broken library.
9769           no_undefined_flag=' ${wl}-bernotok'
9770           allow_undefined_flag=' ${wl}-berok'
9771           if test "$with_gnu_ld" = yes; then
9772             # We only use this code for GNU lds that support --whole-archive.
9773             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9774           else
9775             # Exported symbols can be pulled into shared objects from archives
9776             whole_archive_flag_spec='$convenience'
9777           fi
9778           archive_cmds_need_lc=yes
9779           # This is similar to how AIX traditionally builds its shared libraries.
9780           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'
9781         fi
9782       fi
9783       ;;
9784
9785     amigaos*)
9786       case $host_cpu in
9787       powerpc)
9788             # see comment about AmigaOS4 .so support
9789             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9790             archive_expsym_cmds=''
9791         ;;
9792       m68k)
9793             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)'
9794             hardcode_libdir_flag_spec='-L$libdir'
9795             hardcode_minus_L=yes
9796         ;;
9797       esac
9798       ;;
9799
9800     bsdi[45]*)
9801       export_dynamic_flag_spec=-rdynamic
9802       ;;
9803
9804     cygwin* | mingw* | pw32* | cegcc*)
9805       # When not using gcc, we currently assume that we are using
9806       # Microsoft Visual C++.
9807       # hardcode_libdir_flag_spec is actually meaningless, as there is
9808       # no search path for DLLs.
9809       case $cc_basename in
9810       cl*)
9811         # Native MSVC
9812         hardcode_libdir_flag_spec=' '
9813         allow_undefined_flag=unsupported
9814         always_export_symbols=yes
9815         file_list_spec='@'
9816         # Tell ltmain to make .lib files, not .a files.
9817         libext=lib
9818         # Tell ltmain to make .dll files, not .so files.
9819         shrext_cmds=".dll"
9820         # FIXME: Setting linknames here is a bad hack.
9821         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9822         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9823             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9824           else
9825             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9826           fi~
9827           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9828           linknames='
9829         # The linker will not automatically build a static lib if we build a DLL.
9830         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9831         enable_shared_with_static_runtimes=yes
9832         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9833         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9834         # Don't use ranlib
9835         old_postinstall_cmds='chmod 644 $oldlib'
9836         postlink_cmds='lt_outputfile="@OUTPUT@"~
9837           lt_tool_outputfile="@TOOL_OUTPUT@"~
9838           case $lt_outputfile in
9839             *.exe|*.EXE) ;;
9840             *)
9841               lt_outputfile="$lt_outputfile.exe"
9842               lt_tool_outputfile="$lt_tool_outputfile.exe"
9843               ;;
9844           esac~
9845           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9846             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9847             $RM "$lt_outputfile.manifest";
9848           fi'
9849         ;;
9850       *)
9851         # Assume MSVC wrapper
9852         hardcode_libdir_flag_spec=' '
9853         allow_undefined_flag=unsupported
9854         # Tell ltmain to make .lib files, not .a files.
9855         libext=lib
9856         # Tell ltmain to make .dll files, not .so files.
9857         shrext_cmds=".dll"
9858         # FIXME: Setting linknames here is a bad hack.
9859         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9860         # The linker will automatically build a .lib file if we build a DLL.
9861         old_archive_from_new_cmds='true'
9862         # FIXME: Should let the user specify the lib program.
9863         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9864         enable_shared_with_static_runtimes=yes
9865         ;;
9866       esac
9867       ;;
9868
9869     darwin* | rhapsody*)
9870
9871
9872   archive_cmds_need_lc=no
9873   hardcode_direct=no
9874   hardcode_automatic=yes
9875   hardcode_shlibpath_var=unsupported
9876   if test "$lt_cv_ld_force_load" = "yes"; then
9877     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\"`'
9878
9879   else
9880     whole_archive_flag_spec=''
9881   fi
9882   link_all_deplibs=yes
9883   allow_undefined_flag="$_lt_dar_allow_undefined"
9884   case $cc_basename in
9885      ifort*) _lt_dar_can_shared=yes ;;
9886      *) _lt_dar_can_shared=$GCC ;;
9887   esac
9888   if test "$_lt_dar_can_shared" = "yes"; then
9889     output_verbose_link_cmd=func_echo_all
9890     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9891     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9892     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}"
9893     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}"
9894
9895   else
9896   ld_shlibs=no
9897   fi
9898
9899       ;;
9900
9901     dgux*)
9902       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9903       hardcode_libdir_flag_spec='-L$libdir'
9904       hardcode_shlibpath_var=no
9905       ;;
9906
9907     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9908     # support.  Future versions do this automatically, but an explicit c++rt0.o
9909     # does not break anything, and helps significantly (at the cost of a little
9910     # extra space).
9911     freebsd2.2*)
9912       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9913       hardcode_libdir_flag_spec='-R$libdir'
9914       hardcode_direct=yes
9915       hardcode_shlibpath_var=no
9916       ;;
9917
9918     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9919     freebsd2.*)
9920       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9921       hardcode_direct=yes
9922       hardcode_minus_L=yes
9923       hardcode_shlibpath_var=no
9924       ;;
9925
9926     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9927     freebsd* | dragonfly*)
9928       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9929       hardcode_libdir_flag_spec='-R$libdir'
9930       hardcode_direct=yes
9931       hardcode_shlibpath_var=no
9932       ;;
9933
9934     hpux9*)
9935       if test "$GCC" = yes; then
9936         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'
9937       else
9938         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'
9939       fi
9940       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9941       hardcode_libdir_separator=:
9942       hardcode_direct=yes
9943
9944       # hardcode_minus_L: Not really in the search PATH,
9945       # but as the default location of the library.
9946       hardcode_minus_L=yes
9947       export_dynamic_flag_spec='${wl}-E'
9948       ;;
9949
9950     hpux10*)
9951       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9952         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9953       else
9954         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9955       fi
9956       if test "$with_gnu_ld" = no; then
9957         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9958         hardcode_libdir_separator=:
9959         hardcode_direct=yes
9960         hardcode_direct_absolute=yes
9961         export_dynamic_flag_spec='${wl}-E'
9962         # hardcode_minus_L: Not really in the search PATH,
9963         # but as the default location of the library.
9964         hardcode_minus_L=yes
9965       fi
9966       ;;
9967
9968     hpux11*)
9969       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9970         case $host_cpu in
9971         hppa*64*)
9972           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9973           ;;
9974         ia64*)
9975           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9976           ;;
9977         *)
9978           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9979           ;;
9980         esac
9981       else
9982         case $host_cpu in
9983         hppa*64*)
9984           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9985           ;;
9986         ia64*)
9987           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9988           ;;
9989         *)
9990
9991           # Older versions of the 11.00 compiler do not understand -b yet
9992           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9993           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9994 $as_echo_n "checking if $CC understands -b... " >&6; }
9995 if ${lt_cv_prog_compiler__b+:} false; then :
9996   $as_echo_n "(cached) " >&6
9997 else
9998   lt_cv_prog_compiler__b=no
9999    save_LDFLAGS="$LDFLAGS"
10000    LDFLAGS="$LDFLAGS -b"
10001    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10002    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10003      # The linker can only warn and ignore the option if not recognized
10004      # So say no if there are warnings
10005      if test -s conftest.err; then
10006        # Append any errors to the config.log.
10007        cat conftest.err 1>&5
10008        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10009        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10010        if diff conftest.exp conftest.er2 >/dev/null; then
10011          lt_cv_prog_compiler__b=yes
10012        fi
10013      else
10014        lt_cv_prog_compiler__b=yes
10015      fi
10016    fi
10017    $RM -r conftest*
10018    LDFLAGS="$save_LDFLAGS"
10019
10020 fi
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10022 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10023
10024 if test x"$lt_cv_prog_compiler__b" = xyes; then
10025     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10026 else
10027     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10028 fi
10029
10030           ;;
10031         esac
10032       fi
10033       if test "$with_gnu_ld" = no; then
10034         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10035         hardcode_libdir_separator=:
10036
10037         case $host_cpu in
10038         hppa*64*|ia64*)
10039           hardcode_direct=no
10040           hardcode_shlibpath_var=no
10041           ;;
10042         *)
10043           hardcode_direct=yes
10044           hardcode_direct_absolute=yes
10045           export_dynamic_flag_spec='${wl}-E'
10046
10047           # hardcode_minus_L: Not really in the search PATH,
10048           # but as the default location of the library.
10049           hardcode_minus_L=yes
10050           ;;
10051         esac
10052       fi
10053       ;;
10054
10055     irix5* | irix6* | nonstopux*)
10056       if test "$GCC" = yes; then
10057         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'
10058         # Try to use the -exported_symbol ld option, if it does not
10059         # work, assume that -exports_file does not work either and
10060         # implicitly export all symbols.
10061         # This should be the same for all languages, so no per-tag cache variable.
10062         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10063 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10064 if ${lt_cv_irix_exported_symbol+:} false; then :
10065   $as_echo_n "(cached) " >&6
10066 else
10067   save_LDFLAGS="$LDFLAGS"
10068            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10069            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10070 /* end confdefs.h.  */
10071 int foo (void) { return 0; }
10072 _ACEOF
10073 if ac_fn_c_try_link "$LINENO"; then :
10074   lt_cv_irix_exported_symbol=yes
10075 else
10076   lt_cv_irix_exported_symbol=no
10077 fi
10078 rm -f core conftest.err conftest.$ac_objext \
10079     conftest$ac_exeext conftest.$ac_ext
10080            LDFLAGS="$save_LDFLAGS"
10081 fi
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10083 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10084         if test "$lt_cv_irix_exported_symbol" = yes; then
10085           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'
10086         fi
10087       else
10088         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'
10089         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'
10090       fi
10091       archive_cmds_need_lc='no'
10092       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10093       hardcode_libdir_separator=:
10094       inherit_rpath=yes
10095       link_all_deplibs=yes
10096       ;;
10097
10098     netbsd*)
10099       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10100         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10101       else
10102         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10103       fi
10104       hardcode_libdir_flag_spec='-R$libdir'
10105       hardcode_direct=yes
10106       hardcode_shlibpath_var=no
10107       ;;
10108
10109     newsos6)
10110       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10111       hardcode_direct=yes
10112       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10113       hardcode_libdir_separator=:
10114       hardcode_shlibpath_var=no
10115       ;;
10116
10117     *nto* | *qnx*)
10118       ;;
10119
10120     openbsd*)
10121       if test -f /usr/libexec/ld.so; then
10122         hardcode_direct=yes
10123         hardcode_shlibpath_var=no
10124         hardcode_direct_absolute=yes
10125         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10126           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10127           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10128           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10129           export_dynamic_flag_spec='${wl}-E'
10130         else
10131           case $host_os in
10132            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10133              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10134              hardcode_libdir_flag_spec='-R$libdir'
10135              ;;
10136            *)
10137              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10138              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10139              ;;
10140           esac
10141         fi
10142       else
10143         ld_shlibs=no
10144       fi
10145       ;;
10146
10147     os2*)
10148       hardcode_libdir_flag_spec='-L$libdir'
10149       hardcode_minus_L=yes
10150       allow_undefined_flag=unsupported
10151       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'
10152       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10153       ;;
10154
10155     osf3*)
10156       if test "$GCC" = yes; then
10157         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10158         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'
10159       else
10160         allow_undefined_flag=' -expect_unresolved \*'
10161         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'
10162       fi
10163       archive_cmds_need_lc='no'
10164       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10165       hardcode_libdir_separator=:
10166       ;;
10167
10168     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10169       if test "$GCC" = yes; then
10170         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10171         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'
10172         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10173       else
10174         allow_undefined_flag=' -expect_unresolved \*'
10175         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'
10176         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~
10177         $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'
10178
10179         # Both c and cxx compiler support -rpath directly
10180         hardcode_libdir_flag_spec='-rpath $libdir'
10181       fi
10182       archive_cmds_need_lc='no'
10183       hardcode_libdir_separator=:
10184       ;;
10185
10186     solaris*)
10187       no_undefined_flag=' -z defs'
10188       if test "$GCC" = yes; then
10189         wlarc='${wl}'
10190         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10191         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10192           $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'
10193       else
10194         case `$CC -V 2>&1` in
10195         *"Compilers 5.0"*)
10196           wlarc=''
10197           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10198           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10199           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10200           ;;
10201         *)
10202           wlarc='${wl}'
10203           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10204           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10205           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10206           ;;
10207         esac
10208       fi
10209       hardcode_libdir_flag_spec='-R$libdir'
10210       hardcode_shlibpath_var=no
10211       case $host_os in
10212       solaris2.[0-5] | solaris2.[0-5].*) ;;
10213       *)
10214         # The compiler driver will combine and reorder linker options,
10215         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10216         # but is careful enough not to reorder.
10217         # Supported since Solaris 2.6 (maybe 2.5.1?)
10218         if test "$GCC" = yes; then
10219           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10220         else
10221           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10222         fi
10223         ;;
10224       esac
10225       link_all_deplibs=yes
10226       ;;
10227
10228     sunos4*)
10229       if test "x$host_vendor" = xsequent; then
10230         # Use $CC to link under sequent, because it throws in some extra .o
10231         # files that make .init and .fini sections work.
10232         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10233       else
10234         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10235       fi
10236       hardcode_libdir_flag_spec='-L$libdir'
10237       hardcode_direct=yes
10238       hardcode_minus_L=yes
10239       hardcode_shlibpath_var=no
10240       ;;
10241
10242     sysv4)
10243       case $host_vendor in
10244         sni)
10245           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10246           hardcode_direct=yes # is this really true???
10247         ;;
10248         siemens)
10249           ## LD is ld it makes a PLAMLIB
10250           ## CC just makes a GrossModule.
10251           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10252           reload_cmds='$CC -r -o $output$reload_objs'
10253           hardcode_direct=no
10254         ;;
10255         motorola)
10256           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10257           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10258         ;;
10259       esac
10260       runpath_var='LD_RUN_PATH'
10261       hardcode_shlibpath_var=no
10262       ;;
10263
10264     sysv4.3*)
10265       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10266       hardcode_shlibpath_var=no
10267       export_dynamic_flag_spec='-Bexport'
10268       ;;
10269
10270     sysv4*MP*)
10271       if test -d /usr/nec; then
10272         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10273         hardcode_shlibpath_var=no
10274         runpath_var=LD_RUN_PATH
10275         hardcode_runpath_var=yes
10276         ld_shlibs=yes
10277       fi
10278       ;;
10279
10280     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10281       no_undefined_flag='${wl}-z,text'
10282       archive_cmds_need_lc=no
10283       hardcode_shlibpath_var=no
10284       runpath_var='LD_RUN_PATH'
10285
10286       if test "$GCC" = yes; then
10287         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10288         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10289       else
10290         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10291         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10292       fi
10293       ;;
10294
10295     sysv5* | sco3.2v5* | sco5v6*)
10296       # Note: We can NOT use -z defs as we might desire, because we do not
10297       # link with -lc, and that would cause any symbols used from libc to
10298       # always be unresolved, which means just about no library would
10299       # ever link correctly.  If we're not using GNU ld we use -z text
10300       # though, which does catch some bad symbols but isn't as heavy-handed
10301       # as -z defs.
10302       no_undefined_flag='${wl}-z,text'
10303       allow_undefined_flag='${wl}-z,nodefs'
10304       archive_cmds_need_lc=no
10305       hardcode_shlibpath_var=no
10306       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10307       hardcode_libdir_separator=':'
10308       link_all_deplibs=yes
10309       export_dynamic_flag_spec='${wl}-Bexport'
10310       runpath_var='LD_RUN_PATH'
10311
10312       if test "$GCC" = yes; then
10313         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10314         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10315       else
10316         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10317         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10318       fi
10319       ;;
10320
10321     uts4*)
10322       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10323       hardcode_libdir_flag_spec='-L$libdir'
10324       hardcode_shlibpath_var=no
10325       ;;
10326
10327     *)
10328       ld_shlibs=no
10329       ;;
10330     esac
10331
10332     if test x$host_vendor = xsni; then
10333       case $host in
10334       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10335         export_dynamic_flag_spec='${wl}-Blargedynsym'
10336         ;;
10337       esac
10338     fi
10339   fi
10340
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10342 $as_echo "$ld_shlibs" >&6; }
10343 test "$ld_shlibs" = no && can_build_shared=no
10344
10345 with_gnu_ld=$with_gnu_ld
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361 #
10362 # Do we need to explicitly link libc?
10363 #
10364 case "x$archive_cmds_need_lc" in
10365 x|xyes)
10366   # Assume -lc should be added
10367   archive_cmds_need_lc=yes
10368
10369   if test "$enable_shared" = yes && test "$GCC" = yes; then
10370     case $archive_cmds in
10371     *'~'*)
10372       # FIXME: we may have to deal with multi-command sequences.
10373       ;;
10374     '$CC '*)
10375       # Test whether the compiler implicitly links with -lc since on some
10376       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10377       # to ld, don't add -lc before -lgcc.
10378       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10379 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10380 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10381   $as_echo_n "(cached) " >&6
10382 else
10383   $RM conftest*
10384         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10385
10386         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10387   (eval $ac_compile) 2>&5
10388   ac_status=$?
10389   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10390   test $ac_status = 0; } 2>conftest.err; then
10391           soname=conftest
10392           lib=conftest
10393           libobjs=conftest.$ac_objext
10394           deplibs=
10395           wl=$lt_prog_compiler_wl
10396           pic_flag=$lt_prog_compiler_pic
10397           compiler_flags=-v
10398           linker_flags=-v
10399           verstring=
10400           output_objdir=.
10401           libname=conftest
10402           lt_save_allow_undefined_flag=$allow_undefined_flag
10403           allow_undefined_flag=
10404           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10405   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10406   ac_status=$?
10407   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10408   test $ac_status = 0; }
10409           then
10410             lt_cv_archive_cmds_need_lc=no
10411           else
10412             lt_cv_archive_cmds_need_lc=yes
10413           fi
10414           allow_undefined_flag=$lt_save_allow_undefined_flag
10415         else
10416           cat conftest.err 1>&5
10417         fi
10418         $RM conftest*
10419
10420 fi
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10422 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10423       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10424       ;;
10425     esac
10426   fi
10427   ;;
10428 esac
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10582 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10583
10584 if test "$GCC" = yes; then
10585   case $host_os in
10586     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10587     *) lt_awk_arg="/^libraries:/" ;;
10588   esac
10589   case $host_os in
10590     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10591     *) lt_sed_strip_eq="s,=/,/,g" ;;
10592   esac
10593   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10594   case $lt_search_path_spec in
10595   *\;*)
10596     # if the path contains ";" then we assume it to be the separator
10597     # otherwise default to the standard path separator (i.e. ":") - it is
10598     # assumed that no part of a normal pathname contains ";" but that should
10599     # okay in the real world where ";" in dirpaths is itself problematic.
10600     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10601     ;;
10602   *)
10603     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10604     ;;
10605   esac
10606   # Ok, now we have the path, separated by spaces, we can step through it
10607   # and add multilib dir if necessary.
10608   lt_tmp_lt_search_path_spec=
10609   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10610   for lt_sys_path in $lt_search_path_spec; do
10611     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10612       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10613     else
10614       test -d "$lt_sys_path" && \
10615         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10616     fi
10617   done
10618   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10619 BEGIN {RS=" "; FS="/|\n";} {
10620   lt_foo="";
10621   lt_count=0;
10622   for (lt_i = NF; lt_i > 0; lt_i--) {
10623     if ($lt_i != "" && $lt_i != ".") {
10624       if ($lt_i == "..") {
10625         lt_count++;
10626       } else {
10627         if (lt_count == 0) {
10628           lt_foo="/" $lt_i lt_foo;
10629         } else {
10630           lt_count--;
10631         }
10632       }
10633     }
10634   }
10635   if (lt_foo != "") { lt_freq[lt_foo]++; }
10636   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10637 }'`
10638   # AWK program above erroneously prepends '/' to C:/dos/paths
10639   # for these hosts.
10640   case $host_os in
10641     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10642       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10643   esac
10644   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10645 else
10646   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10647 fi
10648 library_names_spec=
10649 libname_spec='lib$name'
10650 soname_spec=
10651 shrext_cmds=".so"
10652 postinstall_cmds=
10653 postuninstall_cmds=
10654 finish_cmds=
10655 finish_eval=
10656 shlibpath_var=
10657 shlibpath_overrides_runpath=unknown
10658 version_type=none
10659 dynamic_linker="$host_os ld.so"
10660 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10661 need_lib_prefix=unknown
10662 hardcode_into_libs=no
10663
10664 # when you set need_version to no, make sure it does not cause -set_version
10665 # flags to be left without arguments
10666 need_version=unknown
10667
10668 case $host_os in
10669 aix3*)
10670   version_type=linux # correct to gnu/linux during the next big refactor
10671   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10672   shlibpath_var=LIBPATH
10673
10674   # AIX 3 has no versioning support, so we append a major version to the name.
10675   soname_spec='${libname}${release}${shared_ext}$major'
10676   ;;
10677
10678 aix[4-9]*)
10679   version_type=linux # correct to gnu/linux during the next big refactor
10680   need_lib_prefix=no
10681   need_version=no
10682   hardcode_into_libs=yes
10683   if test "$host_cpu" = ia64; then
10684     # AIX 5 supports IA64
10685     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10686     shlibpath_var=LD_LIBRARY_PATH
10687   else
10688     # With GCC up to 2.95.x, collect2 would create an import file
10689     # for dependence libraries.  The import file would start with
10690     # the line `#! .'.  This would cause the generated library to
10691     # depend on `.', always an invalid library.  This was fixed in
10692     # development snapshots of GCC prior to 3.0.
10693     case $host_os in
10694       aix4 | aix4.[01] | aix4.[01].*)
10695       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10696            echo ' yes '
10697            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10698         :
10699       else
10700         can_build_shared=no
10701       fi
10702       ;;
10703     esac
10704     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10705     # soname into executable. Probably we can add versioning support to
10706     # collect2, so additional links can be useful in future.
10707     if test "$aix_use_runtimelinking" = yes; then
10708       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10709       # instead of lib<name>.a to let people know that these are not
10710       # typical AIX shared libraries.
10711       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10712     else
10713       # We preserve .a as extension for shared libraries through AIX4.2
10714       # and later when we are not doing run time linking.
10715       library_names_spec='${libname}${release}.a $libname.a'
10716       soname_spec='${libname}${release}${shared_ext}$major'
10717     fi
10718     shlibpath_var=LIBPATH
10719   fi
10720   ;;
10721
10722 amigaos*)
10723   case $host_cpu in
10724   powerpc)
10725     # Since July 2007 AmigaOS4 officially supports .so libraries.
10726     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10727     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10728     ;;
10729   m68k)
10730     library_names_spec='$libname.ixlibrary $libname.a'
10731     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10732     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'
10733     ;;
10734   esac
10735   ;;
10736
10737 beos*)
10738   library_names_spec='${libname}${shared_ext}'
10739   dynamic_linker="$host_os ld.so"
10740   shlibpath_var=LIBRARY_PATH
10741   ;;
10742
10743 bsdi[45]*)
10744   version_type=linux # correct to gnu/linux during the next big refactor
10745   need_version=no
10746   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10747   soname_spec='${libname}${release}${shared_ext}$major'
10748   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10749   shlibpath_var=LD_LIBRARY_PATH
10750   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10751   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10752   # the default ld.so.conf also contains /usr/contrib/lib and
10753   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10754   # libtool to hard-code these into programs
10755   ;;
10756
10757 cygwin* | mingw* | pw32* | cegcc*)
10758   version_type=windows
10759   shrext_cmds=".dll"
10760   need_version=no
10761   need_lib_prefix=no
10762
10763   case $GCC,$cc_basename in
10764   yes,*)
10765     # gcc
10766     library_names_spec='$libname.dll.a'
10767     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10768     postinstall_cmds='base_file=`basename \${file}`~
10769       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10770       dldir=$destdir/`dirname \$dlpath`~
10771       test -d \$dldir || mkdir -p \$dldir~
10772       $install_prog $dir/$dlname \$dldir/$dlname~
10773       chmod a+x \$dldir/$dlname~
10774       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10775         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10776       fi'
10777     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10778       dlpath=$dir/\$dldll~
10779        $RM \$dlpath'
10780     shlibpath_overrides_runpath=yes
10781
10782     case $host_os in
10783     cygwin*)
10784       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10785       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10786
10787       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10788       ;;
10789     mingw* | cegcc*)
10790       # MinGW DLLs use traditional 'lib' prefix
10791       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10792       ;;
10793     pw32*)
10794       # pw32 DLLs use 'pw' prefix rather than 'lib'
10795       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10796       ;;
10797     esac
10798     dynamic_linker='Win32 ld.exe'
10799     ;;
10800
10801   *,cl*)
10802     # Native MSVC
10803     libname_spec='$name'
10804     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10805     library_names_spec='${libname}.dll.lib'
10806
10807     case $build_os in
10808     mingw*)
10809       sys_lib_search_path_spec=
10810       lt_save_ifs=$IFS
10811       IFS=';'
10812       for lt_path in $LIB
10813       do
10814         IFS=$lt_save_ifs
10815         # Let DOS variable expansion print the short 8.3 style file name.
10816         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10817         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10818       done
10819       IFS=$lt_save_ifs
10820       # Convert to MSYS style.
10821       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10822       ;;
10823     cygwin*)
10824       # Convert to unix form, then to dos form, then back to unix form
10825       # but this time dos style (no spaces!) so that the unix form looks
10826       # like /cygdrive/c/PROGRA~1:/cygdr...
10827       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10828       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10829       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10830       ;;
10831     *)
10832       sys_lib_search_path_spec="$LIB"
10833       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10834         # It is most probably a Windows format PATH.
10835         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10836       else
10837         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10838       fi
10839       # FIXME: find the short name or the path components, as spaces are
10840       # common. (e.g. "Program Files" -> "PROGRA~1")
10841       ;;
10842     esac
10843
10844     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10845     postinstall_cmds='base_file=`basename \${file}`~
10846       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10847       dldir=$destdir/`dirname \$dlpath`~
10848       test -d \$dldir || mkdir -p \$dldir~
10849       $install_prog $dir/$dlname \$dldir/$dlname'
10850     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10851       dlpath=$dir/\$dldll~
10852        $RM \$dlpath'
10853     shlibpath_overrides_runpath=yes
10854     dynamic_linker='Win32 link.exe'
10855     ;;
10856
10857   *)
10858     # Assume MSVC wrapper
10859     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10860     dynamic_linker='Win32 ld.exe'
10861     ;;
10862   esac
10863   # FIXME: first we should search . and the directory the executable is in
10864   shlibpath_var=PATH
10865   ;;
10866
10867 darwin* | rhapsody*)
10868   dynamic_linker="$host_os dyld"
10869   version_type=darwin
10870   need_lib_prefix=no
10871   need_version=no
10872   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10873   soname_spec='${libname}${release}${major}$shared_ext'
10874   shlibpath_overrides_runpath=yes
10875   shlibpath_var=DYLD_LIBRARY_PATH
10876   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10877
10878   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10879   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10880   ;;
10881
10882 dgux*)
10883   version_type=linux # correct to gnu/linux during the next big refactor
10884   need_lib_prefix=no
10885   need_version=no
10886   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10887   soname_spec='${libname}${release}${shared_ext}$major'
10888   shlibpath_var=LD_LIBRARY_PATH
10889   ;;
10890
10891 freebsd* | dragonfly*)
10892   # DragonFly does not have aout.  When/if they implement a new
10893   # versioning mechanism, adjust this.
10894   if test -x /usr/bin/objformat; then
10895     objformat=`/usr/bin/objformat`
10896   else
10897     case $host_os in
10898     freebsd[23].*) objformat=aout ;;
10899     *) objformat=elf ;;
10900     esac
10901   fi
10902   version_type=freebsd-$objformat
10903   case $version_type in
10904     freebsd-elf*)
10905       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10906       need_version=no
10907       need_lib_prefix=no
10908       ;;
10909     freebsd-*)
10910       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10911       need_version=yes
10912       ;;
10913   esac
10914   shlibpath_var=LD_LIBRARY_PATH
10915   case $host_os in
10916   freebsd2.*)
10917     shlibpath_overrides_runpath=yes
10918     ;;
10919   freebsd3.[01]* | freebsdelf3.[01]*)
10920     shlibpath_overrides_runpath=yes
10921     hardcode_into_libs=yes
10922     ;;
10923   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10924   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10925     shlibpath_overrides_runpath=no
10926     hardcode_into_libs=yes
10927     ;;
10928   *) # from 4.6 on, and DragonFly
10929     shlibpath_overrides_runpath=yes
10930     hardcode_into_libs=yes
10931     ;;
10932   esac
10933   ;;
10934
10935 gnu*)
10936   version_type=linux # correct to gnu/linux during the next big refactor
10937   need_lib_prefix=no
10938   need_version=no
10939   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10940   soname_spec='${libname}${release}${shared_ext}$major'
10941   shlibpath_var=LD_LIBRARY_PATH
10942   shlibpath_overrides_runpath=no
10943   hardcode_into_libs=yes
10944   ;;
10945
10946 haiku*)
10947   version_type=linux # correct to gnu/linux during the next big refactor
10948   need_lib_prefix=no
10949   need_version=no
10950   dynamic_linker="$host_os runtime_loader"
10951   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10952   soname_spec='${libname}${release}${shared_ext}$major'
10953   shlibpath_var=LIBRARY_PATH
10954   shlibpath_overrides_runpath=yes
10955   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10956   hardcode_into_libs=yes
10957   ;;
10958
10959 hpux9* | hpux10* | hpux11*)
10960   # Give a soname corresponding to the major version so that dld.sl refuses to
10961   # link against other versions.
10962   version_type=sunos
10963   need_lib_prefix=no
10964   need_version=no
10965   case $host_cpu in
10966   ia64*)
10967     shrext_cmds='.so'
10968     hardcode_into_libs=yes
10969     dynamic_linker="$host_os dld.so"
10970     shlibpath_var=LD_LIBRARY_PATH
10971     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10972     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10973     soname_spec='${libname}${release}${shared_ext}$major'
10974     if test "X$HPUX_IA64_MODE" = X32; then
10975       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10976     else
10977       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10978     fi
10979     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10980     ;;
10981   hppa*64*)
10982     shrext_cmds='.sl'
10983     hardcode_into_libs=yes
10984     dynamic_linker="$host_os dld.sl"
10985     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10986     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10987     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10988     soname_spec='${libname}${release}${shared_ext}$major'
10989     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10990     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10991     ;;
10992   *)
10993     shrext_cmds='.sl'
10994     dynamic_linker="$host_os dld.sl"
10995     shlibpath_var=SHLIB_PATH
10996     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10997     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10998     soname_spec='${libname}${release}${shared_ext}$major'
10999     ;;
11000   esac
11001   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11002   postinstall_cmds='chmod 555 $lib'
11003   # or fails outright, so override atomically:
11004   install_override_mode=555
11005   ;;
11006
11007 interix[3-9]*)
11008   version_type=linux # correct to gnu/linux during the next big refactor
11009   need_lib_prefix=no
11010   need_version=no
11011   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11012   soname_spec='${libname}${release}${shared_ext}$major'
11013   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11014   shlibpath_var=LD_LIBRARY_PATH
11015   shlibpath_overrides_runpath=no
11016   hardcode_into_libs=yes
11017   ;;
11018
11019 irix5* | irix6* | nonstopux*)
11020   case $host_os in
11021     nonstopux*) version_type=nonstopux ;;
11022     *)
11023         if test "$lt_cv_prog_gnu_ld" = yes; then
11024                 version_type=linux # correct to gnu/linux during the next big refactor
11025         else
11026                 version_type=irix
11027         fi ;;
11028   esac
11029   need_lib_prefix=no
11030   need_version=no
11031   soname_spec='${libname}${release}${shared_ext}$major'
11032   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11033   case $host_os in
11034   irix5* | nonstopux*)
11035     libsuff= shlibsuff=
11036     ;;
11037   *)
11038     case $LD in # libtool.m4 will add one of these switches to LD
11039     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11040       libsuff= shlibsuff= libmagic=32-bit;;
11041     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11042       libsuff=32 shlibsuff=N32 libmagic=N32;;
11043     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11044       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11045     *) libsuff= shlibsuff= libmagic=never-match;;
11046     esac
11047     ;;
11048   esac
11049   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11050   shlibpath_overrides_runpath=no
11051   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11052   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11053   hardcode_into_libs=yes
11054   ;;
11055
11056 # No shared lib support for Linux oldld, aout, or coff.
11057 linux*oldld* | linux*aout* | linux*coff*)
11058   dynamic_linker=no
11059   ;;
11060
11061 # This must be glibc/ELF.
11062 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11063   version_type=linux # correct to gnu/linux during the next big refactor
11064   need_lib_prefix=no
11065   need_version=no
11066   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11067   soname_spec='${libname}${release}${shared_ext}$major'
11068   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11069   shlibpath_var=LD_LIBRARY_PATH
11070   shlibpath_overrides_runpath=no
11071
11072   # Some binutils ld are patched to set DT_RUNPATH
11073   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11074   $as_echo_n "(cached) " >&6
11075 else
11076   lt_cv_shlibpath_overrides_runpath=no
11077     save_LDFLAGS=$LDFLAGS
11078     save_libdir=$libdir
11079     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11080          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11081     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11082 /* end confdefs.h.  */
11083
11084 int
11085 main ()
11086 {
11087
11088   ;
11089   return 0;
11090 }
11091 _ACEOF
11092 if ac_fn_c_try_link "$LINENO"; then :
11093   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11094   lt_cv_shlibpath_overrides_runpath=yes
11095 fi
11096 fi
11097 rm -f core conftest.err conftest.$ac_objext \
11098     conftest$ac_exeext conftest.$ac_ext
11099     LDFLAGS=$save_LDFLAGS
11100     libdir=$save_libdir
11101
11102 fi
11103
11104   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11105
11106   # This implies no fast_install, which is unacceptable.
11107   # Some rework will be needed to allow for fast_install
11108   # before this can be enabled.
11109   hardcode_into_libs=yes
11110
11111   # Add ABI-specific directories to the system library path.
11112   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11113
11114   # Append ld.so.conf contents to the search path
11115   if test -f /etc/ld.so.conf; then
11116     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' ' '`
11117     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11118
11119   fi
11120
11121   # We used to test for /lib/ld.so.1 and disable shared libraries on
11122   # powerpc, because MkLinux only supported shared libraries with the
11123   # GNU dynamic linker.  Since this was broken with cross compilers,
11124   # most powerpc-linux boxes support dynamic linking these days and
11125   # people can always --disable-shared, the test was removed, and we
11126   # assume the GNU/Linux dynamic linker is in use.
11127   dynamic_linker='GNU/Linux ld.so'
11128   ;;
11129
11130 netbsd*)
11131   version_type=sunos
11132   need_lib_prefix=no
11133   need_version=no
11134   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11135     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11136     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11137     dynamic_linker='NetBSD (a.out) ld.so'
11138   else
11139     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11140     soname_spec='${libname}${release}${shared_ext}$major'
11141     dynamic_linker='NetBSD ld.elf_so'
11142   fi
11143   shlibpath_var=LD_LIBRARY_PATH
11144   shlibpath_overrides_runpath=yes
11145   hardcode_into_libs=yes
11146   ;;
11147
11148 newsos6)
11149   version_type=linux # correct to gnu/linux during the next big refactor
11150   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11151   shlibpath_var=LD_LIBRARY_PATH
11152   shlibpath_overrides_runpath=yes
11153   ;;
11154
11155 *nto* | *qnx*)
11156   version_type=qnx
11157   need_lib_prefix=no
11158   need_version=no
11159   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11160   soname_spec='${libname}${release}${shared_ext}$major'
11161   shlibpath_var=LD_LIBRARY_PATH
11162   shlibpath_overrides_runpath=no
11163   hardcode_into_libs=yes
11164   dynamic_linker='ldqnx.so'
11165   ;;
11166
11167 openbsd*)
11168   version_type=sunos
11169   sys_lib_dlsearch_path_spec="/usr/lib"
11170   need_lib_prefix=no
11171   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11172   case $host_os in
11173     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11174     *)                          need_version=no  ;;
11175   esac
11176   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11177   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11178   shlibpath_var=LD_LIBRARY_PATH
11179   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11180     case $host_os in
11181       openbsd2.[89] | openbsd2.[89].*)
11182         shlibpath_overrides_runpath=no
11183         ;;
11184       *)
11185         shlibpath_overrides_runpath=yes
11186         ;;
11187       esac
11188   else
11189     shlibpath_overrides_runpath=yes
11190   fi
11191   ;;
11192
11193 os2*)
11194   libname_spec='$name'
11195   shrext_cmds=".dll"
11196   need_lib_prefix=no
11197   library_names_spec='$libname${shared_ext} $libname.a'
11198   dynamic_linker='OS/2 ld.exe'
11199   shlibpath_var=LIBPATH
11200   ;;
11201
11202 osf3* | osf4* | osf5*)
11203   version_type=osf
11204   need_lib_prefix=no
11205   need_version=no
11206   soname_spec='${libname}${release}${shared_ext}$major'
11207   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11208   shlibpath_var=LD_LIBRARY_PATH
11209   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11210   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11211   ;;
11212
11213 rdos*)
11214   dynamic_linker=no
11215   ;;
11216
11217 solaris*)
11218   version_type=linux # correct to gnu/linux during the next big refactor
11219   need_lib_prefix=no
11220   need_version=no
11221   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11222   soname_spec='${libname}${release}${shared_ext}$major'
11223   shlibpath_var=LD_LIBRARY_PATH
11224   shlibpath_overrides_runpath=yes
11225   hardcode_into_libs=yes
11226   # ldd complains unless libraries are executable
11227   postinstall_cmds='chmod +x $lib'
11228   ;;
11229
11230 sunos4*)
11231   version_type=sunos
11232   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11233   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11234   shlibpath_var=LD_LIBRARY_PATH
11235   shlibpath_overrides_runpath=yes
11236   if test "$with_gnu_ld" = yes; then
11237     need_lib_prefix=no
11238   fi
11239   need_version=yes
11240   ;;
11241
11242 sysv4 | sysv4.3*)
11243   version_type=linux # correct to gnu/linux during the next big refactor
11244   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11245   soname_spec='${libname}${release}${shared_ext}$major'
11246   shlibpath_var=LD_LIBRARY_PATH
11247   case $host_vendor in
11248     sni)
11249       shlibpath_overrides_runpath=no
11250       need_lib_prefix=no
11251       runpath_var=LD_RUN_PATH
11252       ;;
11253     siemens)
11254       need_lib_prefix=no
11255       ;;
11256     motorola)
11257       need_lib_prefix=no
11258       need_version=no
11259       shlibpath_overrides_runpath=no
11260       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11261       ;;
11262   esac
11263   ;;
11264
11265 sysv4*MP*)
11266   if test -d /usr/nec ;then
11267     version_type=linux # correct to gnu/linux during the next big refactor
11268     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11269     soname_spec='$libname${shared_ext}.$major'
11270     shlibpath_var=LD_LIBRARY_PATH
11271   fi
11272   ;;
11273
11274 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11275   version_type=freebsd-elf
11276   need_lib_prefix=no
11277   need_version=no
11278   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11279   soname_spec='${libname}${release}${shared_ext}$major'
11280   shlibpath_var=LD_LIBRARY_PATH
11281   shlibpath_overrides_runpath=yes
11282   hardcode_into_libs=yes
11283   if test "$with_gnu_ld" = yes; then
11284     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11285   else
11286     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11287     case $host_os in
11288       sco3.2v5*)
11289         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11290         ;;
11291     esac
11292   fi
11293   sys_lib_dlsearch_path_spec='/usr/lib'
11294   ;;
11295
11296 tpf*)
11297   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11298   version_type=linux # correct to gnu/linux during the next big refactor
11299   need_lib_prefix=no
11300   need_version=no
11301   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11302   shlibpath_var=LD_LIBRARY_PATH
11303   shlibpath_overrides_runpath=no
11304   hardcode_into_libs=yes
11305   ;;
11306
11307 uts4*)
11308   version_type=linux # correct to gnu/linux during the next big refactor
11309   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11310   soname_spec='${libname}${release}${shared_ext}$major'
11311   shlibpath_var=LD_LIBRARY_PATH
11312   ;;
11313
11314 *)
11315   dynamic_linker=no
11316   ;;
11317 esac
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11319 $as_echo "$dynamic_linker" >&6; }
11320 test "$dynamic_linker" = no && can_build_shared=no
11321
11322 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11323 if test "$GCC" = yes; then
11324   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11325 fi
11326
11327 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11328   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11329 fi
11330 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11331   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11332 fi
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11426 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11427 hardcode_action=
11428 if test -n "$hardcode_libdir_flag_spec" ||
11429    test -n "$runpath_var" ||
11430    test "X$hardcode_automatic" = "Xyes" ; then
11431
11432   # We can hardcode non-existent directories.
11433   if test "$hardcode_direct" != no &&
11434      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11435      # have to relink, otherwise we might link with an installed library
11436      # when we should be linking with a yet-to-be-installed one
11437      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11438      test "$hardcode_minus_L" != no; then
11439     # Linking always hardcodes the temporary library directory.
11440     hardcode_action=relink
11441   else
11442     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11443     hardcode_action=immediate
11444   fi
11445 else
11446   # We cannot hardcode anything, or else we can only hardcode existing
11447   # directories.
11448   hardcode_action=unsupported
11449 fi
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11451 $as_echo "$hardcode_action" >&6; }
11452
11453 if test "$hardcode_action" = relink ||
11454    test "$inherit_rpath" = yes; then
11455   # Fast installation is not supported
11456   enable_fast_install=no
11457 elif test "$shlibpath_overrides_runpath" = yes ||
11458      test "$enable_shared" = no; then
11459   # Fast installation is not necessary
11460   enable_fast_install=needless
11461 fi
11462
11463
11464
11465
11466
11467
11468   if test "x$enable_dlopen" != xyes; then
11469   enable_dlopen=unknown
11470   enable_dlopen_self=unknown
11471   enable_dlopen_self_static=unknown
11472 else
11473   lt_cv_dlopen=no
11474   lt_cv_dlopen_libs=
11475
11476   case $host_os in
11477   beos*)
11478     lt_cv_dlopen="load_add_on"
11479     lt_cv_dlopen_libs=
11480     lt_cv_dlopen_self=yes
11481     ;;
11482
11483   mingw* | pw32* | cegcc*)
11484     lt_cv_dlopen="LoadLibrary"
11485     lt_cv_dlopen_libs=
11486     ;;
11487
11488   cygwin*)
11489     lt_cv_dlopen="dlopen"
11490     lt_cv_dlopen_libs=
11491     ;;
11492
11493   darwin*)
11494   # if libdl is installed we need to link against it
11495     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11496 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11497 if ${ac_cv_lib_dl_dlopen+:} false; then :
11498   $as_echo_n "(cached) " >&6
11499 else
11500   ac_check_lib_save_LIBS=$LIBS
11501 LIBS="-ldl  $LIBS"
11502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11503 /* end confdefs.h.  */
11504
11505 /* Override any GCC internal prototype to avoid an error.
11506    Use char because int might match the return type of a GCC
11507    builtin and then its argument prototype would still apply.  */
11508 #ifdef __cplusplus
11509 extern "C"
11510 #endif
11511 char dlopen ();
11512 int
11513 main ()
11514 {
11515 return dlopen ();
11516   ;
11517   return 0;
11518 }
11519 _ACEOF
11520 if ac_fn_c_try_link "$LINENO"; then :
11521   ac_cv_lib_dl_dlopen=yes
11522 else
11523   ac_cv_lib_dl_dlopen=no
11524 fi
11525 rm -f core conftest.err conftest.$ac_objext \
11526     conftest$ac_exeext conftest.$ac_ext
11527 LIBS=$ac_check_lib_save_LIBS
11528 fi
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11530 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11531 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11532   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11533 else
11534
11535     lt_cv_dlopen="dyld"
11536     lt_cv_dlopen_libs=
11537     lt_cv_dlopen_self=yes
11538
11539 fi
11540
11541     ;;
11542
11543   *)
11544     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11545 if test "x$ac_cv_func_shl_load" = xyes; then :
11546   lt_cv_dlopen="shl_load"
11547 else
11548   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11549 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11550 if ${ac_cv_lib_dld_shl_load+:} false; then :
11551   $as_echo_n "(cached) " >&6
11552 else
11553   ac_check_lib_save_LIBS=$LIBS
11554 LIBS="-ldld  $LIBS"
11555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11556 /* end confdefs.h.  */
11557
11558 /* Override any GCC internal prototype to avoid an error.
11559    Use char because int might match the return type of a GCC
11560    builtin and then its argument prototype would still apply.  */
11561 #ifdef __cplusplus
11562 extern "C"
11563 #endif
11564 char shl_load ();
11565 int
11566 main ()
11567 {
11568 return shl_load ();
11569   ;
11570   return 0;
11571 }
11572 _ACEOF
11573 if ac_fn_c_try_link "$LINENO"; then :
11574   ac_cv_lib_dld_shl_load=yes
11575 else
11576   ac_cv_lib_dld_shl_load=no
11577 fi
11578 rm -f core conftest.err conftest.$ac_objext \
11579     conftest$ac_exeext conftest.$ac_ext
11580 LIBS=$ac_check_lib_save_LIBS
11581 fi
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11583 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11584 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11585   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11586 else
11587   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11588 if test "x$ac_cv_func_dlopen" = xyes; then :
11589   lt_cv_dlopen="dlopen"
11590 else
11591   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11592 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11593 if ${ac_cv_lib_dl_dlopen+:} false; then :
11594   $as_echo_n "(cached) " >&6
11595 else
11596   ac_check_lib_save_LIBS=$LIBS
11597 LIBS="-ldl  $LIBS"
11598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11599 /* end confdefs.h.  */
11600
11601 /* Override any GCC internal prototype to avoid an error.
11602    Use char because int might match the return type of a GCC
11603    builtin and then its argument prototype would still apply.  */
11604 #ifdef __cplusplus
11605 extern "C"
11606 #endif
11607 char dlopen ();
11608 int
11609 main ()
11610 {
11611 return dlopen ();
11612   ;
11613   return 0;
11614 }
11615 _ACEOF
11616 if ac_fn_c_try_link "$LINENO"; then :
11617   ac_cv_lib_dl_dlopen=yes
11618 else
11619   ac_cv_lib_dl_dlopen=no
11620 fi
11621 rm -f core conftest.err conftest.$ac_objext \
11622     conftest$ac_exeext conftest.$ac_ext
11623 LIBS=$ac_check_lib_save_LIBS
11624 fi
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11626 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11627 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11628   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11629 else
11630   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11631 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11632 if ${ac_cv_lib_svld_dlopen+:} false; then :
11633   $as_echo_n "(cached) " >&6
11634 else
11635   ac_check_lib_save_LIBS=$LIBS
11636 LIBS="-lsvld  $LIBS"
11637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11638 /* end confdefs.h.  */
11639
11640 /* Override any GCC internal prototype to avoid an error.
11641    Use char because int might match the return type of a GCC
11642    builtin and then its argument prototype would still apply.  */
11643 #ifdef __cplusplus
11644 extern "C"
11645 #endif
11646 char dlopen ();
11647 int
11648 main ()
11649 {
11650 return dlopen ();
11651   ;
11652   return 0;
11653 }
11654 _ACEOF
11655 if ac_fn_c_try_link "$LINENO"; then :
11656   ac_cv_lib_svld_dlopen=yes
11657 else
11658   ac_cv_lib_svld_dlopen=no
11659 fi
11660 rm -f core conftest.err conftest.$ac_objext \
11661     conftest$ac_exeext conftest.$ac_ext
11662 LIBS=$ac_check_lib_save_LIBS
11663 fi
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11665 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11666 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11667   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11668 else
11669   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11670 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11671 if ${ac_cv_lib_dld_dld_link+:} false; then :
11672   $as_echo_n "(cached) " >&6
11673 else
11674   ac_check_lib_save_LIBS=$LIBS
11675 LIBS="-ldld  $LIBS"
11676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11677 /* end confdefs.h.  */
11678
11679 /* Override any GCC internal prototype to avoid an error.
11680    Use char because int might match the return type of a GCC
11681    builtin and then its argument prototype would still apply.  */
11682 #ifdef __cplusplus
11683 extern "C"
11684 #endif
11685 char dld_link ();
11686 int
11687 main ()
11688 {
11689 return dld_link ();
11690   ;
11691   return 0;
11692 }
11693 _ACEOF
11694 if ac_fn_c_try_link "$LINENO"; then :
11695   ac_cv_lib_dld_dld_link=yes
11696 else
11697   ac_cv_lib_dld_dld_link=no
11698 fi
11699 rm -f core conftest.err conftest.$ac_objext \
11700     conftest$ac_exeext conftest.$ac_ext
11701 LIBS=$ac_check_lib_save_LIBS
11702 fi
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11704 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11705 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11706   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11707 fi
11708
11709
11710 fi
11711
11712
11713 fi
11714
11715
11716 fi
11717
11718
11719 fi
11720
11721
11722 fi
11723
11724     ;;
11725   esac
11726
11727   if test "x$lt_cv_dlopen" != xno; then
11728     enable_dlopen=yes
11729   else
11730     enable_dlopen=no
11731   fi
11732
11733   case $lt_cv_dlopen in
11734   dlopen)
11735     save_CPPFLAGS="$CPPFLAGS"
11736     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11737
11738     save_LDFLAGS="$LDFLAGS"
11739     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11740
11741     save_LIBS="$LIBS"
11742     LIBS="$lt_cv_dlopen_libs $LIBS"
11743
11744     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11745 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11746 if ${lt_cv_dlopen_self+:} false; then :
11747   $as_echo_n "(cached) " >&6
11748 else
11749           if test "$cross_compiling" = yes; then :
11750   lt_cv_dlopen_self=cross
11751 else
11752   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11753   lt_status=$lt_dlunknown
11754   cat > conftest.$ac_ext <<_LT_EOF
11755 #line $LINENO "configure"
11756 #include "confdefs.h"
11757
11758 #if HAVE_DLFCN_H
11759 #include <dlfcn.h>
11760 #endif
11761
11762 #include <stdio.h>
11763
11764 #ifdef RTLD_GLOBAL
11765 #  define LT_DLGLOBAL           RTLD_GLOBAL
11766 #else
11767 #  ifdef DL_GLOBAL
11768 #    define LT_DLGLOBAL         DL_GLOBAL
11769 #  else
11770 #    define LT_DLGLOBAL         0
11771 #  endif
11772 #endif
11773
11774 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11775    find out it does not work in some platform. */
11776 #ifndef LT_DLLAZY_OR_NOW
11777 #  ifdef RTLD_LAZY
11778 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11779 #  else
11780 #    ifdef DL_LAZY
11781 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11782 #    else
11783 #      ifdef RTLD_NOW
11784 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11785 #      else
11786 #        ifdef DL_NOW
11787 #          define LT_DLLAZY_OR_NOW      DL_NOW
11788 #        else
11789 #          define LT_DLLAZY_OR_NOW      0
11790 #        endif
11791 #      endif
11792 #    endif
11793 #  endif
11794 #endif
11795
11796 /* When -fvisbility=hidden is used, assume the code has been annotated
11797    correspondingly for the symbols needed.  */
11798 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11799 int fnord () __attribute__((visibility("default")));
11800 #endif
11801
11802 int fnord () { return 42; }
11803 int main ()
11804 {
11805   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11806   int status = $lt_dlunknown;
11807
11808   if (self)
11809     {
11810       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11811       else
11812         {
11813           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11814           else puts (dlerror ());
11815         }
11816       /* dlclose (self); */
11817     }
11818   else
11819     puts (dlerror ());
11820
11821   return status;
11822 }
11823 _LT_EOF
11824   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11825   (eval $ac_link) 2>&5
11826   ac_status=$?
11827   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11828   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11829     (./conftest; exit; ) >&5 2>/dev/null
11830     lt_status=$?
11831     case x$lt_status in
11832       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11833       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11834       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11835     esac
11836   else :
11837     # compilation failed
11838     lt_cv_dlopen_self=no
11839   fi
11840 fi
11841 rm -fr conftest*
11842
11843
11844 fi
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11846 $as_echo "$lt_cv_dlopen_self" >&6; }
11847
11848     if test "x$lt_cv_dlopen_self" = xyes; then
11849       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11850       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11851 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11852 if ${lt_cv_dlopen_self_static+:} false; then :
11853   $as_echo_n "(cached) " >&6
11854 else
11855           if test "$cross_compiling" = yes; then :
11856   lt_cv_dlopen_self_static=cross
11857 else
11858   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11859   lt_status=$lt_dlunknown
11860   cat > conftest.$ac_ext <<_LT_EOF
11861 #line $LINENO "configure"
11862 #include "confdefs.h"
11863
11864 #if HAVE_DLFCN_H
11865 #include <dlfcn.h>
11866 #endif
11867
11868 #include <stdio.h>
11869
11870 #ifdef RTLD_GLOBAL
11871 #  define LT_DLGLOBAL           RTLD_GLOBAL
11872 #else
11873 #  ifdef DL_GLOBAL
11874 #    define LT_DLGLOBAL         DL_GLOBAL
11875 #  else
11876 #    define LT_DLGLOBAL         0
11877 #  endif
11878 #endif
11879
11880 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11881    find out it does not work in some platform. */
11882 #ifndef LT_DLLAZY_OR_NOW
11883 #  ifdef RTLD_LAZY
11884 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11885 #  else
11886 #    ifdef DL_LAZY
11887 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11888 #    else
11889 #      ifdef RTLD_NOW
11890 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11891 #      else
11892 #        ifdef DL_NOW
11893 #          define LT_DLLAZY_OR_NOW      DL_NOW
11894 #        else
11895 #          define LT_DLLAZY_OR_NOW      0
11896 #        endif
11897 #      endif
11898 #    endif
11899 #  endif
11900 #endif
11901
11902 /* When -fvisbility=hidden is used, assume the code has been annotated
11903    correspondingly for the symbols needed.  */
11904 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11905 int fnord () __attribute__((visibility("default")));
11906 #endif
11907
11908 int fnord () { return 42; }
11909 int main ()
11910 {
11911   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11912   int status = $lt_dlunknown;
11913
11914   if (self)
11915     {
11916       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11917       else
11918         {
11919           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11920           else puts (dlerror ());
11921         }
11922       /* dlclose (self); */
11923     }
11924   else
11925     puts (dlerror ());
11926
11927   return status;
11928 }
11929 _LT_EOF
11930   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11931   (eval $ac_link) 2>&5
11932   ac_status=$?
11933   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11934   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11935     (./conftest; exit; ) >&5 2>/dev/null
11936     lt_status=$?
11937     case x$lt_status in
11938       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11939       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11940       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11941     esac
11942   else :
11943     # compilation failed
11944     lt_cv_dlopen_self_static=no
11945   fi
11946 fi
11947 rm -fr conftest*
11948
11949
11950 fi
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11952 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11953     fi
11954
11955     CPPFLAGS="$save_CPPFLAGS"
11956     LDFLAGS="$save_LDFLAGS"
11957     LIBS="$save_LIBS"
11958     ;;
11959   esac
11960
11961   case $lt_cv_dlopen_self in
11962   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11963   *) enable_dlopen_self=unknown ;;
11964   esac
11965
11966   case $lt_cv_dlopen_self_static in
11967   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11968   *) enable_dlopen_self_static=unknown ;;
11969   esac
11970 fi
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988 striplib=
11989 old_striplib=
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11991 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11992 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11993   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11994   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11996 $as_echo "yes" >&6; }
11997 else
11998 # FIXME - insert some real tests, host_os isn't really good enough
11999   case $host_os in
12000   darwin*)
12001     if test -n "$STRIP" ; then
12002       striplib="$STRIP -x"
12003       old_striplib="$STRIP -S"
12004       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12005 $as_echo "yes" >&6; }
12006     else
12007       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12008 $as_echo "no" >&6; }
12009     fi
12010     ;;
12011   *)
12012     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12013 $as_echo "no" >&6; }
12014     ;;
12015   esac
12016 fi
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029   # Report which library types will actually be built
12030   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12031 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12033 $as_echo "$can_build_shared" >&6; }
12034
12035   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12036 $as_echo_n "checking whether to build shared libraries... " >&6; }
12037   test "$can_build_shared" = "no" && enable_shared=no
12038
12039   # On AIX, shared libraries and static libraries use the same namespace, and
12040   # are all built from PIC.
12041   case $host_os in
12042   aix3*)
12043     test "$enable_shared" = yes && enable_static=no
12044     if test -n "$RANLIB"; then
12045       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12046       postinstall_cmds='$RANLIB $lib'
12047     fi
12048     ;;
12049
12050   aix[4-9]*)
12051     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12052       test "$enable_shared" = yes && enable_static=no
12053     fi
12054     ;;
12055   esac
12056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12057 $as_echo "$enable_shared" >&6; }
12058
12059   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12060 $as_echo_n "checking whether to build static libraries... " >&6; }
12061   # Make sure either enable_shared or enable_static is yes.
12062   test "$enable_shared" = yes || enable_static=yes
12063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12064 $as_echo "$enable_static" >&6; }
12065
12066
12067
12068
12069 fi
12070 ac_ext=c
12071 ac_cpp='$CPP $CPPFLAGS'
12072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12075
12076 CC="$lt_save_CC"
12077
12078       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12079     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12080     (test "X$CXX" != "Xg++"))) ; then
12081   ac_ext=cpp
12082 ac_cpp='$CXXCPP $CPPFLAGS'
12083 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12084 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12085 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12087 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12088 if test -z "$CXXCPP"; then
12089   if ${ac_cv_prog_CXXCPP+:} false; then :
12090   $as_echo_n "(cached) " >&6
12091 else
12092       # Double quotes because CXXCPP needs to be expanded
12093     for CXXCPP in "$CXX -E" "/lib/cpp"
12094     do
12095       ac_preproc_ok=false
12096 for ac_cxx_preproc_warn_flag in '' yes
12097 do
12098   # Use a header file that comes with gcc, so configuring glibc
12099   # with a fresh cross-compiler works.
12100   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12101   # <limits.h> exists even on freestanding compilers.
12102   # On the NeXT, cc -E runs the code through the compiler's parser,
12103   # not just through cpp. "Syntax error" is here to catch this case.
12104   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12105 /* end confdefs.h.  */
12106 #ifdef __STDC__
12107 # include <limits.h>
12108 #else
12109 # include <assert.h>
12110 #endif
12111                      Syntax error
12112 _ACEOF
12113 if ac_fn_cxx_try_cpp "$LINENO"; then :
12114
12115 else
12116   # Broken: fails on valid input.
12117 continue
12118 fi
12119 rm -f conftest.err conftest.i conftest.$ac_ext
12120
12121   # OK, works on sane cases.  Now check whether nonexistent headers
12122   # can be detected and how.
12123   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12124 /* end confdefs.h.  */
12125 #include <ac_nonexistent.h>
12126 _ACEOF
12127 if ac_fn_cxx_try_cpp "$LINENO"; then :
12128   # Broken: success on invalid input.
12129 continue
12130 else
12131   # Passes both tests.
12132 ac_preproc_ok=:
12133 break
12134 fi
12135 rm -f conftest.err conftest.i conftest.$ac_ext
12136
12137 done
12138 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12139 rm -f conftest.i conftest.err conftest.$ac_ext
12140 if $ac_preproc_ok; then :
12141   break
12142 fi
12143
12144     done
12145     ac_cv_prog_CXXCPP=$CXXCPP
12146
12147 fi
12148   CXXCPP=$ac_cv_prog_CXXCPP
12149 else
12150   ac_cv_prog_CXXCPP=$CXXCPP
12151 fi
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12153 $as_echo "$CXXCPP" >&6; }
12154 ac_preproc_ok=false
12155 for ac_cxx_preproc_warn_flag in '' yes
12156 do
12157   # Use a header file that comes with gcc, so configuring glibc
12158   # with a fresh cross-compiler works.
12159   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12160   # <limits.h> exists even on freestanding compilers.
12161   # On the NeXT, cc -E runs the code through the compiler's parser,
12162   # not just through cpp. "Syntax error" is here to catch this case.
12163   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12164 /* end confdefs.h.  */
12165 #ifdef __STDC__
12166 # include <limits.h>
12167 #else
12168 # include <assert.h>
12169 #endif
12170                      Syntax error
12171 _ACEOF
12172 if ac_fn_cxx_try_cpp "$LINENO"; then :
12173
12174 else
12175   # Broken: fails on valid input.
12176 continue
12177 fi
12178 rm -f conftest.err conftest.i conftest.$ac_ext
12179
12180   # OK, works on sane cases.  Now check whether nonexistent headers
12181   # can be detected and how.
12182   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12183 /* end confdefs.h.  */
12184 #include <ac_nonexistent.h>
12185 _ACEOF
12186 if ac_fn_cxx_try_cpp "$LINENO"; then :
12187   # Broken: success on invalid input.
12188 continue
12189 else
12190   # Passes both tests.
12191 ac_preproc_ok=:
12192 break
12193 fi
12194 rm -f conftest.err conftest.i conftest.$ac_ext
12195
12196 done
12197 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12198 rm -f conftest.i conftest.err conftest.$ac_ext
12199 if $ac_preproc_ok; then :
12200
12201 else
12202   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12203 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12204 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12205 See \`config.log' for more details" "$LINENO" 5; }
12206 fi
12207
12208 ac_ext=c
12209 ac_cpp='$CPP $CPPFLAGS'
12210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12213
12214 else
12215   _lt_caught_CXX_error=yes
12216 fi
12217
12218 ac_ext=cpp
12219 ac_cpp='$CXXCPP $CPPFLAGS'
12220 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12221 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12222 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12223
12224 archive_cmds_need_lc_CXX=no
12225 allow_undefined_flag_CXX=
12226 always_export_symbols_CXX=no
12227 archive_expsym_cmds_CXX=
12228 compiler_needs_object_CXX=no
12229 export_dynamic_flag_spec_CXX=
12230 hardcode_direct_CXX=no
12231 hardcode_direct_absolute_CXX=no
12232 hardcode_libdir_flag_spec_CXX=
12233 hardcode_libdir_separator_CXX=
12234 hardcode_minus_L_CXX=no
12235 hardcode_shlibpath_var_CXX=unsupported
12236 hardcode_automatic_CXX=no
12237 inherit_rpath_CXX=no
12238 module_cmds_CXX=
12239 module_expsym_cmds_CXX=
12240 link_all_deplibs_CXX=unknown
12241 old_archive_cmds_CXX=$old_archive_cmds
12242 reload_flag_CXX=$reload_flag
12243 reload_cmds_CXX=$reload_cmds
12244 no_undefined_flag_CXX=
12245 whole_archive_flag_spec_CXX=
12246 enable_shared_with_static_runtimes_CXX=no
12247
12248 # Source file extension for C++ test sources.
12249 ac_ext=cpp
12250
12251 # Object file extension for compiled C++ test sources.
12252 objext=o
12253 objext_CXX=$objext
12254
12255 # No sense in running all these tests if we already determined that
12256 # the CXX compiler isn't working.  Some variables (like enable_shared)
12257 # are currently assumed to apply to all compilers on this platform,
12258 # and will be corrupted by setting them based on a non-working compiler.
12259 if test "$_lt_caught_CXX_error" != yes; then
12260   # Code to be used in simple compile tests
12261   lt_simple_compile_test_code="int some_variable = 0;"
12262
12263   # Code to be used in simple link tests
12264   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12265
12266   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12267
12268
12269
12270
12271
12272
12273 # If no C compiler was specified, use CC.
12274 LTCC=${LTCC-"$CC"}
12275
12276 # If no C compiler flags were specified, use CFLAGS.
12277 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12278
12279 # Allow CC to be a program name with arguments.
12280 compiler=$CC
12281
12282
12283   # save warnings/boilerplate of simple test code
12284   ac_outfile=conftest.$ac_objext
12285 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12286 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12287 _lt_compiler_boilerplate=`cat conftest.err`
12288 $RM conftest*
12289
12290   ac_outfile=conftest.$ac_objext
12291 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12292 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12293 _lt_linker_boilerplate=`cat conftest.err`
12294 $RM -r conftest*
12295
12296
12297   # Allow CC to be a program name with arguments.
12298   lt_save_CC=$CC
12299   lt_save_CFLAGS=$CFLAGS
12300   lt_save_LD=$LD
12301   lt_save_GCC=$GCC
12302   GCC=$GXX
12303   lt_save_with_gnu_ld=$with_gnu_ld
12304   lt_save_path_LD=$lt_cv_path_LD
12305   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12306     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12307   else
12308     $as_unset lt_cv_prog_gnu_ld
12309   fi
12310   if test -n "${lt_cv_path_LDCXX+set}"; then
12311     lt_cv_path_LD=$lt_cv_path_LDCXX
12312   else
12313     $as_unset lt_cv_path_LD
12314   fi
12315   test -z "${LDCXX+set}" || LD=$LDCXX
12316   CC=${CXX-"c++"}
12317   CFLAGS=$CXXFLAGS
12318   compiler=$CC
12319   compiler_CXX=$CC
12320   for cc_temp in $compiler""; do
12321   case $cc_temp in
12322     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12323     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12324     \-*) ;;
12325     *) break;;
12326   esac
12327 done
12328 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12329
12330
12331   if test -n "$compiler"; then
12332     # We don't want -fno-exception when compiling C++ code, so set the
12333     # no_builtin_flag separately
12334     if test "$GXX" = yes; then
12335       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12336     else
12337       lt_prog_compiler_no_builtin_flag_CXX=
12338     fi
12339
12340     if test "$GXX" = yes; then
12341       # Set up default GNU C++ configuration
12342
12343
12344
12345 # Check whether --with-gnu-ld was given.
12346 if test "${with_gnu_ld+set}" = set; then :
12347   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12348 else
12349   with_gnu_ld=no
12350 fi
12351
12352 ac_prog=ld
12353 if test "$GCC" = yes; then
12354   # Check if gcc -print-prog-name=ld gives a path.
12355   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12356 $as_echo_n "checking for ld used by $CC... " >&6; }
12357   case $host in
12358   *-*-mingw*)
12359     # gcc leaves a trailing carriage return which upsets mingw
12360     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12361   *)
12362     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12363   esac
12364   case $ac_prog in
12365     # Accept absolute paths.
12366     [\\/]* | ?:[\\/]*)
12367       re_direlt='/[^/][^/]*/\.\./'
12368       # Canonicalize the pathname of ld
12369       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12370       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12371         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12372       done
12373       test -z "$LD" && LD="$ac_prog"
12374       ;;
12375   "")
12376     # If it fails, then pretend we aren't using GCC.
12377     ac_prog=ld
12378     ;;
12379   *)
12380     # If it is relative, then search for the first ld in PATH.
12381     with_gnu_ld=unknown
12382     ;;
12383   esac
12384 elif test "$with_gnu_ld" = yes; then
12385   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12386 $as_echo_n "checking for GNU ld... " >&6; }
12387 else
12388   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12389 $as_echo_n "checking for non-GNU ld... " >&6; }
12390 fi
12391 if ${lt_cv_path_LD+:} false; then :
12392   $as_echo_n "(cached) " >&6
12393 else
12394   if test -z "$LD"; then
12395   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12396   for ac_dir in $PATH; do
12397     IFS="$lt_save_ifs"
12398     test -z "$ac_dir" && ac_dir=.
12399     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12400       lt_cv_path_LD="$ac_dir/$ac_prog"
12401       # Check to see if the program is GNU ld.  I'd rather use --version,
12402       # but apparently some variants of GNU ld only accept -v.
12403       # Break only if it was the GNU/non-GNU ld that we prefer.
12404       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12405       *GNU* | *'with BFD'*)
12406         test "$with_gnu_ld" != no && break
12407         ;;
12408       *)
12409         test "$with_gnu_ld" != yes && break
12410         ;;
12411       esac
12412     fi
12413   done
12414   IFS="$lt_save_ifs"
12415 else
12416   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12417 fi
12418 fi
12419
12420 LD="$lt_cv_path_LD"
12421 if test -n "$LD"; then
12422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12423 $as_echo "$LD" >&6; }
12424 else
12425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12426 $as_echo "no" >&6; }
12427 fi
12428 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12430 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12431 if ${lt_cv_prog_gnu_ld+:} false; then :
12432   $as_echo_n "(cached) " >&6
12433 else
12434   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12435 case `$LD -v 2>&1 </dev/null` in
12436 *GNU* | *'with BFD'*)
12437   lt_cv_prog_gnu_ld=yes
12438   ;;
12439 *)
12440   lt_cv_prog_gnu_ld=no
12441   ;;
12442 esac
12443 fi
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12445 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12446 with_gnu_ld=$lt_cv_prog_gnu_ld
12447
12448
12449
12450
12451
12452
12453
12454       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12455       # archiving commands below assume that GNU ld is being used.
12456       if test "$with_gnu_ld" = yes; then
12457         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12458         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'
12459
12460         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12461         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12462
12463         # If archive_cmds runs LD, not CC, wlarc should be empty
12464         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12465         #     investigate it a little bit more. (MM)
12466         wlarc='${wl}'
12467
12468         # ancient GNU ld didn't support --whole-archive et. al.
12469         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12470           $GREP 'no-whole-archive' > /dev/null; then
12471           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12472         else
12473           whole_archive_flag_spec_CXX=
12474         fi
12475       else
12476         with_gnu_ld=no
12477         wlarc=
12478
12479         # A generic and very simple default shared library creation
12480         # command for GNU C++ for the case where it uses the native
12481         # linker, instead of GNU ld.  If possible, this setting should
12482         # overridden to take advantage of the native linker features on
12483         # the platform it is being used on.
12484         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12485       fi
12486
12487       # Commands to make compiler produce verbose output that lists
12488       # what "hidden" libraries, object files and flags are used when
12489       # linking a shared library.
12490       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12491
12492     else
12493       GXX=no
12494       with_gnu_ld=no
12495       wlarc=
12496     fi
12497
12498     # PORTME: fill in a description of your system's C++ link characteristics
12499     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12500 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12501     ld_shlibs_CXX=yes
12502     case $host_os in
12503       aix3*)
12504         # FIXME: insert proper C++ library support
12505         ld_shlibs_CXX=no
12506         ;;
12507       aix[4-9]*)
12508         if test "$host_cpu" = ia64; then
12509           # On IA64, the linker does run time linking by default, so we don't
12510           # have to do anything special.
12511           aix_use_runtimelinking=no
12512           exp_sym_flag='-Bexport'
12513           no_entry_flag=""
12514         else
12515           aix_use_runtimelinking=no
12516
12517           # Test if we are trying to use run time linking or normal
12518           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12519           # need to do runtime linking.
12520           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12521             for ld_flag in $LDFLAGS; do
12522               case $ld_flag in
12523               *-brtl*)
12524                 aix_use_runtimelinking=yes
12525                 break
12526                 ;;
12527               esac
12528             done
12529             ;;
12530           esac
12531
12532           exp_sym_flag='-bexport'
12533           no_entry_flag='-bnoentry'
12534         fi
12535
12536         # When large executables or shared objects are built, AIX ld can
12537         # have problems creating the table of contents.  If linking a library
12538         # or program results in "error TOC overflow" add -mminimal-toc to
12539         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12540         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12541
12542         archive_cmds_CXX=''
12543         hardcode_direct_CXX=yes
12544         hardcode_direct_absolute_CXX=yes
12545         hardcode_libdir_separator_CXX=':'
12546         link_all_deplibs_CXX=yes
12547         file_list_spec_CXX='${wl}-f,'
12548
12549         if test "$GXX" = yes; then
12550           case $host_os in aix4.[012]|aix4.[012].*)
12551           # We only want to do this on AIX 4.2 and lower, the check
12552           # below for broken collect2 doesn't work under 4.3+
12553           collect2name=`${CC} -print-prog-name=collect2`
12554           if test -f "$collect2name" &&
12555              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12556           then
12557             # We have reworked collect2
12558             :
12559           else
12560             # We have old collect2
12561             hardcode_direct_CXX=unsupported
12562             # It fails to find uninstalled libraries when the uninstalled
12563             # path is not listed in the libpath.  Setting hardcode_minus_L
12564             # to unsupported forces relinking
12565             hardcode_minus_L_CXX=yes
12566             hardcode_libdir_flag_spec_CXX='-L$libdir'
12567             hardcode_libdir_separator_CXX=
12568           fi
12569           esac
12570           shared_flag='-shared'
12571           if test "$aix_use_runtimelinking" = yes; then
12572             shared_flag="$shared_flag "'${wl}-G'
12573           fi
12574         else
12575           # not using gcc
12576           if test "$host_cpu" = ia64; then
12577           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12578           # chokes on -Wl,-G. The following line is correct:
12579           shared_flag='-G'
12580           else
12581             if test "$aix_use_runtimelinking" = yes; then
12582               shared_flag='${wl}-G'
12583             else
12584               shared_flag='${wl}-bM:SRE'
12585             fi
12586           fi
12587         fi
12588
12589         export_dynamic_flag_spec_CXX='${wl}-bexpall'
12590         # It seems that -bexpall does not export symbols beginning with
12591         # underscore (_), so it is better to generate a list of symbols to
12592         # export.
12593         always_export_symbols_CXX=yes
12594         if test "$aix_use_runtimelinking" = yes; then
12595           # Warning - without using the other runtime loading flags (-brtl),
12596           # -berok will link without error, but may produce a broken library.
12597           allow_undefined_flag_CXX='-berok'
12598           # Determine the default libpath from the value encoded in an empty
12599           # executable.
12600           if test "${lt_cv_aix_libpath+set}" = set; then
12601   aix_libpath=$lt_cv_aix_libpath
12602 else
12603   if ${lt_cv_aix_libpath__CXX+:} false; then :
12604   $as_echo_n "(cached) " >&6
12605 else
12606   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12607 /* end confdefs.h.  */
12608
12609 int
12610 main ()
12611 {
12612
12613   ;
12614   return 0;
12615 }
12616 _ACEOF
12617 if ac_fn_cxx_try_link "$LINENO"; then :
12618
12619   lt_aix_libpath_sed='
12620       /Import File Strings/,/^$/ {
12621           /^0/ {
12622               s/^0  *\([^ ]*\) *$/\1/
12623               p
12624           }
12625       }'
12626   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12627   # Check for a 64-bit object if we didn't find anything.
12628   if test -z "$lt_cv_aix_libpath__CXX"; then
12629     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12630   fi
12631 fi
12632 rm -f core conftest.err conftest.$ac_objext \
12633     conftest$ac_exeext conftest.$ac_ext
12634   if test -z "$lt_cv_aix_libpath__CXX"; then
12635     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12636   fi
12637
12638 fi
12639
12640   aix_libpath=$lt_cv_aix_libpath__CXX
12641 fi
12642
12643           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12644
12645           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"
12646         else
12647           if test "$host_cpu" = ia64; then
12648             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12649             allow_undefined_flag_CXX="-z nodefs"
12650             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"
12651           else
12652             # Determine the default libpath from the value encoded in an
12653             # empty executable.
12654             if test "${lt_cv_aix_libpath+set}" = set; then
12655   aix_libpath=$lt_cv_aix_libpath
12656 else
12657   if ${lt_cv_aix_libpath__CXX+:} false; then :
12658   $as_echo_n "(cached) " >&6
12659 else
12660   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12661 /* end confdefs.h.  */
12662
12663 int
12664 main ()
12665 {
12666
12667   ;
12668   return 0;
12669 }
12670 _ACEOF
12671 if ac_fn_cxx_try_link "$LINENO"; then :
12672
12673   lt_aix_libpath_sed='
12674       /Import File Strings/,/^$/ {
12675           /^0/ {
12676               s/^0  *\([^ ]*\) *$/\1/
12677               p
12678           }
12679       }'
12680   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12681   # Check for a 64-bit object if we didn't find anything.
12682   if test -z "$lt_cv_aix_libpath__CXX"; then
12683     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12684   fi
12685 fi
12686 rm -f core conftest.err conftest.$ac_objext \
12687     conftest$ac_exeext conftest.$ac_ext
12688   if test -z "$lt_cv_aix_libpath__CXX"; then
12689     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12690   fi
12691
12692 fi
12693
12694   aix_libpath=$lt_cv_aix_libpath__CXX
12695 fi
12696
12697             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12698             # Warning - without using the other run time loading flags,
12699             # -berok will link without error, but may produce a broken library.
12700             no_undefined_flag_CXX=' ${wl}-bernotok'
12701             allow_undefined_flag_CXX=' ${wl}-berok'
12702             if test "$with_gnu_ld" = yes; then
12703               # We only use this code for GNU lds that support --whole-archive.
12704               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12705             else
12706               # Exported symbols can be pulled into shared objects from archives
12707               whole_archive_flag_spec_CXX='$convenience'
12708             fi
12709             archive_cmds_need_lc_CXX=yes
12710             # This is similar to how AIX traditionally builds its shared
12711             # libraries.
12712             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'
12713           fi
12714         fi
12715         ;;
12716
12717       beos*)
12718         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12719           allow_undefined_flag_CXX=unsupported
12720           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12721           # support --undefined.  This deserves some investigation.  FIXME
12722           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12723         else
12724           ld_shlibs_CXX=no
12725         fi
12726         ;;
12727
12728       chorus*)
12729         case $cc_basename in
12730           *)
12731           # FIXME: insert proper C++ library support
12732           ld_shlibs_CXX=no
12733           ;;
12734         esac
12735         ;;
12736
12737       cygwin* | mingw* | pw32* | cegcc*)
12738         case $GXX,$cc_basename in
12739         ,cl* | no,cl*)
12740           # Native MSVC
12741           # hardcode_libdir_flag_spec is actually meaningless, as there is
12742           # no search path for DLLs.
12743           hardcode_libdir_flag_spec_CXX=' '
12744           allow_undefined_flag_CXX=unsupported
12745           always_export_symbols_CXX=yes
12746           file_list_spec_CXX='@'
12747           # Tell ltmain to make .lib files, not .a files.
12748           libext=lib
12749           # Tell ltmain to make .dll files, not .so files.
12750           shrext_cmds=".dll"
12751           # FIXME: Setting linknames here is a bad hack.
12752           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12753           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12754               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12755             else
12756               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12757             fi~
12758             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12759             linknames='
12760           # The linker will not automatically build a static lib if we build a DLL.
12761           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12762           enable_shared_with_static_runtimes_CXX=yes
12763           # Don't use ranlib
12764           old_postinstall_cmds_CXX='chmod 644 $oldlib'
12765           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12766             lt_tool_outputfile="@TOOL_OUTPUT@"~
12767             case $lt_outputfile in
12768               *.exe|*.EXE) ;;
12769               *)
12770                 lt_outputfile="$lt_outputfile.exe"
12771                 lt_tool_outputfile="$lt_tool_outputfile.exe"
12772                 ;;
12773             esac~
12774             func_to_tool_file "$lt_outputfile"~
12775             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12776               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12777               $RM "$lt_outputfile.manifest";
12778             fi'
12779           ;;
12780         *)
12781           # g++
12782           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12783           # as there is no search path for DLLs.
12784           hardcode_libdir_flag_spec_CXX='-L$libdir'
12785           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12786           allow_undefined_flag_CXX=unsupported
12787           always_export_symbols_CXX=no
12788           enable_shared_with_static_runtimes_CXX=yes
12789
12790           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12791             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'
12792             # If the export-symbols file already is a .def file (1st line
12793             # is EXPORTS), use it as is; otherwise, prepend...
12794             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12795               cp $export_symbols $output_objdir/$soname.def;
12796             else
12797               echo EXPORTS > $output_objdir/$soname.def;
12798               cat $export_symbols >> $output_objdir/$soname.def;
12799             fi~
12800             $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'
12801           else
12802             ld_shlibs_CXX=no
12803           fi
12804           ;;
12805         esac
12806         ;;
12807       darwin* | rhapsody*)
12808
12809
12810   archive_cmds_need_lc_CXX=no
12811   hardcode_direct_CXX=no
12812   hardcode_automatic_CXX=yes
12813   hardcode_shlibpath_var_CXX=unsupported
12814   if test "$lt_cv_ld_force_load" = "yes"; then
12815     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\"`'
12816
12817   else
12818     whole_archive_flag_spec_CXX=''
12819   fi
12820   link_all_deplibs_CXX=yes
12821   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12822   case $cc_basename in
12823      ifort*) _lt_dar_can_shared=yes ;;
12824      *) _lt_dar_can_shared=$GCC ;;
12825   esac
12826   if test "$_lt_dar_can_shared" = "yes"; then
12827     output_verbose_link_cmd=func_echo_all
12828     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}"
12829     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12830     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}"
12831     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}"
12832        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12833       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}"
12834       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}"
12835     fi
12836
12837   else
12838   ld_shlibs_CXX=no
12839   fi
12840
12841         ;;
12842
12843       dgux*)
12844         case $cc_basename in
12845           ec++*)
12846             # FIXME: insert proper C++ library support
12847             ld_shlibs_CXX=no
12848             ;;
12849           ghcx*)
12850             # Green Hills C++ Compiler
12851             # FIXME: insert proper C++ library support
12852             ld_shlibs_CXX=no
12853             ;;
12854           *)
12855             # FIXME: insert proper C++ library support
12856             ld_shlibs_CXX=no
12857             ;;
12858         esac
12859         ;;
12860
12861       freebsd2.*)
12862         # C++ shared libraries reported to be fairly broken before
12863         # switch to ELF
12864         ld_shlibs_CXX=no
12865         ;;
12866
12867       freebsd-elf*)
12868         archive_cmds_need_lc_CXX=no
12869         ;;
12870
12871       freebsd* | dragonfly*)
12872         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12873         # conventions
12874         ld_shlibs_CXX=yes
12875         ;;
12876
12877       gnu*)
12878         ;;
12879
12880       haiku*)
12881         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12882         link_all_deplibs_CXX=yes
12883         ;;
12884
12885       hpux9*)
12886         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12887         hardcode_libdir_separator_CXX=:
12888         export_dynamic_flag_spec_CXX='${wl}-E'
12889         hardcode_direct_CXX=yes
12890         hardcode_minus_L_CXX=yes # Not in the search PATH,
12891                                              # but as the default
12892                                              # location of the library.
12893
12894         case $cc_basename in
12895           CC*)
12896             # FIXME: insert proper C++ library support
12897             ld_shlibs_CXX=no
12898             ;;
12899           aCC*)
12900             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'
12901             # Commands to make compiler produce verbose output that lists
12902             # what "hidden" libraries, object files and flags are used when
12903             # linking a shared library.
12904             #
12905             # There doesn't appear to be a way to prevent this compiler from
12906             # explicitly linking system object files so we need to strip them
12907             # from the output so that they don't get included in the library
12908             # dependencies.
12909             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"'
12910             ;;
12911           *)
12912             if test "$GXX" = yes; then
12913               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'
12914             else
12915               # FIXME: insert proper C++ library support
12916               ld_shlibs_CXX=no
12917             fi
12918             ;;
12919         esac
12920         ;;
12921
12922       hpux10*|hpux11*)
12923         if test $with_gnu_ld = no; then
12924           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12925           hardcode_libdir_separator_CXX=:
12926
12927           case $host_cpu in
12928             hppa*64*|ia64*)
12929               ;;
12930             *)
12931               export_dynamic_flag_spec_CXX='${wl}-E'
12932               ;;
12933           esac
12934         fi
12935         case $host_cpu in
12936           hppa*64*|ia64*)
12937             hardcode_direct_CXX=no
12938             hardcode_shlibpath_var_CXX=no
12939             ;;
12940           *)
12941             hardcode_direct_CXX=yes
12942             hardcode_direct_absolute_CXX=yes
12943             hardcode_minus_L_CXX=yes # Not in the search PATH,
12944                                                  # but as the default
12945                                                  # location of the library.
12946             ;;
12947         esac
12948
12949         case $cc_basename in
12950           CC*)
12951             # FIXME: insert proper C++ library support
12952             ld_shlibs_CXX=no
12953             ;;
12954           aCC*)
12955             case $host_cpu in
12956               hppa*64*)
12957                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12958                 ;;
12959               ia64*)
12960                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12961                 ;;
12962               *)
12963                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12964                 ;;
12965             esac
12966             # Commands to make compiler produce verbose output that lists
12967             # what "hidden" libraries, object files and flags are used when
12968             # linking a shared library.
12969             #
12970             # There doesn't appear to be a way to prevent this compiler from
12971             # explicitly linking system object files so we need to strip them
12972             # from the output so that they don't get included in the library
12973             # dependencies.
12974             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"'
12975             ;;
12976           *)
12977             if test "$GXX" = yes; then
12978               if test $with_gnu_ld = no; then
12979                 case $host_cpu in
12980                   hppa*64*)
12981                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12982                     ;;
12983                   ia64*)
12984                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12985                     ;;
12986                   *)
12987                     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'
12988                     ;;
12989                 esac
12990               fi
12991             else
12992               # FIXME: insert proper C++ library support
12993               ld_shlibs_CXX=no
12994             fi
12995             ;;
12996         esac
12997         ;;
12998
12999       interix[3-9]*)
13000         hardcode_direct_CXX=no
13001         hardcode_shlibpath_var_CXX=no
13002         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13003         export_dynamic_flag_spec_CXX='${wl}-E'
13004         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13005         # Instead, shared libraries are loaded at an image base (0x10000000 by
13006         # default) and relocated if they conflict, which is a slow very memory
13007         # consuming and fragmenting process.  To avoid this, we pick a random,
13008         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13009         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13010         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'
13011         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'
13012         ;;
13013       irix5* | irix6*)
13014         case $cc_basename in
13015           CC*)
13016             # SGI C++
13017             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'
13018
13019             # Archives containing C++ object files must be created using
13020             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13021             # necessary to make sure instantiated templates are included
13022             # in the archive.
13023             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13024             ;;
13025           *)
13026             if test "$GXX" = yes; then
13027               if test "$with_gnu_ld" = no; then
13028                 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'
13029               else
13030                 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'
13031               fi
13032             fi
13033             link_all_deplibs_CXX=yes
13034             ;;
13035         esac
13036         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13037         hardcode_libdir_separator_CXX=:
13038         inherit_rpath_CXX=yes
13039         ;;
13040
13041       linux* | k*bsd*-gnu | kopensolaris*-gnu)
13042         case $cc_basename in
13043           KCC*)
13044             # Kuck and Associates, Inc. (KAI) C++ Compiler
13045
13046             # KCC will only create a shared library if the output file
13047             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13048             # to its proper name (with version) after linking.
13049             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'
13050             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'
13051             # Commands to make compiler produce verbose output that lists
13052             # what "hidden" libraries, object files and flags are used when
13053             # linking a shared library.
13054             #
13055             # There doesn't appear to be a way to prevent this compiler from
13056             # explicitly linking system object files so we need to strip them
13057             # from the output so that they don't get included in the library
13058             # dependencies.
13059             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"'
13060
13061             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13062             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13063
13064             # Archives containing C++ object files must be created using
13065             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13066             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13067             ;;
13068           icpc* | ecpc* )
13069             # Intel C++
13070             with_gnu_ld=yes
13071             # version 8.0 and above of icpc choke on multiply defined symbols
13072             # if we add $predep_objects and $postdep_objects, however 7.1 and
13073             # earlier do not add the objects themselves.
13074             case `$CC -V 2>&1` in
13075               *"Version 7."*)
13076                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13077                 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'
13078                 ;;
13079               *)  # Version 8.0 or newer
13080                 tmp_idyn=
13081                 case $host_cpu in
13082                   ia64*) tmp_idyn=' -i_dynamic';;
13083                 esac
13084                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13085                 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'
13086                 ;;
13087             esac
13088             archive_cmds_need_lc_CXX=no
13089             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13090             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13091             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13092             ;;
13093           pgCC* | pgcpp*)
13094             # Portland Group C++ compiler
13095             case `$CC -V` in
13096             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13097               prelink_cmds_CXX='tpldir=Template.dir~
13098                 rm -rf $tpldir~
13099                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13100                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13101               old_archive_cmds_CXX='tpldir=Template.dir~
13102                 rm -rf $tpldir~
13103                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13104                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13105                 $RANLIB $oldlib'
13106               archive_cmds_CXX='tpldir=Template.dir~
13107                 rm -rf $tpldir~
13108                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13109                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13110               archive_expsym_cmds_CXX='tpldir=Template.dir~
13111                 rm -rf $tpldir~
13112                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13113                 $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'
13114               ;;
13115             *) # Version 6 and above use weak symbols
13116               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13117               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'
13118               ;;
13119             esac
13120
13121             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13122             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13123             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'
13124             ;;
13125           cxx*)
13126             # Compaq C++
13127             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13128             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'
13129
13130             runpath_var=LD_RUN_PATH
13131             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13132             hardcode_libdir_separator_CXX=:
13133
13134             # Commands to make compiler produce verbose output that lists
13135             # what "hidden" libraries, object files and flags are used when
13136             # linking a shared library.
13137             #
13138             # There doesn't appear to be a way to prevent this compiler from
13139             # explicitly linking system object files so we need to strip them
13140             # from the output so that they don't get included in the library
13141             # dependencies.
13142             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'
13143             ;;
13144           xl* | mpixl* | bgxl*)
13145             # IBM XL 8.0 on PPC, with GNU ld
13146             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13147             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13148             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13149             if test "x$supports_anon_versioning" = xyes; then
13150               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13151                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13152                 echo "local: *; };" >> $output_objdir/$libname.ver~
13153                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13154             fi
13155             ;;
13156           *)
13157             case `$CC -V 2>&1 | sed 5q` in
13158             *Sun\ C*)
13159               # Sun C++ 5.9
13160               no_undefined_flag_CXX=' -zdefs'
13161               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13162               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'
13163               hardcode_libdir_flag_spec_CXX='-R$libdir'
13164               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'
13165               compiler_needs_object_CXX=yes
13166
13167               # Not sure whether something based on
13168               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13169               # would be better.
13170               output_verbose_link_cmd='func_echo_all'
13171
13172               # Archives containing C++ object files must be created using
13173               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13174               # necessary to make sure instantiated templates are included
13175               # in the archive.
13176               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13177               ;;
13178             esac
13179             ;;
13180         esac
13181         ;;
13182
13183       lynxos*)
13184         # FIXME: insert proper C++ library support
13185         ld_shlibs_CXX=no
13186         ;;
13187
13188       m88k*)
13189         # FIXME: insert proper C++ library support
13190         ld_shlibs_CXX=no
13191         ;;
13192
13193       mvs*)
13194         case $cc_basename in
13195           cxx*)
13196             # FIXME: insert proper C++ library support
13197             ld_shlibs_CXX=no
13198             ;;
13199           *)
13200             # FIXME: insert proper C++ library support
13201             ld_shlibs_CXX=no
13202             ;;
13203         esac
13204         ;;
13205
13206       netbsd*)
13207         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13208           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13209           wlarc=
13210           hardcode_libdir_flag_spec_CXX='-R$libdir'
13211           hardcode_direct_CXX=yes
13212           hardcode_shlibpath_var_CXX=no
13213         fi
13214         # Workaround some broken pre-1.5 toolchains
13215         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13216         ;;
13217
13218       *nto* | *qnx*)
13219         ld_shlibs_CXX=yes
13220         ;;
13221
13222       openbsd2*)
13223         # C++ shared libraries are fairly broken
13224         ld_shlibs_CXX=no
13225         ;;
13226
13227       openbsd*)
13228         if test -f /usr/libexec/ld.so; then
13229           hardcode_direct_CXX=yes
13230           hardcode_shlibpath_var_CXX=no
13231           hardcode_direct_absolute_CXX=yes
13232           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13233           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13234           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13235             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13236             export_dynamic_flag_spec_CXX='${wl}-E'
13237             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13238           fi
13239           output_verbose_link_cmd=func_echo_all
13240         else
13241           ld_shlibs_CXX=no
13242         fi
13243         ;;
13244
13245       osf3* | osf4* | osf5*)
13246         case $cc_basename in
13247           KCC*)
13248             # Kuck and Associates, Inc. (KAI) C++ Compiler
13249
13250             # KCC will only create a shared library if the output file
13251             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13252             # to its proper name (with version) after linking.
13253             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'
13254
13255             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13256             hardcode_libdir_separator_CXX=:
13257
13258             # Archives containing C++ object files must be created using
13259             # the KAI C++ compiler.
13260             case $host in
13261               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13262               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13263             esac
13264             ;;
13265           RCC*)
13266             # Rational C++ 2.4.1
13267             # FIXME: insert proper C++ library support
13268             ld_shlibs_CXX=no
13269             ;;
13270           cxx*)
13271             case $host in
13272               osf3*)
13273                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13274                 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'
13275                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13276                 ;;
13277               *)
13278                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13279                 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'
13280                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13281                   echo "-hidden">> $lib.exp~
13282                   $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~
13283                   $RM $lib.exp'
13284                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13285                 ;;
13286             esac
13287
13288             hardcode_libdir_separator_CXX=:
13289
13290             # Commands to make compiler produce verbose output that lists
13291             # what "hidden" libraries, object files and flags are used when
13292             # linking a shared library.
13293             #
13294             # There doesn't appear to be a way to prevent this compiler from
13295             # explicitly linking system object files so we need to strip them
13296             # from the output so that they don't get included in the library
13297             # dependencies.
13298             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"'
13299             ;;
13300           *)
13301             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13302               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13303               case $host in
13304                 osf3*)
13305                   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'
13306                   ;;
13307                 *)
13308                   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'
13309                   ;;
13310               esac
13311
13312               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13313               hardcode_libdir_separator_CXX=:
13314
13315               # Commands to make compiler produce verbose output that lists
13316               # what "hidden" libraries, object files and flags are used when
13317               # linking a shared library.
13318               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13319
13320             else
13321               # FIXME: insert proper C++ library support
13322               ld_shlibs_CXX=no
13323             fi
13324             ;;
13325         esac
13326         ;;
13327
13328       psos*)
13329         # FIXME: insert proper C++ library support
13330         ld_shlibs_CXX=no
13331         ;;
13332
13333       sunos4*)
13334         case $cc_basename in
13335           CC*)
13336             # Sun C++ 4.x
13337             # FIXME: insert proper C++ library support
13338             ld_shlibs_CXX=no
13339             ;;
13340           lcc*)
13341             # Lucid
13342             # FIXME: insert proper C++ library support
13343             ld_shlibs_CXX=no
13344             ;;
13345           *)
13346             # FIXME: insert proper C++ library support
13347             ld_shlibs_CXX=no
13348             ;;
13349         esac
13350         ;;
13351
13352       solaris*)
13353         case $cc_basename in
13354           CC* | sunCC*)
13355             # Sun C++ 4.2, 5.x and Centerline C++
13356             archive_cmds_need_lc_CXX=yes
13357             no_undefined_flag_CXX=' -zdefs'
13358             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13359             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13360               $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'
13361
13362             hardcode_libdir_flag_spec_CXX='-R$libdir'
13363             hardcode_shlibpath_var_CXX=no
13364             case $host_os in
13365               solaris2.[0-5] | solaris2.[0-5].*) ;;
13366               *)
13367                 # The compiler driver will combine and reorder linker options,
13368                 # but understands `-z linker_flag'.
13369                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13370                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13371                 ;;
13372             esac
13373             link_all_deplibs_CXX=yes
13374
13375             output_verbose_link_cmd='func_echo_all'
13376
13377             # Archives containing C++ object files must be created using
13378             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13379             # necessary to make sure instantiated templates are included
13380             # in the archive.
13381             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13382             ;;
13383           gcx*)
13384             # Green Hills C++ Compiler
13385             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13386
13387             # The C++ compiler must be used to create the archive.
13388             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13389             ;;
13390           *)
13391             # GNU C++ compiler with Solaris linker
13392             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13393               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13394               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13395                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13396                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13397                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13398
13399                 # Commands to make compiler produce verbose output that lists
13400                 # what "hidden" libraries, object files and flags are used when
13401                 # linking a shared library.
13402                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13403               else
13404                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13405                 # platform.
13406                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13407                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13408                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13409
13410                 # Commands to make compiler produce verbose output that lists
13411                 # what "hidden" libraries, object files and flags are used when
13412                 # linking a shared library.
13413                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13414               fi
13415
13416               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13417               case $host_os in
13418                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13419                 *)
13420                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13421                   ;;
13422               esac
13423             fi
13424             ;;
13425         esac
13426         ;;
13427
13428     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13429       no_undefined_flag_CXX='${wl}-z,text'
13430       archive_cmds_need_lc_CXX=no
13431       hardcode_shlibpath_var_CXX=no
13432       runpath_var='LD_RUN_PATH'
13433
13434       case $cc_basename in
13435         CC*)
13436           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13437           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13438           ;;
13439         *)
13440           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13441           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13442           ;;
13443       esac
13444       ;;
13445
13446       sysv5* | sco3.2v5* | sco5v6*)
13447         # Note: We can NOT use -z defs as we might desire, because we do not
13448         # link with -lc, and that would cause any symbols used from libc to
13449         # always be unresolved, which means just about no library would
13450         # ever link correctly.  If we're not using GNU ld we use -z text
13451         # though, which does catch some bad symbols but isn't as heavy-handed
13452         # as -z defs.
13453         no_undefined_flag_CXX='${wl}-z,text'
13454         allow_undefined_flag_CXX='${wl}-z,nodefs'
13455         archive_cmds_need_lc_CXX=no
13456         hardcode_shlibpath_var_CXX=no
13457         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13458         hardcode_libdir_separator_CXX=':'
13459         link_all_deplibs_CXX=yes
13460         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13461         runpath_var='LD_RUN_PATH'
13462
13463         case $cc_basename in
13464           CC*)
13465             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13466             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13467             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13468               '"$old_archive_cmds_CXX"
13469             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13470               '"$reload_cmds_CXX"
13471             ;;
13472           *)
13473             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13474             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13475             ;;
13476         esac
13477       ;;
13478
13479       tandem*)
13480         case $cc_basename in
13481           NCC*)
13482             # NonStop-UX NCC 3.20
13483             # FIXME: insert proper C++ library support
13484             ld_shlibs_CXX=no
13485             ;;
13486           *)
13487             # FIXME: insert proper C++ library support
13488             ld_shlibs_CXX=no
13489             ;;
13490         esac
13491         ;;
13492
13493       vxworks*)
13494         # FIXME: insert proper C++ library support
13495         ld_shlibs_CXX=no
13496         ;;
13497
13498       *)
13499         # FIXME: insert proper C++ library support
13500         ld_shlibs_CXX=no
13501         ;;
13502     esac
13503
13504     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13505 $as_echo "$ld_shlibs_CXX" >&6; }
13506     test "$ld_shlibs_CXX" = no && can_build_shared=no
13507
13508     GCC_CXX="$GXX"
13509     LD_CXX="$LD"
13510
13511     ## CAVEAT EMPTOR:
13512     ## There is no encapsulation within the following macros, do not change
13513     ## the running order or otherwise move them around unless you know exactly
13514     ## what you are doing...
13515     # Dependencies to place before and after the object being linked:
13516 predep_objects_CXX=
13517 postdep_objects_CXX=
13518 predeps_CXX=
13519 postdeps_CXX=
13520 compiler_lib_search_path_CXX=
13521
13522 cat > conftest.$ac_ext <<_LT_EOF
13523 class Foo
13524 {
13525 public:
13526   Foo (void) { a = 0; }
13527 private:
13528   int a;
13529 };
13530 _LT_EOF
13531
13532
13533 _lt_libdeps_save_CFLAGS=$CFLAGS
13534 case "$CC $CFLAGS " in #(
13535 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13536 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13537 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13538 esac
13539
13540 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13541   (eval $ac_compile) 2>&5
13542   ac_status=$?
13543   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13544   test $ac_status = 0; }; then
13545   # Parse the compiler output and extract the necessary
13546   # objects, libraries and library flags.
13547
13548   # Sentinel used to keep track of whether or not we are before
13549   # the conftest object file.
13550   pre_test_object_deps_done=no
13551
13552   for p in `eval "$output_verbose_link_cmd"`; do
13553     case ${prev}${p} in
13554
13555     -L* | -R* | -l*)
13556        # Some compilers place space between "-{L,R}" and the path.
13557        # Remove the space.
13558        if test $p = "-L" ||
13559           test $p = "-R"; then
13560          prev=$p
13561          continue
13562        fi
13563
13564        # Expand the sysroot to ease extracting the directories later.
13565        if test -z "$prev"; then
13566          case $p in
13567          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13568          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13569          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13570          esac
13571        fi
13572        case $p in
13573        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13574        esac
13575        if test "$pre_test_object_deps_done" = no; then
13576          case ${prev} in
13577          -L | -R)
13578            # Internal compiler library paths should come after those
13579            # provided the user.  The postdeps already come after the
13580            # user supplied libs so there is no need to process them.
13581            if test -z "$compiler_lib_search_path_CXX"; then
13582              compiler_lib_search_path_CXX="${prev}${p}"
13583            else
13584              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13585            fi
13586            ;;
13587          # The "-l" case would never come before the object being
13588          # linked, so don't bother handling this case.
13589          esac
13590        else
13591          if test -z "$postdeps_CXX"; then
13592            postdeps_CXX="${prev}${p}"
13593          else
13594            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13595          fi
13596        fi
13597        prev=
13598        ;;
13599
13600     *.lto.$objext) ;; # Ignore GCC LTO objects
13601     *.$objext)
13602        # This assumes that the test object file only shows up
13603        # once in the compiler output.
13604        if test "$p" = "conftest.$objext"; then
13605          pre_test_object_deps_done=yes
13606          continue
13607        fi
13608
13609        if test "$pre_test_object_deps_done" = no; then
13610          if test -z "$predep_objects_CXX"; then
13611            predep_objects_CXX="$p"
13612          else
13613            predep_objects_CXX="$predep_objects_CXX $p"
13614          fi
13615        else
13616          if test -z "$postdep_objects_CXX"; then
13617            postdep_objects_CXX="$p"
13618          else
13619            postdep_objects_CXX="$postdep_objects_CXX $p"
13620          fi
13621        fi
13622        ;;
13623
13624     *) ;; # Ignore the rest.
13625
13626     esac
13627   done
13628
13629   # Clean up.
13630   rm -f a.out a.exe
13631 else
13632   echo "libtool.m4: error: problem compiling CXX test program"
13633 fi
13634
13635 $RM -f confest.$objext
13636 CFLAGS=$_lt_libdeps_save_CFLAGS
13637
13638 # PORTME: override above test on systems where it is broken
13639 case $host_os in
13640 interix[3-9]*)
13641   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13642   # hack all around it, let's just trust "g++" to DTRT.
13643   predep_objects_CXX=
13644   postdep_objects_CXX=
13645   postdeps_CXX=
13646   ;;
13647
13648 linux*)
13649   case `$CC -V 2>&1 | sed 5q` in
13650   *Sun\ C*)
13651     # Sun C++ 5.9
13652
13653     # The more standards-conforming stlport4 library is
13654     # incompatible with the Cstd library. Avoid specifying
13655     # it if it's in CXXFLAGS. Ignore libCrun as
13656     # -library=stlport4 depends on it.
13657     case " $CXX $CXXFLAGS " in
13658     *" -library=stlport4 "*)
13659       solaris_use_stlport4=yes
13660       ;;
13661     esac
13662
13663     if test "$solaris_use_stlport4" != yes; then
13664       postdeps_CXX='-library=Cstd -library=Crun'
13665     fi
13666     ;;
13667   esac
13668   ;;
13669
13670 solaris*)
13671   case $cc_basename in
13672   CC* | sunCC*)
13673     # The more standards-conforming stlport4 library is
13674     # incompatible with the Cstd library. Avoid specifying
13675     # it if it's in CXXFLAGS. Ignore libCrun as
13676     # -library=stlport4 depends on it.
13677     case " $CXX $CXXFLAGS " in
13678     *" -library=stlport4 "*)
13679       solaris_use_stlport4=yes
13680       ;;
13681     esac
13682
13683     # Adding this requires a known-good setup of shared libraries for
13684     # Sun compiler versions before 5.6, else PIC objects from an old
13685     # archive will be linked into the output, leading to subtle bugs.
13686     if test "$solaris_use_stlport4" != yes; then
13687       postdeps_CXX='-library=Cstd -library=Crun'
13688     fi
13689     ;;
13690   esac
13691   ;;
13692 esac
13693
13694
13695 case " $postdeps_CXX " in
13696 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13697 esac
13698  compiler_lib_search_dirs_CXX=
13699 if test -n "${compiler_lib_search_path_CXX}"; then
13700  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13701 fi
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733     lt_prog_compiler_wl_CXX=
13734 lt_prog_compiler_pic_CXX=
13735 lt_prog_compiler_static_CXX=
13736
13737
13738   # C++ specific cases for pic, static, wl, etc.
13739   if test "$GXX" = yes; then
13740     lt_prog_compiler_wl_CXX='-Wl,'
13741     lt_prog_compiler_static_CXX='-static'
13742
13743     case $host_os in
13744     aix*)
13745       # All AIX code is PIC.
13746       if test "$host_cpu" = ia64; then
13747         # AIX 5 now supports IA64 processor
13748         lt_prog_compiler_static_CXX='-Bstatic'
13749       fi
13750       ;;
13751
13752     amigaos*)
13753       case $host_cpu in
13754       powerpc)
13755             # see comment about AmigaOS4 .so support
13756             lt_prog_compiler_pic_CXX='-fPIC'
13757         ;;
13758       m68k)
13759             # FIXME: we need at least 68020 code to build shared libraries, but
13760             # adding the `-m68020' flag to GCC prevents building anything better,
13761             # like `-m68040'.
13762             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13763         ;;
13764       esac
13765       ;;
13766
13767     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13768       # PIC is the default for these OSes.
13769       ;;
13770     mingw* | cygwin* | os2* | pw32* | cegcc*)
13771       # This hack is so that the source file can tell whether it is being
13772       # built for inclusion in a dll (and should export symbols for example).
13773       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13774       # (--disable-auto-import) libraries
13775       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13776       ;;
13777     darwin* | rhapsody*)
13778       # PIC is the default on this platform
13779       # Common symbols not allowed in MH_DYLIB files
13780       lt_prog_compiler_pic_CXX='-fno-common'
13781       ;;
13782     *djgpp*)
13783       # DJGPP does not support shared libraries at all
13784       lt_prog_compiler_pic_CXX=
13785       ;;
13786     haiku*)
13787       # PIC is the default for Haiku.
13788       # The "-static" flag exists, but is broken.
13789       lt_prog_compiler_static_CXX=
13790       ;;
13791     interix[3-9]*)
13792       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13793       # Instead, we relocate shared libraries at runtime.
13794       ;;
13795     sysv4*MP*)
13796       if test -d /usr/nec; then
13797         lt_prog_compiler_pic_CXX=-Kconform_pic
13798       fi
13799       ;;
13800     hpux*)
13801       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13802       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13803       # sets the default TLS model and affects inlining.
13804       case $host_cpu in
13805       hppa*64*)
13806         ;;
13807       *)
13808         lt_prog_compiler_pic_CXX='-fPIC'
13809         ;;
13810       esac
13811       ;;
13812     *qnx* | *nto*)
13813       # QNX uses GNU C++, but need to define -shared option too, otherwise
13814       # it will coredump.
13815       lt_prog_compiler_pic_CXX='-fPIC -shared'
13816       ;;
13817     *)
13818       lt_prog_compiler_pic_CXX='-fPIC'
13819       ;;
13820     esac
13821   else
13822     case $host_os in
13823       aix[4-9]*)
13824         # All AIX code is PIC.
13825         if test "$host_cpu" = ia64; then
13826           # AIX 5 now supports IA64 processor
13827           lt_prog_compiler_static_CXX='-Bstatic'
13828         else
13829           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13830         fi
13831         ;;
13832       chorus*)
13833         case $cc_basename in
13834         cxch68*)
13835           # Green Hills C++ Compiler
13836           # _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"
13837           ;;
13838         esac
13839         ;;
13840       mingw* | cygwin* | os2* | pw32* | cegcc*)
13841         # This hack is so that the source file can tell whether it is being
13842         # built for inclusion in a dll (and should export symbols for example).
13843         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13844         ;;
13845       dgux*)
13846         case $cc_basename in
13847           ec++*)
13848             lt_prog_compiler_pic_CXX='-KPIC'
13849             ;;
13850           ghcx*)
13851             # Green Hills C++ Compiler
13852             lt_prog_compiler_pic_CXX='-pic'
13853             ;;
13854           *)
13855             ;;
13856         esac
13857         ;;
13858       freebsd* | dragonfly*)
13859         # FreeBSD uses GNU C++
13860         ;;
13861       hpux9* | hpux10* | hpux11*)
13862         case $cc_basename in
13863           CC*)
13864             lt_prog_compiler_wl_CXX='-Wl,'
13865             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13866             if test "$host_cpu" != ia64; then
13867               lt_prog_compiler_pic_CXX='+Z'
13868             fi
13869             ;;
13870           aCC*)
13871             lt_prog_compiler_wl_CXX='-Wl,'
13872             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13873             case $host_cpu in
13874             hppa*64*|ia64*)
13875               # +Z the default
13876               ;;
13877             *)
13878               lt_prog_compiler_pic_CXX='+Z'
13879               ;;
13880             esac
13881             ;;
13882           *)
13883             ;;
13884         esac
13885         ;;
13886       interix*)
13887         # This is c89, which is MS Visual C++ (no shared libs)
13888         # Anyone wants to do a port?
13889         ;;
13890       irix5* | irix6* | nonstopux*)
13891         case $cc_basename in
13892           CC*)
13893             lt_prog_compiler_wl_CXX='-Wl,'
13894             lt_prog_compiler_static_CXX='-non_shared'
13895             # CC pic flag -KPIC is the default.
13896             ;;
13897           *)
13898             ;;
13899         esac
13900         ;;
13901       linux* | k*bsd*-gnu | kopensolaris*-gnu)
13902         case $cc_basename in
13903           KCC*)
13904             # KAI C++ Compiler
13905             lt_prog_compiler_wl_CXX='--backend -Wl,'
13906             lt_prog_compiler_pic_CXX='-fPIC'
13907             ;;
13908           ecpc* )
13909             # old Intel C++ for x86_64 which still supported -KPIC.
13910             lt_prog_compiler_wl_CXX='-Wl,'
13911             lt_prog_compiler_pic_CXX='-KPIC'
13912             lt_prog_compiler_static_CXX='-static'
13913             ;;
13914           icpc* )
13915             # Intel C++, used to be incompatible with GCC.
13916             # ICC 10 doesn't accept -KPIC any more.
13917             lt_prog_compiler_wl_CXX='-Wl,'
13918             lt_prog_compiler_pic_CXX='-fPIC'
13919             lt_prog_compiler_static_CXX='-static'
13920             ;;
13921           pgCC* | pgcpp*)
13922             # Portland Group C++ compiler
13923             lt_prog_compiler_wl_CXX='-Wl,'
13924             lt_prog_compiler_pic_CXX='-fpic'
13925             lt_prog_compiler_static_CXX='-Bstatic'
13926             ;;
13927           cxx*)
13928             # Compaq C++
13929             # Make sure the PIC flag is empty.  It appears that all Alpha
13930             # Linux and Compaq Tru64 Unix objects are PIC.
13931             lt_prog_compiler_pic_CXX=
13932             lt_prog_compiler_static_CXX='-non_shared'
13933             ;;
13934           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13935             # IBM XL 8.0, 9.0 on PPC and BlueGene
13936             lt_prog_compiler_wl_CXX='-Wl,'
13937             lt_prog_compiler_pic_CXX='-qpic'
13938             lt_prog_compiler_static_CXX='-qstaticlink'
13939             ;;
13940           *)
13941             case `$CC -V 2>&1 | sed 5q` in
13942             *Sun\ C*)
13943               # Sun C++ 5.9
13944               lt_prog_compiler_pic_CXX='-KPIC'
13945               lt_prog_compiler_static_CXX='-Bstatic'
13946               lt_prog_compiler_wl_CXX='-Qoption ld '
13947               ;;
13948             esac
13949             ;;
13950         esac
13951         ;;
13952       lynxos*)
13953         ;;
13954       m88k*)
13955         ;;
13956       mvs*)
13957         case $cc_basename in
13958           cxx*)
13959             lt_prog_compiler_pic_CXX='-W c,exportall'
13960             ;;
13961           *)
13962             ;;
13963         esac
13964         ;;
13965       netbsd*)
13966         ;;
13967       *qnx* | *nto*)
13968         # QNX uses GNU C++, but need to define -shared option too, otherwise
13969         # it will coredump.
13970         lt_prog_compiler_pic_CXX='-fPIC -shared'
13971         ;;
13972       osf3* | osf4* | osf5*)
13973         case $cc_basename in
13974           KCC*)
13975             lt_prog_compiler_wl_CXX='--backend -Wl,'
13976             ;;
13977           RCC*)
13978             # Rational C++ 2.4.1
13979             lt_prog_compiler_pic_CXX='-pic'
13980             ;;
13981           cxx*)
13982             # Digital/Compaq C++
13983             lt_prog_compiler_wl_CXX='-Wl,'
13984             # Make sure the PIC flag is empty.  It appears that all Alpha
13985             # Linux and Compaq Tru64 Unix objects are PIC.
13986             lt_prog_compiler_pic_CXX=
13987             lt_prog_compiler_static_CXX='-non_shared'
13988             ;;
13989           *)
13990             ;;
13991         esac
13992         ;;
13993       psos*)
13994         ;;
13995       solaris*)
13996         case $cc_basename in
13997           CC* | sunCC*)
13998             # Sun C++ 4.2, 5.x and Centerline C++
13999             lt_prog_compiler_pic_CXX='-KPIC'
14000             lt_prog_compiler_static_CXX='-Bstatic'
14001             lt_prog_compiler_wl_CXX='-Qoption ld '
14002             ;;
14003           gcx*)
14004             # Green Hills C++ Compiler
14005             lt_prog_compiler_pic_CXX='-PIC'
14006             ;;
14007           *)
14008             ;;
14009         esac
14010         ;;
14011       sunos4*)
14012         case $cc_basename in
14013           CC*)
14014             # Sun C++ 4.x
14015             lt_prog_compiler_pic_CXX='-pic'
14016             lt_prog_compiler_static_CXX='-Bstatic'
14017             ;;
14018           lcc*)
14019             # Lucid
14020             lt_prog_compiler_pic_CXX='-pic'
14021             ;;
14022           *)
14023             ;;
14024         esac
14025         ;;
14026       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14027         case $cc_basename in
14028           CC*)
14029             lt_prog_compiler_wl_CXX='-Wl,'
14030             lt_prog_compiler_pic_CXX='-KPIC'
14031             lt_prog_compiler_static_CXX='-Bstatic'
14032             ;;
14033         esac
14034         ;;
14035       tandem*)
14036         case $cc_basename in
14037           NCC*)
14038             # NonStop-UX NCC 3.20
14039             lt_prog_compiler_pic_CXX='-KPIC'
14040             ;;
14041           *)
14042             ;;
14043         esac
14044         ;;
14045       vxworks*)
14046         ;;
14047       *)
14048         lt_prog_compiler_can_build_shared_CXX=no
14049         ;;
14050     esac
14051   fi
14052
14053 case $host_os in
14054   # For platforms which do not support PIC, -DPIC is meaningless:
14055   *djgpp*)
14056     lt_prog_compiler_pic_CXX=
14057     ;;
14058   *)
14059     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14060     ;;
14061 esac
14062
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14064 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14065 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14066   $as_echo_n "(cached) " >&6
14067 else
14068   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14069 fi
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14071 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14072 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14073
14074 #
14075 # Check to make sure the PIC flag actually works.
14076 #
14077 if test -n "$lt_prog_compiler_pic_CXX"; then
14078   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14079 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14080 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14081   $as_echo_n "(cached) " >&6
14082 else
14083   lt_cv_prog_compiler_pic_works_CXX=no
14084    ac_outfile=conftest.$ac_objext
14085    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14086    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14087    # Insert the option either (1) after the last *FLAGS variable, or
14088    # (2) before a word containing "conftest.", or (3) at the end.
14089    # Note that $ac_compile itself does not contain backslashes and begins
14090    # with a dollar sign (not a hyphen), so the echo should work correctly.
14091    # The option is referenced via a variable to avoid confusing sed.
14092    lt_compile=`echo "$ac_compile" | $SED \
14093    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14094    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14095    -e 's:$: $lt_compiler_flag:'`
14096    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14097    (eval "$lt_compile" 2>conftest.err)
14098    ac_status=$?
14099    cat conftest.err >&5
14100    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14101    if (exit $ac_status) && test -s "$ac_outfile"; then
14102      # The compiler can only warn and ignore the option if not recognized
14103      # So say no if there are warnings other than the usual output.
14104      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14105      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14106      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14107        lt_cv_prog_compiler_pic_works_CXX=yes
14108      fi
14109    fi
14110    $RM conftest*
14111
14112 fi
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14114 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14115
14116 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14117     case $lt_prog_compiler_pic_CXX in
14118      "" | " "*) ;;
14119      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14120      esac
14121 else
14122     lt_prog_compiler_pic_CXX=
14123      lt_prog_compiler_can_build_shared_CXX=no
14124 fi
14125
14126 fi
14127
14128
14129
14130
14131
14132 #
14133 # Check to make sure the static flag actually works.
14134 #
14135 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14137 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14138 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14139   $as_echo_n "(cached) " >&6
14140 else
14141   lt_cv_prog_compiler_static_works_CXX=no
14142    save_LDFLAGS="$LDFLAGS"
14143    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14144    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14145    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14146      # The linker can only warn and ignore the option if not recognized
14147      # So say no if there are warnings
14148      if test -s conftest.err; then
14149        # Append any errors to the config.log.
14150        cat conftest.err 1>&5
14151        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14152        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14153        if diff conftest.exp conftest.er2 >/dev/null; then
14154          lt_cv_prog_compiler_static_works_CXX=yes
14155        fi
14156      else
14157        lt_cv_prog_compiler_static_works_CXX=yes
14158      fi
14159    fi
14160    $RM -r conftest*
14161    LDFLAGS="$save_LDFLAGS"
14162
14163 fi
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14165 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14166
14167 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14168     :
14169 else
14170     lt_prog_compiler_static_CXX=
14171 fi
14172
14173
14174
14175
14176     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14177 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14178 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14179   $as_echo_n "(cached) " >&6
14180 else
14181   lt_cv_prog_compiler_c_o_CXX=no
14182    $RM -r conftest 2>/dev/null
14183    mkdir conftest
14184    cd conftest
14185    mkdir out
14186    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14187
14188    lt_compiler_flag="-o out/conftest2.$ac_objext"
14189    # Insert the option either (1) after the last *FLAGS variable, or
14190    # (2) before a word containing "conftest.", or (3) at the end.
14191    # Note that $ac_compile itself does not contain backslashes and begins
14192    # with a dollar sign (not a hyphen), so the echo should work correctly.
14193    lt_compile=`echo "$ac_compile" | $SED \
14194    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14195    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14196    -e 's:$: $lt_compiler_flag:'`
14197    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14198    (eval "$lt_compile" 2>out/conftest.err)
14199    ac_status=$?
14200    cat out/conftest.err >&5
14201    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14202    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14203    then
14204      # The compiler can only warn and ignore the option if not recognized
14205      # So say no if there are warnings
14206      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14207      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14208      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14209        lt_cv_prog_compiler_c_o_CXX=yes
14210      fi
14211    fi
14212    chmod u+w . 2>&5
14213    $RM conftest*
14214    # SGI C++ compiler will create directory out/ii_files/ for
14215    # template instantiation
14216    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14217    $RM out/* && rmdir out
14218    cd ..
14219    $RM -r conftest
14220    $RM conftest*
14221
14222 fi
14223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14224 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14225
14226
14227
14228     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14229 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14230 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14231   $as_echo_n "(cached) " >&6
14232 else
14233   lt_cv_prog_compiler_c_o_CXX=no
14234    $RM -r conftest 2>/dev/null
14235    mkdir conftest
14236    cd conftest
14237    mkdir out
14238    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14239
14240    lt_compiler_flag="-o out/conftest2.$ac_objext"
14241    # Insert the option either (1) after the last *FLAGS variable, or
14242    # (2) before a word containing "conftest.", or (3) at the end.
14243    # Note that $ac_compile itself does not contain backslashes and begins
14244    # with a dollar sign (not a hyphen), so the echo should work correctly.
14245    lt_compile=`echo "$ac_compile" | $SED \
14246    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14247    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14248    -e 's:$: $lt_compiler_flag:'`
14249    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14250    (eval "$lt_compile" 2>out/conftest.err)
14251    ac_status=$?
14252    cat out/conftest.err >&5
14253    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14255    then
14256      # The compiler can only warn and ignore the option if not recognized
14257      # So say no if there are warnings
14258      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14259      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14260      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14261        lt_cv_prog_compiler_c_o_CXX=yes
14262      fi
14263    fi
14264    chmod u+w . 2>&5
14265    $RM conftest*
14266    # SGI C++ compiler will create directory out/ii_files/ for
14267    # template instantiation
14268    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14269    $RM out/* && rmdir out
14270    cd ..
14271    $RM -r conftest
14272    $RM conftest*
14273
14274 fi
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14276 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14277
14278
14279
14280
14281 hard_links="nottested"
14282 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14283   # do not overwrite the value of need_locks provided by the user
14284   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14285 $as_echo_n "checking if we can lock with hard links... " >&6; }
14286   hard_links=yes
14287   $RM conftest*
14288   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14289   touch conftest.a
14290   ln conftest.a conftest.b 2>&5 || hard_links=no
14291   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14293 $as_echo "$hard_links" >&6; }
14294   if test "$hard_links" = no; then
14295     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14296 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14297     need_locks=warn
14298   fi
14299 else
14300   need_locks=no
14301 fi
14302
14303
14304
14305     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14306 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14307
14308   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14309   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14310   case $host_os in
14311   aix[4-9]*)
14312     # If we're using GNU nm, then we don't want the "-C" option.
14313     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14314     # Also, AIX nm treats weak defined symbols like other global defined
14315     # symbols, whereas GNU nm marks them as "W".
14316     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14317       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'
14318     else
14319       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'
14320     fi
14321     ;;
14322   pw32*)
14323     export_symbols_cmds_CXX="$ltdll_cmds"
14324     ;;
14325   cygwin* | mingw* | cegcc*)
14326     case $cc_basename in
14327     cl*)
14328       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14329       ;;
14330     *)
14331       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'
14332       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14333       ;;
14334     esac
14335     ;;
14336   *)
14337     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14338     ;;
14339   esac
14340
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14342 $as_echo "$ld_shlibs_CXX" >&6; }
14343 test "$ld_shlibs_CXX" = no && can_build_shared=no
14344
14345 with_gnu_ld_CXX=$with_gnu_ld
14346
14347
14348
14349
14350
14351
14352 #
14353 # Do we need to explicitly link libc?
14354 #
14355 case "x$archive_cmds_need_lc_CXX" in
14356 x|xyes)
14357   # Assume -lc should be added
14358   archive_cmds_need_lc_CXX=yes
14359
14360   if test "$enable_shared" = yes && test "$GCC" = yes; then
14361     case $archive_cmds_CXX in
14362     *'~'*)
14363       # FIXME: we may have to deal with multi-command sequences.
14364       ;;
14365     '$CC '*)
14366       # Test whether the compiler implicitly links with -lc since on some
14367       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14368       # to ld, don't add -lc before -lgcc.
14369       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14370 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14371 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14372   $as_echo_n "(cached) " >&6
14373 else
14374   $RM conftest*
14375         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14376
14377         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14378   (eval $ac_compile) 2>&5
14379   ac_status=$?
14380   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14381   test $ac_status = 0; } 2>conftest.err; then
14382           soname=conftest
14383           lib=conftest
14384           libobjs=conftest.$ac_objext
14385           deplibs=
14386           wl=$lt_prog_compiler_wl_CXX
14387           pic_flag=$lt_prog_compiler_pic_CXX
14388           compiler_flags=-v
14389           linker_flags=-v
14390           verstring=
14391           output_objdir=.
14392           libname=conftest
14393           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14394           allow_undefined_flag_CXX=
14395           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14396   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14397   ac_status=$?
14398   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14399   test $ac_status = 0; }
14400           then
14401             lt_cv_archive_cmds_need_lc_CXX=no
14402           else
14403             lt_cv_archive_cmds_need_lc_CXX=yes
14404           fi
14405           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14406         else
14407           cat conftest.err 1>&5
14408         fi
14409         $RM conftest*
14410
14411 fi
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14413 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14414       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14415       ;;
14416     esac
14417   fi
14418   ;;
14419 esac
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458
14459
14460
14461
14462
14463
14464
14465
14466
14467
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480
14481
14482     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14483 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14484
14485 library_names_spec=
14486 libname_spec='lib$name'
14487 soname_spec=
14488 shrext_cmds=".so"
14489 postinstall_cmds=
14490 postuninstall_cmds=
14491 finish_cmds=
14492 finish_eval=
14493 shlibpath_var=
14494 shlibpath_overrides_runpath=unknown
14495 version_type=none
14496 dynamic_linker="$host_os ld.so"
14497 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14498 need_lib_prefix=unknown
14499 hardcode_into_libs=no
14500
14501 # when you set need_version to no, make sure it does not cause -set_version
14502 # flags to be left without arguments
14503 need_version=unknown
14504
14505 case $host_os in
14506 aix3*)
14507   version_type=linux # correct to gnu/linux during the next big refactor
14508   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14509   shlibpath_var=LIBPATH
14510
14511   # AIX 3 has no versioning support, so we append a major version to the name.
14512   soname_spec='${libname}${release}${shared_ext}$major'
14513   ;;
14514
14515 aix[4-9]*)
14516   version_type=linux # correct to gnu/linux during the next big refactor
14517   need_lib_prefix=no
14518   need_version=no
14519   hardcode_into_libs=yes
14520   if test "$host_cpu" = ia64; then
14521     # AIX 5 supports IA64
14522     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14523     shlibpath_var=LD_LIBRARY_PATH
14524   else
14525     # With GCC up to 2.95.x, collect2 would create an import file
14526     # for dependence libraries.  The import file would start with
14527     # the line `#! .'.  This would cause the generated library to
14528     # depend on `.', always an invalid library.  This was fixed in
14529     # development snapshots of GCC prior to 3.0.
14530     case $host_os in
14531       aix4 | aix4.[01] | aix4.[01].*)
14532       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14533            echo ' yes '
14534            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14535         :
14536       else
14537         can_build_shared=no
14538       fi
14539       ;;
14540     esac
14541     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14542     # soname into executable. Probably we can add versioning support to
14543     # collect2, so additional links can be useful in future.
14544     if test "$aix_use_runtimelinking" = yes; then
14545       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14546       # instead of lib<name>.a to let people know that these are not
14547       # typical AIX shared libraries.
14548       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14549     else
14550       # We preserve .a as extension for shared libraries through AIX4.2
14551       # and later when we are not doing run time linking.
14552       library_names_spec='${libname}${release}.a $libname.a'
14553       soname_spec='${libname}${release}${shared_ext}$major'
14554     fi
14555     shlibpath_var=LIBPATH
14556   fi
14557   ;;
14558
14559 amigaos*)
14560   case $host_cpu in
14561   powerpc)
14562     # Since July 2007 AmigaOS4 officially supports .so libraries.
14563     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14564     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14565     ;;
14566   m68k)
14567     library_names_spec='$libname.ixlibrary $libname.a'
14568     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14569     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'
14570     ;;
14571   esac
14572   ;;
14573
14574 beos*)
14575   library_names_spec='${libname}${shared_ext}'
14576   dynamic_linker="$host_os ld.so"
14577   shlibpath_var=LIBRARY_PATH
14578   ;;
14579
14580 bsdi[45]*)
14581   version_type=linux # correct to gnu/linux during the next big refactor
14582   need_version=no
14583   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14584   soname_spec='${libname}${release}${shared_ext}$major'
14585   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14586   shlibpath_var=LD_LIBRARY_PATH
14587   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14588   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14589   # the default ld.so.conf also contains /usr/contrib/lib and
14590   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14591   # libtool to hard-code these into programs
14592   ;;
14593
14594 cygwin* | mingw* | pw32* | cegcc*)
14595   version_type=windows
14596   shrext_cmds=".dll"
14597   need_version=no
14598   need_lib_prefix=no
14599
14600   case $GCC,$cc_basename in
14601   yes,*)
14602     # gcc
14603     library_names_spec='$libname.dll.a'
14604     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14605     postinstall_cmds='base_file=`basename \${file}`~
14606       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14607       dldir=$destdir/`dirname \$dlpath`~
14608       test -d \$dldir || mkdir -p \$dldir~
14609       $install_prog $dir/$dlname \$dldir/$dlname~
14610       chmod a+x \$dldir/$dlname~
14611       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14612         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14613       fi'
14614     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14615       dlpath=$dir/\$dldll~
14616        $RM \$dlpath'
14617     shlibpath_overrides_runpath=yes
14618
14619     case $host_os in
14620     cygwin*)
14621       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14622       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14623
14624       ;;
14625     mingw* | cegcc*)
14626       # MinGW DLLs use traditional 'lib' prefix
14627       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14628       ;;
14629     pw32*)
14630       # pw32 DLLs use 'pw' prefix rather than 'lib'
14631       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14632       ;;
14633     esac
14634     dynamic_linker='Win32 ld.exe'
14635     ;;
14636
14637   *,cl*)
14638     # Native MSVC
14639     libname_spec='$name'
14640     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14641     library_names_spec='${libname}.dll.lib'
14642
14643     case $build_os in
14644     mingw*)
14645       sys_lib_search_path_spec=
14646       lt_save_ifs=$IFS
14647       IFS=';'
14648       for lt_path in $LIB
14649       do
14650         IFS=$lt_save_ifs
14651         # Let DOS variable expansion print the short 8.3 style file name.
14652         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14653         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14654       done
14655       IFS=$lt_save_ifs
14656       # Convert to MSYS style.
14657       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14658       ;;
14659     cygwin*)
14660       # Convert to unix form, then to dos form, then back to unix form
14661       # but this time dos style (no spaces!) so that the unix form looks
14662       # like /cygdrive/c/PROGRA~1:/cygdr...
14663       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14664       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14665       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14666       ;;
14667     *)
14668       sys_lib_search_path_spec="$LIB"
14669       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14670         # It is most probably a Windows format PATH.
14671         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14672       else
14673         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14674       fi
14675       # FIXME: find the short name or the path components, as spaces are
14676       # common. (e.g. "Program Files" -> "PROGRA~1")
14677       ;;
14678     esac
14679
14680     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14681     postinstall_cmds='base_file=`basename \${file}`~
14682       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14683       dldir=$destdir/`dirname \$dlpath`~
14684       test -d \$dldir || mkdir -p \$dldir~
14685       $install_prog $dir/$dlname \$dldir/$dlname'
14686     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14687       dlpath=$dir/\$dldll~
14688        $RM \$dlpath'
14689     shlibpath_overrides_runpath=yes
14690     dynamic_linker='Win32 link.exe'
14691     ;;
14692
14693   *)
14694     # Assume MSVC wrapper
14695     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14696     dynamic_linker='Win32 ld.exe'
14697     ;;
14698   esac
14699   # FIXME: first we should search . and the directory the executable is in
14700   shlibpath_var=PATH
14701   ;;
14702
14703 darwin* | rhapsody*)
14704   dynamic_linker="$host_os dyld"
14705   version_type=darwin
14706   need_lib_prefix=no
14707   need_version=no
14708   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14709   soname_spec='${libname}${release}${major}$shared_ext'
14710   shlibpath_overrides_runpath=yes
14711   shlibpath_var=DYLD_LIBRARY_PATH
14712   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14713
14714   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14715   ;;
14716
14717 dgux*)
14718   version_type=linux # correct to gnu/linux during the next big refactor
14719   need_lib_prefix=no
14720   need_version=no
14721   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14722   soname_spec='${libname}${release}${shared_ext}$major'
14723   shlibpath_var=LD_LIBRARY_PATH
14724   ;;
14725
14726 freebsd* | dragonfly*)
14727   # DragonFly does not have aout.  When/if they implement a new
14728   # versioning mechanism, adjust this.
14729   if test -x /usr/bin/objformat; then
14730     objformat=`/usr/bin/objformat`
14731   else
14732     case $host_os in
14733     freebsd[23].*) objformat=aout ;;
14734     *) objformat=elf ;;
14735     esac
14736   fi
14737   version_type=freebsd-$objformat
14738   case $version_type in
14739     freebsd-elf*)
14740       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14741       need_version=no
14742       need_lib_prefix=no
14743       ;;
14744     freebsd-*)
14745       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14746       need_version=yes
14747       ;;
14748   esac
14749   shlibpath_var=LD_LIBRARY_PATH
14750   case $host_os in
14751   freebsd2.*)
14752     shlibpath_overrides_runpath=yes
14753     ;;
14754   freebsd3.[01]* | freebsdelf3.[01]*)
14755     shlibpath_overrides_runpath=yes
14756     hardcode_into_libs=yes
14757     ;;
14758   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14759   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14760     shlibpath_overrides_runpath=no
14761     hardcode_into_libs=yes
14762     ;;
14763   *) # from 4.6 on, and DragonFly
14764     shlibpath_overrides_runpath=yes
14765     hardcode_into_libs=yes
14766     ;;
14767   esac
14768   ;;
14769
14770 gnu*)
14771   version_type=linux # correct to gnu/linux during the next big refactor
14772   need_lib_prefix=no
14773   need_version=no
14774   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14775   soname_spec='${libname}${release}${shared_ext}$major'
14776   shlibpath_var=LD_LIBRARY_PATH
14777   shlibpath_overrides_runpath=no
14778   hardcode_into_libs=yes
14779   ;;
14780
14781 haiku*)
14782   version_type=linux # correct to gnu/linux during the next big refactor
14783   need_lib_prefix=no
14784   need_version=no
14785   dynamic_linker="$host_os runtime_loader"
14786   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14787   soname_spec='${libname}${release}${shared_ext}$major'
14788   shlibpath_var=LIBRARY_PATH
14789   shlibpath_overrides_runpath=yes
14790   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14791   hardcode_into_libs=yes
14792   ;;
14793
14794 hpux9* | hpux10* | hpux11*)
14795   # Give a soname corresponding to the major version so that dld.sl refuses to
14796   # link against other versions.
14797   version_type=sunos
14798   need_lib_prefix=no
14799   need_version=no
14800   case $host_cpu in
14801   ia64*)
14802     shrext_cmds='.so'
14803     hardcode_into_libs=yes
14804     dynamic_linker="$host_os dld.so"
14805     shlibpath_var=LD_LIBRARY_PATH
14806     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14807     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14808     soname_spec='${libname}${release}${shared_ext}$major'
14809     if test "X$HPUX_IA64_MODE" = X32; then
14810       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14811     else
14812       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14813     fi
14814     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14815     ;;
14816   hppa*64*)
14817     shrext_cmds='.sl'
14818     hardcode_into_libs=yes
14819     dynamic_linker="$host_os dld.sl"
14820     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14821     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14822     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14823     soname_spec='${libname}${release}${shared_ext}$major'
14824     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14825     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14826     ;;
14827   *)
14828     shrext_cmds='.sl'
14829     dynamic_linker="$host_os dld.sl"
14830     shlibpath_var=SHLIB_PATH
14831     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14832     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14833     soname_spec='${libname}${release}${shared_ext}$major'
14834     ;;
14835   esac
14836   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14837   postinstall_cmds='chmod 555 $lib'
14838   # or fails outright, so override atomically:
14839   install_override_mode=555
14840   ;;
14841
14842 interix[3-9]*)
14843   version_type=linux # correct to gnu/linux during the next big refactor
14844   need_lib_prefix=no
14845   need_version=no
14846   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14847   soname_spec='${libname}${release}${shared_ext}$major'
14848   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14849   shlibpath_var=LD_LIBRARY_PATH
14850   shlibpath_overrides_runpath=no
14851   hardcode_into_libs=yes
14852   ;;
14853
14854 irix5* | irix6* | nonstopux*)
14855   case $host_os in
14856     nonstopux*) version_type=nonstopux ;;
14857     *)
14858         if test "$lt_cv_prog_gnu_ld" = yes; then
14859                 version_type=linux # correct to gnu/linux during the next big refactor
14860         else
14861                 version_type=irix
14862         fi ;;
14863   esac
14864   need_lib_prefix=no
14865   need_version=no
14866   soname_spec='${libname}${release}${shared_ext}$major'
14867   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14868   case $host_os in
14869   irix5* | nonstopux*)
14870     libsuff= shlibsuff=
14871     ;;
14872   *)
14873     case $LD in # libtool.m4 will add one of these switches to LD
14874     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14875       libsuff= shlibsuff= libmagic=32-bit;;
14876     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14877       libsuff=32 shlibsuff=N32 libmagic=N32;;
14878     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14879       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14880     *) libsuff= shlibsuff= libmagic=never-match;;
14881     esac
14882     ;;
14883   esac
14884   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14885   shlibpath_overrides_runpath=no
14886   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14887   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14888   hardcode_into_libs=yes
14889   ;;
14890
14891 # No shared lib support for Linux oldld, aout, or coff.
14892 linux*oldld* | linux*aout* | linux*coff*)
14893   dynamic_linker=no
14894   ;;
14895
14896 # This must be glibc/ELF.
14897 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14898   version_type=linux # correct to gnu/linux during the next big refactor
14899   need_lib_prefix=no
14900   need_version=no
14901   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14902   soname_spec='${libname}${release}${shared_ext}$major'
14903   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14904   shlibpath_var=LD_LIBRARY_PATH
14905   shlibpath_overrides_runpath=no
14906
14907   # Some binutils ld are patched to set DT_RUNPATH
14908   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14909   $as_echo_n "(cached) " >&6
14910 else
14911   lt_cv_shlibpath_overrides_runpath=no
14912     save_LDFLAGS=$LDFLAGS
14913     save_libdir=$libdir
14914     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14915          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14916     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14917 /* end confdefs.h.  */
14918
14919 int
14920 main ()
14921 {
14922
14923   ;
14924   return 0;
14925 }
14926 _ACEOF
14927 if ac_fn_cxx_try_link "$LINENO"; then :
14928   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14929   lt_cv_shlibpath_overrides_runpath=yes
14930 fi
14931 fi
14932 rm -f core conftest.err conftest.$ac_objext \
14933     conftest$ac_exeext conftest.$ac_ext
14934     LDFLAGS=$save_LDFLAGS
14935     libdir=$save_libdir
14936
14937 fi
14938
14939   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14940
14941   # This implies no fast_install, which is unacceptable.
14942   # Some rework will be needed to allow for fast_install
14943   # before this can be enabled.
14944   hardcode_into_libs=yes
14945
14946   # Add ABI-specific directories to the system library path.
14947   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
14948
14949   # Append ld.so.conf contents to the search path
14950   if test -f /etc/ld.so.conf; then
14951     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' ' '`
14952     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
14953
14954   fi
14955
14956   # We used to test for /lib/ld.so.1 and disable shared libraries on
14957   # powerpc, because MkLinux only supported shared libraries with the
14958   # GNU dynamic linker.  Since this was broken with cross compilers,
14959   # most powerpc-linux boxes support dynamic linking these days and
14960   # people can always --disable-shared, the test was removed, and we
14961   # assume the GNU/Linux dynamic linker is in use.
14962   dynamic_linker='GNU/Linux ld.so'
14963   ;;
14964
14965 netbsd*)
14966   version_type=sunos
14967   need_lib_prefix=no
14968   need_version=no
14969   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14970     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14971     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14972     dynamic_linker='NetBSD (a.out) ld.so'
14973   else
14974     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14975     soname_spec='${libname}${release}${shared_ext}$major'
14976     dynamic_linker='NetBSD ld.elf_so'
14977   fi
14978   shlibpath_var=LD_LIBRARY_PATH
14979   shlibpath_overrides_runpath=yes
14980   hardcode_into_libs=yes
14981   ;;
14982
14983 newsos6)
14984   version_type=linux # correct to gnu/linux during the next big refactor
14985   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14986   shlibpath_var=LD_LIBRARY_PATH
14987   shlibpath_overrides_runpath=yes
14988   ;;
14989
14990 *nto* | *qnx*)
14991   version_type=qnx
14992   need_lib_prefix=no
14993   need_version=no
14994   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14995   soname_spec='${libname}${release}${shared_ext}$major'
14996   shlibpath_var=LD_LIBRARY_PATH
14997   shlibpath_overrides_runpath=no
14998   hardcode_into_libs=yes
14999   dynamic_linker='ldqnx.so'
15000   ;;
15001
15002 openbsd*)
15003   version_type=sunos
15004   sys_lib_dlsearch_path_spec="/usr/lib"
15005   need_lib_prefix=no
15006   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15007   case $host_os in
15008     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15009     *)                          need_version=no  ;;
15010   esac
15011   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15012   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15013   shlibpath_var=LD_LIBRARY_PATH
15014   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15015     case $host_os in
15016       openbsd2.[89] | openbsd2.[89].*)
15017         shlibpath_overrides_runpath=no
15018         ;;
15019       *)
15020         shlibpath_overrides_runpath=yes
15021         ;;
15022       esac
15023   else
15024     shlibpath_overrides_runpath=yes
15025   fi
15026   ;;
15027
15028 os2*)
15029   libname_spec='$name'
15030   shrext_cmds=".dll"
15031   need_lib_prefix=no
15032   library_names_spec='$libname${shared_ext} $libname.a'
15033   dynamic_linker='OS/2 ld.exe'
15034   shlibpath_var=LIBPATH
15035   ;;
15036
15037 osf3* | osf4* | osf5*)
15038   version_type=osf
15039   need_lib_prefix=no
15040   need_version=no
15041   soname_spec='${libname}${release}${shared_ext}$major'
15042   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15043   shlibpath_var=LD_LIBRARY_PATH
15044   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15045   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15046   ;;
15047
15048 rdos*)
15049   dynamic_linker=no
15050   ;;
15051
15052 solaris*)
15053   version_type=linux # correct to gnu/linux during the next big refactor
15054   need_lib_prefix=no
15055   need_version=no
15056   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15057   soname_spec='${libname}${release}${shared_ext}$major'
15058   shlibpath_var=LD_LIBRARY_PATH
15059   shlibpath_overrides_runpath=yes
15060   hardcode_into_libs=yes
15061   # ldd complains unless libraries are executable
15062   postinstall_cmds='chmod +x $lib'
15063   ;;
15064
15065 sunos4*)
15066   version_type=sunos
15067   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15068   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15069   shlibpath_var=LD_LIBRARY_PATH
15070   shlibpath_overrides_runpath=yes
15071   if test "$with_gnu_ld" = yes; then
15072     need_lib_prefix=no
15073   fi
15074   need_version=yes
15075   ;;
15076
15077 sysv4 | sysv4.3*)
15078   version_type=linux # correct to gnu/linux during the next big refactor
15079   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15080   soname_spec='${libname}${release}${shared_ext}$major'
15081   shlibpath_var=LD_LIBRARY_PATH
15082   case $host_vendor in
15083     sni)
15084       shlibpath_overrides_runpath=no
15085       need_lib_prefix=no
15086       runpath_var=LD_RUN_PATH
15087       ;;
15088     siemens)
15089       need_lib_prefix=no
15090       ;;
15091     motorola)
15092       need_lib_prefix=no
15093       need_version=no
15094       shlibpath_overrides_runpath=no
15095       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15096       ;;
15097   esac
15098   ;;
15099
15100 sysv4*MP*)
15101   if test -d /usr/nec ;then
15102     version_type=linux # correct to gnu/linux during the next big refactor
15103     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15104     soname_spec='$libname${shared_ext}.$major'
15105     shlibpath_var=LD_LIBRARY_PATH
15106   fi
15107   ;;
15108
15109 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15110   version_type=freebsd-elf
15111   need_lib_prefix=no
15112   need_version=no
15113   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15114   soname_spec='${libname}${release}${shared_ext}$major'
15115   shlibpath_var=LD_LIBRARY_PATH
15116   shlibpath_overrides_runpath=yes
15117   hardcode_into_libs=yes
15118   if test "$with_gnu_ld" = yes; then
15119     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15120   else
15121     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15122     case $host_os in
15123       sco3.2v5*)
15124         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15125         ;;
15126     esac
15127   fi
15128   sys_lib_dlsearch_path_spec='/usr/lib'
15129   ;;
15130
15131 tpf*)
15132   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15133   version_type=linux # correct to gnu/linux during the next big refactor
15134   need_lib_prefix=no
15135   need_version=no
15136   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15137   shlibpath_var=LD_LIBRARY_PATH
15138   shlibpath_overrides_runpath=no
15139   hardcode_into_libs=yes
15140   ;;
15141
15142 uts4*)
15143   version_type=linux # correct to gnu/linux during the next big refactor
15144   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15145   soname_spec='${libname}${release}${shared_ext}$major'
15146   shlibpath_var=LD_LIBRARY_PATH
15147   ;;
15148
15149 *)
15150   dynamic_linker=no
15151   ;;
15152 esac
15153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15154 $as_echo "$dynamic_linker" >&6; }
15155 test "$dynamic_linker" = no && can_build_shared=no
15156
15157 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15158 if test "$GCC" = yes; then
15159   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15160 fi
15161
15162 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15163   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15164 fi
15165 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15166   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15167 fi
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15207 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15208 hardcode_action_CXX=
15209 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15210    test -n "$runpath_var_CXX" ||
15211    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15212
15213   # We can hardcode non-existent directories.
15214   if test "$hardcode_direct_CXX" != no &&
15215      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15216      # have to relink, otherwise we might link with an installed library
15217      # when we should be linking with a yet-to-be-installed one
15218      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15219      test "$hardcode_minus_L_CXX" != no; then
15220     # Linking always hardcodes the temporary library directory.
15221     hardcode_action_CXX=relink
15222   else
15223     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15224     hardcode_action_CXX=immediate
15225   fi
15226 else
15227   # We cannot hardcode anything, or else we can only hardcode existing
15228   # directories.
15229   hardcode_action_CXX=unsupported
15230 fi
15231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15232 $as_echo "$hardcode_action_CXX" >&6; }
15233
15234 if test "$hardcode_action_CXX" = relink ||
15235    test "$inherit_rpath_CXX" = yes; then
15236   # Fast installation is not supported
15237   enable_fast_install=no
15238 elif test "$shlibpath_overrides_runpath" = yes ||
15239      test "$enable_shared" = no; then
15240   # Fast installation is not necessary
15241   enable_fast_install=needless
15242 fi
15243
15244
15245
15246
15247
15248
15249
15250   fi # test -n "$compiler"
15251
15252   CC=$lt_save_CC
15253   CFLAGS=$lt_save_CFLAGS
15254   LDCXX=$LD
15255   LD=$lt_save_LD
15256   GCC=$lt_save_GCC
15257   with_gnu_ld=$lt_save_with_gnu_ld
15258   lt_cv_path_LDCXX=$lt_cv_path_LD
15259   lt_cv_path_LD=$lt_save_path_LD
15260   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15261   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15262 fi # test "$_lt_caught_CXX_error" != yes
15263
15264 ac_ext=c
15265 ac_cpp='$CPP $CPPFLAGS'
15266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15269
15270
15271
15272
15273
15274
15275
15276
15277
15278
15279
15280
15281
15282
15283
15284         ac_config_commands="$ac_config_commands libtool"
15285
15286
15287
15288
15289 # Only expand once:
15290
15291
15292
15293
15294 # libtool option to control which symbols are exported
15295 # right now, symbols starting with _ are not exported
15296 LIBTOOL_EXPORT_OPTIONS='-export-symbols-regex "^[^_].*"'
15297
15298
15299 # Checks for libraries.
15300
15301
15302
15303
15304
15305
15306
15307 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15308         if test -n "$ac_tool_prefix"; then
15309   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15310 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15312 $as_echo_n "checking for $ac_word... " >&6; }
15313 if ${ac_cv_path_PKG_CONFIG+:} false; then :
15314   $as_echo_n "(cached) " >&6
15315 else
15316   case $PKG_CONFIG in
15317   [\\/]* | ?:[\\/]*)
15318   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15319   ;;
15320   *)
15321   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15322 for as_dir in $PATH
15323 do
15324   IFS=$as_save_IFS
15325   test -z "$as_dir" && as_dir=.
15326     for ac_exec_ext in '' $ac_executable_extensions; do
15327   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15328     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15329     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15330     break 2
15331   fi
15332 done
15333   done
15334 IFS=$as_save_IFS
15335
15336   ;;
15337 esac
15338 fi
15339 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15340 if test -n "$PKG_CONFIG"; then
15341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15342 $as_echo "$PKG_CONFIG" >&6; }
15343 else
15344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15345 $as_echo "no" >&6; }
15346 fi
15347
15348
15349 fi
15350 if test -z "$ac_cv_path_PKG_CONFIG"; then
15351   ac_pt_PKG_CONFIG=$PKG_CONFIG
15352   # Extract the first word of "pkg-config", so it can be a program name with args.
15353 set dummy pkg-config; ac_word=$2
15354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15355 $as_echo_n "checking for $ac_word... " >&6; }
15356 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
15357   $as_echo_n "(cached) " >&6
15358 else
15359   case $ac_pt_PKG_CONFIG in
15360   [\\/]* | ?:[\\/]*)
15361   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15362   ;;
15363   *)
15364   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15365 for as_dir in $PATH
15366 do
15367   IFS=$as_save_IFS
15368   test -z "$as_dir" && as_dir=.
15369     for ac_exec_ext in '' $ac_executable_extensions; do
15370   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15371     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15372     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15373     break 2
15374   fi
15375 done
15376   done
15377 IFS=$as_save_IFS
15378
15379   ;;
15380 esac
15381 fi
15382 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15383 if test -n "$ac_pt_PKG_CONFIG"; then
15384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15385 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
15386 else
15387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15388 $as_echo "no" >&6; }
15389 fi
15390
15391   if test "x$ac_pt_PKG_CONFIG" = x; then
15392     PKG_CONFIG=""
15393   else
15394     case $cross_compiling:$ac_tool_warned in
15395 yes:)
15396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15398 ac_tool_warned=yes ;;
15399 esac
15400     PKG_CONFIG=$ac_pt_PKG_CONFIG
15401   fi
15402 else
15403   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15404 fi
15405
15406 fi
15407 if test -n "$PKG_CONFIG"; then
15408         _pkg_min_version=0.9.0
15409         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15410 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15411         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15412                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15413 $as_echo "yes" >&6; }
15414         else
15415                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15416 $as_echo "no" >&6; }
15417                 PKG_CONFIG=""
15418         fi
15419 fi
15420
15421 pkg_failed=no
15422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB2" >&5
15423 $as_echo_n "checking for GLIB2... " >&6; }
15424
15425 if test -n "$GLIB2_CFLAGS"; then
15426     pkg_cv_GLIB2_CFLAGS="$GLIB2_CFLAGS"
15427  elif test -n "$PKG_CONFIG"; then
15428     if test -n "$PKG_CONFIG" && \
15429     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.4.0\""; } >&5
15430   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.4.0") 2>&5
15431   ac_status=$?
15432   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15433   test $ac_status = 0; }; then
15434   pkg_cv_GLIB2_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4.0" 2>/dev/null`
15435                       test "x$?" != "x0" && pkg_failed=yes
15436 else
15437   pkg_failed=yes
15438 fi
15439  else
15440     pkg_failed=untried
15441 fi
15442 if test -n "$GLIB2_LIBS"; then
15443     pkg_cv_GLIB2_LIBS="$GLIB2_LIBS"
15444  elif test -n "$PKG_CONFIG"; then
15445     if test -n "$PKG_CONFIG" && \
15446     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.4.0\""; } >&5
15447   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.4.0") 2>&5
15448   ac_status=$?
15449   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15450   test $ac_status = 0; }; then
15451   pkg_cv_GLIB2_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4.0" 2>/dev/null`
15452                       test "x$?" != "x0" && pkg_failed=yes
15453 else
15454   pkg_failed=yes
15455 fi
15456  else
15457     pkg_failed=untried
15458 fi
15459
15460
15461
15462 if test $pkg_failed = yes; then
15463         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15464 $as_echo "no" >&6; }
15465
15466 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15467         _pkg_short_errors_supported=yes
15468 else
15469         _pkg_short_errors_supported=no
15470 fi
15471         if test $_pkg_short_errors_supported = yes; then
15472                 GLIB2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.4.0" 2>&1`
15473         else
15474                 GLIB2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.4.0" 2>&1`
15475         fi
15476         # Put the nasty error message in config.log where it belongs
15477         echo "$GLIB2_PKG_ERRORS" >&5
15478
15479         as_fn_error $? "Package requirements (glib-2.0 >= 2.4.0) were not met:
15480
15481 $GLIB2_PKG_ERRORS
15482
15483 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15484 installed software in a non-standard prefix.
15485
15486 Alternatively, you may set the environment variables GLIB2_CFLAGS
15487 and GLIB2_LIBS to avoid the need to call pkg-config.
15488 See the pkg-config man page for more details." "$LINENO" 5
15489 elif test $pkg_failed = untried; then
15490         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15491 $as_echo "no" >&6; }
15492         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15493 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15494 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
15495 is in your PATH or set the PKG_CONFIG environment variable to the full
15496 path to pkg-config.
15497
15498 Alternatively, you may set the environment variables GLIB2_CFLAGS
15499 and GLIB2_LIBS to avoid the need to call pkg-config.
15500 See the pkg-config man page for more details.
15501
15502 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15503 See \`config.log' for more details" "$LINENO" 5; }
15504 else
15505         GLIB2_CFLAGS=$pkg_cv_GLIB2_CFLAGS
15506         GLIB2_LIBS=$pkg_cv_GLIB2_LIBS
15507         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15508 $as_echo "yes" >&6; }
15509
15510 fi
15511
15512 # Checks for header files.
15513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15514 $as_echo_n "checking for ANSI C header files... " >&6; }
15515 if ${ac_cv_header_stdc+:} false; then :
15516   $as_echo_n "(cached) " >&6
15517 else
15518   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15519 /* end confdefs.h.  */
15520 #include <stdlib.h>
15521 #include <stdarg.h>
15522 #include <string.h>
15523 #include <float.h>
15524
15525 int
15526 main ()
15527 {
15528
15529   ;
15530   return 0;
15531 }
15532 _ACEOF
15533 if ac_fn_c_try_compile "$LINENO"; then :
15534   ac_cv_header_stdc=yes
15535 else
15536   ac_cv_header_stdc=no
15537 fi
15538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15539
15540 if test $ac_cv_header_stdc = yes; then
15541   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15542   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15543 /* end confdefs.h.  */
15544 #include <string.h>
15545
15546 _ACEOF
15547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15548   $EGREP "memchr" >/dev/null 2>&1; then :
15549
15550 else
15551   ac_cv_header_stdc=no
15552 fi
15553 rm -f conftest*
15554
15555 fi
15556
15557 if test $ac_cv_header_stdc = yes; then
15558   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15559   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15560 /* end confdefs.h.  */
15561 #include <stdlib.h>
15562
15563 _ACEOF
15564 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15565   $EGREP "free" >/dev/null 2>&1; then :
15566
15567 else
15568   ac_cv_header_stdc=no
15569 fi
15570 rm -f conftest*
15571
15572 fi
15573
15574 if test $ac_cv_header_stdc = yes; then
15575   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15576   if test "$cross_compiling" = yes; then :
15577   :
15578 else
15579   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15580 /* end confdefs.h.  */
15581 #include <ctype.h>
15582 #include <stdlib.h>
15583 #if ((' ' & 0x0FF) == 0x020)
15584 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15585 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15586 #else
15587 # define ISLOWER(c) \
15588                    (('a' <= (c) && (c) <= 'i') \
15589                      || ('j' <= (c) && (c) <= 'r') \
15590                      || ('s' <= (c) && (c) <= 'z'))
15591 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15592 #endif
15593
15594 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15595 int
15596 main ()
15597 {
15598   int i;
15599   for (i = 0; i < 256; i++)
15600     if (XOR (islower (i), ISLOWER (i))
15601         || toupper (i) != TOUPPER (i))
15602       return 2;
15603   return 0;
15604 }
15605 _ACEOF
15606 if ac_fn_c_try_run "$LINENO"; then :
15607
15608 else
15609   ac_cv_header_stdc=no
15610 fi
15611 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15612   conftest.$ac_objext conftest.beam conftest.$ac_ext
15613 fi
15614
15615 fi
15616 fi
15617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15618 $as_echo "$ac_cv_header_stdc" >&6; }
15619 if test $ac_cv_header_stdc = yes; then
15620
15621 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15622
15623 fi
15624
15625 for ac_header in locale.h stdlib.h string.h sys/time.h unistd.h
15626 do :
15627   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15628 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15629 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15630   cat >>confdefs.h <<_ACEOF
15631 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15632 _ACEOF
15633
15634 fi
15635
15636 done
15637
15638
15639 # Checks for typedefs, structures, and compiler characteristics.
15640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
15641 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
15642 if ${ac_cv_header_stdbool_h+:} false; then :
15643   $as_echo_n "(cached) " >&6
15644 else
15645   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15646 /* end confdefs.h.  */
15647
15648              #include <stdbool.h>
15649              #ifndef bool
15650               "error: bool is not defined"
15651              #endif
15652              #ifndef false
15653               "error: false is not defined"
15654              #endif
15655              #if false
15656               "error: false is not 0"
15657              #endif
15658              #ifndef true
15659               "error: true is not defined"
15660              #endif
15661              #if true != 1
15662               "error: true is not 1"
15663              #endif
15664              #ifndef __bool_true_false_are_defined
15665               "error: __bool_true_false_are_defined is not defined"
15666              #endif
15667
15668              struct s { _Bool s: 1; _Bool t; } s;
15669
15670              char a[true == 1 ? 1 : -1];
15671              char b[false == 0 ? 1 : -1];
15672              char c[__bool_true_false_are_defined == 1 ? 1 : -1];
15673              char d[(bool) 0.5 == true ? 1 : -1];
15674              /* See body of main program for 'e'.  */
15675              char f[(_Bool) 0.0 == false ? 1 : -1];
15676              char g[true];
15677              char h[sizeof (_Bool)];
15678              char i[sizeof s.t];
15679              enum { j = false, k = true, l = false * true, m = true * 256 };
15680              /* The following fails for
15681                 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
15682              _Bool n[m];
15683              char o[sizeof n == m * sizeof n[0] ? 1 : -1];
15684              char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
15685              /* Catch a bug in an HP-UX C compiler.  See
15686                 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
15687                 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
15688               */
15689              _Bool q = true;
15690              _Bool *pq = &q;
15691
15692 int
15693 main ()
15694 {
15695
15696              bool e = &s;
15697              *pq |= q;
15698              *pq |= ! q;
15699              /* Refer to every declared value, to avoid compiler optimizations.  */
15700              return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
15701                      + !m + !n + !o + !p + !q + !pq);
15702
15703   ;
15704   return 0;
15705 }
15706 _ACEOF
15707 if ac_fn_c_try_compile "$LINENO"; then :
15708   ac_cv_header_stdbool_h=yes
15709 else
15710   ac_cv_header_stdbool_h=no
15711 fi
15712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15713 fi
15714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
15715 $as_echo "$ac_cv_header_stdbool_h" >&6; }
15716    ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
15717 if test "x$ac_cv_type__Bool" = xyes; then :
15718
15719 cat >>confdefs.h <<_ACEOF
15720 #define HAVE__BOOL 1
15721 _ACEOF
15722
15723
15724 fi
15725
15726
15727 if test $ac_cv_header_stdbool_h = yes; then
15728
15729 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
15730
15731 fi
15732
15733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
15734 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
15735 if ${ac_cv_c_const+:} false; then :
15736   $as_echo_n "(cached) " >&6
15737 else
15738   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15739 /* end confdefs.h.  */
15740
15741 int
15742 main ()
15743 {
15744
15745 #ifndef __cplusplus
15746   /* Ultrix mips cc rejects this sort of thing.  */
15747   typedef int charset[2];
15748   const charset cs = { 0, 0 };
15749   /* SunOS 4.1.1 cc rejects this.  */
15750   char const *const *pcpcc;
15751   char **ppc;
15752   /* NEC SVR4.0.2 mips cc rejects this.  */
15753   struct point {int x, y;};
15754   static struct point const zero = {0,0};
15755   /* AIX XL C 1.02.0.0 rejects this.
15756      It does not let you subtract one const X* pointer from another in
15757      an arm of an if-expression whose if-part is not a constant
15758      expression */
15759   const char *g = "string";
15760   pcpcc = &g + (g ? g-g : 0);
15761   /* HPUX 7.0 cc rejects these. */
15762   ++pcpcc;
15763   ppc = (char**) pcpcc;
15764   pcpcc = (char const *const *) ppc;
15765   { /* SCO 3.2v4 cc rejects this sort of thing.  */
15766     char tx;
15767     char *t = &tx;
15768     char const *s = 0 ? (char *) 0 : (char const *) 0;
15769
15770     *t++ = 0;
15771     if (s) return 0;
15772   }
15773   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
15774     int x[] = {25, 17};
15775     const int *foo = &x[0];
15776     ++foo;
15777   }
15778   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15779     typedef const int *iptr;
15780     iptr p = 0;
15781     ++p;
15782   }
15783   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
15784        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15785     struct s { int j; const int *ap[3]; } bx;
15786     struct s *b = &bx; b->j = 5;
15787   }
15788   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15789     const int foo = 10;
15790     if (!foo) return 0;
15791   }
15792   return !cs[0] && !zero.x;
15793 #endif
15794
15795   ;
15796   return 0;
15797 }
15798 _ACEOF
15799 if ac_fn_c_try_compile "$LINENO"; then :
15800   ac_cv_c_const=yes
15801 else
15802   ac_cv_c_const=no
15803 fi
15804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15805 fi
15806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
15807 $as_echo "$ac_cv_c_const" >&6; }
15808 if test $ac_cv_c_const = no; then
15809
15810 $as_echo "#define const /**/" >>confdefs.h
15811
15812 fi
15813
15814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15815 $as_echo_n "checking for inline... " >&6; }
15816 if ${ac_cv_c_inline+:} false; then :
15817   $as_echo_n "(cached) " >&6
15818 else
15819   ac_cv_c_inline=no
15820 for ac_kw in inline __inline__ __inline; do
15821   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15822 /* end confdefs.h.  */
15823 #ifndef __cplusplus
15824 typedef int foo_t;
15825 static $ac_kw foo_t static_foo () {return 0; }
15826 $ac_kw foo_t foo () {return 0; }
15827 #endif
15828
15829 _ACEOF
15830 if ac_fn_c_try_compile "$LINENO"; then :
15831   ac_cv_c_inline=$ac_kw
15832 fi
15833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15834   test "$ac_cv_c_inline" != no && break
15835 done
15836
15837 fi
15838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15839 $as_echo "$ac_cv_c_inline" >&6; }
15840
15841 case $ac_cv_c_inline in
15842   inline | yes) ;;
15843   *)
15844     case $ac_cv_c_inline in
15845       no) ac_val=;;
15846       *) ac_val=$ac_cv_c_inline;;
15847     esac
15848     cat >>confdefs.h <<_ACEOF
15849 #ifndef __cplusplus
15850 #define inline $ac_val
15851 #endif
15852 _ACEOF
15853     ;;
15854 esac
15855
15856 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15857 if test "x$ac_cv_type_size_t" = xyes; then :
15858
15859 else
15860
15861 cat >>confdefs.h <<_ACEOF
15862 #define size_t unsigned int
15863 _ACEOF
15864
15865 fi
15866
15867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
15868 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
15869 if ${ac_cv_header_time+:} false; then :
15870   $as_echo_n "(cached) " >&6
15871 else
15872   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15873 /* end confdefs.h.  */
15874 #include <sys/types.h>
15875 #include <sys/time.h>
15876 #include <time.h>
15877
15878 int
15879 main ()
15880 {
15881 if ((struct tm *) 0)
15882 return 0;
15883   ;
15884   return 0;
15885 }
15886 _ACEOF
15887 if ac_fn_c_try_compile "$LINENO"; then :
15888   ac_cv_header_time=yes
15889 else
15890   ac_cv_header_time=no
15891 fi
15892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15893 fi
15894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
15895 $as_echo "$ac_cv_header_time" >&6; }
15896 if test $ac_cv_header_time = yes; then
15897
15898 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
15899
15900 fi
15901
15902
15903 # Checks for library functions.
15904 for ac_header in stdlib.h
15905 do :
15906   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
15907 if test "x$ac_cv_header_stdlib_h" = xyes; then :
15908   cat >>confdefs.h <<_ACEOF
15909 #define HAVE_STDLIB_H 1
15910 _ACEOF
15911
15912 fi
15913
15914 done
15915
15916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
15917 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
15918 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
15919   $as_echo_n "(cached) " >&6
15920 else
15921   if test "$cross_compiling" = yes; then :
15922   ac_cv_func_malloc_0_nonnull=no
15923 else
15924   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15925 /* end confdefs.h.  */
15926 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
15927 # include <stdlib.h>
15928 #else
15929 char *malloc ();
15930 #endif
15931
15932 int
15933 main ()
15934 {
15935 return ! malloc (0);
15936   ;
15937   return 0;
15938 }
15939 _ACEOF
15940 if ac_fn_c_try_run "$LINENO"; then :
15941   ac_cv_func_malloc_0_nonnull=yes
15942 else
15943   ac_cv_func_malloc_0_nonnull=no
15944 fi
15945 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15946   conftest.$ac_objext conftest.beam conftest.$ac_ext
15947 fi
15948
15949 fi
15950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
15951 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
15952 if test $ac_cv_func_malloc_0_nonnull = yes; then :
15953
15954 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
15955
15956 else
15957   $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
15958
15959    case " $LIBOBJS " in
15960   *" malloc.$ac_objext "* ) ;;
15961   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
15962  ;;
15963 esac
15964
15965
15966 $as_echo "#define malloc rpl_malloc" >>confdefs.h
15967
15968 fi
15969
15970
15971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
15972 $as_echo_n "checking for working memcmp... " >&6; }
15973 if ${ac_cv_func_memcmp_working+:} false; then :
15974   $as_echo_n "(cached) " >&6
15975 else
15976   if test "$cross_compiling" = yes; then :
15977   ac_cv_func_memcmp_working=no
15978 else
15979   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15980 /* end confdefs.h.  */
15981 $ac_includes_default
15982 int
15983 main ()
15984 {
15985
15986   /* Some versions of memcmp are not 8-bit clean.  */
15987   char c0 = '\100', c1 = '\200', c2 = '\201';
15988   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
15989     return 1;
15990
15991   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
15992      or more and with at least one buffer not starting on a 4-byte boundary.
15993      William Lewis provided this test program.   */
15994   {
15995     char foo[21];
15996     char bar[21];
15997     int i;
15998     for (i = 0; i < 4; i++)
15999       {
16000         char *a = foo + i;
16001         char *b = bar + i;
16002         strcpy (a, "--------01111111");
16003         strcpy (b, "--------10000000");
16004         if (memcmp (a, b, 16) >= 0)
16005           return 1;
16006       }
16007     return 0;
16008   }
16009
16010   ;
16011   return 0;
16012 }
16013 _ACEOF
16014 if ac_fn_c_try_run "$LINENO"; then :
16015   ac_cv_func_memcmp_working=yes
16016 else
16017   ac_cv_func_memcmp_working=no
16018 fi
16019 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16020   conftest.$ac_objext conftest.beam conftest.$ac_ext
16021 fi
16022
16023 fi
16024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
16025 $as_echo "$ac_cv_func_memcmp_working" >&6; }
16026 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
16027   *" memcmp.$ac_objext "* ) ;;
16028   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
16029  ;;
16030 esac
16031
16032
16033 for ac_header in stdlib.h
16034 do :
16035   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
16036 if test "x$ac_cv_header_stdlib_h" = xyes; then :
16037   cat >>confdefs.h <<_ACEOF
16038 #define HAVE_STDLIB_H 1
16039 _ACEOF
16040
16041 fi
16042
16043 done
16044
16045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
16046 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
16047 if ${ac_cv_func_realloc_0_nonnull+:} false; then :
16048   $as_echo_n "(cached) " >&6
16049 else
16050   if test "$cross_compiling" = yes; then :
16051   ac_cv_func_realloc_0_nonnull=no
16052 else
16053   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16054 /* end confdefs.h.  */
16055 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
16056 # include <stdlib.h>
16057 #else
16058 char *realloc ();
16059 #endif
16060
16061 int
16062 main ()
16063 {
16064 return ! realloc (0, 0);
16065   ;
16066   return 0;
16067 }
16068 _ACEOF
16069 if ac_fn_c_try_run "$LINENO"; then :
16070   ac_cv_func_realloc_0_nonnull=yes
16071 else
16072   ac_cv_func_realloc_0_nonnull=no
16073 fi
16074 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16075   conftest.$ac_objext conftest.beam conftest.$ac_ext
16076 fi
16077
16078 fi
16079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
16080 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
16081 if test $ac_cv_func_realloc_0_nonnull = yes; then :
16082
16083 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
16084
16085 else
16086   $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
16087
16088    case " $LIBOBJS " in
16089   *" realloc.$ac_objext "* ) ;;
16090   *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
16091  ;;
16092 esac
16093
16094
16095 $as_echo "#define realloc rpl_realloc" >>confdefs.h
16096
16097 fi
16098
16099
16100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
16101 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
16102 if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
16103   $as_echo_n "(cached) " >&6
16104 else
16105   rm -f conftest.sym conftest.file
16106 echo >conftest.file
16107 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
16108   if test "$cross_compiling" = yes; then :
16109   ac_cv_func_lstat_dereferences_slashed_symlink=no
16110 else
16111   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16112 /* end confdefs.h.  */
16113 $ac_includes_default
16114 int
16115 main ()
16116 {
16117 struct stat sbuf;
16118      /* Linux will dereference the symlink and fail, as required by POSIX.
16119         That is better in the sense that it means we will not
16120         have to compile and use the lstat wrapper.  */
16121      return lstat ("conftest.sym/", &sbuf) == 0;
16122   ;
16123   return 0;
16124 }
16125 _ACEOF
16126 if ac_fn_c_try_run "$LINENO"; then :
16127   ac_cv_func_lstat_dereferences_slashed_symlink=yes
16128 else
16129   ac_cv_func_lstat_dereferences_slashed_symlink=no
16130 fi
16131 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16132   conftest.$ac_objext conftest.beam conftest.$ac_ext
16133 fi
16134
16135 else
16136   # If the `ln -s' command failed, then we probably don't even
16137   # have an lstat function.
16138   ac_cv_func_lstat_dereferences_slashed_symlink=no
16139 fi
16140 rm -f conftest.sym conftest.file
16141
16142 fi
16143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
16144 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
16145
16146 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
16147
16148 cat >>confdefs.h <<_ACEOF
16149 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
16150 _ACEOF
16151
16152
16153 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
16154   case " $LIBOBJS " in
16155   *" lstat.$ac_objext "* ) ;;
16156   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
16157  ;;
16158 esac
16159
16160 fi
16161
16162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
16163 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
16164 if ${ac_cv_func_stat_empty_string_bug+:} false; then :
16165   $as_echo_n "(cached) " >&6
16166 else
16167   if test "$cross_compiling" = yes; then :
16168   ac_cv_func_stat_empty_string_bug=yes
16169 else
16170   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16171 /* end confdefs.h.  */
16172 $ac_includes_default
16173 int
16174 main ()
16175 {
16176 struct stat sbuf;
16177   return stat ("", &sbuf) == 0;
16178   ;
16179   return 0;
16180 }
16181 _ACEOF
16182 if ac_fn_c_try_run "$LINENO"; then :
16183   ac_cv_func_stat_empty_string_bug=no
16184 else
16185   ac_cv_func_stat_empty_string_bug=yes
16186 fi
16187 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16188   conftest.$ac_objext conftest.beam conftest.$ac_ext
16189 fi
16190
16191 fi
16192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
16193 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
16194 if test $ac_cv_func_stat_empty_string_bug = yes; then
16195   case " $LIBOBJS " in
16196   *" stat.$ac_objext "* ) ;;
16197   *) LIBOBJS="$LIBOBJS stat.$ac_objext"
16198  ;;
16199 esac
16200
16201
16202 cat >>confdefs.h <<_ACEOF
16203 #define HAVE_STAT_EMPTY_STRING_BUG 1
16204 _ACEOF
16205
16206 fi
16207
16208
16209
16210
16211   for ac_header in $ac_header_list
16212 do :
16213   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16214 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16215 "
16216 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16217   cat >>confdefs.h <<_ACEOF
16218 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16219 _ACEOF
16220
16221 fi
16222
16223 done
16224
16225
16226
16227
16228
16229
16230
16231
16232 for ac_func in getpagesize
16233 do :
16234   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
16235 if test "x$ac_cv_func_getpagesize" = xyes; then :
16236   cat >>confdefs.h <<_ACEOF
16237 #define HAVE_GETPAGESIZE 1
16238 _ACEOF
16239
16240 fi
16241 done
16242
16243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
16244 $as_echo_n "checking for working mmap... " >&6; }
16245 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
16246   $as_echo_n "(cached) " >&6
16247 else
16248   if test "$cross_compiling" = yes; then :
16249   ac_cv_func_mmap_fixed_mapped=no
16250 else
16251   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16252 /* end confdefs.h.  */
16253 $ac_includes_default
16254 /* malloc might have been renamed as rpl_malloc. */
16255 #undef malloc
16256
16257 /* Thanks to Mike Haertel and Jim Avera for this test.
16258    Here is a matrix of mmap possibilities:
16259         mmap private not fixed
16260         mmap private fixed at somewhere currently unmapped
16261         mmap private fixed at somewhere already mapped
16262         mmap shared not fixed
16263         mmap shared fixed at somewhere currently unmapped
16264         mmap shared fixed at somewhere already mapped
16265    For private mappings, we should verify that changes cannot be read()
16266    back from the file, nor mmap's back from the file at a different
16267    address.  (There have been systems where private was not correctly
16268    implemented like the infamous i386 svr4.0, and systems where the
16269    VM page cache was not coherent with the file system buffer cache
16270    like early versions of FreeBSD and possibly contemporary NetBSD.)
16271    For shared mappings, we should conversely verify that changes get
16272    propagated back to all the places they're supposed to be.
16273
16274    Grep wants private fixed already mapped.
16275    The main things grep needs to know about mmap are:
16276    * does it exist and is it safe to write into the mmap'd area
16277    * how to use it (BSD variants)  */
16278
16279 #include <fcntl.h>
16280 #include <sys/mman.h>
16281
16282 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
16283 char *malloc ();
16284 #endif
16285
16286 /* This mess was copied from the GNU getpagesize.h.  */
16287 #ifndef HAVE_GETPAGESIZE
16288 # ifdef _SC_PAGESIZE
16289 #  define getpagesize() sysconf(_SC_PAGESIZE)
16290 # else /* no _SC_PAGESIZE */
16291 #  ifdef HAVE_SYS_PARAM_H
16292 #   include <sys/param.h>
16293 #   ifdef EXEC_PAGESIZE
16294 #    define getpagesize() EXEC_PAGESIZE
16295 #   else /* no EXEC_PAGESIZE */
16296 #    ifdef NBPG
16297 #     define getpagesize() NBPG * CLSIZE
16298 #     ifndef CLSIZE
16299 #      define CLSIZE 1
16300 #     endif /* no CLSIZE */
16301 #    else /* no NBPG */
16302 #     ifdef NBPC
16303 #      define getpagesize() NBPC
16304 #     else /* no NBPC */
16305 #      ifdef PAGESIZE
16306 #       define getpagesize() PAGESIZE
16307 #      endif /* PAGESIZE */
16308 #     endif /* no NBPC */
16309 #    endif /* no NBPG */
16310 #   endif /* no EXEC_PAGESIZE */
16311 #  else /* no HAVE_SYS_PARAM_H */
16312 #   define getpagesize() 8192   /* punt totally */
16313 #  endif /* no HAVE_SYS_PARAM_H */
16314 # endif /* no _SC_PAGESIZE */
16315
16316 #endif /* no HAVE_GETPAGESIZE */
16317
16318 int
16319 main ()
16320 {
16321   char *data, *data2, *data3;
16322   const char *cdata2;
16323   int i, pagesize;
16324   int fd, fd2;
16325
16326   pagesize = getpagesize ();
16327
16328   /* First, make a file with some known garbage in it. */
16329   data = (char *) malloc (pagesize);
16330   if (!data)
16331     return 1;
16332   for (i = 0; i < pagesize; ++i)
16333     *(data + i) = rand ();
16334   umask (0);
16335   fd = creat ("conftest.mmap", 0600);
16336   if (fd < 0)
16337     return 2;
16338   if (write (fd, data, pagesize) != pagesize)
16339     return 3;
16340   close (fd);
16341
16342   /* Next, check that the tail of a page is zero-filled.  File must have
16343      non-zero length, otherwise we risk SIGBUS for entire page.  */
16344   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
16345   if (fd2 < 0)
16346     return 4;
16347   cdata2 = "";
16348   if (write (fd2, cdata2, 1) != 1)
16349     return 5;
16350   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
16351   if (data2 == MAP_FAILED)
16352     return 6;
16353   for (i = 0; i < pagesize; ++i)
16354     if (*(data2 + i))
16355       return 7;
16356   close (fd2);
16357   if (munmap (data2, pagesize))
16358     return 8;
16359
16360   /* Next, try to mmap the file at a fixed address which already has
16361      something else allocated at it.  If we can, also make sure that
16362      we see the same garbage.  */
16363   fd = open ("conftest.mmap", O_RDWR);
16364   if (fd < 0)
16365     return 9;
16366   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16367                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
16368     return 10;
16369   for (i = 0; i < pagesize; ++i)
16370     if (*(data + i) != *(data2 + i))
16371       return 11;
16372
16373   /* Finally, make sure that changes to the mapped area do not
16374      percolate back to the file as seen by read().  (This is a bug on
16375      some variants of i386 svr4.0.)  */
16376   for (i = 0; i < pagesize; ++i)
16377     *(data2 + i) = *(data2 + i) + 1;
16378   data3 = (char *) malloc (pagesize);
16379   if (!data3)
16380     return 12;
16381   if (read (fd, data3, pagesize) != pagesize)
16382     return 13;
16383   for (i = 0; i < pagesize; ++i)
16384     if (*(data + i) != *(data3 + i))
16385       return 14;
16386   close (fd);
16387   return 0;
16388 }
16389 _ACEOF
16390 if ac_fn_c_try_run "$LINENO"; then :
16391   ac_cv_func_mmap_fixed_mapped=yes
16392 else
16393   ac_cv_func_mmap_fixed_mapped=no
16394 fi
16395 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16396   conftest.$ac_objext conftest.beam conftest.$ac_ext
16397 fi
16398
16399 fi
16400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
16401 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
16402 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16403
16404 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
16405
16406 fi
16407 rm -f conftest.mmap conftest.txt
16408
16409 for ac_func in gettimeofday memmove memset setlocale
16410 do :
16411   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16412 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16413 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16414   cat >>confdefs.h <<_ACEOF
16415 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16416 _ACEOF
16417
16418 fi
16419 done
16420
16421
16422 for ac_header in libintl.h string.h
16423 do :
16424   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16425 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16426 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16427   cat >>confdefs.h <<_ACEOF
16428 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16429 _ACEOF
16430
16431 fi
16432
16433 done
16434
16435
16436 ac_fn_c_check_header_mongrel "$LINENO" "db.h" "ac_cv_header_db_h" "$ac_includes_default"
16437 if test "x$ac_cv_header_db_h" = xyes; then :
16438
16439 else
16440   as_fn_error $? "Cannot find Berkeley DB library version 4" "$LINENO" 5
16441 fi
16442
16443
16444
16445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing db_create" >&5
16446 $as_echo_n "checking for library containing db_create... " >&6; }
16447 if ${ac_cv_search_db_create+:} false; then :
16448   $as_echo_n "(cached) " >&6
16449 else
16450   ac_func_search_save_LIBS=$LIBS
16451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16452 /* end confdefs.h.  */
16453
16454 /* Override any GCC internal prototype to avoid an error.
16455    Use char because int might match the return type of a GCC
16456    builtin and then its argument prototype would still apply.  */
16457 #ifdef __cplusplus
16458 extern "C"
16459 #endif
16460 char db_create ();
16461 int
16462 main ()
16463 {
16464 return db_create ();
16465   ;
16466   return 0;
16467 }
16468 _ACEOF
16469 for ac_lib in '' db; do
16470   if test -z "$ac_lib"; then
16471     ac_res="none required"
16472   else
16473     ac_res=-l$ac_lib
16474     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16475   fi
16476   if ac_fn_c_try_link "$LINENO"; then :
16477   ac_cv_search_db_create=$ac_res
16478 fi
16479 rm -f core conftest.err conftest.$ac_objext \
16480     conftest$ac_exeext
16481   if ${ac_cv_search_db_create+:} false; then :
16482   break
16483 fi
16484 done
16485 if ${ac_cv_search_db_create+:} false; then :
16486
16487 else
16488   ac_cv_search_db_create=no
16489 fi
16490 rm conftest.$ac_ext
16491 LIBS=$ac_func_search_save_LIBS
16492 fi
16493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_db_create" >&5
16494 $as_echo "$ac_cv_search_db_create" >&6; }
16495 ac_res=$ac_cv_search_db_create
16496 if test "$ac_res" != no; then :
16497   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16498
16499 else
16500   as_fn_error $? "Cannot find Berkeley DB library version 4" "$LINENO" 5
16501 fi
16502
16503
16504
16505 ac_config_files="$ac_config_files libpinyin.pc libpinyin.spec Makefile doc/Makefile data/Makefile src/Makefile src/include/Makefile src/storage/Makefile src/lookup/Makefile tests/Makefile tests/include/Makefile tests/storage/Makefile tests/lookup/Makefile utils/Makefile utils/storage/Makefile utils/segment/Makefile utils/training/Makefile"
16506
16507
16508 cat >confcache <<\_ACEOF
16509 # This file is a shell script that caches the results of configure
16510 # tests run on this system so they can be shared between configure
16511 # scripts and configure runs, see configure's option --config-cache.
16512 # It is not useful on other systems.  If it contains results you don't
16513 # want to keep, you may remove or edit it.
16514 #
16515 # config.status only pays attention to the cache file if you give it
16516 # the --recheck option to rerun configure.
16517 #
16518 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16519 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16520 # following values.
16521
16522 _ACEOF
16523
16524 # The following way of writing the cache mishandles newlines in values,
16525 # but we know of no workaround that is simple, portable, and efficient.
16526 # So, we kill variables containing newlines.
16527 # Ultrix sh set writes to stderr and can't be redirected directly,
16528 # and sets the high bit in the cache file unless we assign to the vars.
16529 (
16530   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16531     eval ac_val=\$$ac_var
16532     case $ac_val in #(
16533     *${as_nl}*)
16534       case $ac_var in #(
16535       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16536 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16537       esac
16538       case $ac_var in #(
16539       _ | IFS | as_nl) ;; #(
16540       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16541       *) { eval $ac_var=; unset $ac_var;} ;;
16542       esac ;;
16543     esac
16544   done
16545
16546   (set) 2>&1 |
16547     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16548     *${as_nl}ac_space=\ *)
16549       # `set' does not quote correctly, so add quotes: double-quote
16550       # substitution turns \\\\ into \\, and sed turns \\ into \.
16551       sed -n \
16552         "s/'/'\\\\''/g;
16553           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16554       ;; #(
16555     *)
16556       # `set' quotes correctly as required by POSIX, so do not add quotes.
16557       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16558       ;;
16559     esac |
16560     sort
16561 ) |
16562   sed '
16563      /^ac_cv_env_/b end
16564      t clear
16565      :clear
16566      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16567      t end
16568      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16569      :end' >>confcache
16570 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16571   if test -w "$cache_file"; then
16572     if test "x$cache_file" != "x/dev/null"; then
16573       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16574 $as_echo "$as_me: updating cache $cache_file" >&6;}
16575       if test ! -f "$cache_file" || test -h "$cache_file"; then
16576         cat confcache >"$cache_file"
16577       else
16578         case $cache_file in #(
16579         */* | ?:*)
16580           mv -f confcache "$cache_file"$$ &&
16581           mv -f "$cache_file"$$ "$cache_file" ;; #(
16582         *)
16583           mv -f confcache "$cache_file" ;;
16584         esac
16585       fi
16586     fi
16587   else
16588     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16589 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16590   fi
16591 fi
16592 rm -f confcache
16593
16594 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16595 # Let make expand exec_prefix.
16596 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16597
16598 DEFS=-DHAVE_CONFIG_H
16599
16600 ac_libobjs=
16601 ac_ltlibobjs=
16602 U=
16603 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16604   # 1. Remove the extension, and $U if already installed.
16605   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16606   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16607   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16608   #    will be set to the directory where LIBOBJS objects are built.
16609   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16610   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16611 done
16612 LIBOBJS=$ac_libobjs
16613
16614 LTLIBOBJS=$ac_ltlibobjs
16615
16616
16617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16618 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16619    if test -n "$am_sleep_pid"; then
16620      # Hide warnings about reused PIDs.
16621      wait $am_sleep_pid 2>/dev/null
16622    fi
16623    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16624 $as_echo "done" >&6; }
16625  if test -n "$EXEEXT"; then
16626   am__EXEEXT_TRUE=
16627   am__EXEEXT_FALSE='#'
16628 else
16629   am__EXEEXT_TRUE='#'
16630   am__EXEEXT_FALSE=
16631 fi
16632
16633 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16634   as_fn_error $? "conditional \"AMDEP\" was never defined.
16635 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16636 fi
16637 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16638   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16639 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16640 fi
16641 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16642   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16643 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16644 fi
16645
16646 : "${CONFIG_STATUS=./config.status}"
16647 ac_write_fail=0
16648 ac_clean_files_save=$ac_clean_files
16649 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16650 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16651 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16652 as_write_fail=0
16653 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16654 #! $SHELL
16655 # Generated by $as_me.
16656 # Run this file to recreate the current configuration.
16657 # Compiler output produced by configure, useful for debugging
16658 # configure, is in config.log if it exists.
16659
16660 debug=false
16661 ac_cs_recheck=false
16662 ac_cs_silent=false
16663
16664 SHELL=\${CONFIG_SHELL-$SHELL}
16665 export SHELL
16666 _ASEOF
16667 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16668 ## -------------------- ##
16669 ## M4sh Initialization. ##
16670 ## -------------------- ##
16671
16672 # Be more Bourne compatible
16673 DUALCASE=1; export DUALCASE # for MKS sh
16674 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16675   emulate sh
16676   NULLCMD=:
16677   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16678   # is contrary to our usage.  Disable this feature.
16679   alias -g '${1+"$@"}'='"$@"'
16680   setopt NO_GLOB_SUBST
16681 else
16682   case `(set -o) 2>/dev/null` in #(
16683   *posix*) :
16684     set -o posix ;; #(
16685   *) :
16686      ;;
16687 esac
16688 fi
16689
16690
16691 as_nl='
16692 '
16693 export as_nl
16694 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16695 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16696 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16697 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16698 # Prefer a ksh shell builtin over an external printf program on Solaris,
16699 # but without wasting forks for bash or zsh.
16700 if test -z "$BASH_VERSION$ZSH_VERSION" \
16701     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16702   as_echo='print -r --'
16703   as_echo_n='print -rn --'
16704 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16705   as_echo='printf %s\n'
16706   as_echo_n='printf %s'
16707 else
16708   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16709     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16710     as_echo_n='/usr/ucb/echo -n'
16711   else
16712     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16713     as_echo_n_body='eval
16714       arg=$1;
16715       case $arg in #(
16716       *"$as_nl"*)
16717         expr "X$arg" : "X\\(.*\\)$as_nl";
16718         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16719       esac;
16720       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16721     '
16722     export as_echo_n_body
16723     as_echo_n='sh -c $as_echo_n_body as_echo'
16724   fi
16725   export as_echo_body
16726   as_echo='sh -c $as_echo_body as_echo'
16727 fi
16728
16729 # The user is always right.
16730 if test "${PATH_SEPARATOR+set}" != set; then
16731   PATH_SEPARATOR=:
16732   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16733     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16734       PATH_SEPARATOR=';'
16735   }
16736 fi
16737
16738
16739 # IFS
16740 # We need space, tab and new line, in precisely that order.  Quoting is
16741 # there to prevent editors from complaining about space-tab.
16742 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16743 # splitting by setting IFS to empty value.)
16744 IFS=" ""        $as_nl"
16745
16746 # Find who we are.  Look in the path if we contain no directory separator.
16747 as_myself=
16748 case $0 in #((
16749   *[\\/]* ) as_myself=$0 ;;
16750   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16751 for as_dir in $PATH
16752 do
16753   IFS=$as_save_IFS
16754   test -z "$as_dir" && as_dir=.
16755     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16756   done
16757 IFS=$as_save_IFS
16758
16759      ;;
16760 esac
16761 # We did not find ourselves, most probably we were run as `sh COMMAND'
16762 # in which case we are not to be found in the path.
16763 if test "x$as_myself" = x; then
16764   as_myself=$0
16765 fi
16766 if test ! -f "$as_myself"; then
16767   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16768   exit 1
16769 fi
16770
16771 # Unset variables that we do not need and which cause bugs (e.g. in
16772 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16773 # suppresses any "Segmentation fault" message there.  '((' could
16774 # trigger a bug in pdksh 5.2.14.
16775 for as_var in BASH_ENV ENV MAIL MAILPATH
16776 do eval test x\${$as_var+set} = xset \
16777   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16778 done
16779 PS1='$ '
16780 PS2='> '
16781 PS4='+ '
16782
16783 # NLS nuisances.
16784 LC_ALL=C
16785 export LC_ALL
16786 LANGUAGE=C
16787 export LANGUAGE
16788
16789 # CDPATH.
16790 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16791
16792
16793 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16794 # ----------------------------------------
16795 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16796 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16797 # script with STATUS, using 1 if that was 0.
16798 as_fn_error ()
16799 {
16800   as_status=$1; test $as_status -eq 0 && as_status=1
16801   if test "$4"; then
16802     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16803     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16804   fi
16805   $as_echo "$as_me: error: $2" >&2
16806   as_fn_exit $as_status
16807 } # as_fn_error
16808
16809
16810 # as_fn_set_status STATUS
16811 # -----------------------
16812 # Set $? to STATUS, without forking.
16813 as_fn_set_status ()
16814 {
16815   return $1
16816 } # as_fn_set_status
16817
16818 # as_fn_exit STATUS
16819 # -----------------
16820 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16821 as_fn_exit ()
16822 {
16823   set +e
16824   as_fn_set_status $1
16825   exit $1
16826 } # as_fn_exit
16827
16828 # as_fn_unset VAR
16829 # ---------------
16830 # Portably unset VAR.
16831 as_fn_unset ()
16832 {
16833   { eval $1=; unset $1;}
16834 }
16835 as_unset=as_fn_unset
16836 # as_fn_append VAR VALUE
16837 # ----------------------
16838 # Append the text in VALUE to the end of the definition contained in VAR. Take
16839 # advantage of any shell optimizations that allow amortized linear growth over
16840 # repeated appends, instead of the typical quadratic growth present in naive
16841 # implementations.
16842 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16843   eval 'as_fn_append ()
16844   {
16845     eval $1+=\$2
16846   }'
16847 else
16848   as_fn_append ()
16849   {
16850     eval $1=\$$1\$2
16851   }
16852 fi # as_fn_append
16853
16854 # as_fn_arith ARG...
16855 # ------------------
16856 # Perform arithmetic evaluation on the ARGs, and store the result in the
16857 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16858 # must be portable across $(()) and expr.
16859 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16860   eval 'as_fn_arith ()
16861   {
16862     as_val=$(( $* ))
16863   }'
16864 else
16865   as_fn_arith ()
16866   {
16867     as_val=`expr "$@" || test $? -eq 1`
16868   }
16869 fi # as_fn_arith
16870
16871
16872 if expr a : '\(a\)' >/dev/null 2>&1 &&
16873    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16874   as_expr=expr
16875 else
16876   as_expr=false
16877 fi
16878
16879 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16880   as_basename=basename
16881 else
16882   as_basename=false
16883 fi
16884
16885 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16886   as_dirname=dirname
16887 else
16888   as_dirname=false
16889 fi
16890
16891 as_me=`$as_basename -- "$0" ||
16892 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16893          X"$0" : 'X\(//\)$' \| \
16894          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16895 $as_echo X/"$0" |
16896     sed '/^.*\/\([^/][^/]*\)\/*$/{
16897             s//\1/
16898             q
16899           }
16900           /^X\/\(\/\/\)$/{
16901             s//\1/
16902             q
16903           }
16904           /^X\/\(\/\).*/{
16905             s//\1/
16906             q
16907           }
16908           s/.*/./; q'`
16909
16910 # Avoid depending upon Character Ranges.
16911 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16912 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16913 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16914 as_cr_digits='0123456789'
16915 as_cr_alnum=$as_cr_Letters$as_cr_digits
16916
16917 ECHO_C= ECHO_N= ECHO_T=
16918 case `echo -n x` in #(((((
16919 -n*)
16920   case `echo 'xy\c'` in
16921   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16922   xy)  ECHO_C='\c';;
16923   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16924        ECHO_T=' ';;
16925   esac;;
16926 *)
16927   ECHO_N='-n';;
16928 esac
16929
16930 rm -f conf$$ conf$$.exe conf$$.file
16931 if test -d conf$$.dir; then
16932   rm -f conf$$.dir/conf$$.file
16933 else
16934   rm -f conf$$.dir
16935   mkdir conf$$.dir 2>/dev/null
16936 fi
16937 if (echo >conf$$.file) 2>/dev/null; then
16938   if ln -s conf$$.file conf$$ 2>/dev/null; then
16939     as_ln_s='ln -s'
16940     # ... but there are two gotchas:
16941     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16942     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16943     # In both cases, we have to default to `cp -pR'.
16944     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16945       as_ln_s='cp -pR'
16946   elif ln conf$$.file conf$$ 2>/dev/null; then
16947     as_ln_s=ln
16948   else
16949     as_ln_s='cp -pR'
16950   fi
16951 else
16952   as_ln_s='cp -pR'
16953 fi
16954 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16955 rmdir conf$$.dir 2>/dev/null
16956
16957
16958 # as_fn_mkdir_p
16959 # -------------
16960 # Create "$as_dir" as a directory, including parents if necessary.
16961 as_fn_mkdir_p ()
16962 {
16963
16964   case $as_dir in #(
16965   -*) as_dir=./$as_dir;;
16966   esac
16967   test -d "$as_dir" || eval $as_mkdir_p || {
16968     as_dirs=
16969     while :; do
16970       case $as_dir in #(
16971       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16972       *) as_qdir=$as_dir;;
16973       esac
16974       as_dirs="'$as_qdir' $as_dirs"
16975       as_dir=`$as_dirname -- "$as_dir" ||
16976 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16977          X"$as_dir" : 'X\(//\)[^/]' \| \
16978          X"$as_dir" : 'X\(//\)$' \| \
16979          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16980 $as_echo X"$as_dir" |
16981     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16982             s//\1/
16983             q
16984           }
16985           /^X\(\/\/\)[^/].*/{
16986             s//\1/
16987             q
16988           }
16989           /^X\(\/\/\)$/{
16990             s//\1/
16991             q
16992           }
16993           /^X\(\/\).*/{
16994             s//\1/
16995             q
16996           }
16997           s/.*/./; q'`
16998       test -d "$as_dir" && break
16999     done
17000     test -z "$as_dirs" || eval "mkdir $as_dirs"
17001   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17002
17003
17004 } # as_fn_mkdir_p
17005 if mkdir -p . 2>/dev/null; then
17006   as_mkdir_p='mkdir -p "$as_dir"'
17007 else
17008   test -d ./-p && rmdir ./-p
17009   as_mkdir_p=false
17010 fi
17011
17012
17013 # as_fn_executable_p FILE
17014 # -----------------------
17015 # Test if FILE is an executable regular file.
17016 as_fn_executable_p ()
17017 {
17018   test -f "$1" && test -x "$1"
17019 } # as_fn_executable_p
17020 as_test_x='test -x'
17021 as_executable_p=as_fn_executable_p
17022
17023 # Sed expression to map a string onto a valid CPP name.
17024 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17025
17026 # Sed expression to map a string onto a valid variable name.
17027 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17028
17029
17030 exec 6>&1
17031 ## ----------------------------------- ##
17032 ## Main body of $CONFIG_STATUS script. ##
17033 ## ----------------------------------- ##
17034 _ASEOF
17035 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17036
17037 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17038 # Save the log message, to keep $0 and so on meaningful, and to
17039 # report actual input values of CONFIG_FILES etc. instead of their
17040 # values after options handling.
17041 ac_log="
17042 This file was extended by libpinyin $as_me 1.0.0, which was
17043 generated by GNU Autoconf 2.69.  Invocation command line was
17044
17045   CONFIG_FILES    = $CONFIG_FILES
17046   CONFIG_HEADERS  = $CONFIG_HEADERS
17047   CONFIG_LINKS    = $CONFIG_LINKS
17048   CONFIG_COMMANDS = $CONFIG_COMMANDS
17049   $ $0 $@
17050
17051 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17052 "
17053
17054 _ACEOF
17055
17056 case $ac_config_files in *"
17057 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17058 esac
17059
17060 case $ac_config_headers in *"
17061 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17062 esac
17063
17064
17065 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17066 # Files that config.status was made for.
17067 config_files="$ac_config_files"
17068 config_headers="$ac_config_headers"
17069 config_commands="$ac_config_commands"
17070
17071 _ACEOF
17072
17073 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17074 ac_cs_usage="\
17075 \`$as_me' instantiates files and other configuration actions
17076 from templates according to the current configuration.  Unless the files
17077 and actions are specified as TAGs, all are instantiated by default.
17078
17079 Usage: $0 [OPTION]... [TAG]...
17080
17081   -h, --help       print this help, then exit
17082   -V, --version    print version number and configuration settings, then exit
17083       --config     print configuration, then exit
17084   -q, --quiet, --silent
17085                    do not print progress messages
17086   -d, --debug      don't remove temporary files
17087       --recheck    update $as_me by reconfiguring in the same conditions
17088       --file=FILE[:TEMPLATE]
17089                    instantiate the configuration file FILE
17090       --header=FILE[:TEMPLATE]
17091                    instantiate the configuration header FILE
17092
17093 Configuration files:
17094 $config_files
17095
17096 Configuration headers:
17097 $config_headers
17098
17099 Configuration commands:
17100 $config_commands
17101
17102 Report bugs to <https://github.com/libpinyin/libpinyin/issues/new>."
17103
17104 _ACEOF
17105 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17106 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17107 ac_cs_version="\\
17108 libpinyin config.status 1.0.0
17109 configured by $0, generated by GNU Autoconf 2.69,
17110   with options \\"\$ac_cs_config\\"
17111
17112 Copyright (C) 2012 Free Software Foundation, Inc.
17113 This config.status script is free software; the Free Software Foundation
17114 gives unlimited permission to copy, distribute and modify it."
17115
17116 ac_pwd='$ac_pwd'
17117 srcdir='$srcdir'
17118 INSTALL='$INSTALL'
17119 MKDIR_P='$MKDIR_P'
17120 AWK='$AWK'
17121 test -n "\$AWK" || AWK=awk
17122 _ACEOF
17123
17124 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17125 # The default lists apply if the user does not specify any file.
17126 ac_need_defaults=:
17127 while test $# != 0
17128 do
17129   case $1 in
17130   --*=?*)
17131     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17132     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17133     ac_shift=:
17134     ;;
17135   --*=)
17136     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17137     ac_optarg=
17138     ac_shift=:
17139     ;;
17140   *)
17141     ac_option=$1
17142     ac_optarg=$2
17143     ac_shift=shift
17144     ;;
17145   esac
17146
17147   case $ac_option in
17148   # Handling of the options.
17149   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17150     ac_cs_recheck=: ;;
17151   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17152     $as_echo "$ac_cs_version"; exit ;;
17153   --config | --confi | --conf | --con | --co | --c )
17154     $as_echo "$ac_cs_config"; exit ;;
17155   --debug | --debu | --deb | --de | --d | -d )
17156     debug=: ;;
17157   --file | --fil | --fi | --f )
17158     $ac_shift
17159     case $ac_optarg in
17160     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17161     '') as_fn_error $? "missing file argument" ;;
17162     esac
17163     as_fn_append CONFIG_FILES " '$ac_optarg'"
17164     ac_need_defaults=false;;
17165   --header | --heade | --head | --hea )
17166     $ac_shift
17167     case $ac_optarg in
17168     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17169     esac
17170     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17171     ac_need_defaults=false;;
17172   --he | --h)
17173     # Conflict between --help and --header
17174     as_fn_error $? "ambiguous option: \`$1'
17175 Try \`$0 --help' for more information.";;
17176   --help | --hel | -h )
17177     $as_echo "$ac_cs_usage"; exit ;;
17178   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17179   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17180     ac_cs_silent=: ;;
17181
17182   # This is an error.
17183   -*) as_fn_error $? "unrecognized option: \`$1'
17184 Try \`$0 --help' for more information." ;;
17185
17186   *) as_fn_append ac_config_targets " $1"
17187      ac_need_defaults=false ;;
17188
17189   esac
17190   shift
17191 done
17192
17193 ac_configure_extra_args=
17194
17195 if $ac_cs_silent; then
17196   exec 6>/dev/null
17197   ac_configure_extra_args="$ac_configure_extra_args --silent"
17198 fi
17199
17200 _ACEOF
17201 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17202 if \$ac_cs_recheck; then
17203   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17204   shift
17205   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17206   CONFIG_SHELL='$SHELL'
17207   export CONFIG_SHELL
17208   exec "\$@"
17209 fi
17210
17211 _ACEOF
17212 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17213 exec 5>>config.log
17214 {
17215   echo
17216   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17217 ## Running $as_me. ##
17218 _ASBOX
17219   $as_echo "$ac_log"
17220 } >&5
17221
17222 _ACEOF
17223 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17224 #
17225 # INIT-COMMANDS
17226 #
17227 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17228
17229
17230 # The HP-UX ksh and POSIX shell print the target directory to stdout
17231 # if CDPATH is set.
17232 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17233
17234 sed_quote_subst='$sed_quote_subst'
17235 double_quote_subst='$double_quote_subst'
17236 delay_variable_subst='$delay_variable_subst'
17237 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17238 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17239 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17240 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17241 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17242 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17243 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17244 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17245 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17246 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17247 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17248 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17249 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17250 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17251 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17252 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17253 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17254 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17255 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17256 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17257 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17258 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17259 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17260 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17261 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17262 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17263 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17264 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17265 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17266 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17267 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17268 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17269 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17270 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17271 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17272 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17273 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17274 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17275 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17276 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17277 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17278 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17279 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17280 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17281 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17282 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17283 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17284 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17285 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17286 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17287 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17288 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17289 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17290 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17291 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17292 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17293 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"`'
17294 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17295 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17296 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17297 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17298 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17299 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17300 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17301 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17302 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17303 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17304 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17305 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17306 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17307 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17308 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17309 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17310 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17311 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17312 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17313 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17314 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17315 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17316 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17317 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17318 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17319 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17320 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17321 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17322 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17323 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17324 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17325 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17326 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17327 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17328 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17329 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17330 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17331 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17332 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17333 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17334 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17335 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17336 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17337 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17338 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17339 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17340 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17341 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17342 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17343 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17344 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17345 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17346 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17347 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17348 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17349 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17350 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17351 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17352 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17353 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17354 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17355 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17356 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17357 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17358 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17359 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17360 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17361 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17362 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17363 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17364 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17365 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17366 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17367 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17368 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17369 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17370 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17371 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17372 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17373 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17374 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17375 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17376 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17377 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17378 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17379 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17380 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17381 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17382 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17383 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17384 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17385 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17386 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17387 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17388 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17389 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17390 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17391 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17392 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17393 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17394 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17395 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17396 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17397 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17398 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17399 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17400 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17401 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17402 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17403 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17404 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17405 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17406 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17407 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17408 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17409 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17410 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17411 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17412 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17413 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17414 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17415 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17416 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17417 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17418 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17419 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17420 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17421
17422 LTCC='$LTCC'
17423 LTCFLAGS='$LTCFLAGS'
17424 compiler='$compiler_DEFAULT'
17425
17426 # A function that is used when there is no print builtin or printf.
17427 func_fallback_echo ()
17428 {
17429   eval 'cat <<_LTECHO_EOF
17430 \$1
17431 _LTECHO_EOF'
17432 }
17433
17434 # Quote evaled strings.
17435 for var in SHELL \
17436 ECHO \
17437 PATH_SEPARATOR \
17438 SED \
17439 GREP \
17440 EGREP \
17441 FGREP \
17442 LD \
17443 NM \
17444 LN_S \
17445 lt_SP2NL \
17446 lt_NL2SP \
17447 reload_flag \
17448 OBJDUMP \
17449 deplibs_check_method \
17450 file_magic_cmd \
17451 file_magic_glob \
17452 want_nocaseglob \
17453 DLLTOOL \
17454 sharedlib_from_linklib_cmd \
17455 AR \
17456 AR_FLAGS \
17457 archiver_list_spec \
17458 STRIP \
17459 RANLIB \
17460 CC \
17461 CFLAGS \
17462 compiler \
17463 lt_cv_sys_global_symbol_pipe \
17464 lt_cv_sys_global_symbol_to_cdecl \
17465 lt_cv_sys_global_symbol_to_c_name_address \
17466 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17467 nm_file_list_spec \
17468 lt_prog_compiler_no_builtin_flag \
17469 lt_prog_compiler_pic \
17470 lt_prog_compiler_wl \
17471 lt_prog_compiler_static \
17472 lt_cv_prog_compiler_c_o \
17473 need_locks \
17474 MANIFEST_TOOL \
17475 DSYMUTIL \
17476 NMEDIT \
17477 LIPO \
17478 OTOOL \
17479 OTOOL64 \
17480 shrext_cmds \
17481 export_dynamic_flag_spec \
17482 whole_archive_flag_spec \
17483 compiler_needs_object \
17484 with_gnu_ld \
17485 allow_undefined_flag \
17486 no_undefined_flag \
17487 hardcode_libdir_flag_spec \
17488 hardcode_libdir_separator \
17489 exclude_expsyms \
17490 include_expsyms \
17491 file_list_spec \
17492 variables_saved_for_relink \
17493 libname_spec \
17494 library_names_spec \
17495 soname_spec \
17496 install_override_mode \
17497 finish_eval \
17498 old_striplib \
17499 striplib \
17500 compiler_lib_search_dirs \
17501 predep_objects \
17502 postdep_objects \
17503 predeps \
17504 postdeps \
17505 compiler_lib_search_path \
17506 LD_CXX \
17507 reload_flag_CXX \
17508 compiler_CXX \
17509 lt_prog_compiler_no_builtin_flag_CXX \
17510 lt_prog_compiler_pic_CXX \
17511 lt_prog_compiler_wl_CXX \
17512 lt_prog_compiler_static_CXX \
17513 lt_cv_prog_compiler_c_o_CXX \
17514 export_dynamic_flag_spec_CXX \
17515 whole_archive_flag_spec_CXX \
17516 compiler_needs_object_CXX \
17517 with_gnu_ld_CXX \
17518 allow_undefined_flag_CXX \
17519 no_undefined_flag_CXX \
17520 hardcode_libdir_flag_spec_CXX \
17521 hardcode_libdir_separator_CXX \
17522 exclude_expsyms_CXX \
17523 include_expsyms_CXX \
17524 file_list_spec_CXX \
17525 compiler_lib_search_dirs_CXX \
17526 predep_objects_CXX \
17527 postdep_objects_CXX \
17528 predeps_CXX \
17529 postdeps_CXX \
17530 compiler_lib_search_path_CXX; do
17531     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17532     *[\\\\\\\`\\"\\\$]*)
17533       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17534       ;;
17535     *)
17536       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17537       ;;
17538     esac
17539 done
17540
17541 # Double-quote double-evaled strings.
17542 for var in reload_cmds \
17543 old_postinstall_cmds \
17544 old_postuninstall_cmds \
17545 old_archive_cmds \
17546 extract_expsyms_cmds \
17547 old_archive_from_new_cmds \
17548 old_archive_from_expsyms_cmds \
17549 archive_cmds \
17550 archive_expsym_cmds \
17551 module_cmds \
17552 module_expsym_cmds \
17553 export_symbols_cmds \
17554 prelink_cmds \
17555 postlink_cmds \
17556 postinstall_cmds \
17557 postuninstall_cmds \
17558 finish_cmds \
17559 sys_lib_search_path_spec \
17560 sys_lib_dlsearch_path_spec \
17561 reload_cmds_CXX \
17562 old_archive_cmds_CXX \
17563 old_archive_from_new_cmds_CXX \
17564 old_archive_from_expsyms_cmds_CXX \
17565 archive_cmds_CXX \
17566 archive_expsym_cmds_CXX \
17567 module_cmds_CXX \
17568 module_expsym_cmds_CXX \
17569 export_symbols_cmds_CXX \
17570 prelink_cmds_CXX \
17571 postlink_cmds_CXX; do
17572     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17573     *[\\\\\\\`\\"\\\$]*)
17574       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17575       ;;
17576     *)
17577       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17578       ;;
17579     esac
17580 done
17581
17582 ac_aux_dir='$ac_aux_dir'
17583 xsi_shell='$xsi_shell'
17584 lt_shell_append='$lt_shell_append'
17585
17586 # See if we are running on zsh, and set the options which allow our
17587 # commands through without removal of \ escapes INIT.
17588 if test -n "\${ZSH_VERSION+set}" ; then
17589    setopt NO_GLOB_SUBST
17590 fi
17591
17592
17593     PACKAGE='$PACKAGE'
17594     VERSION='$VERSION'
17595     TIMESTAMP='$TIMESTAMP'
17596     RM='$RM'
17597     ofile='$ofile'
17598
17599
17600
17601
17602
17603
17604 _ACEOF
17605
17606 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17607
17608 # Handling of arguments.
17609 for ac_config_target in $ac_config_targets
17610 do
17611   case $ac_config_target in
17612     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17613     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17614     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17615     "libpinyin.pc") CONFIG_FILES="$CONFIG_FILES libpinyin.pc" ;;
17616     "libpinyin.spec") CONFIG_FILES="$CONFIG_FILES libpinyin.spec" ;;
17617     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17618     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17619     "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
17620     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17621     "src/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
17622     "src/storage/Makefile") CONFIG_FILES="$CONFIG_FILES src/storage/Makefile" ;;
17623     "src/lookup/Makefile") CONFIG_FILES="$CONFIG_FILES src/lookup/Makefile" ;;
17624     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
17625     "tests/include/Makefile") CONFIG_FILES="$CONFIG_FILES tests/include/Makefile" ;;
17626     "tests/storage/Makefile") CONFIG_FILES="$CONFIG_FILES tests/storage/Makefile" ;;
17627     "tests/lookup/Makefile") CONFIG_FILES="$CONFIG_FILES tests/lookup/Makefile" ;;
17628     "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
17629     "utils/storage/Makefile") CONFIG_FILES="$CONFIG_FILES utils/storage/Makefile" ;;
17630     "utils/segment/Makefile") CONFIG_FILES="$CONFIG_FILES utils/segment/Makefile" ;;
17631     "utils/training/Makefile") CONFIG_FILES="$CONFIG_FILES utils/training/Makefile" ;;
17632
17633   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17634   esac
17635 done
17636
17637
17638 # If the user did not use the arguments to specify the items to instantiate,
17639 # then the envvar interface is used.  Set only those that are not.
17640 # We use the long form for the default assignment because of an extremely
17641 # bizarre bug on SunOS 4.1.3.
17642 if $ac_need_defaults; then
17643   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17644   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17645   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17646 fi
17647
17648 # Have a temporary directory for convenience.  Make it in the build tree
17649 # simply because there is no reason against having it here, and in addition,
17650 # creating and moving files from /tmp can sometimes cause problems.
17651 # Hook for its removal unless debugging.
17652 # Note that there is a small window in which the directory will not be cleaned:
17653 # after its creation but before its name has been assigned to `$tmp'.
17654 $debug ||
17655 {
17656   tmp= ac_tmp=
17657   trap 'exit_status=$?
17658   : "${ac_tmp:=$tmp}"
17659   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17660 ' 0
17661   trap 'as_fn_exit 1' 1 2 13 15
17662 }
17663 # Create a (secure) tmp directory for tmp files.
17664
17665 {
17666   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17667   test -d "$tmp"
17668 }  ||
17669 {
17670   tmp=./conf$$-$RANDOM
17671   (umask 077 && mkdir "$tmp")
17672 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17673 ac_tmp=$tmp
17674
17675 # Set up the scripts for CONFIG_FILES section.
17676 # No need to generate them if there are no CONFIG_FILES.
17677 # This happens for instance with `./config.status config.h'.
17678 if test -n "$CONFIG_FILES"; then
17679
17680
17681 ac_cr=`echo X | tr X '\015'`
17682 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17683 # But we know of no other shell where ac_cr would be empty at this
17684 # point, so we can use a bashism as a fallback.
17685 if test "x$ac_cr" = x; then
17686   eval ac_cr=\$\'\\r\'
17687 fi
17688 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17689 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17690   ac_cs_awk_cr='\\r'
17691 else
17692   ac_cs_awk_cr=$ac_cr
17693 fi
17694
17695 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17696 _ACEOF
17697
17698
17699 {
17700   echo "cat >conf$$subs.awk <<_ACEOF" &&
17701   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17702   echo "_ACEOF"
17703 } >conf$$subs.sh ||
17704   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17705 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17706 ac_delim='%!_!# '
17707 for ac_last_try in false false false false false :; do
17708   . ./conf$$subs.sh ||
17709     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17710
17711   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17712   if test $ac_delim_n = $ac_delim_num; then
17713     break
17714   elif $ac_last_try; then
17715     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17716   else
17717     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17718   fi
17719 done
17720 rm -f conf$$subs.sh
17721
17722 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17723 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17724 _ACEOF
17725 sed -n '
17726 h
17727 s/^/S["/; s/!.*/"]=/
17728 p
17729 g
17730 s/^[^!]*!//
17731 :repl
17732 t repl
17733 s/'"$ac_delim"'$//
17734 t delim
17735 :nl
17736 h
17737 s/\(.\{148\}\)..*/\1/
17738 t more1
17739 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17740 p
17741 n
17742 b repl
17743 :more1
17744 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17745 p
17746 g
17747 s/.\{148\}//
17748 t nl
17749 :delim
17750 h
17751 s/\(.\{148\}\)..*/\1/
17752 t more2
17753 s/["\\]/\\&/g; s/^/"/; s/$/"/
17754 p
17755 b
17756 :more2
17757 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17758 p
17759 g
17760 s/.\{148\}//
17761 t delim
17762 ' <conf$$subs.awk | sed '
17763 /^[^""]/{
17764   N
17765   s/\n//
17766 }
17767 ' >>$CONFIG_STATUS || ac_write_fail=1
17768 rm -f conf$$subs.awk
17769 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17770 _ACAWK
17771 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17772   for (key in S) S_is_set[key] = 1
17773   FS = "\a"
17774
17775 }
17776 {
17777   line = $ 0
17778   nfields = split(line, field, "@")
17779   substed = 0
17780   len = length(field[1])
17781   for (i = 2; i < nfields; i++) {
17782     key = field[i]
17783     keylen = length(key)
17784     if (S_is_set[key]) {
17785       value = S[key]
17786       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17787       len += length(value) + length(field[++i])
17788       substed = 1
17789     } else
17790       len += 1 + keylen
17791   }
17792
17793   print line
17794 }
17795
17796 _ACAWK
17797 _ACEOF
17798 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17799 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17800   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17801 else
17802   cat
17803 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17804   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17805 _ACEOF
17806
17807 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17808 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17809 # trailing colons and then remove the whole line if VPATH becomes empty
17810 # (actually we leave an empty line to preserve line numbers).
17811 if test "x$srcdir" = x.; then
17812   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
17813 h
17814 s///
17815 s/^/:/
17816 s/[      ]*$/:/
17817 s/:\$(srcdir):/:/g
17818 s/:\${srcdir}:/:/g
17819 s/:@srcdir@:/:/g
17820 s/^:*//
17821 s/:*$//
17822 x
17823 s/\(=[   ]*\).*/\1/
17824 G
17825 s/\n//
17826 s/^[^=]*=[       ]*$//
17827 }'
17828 fi
17829
17830 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17831 fi # test -n "$CONFIG_FILES"
17832
17833 # Set up the scripts for CONFIG_HEADERS section.
17834 # No need to generate them if there are no CONFIG_HEADERS.
17835 # This happens for instance with `./config.status Makefile'.
17836 if test -n "$CONFIG_HEADERS"; then
17837 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17838 BEGIN {
17839 _ACEOF
17840
17841 # Transform confdefs.h into an awk script `defines.awk', embedded as
17842 # here-document in config.status, that substitutes the proper values into
17843 # config.h.in to produce config.h.
17844
17845 # Create a delimiter string that does not exist in confdefs.h, to ease
17846 # handling of long lines.
17847 ac_delim='%!_!# '
17848 for ac_last_try in false false :; do
17849   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17850   if test -z "$ac_tt"; then
17851     break
17852   elif $ac_last_try; then
17853     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17854   else
17855     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17856   fi
17857 done
17858
17859 # For the awk script, D is an array of macro values keyed by name,
17860 # likewise P contains macro parameters if any.  Preserve backslash
17861 # newline sequences.
17862
17863 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17864 sed -n '
17865 s/.\{148\}/&'"$ac_delim"'/g
17866 t rset
17867 :rset
17868 s/^[     ]*#[    ]*define[       ][      ]*/ /
17869 t def
17870 d
17871 :def
17872 s/\\$//
17873 t bsnl
17874 s/["\\]/\\&/g
17875 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17876 D["\1"]=" \3"/p
17877 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
17878 d
17879 :bsnl
17880 s/["\\]/\\&/g
17881 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17882 D["\1"]=" \3\\\\\\n"\\/p
17883 t cont
17884 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17885 t cont
17886 d
17887 :cont
17888 n
17889 s/.\{148\}/&'"$ac_delim"'/g
17890 t clear
17891 :clear
17892 s/\\$//
17893 t bsnlc
17894 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17895 d
17896 :bsnlc
17897 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17898 b cont
17899 ' <confdefs.h | sed '
17900 s/'"$ac_delim"'/"\\\
17901 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17902
17903 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17904   for (key in D) D_is_set[key] = 1
17905   FS = "\a"
17906 }
17907 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17908   line = \$ 0
17909   split(line, arg, " ")
17910   if (arg[1] == "#") {
17911     defundef = arg[2]
17912     mac1 = arg[3]
17913   } else {
17914     defundef = substr(arg[1], 2)
17915     mac1 = arg[2]
17916   }
17917   split(mac1, mac2, "(") #)
17918   macro = mac2[1]
17919   prefix = substr(line, 1, index(line, defundef) - 1)
17920   if (D_is_set[macro]) {
17921     # Preserve the white space surrounding the "#".
17922     print prefix "define", macro P[macro] D[macro]
17923     next
17924   } else {
17925     # Replace #undef with comments.  This is necessary, for example,
17926     # in the case of _POSIX_SOURCE, which is predefined and required
17927     # on some systems where configure will not decide to define it.
17928     if (defundef == "undef") {
17929       print "/*", prefix defundef, macro, "*/"
17930       next
17931     }
17932   }
17933 }
17934 { print }
17935 _ACAWK
17936 _ACEOF
17937 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17938   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17939 fi # test -n "$CONFIG_HEADERS"
17940
17941
17942 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17943 shift
17944 for ac_tag
17945 do
17946   case $ac_tag in
17947   :[FHLC]) ac_mode=$ac_tag; continue;;
17948   esac
17949   case $ac_mode$ac_tag in
17950   :[FHL]*:*);;
17951   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17952   :[FH]-) ac_tag=-:-;;
17953   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17954   esac
17955   ac_save_IFS=$IFS
17956   IFS=:
17957   set x $ac_tag
17958   IFS=$ac_save_IFS
17959   shift
17960   ac_file=$1
17961   shift
17962
17963   case $ac_mode in
17964   :L) ac_source=$1;;
17965   :[FH])
17966     ac_file_inputs=
17967     for ac_f
17968     do
17969       case $ac_f in
17970       -) ac_f="$ac_tmp/stdin";;
17971       *) # Look for the file first in the build tree, then in the source tree
17972          # (if the path is not absolute).  The absolute path cannot be DOS-style,
17973          # because $ac_f cannot contain `:'.
17974          test -f "$ac_f" ||
17975            case $ac_f in
17976            [\\/$]*) false;;
17977            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17978            esac ||
17979            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17980       esac
17981       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17982       as_fn_append ac_file_inputs " '$ac_f'"
17983     done
17984
17985     # Let's still pretend it is `configure' which instantiates (i.e., don't
17986     # use $as_me), people would be surprised to read:
17987     #    /* config.h.  Generated by config.status.  */
17988     configure_input='Generated from '`
17989           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17990         `' by configure.'
17991     if test x"$ac_file" != x-; then
17992       configure_input="$ac_file.  $configure_input"
17993       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17994 $as_echo "$as_me: creating $ac_file" >&6;}
17995     fi
17996     # Neutralize special characters interpreted by sed in replacement strings.
17997     case $configure_input in #(
17998     *\&* | *\|* | *\\* )
17999        ac_sed_conf_input=`$as_echo "$configure_input" |
18000        sed 's/[\\\\&|]/\\\\&/g'`;; #(
18001     *) ac_sed_conf_input=$configure_input;;
18002     esac
18003
18004     case $ac_tag in
18005     *:-:* | *:-) cat >"$ac_tmp/stdin" \
18006       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18007     esac
18008     ;;
18009   esac
18010
18011   ac_dir=`$as_dirname -- "$ac_file" ||
18012 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18013          X"$ac_file" : 'X\(//\)[^/]' \| \
18014          X"$ac_file" : 'X\(//\)$' \| \
18015          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18016 $as_echo X"$ac_file" |
18017     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18018             s//\1/
18019             q
18020           }
18021           /^X\(\/\/\)[^/].*/{
18022             s//\1/
18023             q
18024           }
18025           /^X\(\/\/\)$/{
18026             s//\1/
18027             q
18028           }
18029           /^X\(\/\).*/{
18030             s//\1/
18031             q
18032           }
18033           s/.*/./; q'`
18034   as_dir="$ac_dir"; as_fn_mkdir_p
18035   ac_builddir=.
18036
18037 case "$ac_dir" in
18038 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18039 *)
18040   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18041   # A ".." for each directory in $ac_dir_suffix.
18042   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18043   case $ac_top_builddir_sub in
18044   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18045   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18046   esac ;;
18047 esac
18048 ac_abs_top_builddir=$ac_pwd
18049 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18050 # for backward compatibility:
18051 ac_top_builddir=$ac_top_build_prefix
18052
18053 case $srcdir in
18054   .)  # We are building in place.
18055     ac_srcdir=.
18056     ac_top_srcdir=$ac_top_builddir_sub
18057     ac_abs_top_srcdir=$ac_pwd ;;
18058   [\\/]* | ?:[\\/]* )  # Absolute name.
18059     ac_srcdir=$srcdir$ac_dir_suffix;
18060     ac_top_srcdir=$srcdir
18061     ac_abs_top_srcdir=$srcdir ;;
18062   *) # Relative name.
18063     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18064     ac_top_srcdir=$ac_top_build_prefix$srcdir
18065     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18066 esac
18067 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18068
18069
18070   case $ac_mode in
18071   :F)
18072   #
18073   # CONFIG_FILE
18074   #
18075
18076   case $INSTALL in
18077   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18078   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18079   esac
18080   ac_MKDIR_P=$MKDIR_P
18081   case $MKDIR_P in
18082   [\\/$]* | ?:[\\/]* ) ;;
18083   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18084   esac
18085 _ACEOF
18086
18087 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18088 # If the template does not know about datarootdir, expand it.
18089 # FIXME: This hack should be removed a few years after 2.60.
18090 ac_datarootdir_hack=; ac_datarootdir_seen=
18091 ac_sed_dataroot='
18092 /datarootdir/ {
18093   p
18094   q
18095 }
18096 /@datadir@/p
18097 /@docdir@/p
18098 /@infodir@/p
18099 /@localedir@/p
18100 /@mandir@/p'
18101 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18102 *datarootdir*) ac_datarootdir_seen=yes;;
18103 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18104   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18105 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18106 _ACEOF
18107 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18108   ac_datarootdir_hack='
18109   s&@datadir@&$datadir&g
18110   s&@docdir@&$docdir&g
18111   s&@infodir@&$infodir&g
18112   s&@localedir@&$localedir&g
18113   s&@mandir@&$mandir&g
18114   s&\\\${datarootdir}&$datarootdir&g' ;;
18115 esac
18116 _ACEOF
18117
18118 # Neutralize VPATH when `$srcdir' = `.'.
18119 # Shell code in configure.ac might set extrasub.
18120 # FIXME: do we really want to maintain this feature?
18121 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18122 ac_sed_extra="$ac_vpsub
18123 $extrasub
18124 _ACEOF
18125 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18126 :t
18127 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18128 s|@configure_input@|$ac_sed_conf_input|;t t
18129 s&@top_builddir@&$ac_top_builddir_sub&;t t
18130 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18131 s&@srcdir@&$ac_srcdir&;t t
18132 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18133 s&@top_srcdir@&$ac_top_srcdir&;t t
18134 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18135 s&@builddir@&$ac_builddir&;t t
18136 s&@abs_builddir@&$ac_abs_builddir&;t t
18137 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18138 s&@INSTALL@&$ac_INSTALL&;t t
18139 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18140 $ac_datarootdir_hack
18141 "
18142 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18143   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18144
18145 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18146   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18147   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
18148       "$ac_tmp/out"`; test -z "$ac_out"; } &&
18149   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18150 which seems to be undefined.  Please make sure it is defined" >&5
18151 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18152 which seems to be undefined.  Please make sure it is defined" >&2;}
18153
18154   rm -f "$ac_tmp/stdin"
18155   case $ac_file in
18156   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18157   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18158   esac \
18159   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18160  ;;
18161   :H)
18162   #
18163   # CONFIG_HEADER
18164   #
18165   if test x"$ac_file" != x-; then
18166     {
18167       $as_echo "/* $configure_input  */" \
18168       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18169     } >"$ac_tmp/config.h" \
18170       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18171     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18172       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18173 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18174     else
18175       rm -f "$ac_file"
18176       mv "$ac_tmp/config.h" "$ac_file" \
18177         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18178     fi
18179   else
18180     $as_echo "/* $configure_input  */" \
18181       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18182       || as_fn_error $? "could not create -" "$LINENO" 5
18183   fi
18184 # Compute "$ac_file"'s index in $config_headers.
18185 _am_arg="$ac_file"
18186 _am_stamp_count=1
18187 for _am_header in $config_headers :; do
18188   case $_am_header in
18189     $_am_arg | $_am_arg:* )
18190       break ;;
18191     * )
18192       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18193   esac
18194 done
18195 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18196 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18197          X"$_am_arg" : 'X\(//\)[^/]' \| \
18198          X"$_am_arg" : 'X\(//\)$' \| \
18199          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18200 $as_echo X"$_am_arg" |
18201     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18202             s//\1/
18203             q
18204           }
18205           /^X\(\/\/\)[^/].*/{
18206             s//\1/
18207             q
18208           }
18209           /^X\(\/\/\)$/{
18210             s//\1/
18211             q
18212           }
18213           /^X\(\/\).*/{
18214             s//\1/
18215             q
18216           }
18217           s/.*/./; q'`/stamp-h$_am_stamp_count
18218  ;;
18219
18220   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18221 $as_echo "$as_me: executing $ac_file commands" >&6;}
18222  ;;
18223   esac
18224
18225
18226   case $ac_file$ac_mode in
18227     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18228   # Older Autoconf quotes --file arguments for eval, but not when files
18229   # are listed without --file.  Let's play safe and only enable the eval
18230   # if we detect the quoting.
18231   case $CONFIG_FILES in
18232   *\'*) eval set x "$CONFIG_FILES" ;;
18233   *)   set x $CONFIG_FILES ;;
18234   esac
18235   shift
18236   for mf
18237   do
18238     # Strip MF so we end up with the name of the file.
18239     mf=`echo "$mf" | sed -e 's/:.*$//'`
18240     # Check whether this is an Automake generated Makefile or not.
18241     # We used to match only the files named 'Makefile.in', but
18242     # some people rename them; so instead we look at the file content.
18243     # Grep'ing the first line is not enough: some people post-process
18244     # each Makefile.in and add a new line on top of each file to say so.
18245     # Grep'ing the whole file is not good either: AIX grep has a line
18246     # limit of 2048, but all sed's we know have understand at least 4000.
18247     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18248       dirpart=`$as_dirname -- "$mf" ||
18249 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18250          X"$mf" : 'X\(//\)[^/]' \| \
18251          X"$mf" : 'X\(//\)$' \| \
18252          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18253 $as_echo X"$mf" |
18254     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18255             s//\1/
18256             q
18257           }
18258           /^X\(\/\/\)[^/].*/{
18259             s//\1/
18260             q
18261           }
18262           /^X\(\/\/\)$/{
18263             s//\1/
18264             q
18265           }
18266           /^X\(\/\).*/{
18267             s//\1/
18268             q
18269           }
18270           s/.*/./; q'`
18271     else
18272       continue
18273     fi
18274     # Extract the definition of DEPDIR, am__include, and am__quote
18275     # from the Makefile without running 'make'.
18276     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18277     test -z "$DEPDIR" && continue
18278     am__include=`sed -n 's/^am__include = //p' < "$mf"`
18279     test -z "$am__include" && continue
18280     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18281     # Find all dependency output files, they are included files with
18282     # $(DEPDIR) in their names.  We invoke sed twice because it is the
18283     # simplest approach to changing $(DEPDIR) to its actual value in the
18284     # expansion.
18285     for file in `sed -n "
18286       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18287          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18288       # Make sure the directory exists.
18289       test -f "$dirpart/$file" && continue
18290       fdir=`$as_dirname -- "$file" ||
18291 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18292          X"$file" : 'X\(//\)[^/]' \| \
18293          X"$file" : 'X\(//\)$' \| \
18294          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18295 $as_echo X"$file" |
18296     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18297             s//\1/
18298             q
18299           }
18300           /^X\(\/\/\)[^/].*/{
18301             s//\1/
18302             q
18303           }
18304           /^X\(\/\/\)$/{
18305             s//\1/
18306             q
18307           }
18308           /^X\(\/\).*/{
18309             s//\1/
18310             q
18311           }
18312           s/.*/./; q'`
18313       as_dir=$dirpart/$fdir; as_fn_mkdir_p
18314       # echo "creating $dirpart/$file"
18315       echo '# dummy' > "$dirpart/$file"
18316     done
18317   done
18318 }
18319  ;;
18320     "libtool":C)
18321
18322     # See if we are running on zsh, and set the options which allow our
18323     # commands through without removal of \ escapes.
18324     if test -n "${ZSH_VERSION+set}" ; then
18325       setopt NO_GLOB_SUBST
18326     fi
18327
18328     cfgfile="${ofile}T"
18329     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18330     $RM "$cfgfile"
18331
18332     cat <<_LT_EOF >> "$cfgfile"
18333 #! $SHELL
18334
18335 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18336 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18337 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18338 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18339 #
18340 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18341 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18342 #                 Foundation, Inc.
18343 #   Written by Gordon Matzigkeit, 1996
18344 #
18345 #   This file is part of GNU Libtool.
18346 #
18347 # GNU Libtool is free software; you can redistribute it and/or
18348 # modify it under the terms of the GNU General Public License as
18349 # published by the Free Software Foundation; either version 2 of
18350 # the License, or (at your option) any later version.
18351 #
18352 # As a special exception to the GNU General Public License,
18353 # if you distribute this file as part of a program or library that
18354 # is built using GNU Libtool, you may include this file under the
18355 # same distribution terms that you use for the rest of that program.
18356 #
18357 # GNU Libtool is distributed in the hope that it will be useful,
18358 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18359 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18360 # GNU General Public License for more details.
18361 #
18362 # You should have received a copy of the GNU General Public License
18363 # along with GNU Libtool; see the file COPYING.  If not, a copy
18364 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18365 # obtained by writing to the Free Software Foundation, Inc.,
18366 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18367
18368
18369 # The names of the tagged configurations supported by this script.
18370 available_tags="CXX "
18371
18372 # ### BEGIN LIBTOOL CONFIG
18373
18374 # Which release of libtool.m4 was used?
18375 macro_version=$macro_version
18376 macro_revision=$macro_revision
18377
18378 # Whether or not to build shared libraries.
18379 build_libtool_libs=$enable_shared
18380
18381 # Whether or not to build static libraries.
18382 build_old_libs=$enable_static
18383
18384 # What type of objects to build.
18385 pic_mode=$pic_mode
18386
18387 # Whether or not to optimize for fast installation.
18388 fast_install=$enable_fast_install
18389
18390 # Shell to use when invoking shell scripts.
18391 SHELL=$lt_SHELL
18392
18393 # An echo program that protects backslashes.
18394 ECHO=$lt_ECHO
18395
18396 # The PATH separator for the build system.
18397 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18398
18399 # The host system.
18400 host_alias=$host_alias
18401 host=$host
18402 host_os=$host_os
18403
18404 # The build system.
18405 build_alias=$build_alias
18406 build=$build
18407 build_os=$build_os
18408
18409 # A sed program that does not truncate output.
18410 SED=$lt_SED
18411
18412 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18413 Xsed="\$SED -e 1s/^X//"
18414
18415 # A grep program that handles long lines.
18416 GREP=$lt_GREP
18417
18418 # An ERE matcher.
18419 EGREP=$lt_EGREP
18420
18421 # A literal string matcher.
18422 FGREP=$lt_FGREP
18423
18424 # A BSD- or MS-compatible name lister.
18425 NM=$lt_NM
18426
18427 # Whether we need soft or hard links.
18428 LN_S=$lt_LN_S
18429
18430 # What is the maximum length of a command?
18431 max_cmd_len=$max_cmd_len
18432
18433 # Object file suffix (normally "o").
18434 objext=$ac_objext
18435
18436 # Executable file suffix (normally "").
18437 exeext=$exeext
18438
18439 # whether the shell understands "unset".
18440 lt_unset=$lt_unset
18441
18442 # turn spaces into newlines.
18443 SP2NL=$lt_lt_SP2NL
18444
18445 # turn newlines into spaces.
18446 NL2SP=$lt_lt_NL2SP
18447
18448 # convert \$build file names to \$host format.
18449 to_host_file_cmd=$lt_cv_to_host_file_cmd
18450
18451 # convert \$build files to toolchain format.
18452 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18453
18454 # An object symbol dumper.
18455 OBJDUMP=$lt_OBJDUMP
18456
18457 # Method to check whether dependent libraries are shared objects.
18458 deplibs_check_method=$lt_deplibs_check_method
18459
18460 # Command to use when deplibs_check_method = "file_magic".
18461 file_magic_cmd=$lt_file_magic_cmd
18462
18463 # How to find potential files when deplibs_check_method = "file_magic".
18464 file_magic_glob=$lt_file_magic_glob
18465
18466 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18467 want_nocaseglob=$lt_want_nocaseglob
18468
18469 # DLL creation program.
18470 DLLTOOL=$lt_DLLTOOL
18471
18472 # Command to associate shared and link libraries.
18473 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18474
18475 # The archiver.
18476 AR=$lt_AR
18477
18478 # Flags to create an archive.
18479 AR_FLAGS=$lt_AR_FLAGS
18480
18481 # How to feed a file listing to the archiver.
18482 archiver_list_spec=$lt_archiver_list_spec
18483
18484 # A symbol stripping program.
18485 STRIP=$lt_STRIP
18486
18487 # Commands used to install an old-style archive.
18488 RANLIB=$lt_RANLIB
18489 old_postinstall_cmds=$lt_old_postinstall_cmds
18490 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18491
18492 # Whether to use a lock for old archive extraction.
18493 lock_old_archive_extraction=$lock_old_archive_extraction
18494
18495 # A C compiler.
18496 LTCC=$lt_CC
18497
18498 # LTCC compiler flags.
18499 LTCFLAGS=$lt_CFLAGS
18500
18501 # Take the output of nm and produce a listing of raw symbols and C names.
18502 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18503
18504 # Transform the output of nm in a proper C declaration.
18505 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18506
18507 # Transform the output of nm in a C name address pair.
18508 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18509
18510 # Transform the output of nm in a C name address pair when lib prefix is needed.
18511 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18512
18513 # Specify filename containing input files for \$NM.
18514 nm_file_list_spec=$lt_nm_file_list_spec
18515
18516 # The root where to search for dependent libraries,and in which our libraries should be installed.
18517 lt_sysroot=$lt_sysroot
18518
18519 # The name of the directory that contains temporary libtool files.
18520 objdir=$objdir
18521
18522 # Used to examine libraries when file_magic_cmd begins with "file".
18523 MAGIC_CMD=$MAGIC_CMD
18524
18525 # Must we lock files when doing compilation?
18526 need_locks=$lt_need_locks
18527
18528 # Manifest tool.
18529 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18530
18531 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18532 DSYMUTIL=$lt_DSYMUTIL
18533
18534 # Tool to change global to local symbols on Mac OS X.
18535 NMEDIT=$lt_NMEDIT
18536
18537 # Tool to manipulate fat objects and archives on Mac OS X.
18538 LIPO=$lt_LIPO
18539
18540 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18541 OTOOL=$lt_OTOOL
18542
18543 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18544 OTOOL64=$lt_OTOOL64
18545
18546 # Old archive suffix (normally "a").
18547 libext=$libext
18548
18549 # Shared library suffix (normally ".so").
18550 shrext_cmds=$lt_shrext_cmds
18551
18552 # The commands to extract the exported symbol list from a shared archive.
18553 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18554
18555 # Variables whose values should be saved in libtool wrapper scripts and
18556 # restored at link time.
18557 variables_saved_for_relink=$lt_variables_saved_for_relink
18558
18559 # Do we need the "lib" prefix for modules?
18560 need_lib_prefix=$need_lib_prefix
18561
18562 # Do we need a version for libraries?
18563 need_version=$need_version
18564
18565 # Library versioning type.
18566 version_type=$version_type
18567
18568 # Shared library runtime path variable.
18569 runpath_var=$runpath_var
18570
18571 # Shared library path variable.
18572 shlibpath_var=$shlibpath_var
18573
18574 # Is shlibpath searched before the hard-coded library search path?
18575 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18576
18577 # Format of library name prefix.
18578 libname_spec=$lt_libname_spec
18579
18580 # List of archive names.  First name is the real one, the rest are links.
18581 # The last name is the one that the linker finds with -lNAME
18582 library_names_spec=$lt_library_names_spec
18583
18584 # The coded name of the library, if different from the real name.
18585 soname_spec=$lt_soname_spec
18586
18587 # Permission mode override for installation of shared libraries.
18588 install_override_mode=$lt_install_override_mode
18589
18590 # Command to use after installation of a shared archive.
18591 postinstall_cmds=$lt_postinstall_cmds
18592
18593 # Command to use after uninstallation of a shared archive.
18594 postuninstall_cmds=$lt_postuninstall_cmds
18595
18596 # Commands used to finish a libtool library installation in a directory.
18597 finish_cmds=$lt_finish_cmds
18598
18599 # As "finish_cmds", except a single script fragment to be evaled but
18600 # not shown.
18601 finish_eval=$lt_finish_eval
18602
18603 # Whether we should hardcode library paths into libraries.
18604 hardcode_into_libs=$hardcode_into_libs
18605
18606 # Compile-time system search path for libraries.
18607 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18608
18609 # Run-time system search path for libraries.
18610 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18611
18612 # Whether dlopen is supported.
18613 dlopen_support=$enable_dlopen
18614
18615 # Whether dlopen of programs is supported.
18616 dlopen_self=$enable_dlopen_self
18617
18618 # Whether dlopen of statically linked programs is supported.
18619 dlopen_self_static=$enable_dlopen_self_static
18620
18621 # Commands to strip libraries.
18622 old_striplib=$lt_old_striplib
18623 striplib=$lt_striplib
18624
18625
18626 # The linker used to build libraries.
18627 LD=$lt_LD
18628
18629 # How to create reloadable object files.
18630 reload_flag=$lt_reload_flag
18631 reload_cmds=$lt_reload_cmds
18632
18633 # Commands used to build an old-style archive.
18634 old_archive_cmds=$lt_old_archive_cmds
18635
18636 # A language specific compiler.
18637 CC=$lt_compiler
18638
18639 # Is the compiler the GNU compiler?
18640 with_gcc=$GCC
18641
18642 # Compiler flag to turn off builtin functions.
18643 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18644
18645 # Additional compiler flags for building library objects.
18646 pic_flag=$lt_lt_prog_compiler_pic
18647
18648 # How to pass a linker flag through the compiler.
18649 wl=$lt_lt_prog_compiler_wl
18650
18651 # Compiler flag to prevent dynamic linking.
18652 link_static_flag=$lt_lt_prog_compiler_static
18653
18654 # Does compiler simultaneously support -c and -o options?
18655 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18656
18657 # Whether or not to add -lc for building shared libraries.
18658 build_libtool_need_lc=$archive_cmds_need_lc
18659
18660 # Whether or not to disallow shared libs when runtime libs are static.
18661 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18662
18663 # Compiler flag to allow reflexive dlopens.
18664 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18665
18666 # Compiler flag to generate shared objects directly from archives.
18667 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18668
18669 # Whether the compiler copes with passing no objects directly.
18670 compiler_needs_object=$lt_compiler_needs_object
18671
18672 # Create an old-style archive from a shared archive.
18673 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18674
18675 # Create a temporary old-style archive to link instead of a shared archive.
18676 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18677
18678 # Commands used to build a shared archive.
18679 archive_cmds=$lt_archive_cmds
18680 archive_expsym_cmds=$lt_archive_expsym_cmds
18681
18682 # Commands used to build a loadable module if different from building
18683 # a shared archive.
18684 module_cmds=$lt_module_cmds
18685 module_expsym_cmds=$lt_module_expsym_cmds
18686
18687 # Whether we are building with GNU ld or not.
18688 with_gnu_ld=$lt_with_gnu_ld
18689
18690 # Flag that allows shared libraries with undefined symbols to be built.
18691 allow_undefined_flag=$lt_allow_undefined_flag
18692
18693 # Flag that enforces no undefined symbols.
18694 no_undefined_flag=$lt_no_undefined_flag
18695
18696 # Flag to hardcode \$libdir into a binary during linking.
18697 # This must work even if \$libdir does not exist
18698 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18699
18700 # Whether we need a single "-rpath" flag with a separated argument.
18701 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18702
18703 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18704 # DIR into the resulting binary.
18705 hardcode_direct=$hardcode_direct
18706
18707 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18708 # DIR into the resulting binary and the resulting library dependency is
18709 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18710 # library is relocated.
18711 hardcode_direct_absolute=$hardcode_direct_absolute
18712
18713 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18714 # into the resulting binary.
18715 hardcode_minus_L=$hardcode_minus_L
18716
18717 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18718 # into the resulting binary.
18719 hardcode_shlibpath_var=$hardcode_shlibpath_var
18720
18721 # Set to "yes" if building a shared library automatically hardcodes DIR
18722 # into the library and all subsequent libraries and executables linked
18723 # against it.
18724 hardcode_automatic=$hardcode_automatic
18725
18726 # Set to yes if linker adds runtime paths of dependent libraries
18727 # to runtime path list.
18728 inherit_rpath=$inherit_rpath
18729
18730 # Whether libtool must link a program against all its dependency libraries.
18731 link_all_deplibs=$link_all_deplibs
18732
18733 # Set to "yes" if exported symbols are required.
18734 always_export_symbols=$always_export_symbols
18735
18736 # The commands to list exported symbols.
18737 export_symbols_cmds=$lt_export_symbols_cmds
18738
18739 # Symbols that should not be listed in the preloaded symbols.
18740 exclude_expsyms=$lt_exclude_expsyms
18741
18742 # Symbols that must always be exported.
18743 include_expsyms=$lt_include_expsyms
18744
18745 # Commands necessary for linking programs (against libraries) with templates.
18746 prelink_cmds=$lt_prelink_cmds
18747
18748 # Commands necessary for finishing linking programs.
18749 postlink_cmds=$lt_postlink_cmds
18750
18751 # Specify filename containing input files.
18752 file_list_spec=$lt_file_list_spec
18753
18754 # How to hardcode a shared library path into an executable.
18755 hardcode_action=$hardcode_action
18756
18757 # The directories searched by this compiler when creating a shared library.
18758 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18759
18760 # Dependencies to place before and after the objects being linked to
18761 # create a shared library.
18762 predep_objects=$lt_predep_objects
18763 postdep_objects=$lt_postdep_objects
18764 predeps=$lt_predeps
18765 postdeps=$lt_postdeps
18766
18767 # The library search path used internally by the compiler when linking
18768 # a shared library.
18769 compiler_lib_search_path=$lt_compiler_lib_search_path
18770
18771 # ### END LIBTOOL CONFIG
18772
18773 _LT_EOF
18774
18775   case $host_os in
18776   aix3*)
18777     cat <<\_LT_EOF >> "$cfgfile"
18778 # AIX sometimes has problems with the GCC collect2 program.  For some
18779 # reason, if we set the COLLECT_NAMES environment variable, the problems
18780 # vanish in a puff of smoke.
18781 if test "X${COLLECT_NAMES+set}" != Xset; then
18782   COLLECT_NAMES=
18783   export COLLECT_NAMES
18784 fi
18785 _LT_EOF
18786     ;;
18787   esac
18788
18789
18790 ltmain="$ac_aux_dir/ltmain.sh"
18791
18792
18793   # We use sed instead of cat because bash on DJGPP gets confused if
18794   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18795   # text mode, it properly converts lines to CR/LF.  This bash problem
18796   # is reportedly fixed, but why not run on old versions too?
18797   sed '$q' "$ltmain" >> "$cfgfile" \
18798      || (rm -f "$cfgfile"; exit 1)
18799
18800   if test x"$xsi_shell" = xyes; then
18801   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18802 func_dirname ()\
18803 {\
18804 \    case ${1} in\
18805 \      */*) func_dirname_result="${1%/*}${2}" ;;\
18806 \      *  ) func_dirname_result="${3}" ;;\
18807 \    esac\
18808 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18809   && mv -f "$cfgfile.tmp" "$cfgfile" \
18810     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18811 test 0 -eq $? || _lt_function_replace_fail=:
18812
18813
18814   sed -e '/^func_basename ()$/,/^} # func_basename /c\
18815 func_basename ()\
18816 {\
18817 \    func_basename_result="${1##*/}"\
18818 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18819   && mv -f "$cfgfile.tmp" "$cfgfile" \
18820     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18821 test 0 -eq $? || _lt_function_replace_fail=:
18822
18823
18824   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18825 func_dirname_and_basename ()\
18826 {\
18827 \    case ${1} in\
18828 \      */*) func_dirname_result="${1%/*}${2}" ;;\
18829 \      *  ) func_dirname_result="${3}" ;;\
18830 \    esac\
18831 \    func_basename_result="${1##*/}"\
18832 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18833   && mv -f "$cfgfile.tmp" "$cfgfile" \
18834     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18835 test 0 -eq $? || _lt_function_replace_fail=:
18836
18837
18838   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18839 func_stripname ()\
18840 {\
18841 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18842 \    # positional parameters, so assign one to ordinary parameter first.\
18843 \    func_stripname_result=${3}\
18844 \    func_stripname_result=${func_stripname_result#"${1}"}\
18845 \    func_stripname_result=${func_stripname_result%"${2}"}\
18846 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18847   && mv -f "$cfgfile.tmp" "$cfgfile" \
18848     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18849 test 0 -eq $? || _lt_function_replace_fail=:
18850
18851
18852   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18853 func_split_long_opt ()\
18854 {\
18855 \    func_split_long_opt_name=${1%%=*}\
18856 \    func_split_long_opt_arg=${1#*=}\
18857 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18858   && mv -f "$cfgfile.tmp" "$cfgfile" \
18859     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18860 test 0 -eq $? || _lt_function_replace_fail=:
18861
18862
18863   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18864 func_split_short_opt ()\
18865 {\
18866 \    func_split_short_opt_arg=${1#??}\
18867 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18868 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18869   && mv -f "$cfgfile.tmp" "$cfgfile" \
18870     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18871 test 0 -eq $? || _lt_function_replace_fail=:
18872
18873
18874   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18875 func_lo2o ()\
18876 {\
18877 \    case ${1} in\
18878 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18879 \      *)    func_lo2o_result=${1} ;;\
18880 \    esac\
18881 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18882   && mv -f "$cfgfile.tmp" "$cfgfile" \
18883     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18884 test 0 -eq $? || _lt_function_replace_fail=:
18885
18886
18887   sed -e '/^func_xform ()$/,/^} # func_xform /c\
18888 func_xform ()\
18889 {\
18890     func_xform_result=${1%.*}.lo\
18891 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18892   && mv -f "$cfgfile.tmp" "$cfgfile" \
18893     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18894 test 0 -eq $? || _lt_function_replace_fail=:
18895
18896
18897   sed -e '/^func_arith ()$/,/^} # func_arith /c\
18898 func_arith ()\
18899 {\
18900     func_arith_result=$(( $* ))\
18901 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18902   && mv -f "$cfgfile.tmp" "$cfgfile" \
18903     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18904 test 0 -eq $? || _lt_function_replace_fail=:
18905
18906
18907   sed -e '/^func_len ()$/,/^} # func_len /c\
18908 func_len ()\
18909 {\
18910     func_len_result=${#1}\
18911 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18912   && mv -f "$cfgfile.tmp" "$cfgfile" \
18913     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18914 test 0 -eq $? || _lt_function_replace_fail=:
18915
18916 fi
18917
18918 if test x"$lt_shell_append" = xyes; then
18919   sed -e '/^func_append ()$/,/^} # func_append /c\
18920 func_append ()\
18921 {\
18922     eval "${1}+=\\${2}"\
18923 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18924   && mv -f "$cfgfile.tmp" "$cfgfile" \
18925     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18926 test 0 -eq $? || _lt_function_replace_fail=:
18927
18928
18929   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18930 func_append_quoted ()\
18931 {\
18932 \    func_quote_for_eval "${2}"\
18933 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18934 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18935   && mv -f "$cfgfile.tmp" "$cfgfile" \
18936     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18937 test 0 -eq $? || _lt_function_replace_fail=:
18938
18939
18940   # Save a `func_append' function call where possible by direct use of '+='
18941   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18942     && mv -f "$cfgfile.tmp" "$cfgfile" \
18943       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18944   test 0 -eq $? || _lt_function_replace_fail=:
18945 else
18946   # Save a `func_append' function call even when '+=' is not available
18947   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18948     && mv -f "$cfgfile.tmp" "$cfgfile" \
18949       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18950   test 0 -eq $? || _lt_function_replace_fail=:
18951 fi
18952
18953 if test x"$_lt_function_replace_fail" = x":"; then
18954   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18955 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18956 fi
18957
18958
18959    mv -f "$cfgfile" "$ofile" ||
18960     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18961   chmod +x "$ofile"
18962
18963
18964     cat <<_LT_EOF >> "$ofile"
18965
18966 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18967
18968 # The linker used to build libraries.
18969 LD=$lt_LD_CXX
18970
18971 # How to create reloadable object files.
18972 reload_flag=$lt_reload_flag_CXX
18973 reload_cmds=$lt_reload_cmds_CXX
18974
18975 # Commands used to build an old-style archive.
18976 old_archive_cmds=$lt_old_archive_cmds_CXX
18977
18978 # A language specific compiler.
18979 CC=$lt_compiler_CXX
18980
18981 # Is the compiler the GNU compiler?
18982 with_gcc=$GCC_CXX
18983
18984 # Compiler flag to turn off builtin functions.
18985 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18986
18987 # Additional compiler flags for building library objects.
18988 pic_flag=$lt_lt_prog_compiler_pic_CXX
18989
18990 # How to pass a linker flag through the compiler.
18991 wl=$lt_lt_prog_compiler_wl_CXX
18992
18993 # Compiler flag to prevent dynamic linking.
18994 link_static_flag=$lt_lt_prog_compiler_static_CXX
18995
18996 # Does compiler simultaneously support -c and -o options?
18997 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18998
18999 # Whether or not to add -lc for building shared libraries.
19000 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19001
19002 # Whether or not to disallow shared libs when runtime libs are static.
19003 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19004
19005 # Compiler flag to allow reflexive dlopens.
19006 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19007
19008 # Compiler flag to generate shared objects directly from archives.
19009 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19010
19011 # Whether the compiler copes with passing no objects directly.
19012 compiler_needs_object=$lt_compiler_needs_object_CXX
19013
19014 # Create an old-style archive from a shared archive.
19015 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19016
19017 # Create a temporary old-style archive to link instead of a shared archive.
19018 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19019
19020 # Commands used to build a shared archive.
19021 archive_cmds=$lt_archive_cmds_CXX
19022 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19023
19024 # Commands used to build a loadable module if different from building
19025 # a shared archive.
19026 module_cmds=$lt_module_cmds_CXX
19027 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19028
19029 # Whether we are building with GNU ld or not.
19030 with_gnu_ld=$lt_with_gnu_ld_CXX
19031
19032 # Flag that allows shared libraries with undefined symbols to be built.
19033 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19034
19035 # Flag that enforces no undefined symbols.
19036 no_undefined_flag=$lt_no_undefined_flag_CXX
19037
19038 # Flag to hardcode \$libdir into a binary during linking.
19039 # This must work even if \$libdir does not exist
19040 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19041
19042 # Whether we need a single "-rpath" flag with a separated argument.
19043 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19044
19045 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19046 # DIR into the resulting binary.
19047 hardcode_direct=$hardcode_direct_CXX
19048
19049 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19050 # DIR into the resulting binary and the resulting library dependency is
19051 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19052 # library is relocated.
19053 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19054
19055 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19056 # into the resulting binary.
19057 hardcode_minus_L=$hardcode_minus_L_CXX
19058
19059 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19060 # into the resulting binary.
19061 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19062
19063 # Set to "yes" if building a shared library automatically hardcodes DIR
19064 # into the library and all subsequent libraries and executables linked
19065 # against it.
19066 hardcode_automatic=$hardcode_automatic_CXX
19067
19068 # Set to yes if linker adds runtime paths of dependent libraries
19069 # to runtime path list.
19070 inherit_rpath=$inherit_rpath_CXX
19071
19072 # Whether libtool must link a program against all its dependency libraries.
19073 link_all_deplibs=$link_all_deplibs_CXX
19074
19075 # Set to "yes" if exported symbols are required.
19076 always_export_symbols=$always_export_symbols_CXX
19077
19078 # The commands to list exported symbols.
19079 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19080
19081 # Symbols that should not be listed in the preloaded symbols.
19082 exclude_expsyms=$lt_exclude_expsyms_CXX
19083
19084 # Symbols that must always be exported.
19085 include_expsyms=$lt_include_expsyms_CXX
19086
19087 # Commands necessary for linking programs (against libraries) with templates.
19088 prelink_cmds=$lt_prelink_cmds_CXX
19089
19090 # Commands necessary for finishing linking programs.
19091 postlink_cmds=$lt_postlink_cmds_CXX
19092
19093 # Specify filename containing input files.
19094 file_list_spec=$lt_file_list_spec_CXX
19095
19096 # How to hardcode a shared library path into an executable.
19097 hardcode_action=$hardcode_action_CXX
19098
19099 # The directories searched by this compiler when creating a shared library.
19100 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19101
19102 # Dependencies to place before and after the objects being linked to
19103 # create a shared library.
19104 predep_objects=$lt_predep_objects_CXX
19105 postdep_objects=$lt_postdep_objects_CXX
19106 predeps=$lt_predeps_CXX
19107 postdeps=$lt_postdeps_CXX
19108
19109 # The library search path used internally by the compiler when linking
19110 # a shared library.
19111 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19112
19113 # ### END LIBTOOL TAG CONFIG: CXX
19114 _LT_EOF
19115
19116  ;;
19117
19118   esac
19119 done # for ac_tag
19120
19121
19122 as_fn_exit 0
19123 _ACEOF
19124 ac_clean_files=$ac_clean_files_save
19125
19126 test $ac_write_fail = 0 ||
19127   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19128
19129
19130 # configure is writing to config.log, and then calls config.status.
19131 # config.status does its own redirection, appending to config.log.
19132 # Unfortunately, on DOS this fails, as config.log is still kept open
19133 # by configure, so config.status won't be able to write to it; its
19134 # output is simply discarded.  So we exec the FD to /dev/null,
19135 # effectively closing config.log, so it can be properly (re)opened and
19136 # appended to by config.status.  When coming back to configure, we
19137 # need to make the FD available again.
19138 if test "$no_create" != yes; then
19139   ac_cs_success=:
19140   ac_config_status_args=
19141   test "$silent" = yes &&
19142     ac_config_status_args="$ac_config_status_args --quiet"
19143   exec 5>/dev/null
19144   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19145   exec 5>>config.log
19146   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19147   # would make configure fail if this is the last instruction.
19148   $ac_cs_success || as_fn_exit 1
19149 fi
19150 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19151   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19152 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19153 fi
19154
19155
19156 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
19157 Build options:
19158     Version                     $VERSION
19159     Install prefix              $prefix
19160 " >&5
19161 $as_echo "
19162 Build options:
19163     Version                     $VERSION
19164     Install prefix              $prefix
19165 " >&6; }