Imported Upstream version 2.2.2
[platform/upstream/expat.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for expat 2.2.2.
4 #
5 # Report bugs to <expat-bugs@libexpat.org>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     PATH=/empty FPATH=/empty; export PATH FPATH
207     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: expat-bugs@libexpat.org about your system, including
279 $0: any error possibly output before this message. Then
280 $0: install a modern shell, or manually run the script
281 $0: 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='expat'
592 PACKAGE_TARNAME='expat'
593 PACKAGE_VERSION='2.2.2'
594 PACKAGE_STRING='expat 2.2.2'
595 PACKAGE_BUGREPORT='expat-bugs@libexpat.org'
596 PACKAGE_URL=''
597
598 ac_unique_file="Makefile.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='LTLIBOBJS
637 LIBOBJS
638 FILEMAP
639 INSTALL_DATA
640 INSTALL_SCRIPT
641 INSTALL_PROGRAM
642 CXXCPP
643 ac_ct_CXX
644 CXXFLAGS
645 CXX
646 LIBAGE
647 LIBREVISION
648 LIBCURRENT
649 CPP
650 LT_SYS_LIBRARY_PATH
651 OTOOL64
652 OTOOL
653 LIPO
654 NMEDIT
655 DSYMUTIL
656 MANIFEST_TOOL
657 AWK
658 RANLIB
659 STRIP
660 ac_ct_AR
661 AR
662 LN_S
663 NM
664 ac_ct_DUMPBIN
665 DUMPBIN
666 LD
667 FGREP
668 EGREP
669 GREP
670 SED
671 OBJEXT
672 EXEEXT
673 ac_ct_CC
674 CPPFLAGS
675 LDFLAGS
676 CFLAGS
677 CC
678 LIBTOOL
679 OBJDUMP
680 DLLTOOL
681 AS
682 host_os
683 host_vendor
684 host_cpu
685 host
686 build_os
687 build_vendor
688 build_cpu
689 build
690 target_alias
691 host_alias
692 build_alias
693 LIBS
694 ECHO_T
695 ECHO_N
696 ECHO_C
697 DEFS
698 mandir
699 localedir
700 libdir
701 psdir
702 pdfdir
703 dvidir
704 htmldir
705 infodir
706 docdir
707 oldincludedir
708 includedir
709 localstatedir
710 sharedstatedir
711 sysconfdir
712 datadir
713 datarootdir
714 libexecdir
715 sbindir
716 bindir
717 program_transform_name
718 prefix
719 exec_prefix
720 PACKAGE_URL
721 PACKAGE_BUGREPORT
722 PACKAGE_STRING
723 PACKAGE_VERSION
724 PACKAGE_TARNAME
725 PACKAGE_NAME
726 PATH_SEPARATOR
727 SHELL'
728 ac_subst_files=''
729 ac_user_opts='
730 enable_option_checking
731 enable_shared
732 enable_static
733 with_pic
734 enable_fast_install
735 with_aix_soname
736 with_gnu_ld
737 with_sysroot
738 enable_libtool_lock
739 with_libbsd
740 enable_xml_context
741 '
742       ac_precious_vars='build_alias
743 host_alias
744 target_alias
745 CC
746 CFLAGS
747 LDFLAGS
748 LIBS
749 CPPFLAGS
750 LT_SYS_LIBRARY_PATH
751 CPP
752 CXX
753 CXXFLAGS
754 CCC
755 CXXCPP'
756
757
758 # Initialize some variables set by options.
759 ac_init_help=
760 ac_init_version=false
761 ac_unrecognized_opts=
762 ac_unrecognized_sep=
763 # The variables have the same names as the options, with
764 # dashes changed to underlines.
765 cache_file=/dev/null
766 exec_prefix=NONE
767 no_create=
768 no_recursion=
769 prefix=NONE
770 program_prefix=NONE
771 program_suffix=NONE
772 program_transform_name=s,x,x,
773 silent=
774 site=
775 srcdir=
776 verbose=
777 x_includes=NONE
778 x_libraries=NONE
779
780 # Installation directory options.
781 # These are left unexpanded so users can "make install exec_prefix=/foo"
782 # and all the variables that are supposed to be based on exec_prefix
783 # by default will actually change.
784 # Use braces instead of parens because sh, perl, etc. also accept them.
785 # (The list follows the same order as the GNU Coding Standards.)
786 bindir='${exec_prefix}/bin'
787 sbindir='${exec_prefix}/sbin'
788 libexecdir='${exec_prefix}/libexec'
789 datarootdir='${prefix}/share'
790 datadir='${datarootdir}'
791 sysconfdir='${prefix}/etc'
792 sharedstatedir='${prefix}/com'
793 localstatedir='${prefix}/var'
794 includedir='${prefix}/include'
795 oldincludedir='/usr/include'
796 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
797 infodir='${datarootdir}/info'
798 htmldir='${docdir}'
799 dvidir='${docdir}'
800 pdfdir='${docdir}'
801 psdir='${docdir}'
802 libdir='${exec_prefix}/lib'
803 localedir='${datarootdir}/locale'
804 mandir='${datarootdir}/man'
805
806 ac_prev=
807 ac_dashdash=
808 for ac_option
809 do
810   # If the previous option needs an argument, assign it.
811   if test -n "$ac_prev"; then
812     eval $ac_prev=\$ac_option
813     ac_prev=
814     continue
815   fi
816
817   case $ac_option in
818   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
819   *=)   ac_optarg= ;;
820   *)    ac_optarg=yes ;;
821   esac
822
823   # Accept the important Cygnus configure options, so we can diagnose typos.
824
825   case $ac_dashdash$ac_option in
826   --)
827     ac_dashdash=yes ;;
828
829   -bindir | --bindir | --bindi | --bind | --bin | --bi)
830     ac_prev=bindir ;;
831   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
832     bindir=$ac_optarg ;;
833
834   -build | --build | --buil | --bui | --bu)
835     ac_prev=build_alias ;;
836   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
837     build_alias=$ac_optarg ;;
838
839   -cache-file | --cache-file | --cache-fil | --cache-fi \
840   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
841     ac_prev=cache_file ;;
842   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
843   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
844     cache_file=$ac_optarg ;;
845
846   --config-cache | -C)
847     cache_file=config.cache ;;
848
849   -datadir | --datadir | --datadi | --datad)
850     ac_prev=datadir ;;
851   -datadir=* | --datadir=* | --datadi=* | --datad=*)
852     datadir=$ac_optarg ;;
853
854   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
855   | --dataroo | --dataro | --datar)
856     ac_prev=datarootdir ;;
857   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
858   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
859     datarootdir=$ac_optarg ;;
860
861   -disable-* | --disable-*)
862     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
863     # Reject names that are not valid shell variable names.
864     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
865       as_fn_error $? "invalid feature name: $ac_useropt"
866     ac_useropt_orig=$ac_useropt
867     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
868     case $ac_user_opts in
869       *"
870 "enable_$ac_useropt"
871 "*) ;;
872       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
873          ac_unrecognized_sep=', ';;
874     esac
875     eval enable_$ac_useropt=no ;;
876
877   -docdir | --docdir | --docdi | --doc | --do)
878     ac_prev=docdir ;;
879   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
880     docdir=$ac_optarg ;;
881
882   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
883     ac_prev=dvidir ;;
884   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
885     dvidir=$ac_optarg ;;
886
887   -enable-* | --enable-*)
888     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
889     # Reject names that are not valid shell variable names.
890     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
891       as_fn_error $? "invalid feature name: $ac_useropt"
892     ac_useropt_orig=$ac_useropt
893     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
894     case $ac_user_opts in
895       *"
896 "enable_$ac_useropt"
897 "*) ;;
898       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
899          ac_unrecognized_sep=', ';;
900     esac
901     eval enable_$ac_useropt=\$ac_optarg ;;
902
903   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
904   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
905   | --exec | --exe | --ex)
906     ac_prev=exec_prefix ;;
907   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
908   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
909   | --exec=* | --exe=* | --ex=*)
910     exec_prefix=$ac_optarg ;;
911
912   -gas | --gas | --ga | --g)
913     # Obsolete; use --with-gas.
914     with_gas=yes ;;
915
916   -help | --help | --hel | --he | -h)
917     ac_init_help=long ;;
918   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
919     ac_init_help=recursive ;;
920   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
921     ac_init_help=short ;;
922
923   -host | --host | --hos | --ho)
924     ac_prev=host_alias ;;
925   -host=* | --host=* | --hos=* | --ho=*)
926     host_alias=$ac_optarg ;;
927
928   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
929     ac_prev=htmldir ;;
930   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
931   | --ht=*)
932     htmldir=$ac_optarg ;;
933
934   -includedir | --includedir | --includedi | --included | --include \
935   | --includ | --inclu | --incl | --inc)
936     ac_prev=includedir ;;
937   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
938   | --includ=* | --inclu=* | --incl=* | --inc=*)
939     includedir=$ac_optarg ;;
940
941   -infodir | --infodir | --infodi | --infod | --info | --inf)
942     ac_prev=infodir ;;
943   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
944     infodir=$ac_optarg ;;
945
946   -libdir | --libdir | --libdi | --libd)
947     ac_prev=libdir ;;
948   -libdir=* | --libdir=* | --libdi=* | --libd=*)
949     libdir=$ac_optarg ;;
950
951   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
952   | --libexe | --libex | --libe)
953     ac_prev=libexecdir ;;
954   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
955   | --libexe=* | --libex=* | --libe=*)
956     libexecdir=$ac_optarg ;;
957
958   -localedir | --localedir | --localedi | --localed | --locale)
959     ac_prev=localedir ;;
960   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
961     localedir=$ac_optarg ;;
962
963   -localstatedir | --localstatedir | --localstatedi | --localstated \
964   | --localstate | --localstat | --localsta | --localst | --locals)
965     ac_prev=localstatedir ;;
966   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
967   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
968     localstatedir=$ac_optarg ;;
969
970   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
971     ac_prev=mandir ;;
972   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
973     mandir=$ac_optarg ;;
974
975   -nfp | --nfp | --nf)
976     # Obsolete; use --without-fp.
977     with_fp=no ;;
978
979   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
980   | --no-cr | --no-c | -n)
981     no_create=yes ;;
982
983   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
984   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
985     no_recursion=yes ;;
986
987   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
988   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
989   | --oldin | --oldi | --old | --ol | --o)
990     ac_prev=oldincludedir ;;
991   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
992   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
993   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
994     oldincludedir=$ac_optarg ;;
995
996   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
997     ac_prev=prefix ;;
998   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
999     prefix=$ac_optarg ;;
1000
1001   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1002   | --program-pre | --program-pr | --program-p)
1003     ac_prev=program_prefix ;;
1004   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1005   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1006     program_prefix=$ac_optarg ;;
1007
1008   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1009   | --program-suf | --program-su | --program-s)
1010     ac_prev=program_suffix ;;
1011   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1012   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1013     program_suffix=$ac_optarg ;;
1014
1015   -program-transform-name | --program-transform-name \
1016   | --program-transform-nam | --program-transform-na \
1017   | --program-transform-n | --program-transform- \
1018   | --program-transform | --program-transfor \
1019   | --program-transfo | --program-transf \
1020   | --program-trans | --program-tran \
1021   | --progr-tra | --program-tr | --program-t)
1022     ac_prev=program_transform_name ;;
1023   -program-transform-name=* | --program-transform-name=* \
1024   | --program-transform-nam=* | --program-transform-na=* \
1025   | --program-transform-n=* | --program-transform-=* \
1026   | --program-transform=* | --program-transfor=* \
1027   | --program-transfo=* | --program-transf=* \
1028   | --program-trans=* | --program-tran=* \
1029   | --progr-tra=* | --program-tr=* | --program-t=*)
1030     program_transform_name=$ac_optarg ;;
1031
1032   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1033     ac_prev=pdfdir ;;
1034   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1035     pdfdir=$ac_optarg ;;
1036
1037   -psdir | --psdir | --psdi | --psd | --ps)
1038     ac_prev=psdir ;;
1039   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1040     psdir=$ac_optarg ;;
1041
1042   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1043   | -silent | --silent | --silen | --sile | --sil)
1044     silent=yes ;;
1045
1046   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1047     ac_prev=sbindir ;;
1048   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1049   | --sbi=* | --sb=*)
1050     sbindir=$ac_optarg ;;
1051
1052   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1053   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1054   | --sharedst | --shareds | --shared | --share | --shar \
1055   | --sha | --sh)
1056     ac_prev=sharedstatedir ;;
1057   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1058   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1059   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1060   | --sha=* | --sh=*)
1061     sharedstatedir=$ac_optarg ;;
1062
1063   -site | --site | --sit)
1064     ac_prev=site ;;
1065   -site=* | --site=* | --sit=*)
1066     site=$ac_optarg ;;
1067
1068   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1069     ac_prev=srcdir ;;
1070   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1071     srcdir=$ac_optarg ;;
1072
1073   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1074   | --syscon | --sysco | --sysc | --sys | --sy)
1075     ac_prev=sysconfdir ;;
1076   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1077   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1078     sysconfdir=$ac_optarg ;;
1079
1080   -target | --target | --targe | --targ | --tar | --ta | --t)
1081     ac_prev=target_alias ;;
1082   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1083     target_alias=$ac_optarg ;;
1084
1085   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1086     verbose=yes ;;
1087
1088   -version | --version | --versio | --versi | --vers | -V)
1089     ac_init_version=: ;;
1090
1091   -with-* | --with-*)
1092     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1093     # Reject names that are not valid shell variable names.
1094     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1095       as_fn_error $? "invalid package name: $ac_useropt"
1096     ac_useropt_orig=$ac_useropt
1097     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1098     case $ac_user_opts in
1099       *"
1100 "with_$ac_useropt"
1101 "*) ;;
1102       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1103          ac_unrecognized_sep=', ';;
1104     esac
1105     eval with_$ac_useropt=\$ac_optarg ;;
1106
1107   -without-* | --without-*)
1108     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1109     # Reject names that are not valid shell variable names.
1110     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1111       as_fn_error $? "invalid package name: $ac_useropt"
1112     ac_useropt_orig=$ac_useropt
1113     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1114     case $ac_user_opts in
1115       *"
1116 "with_$ac_useropt"
1117 "*) ;;
1118       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1119          ac_unrecognized_sep=', ';;
1120     esac
1121     eval with_$ac_useropt=no ;;
1122
1123   --x)
1124     # Obsolete; use --with-x.
1125     with_x=yes ;;
1126
1127   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1128   | --x-incl | --x-inc | --x-in | --x-i)
1129     ac_prev=x_includes ;;
1130   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1131   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1132     x_includes=$ac_optarg ;;
1133
1134   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1135   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1136     ac_prev=x_libraries ;;
1137   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1138   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1139     x_libraries=$ac_optarg ;;
1140
1141   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1142 Try \`$0 --help' for more information"
1143     ;;
1144
1145   *=*)
1146     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1147     # Reject names that are not valid shell variable names.
1148     case $ac_envvar in #(
1149       '' | [0-9]* | *[!_$as_cr_alnum]* )
1150       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1151     esac
1152     eval $ac_envvar=\$ac_optarg
1153     export $ac_envvar ;;
1154
1155   *)
1156     # FIXME: should be removed in autoconf 3.0.
1157     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1158     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1159       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1160     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1161     ;;
1162
1163   esac
1164 done
1165
1166 if test -n "$ac_prev"; then
1167   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1168   as_fn_error $? "missing argument to $ac_option"
1169 fi
1170
1171 if test -n "$ac_unrecognized_opts"; then
1172   case $enable_option_checking in
1173     no) ;;
1174     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1175     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1176   esac
1177 fi
1178
1179 # Check all directory arguments for consistency.
1180 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1181                 datadir sysconfdir sharedstatedir localstatedir includedir \
1182                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1183                 libdir localedir mandir
1184 do
1185   eval ac_val=\$$ac_var
1186   # Remove trailing slashes.
1187   case $ac_val in
1188     */ )
1189       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1190       eval $ac_var=\$ac_val;;
1191   esac
1192   # Be sure to have absolute directory names.
1193   case $ac_val in
1194     [\\/$]* | ?:[\\/]* )  continue;;
1195     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1196   esac
1197   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1198 done
1199
1200 # There might be people who depend on the old broken behavior: `$host'
1201 # used to hold the argument of --host etc.
1202 # FIXME: To remove some day.
1203 build=$build_alias
1204 host=$host_alias
1205 target=$target_alias
1206
1207 # FIXME: To remove some day.
1208 if test "x$host_alias" != x; then
1209   if test "x$build_alias" = x; then
1210     cross_compiling=maybe
1211   elif test "x$build_alias" != "x$host_alias"; then
1212     cross_compiling=yes
1213   fi
1214 fi
1215
1216 ac_tool_prefix=
1217 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1218
1219 test "$silent" = yes && exec 6>/dev/null
1220
1221
1222 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1223 ac_ls_di=`ls -di .` &&
1224 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1225   as_fn_error $? "working directory cannot be determined"
1226 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1227   as_fn_error $? "pwd does not report name of working directory"
1228
1229
1230 # Find the source files, if location was not specified.
1231 if test -z "$srcdir"; then
1232   ac_srcdir_defaulted=yes
1233   # Try the directory containing this script, then the parent directory.
1234   ac_confdir=`$as_dirname -- "$as_myself" ||
1235 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1236          X"$as_myself" : 'X\(//\)[^/]' \| \
1237          X"$as_myself" : 'X\(//\)$' \| \
1238          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1239 $as_echo X"$as_myself" |
1240     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1241             s//\1/
1242             q
1243           }
1244           /^X\(\/\/\)[^/].*/{
1245             s//\1/
1246             q
1247           }
1248           /^X\(\/\/\)$/{
1249             s//\1/
1250             q
1251           }
1252           /^X\(\/\).*/{
1253             s//\1/
1254             q
1255           }
1256           s/.*/./; q'`
1257   srcdir=$ac_confdir
1258   if test ! -r "$srcdir/$ac_unique_file"; then
1259     srcdir=..
1260   fi
1261 else
1262   ac_srcdir_defaulted=no
1263 fi
1264 if test ! -r "$srcdir/$ac_unique_file"; then
1265   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1266   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1267 fi
1268 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1269 ac_abs_confdir=`(
1270         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1271         pwd)`
1272 # When building in place, set srcdir=.
1273 if test "$ac_abs_confdir" = "$ac_pwd"; then
1274   srcdir=.
1275 fi
1276 # Remove unnecessary trailing slashes from srcdir.
1277 # Double slashes in file names in object file debugging info
1278 # mess up M-x gdb in Emacs.
1279 case $srcdir in
1280 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1281 esac
1282 for ac_var in $ac_precious_vars; do
1283   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1284   eval ac_env_${ac_var}_value=\$${ac_var}
1285   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1286   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1287 done
1288
1289 #
1290 # Report the --help message.
1291 #
1292 if test "$ac_init_help" = "long"; then
1293   # Omit some internal or obsolete options to make the list less imposing.
1294   # This message is too long to be a string in the A/UX 3.1 sh.
1295   cat <<_ACEOF
1296 \`configure' configures expat 2.2.2 to adapt to many kinds of systems.
1297
1298 Usage: $0 [OPTION]... [VAR=VALUE]...
1299
1300 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1301 VAR=VALUE.  See below for descriptions of some of the useful variables.
1302
1303 Defaults for the options are specified in brackets.
1304
1305 Configuration:
1306   -h, --help              display this help and exit
1307       --help=short        display options specific to this package
1308       --help=recursive    display the short help of all the included packages
1309   -V, --version           display version information and exit
1310   -q, --quiet, --silent   do not print \`checking ...' messages
1311       --cache-file=FILE   cache test results in FILE [disabled]
1312   -C, --config-cache      alias for \`--cache-file=config.cache'
1313   -n, --no-create         do not create output files
1314       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1315
1316 Installation directories:
1317   --prefix=PREFIX         install architecture-independent files in PREFIX
1318                           [$ac_default_prefix]
1319   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1320                           [PREFIX]
1321
1322 By default, \`make install' will install all the files in
1323 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1324 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1325 for instance \`--prefix=\$HOME'.
1326
1327 For better control, use the options below.
1328
1329 Fine tuning of the installation directories:
1330   --bindir=DIR            user executables [EPREFIX/bin]
1331   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1332   --libexecdir=DIR        program executables [EPREFIX/libexec]
1333   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1334   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1335   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1336   --libdir=DIR            object code libraries [EPREFIX/lib]
1337   --includedir=DIR        C header files [PREFIX/include]
1338   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1339   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1340   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1341   --infodir=DIR           info documentation [DATAROOTDIR/info]
1342   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1343   --mandir=DIR            man documentation [DATAROOTDIR/man]
1344   --docdir=DIR            documentation root [DATAROOTDIR/doc/expat]
1345   --htmldir=DIR           html documentation [DOCDIR]
1346   --dvidir=DIR            dvi documentation [DOCDIR]
1347   --pdfdir=DIR            pdf documentation [DOCDIR]
1348   --psdir=DIR             ps documentation [DOCDIR]
1349 _ACEOF
1350
1351   cat <<\_ACEOF
1352
1353 System types:
1354   --build=BUILD     configure for building on BUILD [guessed]
1355   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1356 _ACEOF
1357 fi
1358
1359 if test -n "$ac_init_help"; then
1360   case $ac_init_help in
1361      short | recursive ) echo "Configuration of expat 2.2.2:";;
1362    esac
1363   cat <<\_ACEOF
1364
1365 Optional Features:
1366   --disable-option-checking  ignore unrecognized --enable/--with options
1367   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1368   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1369   --enable-shared[=PKGS]  build shared libraries [default=yes]
1370   --enable-static[=PKGS]  build static libraries [default=yes]
1371   --enable-fast-install[=PKGS]
1372                           optimize for fast installation [default=yes]
1373   --disable-libtool-lock  avoid locking (might break parallel builds)
1374   --enable-xml-context [COUNT]
1375                           Retain context around the current parse point;
1376                           default is enabled and a size of 1024 bytes
1377   --disable-xml-context   Do not retain context around the current parse point
1378
1379 Optional Packages:
1380   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1381   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1382   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1383                           both]
1384   --with-aix-soname=aix|svr4|both
1385                           shared library versioning (aka "SONAME") variant to
1386                           provide on AIX, [default=aix].
1387   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1388   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1389                           compiler's sysroot if not specified).
1390
1391   --with-libbsd           utilize libbsd (for arc4random_buf)
1392
1393
1394 Some influential environment variables:
1395   CC          C compiler command
1396   CFLAGS      C compiler flags
1397   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1398               nonstandard directory <lib dir>
1399   LIBS        libraries to pass to the linker, e.g. -l<library>
1400   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1401               you have headers in a nonstandard directory <include dir>
1402   LT_SYS_LIBRARY_PATH
1403               User-defined run-time library search path.
1404   CPP         C preprocessor
1405   CXX         C++ compiler command
1406   CXXFLAGS    C++ compiler flags
1407   CXXCPP      C++ preprocessor
1408
1409 Use these variables to override the choices made by `configure' or to help
1410 it to find libraries and programs with nonstandard names/locations.
1411
1412 Report bugs to <expat-bugs@libexpat.org>.
1413 _ACEOF
1414 ac_status=$?
1415 fi
1416
1417 if test "$ac_init_help" = "recursive"; then
1418   # If there are subdirs, report their specific --help.
1419   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1420     test -d "$ac_dir" ||
1421       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1422       continue
1423     ac_builddir=.
1424
1425 case "$ac_dir" in
1426 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1427 *)
1428   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1429   # A ".." for each directory in $ac_dir_suffix.
1430   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1431   case $ac_top_builddir_sub in
1432   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1433   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1434   esac ;;
1435 esac
1436 ac_abs_top_builddir=$ac_pwd
1437 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1438 # for backward compatibility:
1439 ac_top_builddir=$ac_top_build_prefix
1440
1441 case $srcdir in
1442   .)  # We are building in place.
1443     ac_srcdir=.
1444     ac_top_srcdir=$ac_top_builddir_sub
1445     ac_abs_top_srcdir=$ac_pwd ;;
1446   [\\/]* | ?:[\\/]* )  # Absolute name.
1447     ac_srcdir=$srcdir$ac_dir_suffix;
1448     ac_top_srcdir=$srcdir
1449     ac_abs_top_srcdir=$srcdir ;;
1450   *) # Relative name.
1451     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1452     ac_top_srcdir=$ac_top_build_prefix$srcdir
1453     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1454 esac
1455 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1456
1457     cd "$ac_dir" || { ac_status=$?; continue; }
1458     # Check for guested configure.
1459     if test -f "$ac_srcdir/configure.gnu"; then
1460       echo &&
1461       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1462     elif test -f "$ac_srcdir/configure"; then
1463       echo &&
1464       $SHELL "$ac_srcdir/configure" --help=recursive
1465     else
1466       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1467     fi || ac_status=$?
1468     cd "$ac_pwd" || { ac_status=$?; break; }
1469   done
1470 fi
1471
1472 test -n "$ac_init_help" && exit $ac_status
1473 if $ac_init_version; then
1474   cat <<\_ACEOF
1475 expat configure 2.2.2
1476 generated by GNU Autoconf 2.69
1477
1478 Copyright (C) 2012 Free Software Foundation, Inc.
1479 This configure script is free software; the Free Software Foundation
1480 gives unlimited permission to copy, distribute and modify it.
1481 _ACEOF
1482   exit
1483 fi
1484
1485 ## ------------------------ ##
1486 ## Autoconf initialization. ##
1487 ## ------------------------ ##
1488
1489 # ac_fn_c_try_compile LINENO
1490 # --------------------------
1491 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1492 ac_fn_c_try_compile ()
1493 {
1494   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1495   rm -f conftest.$ac_objext
1496   if { { ac_try="$ac_compile"
1497 case "(($ac_try" in
1498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1499   *) ac_try_echo=$ac_try;;
1500 esac
1501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1502 $as_echo "$ac_try_echo"; } >&5
1503   (eval "$ac_compile") 2>conftest.err
1504   ac_status=$?
1505   if test -s conftest.err; then
1506     grep -v '^ *+' conftest.err >conftest.er1
1507     cat conftest.er1 >&5
1508     mv -f conftest.er1 conftest.err
1509   fi
1510   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1511   test $ac_status = 0; } && {
1512          test -z "$ac_c_werror_flag" ||
1513          test ! -s conftest.err
1514        } && test -s conftest.$ac_objext; then :
1515   ac_retval=0
1516 else
1517   $as_echo "$as_me: failed program was:" >&5
1518 sed 's/^/| /' conftest.$ac_ext >&5
1519
1520         ac_retval=1
1521 fi
1522   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1523   as_fn_set_status $ac_retval
1524
1525 } # ac_fn_c_try_compile
1526
1527 # ac_fn_c_try_link LINENO
1528 # -----------------------
1529 # Try to link conftest.$ac_ext, and return whether this succeeded.
1530 ac_fn_c_try_link ()
1531 {
1532   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1533   rm -f conftest.$ac_objext conftest$ac_exeext
1534   if { { ac_try="$ac_link"
1535 case "(($ac_try" in
1536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1537   *) ac_try_echo=$ac_try;;
1538 esac
1539 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1540 $as_echo "$ac_try_echo"; } >&5
1541   (eval "$ac_link") 2>conftest.err
1542   ac_status=$?
1543   if test -s conftest.err; then
1544     grep -v '^ *+' conftest.err >conftest.er1
1545     cat conftest.er1 >&5
1546     mv -f conftest.er1 conftest.err
1547   fi
1548   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1549   test $ac_status = 0; } && {
1550          test -z "$ac_c_werror_flag" ||
1551          test ! -s conftest.err
1552        } && test -s conftest$ac_exeext && {
1553          test "$cross_compiling" = yes ||
1554          test -x conftest$ac_exeext
1555        }; then :
1556   ac_retval=0
1557 else
1558   $as_echo "$as_me: failed program was:" >&5
1559 sed 's/^/| /' conftest.$ac_ext >&5
1560
1561         ac_retval=1
1562 fi
1563   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1564   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1565   # interfere with the next link command; also delete a directory that is
1566   # left behind by Apple's compiler.  We do this before executing the actions.
1567   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1568   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1569   as_fn_set_status $ac_retval
1570
1571 } # ac_fn_c_try_link
1572
1573 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1574 # -------------------------------------------------------
1575 # Tests whether HEADER exists and can be compiled using the include files in
1576 # INCLUDES, setting the cache variable VAR accordingly.
1577 ac_fn_c_check_header_compile ()
1578 {
1579   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1580   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1581 $as_echo_n "checking for $2... " >&6; }
1582 if eval \${$3+:} false; then :
1583   $as_echo_n "(cached) " >&6
1584 else
1585   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1586 /* end confdefs.h.  */
1587 $4
1588 #include <$2>
1589 _ACEOF
1590 if ac_fn_c_try_compile "$LINENO"; then :
1591   eval "$3=yes"
1592 else
1593   eval "$3=no"
1594 fi
1595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1596 fi
1597 eval ac_res=\$$3
1598                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1599 $as_echo "$ac_res" >&6; }
1600   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1601
1602 } # ac_fn_c_check_header_compile
1603
1604 # ac_fn_c_try_cpp LINENO
1605 # ----------------------
1606 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1607 ac_fn_c_try_cpp ()
1608 {
1609   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1610   if { { ac_try="$ac_cpp conftest.$ac_ext"
1611 case "(($ac_try" in
1612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1613   *) ac_try_echo=$ac_try;;
1614 esac
1615 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1616 $as_echo "$ac_try_echo"; } >&5
1617   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1618   ac_status=$?
1619   if test -s conftest.err; then
1620     grep -v '^ *+' conftest.err >conftest.er1
1621     cat conftest.er1 >&5
1622     mv -f conftest.er1 conftest.err
1623   fi
1624   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1625   test $ac_status = 0; } > conftest.i && {
1626          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1627          test ! -s conftest.err
1628        }; then :
1629   ac_retval=0
1630 else
1631   $as_echo "$as_me: failed program was:" >&5
1632 sed 's/^/| /' conftest.$ac_ext >&5
1633
1634     ac_retval=1
1635 fi
1636   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1637   as_fn_set_status $ac_retval
1638
1639 } # ac_fn_c_try_cpp
1640
1641 # ac_fn_c_try_run LINENO
1642 # ----------------------
1643 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1644 # that executables *can* be run.
1645 ac_fn_c_try_run ()
1646 {
1647   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1648   if { { ac_try="$ac_link"
1649 case "(($ac_try" in
1650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1651   *) ac_try_echo=$ac_try;;
1652 esac
1653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1654 $as_echo "$ac_try_echo"; } >&5
1655   (eval "$ac_link") 2>&5
1656   ac_status=$?
1657   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1658   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1659   { { case "(($ac_try" in
1660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1661   *) ac_try_echo=$ac_try;;
1662 esac
1663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1664 $as_echo "$ac_try_echo"; } >&5
1665   (eval "$ac_try") 2>&5
1666   ac_status=$?
1667   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1668   test $ac_status = 0; }; }; then :
1669   ac_retval=0
1670 else
1671   $as_echo "$as_me: program exited with status $ac_status" >&5
1672        $as_echo "$as_me: failed program was:" >&5
1673 sed 's/^/| /' conftest.$ac_ext >&5
1674
1675        ac_retval=$ac_status
1676 fi
1677   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1678   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1679   as_fn_set_status $ac_retval
1680
1681 } # ac_fn_c_try_run
1682
1683 # ac_fn_c_check_func LINENO FUNC VAR
1684 # ----------------------------------
1685 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1686 ac_fn_c_check_func ()
1687 {
1688   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1689   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1690 $as_echo_n "checking for $2... " >&6; }
1691 if eval \${$3+:} false; then :
1692   $as_echo_n "(cached) " >&6
1693 else
1694   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1695 /* end confdefs.h.  */
1696 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1697    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1698 #define $2 innocuous_$2
1699
1700 /* System header to define __stub macros and hopefully few prototypes,
1701     which can conflict with char $2 (); below.
1702     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1703     <limits.h> exists even on freestanding compilers.  */
1704
1705 #ifdef __STDC__
1706 # include <limits.h>
1707 #else
1708 # include <assert.h>
1709 #endif
1710
1711 #undef $2
1712
1713 /* Override any GCC internal prototype to avoid an error.
1714    Use char because int might match the return type of a GCC
1715    builtin and then its argument prototype would still apply.  */
1716 #ifdef __cplusplus
1717 extern "C"
1718 #endif
1719 char $2 ();
1720 /* The GNU C library defines this for functions which it implements
1721     to always fail with ENOSYS.  Some functions are actually named
1722     something starting with __ and the normal name is an alias.  */
1723 #if defined __stub_$2 || defined __stub___$2
1724 choke me
1725 #endif
1726
1727 int
1728 main ()
1729 {
1730 return $2 ();
1731   ;
1732   return 0;
1733 }
1734 _ACEOF
1735 if ac_fn_c_try_link "$LINENO"; then :
1736   eval "$3=yes"
1737 else
1738   eval "$3=no"
1739 fi
1740 rm -f core conftest.err conftest.$ac_objext \
1741     conftest$ac_exeext conftest.$ac_ext
1742 fi
1743 eval ac_res=\$$3
1744                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1745 $as_echo "$ac_res" >&6; }
1746   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1747
1748 } # ac_fn_c_check_func
1749
1750 # ac_fn_cxx_try_compile LINENO
1751 # ----------------------------
1752 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1753 ac_fn_cxx_try_compile ()
1754 {
1755   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756   rm -f conftest.$ac_objext
1757   if { { ac_try="$ac_compile"
1758 case "(($ac_try" in
1759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1760   *) ac_try_echo=$ac_try;;
1761 esac
1762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1763 $as_echo "$ac_try_echo"; } >&5
1764   (eval "$ac_compile") 2>conftest.err
1765   ac_status=$?
1766   if test -s conftest.err; then
1767     grep -v '^ *+' conftest.err >conftest.er1
1768     cat conftest.er1 >&5
1769     mv -f conftest.er1 conftest.err
1770   fi
1771   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1772   test $ac_status = 0; } && {
1773          test -z "$ac_cxx_werror_flag" ||
1774          test ! -s conftest.err
1775        } && test -s conftest.$ac_objext; then :
1776   ac_retval=0
1777 else
1778   $as_echo "$as_me: failed program was:" >&5
1779 sed 's/^/| /' conftest.$ac_ext >&5
1780
1781         ac_retval=1
1782 fi
1783   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784   as_fn_set_status $ac_retval
1785
1786 } # ac_fn_cxx_try_compile
1787
1788 # ac_fn_cxx_try_cpp LINENO
1789 # ------------------------
1790 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1791 ac_fn_cxx_try_cpp ()
1792 {
1793   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794   if { { ac_try="$ac_cpp conftest.$ac_ext"
1795 case "(($ac_try" in
1796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1797   *) ac_try_echo=$ac_try;;
1798 esac
1799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1800 $as_echo "$ac_try_echo"; } >&5
1801   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1802   ac_status=$?
1803   if test -s conftest.err; then
1804     grep -v '^ *+' conftest.err >conftest.er1
1805     cat conftest.er1 >&5
1806     mv -f conftest.er1 conftest.err
1807   fi
1808   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809   test $ac_status = 0; } > conftest.i && {
1810          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1811          test ! -s conftest.err
1812        }; then :
1813   ac_retval=0
1814 else
1815   $as_echo "$as_me: failed program was:" >&5
1816 sed 's/^/| /' conftest.$ac_ext >&5
1817
1818     ac_retval=1
1819 fi
1820   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1821   as_fn_set_status $ac_retval
1822
1823 } # ac_fn_cxx_try_cpp
1824
1825 # ac_fn_cxx_try_link LINENO
1826 # -------------------------
1827 # Try to link conftest.$ac_ext, and return whether this succeeded.
1828 ac_fn_cxx_try_link ()
1829 {
1830   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831   rm -f conftest.$ac_objext conftest$ac_exeext
1832   if { { ac_try="$ac_link"
1833 case "(($ac_try" in
1834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1835   *) ac_try_echo=$ac_try;;
1836 esac
1837 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1838 $as_echo "$ac_try_echo"; } >&5
1839   (eval "$ac_link") 2>conftest.err
1840   ac_status=$?
1841   if test -s conftest.err; then
1842     grep -v '^ *+' conftest.err >conftest.er1
1843     cat conftest.er1 >&5
1844     mv -f conftest.er1 conftest.err
1845   fi
1846   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1847   test $ac_status = 0; } && {
1848          test -z "$ac_cxx_werror_flag" ||
1849          test ! -s conftest.err
1850        } && test -s conftest$ac_exeext && {
1851          test "$cross_compiling" = yes ||
1852          test -x conftest$ac_exeext
1853        }; then :
1854   ac_retval=0
1855 else
1856   $as_echo "$as_me: failed program was:" >&5
1857 sed 's/^/| /' conftest.$ac_ext >&5
1858
1859         ac_retval=1
1860 fi
1861   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1862   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1863   # interfere with the next link command; also delete a directory that is
1864   # left behind by Apple's compiler.  We do this before executing the actions.
1865   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1866   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1867   as_fn_set_status $ac_retval
1868
1869 } # ac_fn_cxx_try_link
1870
1871 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1872 # -------------------------------------------
1873 # Tests whether TYPE exists after having included INCLUDES, setting cache
1874 # variable VAR accordingly.
1875 ac_fn_c_check_type ()
1876 {
1877   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1879 $as_echo_n "checking for $2... " >&6; }
1880 if eval \${$3+:} false; then :
1881   $as_echo_n "(cached) " >&6
1882 else
1883   eval "$3=no"
1884   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1885 /* end confdefs.h.  */
1886 $4
1887 int
1888 main ()
1889 {
1890 if (sizeof ($2))
1891          return 0;
1892   ;
1893   return 0;
1894 }
1895 _ACEOF
1896 if ac_fn_c_try_compile "$LINENO"; then :
1897   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1898 /* end confdefs.h.  */
1899 $4
1900 int
1901 main ()
1902 {
1903 if (sizeof (($2)))
1904             return 0;
1905   ;
1906   return 0;
1907 }
1908 _ACEOF
1909 if ac_fn_c_try_compile "$LINENO"; then :
1910
1911 else
1912   eval "$3=yes"
1913 fi
1914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1915 fi
1916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1917 fi
1918 eval ac_res=\$$3
1919                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1920 $as_echo "$ac_res" >&6; }
1921   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1922
1923 } # ac_fn_c_check_type
1924
1925 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1926 # -------------------------------------------------------
1927 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1928 # the include files in INCLUDES and setting the cache variable VAR
1929 # accordingly.
1930 ac_fn_c_check_header_mongrel ()
1931 {
1932   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1933   if eval \${$3+:} false; then :
1934   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1935 $as_echo_n "checking for $2... " >&6; }
1936 if eval \${$3+:} false; then :
1937   $as_echo_n "(cached) " >&6
1938 fi
1939 eval ac_res=\$$3
1940                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1941 $as_echo "$ac_res" >&6; }
1942 else
1943   # Is the header compilable?
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1945 $as_echo_n "checking $2 usability... " >&6; }
1946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947 /* end confdefs.h.  */
1948 $4
1949 #include <$2>
1950 _ACEOF
1951 if ac_fn_c_try_compile "$LINENO"; then :
1952   ac_header_compiler=yes
1953 else
1954   ac_header_compiler=no
1955 fi
1956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1958 $as_echo "$ac_header_compiler" >&6; }
1959
1960 # Is the header present?
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1962 $as_echo_n "checking $2 presence... " >&6; }
1963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1964 /* end confdefs.h.  */
1965 #include <$2>
1966 _ACEOF
1967 if ac_fn_c_try_cpp "$LINENO"; then :
1968   ac_header_preproc=yes
1969 else
1970   ac_header_preproc=no
1971 fi
1972 rm -f conftest.err conftest.i conftest.$ac_ext
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1974 $as_echo "$ac_header_preproc" >&6; }
1975
1976 # So?  What about this header?
1977 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1978   yes:no: )
1979     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1980 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1981     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1982 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1983     ;;
1984   no:yes:* )
1985     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1986 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1987     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1988 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1989     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1990 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1991     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1992 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1993     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1994 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1995 ( $as_echo "## -------------------------------------- ##
1996 ## Report this to expat-bugs@libexpat.org ##
1997 ## -------------------------------------- ##"
1998      ) | sed "s/^/$as_me: WARNING:     /" >&2
1999     ;;
2000 esac
2001   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2002 $as_echo_n "checking for $2... " >&6; }
2003 if eval \${$3+:} false; then :
2004   $as_echo_n "(cached) " >&6
2005 else
2006   eval "$3=\$ac_header_compiler"
2007 fi
2008 eval ac_res=\$$3
2009                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2010 $as_echo "$ac_res" >&6; }
2011 fi
2012   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2013
2014 } # ac_fn_c_check_header_mongrel
2015 cat >config.log <<_ACEOF
2016 This file contains any messages produced by compilers while
2017 running configure, to aid debugging if configure makes a mistake.
2018
2019 It was created by expat $as_me 2.2.2, which was
2020 generated by GNU Autoconf 2.69.  Invocation command line was
2021
2022   $ $0 $@
2023
2024 _ACEOF
2025 exec 5>>config.log
2026 {
2027 cat <<_ASUNAME
2028 ## --------- ##
2029 ## Platform. ##
2030 ## --------- ##
2031
2032 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2033 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2034 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2035 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2036 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2037
2038 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2039 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2040
2041 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2042 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2043 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2044 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2045 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2046 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2047 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2048
2049 _ASUNAME
2050
2051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2052 for as_dir in $PATH
2053 do
2054   IFS=$as_save_IFS
2055   test -z "$as_dir" && as_dir=.
2056     $as_echo "PATH: $as_dir"
2057   done
2058 IFS=$as_save_IFS
2059
2060 } >&5
2061
2062 cat >&5 <<_ACEOF
2063
2064
2065 ## ----------- ##
2066 ## Core tests. ##
2067 ## ----------- ##
2068
2069 _ACEOF
2070
2071
2072 # Keep a trace of the command line.
2073 # Strip out --no-create and --no-recursion so they do not pile up.
2074 # Strip out --silent because we don't want to record it for future runs.
2075 # Also quote any args containing shell meta-characters.
2076 # Make two passes to allow for proper duplicate-argument suppression.
2077 ac_configure_args=
2078 ac_configure_args0=
2079 ac_configure_args1=
2080 ac_must_keep_next=false
2081 for ac_pass in 1 2
2082 do
2083   for ac_arg
2084   do
2085     case $ac_arg in
2086     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2087     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2088     | -silent | --silent | --silen | --sile | --sil)
2089       continue ;;
2090     *\'*)
2091       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2092     esac
2093     case $ac_pass in
2094     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2095     2)
2096       as_fn_append ac_configure_args1 " '$ac_arg'"
2097       if test $ac_must_keep_next = true; then
2098         ac_must_keep_next=false # Got value, back to normal.
2099       else
2100         case $ac_arg in
2101           *=* | --config-cache | -C | -disable-* | --disable-* \
2102           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2103           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2104           | -with-* | --with-* | -without-* | --without-* | --x)
2105             case "$ac_configure_args0 " in
2106               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2107             esac
2108             ;;
2109           -* ) ac_must_keep_next=true ;;
2110         esac
2111       fi
2112       as_fn_append ac_configure_args " '$ac_arg'"
2113       ;;
2114     esac
2115   done
2116 done
2117 { ac_configure_args0=; unset ac_configure_args0;}
2118 { ac_configure_args1=; unset ac_configure_args1;}
2119
2120 # When interrupted or exit'd, cleanup temporary files, and complete
2121 # config.log.  We remove comments because anyway the quotes in there
2122 # would cause problems or look ugly.
2123 # WARNING: Use '\'' to represent an apostrophe within the trap.
2124 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2125 trap 'exit_status=$?
2126   # Save into config.log some information that might help in debugging.
2127   {
2128     echo
2129
2130     $as_echo "## ---------------- ##
2131 ## Cache variables. ##
2132 ## ---------------- ##"
2133     echo
2134     # The following way of writing the cache mishandles newlines in values,
2135 (
2136   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2137     eval ac_val=\$$ac_var
2138     case $ac_val in #(
2139     *${as_nl}*)
2140       case $ac_var in #(
2141       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2142 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2143       esac
2144       case $ac_var in #(
2145       _ | IFS | as_nl) ;; #(
2146       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2147       *) { eval $ac_var=; unset $ac_var;} ;;
2148       esac ;;
2149     esac
2150   done
2151   (set) 2>&1 |
2152     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2153     *${as_nl}ac_space=\ *)
2154       sed -n \
2155         "s/'\''/'\''\\\\'\'''\''/g;
2156           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2157       ;; #(
2158     *)
2159       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2160       ;;
2161     esac |
2162     sort
2163 )
2164     echo
2165
2166     $as_echo "## ----------------- ##
2167 ## Output variables. ##
2168 ## ----------------- ##"
2169     echo
2170     for ac_var in $ac_subst_vars
2171     do
2172       eval ac_val=\$$ac_var
2173       case $ac_val in
2174       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2175       esac
2176       $as_echo "$ac_var='\''$ac_val'\''"
2177     done | sort
2178     echo
2179
2180     if test -n "$ac_subst_files"; then
2181       $as_echo "## ------------------- ##
2182 ## File substitutions. ##
2183 ## ------------------- ##"
2184       echo
2185       for ac_var in $ac_subst_files
2186       do
2187         eval ac_val=\$$ac_var
2188         case $ac_val in
2189         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2190         esac
2191         $as_echo "$ac_var='\''$ac_val'\''"
2192       done | sort
2193       echo
2194     fi
2195
2196     if test -s confdefs.h; then
2197       $as_echo "## ----------- ##
2198 ## confdefs.h. ##
2199 ## ----------- ##"
2200       echo
2201       cat confdefs.h
2202       echo
2203     fi
2204     test "$ac_signal" != 0 &&
2205       $as_echo "$as_me: caught signal $ac_signal"
2206     $as_echo "$as_me: exit $exit_status"
2207   } >&5
2208   rm -f core *.core core.conftest.* &&
2209     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2210     exit $exit_status
2211 ' 0
2212 for ac_signal in 1 2 13 15; do
2213   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2214 done
2215 ac_signal=0
2216
2217 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2218 rm -f -r conftest* confdefs.h
2219
2220 $as_echo "/* confdefs.h */" > confdefs.h
2221
2222 # Predefined preprocessor variables.
2223
2224 cat >>confdefs.h <<_ACEOF
2225 #define PACKAGE_NAME "$PACKAGE_NAME"
2226 _ACEOF
2227
2228 cat >>confdefs.h <<_ACEOF
2229 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2230 _ACEOF
2231
2232 cat >>confdefs.h <<_ACEOF
2233 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2234 _ACEOF
2235
2236 cat >>confdefs.h <<_ACEOF
2237 #define PACKAGE_STRING "$PACKAGE_STRING"
2238 _ACEOF
2239
2240 cat >>confdefs.h <<_ACEOF
2241 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2242 _ACEOF
2243
2244 cat >>confdefs.h <<_ACEOF
2245 #define PACKAGE_URL "$PACKAGE_URL"
2246 _ACEOF
2247
2248
2249 # Let the site file select an alternate cache file if it wants to.
2250 # Prefer an explicitly selected file to automatically selected ones.
2251 ac_site_file1=NONE
2252 ac_site_file2=NONE
2253 if test -n "$CONFIG_SITE"; then
2254   # We do not want a PATH search for config.site.
2255   case $CONFIG_SITE in #((
2256     -*)  ac_site_file1=./$CONFIG_SITE;;
2257     */*) ac_site_file1=$CONFIG_SITE;;
2258     *)   ac_site_file1=./$CONFIG_SITE;;
2259   esac
2260 elif test "x$prefix" != xNONE; then
2261   ac_site_file1=$prefix/share/config.site
2262   ac_site_file2=$prefix/etc/config.site
2263 else
2264   ac_site_file1=$ac_default_prefix/share/config.site
2265   ac_site_file2=$ac_default_prefix/etc/config.site
2266 fi
2267 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2268 do
2269   test "x$ac_site_file" = xNONE && continue
2270   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2271     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2272 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2273     sed 's/^/| /' "$ac_site_file" >&5
2274     . "$ac_site_file" \
2275       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2276 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2277 as_fn_error $? "failed to load site script $ac_site_file
2278 See \`config.log' for more details" "$LINENO" 5; }
2279   fi
2280 done
2281
2282 if test -r "$cache_file"; then
2283   # Some versions of bash will fail to source /dev/null (special files
2284   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2285   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2286     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2287 $as_echo "$as_me: loading cache $cache_file" >&6;}
2288     case $cache_file in
2289       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2290       *)                      . "./$cache_file";;
2291     esac
2292   fi
2293 else
2294   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2295 $as_echo "$as_me: creating cache $cache_file" >&6;}
2296   >$cache_file
2297 fi
2298
2299 as_fn_append ac_header_list " stdlib.h"
2300 as_fn_append ac_header_list " unistd.h"
2301 as_fn_append ac_header_list " sys/param.h"
2302 # Check that the precious variables saved in the cache have kept the same
2303 # value.
2304 ac_cache_corrupted=false
2305 for ac_var in $ac_precious_vars; do
2306   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2307   eval ac_new_set=\$ac_env_${ac_var}_set
2308   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2309   eval ac_new_val=\$ac_env_${ac_var}_value
2310   case $ac_old_set,$ac_new_set in
2311     set,)
2312       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2313 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2314       ac_cache_corrupted=: ;;
2315     ,set)
2316       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2317 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2318       ac_cache_corrupted=: ;;
2319     ,);;
2320     *)
2321       if test "x$ac_old_val" != "x$ac_new_val"; then
2322         # differences in whitespace do not lead to failure.
2323         ac_old_val_w=`echo x $ac_old_val`
2324         ac_new_val_w=`echo x $ac_new_val`
2325         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2326           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2327 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2328           ac_cache_corrupted=:
2329         else
2330           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2331 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2332           eval $ac_var=\$ac_old_val
2333         fi
2334         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2335 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2336         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2337 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2338       fi;;
2339   esac
2340   # Pass precious variables to config.status.
2341   if test "$ac_new_set" = set; then
2342     case $ac_new_val in
2343     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2344     *) ac_arg=$ac_var=$ac_new_val ;;
2345     esac
2346     case " $ac_configure_args " in
2347       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2348       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2349     esac
2350   fi
2351 done
2352 if $ac_cache_corrupted; then
2353   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2354 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2355   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2356 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2357   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2358 fi
2359 ## -------------------- ##
2360 ## Main body of script. ##
2361 ## -------------------- ##
2362
2363 ac_ext=c
2364 ac_cpp='$CPP $CPPFLAGS'
2365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2368
2369
2370
2371
2372
2373 ac_aux_dir=
2374 for ac_dir in conftools "$srcdir"/conftools; do
2375   if test -f "$ac_dir/install-sh"; then
2376     ac_aux_dir=$ac_dir
2377     ac_install_sh="$ac_aux_dir/install-sh -c"
2378     break
2379   elif test -f "$ac_dir/install.sh"; then
2380     ac_aux_dir=$ac_dir
2381     ac_install_sh="$ac_aux_dir/install.sh -c"
2382     break
2383   elif test -f "$ac_dir/shtool"; then
2384     ac_aux_dir=$ac_dir
2385     ac_install_sh="$ac_aux_dir/shtool install -c"
2386     break
2387   fi
2388 done
2389 if test -z "$ac_aux_dir"; then
2390   as_fn_error $? "cannot find install-sh, install.sh, or shtool in conftools \"$srcdir\"/conftools" "$LINENO" 5
2391 fi
2392
2393 # These three variables are undocumented and unsupported,
2394 # and are intended to be withdrawn in a future Autoconf release.
2395 # They can cause serious problems if a builder's source tree is in a directory
2396 # whose full name contains unusual characters.
2397 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2398 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2399 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2400
2401
2402
2403
2404
2405
2406 LIBCURRENT=7   # sync
2407 LIBREVISION=4  # with
2408 LIBAGE=6       # CMakeLists.txt!
2409
2410 ac_config_headers="$ac_config_headers expat_config.h"
2411
2412
2413
2414
2415
2416 # Make sure we can run config.sub.
2417 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2418   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2419
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2421 $as_echo_n "checking build system type... " >&6; }
2422 if ${ac_cv_build+:} false; then :
2423   $as_echo_n "(cached) " >&6
2424 else
2425   ac_build_alias=$build_alias
2426 test "x$ac_build_alias" = x &&
2427   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2428 test "x$ac_build_alias" = x &&
2429   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2430 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2431   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2432
2433 fi
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2435 $as_echo "$ac_cv_build" >&6; }
2436 case $ac_cv_build in
2437 *-*-*) ;;
2438 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2439 esac
2440 build=$ac_cv_build
2441 ac_save_IFS=$IFS; IFS='-'
2442 set x $ac_cv_build
2443 shift
2444 build_cpu=$1
2445 build_vendor=$2
2446 shift; shift
2447 # Remember, the first character of IFS is used to create $*,
2448 # except with old shells:
2449 build_os=$*
2450 IFS=$ac_save_IFS
2451 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2452
2453
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2455 $as_echo_n "checking host system type... " >&6; }
2456 if ${ac_cv_host+:} false; then :
2457   $as_echo_n "(cached) " >&6
2458 else
2459   if test "x$host_alias" = x; then
2460   ac_cv_host=$ac_cv_build
2461 else
2462   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2463     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2464 fi
2465
2466 fi
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2468 $as_echo "$ac_cv_host" >&6; }
2469 case $ac_cv_host in
2470 *-*-*) ;;
2471 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2472 esac
2473 host=$ac_cv_host
2474 ac_save_IFS=$IFS; IFS='-'
2475 set x $ac_cv_host
2476 shift
2477 host_cpu=$1
2478 host_vendor=$2
2479 shift; shift
2480 # Remember, the first character of IFS is used to create $*,
2481 # except with old shells:
2482 host_os=$*
2483 IFS=$ac_save_IFS
2484 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2485
2486
2487 enable_win32_dll=yes
2488
2489 case $host in
2490 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
2491   if test -n "$ac_tool_prefix"; then
2492   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2493 set dummy ${ac_tool_prefix}as; ac_word=$2
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2495 $as_echo_n "checking for $ac_word... " >&6; }
2496 if ${ac_cv_prog_AS+:} false; then :
2497   $as_echo_n "(cached) " >&6
2498 else
2499   if test -n "$AS"; then
2500   ac_cv_prog_AS="$AS" # Let the user override the test.
2501 else
2502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2503 for as_dir in $PATH
2504 do
2505   IFS=$as_save_IFS
2506   test -z "$as_dir" && as_dir=.
2507     for ac_exec_ext in '' $ac_executable_extensions; do
2508   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2509     ac_cv_prog_AS="${ac_tool_prefix}as"
2510     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2511     break 2
2512   fi
2513 done
2514   done
2515 IFS=$as_save_IFS
2516
2517 fi
2518 fi
2519 AS=$ac_cv_prog_AS
2520 if test -n "$AS"; then
2521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
2522 $as_echo "$AS" >&6; }
2523 else
2524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2525 $as_echo "no" >&6; }
2526 fi
2527
2528
2529 fi
2530 if test -z "$ac_cv_prog_AS"; then
2531   ac_ct_AS=$AS
2532   # Extract the first word of "as", so it can be a program name with args.
2533 set dummy as; ac_word=$2
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2535 $as_echo_n "checking for $ac_word... " >&6; }
2536 if ${ac_cv_prog_ac_ct_AS+:} false; then :
2537   $as_echo_n "(cached) " >&6
2538 else
2539   if test -n "$ac_ct_AS"; then
2540   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
2541 else
2542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2543 for as_dir in $PATH
2544 do
2545   IFS=$as_save_IFS
2546   test -z "$as_dir" && as_dir=.
2547     for ac_exec_ext in '' $ac_executable_extensions; do
2548   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2549     ac_cv_prog_ac_ct_AS="as"
2550     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2551     break 2
2552   fi
2553 done
2554   done
2555 IFS=$as_save_IFS
2556
2557 fi
2558 fi
2559 ac_ct_AS=$ac_cv_prog_ac_ct_AS
2560 if test -n "$ac_ct_AS"; then
2561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
2562 $as_echo "$ac_ct_AS" >&6; }
2563 else
2564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2565 $as_echo "no" >&6; }
2566 fi
2567
2568   if test "x$ac_ct_AS" = x; then
2569     AS="false"
2570   else
2571     case $cross_compiling:$ac_tool_warned in
2572 yes:)
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2574 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2575 ac_tool_warned=yes ;;
2576 esac
2577     AS=$ac_ct_AS
2578   fi
2579 else
2580   AS="$ac_cv_prog_AS"
2581 fi
2582
2583   if test -n "$ac_tool_prefix"; then
2584   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
2585 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2587 $as_echo_n "checking for $ac_word... " >&6; }
2588 if ${ac_cv_prog_DLLTOOL+:} false; then :
2589   $as_echo_n "(cached) " >&6
2590 else
2591   if test -n "$DLLTOOL"; then
2592   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2593 else
2594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2595 for as_dir in $PATH
2596 do
2597   IFS=$as_save_IFS
2598   test -z "$as_dir" && as_dir=.
2599     for ac_exec_ext in '' $ac_executable_extensions; do
2600   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2601     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
2602     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2603     break 2
2604   fi
2605 done
2606   done
2607 IFS=$as_save_IFS
2608
2609 fi
2610 fi
2611 DLLTOOL=$ac_cv_prog_DLLTOOL
2612 if test -n "$DLLTOOL"; then
2613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
2614 $as_echo "$DLLTOOL" >&6; }
2615 else
2616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2617 $as_echo "no" >&6; }
2618 fi
2619
2620
2621 fi
2622 if test -z "$ac_cv_prog_DLLTOOL"; then
2623   ac_ct_DLLTOOL=$DLLTOOL
2624   # Extract the first word of "dlltool", so it can be a program name with args.
2625 set dummy dlltool; ac_word=$2
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2627 $as_echo_n "checking for $ac_word... " >&6; }
2628 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
2629   $as_echo_n "(cached) " >&6
2630 else
2631   if test -n "$ac_ct_DLLTOOL"; then
2632   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
2633 else
2634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2635 for as_dir in $PATH
2636 do
2637   IFS=$as_save_IFS
2638   test -z "$as_dir" && as_dir=.
2639     for ac_exec_ext in '' $ac_executable_extensions; do
2640   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2641     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
2642     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2643     break 2
2644   fi
2645 done
2646   done
2647 IFS=$as_save_IFS
2648
2649 fi
2650 fi
2651 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
2652 if test -n "$ac_ct_DLLTOOL"; then
2653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
2654 $as_echo "$ac_ct_DLLTOOL" >&6; }
2655 else
2656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2657 $as_echo "no" >&6; }
2658 fi
2659
2660   if test "x$ac_ct_DLLTOOL" = x; then
2661     DLLTOOL="false"
2662   else
2663     case $cross_compiling:$ac_tool_warned in
2664 yes:)
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2666 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2667 ac_tool_warned=yes ;;
2668 esac
2669     DLLTOOL=$ac_ct_DLLTOOL
2670   fi
2671 else
2672   DLLTOOL="$ac_cv_prog_DLLTOOL"
2673 fi
2674
2675   if test -n "$ac_tool_prefix"; then
2676   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
2677 set dummy ${ac_tool_prefix}objdump; ac_word=$2
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2679 $as_echo_n "checking for $ac_word... " >&6; }
2680 if ${ac_cv_prog_OBJDUMP+:} false; then :
2681   $as_echo_n "(cached) " >&6
2682 else
2683   if test -n "$OBJDUMP"; then
2684   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
2685 else
2686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687 for as_dir in $PATH
2688 do
2689   IFS=$as_save_IFS
2690   test -z "$as_dir" && as_dir=.
2691     for ac_exec_ext in '' $ac_executable_extensions; do
2692   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2693     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
2694     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2695     break 2
2696   fi
2697 done
2698   done
2699 IFS=$as_save_IFS
2700
2701 fi
2702 fi
2703 OBJDUMP=$ac_cv_prog_OBJDUMP
2704 if test -n "$OBJDUMP"; then
2705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
2706 $as_echo "$OBJDUMP" >&6; }
2707 else
2708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2709 $as_echo "no" >&6; }
2710 fi
2711
2712
2713 fi
2714 if test -z "$ac_cv_prog_OBJDUMP"; then
2715   ac_ct_OBJDUMP=$OBJDUMP
2716   # Extract the first word of "objdump", so it can be a program name with args.
2717 set dummy objdump; ac_word=$2
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2719 $as_echo_n "checking for $ac_word... " >&6; }
2720 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
2721   $as_echo_n "(cached) " >&6
2722 else
2723   if test -n "$ac_ct_OBJDUMP"; then
2724   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
2725 else
2726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2727 for as_dir in $PATH
2728 do
2729   IFS=$as_save_IFS
2730   test -z "$as_dir" && as_dir=.
2731     for ac_exec_ext in '' $ac_executable_extensions; do
2732   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2733     ac_cv_prog_ac_ct_OBJDUMP="objdump"
2734     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2735     break 2
2736   fi
2737 done
2738   done
2739 IFS=$as_save_IFS
2740
2741 fi
2742 fi
2743 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
2744 if test -n "$ac_ct_OBJDUMP"; then
2745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
2746 $as_echo "$ac_ct_OBJDUMP" >&6; }
2747 else
2748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2749 $as_echo "no" >&6; }
2750 fi
2751
2752   if test "x$ac_ct_OBJDUMP" = x; then
2753     OBJDUMP="false"
2754   else
2755     case $cross_compiling:$ac_tool_warned in
2756 yes:)
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2758 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2759 ac_tool_warned=yes ;;
2760 esac
2761     OBJDUMP=$ac_ct_OBJDUMP
2762   fi
2763 else
2764   OBJDUMP="$ac_cv_prog_OBJDUMP"
2765 fi
2766
2767   ;;
2768 esac
2769
2770 test -z "$AS" && AS=as
2771
2772
2773
2774
2775
2776 test -z "$DLLTOOL" && DLLTOOL=dlltool
2777
2778
2779
2780
2781
2782 test -z "$OBJDUMP" && OBJDUMP=objdump
2783
2784
2785
2786
2787
2788
2789
2790 case `pwd` in
2791   *\ * | *\     *)
2792     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2793 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2794 esac
2795
2796
2797
2798 macro_version='2.4.6'
2799 macro_revision='2.4.6'
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813 ltmain=$ac_aux_dir/ltmain.sh
2814
2815 # Backslashify metacharacters that are still active within
2816 # double-quoted strings.
2817 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2818
2819 # Same as above, but do not quote variable references.
2820 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2821
2822 # Sed substitution to delay expansion of an escaped shell variable in a
2823 # double_quote_subst'ed string.
2824 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2825
2826 # Sed substitution to delay expansion of an escaped single quote.
2827 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2828
2829 # Sed substitution to avoid accidental globbing in evaled expressions
2830 no_glob_subst='s/\*/\\\*/g'
2831
2832 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2833 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2834 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2835
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2837 $as_echo_n "checking how to print strings... " >&6; }
2838 # Test print first, because it will be a builtin if present.
2839 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2840    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2841   ECHO='print -r --'
2842 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2843   ECHO='printf %s\n'
2844 else
2845   # Use this function as a fallback that always works.
2846   func_fallback_echo ()
2847   {
2848     eval 'cat <<_LTECHO_EOF
2849 $1
2850 _LTECHO_EOF'
2851   }
2852   ECHO='func_fallback_echo'
2853 fi
2854
2855 # func_echo_all arg...
2856 # Invoke $ECHO with all args, space-separated.
2857 func_echo_all ()
2858 {
2859     $ECHO ""
2860 }
2861
2862 case $ECHO in
2863   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2864 $as_echo "printf" >&6; } ;;
2865   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2866 $as_echo "print -r" >&6; } ;;
2867   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2868 $as_echo "cat" >&6; } ;;
2869 esac
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884 ac_ext=c
2885 ac_cpp='$CPP $CPPFLAGS'
2886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2889 if test -n "$ac_tool_prefix"; then
2890   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2891 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2893 $as_echo_n "checking for $ac_word... " >&6; }
2894 if ${ac_cv_prog_CC+:} false; then :
2895   $as_echo_n "(cached) " >&6
2896 else
2897   if test -n "$CC"; then
2898   ac_cv_prog_CC="$CC" # Let the user override the test.
2899 else
2900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2901 for as_dir in $PATH
2902 do
2903   IFS=$as_save_IFS
2904   test -z "$as_dir" && as_dir=.
2905     for ac_exec_ext in '' $ac_executable_extensions; do
2906   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2907     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2908     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2909     break 2
2910   fi
2911 done
2912   done
2913 IFS=$as_save_IFS
2914
2915 fi
2916 fi
2917 CC=$ac_cv_prog_CC
2918 if test -n "$CC"; then
2919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2920 $as_echo "$CC" >&6; }
2921 else
2922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2923 $as_echo "no" >&6; }
2924 fi
2925
2926
2927 fi
2928 if test -z "$ac_cv_prog_CC"; then
2929   ac_ct_CC=$CC
2930   # Extract the first word of "gcc", so it can be a program name with args.
2931 set dummy gcc; ac_word=$2
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2933 $as_echo_n "checking for $ac_word... " >&6; }
2934 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2935   $as_echo_n "(cached) " >&6
2936 else
2937   if test -n "$ac_ct_CC"; then
2938   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2939 else
2940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941 for as_dir in $PATH
2942 do
2943   IFS=$as_save_IFS
2944   test -z "$as_dir" && as_dir=.
2945     for ac_exec_ext in '' $ac_executable_extensions; do
2946   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2947     ac_cv_prog_ac_ct_CC="gcc"
2948     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2949     break 2
2950   fi
2951 done
2952   done
2953 IFS=$as_save_IFS
2954
2955 fi
2956 fi
2957 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2958 if test -n "$ac_ct_CC"; then
2959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2960 $as_echo "$ac_ct_CC" >&6; }
2961 else
2962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2963 $as_echo "no" >&6; }
2964 fi
2965
2966   if test "x$ac_ct_CC" = x; then
2967     CC=""
2968   else
2969     case $cross_compiling:$ac_tool_warned in
2970 yes:)
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2972 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2973 ac_tool_warned=yes ;;
2974 esac
2975     CC=$ac_ct_CC
2976   fi
2977 else
2978   CC="$ac_cv_prog_CC"
2979 fi
2980
2981 if test -z "$CC"; then
2982           if test -n "$ac_tool_prefix"; then
2983     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2984 set dummy ${ac_tool_prefix}cc; ac_word=$2
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2986 $as_echo_n "checking for $ac_word... " >&6; }
2987 if ${ac_cv_prog_CC+:} false; then :
2988   $as_echo_n "(cached) " >&6
2989 else
2990   if test -n "$CC"; then
2991   ac_cv_prog_CC="$CC" # Let the user override the test.
2992 else
2993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2994 for as_dir in $PATH
2995 do
2996   IFS=$as_save_IFS
2997   test -z "$as_dir" && as_dir=.
2998     for ac_exec_ext in '' $ac_executable_extensions; do
2999   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3000     ac_cv_prog_CC="${ac_tool_prefix}cc"
3001     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3002     break 2
3003   fi
3004 done
3005   done
3006 IFS=$as_save_IFS
3007
3008 fi
3009 fi
3010 CC=$ac_cv_prog_CC
3011 if test -n "$CC"; then
3012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3013 $as_echo "$CC" >&6; }
3014 else
3015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3016 $as_echo "no" >&6; }
3017 fi
3018
3019
3020   fi
3021 fi
3022 if test -z "$CC"; then
3023   # Extract the first word of "cc", so it can be a program name with args.
3024 set dummy cc; ac_word=$2
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3026 $as_echo_n "checking for $ac_word... " >&6; }
3027 if ${ac_cv_prog_CC+:} false; then :
3028   $as_echo_n "(cached) " >&6
3029 else
3030   if test -n "$CC"; then
3031   ac_cv_prog_CC="$CC" # Let the user override the test.
3032 else
3033   ac_prog_rejected=no
3034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3035 for as_dir in $PATH
3036 do
3037   IFS=$as_save_IFS
3038   test -z "$as_dir" && as_dir=.
3039     for ac_exec_ext in '' $ac_executable_extensions; do
3040   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3041     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3042        ac_prog_rejected=yes
3043        continue
3044      fi
3045     ac_cv_prog_CC="cc"
3046     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3047     break 2
3048   fi
3049 done
3050   done
3051 IFS=$as_save_IFS
3052
3053 if test $ac_prog_rejected = yes; then
3054   # We found a bogon in the path, so make sure we never use it.
3055   set dummy $ac_cv_prog_CC
3056   shift
3057   if test $# != 0; then
3058     # We chose a different compiler from the bogus one.
3059     # However, it has the same basename, so the bogon will be chosen
3060     # first if we set CC to just the basename; use the full file name.
3061     shift
3062     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3063   fi
3064 fi
3065 fi
3066 fi
3067 CC=$ac_cv_prog_CC
3068 if test -n "$CC"; then
3069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3070 $as_echo "$CC" >&6; }
3071 else
3072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3073 $as_echo "no" >&6; }
3074 fi
3075
3076
3077 fi
3078 if test -z "$CC"; then
3079   if test -n "$ac_tool_prefix"; then
3080   for ac_prog in cl.exe
3081   do
3082     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3083 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3085 $as_echo_n "checking for $ac_word... " >&6; }
3086 if ${ac_cv_prog_CC+:} false; then :
3087   $as_echo_n "(cached) " >&6
3088 else
3089   if test -n "$CC"; then
3090   ac_cv_prog_CC="$CC" # Let the user override the test.
3091 else
3092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3093 for as_dir in $PATH
3094 do
3095   IFS=$as_save_IFS
3096   test -z "$as_dir" && as_dir=.
3097     for ac_exec_ext in '' $ac_executable_extensions; do
3098   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3099     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3100     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3101     break 2
3102   fi
3103 done
3104   done
3105 IFS=$as_save_IFS
3106
3107 fi
3108 fi
3109 CC=$ac_cv_prog_CC
3110 if test -n "$CC"; then
3111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3112 $as_echo "$CC" >&6; }
3113 else
3114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3115 $as_echo "no" >&6; }
3116 fi
3117
3118
3119     test -n "$CC" && break
3120   done
3121 fi
3122 if test -z "$CC"; then
3123   ac_ct_CC=$CC
3124   for ac_prog in cl.exe
3125 do
3126   # Extract the first word of "$ac_prog", so it can be a program name with args.
3127 set dummy $ac_prog; ac_word=$2
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3129 $as_echo_n "checking for $ac_word... " >&6; }
3130 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3131   $as_echo_n "(cached) " >&6
3132 else
3133   if test -n "$ac_ct_CC"; then
3134   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3135 else
3136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3137 for as_dir in $PATH
3138 do
3139   IFS=$as_save_IFS
3140   test -z "$as_dir" && as_dir=.
3141     for ac_exec_ext in '' $ac_executable_extensions; do
3142   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3143     ac_cv_prog_ac_ct_CC="$ac_prog"
3144     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3145     break 2
3146   fi
3147 done
3148   done
3149 IFS=$as_save_IFS
3150
3151 fi
3152 fi
3153 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3154 if test -n "$ac_ct_CC"; then
3155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3156 $as_echo "$ac_ct_CC" >&6; }
3157 else
3158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3159 $as_echo "no" >&6; }
3160 fi
3161
3162
3163   test -n "$ac_ct_CC" && break
3164 done
3165
3166   if test "x$ac_ct_CC" = x; then
3167     CC=""
3168   else
3169     case $cross_compiling:$ac_tool_warned in
3170 yes:)
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3172 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3173 ac_tool_warned=yes ;;
3174 esac
3175     CC=$ac_ct_CC
3176   fi
3177 fi
3178
3179 fi
3180
3181
3182 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3183 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3184 as_fn_error $? "no acceptable C compiler found in \$PATH
3185 See \`config.log' for more details" "$LINENO" 5; }
3186
3187 # Provide some information about the compiler.
3188 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3189 set X $ac_compile
3190 ac_compiler=$2
3191 for ac_option in --version -v -V -qversion; do
3192   { { ac_try="$ac_compiler $ac_option >&5"
3193 case "(($ac_try" in
3194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195   *) ac_try_echo=$ac_try;;
3196 esac
3197 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3198 $as_echo "$ac_try_echo"; } >&5
3199   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3200   ac_status=$?
3201   if test -s conftest.err; then
3202     sed '10a\
3203 ... rest of stderr output deleted ...
3204          10q' conftest.err >conftest.er1
3205     cat conftest.er1 >&5
3206   fi
3207   rm -f conftest.er1 conftest.err
3208   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3209   test $ac_status = 0; }
3210 done
3211
3212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3213 /* end confdefs.h.  */
3214
3215 int
3216 main ()
3217 {
3218
3219   ;
3220   return 0;
3221 }
3222 _ACEOF
3223 ac_clean_files_save=$ac_clean_files
3224 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3225 # Try to create an executable without -o first, disregard a.out.
3226 # It will help us diagnose broken compilers, and finding out an intuition
3227 # of exeext.
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3229 $as_echo_n "checking whether the C compiler works... " >&6; }
3230 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3231
3232 # The possible output files:
3233 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3234
3235 ac_rmfiles=
3236 for ac_file in $ac_files
3237 do
3238   case $ac_file in
3239     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3240     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3241   esac
3242 done
3243 rm -f $ac_rmfiles
3244
3245 if { { ac_try="$ac_link_default"
3246 case "(($ac_try" in
3247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248   *) ac_try_echo=$ac_try;;
3249 esac
3250 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3251 $as_echo "$ac_try_echo"; } >&5
3252   (eval "$ac_link_default") 2>&5
3253   ac_status=$?
3254   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3255   test $ac_status = 0; }; then :
3256   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3257 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3258 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3259 # so that the user can short-circuit this test for compilers unknown to
3260 # Autoconf.
3261 for ac_file in $ac_files ''
3262 do
3263   test -f "$ac_file" || continue
3264   case $ac_file in
3265     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3266         ;;
3267     [ab].out )
3268         # We found the default executable, but exeext='' is most
3269         # certainly right.
3270         break;;
3271     *.* )
3272         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3273         then :; else
3274            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3275         fi
3276         # We set ac_cv_exeext here because the later test for it is not
3277         # safe: cross compilers may not add the suffix if given an `-o'
3278         # argument, so we may need to know it at that point already.
3279         # Even if this section looks crufty: it has the advantage of
3280         # actually working.
3281         break;;
3282     * )
3283         break;;
3284   esac
3285 done
3286 test "$ac_cv_exeext" = no && ac_cv_exeext=
3287
3288 else
3289   ac_file=''
3290 fi
3291 if test -z "$ac_file"; then :
3292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3293 $as_echo "no" >&6; }
3294 $as_echo "$as_me: failed program was:" >&5
3295 sed 's/^/| /' conftest.$ac_ext >&5
3296
3297 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3298 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3299 as_fn_error 77 "C compiler cannot create executables
3300 See \`config.log' for more details" "$LINENO" 5; }
3301 else
3302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3303 $as_echo "yes" >&6; }
3304 fi
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3306 $as_echo_n "checking for C compiler default output file name... " >&6; }
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3308 $as_echo "$ac_file" >&6; }
3309 ac_exeext=$ac_cv_exeext
3310
3311 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3312 ac_clean_files=$ac_clean_files_save
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3314 $as_echo_n "checking for suffix of executables... " >&6; }
3315 if { { ac_try="$ac_link"
3316 case "(($ac_try" in
3317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318   *) ac_try_echo=$ac_try;;
3319 esac
3320 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3321 $as_echo "$ac_try_echo"; } >&5
3322   (eval "$ac_link") 2>&5
3323   ac_status=$?
3324   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3325   test $ac_status = 0; }; then :
3326   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3327 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3328 # work properly (i.e., refer to `conftest.exe'), while it won't with
3329 # `rm'.
3330 for ac_file in conftest.exe conftest conftest.*; do
3331   test -f "$ac_file" || continue
3332   case $ac_file in
3333     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3334     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3335           break;;
3336     * ) break;;
3337   esac
3338 done
3339 else
3340   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3341 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3342 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3343 See \`config.log' for more details" "$LINENO" 5; }
3344 fi
3345 rm -f conftest conftest$ac_cv_exeext
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3347 $as_echo "$ac_cv_exeext" >&6; }
3348
3349 rm -f conftest.$ac_ext
3350 EXEEXT=$ac_cv_exeext
3351 ac_exeext=$EXEEXT
3352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3353 /* end confdefs.h.  */
3354 #include <stdio.h>
3355 int
3356 main ()
3357 {
3358 FILE *f = fopen ("conftest.out", "w");
3359  return ferror (f) || fclose (f) != 0;
3360
3361   ;
3362   return 0;
3363 }
3364 _ACEOF
3365 ac_clean_files="$ac_clean_files conftest.out"
3366 # Check that the compiler produces executables we can run.  If not, either
3367 # the compiler is broken, or we cross compile.
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3369 $as_echo_n "checking whether we are cross compiling... " >&6; }
3370 if test "$cross_compiling" != yes; then
3371   { { ac_try="$ac_link"
3372 case "(($ac_try" in
3373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3374   *) ac_try_echo=$ac_try;;
3375 esac
3376 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3377 $as_echo "$ac_try_echo"; } >&5
3378   (eval "$ac_link") 2>&5
3379   ac_status=$?
3380   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3381   test $ac_status = 0; }
3382   if { ac_try='./conftest$ac_cv_exeext'
3383   { { case "(($ac_try" in
3384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385   *) ac_try_echo=$ac_try;;
3386 esac
3387 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3388 $as_echo "$ac_try_echo"; } >&5
3389   (eval "$ac_try") 2>&5
3390   ac_status=$?
3391   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3392   test $ac_status = 0; }; }; then
3393     cross_compiling=no
3394   else
3395     if test "$cross_compiling" = maybe; then
3396         cross_compiling=yes
3397     else
3398         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3399 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3400 as_fn_error $? "cannot run C compiled programs.
3401 If you meant to cross compile, use \`--host'.
3402 See \`config.log' for more details" "$LINENO" 5; }
3403     fi
3404   fi
3405 fi
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3407 $as_echo "$cross_compiling" >&6; }
3408
3409 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3410 ac_clean_files=$ac_clean_files_save
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3412 $as_echo_n "checking for suffix of object files... " >&6; }
3413 if ${ac_cv_objext+:} false; then :
3414   $as_echo_n "(cached) " >&6
3415 else
3416   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3417 /* end confdefs.h.  */
3418
3419 int
3420 main ()
3421 {
3422
3423   ;
3424   return 0;
3425 }
3426 _ACEOF
3427 rm -f conftest.o conftest.obj
3428 if { { ac_try="$ac_compile"
3429 case "(($ac_try" in
3430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3431   *) ac_try_echo=$ac_try;;
3432 esac
3433 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3434 $as_echo "$ac_try_echo"; } >&5
3435   (eval "$ac_compile") 2>&5
3436   ac_status=$?
3437   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3438   test $ac_status = 0; }; then :
3439   for ac_file in conftest.o conftest.obj conftest.*; do
3440   test -f "$ac_file" || continue;
3441   case $ac_file in
3442     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3443     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3444        break;;
3445   esac
3446 done
3447 else
3448   $as_echo "$as_me: failed program was:" >&5
3449 sed 's/^/| /' conftest.$ac_ext >&5
3450
3451 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3452 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3453 as_fn_error $? "cannot compute suffix of object files: cannot compile
3454 See \`config.log' for more details" "$LINENO" 5; }
3455 fi
3456 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3457 fi
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3459 $as_echo "$ac_cv_objext" >&6; }
3460 OBJEXT=$ac_cv_objext
3461 ac_objext=$OBJEXT
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3463 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3464 if ${ac_cv_c_compiler_gnu+:} false; then :
3465   $as_echo_n "(cached) " >&6
3466 else
3467   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3468 /* end confdefs.h.  */
3469
3470 int
3471 main ()
3472 {
3473 #ifndef __GNUC__
3474        choke me
3475 #endif
3476
3477   ;
3478   return 0;
3479 }
3480 _ACEOF
3481 if ac_fn_c_try_compile "$LINENO"; then :
3482   ac_compiler_gnu=yes
3483 else
3484   ac_compiler_gnu=no
3485 fi
3486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3487 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3488
3489 fi
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3491 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3492 if test $ac_compiler_gnu = yes; then
3493   GCC=yes
3494 else
3495   GCC=
3496 fi
3497 ac_test_CFLAGS=${CFLAGS+set}
3498 ac_save_CFLAGS=$CFLAGS
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3500 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3501 if ${ac_cv_prog_cc_g+:} false; then :
3502   $as_echo_n "(cached) " >&6
3503 else
3504   ac_save_c_werror_flag=$ac_c_werror_flag
3505    ac_c_werror_flag=yes
3506    ac_cv_prog_cc_g=no
3507    CFLAGS="-g"
3508    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3509 /* end confdefs.h.  */
3510
3511 int
3512 main ()
3513 {
3514
3515   ;
3516   return 0;
3517 }
3518 _ACEOF
3519 if ac_fn_c_try_compile "$LINENO"; then :
3520   ac_cv_prog_cc_g=yes
3521 else
3522   CFLAGS=""
3523       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3524 /* end confdefs.h.  */
3525
3526 int
3527 main ()
3528 {
3529
3530   ;
3531   return 0;
3532 }
3533 _ACEOF
3534 if ac_fn_c_try_compile "$LINENO"; then :
3535
3536 else
3537   ac_c_werror_flag=$ac_save_c_werror_flag
3538          CFLAGS="-g"
3539          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3540 /* end confdefs.h.  */
3541
3542 int
3543 main ()
3544 {
3545
3546   ;
3547   return 0;
3548 }
3549 _ACEOF
3550 if ac_fn_c_try_compile "$LINENO"; then :
3551   ac_cv_prog_cc_g=yes
3552 fi
3553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3554 fi
3555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3556 fi
3557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3558    ac_c_werror_flag=$ac_save_c_werror_flag
3559 fi
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3561 $as_echo "$ac_cv_prog_cc_g" >&6; }
3562 if test "$ac_test_CFLAGS" = set; then
3563   CFLAGS=$ac_save_CFLAGS
3564 elif test $ac_cv_prog_cc_g = yes; then
3565   if test "$GCC" = yes; then
3566     CFLAGS="-g -O2"
3567   else
3568     CFLAGS="-g"
3569   fi
3570 else
3571   if test "$GCC" = yes; then
3572     CFLAGS="-O2"
3573   else
3574     CFLAGS=
3575   fi
3576 fi
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3578 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3579 if ${ac_cv_prog_cc_c89+:} false; then :
3580   $as_echo_n "(cached) " >&6
3581 else
3582   ac_cv_prog_cc_c89=no
3583 ac_save_CC=$CC
3584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3585 /* end confdefs.h.  */
3586 #include <stdarg.h>
3587 #include <stdio.h>
3588 struct stat;
3589 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3590 struct buf { int x; };
3591 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3592 static char *e (p, i)
3593      char **p;
3594      int i;
3595 {
3596   return p[i];
3597 }
3598 static char *f (char * (*g) (char **, int), char **p, ...)
3599 {
3600   char *s;
3601   va_list v;
3602   va_start (v,p);
3603   s = g (p, va_arg (v,int));
3604   va_end (v);
3605   return s;
3606 }
3607
3608 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3609    function prototypes and stuff, but not '\xHH' hex character constants.
3610    These don't provoke an error unfortunately, instead are silently treated
3611    as 'x'.  The following induces an error, until -std is added to get
3612    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3613    array size at least.  It's necessary to write '\x00'==0 to get something
3614    that's true only with -std.  */
3615 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3616
3617 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3618    inside strings and character constants.  */
3619 #define FOO(x) 'x'
3620 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3621
3622 int test (int i, double x);
3623 struct s1 {int (*f) (int a);};
3624 struct s2 {int (*f) (double a);};
3625 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3626 int argc;
3627 char **argv;
3628 int
3629 main ()
3630 {
3631 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3632   ;
3633   return 0;
3634 }
3635 _ACEOF
3636 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3637         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3638 do
3639   CC="$ac_save_CC $ac_arg"
3640   if ac_fn_c_try_compile "$LINENO"; then :
3641   ac_cv_prog_cc_c89=$ac_arg
3642 fi
3643 rm -f core conftest.err conftest.$ac_objext
3644   test "x$ac_cv_prog_cc_c89" != "xno" && break
3645 done
3646 rm -f conftest.$ac_ext
3647 CC=$ac_save_CC
3648
3649 fi
3650 # AC_CACHE_VAL
3651 case "x$ac_cv_prog_cc_c89" in
3652   x)
3653     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3654 $as_echo "none needed" >&6; } ;;
3655   xno)
3656     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3657 $as_echo "unsupported" >&6; } ;;
3658   *)
3659     CC="$CC $ac_cv_prog_cc_c89"
3660     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3661 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3662 esac
3663 if test "x$ac_cv_prog_cc_c89" != xno; then :
3664
3665 fi
3666
3667 ac_ext=c
3668 ac_cpp='$CPP $CPPFLAGS'
3669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3672
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3674 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3675 if ${ac_cv_path_SED+:} false; then :
3676   $as_echo_n "(cached) " >&6
3677 else
3678             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3679      for ac_i in 1 2 3 4 5 6 7; do
3680        ac_script="$ac_script$as_nl$ac_script"
3681      done
3682      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3683      { ac_script=; unset ac_script;}
3684      if test -z "$SED"; then
3685   ac_path_SED_found=false
3686   # Loop through the user's path and test for each of PROGNAME-LIST
3687   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3688 for as_dir in $PATH
3689 do
3690   IFS=$as_save_IFS
3691   test -z "$as_dir" && as_dir=.
3692     for ac_prog in sed gsed; do
3693     for ac_exec_ext in '' $ac_executable_extensions; do
3694       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3695       as_fn_executable_p "$ac_path_SED" || continue
3696 # Check for GNU ac_path_SED and select it if it is found.
3697   # Check for GNU $ac_path_SED
3698 case `"$ac_path_SED" --version 2>&1` in
3699 *GNU*)
3700   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3701 *)
3702   ac_count=0
3703   $as_echo_n 0123456789 >"conftest.in"
3704   while :
3705   do
3706     cat "conftest.in" "conftest.in" >"conftest.tmp"
3707     mv "conftest.tmp" "conftest.in"
3708     cp "conftest.in" "conftest.nl"
3709     $as_echo '' >> "conftest.nl"
3710     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3711     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3712     as_fn_arith $ac_count + 1 && ac_count=$as_val
3713     if test $ac_count -gt ${ac_path_SED_max-0}; then
3714       # Best one so far, save it but keep looking for a better one
3715       ac_cv_path_SED="$ac_path_SED"
3716       ac_path_SED_max=$ac_count
3717     fi
3718     # 10*(2^10) chars as input seems more than enough
3719     test $ac_count -gt 10 && break
3720   done
3721   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3722 esac
3723
3724       $ac_path_SED_found && break 3
3725     done
3726   done
3727   done
3728 IFS=$as_save_IFS
3729   if test -z "$ac_cv_path_SED"; then
3730     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3731   fi
3732 else
3733   ac_cv_path_SED=$SED
3734 fi
3735
3736 fi
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3738 $as_echo "$ac_cv_path_SED" >&6; }
3739  SED="$ac_cv_path_SED"
3740   rm -f conftest.sed
3741
3742 test -z "$SED" && SED=sed
3743 Xsed="$SED -e 1s/^X//"
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3756 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3757 if ${ac_cv_path_GREP+:} false; then :
3758   $as_echo_n "(cached) " >&6
3759 else
3760   if test -z "$GREP"; then
3761   ac_path_GREP_found=false
3762   # Loop through the user's path and test for each of PROGNAME-LIST
3763   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3764 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3765 do
3766   IFS=$as_save_IFS
3767   test -z "$as_dir" && as_dir=.
3768     for ac_prog in grep ggrep; do
3769     for ac_exec_ext in '' $ac_executable_extensions; do
3770       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3771       as_fn_executable_p "$ac_path_GREP" || continue
3772 # Check for GNU ac_path_GREP and select it if it is found.
3773   # Check for GNU $ac_path_GREP
3774 case `"$ac_path_GREP" --version 2>&1` in
3775 *GNU*)
3776   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3777 *)
3778   ac_count=0
3779   $as_echo_n 0123456789 >"conftest.in"
3780   while :
3781   do
3782     cat "conftest.in" "conftest.in" >"conftest.tmp"
3783     mv "conftest.tmp" "conftest.in"
3784     cp "conftest.in" "conftest.nl"
3785     $as_echo 'GREP' >> "conftest.nl"
3786     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3787     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3788     as_fn_arith $ac_count + 1 && ac_count=$as_val
3789     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3790       # Best one so far, save it but keep looking for a better one
3791       ac_cv_path_GREP="$ac_path_GREP"
3792       ac_path_GREP_max=$ac_count
3793     fi
3794     # 10*(2^10) chars as input seems more than enough
3795     test $ac_count -gt 10 && break
3796   done
3797   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3798 esac
3799
3800       $ac_path_GREP_found && break 3
3801     done
3802   done
3803   done
3804 IFS=$as_save_IFS
3805   if test -z "$ac_cv_path_GREP"; then
3806     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3807   fi
3808 else
3809   ac_cv_path_GREP=$GREP
3810 fi
3811
3812 fi
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3814 $as_echo "$ac_cv_path_GREP" >&6; }
3815  GREP="$ac_cv_path_GREP"
3816
3817
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3819 $as_echo_n "checking for egrep... " >&6; }
3820 if ${ac_cv_path_EGREP+:} false; then :
3821   $as_echo_n "(cached) " >&6
3822 else
3823   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3824    then ac_cv_path_EGREP="$GREP -E"
3825    else
3826      if test -z "$EGREP"; then
3827   ac_path_EGREP_found=false
3828   # Loop through the user's path and test for each of PROGNAME-LIST
3829   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3830 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3831 do
3832   IFS=$as_save_IFS
3833   test -z "$as_dir" && as_dir=.
3834     for ac_prog in egrep; do
3835     for ac_exec_ext in '' $ac_executable_extensions; do
3836       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3837       as_fn_executable_p "$ac_path_EGREP" || continue
3838 # Check for GNU ac_path_EGREP and select it if it is found.
3839   # Check for GNU $ac_path_EGREP
3840 case `"$ac_path_EGREP" --version 2>&1` in
3841 *GNU*)
3842   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3843 *)
3844   ac_count=0
3845   $as_echo_n 0123456789 >"conftest.in"
3846   while :
3847   do
3848     cat "conftest.in" "conftest.in" >"conftest.tmp"
3849     mv "conftest.tmp" "conftest.in"
3850     cp "conftest.in" "conftest.nl"
3851     $as_echo 'EGREP' >> "conftest.nl"
3852     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3853     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3854     as_fn_arith $ac_count + 1 && ac_count=$as_val
3855     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3856       # Best one so far, save it but keep looking for a better one
3857       ac_cv_path_EGREP="$ac_path_EGREP"
3858       ac_path_EGREP_max=$ac_count
3859     fi
3860     # 10*(2^10) chars as input seems more than enough
3861     test $ac_count -gt 10 && break
3862   done
3863   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3864 esac
3865
3866       $ac_path_EGREP_found && break 3
3867     done
3868   done
3869   done
3870 IFS=$as_save_IFS
3871   if test -z "$ac_cv_path_EGREP"; then
3872     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3873   fi
3874 else
3875   ac_cv_path_EGREP=$EGREP
3876 fi
3877
3878    fi
3879 fi
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3881 $as_echo "$ac_cv_path_EGREP" >&6; }
3882  EGREP="$ac_cv_path_EGREP"
3883
3884
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3886 $as_echo_n "checking for fgrep... " >&6; }
3887 if ${ac_cv_path_FGREP+:} false; then :
3888   $as_echo_n "(cached) " >&6
3889 else
3890   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3891    then ac_cv_path_FGREP="$GREP -F"
3892    else
3893      if test -z "$FGREP"; then
3894   ac_path_FGREP_found=false
3895   # Loop through the user's path and test for each of PROGNAME-LIST
3896   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3897 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3898 do
3899   IFS=$as_save_IFS
3900   test -z "$as_dir" && as_dir=.
3901     for ac_prog in fgrep; do
3902     for ac_exec_ext in '' $ac_executable_extensions; do
3903       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3904       as_fn_executable_p "$ac_path_FGREP" || continue
3905 # Check for GNU ac_path_FGREP and select it if it is found.
3906   # Check for GNU $ac_path_FGREP
3907 case `"$ac_path_FGREP" --version 2>&1` in
3908 *GNU*)
3909   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3910 *)
3911   ac_count=0
3912   $as_echo_n 0123456789 >"conftest.in"
3913   while :
3914   do
3915     cat "conftest.in" "conftest.in" >"conftest.tmp"
3916     mv "conftest.tmp" "conftest.in"
3917     cp "conftest.in" "conftest.nl"
3918     $as_echo 'FGREP' >> "conftest.nl"
3919     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3920     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3921     as_fn_arith $ac_count + 1 && ac_count=$as_val
3922     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3923       # Best one so far, save it but keep looking for a better one
3924       ac_cv_path_FGREP="$ac_path_FGREP"
3925       ac_path_FGREP_max=$ac_count
3926     fi
3927     # 10*(2^10) chars as input seems more than enough
3928     test $ac_count -gt 10 && break
3929   done
3930   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3931 esac
3932
3933       $ac_path_FGREP_found && break 3
3934     done
3935   done
3936   done
3937 IFS=$as_save_IFS
3938   if test -z "$ac_cv_path_FGREP"; then
3939     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3940   fi
3941 else
3942   ac_cv_path_FGREP=$FGREP
3943 fi
3944
3945    fi
3946 fi
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3948 $as_echo "$ac_cv_path_FGREP" >&6; }
3949  FGREP="$ac_cv_path_FGREP"
3950
3951
3952 test -z "$GREP" && GREP=grep
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972 # Check whether --with-gnu-ld was given.
3973 if test "${with_gnu_ld+set}" = set; then :
3974   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
3975 else
3976   with_gnu_ld=no
3977 fi
3978
3979 ac_prog=ld
3980 if test yes = "$GCC"; then
3981   # Check if gcc -print-prog-name=ld gives a path.
3982   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3983 $as_echo_n "checking for ld used by $CC... " >&6; }
3984   case $host in
3985   *-*-mingw*)
3986     # gcc leaves a trailing carriage return, which upsets mingw
3987     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3988   *)
3989     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3990   esac
3991   case $ac_prog in
3992     # Accept absolute paths.
3993     [\\/]* | ?:[\\/]*)
3994       re_direlt='/[^/][^/]*/\.\./'
3995       # Canonicalize the pathname of ld
3996       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3997       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3998         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3999       done
4000       test -z "$LD" && LD=$ac_prog
4001       ;;
4002   "")
4003     # If it fails, then pretend we aren't using GCC.
4004     ac_prog=ld
4005     ;;
4006   *)
4007     # If it is relative, then search for the first ld in PATH.
4008     with_gnu_ld=unknown
4009     ;;
4010   esac
4011 elif test yes = "$with_gnu_ld"; then
4012   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4013 $as_echo_n "checking for GNU ld... " >&6; }
4014 else
4015   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4016 $as_echo_n "checking for non-GNU ld... " >&6; }
4017 fi
4018 if ${lt_cv_path_LD+:} false; then :
4019   $as_echo_n "(cached) " >&6
4020 else
4021   if test -z "$LD"; then
4022   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4023   for ac_dir in $PATH; do
4024     IFS=$lt_save_ifs
4025     test -z "$ac_dir" && ac_dir=.
4026     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4027       lt_cv_path_LD=$ac_dir/$ac_prog
4028       # Check to see if the program is GNU ld.  I'd rather use --version,
4029       # but apparently some variants of GNU ld only accept -v.
4030       # Break only if it was the GNU/non-GNU ld that we prefer.
4031       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4032       *GNU* | *'with BFD'*)
4033         test no != "$with_gnu_ld" && break
4034         ;;
4035       *)
4036         test yes != "$with_gnu_ld" && break
4037         ;;
4038       esac
4039     fi
4040   done
4041   IFS=$lt_save_ifs
4042 else
4043   lt_cv_path_LD=$LD # Let the user override the test with a path.
4044 fi
4045 fi
4046
4047 LD=$lt_cv_path_LD
4048 if test -n "$LD"; then
4049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4050 $as_echo "$LD" >&6; }
4051 else
4052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4053 $as_echo "no" >&6; }
4054 fi
4055 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4057 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4058 if ${lt_cv_prog_gnu_ld+:} false; then :
4059   $as_echo_n "(cached) " >&6
4060 else
4061   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4062 case `$LD -v 2>&1 </dev/null` in
4063 *GNU* | *'with BFD'*)
4064   lt_cv_prog_gnu_ld=yes
4065   ;;
4066 *)
4067   lt_cv_prog_gnu_ld=no
4068   ;;
4069 esac
4070 fi
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4072 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4073 with_gnu_ld=$lt_cv_prog_gnu_ld
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4084 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4085 if ${lt_cv_path_NM+:} false; then :
4086   $as_echo_n "(cached) " >&6
4087 else
4088   if test -n "$NM"; then
4089   # Let the user override the test.
4090   lt_cv_path_NM=$NM
4091 else
4092   lt_nm_to_check=${ac_tool_prefix}nm
4093   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4094     lt_nm_to_check="$lt_nm_to_check nm"
4095   fi
4096   for lt_tmp_nm in $lt_nm_to_check; do
4097     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4098     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4099       IFS=$lt_save_ifs
4100       test -z "$ac_dir" && ac_dir=.
4101       tmp_nm=$ac_dir/$lt_tmp_nm
4102       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4103         # Check to see if the nm accepts a BSD-compat flag.
4104         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4105         #   nm: unknown option "B" ignored
4106         # Tru64's nm complains that /dev/null is an invalid object file
4107         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4108         case $build_os in
4109         mingw*) lt_bad_file=conftest.nm/nofile ;;
4110         *) lt_bad_file=/dev/null ;;
4111         esac
4112         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4113         *$lt_bad_file* | *'Invalid file or object type'*)
4114           lt_cv_path_NM="$tmp_nm -B"
4115           break 2
4116           ;;
4117         *)
4118           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4119           */dev/null*)
4120             lt_cv_path_NM="$tmp_nm -p"
4121             break 2
4122             ;;
4123           *)
4124             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4125             continue # so that we can try to find one that supports BSD flags
4126             ;;
4127           esac
4128           ;;
4129         esac
4130       fi
4131     done
4132     IFS=$lt_save_ifs
4133   done
4134   : ${lt_cv_path_NM=no}
4135 fi
4136 fi
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4138 $as_echo "$lt_cv_path_NM" >&6; }
4139 if test no != "$lt_cv_path_NM"; then
4140   NM=$lt_cv_path_NM
4141 else
4142   # Didn't find any BSD compatible name lister, look for dumpbin.
4143   if test -n "$DUMPBIN"; then :
4144     # Let the user override the test.
4145   else
4146     if test -n "$ac_tool_prefix"; then
4147   for ac_prog in dumpbin "link -dump"
4148   do
4149     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4150 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4152 $as_echo_n "checking for $ac_word... " >&6; }
4153 if ${ac_cv_prog_DUMPBIN+:} false; then :
4154   $as_echo_n "(cached) " >&6
4155 else
4156   if test -n "$DUMPBIN"; then
4157   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4158 else
4159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4160 for as_dir in $PATH
4161 do
4162   IFS=$as_save_IFS
4163   test -z "$as_dir" && as_dir=.
4164     for ac_exec_ext in '' $ac_executable_extensions; do
4165   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4166     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4167     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4168     break 2
4169   fi
4170 done
4171   done
4172 IFS=$as_save_IFS
4173
4174 fi
4175 fi
4176 DUMPBIN=$ac_cv_prog_DUMPBIN
4177 if test -n "$DUMPBIN"; then
4178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4179 $as_echo "$DUMPBIN" >&6; }
4180 else
4181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4182 $as_echo "no" >&6; }
4183 fi
4184
4185
4186     test -n "$DUMPBIN" && break
4187   done
4188 fi
4189 if test -z "$DUMPBIN"; then
4190   ac_ct_DUMPBIN=$DUMPBIN
4191   for ac_prog in dumpbin "link -dump"
4192 do
4193   # Extract the first word of "$ac_prog", so it can be a program name with args.
4194 set dummy $ac_prog; ac_word=$2
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4196 $as_echo_n "checking for $ac_word... " >&6; }
4197 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4198   $as_echo_n "(cached) " >&6
4199 else
4200   if test -n "$ac_ct_DUMPBIN"; then
4201   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4202 else
4203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4204 for as_dir in $PATH
4205 do
4206   IFS=$as_save_IFS
4207   test -z "$as_dir" && as_dir=.
4208     for ac_exec_ext in '' $ac_executable_extensions; do
4209   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4210     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4211     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4212     break 2
4213   fi
4214 done
4215   done
4216 IFS=$as_save_IFS
4217
4218 fi
4219 fi
4220 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4221 if test -n "$ac_ct_DUMPBIN"; then
4222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4223 $as_echo "$ac_ct_DUMPBIN" >&6; }
4224 else
4225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4226 $as_echo "no" >&6; }
4227 fi
4228
4229
4230   test -n "$ac_ct_DUMPBIN" && break
4231 done
4232
4233   if test "x$ac_ct_DUMPBIN" = x; then
4234     DUMPBIN=":"
4235   else
4236     case $cross_compiling:$ac_tool_warned in
4237 yes:)
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4239 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4240 ac_tool_warned=yes ;;
4241 esac
4242     DUMPBIN=$ac_ct_DUMPBIN
4243   fi
4244 fi
4245
4246     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4247     *COFF*)
4248       DUMPBIN="$DUMPBIN -symbols -headers"
4249       ;;
4250     *)
4251       DUMPBIN=:
4252       ;;
4253     esac
4254   fi
4255
4256   if test : != "$DUMPBIN"; then
4257     NM=$DUMPBIN
4258   fi
4259 fi
4260 test -z "$NM" && NM=nm
4261
4262
4263
4264
4265
4266
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4268 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4269 if ${lt_cv_nm_interface+:} false; then :
4270   $as_echo_n "(cached) " >&6
4271 else
4272   lt_cv_nm_interface="BSD nm"
4273   echo "int some_variable = 0;" > conftest.$ac_ext
4274   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4275   (eval "$ac_compile" 2>conftest.err)
4276   cat conftest.err >&5
4277   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4278   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4279   cat conftest.err >&5
4280   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4281   cat conftest.out >&5
4282   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4283     lt_cv_nm_interface="MS dumpbin"
4284   fi
4285   rm -f conftest*
4286 fi
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4288 $as_echo "$lt_cv_nm_interface" >&6; }
4289
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4291 $as_echo_n "checking whether ln -s works... " >&6; }
4292 LN_S=$as_ln_s
4293 if test "$LN_S" = "ln -s"; then
4294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4295 $as_echo "yes" >&6; }
4296 else
4297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4298 $as_echo "no, using $LN_S" >&6; }
4299 fi
4300
4301 # find the maximum length of command line arguments
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4303 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4304 if ${lt_cv_sys_max_cmd_len+:} false; then :
4305   $as_echo_n "(cached) " >&6
4306 else
4307     i=0
4308   teststring=ABCD
4309
4310   case $build_os in
4311   msdosdjgpp*)
4312     # On DJGPP, this test can blow up pretty badly due to problems in libc
4313     # (any single argument exceeding 2000 bytes causes a buffer overrun
4314     # during glob expansion).  Even if it were fixed, the result of this
4315     # check would be larger than it should be.
4316     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4317     ;;
4318
4319   gnu*)
4320     # Under GNU Hurd, this test is not required because there is
4321     # no limit to the length of command line arguments.
4322     # Libtool will interpret -1 as no limit whatsoever
4323     lt_cv_sys_max_cmd_len=-1;
4324     ;;
4325
4326   cygwin* | mingw* | cegcc*)
4327     # On Win9x/ME, this test blows up -- it succeeds, but takes
4328     # about 5 minutes as the teststring grows exponentially.
4329     # Worse, since 9x/ME are not pre-emptively multitasking,
4330     # you end up with a "frozen" computer, even though with patience
4331     # the test eventually succeeds (with a max line length of 256k).
4332     # Instead, let's just punt: use the minimum linelength reported by
4333     # all of the supported platforms: 8192 (on NT/2K/XP).
4334     lt_cv_sys_max_cmd_len=8192;
4335     ;;
4336
4337   mint*)
4338     # On MiNT this can take a long time and run out of memory.
4339     lt_cv_sys_max_cmd_len=8192;
4340     ;;
4341
4342   mint*)
4343     # On MiNT this can take a long time and run out of memory.
4344     lt_cv_sys_max_cmd_len=8192;
4345     ;;
4346
4347   amigaos*)
4348     # On AmigaOS with pdksh, this test takes hours, literally.
4349     # So we just punt and use a minimum line length of 8192.
4350     lt_cv_sys_max_cmd_len=8192;
4351     ;;
4352
4353   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4354     # This has been around since 386BSD, at least.  Likely further.
4355     if test -x /sbin/sysctl; then
4356       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4357     elif test -x /usr/sbin/sysctl; then
4358       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4359     else
4360       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4361     fi
4362     # And add a safety zone
4363     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4364     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4365     ;;
4366
4367   interix*)
4368     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4369     lt_cv_sys_max_cmd_len=196608
4370     ;;
4371
4372   os2*)
4373     # The test takes a long time on OS/2.
4374     lt_cv_sys_max_cmd_len=8192
4375     ;;
4376
4377   osf*)
4378     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4379     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4380     # nice to cause kernel panics so lets avoid the loop below.
4381     # First set a reasonable default.
4382     lt_cv_sys_max_cmd_len=16384
4383     #
4384     if test -x /sbin/sysconfig; then
4385       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4386         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4387       esac
4388     fi
4389     ;;
4390   sco3.2v5*)
4391     lt_cv_sys_max_cmd_len=102400
4392     ;;
4393   sysv5* | sco5v6* | sysv4.2uw2*)
4394     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4395     if test -n "$kargmax"; then
4396       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4397     else
4398       lt_cv_sys_max_cmd_len=32768
4399     fi
4400     ;;
4401   *)
4402     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4403     if test -n "$lt_cv_sys_max_cmd_len" && \
4404        test undefined != "$lt_cv_sys_max_cmd_len"; then
4405       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4406       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4407     else
4408       # Make teststring a little bigger before we do anything with it.
4409       # a 1K string should be a reasonable start.
4410       for i in 1 2 3 4 5 6 7 8; do
4411         teststring=$teststring$teststring
4412       done
4413       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4414       # If test is not a shell built-in, we'll probably end up computing a
4415       # maximum length that is only half of the actual maximum length, but
4416       # we can't tell.
4417       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4418                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4419               test 17 != "$i" # 1/2 MB should be enough
4420       do
4421         i=`expr $i + 1`
4422         teststring=$teststring$teststring
4423       done
4424       # Only check the string length outside the loop.
4425       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4426       teststring=
4427       # Add a significant safety factor because C++ compilers can tack on
4428       # massive amounts of additional arguments before passing them to the
4429       # linker.  It appears as though 1/2 is a usable value.
4430       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4431     fi
4432     ;;
4433   esac
4434
4435 fi
4436
4437 if test -n "$lt_cv_sys_max_cmd_len"; then
4438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4439 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4440 else
4441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4442 $as_echo "none" >&6; }
4443 fi
4444 max_cmd_len=$lt_cv_sys_max_cmd_len
4445
4446
4447
4448
4449
4450
4451 : ${CP="cp -f"}
4452 : ${MV="mv -f"}
4453 : ${RM="rm -f"}
4454
4455 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4456   lt_unset=unset
4457 else
4458   lt_unset=false
4459 fi
4460
4461
4462
4463
4464
4465 # test EBCDIC or ASCII
4466 case `echo X|tr X '\101'` in
4467  A) # ASCII based system
4468     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4469   lt_SP2NL='tr \040 \012'
4470   lt_NL2SP='tr \015\012 \040\040'
4471   ;;
4472  *) # EBCDIC based system
4473   lt_SP2NL='tr \100 \n'
4474   lt_NL2SP='tr \r\n \100\100'
4475   ;;
4476 esac
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4487 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4488 if ${lt_cv_to_host_file_cmd+:} false; then :
4489   $as_echo_n "(cached) " >&6
4490 else
4491   case $host in
4492   *-*-mingw* )
4493     case $build in
4494       *-*-mingw* ) # actually msys
4495         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4496         ;;
4497       *-*-cygwin* )
4498         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4499         ;;
4500       * ) # otherwise, assume *nix
4501         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4502         ;;
4503     esac
4504     ;;
4505   *-*-cygwin* )
4506     case $build in
4507       *-*-mingw* ) # actually msys
4508         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4509         ;;
4510       *-*-cygwin* )
4511         lt_cv_to_host_file_cmd=func_convert_file_noop
4512         ;;
4513       * ) # otherwise, assume *nix
4514         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4515         ;;
4516     esac
4517     ;;
4518   * ) # unhandled hosts (and "normal" native builds)
4519     lt_cv_to_host_file_cmd=func_convert_file_noop
4520     ;;
4521 esac
4522
4523 fi
4524
4525 to_host_file_cmd=$lt_cv_to_host_file_cmd
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4527 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4528
4529
4530
4531
4532
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4534 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4535 if ${lt_cv_to_tool_file_cmd+:} false; then :
4536   $as_echo_n "(cached) " >&6
4537 else
4538   #assume ordinary cross tools, or native build.
4539 lt_cv_to_tool_file_cmd=func_convert_file_noop
4540 case $host in
4541   *-*-mingw* )
4542     case $build in
4543       *-*-mingw* ) # actually msys
4544         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4545         ;;
4546     esac
4547     ;;
4548 esac
4549
4550 fi
4551
4552 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4554 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4555
4556
4557
4558
4559
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4561 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4562 if ${lt_cv_ld_reload_flag+:} false; then :
4563   $as_echo_n "(cached) " >&6
4564 else
4565   lt_cv_ld_reload_flag='-r'
4566 fi
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4568 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4569 reload_flag=$lt_cv_ld_reload_flag
4570 case $reload_flag in
4571 "" | " "*) ;;
4572 *) reload_flag=" $reload_flag" ;;
4573 esac
4574 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4575 case $host_os in
4576   cygwin* | mingw* | pw32* | cegcc*)
4577     if test yes != "$GCC"; then
4578       reload_cmds=false
4579     fi
4580     ;;
4581   darwin*)
4582     if test yes = "$GCC"; then
4583       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
4584     else
4585       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4586     fi
4587     ;;
4588 esac
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598 if test -n "$ac_tool_prefix"; then
4599   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4600 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4602 $as_echo_n "checking for $ac_word... " >&6; }
4603 if ${ac_cv_prog_OBJDUMP+:} false; then :
4604   $as_echo_n "(cached) " >&6
4605 else
4606   if test -n "$OBJDUMP"; then
4607   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4608 else
4609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4610 for as_dir in $PATH
4611 do
4612   IFS=$as_save_IFS
4613   test -z "$as_dir" && as_dir=.
4614     for ac_exec_ext in '' $ac_executable_extensions; do
4615   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4616     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4617     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4618     break 2
4619   fi
4620 done
4621   done
4622 IFS=$as_save_IFS
4623
4624 fi
4625 fi
4626 OBJDUMP=$ac_cv_prog_OBJDUMP
4627 if test -n "$OBJDUMP"; then
4628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4629 $as_echo "$OBJDUMP" >&6; }
4630 else
4631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4632 $as_echo "no" >&6; }
4633 fi
4634
4635
4636 fi
4637 if test -z "$ac_cv_prog_OBJDUMP"; then
4638   ac_ct_OBJDUMP=$OBJDUMP
4639   # Extract the first word of "objdump", so it can be a program name with args.
4640 set dummy objdump; ac_word=$2
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4642 $as_echo_n "checking for $ac_word... " >&6; }
4643 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4644   $as_echo_n "(cached) " >&6
4645 else
4646   if test -n "$ac_ct_OBJDUMP"; then
4647   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4648 else
4649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4650 for as_dir in $PATH
4651 do
4652   IFS=$as_save_IFS
4653   test -z "$as_dir" && as_dir=.
4654     for ac_exec_ext in '' $ac_executable_extensions; do
4655   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4656     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4657     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4658     break 2
4659   fi
4660 done
4661   done
4662 IFS=$as_save_IFS
4663
4664 fi
4665 fi
4666 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4667 if test -n "$ac_ct_OBJDUMP"; then
4668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4669 $as_echo "$ac_ct_OBJDUMP" >&6; }
4670 else
4671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4672 $as_echo "no" >&6; }
4673 fi
4674
4675   if test "x$ac_ct_OBJDUMP" = x; then
4676     OBJDUMP="false"
4677   else
4678     case $cross_compiling:$ac_tool_warned in
4679 yes:)
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4681 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4682 ac_tool_warned=yes ;;
4683 esac
4684     OBJDUMP=$ac_ct_OBJDUMP
4685   fi
4686 else
4687   OBJDUMP="$ac_cv_prog_OBJDUMP"
4688 fi
4689
4690 test -z "$OBJDUMP" && OBJDUMP=objdump
4691
4692
4693
4694
4695
4696
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4698 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4699 if ${lt_cv_deplibs_check_method+:} false; then :
4700   $as_echo_n "(cached) " >&6
4701 else
4702   lt_cv_file_magic_cmd='$MAGIC_CMD'
4703 lt_cv_file_magic_test_file=
4704 lt_cv_deplibs_check_method='unknown'
4705 # Need to set the preceding variable on all platforms that support
4706 # interlibrary dependencies.
4707 # 'none' -- dependencies not supported.
4708 # 'unknown' -- same as none, but documents that we really don't know.
4709 # 'pass_all' -- all dependencies passed with no checks.
4710 # 'test_compile' -- check by making test program.
4711 # 'file_magic [[regex]]' -- check by looking for files in library path
4712 # that responds to the $file_magic_cmd with a given extended regex.
4713 # If you have 'file' or equivalent on your system and you're not sure
4714 # whether 'pass_all' will *always* work, you probably want this one.
4715
4716 case $host_os in
4717 aix[4-9]*)
4718   lt_cv_deplibs_check_method=pass_all
4719   ;;
4720
4721 beos*)
4722   lt_cv_deplibs_check_method=pass_all
4723   ;;
4724
4725 bsdi[45]*)
4726   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4727   lt_cv_file_magic_cmd='/usr/bin/file -L'
4728   lt_cv_file_magic_test_file=/shlib/libc.so
4729   ;;
4730
4731 cygwin*)
4732   # func_win32_libid is a shell function defined in ltmain.sh
4733   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4734   lt_cv_file_magic_cmd='func_win32_libid'
4735   ;;
4736
4737 mingw* | pw32*)
4738   # Base MSYS/MinGW do not provide the 'file' command needed by
4739   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4740   # unless we find 'file', for example because we are cross-compiling.
4741   if ( file / ) >/dev/null 2>&1; then
4742     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4743     lt_cv_file_magic_cmd='func_win32_libid'
4744   else
4745     # Keep this pattern in sync with the one in func_win32_libid.
4746     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4747     lt_cv_file_magic_cmd='$OBJDUMP -f'
4748   fi
4749   ;;
4750
4751 cegcc*)
4752   # use the weaker test based on 'objdump'. See mingw*.
4753   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4754   lt_cv_file_magic_cmd='$OBJDUMP -f'
4755   ;;
4756
4757 darwin* | rhapsody*)
4758   lt_cv_deplibs_check_method=pass_all
4759   ;;
4760
4761 freebsd* | dragonfly*)
4762   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4763     case $host_cpu in
4764     i*86 )
4765       # Not sure whether the presence of OpenBSD here was a mistake.
4766       # Let's accept both of them until this is cleared up.
4767       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4768       lt_cv_file_magic_cmd=/usr/bin/file
4769       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4770       ;;
4771     esac
4772   else
4773     lt_cv_deplibs_check_method=pass_all
4774   fi
4775   ;;
4776
4777 haiku*)
4778   lt_cv_deplibs_check_method=pass_all
4779   ;;
4780
4781 hpux10.20* | hpux11*)
4782   lt_cv_file_magic_cmd=/usr/bin/file
4783   case $host_cpu in
4784   ia64*)
4785     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4786     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4787     ;;
4788   hppa*64*)
4789     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]'
4790     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4791     ;;
4792   *)
4793     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4794     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4795     ;;
4796   esac
4797   ;;
4798
4799 interix[3-9]*)
4800   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4801   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4802   ;;
4803
4804 irix5* | irix6* | nonstopux*)
4805   case $LD in
4806   *-32|*"-32 ") libmagic=32-bit;;
4807   *-n32|*"-n32 ") libmagic=N32;;
4808   *-64|*"-64 ") libmagic=64-bit;;
4809   *) libmagic=never-match;;
4810   esac
4811   lt_cv_deplibs_check_method=pass_all
4812   ;;
4813
4814 # This must be glibc/ELF.
4815 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4816   lt_cv_deplibs_check_method=pass_all
4817   ;;
4818
4819 netbsd*)
4820   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4821     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4822   else
4823     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4824   fi
4825   ;;
4826
4827 newos6*)
4828   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4829   lt_cv_file_magic_cmd=/usr/bin/file
4830   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4831   ;;
4832
4833 *nto* | *qnx*)
4834   lt_cv_deplibs_check_method=pass_all
4835   ;;
4836
4837 openbsd* | bitrig*)
4838   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
4839     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4840   else
4841     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4842   fi
4843   ;;
4844
4845 osf3* | osf4* | osf5*)
4846   lt_cv_deplibs_check_method=pass_all
4847   ;;
4848
4849 rdos*)
4850   lt_cv_deplibs_check_method=pass_all
4851   ;;
4852
4853 solaris*)
4854   lt_cv_deplibs_check_method=pass_all
4855   ;;
4856
4857 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4858   lt_cv_deplibs_check_method=pass_all
4859   ;;
4860
4861 sysv4 | sysv4.3*)
4862   case $host_vendor in
4863   motorola)
4864     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]'
4865     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4866     ;;
4867   ncr)
4868     lt_cv_deplibs_check_method=pass_all
4869     ;;
4870   sequent)
4871     lt_cv_file_magic_cmd='/bin/file'
4872     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4873     ;;
4874   sni)
4875     lt_cv_file_magic_cmd='/bin/file'
4876     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4877     lt_cv_file_magic_test_file=/lib/libc.so
4878     ;;
4879   siemens)
4880     lt_cv_deplibs_check_method=pass_all
4881     ;;
4882   pc)
4883     lt_cv_deplibs_check_method=pass_all
4884     ;;
4885   esac
4886   ;;
4887
4888 tpf*)
4889   lt_cv_deplibs_check_method=pass_all
4890   ;;
4891 os2*)
4892   lt_cv_deplibs_check_method=pass_all
4893   ;;
4894 esac
4895
4896 fi
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4898 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4899
4900 file_magic_glob=
4901 want_nocaseglob=no
4902 if test "$build" = "$host"; then
4903   case $host_os in
4904   mingw* | pw32*)
4905     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4906       want_nocaseglob=yes
4907     else
4908       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
4909     fi
4910     ;;
4911   esac
4912 fi
4913
4914 file_magic_cmd=$lt_cv_file_magic_cmd
4915 deplibs_check_method=$lt_cv_deplibs_check_method
4916 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939 if test -n "$ac_tool_prefix"; then
4940   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4941 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4943 $as_echo_n "checking for $ac_word... " >&6; }
4944 if ${ac_cv_prog_DLLTOOL+:} false; then :
4945   $as_echo_n "(cached) " >&6
4946 else
4947   if test -n "$DLLTOOL"; then
4948   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4949 else
4950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4951 for as_dir in $PATH
4952 do
4953   IFS=$as_save_IFS
4954   test -z "$as_dir" && as_dir=.
4955     for ac_exec_ext in '' $ac_executable_extensions; do
4956   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4957     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4958     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4959     break 2
4960   fi
4961 done
4962   done
4963 IFS=$as_save_IFS
4964
4965 fi
4966 fi
4967 DLLTOOL=$ac_cv_prog_DLLTOOL
4968 if test -n "$DLLTOOL"; then
4969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4970 $as_echo "$DLLTOOL" >&6; }
4971 else
4972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4973 $as_echo "no" >&6; }
4974 fi
4975
4976
4977 fi
4978 if test -z "$ac_cv_prog_DLLTOOL"; then
4979   ac_ct_DLLTOOL=$DLLTOOL
4980   # Extract the first word of "dlltool", so it can be a program name with args.
4981 set dummy dlltool; ac_word=$2
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4983 $as_echo_n "checking for $ac_word... " >&6; }
4984 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4985   $as_echo_n "(cached) " >&6
4986 else
4987   if test -n "$ac_ct_DLLTOOL"; then
4988   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4989 else
4990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4991 for as_dir in $PATH
4992 do
4993   IFS=$as_save_IFS
4994   test -z "$as_dir" && as_dir=.
4995     for ac_exec_ext in '' $ac_executable_extensions; do
4996   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4997     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4998     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4999     break 2
5000   fi
5001 done
5002   done
5003 IFS=$as_save_IFS
5004
5005 fi
5006 fi
5007 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5008 if test -n "$ac_ct_DLLTOOL"; then
5009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5010 $as_echo "$ac_ct_DLLTOOL" >&6; }
5011 else
5012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5013 $as_echo "no" >&6; }
5014 fi
5015
5016   if test "x$ac_ct_DLLTOOL" = x; then
5017     DLLTOOL="false"
5018   else
5019     case $cross_compiling:$ac_tool_warned in
5020 yes:)
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5022 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5023 ac_tool_warned=yes ;;
5024 esac
5025     DLLTOOL=$ac_ct_DLLTOOL
5026   fi
5027 else
5028   DLLTOOL="$ac_cv_prog_DLLTOOL"
5029 fi
5030
5031 test -z "$DLLTOOL" && DLLTOOL=dlltool
5032
5033
5034
5035
5036
5037
5038
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5040 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5041 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5042   $as_echo_n "(cached) " >&6
5043 else
5044   lt_cv_sharedlib_from_linklib_cmd='unknown'
5045
5046 case $host_os in
5047 cygwin* | mingw* | pw32* | cegcc*)
5048   # two different shell functions defined in ltmain.sh;
5049   # decide which one to use based on capabilities of $DLLTOOL
5050   case `$DLLTOOL --help 2>&1` in
5051   *--identify-strict*)
5052     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5053     ;;
5054   *)
5055     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5056     ;;
5057   esac
5058   ;;
5059 *)
5060   # fallback: assume linklib IS sharedlib
5061   lt_cv_sharedlib_from_linklib_cmd=$ECHO
5062   ;;
5063 esac
5064
5065 fi
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5067 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5068 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5069 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5070
5071
5072
5073
5074
5075
5076
5077
5078 if test -n "$ac_tool_prefix"; then
5079   for ac_prog in ar
5080   do
5081     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5082 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5084 $as_echo_n "checking for $ac_word... " >&6; }
5085 if ${ac_cv_prog_AR+:} false; then :
5086   $as_echo_n "(cached) " >&6
5087 else
5088   if test -n "$AR"; then
5089   ac_cv_prog_AR="$AR" # Let the user override the test.
5090 else
5091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5092 for as_dir in $PATH
5093 do
5094   IFS=$as_save_IFS
5095   test -z "$as_dir" && as_dir=.
5096     for ac_exec_ext in '' $ac_executable_extensions; do
5097   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5098     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5099     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5100     break 2
5101   fi
5102 done
5103   done
5104 IFS=$as_save_IFS
5105
5106 fi
5107 fi
5108 AR=$ac_cv_prog_AR
5109 if test -n "$AR"; then
5110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5111 $as_echo "$AR" >&6; }
5112 else
5113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5114 $as_echo "no" >&6; }
5115 fi
5116
5117
5118     test -n "$AR" && break
5119   done
5120 fi
5121 if test -z "$AR"; then
5122   ac_ct_AR=$AR
5123   for ac_prog in ar
5124 do
5125   # Extract the first word of "$ac_prog", so it can be a program name with args.
5126 set dummy $ac_prog; ac_word=$2
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5128 $as_echo_n "checking for $ac_word... " >&6; }
5129 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5130   $as_echo_n "(cached) " >&6
5131 else
5132   if test -n "$ac_ct_AR"; then
5133   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5134 else
5135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5136 for as_dir in $PATH
5137 do
5138   IFS=$as_save_IFS
5139   test -z "$as_dir" && as_dir=.
5140     for ac_exec_ext in '' $ac_executable_extensions; do
5141   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5142     ac_cv_prog_ac_ct_AR="$ac_prog"
5143     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5144     break 2
5145   fi
5146 done
5147   done
5148 IFS=$as_save_IFS
5149
5150 fi
5151 fi
5152 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5153 if test -n "$ac_ct_AR"; then
5154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5155 $as_echo "$ac_ct_AR" >&6; }
5156 else
5157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5158 $as_echo "no" >&6; }
5159 fi
5160
5161
5162   test -n "$ac_ct_AR" && break
5163 done
5164
5165   if test "x$ac_ct_AR" = x; then
5166     AR="false"
5167   else
5168     case $cross_compiling:$ac_tool_warned in
5169 yes:)
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5171 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5172 ac_tool_warned=yes ;;
5173 esac
5174     AR=$ac_ct_AR
5175   fi
5176 fi
5177
5178 : ${AR=ar}
5179 : ${AR_FLAGS=cru}
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5192 $as_echo_n "checking for archiver @FILE support... " >&6; }
5193 if ${lt_cv_ar_at_file+:} false; then :
5194   $as_echo_n "(cached) " >&6
5195 else
5196   lt_cv_ar_at_file=no
5197    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5198 /* end confdefs.h.  */
5199
5200 int
5201 main ()
5202 {
5203
5204   ;
5205   return 0;
5206 }
5207 _ACEOF
5208 if ac_fn_c_try_compile "$LINENO"; then :
5209   echo conftest.$ac_objext > conftest.lst
5210       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5211       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5212   (eval $lt_ar_try) 2>&5
5213   ac_status=$?
5214   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5215   test $ac_status = 0; }
5216       if test 0 -eq "$ac_status"; then
5217         # Ensure the archiver fails upon bogus file names.
5218         rm -f conftest.$ac_objext libconftest.a
5219         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5220   (eval $lt_ar_try) 2>&5
5221   ac_status=$?
5222   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5223   test $ac_status = 0; }
5224         if test 0 -ne "$ac_status"; then
5225           lt_cv_ar_at_file=@
5226         fi
5227       fi
5228       rm -f conftest.* libconftest.a
5229
5230 fi
5231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5232
5233 fi
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5235 $as_echo "$lt_cv_ar_at_file" >&6; }
5236
5237 if test no = "$lt_cv_ar_at_file"; then
5238   archiver_list_spec=
5239 else
5240   archiver_list_spec=$lt_cv_ar_at_file
5241 fi
5242
5243
5244
5245
5246
5247
5248
5249 if test -n "$ac_tool_prefix"; then
5250   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5251 set dummy ${ac_tool_prefix}strip; ac_word=$2
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5253 $as_echo_n "checking for $ac_word... " >&6; }
5254 if ${ac_cv_prog_STRIP+:} false; then :
5255   $as_echo_n "(cached) " >&6
5256 else
5257   if test -n "$STRIP"; then
5258   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5259 else
5260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5261 for as_dir in $PATH
5262 do
5263   IFS=$as_save_IFS
5264   test -z "$as_dir" && as_dir=.
5265     for ac_exec_ext in '' $ac_executable_extensions; do
5266   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5267     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5268     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5269     break 2
5270   fi
5271 done
5272   done
5273 IFS=$as_save_IFS
5274
5275 fi
5276 fi
5277 STRIP=$ac_cv_prog_STRIP
5278 if test -n "$STRIP"; then
5279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5280 $as_echo "$STRIP" >&6; }
5281 else
5282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5283 $as_echo "no" >&6; }
5284 fi
5285
5286
5287 fi
5288 if test -z "$ac_cv_prog_STRIP"; then
5289   ac_ct_STRIP=$STRIP
5290   # Extract the first word of "strip", so it can be a program name with args.
5291 set dummy strip; ac_word=$2
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5293 $as_echo_n "checking for $ac_word... " >&6; }
5294 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5295   $as_echo_n "(cached) " >&6
5296 else
5297   if test -n "$ac_ct_STRIP"; then
5298   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5299 else
5300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5301 for as_dir in $PATH
5302 do
5303   IFS=$as_save_IFS
5304   test -z "$as_dir" && as_dir=.
5305     for ac_exec_ext in '' $ac_executable_extensions; do
5306   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5307     ac_cv_prog_ac_ct_STRIP="strip"
5308     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5309     break 2
5310   fi
5311 done
5312   done
5313 IFS=$as_save_IFS
5314
5315 fi
5316 fi
5317 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5318 if test -n "$ac_ct_STRIP"; then
5319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5320 $as_echo "$ac_ct_STRIP" >&6; }
5321 else
5322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5323 $as_echo "no" >&6; }
5324 fi
5325
5326   if test "x$ac_ct_STRIP" = x; then
5327     STRIP=":"
5328   else
5329     case $cross_compiling:$ac_tool_warned in
5330 yes:)
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5332 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5333 ac_tool_warned=yes ;;
5334 esac
5335     STRIP=$ac_ct_STRIP
5336   fi
5337 else
5338   STRIP="$ac_cv_prog_STRIP"
5339 fi
5340
5341 test -z "$STRIP" && STRIP=:
5342
5343
5344
5345
5346
5347
5348 if test -n "$ac_tool_prefix"; then
5349   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5350 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5352 $as_echo_n "checking for $ac_word... " >&6; }
5353 if ${ac_cv_prog_RANLIB+:} false; then :
5354   $as_echo_n "(cached) " >&6
5355 else
5356   if test -n "$RANLIB"; then
5357   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5358 else
5359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5360 for as_dir in $PATH
5361 do
5362   IFS=$as_save_IFS
5363   test -z "$as_dir" && as_dir=.
5364     for ac_exec_ext in '' $ac_executable_extensions; do
5365   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5366     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5367     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5368     break 2
5369   fi
5370 done
5371   done
5372 IFS=$as_save_IFS
5373
5374 fi
5375 fi
5376 RANLIB=$ac_cv_prog_RANLIB
5377 if test -n "$RANLIB"; then
5378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5379 $as_echo "$RANLIB" >&6; }
5380 else
5381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5382 $as_echo "no" >&6; }
5383 fi
5384
5385
5386 fi
5387 if test -z "$ac_cv_prog_RANLIB"; then
5388   ac_ct_RANLIB=$RANLIB
5389   # Extract the first word of "ranlib", so it can be a program name with args.
5390 set dummy ranlib; ac_word=$2
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5392 $as_echo_n "checking for $ac_word... " >&6; }
5393 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5394   $as_echo_n "(cached) " >&6
5395 else
5396   if test -n "$ac_ct_RANLIB"; then
5397   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5398 else
5399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5400 for as_dir in $PATH
5401 do
5402   IFS=$as_save_IFS
5403   test -z "$as_dir" && as_dir=.
5404     for ac_exec_ext in '' $ac_executable_extensions; do
5405   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5406     ac_cv_prog_ac_ct_RANLIB="ranlib"
5407     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5408     break 2
5409   fi
5410 done
5411   done
5412 IFS=$as_save_IFS
5413
5414 fi
5415 fi
5416 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5417 if test -n "$ac_ct_RANLIB"; then
5418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5419 $as_echo "$ac_ct_RANLIB" >&6; }
5420 else
5421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5422 $as_echo "no" >&6; }
5423 fi
5424
5425   if test "x$ac_ct_RANLIB" = x; then
5426     RANLIB=":"
5427   else
5428     case $cross_compiling:$ac_tool_warned in
5429 yes:)
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5431 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5432 ac_tool_warned=yes ;;
5433 esac
5434     RANLIB=$ac_ct_RANLIB
5435   fi
5436 else
5437   RANLIB="$ac_cv_prog_RANLIB"
5438 fi
5439
5440 test -z "$RANLIB" && RANLIB=:
5441
5442
5443
5444
5445
5446
5447 # Determine commands to create old-style static archives.
5448 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5449 old_postinstall_cmds='chmod 644 $oldlib'
5450 old_postuninstall_cmds=
5451
5452 if test -n "$RANLIB"; then
5453   case $host_os in
5454   bitrig* | openbsd*)
5455     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5456     ;;
5457   *)
5458     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5459     ;;
5460   esac
5461   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5462 fi
5463
5464 case $host_os in
5465   darwin*)
5466     lock_old_archive_extraction=yes ;;
5467   *)
5468     lock_old_archive_extraction=no ;;
5469 esac
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491 for ac_prog in gawk mawk nawk awk
5492 do
5493   # Extract the first word of "$ac_prog", so it can be a program name with args.
5494 set dummy $ac_prog; ac_word=$2
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5496 $as_echo_n "checking for $ac_word... " >&6; }
5497 if ${ac_cv_prog_AWK+:} false; then :
5498   $as_echo_n "(cached) " >&6
5499 else
5500   if test -n "$AWK"; then
5501   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5502 else
5503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5504 for as_dir in $PATH
5505 do
5506   IFS=$as_save_IFS
5507   test -z "$as_dir" && as_dir=.
5508     for ac_exec_ext in '' $ac_executable_extensions; do
5509   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5510     ac_cv_prog_AWK="$ac_prog"
5511     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5512     break 2
5513   fi
5514 done
5515   done
5516 IFS=$as_save_IFS
5517
5518 fi
5519 fi
5520 AWK=$ac_cv_prog_AWK
5521 if test -n "$AWK"; then
5522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5523 $as_echo "$AWK" >&6; }
5524 else
5525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5526 $as_echo "no" >&6; }
5527 fi
5528
5529
5530   test -n "$AWK" && break
5531 done
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551 # If no C compiler was specified, use CC.
5552 LTCC=${LTCC-"$CC"}
5553
5554 # If no C compiler flags were specified, use CFLAGS.
5555 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5556
5557 # Allow CC to be a program name with arguments.
5558 compiler=$CC
5559
5560
5561 # Check for command to grab the raw symbol name followed by C symbol from nm.
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5563 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5564 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5565   $as_echo_n "(cached) " >&6
5566 else
5567
5568 # These are sane defaults that work on at least a few old systems.
5569 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5570
5571 # Character class describing NM global symbol codes.
5572 symcode='[BCDEGRST]'
5573
5574 # Regexp to match symbols that can be accessed directly from C.
5575 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5576
5577 # Define system-specific variables.
5578 case $host_os in
5579 aix*)
5580   symcode='[BCDT]'
5581   ;;
5582 cygwin* | mingw* | pw32* | cegcc*)
5583   symcode='[ABCDGISTW]'
5584   ;;
5585 hpux*)
5586   if test ia64 = "$host_cpu"; then
5587     symcode='[ABCDEGRST]'
5588   fi
5589   ;;
5590 irix* | nonstopux*)
5591   symcode='[BCDEGRST]'
5592   ;;
5593 osf*)
5594   symcode='[BCDEGQRST]'
5595   ;;
5596 solaris*)
5597   symcode='[BDRT]'
5598   ;;
5599 sco3.2v5*)
5600   symcode='[DT]'
5601   ;;
5602 sysv4.2uw2*)
5603   symcode='[DT]'
5604   ;;
5605 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5606   symcode='[ABDT]'
5607   ;;
5608 sysv4)
5609   symcode='[DFNSTU]'
5610   ;;
5611 esac
5612
5613 # If we're using GNU nm, then use its standard symbol codes.
5614 case `$NM -V 2>&1` in
5615 *GNU* | *'with BFD'*)
5616   symcode='[ABCDGIRSTW]' ;;
5617 esac
5618
5619 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5620   # Gets list of data symbols to import.
5621   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
5622   # Adjust the below global symbol transforms to fixup imported variables.
5623   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
5624   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
5625   lt_c_name_lib_hook="\
5626   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
5627   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
5628 else
5629   # Disable hooks by default.
5630   lt_cv_sys_global_symbol_to_import=
5631   lt_cdecl_hook=
5632   lt_c_name_hook=
5633   lt_c_name_lib_hook=
5634 fi
5635
5636 # Transform an extracted symbol line into a proper C declaration.
5637 # Some systems (esp. on ia64) link data and code symbols differently,
5638 # so use this general approach.
5639 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
5640 $lt_cdecl_hook\
5641 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
5642 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
5643
5644 # Transform an extracted symbol line into symbol name and symbol address
5645 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
5646 $lt_c_name_hook\
5647 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
5648 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
5649
5650 # Transform an extracted symbol line into symbol name with lib prefix and
5651 # symbol address.
5652 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
5653 $lt_c_name_lib_hook\
5654 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
5655 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
5656 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
5657
5658 # Handle CRLF in mingw tool chain
5659 opt_cr=
5660 case $build_os in
5661 mingw*)
5662   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5663   ;;
5664 esac
5665
5666 # Try without a prefix underscore, then with it.
5667 for ac_symprfx in "" "_"; do
5668
5669   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5670   symxfrm="\\1 $ac_symprfx\\2 \\2"
5671
5672   # Write the raw and C identifiers.
5673   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5674     # Fake it for dumpbin and say T for any non-static function,
5675     # D for any global variable and I for any imported variable.
5676     # Also find C++ and __fastcall symbols from MSVC++,
5677     # which start with @ or ?.
5678     lt_cv_sys_global_symbol_pipe="$AWK '"\
5679 "     {last_section=section; section=\$ 3};"\
5680 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5681 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5682 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
5683 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
5684 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
5685 "     \$ 0!~/External *\|/{next};"\
5686 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5687 "     {if(hide[section]) next};"\
5688 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
5689 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
5690 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
5691 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
5692 "     ' prfx=^$ac_symprfx"
5693   else
5694     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5695   fi
5696   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5697
5698   # Check to see that the pipe works correctly.
5699   pipe_works=no
5700
5701   rm -f conftest*
5702   cat > conftest.$ac_ext <<_LT_EOF
5703 #ifdef __cplusplus
5704 extern "C" {
5705 #endif
5706 char nm_test_var;
5707 void nm_test_func(void);
5708 void nm_test_func(void){}
5709 #ifdef __cplusplus
5710 }
5711 #endif
5712 int main(){nm_test_var='a';nm_test_func();return(0);}
5713 _LT_EOF
5714
5715   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5716   (eval $ac_compile) 2>&5
5717   ac_status=$?
5718   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5719   test $ac_status = 0; }; then
5720     # Now try to grab the symbols.
5721     nlist=conftest.nm
5722     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5723   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5724   ac_status=$?
5725   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5726   test $ac_status = 0; } && test -s "$nlist"; then
5727       # Try sorting and uniquifying the output.
5728       if sort "$nlist" | uniq > "$nlist"T; then
5729         mv -f "$nlist"T "$nlist"
5730       else
5731         rm -f "$nlist"T
5732       fi
5733
5734       # Make sure that we snagged all the symbols we need.
5735       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5736         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5737           cat <<_LT_EOF > conftest.$ac_ext
5738 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
5739 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
5740 /* DATA imports from DLLs on WIN32 can't be const, because runtime
5741    relocations are performed -- see ld's documentation on pseudo-relocs.  */
5742 # define LT_DLSYM_CONST
5743 #elif defined __osf__
5744 /* This system does not cope well with relocations in const data.  */
5745 # define LT_DLSYM_CONST
5746 #else
5747 # define LT_DLSYM_CONST const
5748 #endif
5749
5750 #ifdef __cplusplus
5751 extern "C" {
5752 #endif
5753
5754 _LT_EOF
5755           # Now generate the symbol file.
5756           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5757
5758           cat <<_LT_EOF >> conftest.$ac_ext
5759
5760 /* The mapping between symbol names and symbols.  */
5761 LT_DLSYM_CONST struct {
5762   const char *name;
5763   void       *address;
5764 }
5765 lt__PROGRAM__LTX_preloaded_symbols[] =
5766 {
5767   { "@PROGRAM@", (void *) 0 },
5768 _LT_EOF
5769           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5770           cat <<\_LT_EOF >> conftest.$ac_ext
5771   {0, (void *) 0}
5772 };
5773
5774 /* This works around a problem in FreeBSD linker */
5775 #ifdef FREEBSD_WORKAROUND
5776 static const void *lt_preloaded_setup() {
5777   return lt__PROGRAM__LTX_preloaded_symbols;
5778 }
5779 #endif
5780
5781 #ifdef __cplusplus
5782 }
5783 #endif
5784 _LT_EOF
5785           # Now try linking the two files.
5786           mv conftest.$ac_objext conftstm.$ac_objext
5787           lt_globsym_save_LIBS=$LIBS
5788           lt_globsym_save_CFLAGS=$CFLAGS
5789           LIBS=conftstm.$ac_objext
5790           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5791           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5792   (eval $ac_link) 2>&5
5793   ac_status=$?
5794   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5795   test $ac_status = 0; } && test -s conftest$ac_exeext; then
5796             pipe_works=yes
5797           fi
5798           LIBS=$lt_globsym_save_LIBS
5799           CFLAGS=$lt_globsym_save_CFLAGS
5800         else
5801           echo "cannot find nm_test_func in $nlist" >&5
5802         fi
5803       else
5804         echo "cannot find nm_test_var in $nlist" >&5
5805       fi
5806     else
5807       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5808     fi
5809   else
5810     echo "$progname: failed program was:" >&5
5811     cat conftest.$ac_ext >&5
5812   fi
5813   rm -rf conftest* conftst*
5814
5815   # Do not use the global_symbol_pipe unless it works.
5816   if test yes = "$pipe_works"; then
5817     break
5818   else
5819     lt_cv_sys_global_symbol_pipe=
5820   fi
5821 done
5822
5823 fi
5824
5825 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5826   lt_cv_sys_global_symbol_to_cdecl=
5827 fi
5828 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5830 $as_echo "failed" >&6; }
5831 else
5832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5833 $as_echo "ok" >&6; }
5834 fi
5835
5836 # Response file support.
5837 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5838   nm_file_list_spec='@'
5839 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5840   nm_file_list_spec='@'
5841 fi
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5880 $as_echo_n "checking for sysroot... " >&6; }
5881
5882 # Check whether --with-sysroot was given.
5883 if test "${with_sysroot+set}" = set; then :
5884   withval=$with_sysroot;
5885 else
5886   with_sysroot=no
5887 fi
5888
5889
5890 lt_sysroot=
5891 case $with_sysroot in #(
5892  yes)
5893    if test yes = "$GCC"; then
5894      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5895    fi
5896    ;; #(
5897  /*)
5898    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5899    ;; #(
5900  no|'')
5901    ;; #(
5902  *)
5903    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
5904 $as_echo "$with_sysroot" >&6; }
5905    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5906    ;;
5907 esac
5908
5909  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5910 $as_echo "${lt_sysroot:-no}" >&6; }
5911
5912
5913
5914
5915
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
5917 $as_echo_n "checking for a working dd... " >&6; }
5918 if ${ac_cv_path_lt_DD+:} false; then :
5919   $as_echo_n "(cached) " >&6
5920 else
5921   printf 0123456789abcdef0123456789abcdef >conftest.i
5922 cat conftest.i conftest.i >conftest2.i
5923 : ${lt_DD:=$DD}
5924 if test -z "$lt_DD"; then
5925   ac_path_lt_DD_found=false
5926   # Loop through the user's path and test for each of PROGNAME-LIST
5927   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5928 for as_dir in $PATH
5929 do
5930   IFS=$as_save_IFS
5931   test -z "$as_dir" && as_dir=.
5932     for ac_prog in dd; do
5933     for ac_exec_ext in '' $ac_executable_extensions; do
5934       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
5935       as_fn_executable_p "$ac_path_lt_DD" || continue
5936 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
5937   cmp -s conftest.i conftest.out \
5938   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
5939 fi
5940       $ac_path_lt_DD_found && break 3
5941     done
5942   done
5943   done
5944 IFS=$as_save_IFS
5945   if test -z "$ac_cv_path_lt_DD"; then
5946     :
5947   fi
5948 else
5949   ac_cv_path_lt_DD=$lt_DD
5950 fi
5951
5952 rm -f conftest.i conftest2.i conftest.out
5953 fi
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
5955 $as_echo "$ac_cv_path_lt_DD" >&6; }
5956
5957
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
5959 $as_echo_n "checking how to truncate binary pipes... " >&6; }
5960 if ${lt_cv_truncate_bin+:} false; then :
5961   $as_echo_n "(cached) " >&6
5962 else
5963   printf 0123456789abcdef0123456789abcdef >conftest.i
5964 cat conftest.i conftest.i >conftest2.i
5965 lt_cv_truncate_bin=
5966 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
5967   cmp -s conftest.i conftest.out \
5968   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
5969 fi
5970 rm -f conftest.i conftest2.i conftest.out
5971 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
5972 fi
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
5974 $as_echo "$lt_cv_truncate_bin" >&6; }
5975
5976
5977
5978
5979
5980
5981
5982 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
5983 func_cc_basename ()
5984 {
5985     for cc_temp in $*""; do
5986       case $cc_temp in
5987         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5988         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5989         \-*) ;;
5990         *) break;;
5991       esac
5992     done
5993     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
5994 }
5995
5996 # Check whether --enable-libtool-lock was given.
5997 if test "${enable_libtool_lock+set}" = set; then :
5998   enableval=$enable_libtool_lock;
5999 fi
6000
6001 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6002
6003 # Some flags need to be propagated to the compiler or linker for good
6004 # libtool support.
6005 case $host in
6006 ia64-*-hpux*)
6007   # Find out what ABI is being produced by ac_compile, and set mode
6008   # options accordingly.
6009   echo 'int i;' > conftest.$ac_ext
6010   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6011   (eval $ac_compile) 2>&5
6012   ac_status=$?
6013   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6014   test $ac_status = 0; }; then
6015     case `/usr/bin/file conftest.$ac_objext` in
6016       *ELF-32*)
6017         HPUX_IA64_MODE=32
6018         ;;
6019       *ELF-64*)
6020         HPUX_IA64_MODE=64
6021         ;;
6022     esac
6023   fi
6024   rm -rf conftest*
6025   ;;
6026 *-*-irix6*)
6027   # Find out what ABI is being produced by ac_compile, and set linker
6028   # options accordingly.
6029   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6030   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6031   (eval $ac_compile) 2>&5
6032   ac_status=$?
6033   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6034   test $ac_status = 0; }; then
6035     if test yes = "$lt_cv_prog_gnu_ld"; then
6036       case `/usr/bin/file conftest.$ac_objext` in
6037         *32-bit*)
6038           LD="${LD-ld} -melf32bsmip"
6039           ;;
6040         *N32*)
6041           LD="${LD-ld} -melf32bmipn32"
6042           ;;
6043         *64-bit*)
6044           LD="${LD-ld} -melf64bmip"
6045         ;;
6046       esac
6047     else
6048       case `/usr/bin/file conftest.$ac_objext` in
6049         *32-bit*)
6050           LD="${LD-ld} -32"
6051           ;;
6052         *N32*)
6053           LD="${LD-ld} -n32"
6054           ;;
6055         *64-bit*)
6056           LD="${LD-ld} -64"
6057           ;;
6058       esac
6059     fi
6060   fi
6061   rm -rf conftest*
6062   ;;
6063
6064 mips64*-*linux*)
6065   # Find out what ABI is being produced by ac_compile, and set linker
6066   # options accordingly.
6067   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6068   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6069   (eval $ac_compile) 2>&5
6070   ac_status=$?
6071   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6072   test $ac_status = 0; }; then
6073     emul=elf
6074     case `/usr/bin/file conftest.$ac_objext` in
6075       *32-bit*)
6076         emul="${emul}32"
6077         ;;
6078       *64-bit*)
6079         emul="${emul}64"
6080         ;;
6081     esac
6082     case `/usr/bin/file conftest.$ac_objext` in
6083       *MSB*)
6084         emul="${emul}btsmip"
6085         ;;
6086       *LSB*)
6087         emul="${emul}ltsmip"
6088         ;;
6089     esac
6090     case `/usr/bin/file conftest.$ac_objext` in
6091       *N32*)
6092         emul="${emul}n32"
6093         ;;
6094     esac
6095     LD="${LD-ld} -m $emul"
6096   fi
6097   rm -rf conftest*
6098   ;;
6099
6100 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6101 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6102   # Find out what ABI is being produced by ac_compile, and set linker
6103   # options accordingly.  Note that the listed cases only cover the
6104   # situations where additional linker options are needed (such as when
6105   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6106   # vice versa); the common cases where no linker options are needed do
6107   # not appear in the list.
6108   echo 'int i;' > conftest.$ac_ext
6109   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6110   (eval $ac_compile) 2>&5
6111   ac_status=$?
6112   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6113   test $ac_status = 0; }; then
6114     case `/usr/bin/file conftest.o` in
6115       *32-bit*)
6116         case $host in
6117           x86_64-*kfreebsd*-gnu)
6118             LD="${LD-ld} -m elf_i386_fbsd"
6119             ;;
6120           x86_64-*linux*)
6121             case `/usr/bin/file conftest.o` in
6122               *x86-64*)
6123                 LD="${LD-ld} -m elf32_x86_64"
6124                 ;;
6125               *)
6126                 LD="${LD-ld} -m elf_i386"
6127                 ;;
6128             esac
6129             ;;
6130           powerpc64le-*linux*)
6131             LD="${LD-ld} -m elf32lppclinux"
6132             ;;
6133           powerpc64-*linux*)
6134             LD="${LD-ld} -m elf32ppclinux"
6135             ;;
6136           s390x-*linux*)
6137             LD="${LD-ld} -m elf_s390"
6138             ;;
6139           sparc64-*linux*)
6140             LD="${LD-ld} -m elf32_sparc"
6141             ;;
6142         esac
6143         ;;
6144       *64-bit*)
6145         case $host in
6146           x86_64-*kfreebsd*-gnu)
6147             LD="${LD-ld} -m elf_x86_64_fbsd"
6148             ;;
6149           x86_64-*linux*)
6150             LD="${LD-ld} -m elf_x86_64"
6151             ;;
6152           powerpcle-*linux*|powerpc64le-*linux*)
6153             LD="${LD-ld} -m elf64lppc"
6154             ;;
6155           powerpc-*linux*|powerpc64-*linux*)
6156             LD="${LD-ld} -m elf64ppc"
6157             ;;
6158           s390*-*linux*|s390*-*tpf*)
6159             LD="${LD-ld} -m elf64_s390"
6160             ;;
6161           sparc*-*linux*)
6162             LD="${LD-ld} -m elf64_sparc"
6163             ;;
6164         esac
6165         ;;
6166     esac
6167   fi
6168   rm -rf conftest*
6169   ;;
6170
6171 *-*-sco3.2v5*)
6172   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6173   SAVE_CFLAGS=$CFLAGS
6174   CFLAGS="$CFLAGS -belf"
6175   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6176 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6177 if ${lt_cv_cc_needs_belf+:} false; then :
6178   $as_echo_n "(cached) " >&6
6179 else
6180   ac_ext=c
6181 ac_cpp='$CPP $CPPFLAGS'
6182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6185
6186      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6187 /* end confdefs.h.  */
6188
6189 int
6190 main ()
6191 {
6192
6193   ;
6194   return 0;
6195 }
6196 _ACEOF
6197 if ac_fn_c_try_link "$LINENO"; then :
6198   lt_cv_cc_needs_belf=yes
6199 else
6200   lt_cv_cc_needs_belf=no
6201 fi
6202 rm -f core conftest.err conftest.$ac_objext \
6203     conftest$ac_exeext conftest.$ac_ext
6204      ac_ext=c
6205 ac_cpp='$CPP $CPPFLAGS'
6206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6209
6210 fi
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6212 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6213   if test yes != "$lt_cv_cc_needs_belf"; then
6214     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6215     CFLAGS=$SAVE_CFLAGS
6216   fi
6217   ;;
6218 *-*solaris*)
6219   # Find out what ABI is being produced by ac_compile, and set linker
6220   # options accordingly.
6221   echo 'int i;' > conftest.$ac_ext
6222   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6223   (eval $ac_compile) 2>&5
6224   ac_status=$?
6225   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6226   test $ac_status = 0; }; then
6227     case `/usr/bin/file conftest.o` in
6228     *64-bit*)
6229       case $lt_cv_prog_gnu_ld in
6230       yes*)
6231         case $host in
6232         i?86-*-solaris*|x86_64-*-solaris*)
6233           LD="${LD-ld} -m elf_x86_64"
6234           ;;
6235         sparc*-*-solaris*)
6236           LD="${LD-ld} -m elf64_sparc"
6237           ;;
6238         esac
6239         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6240         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6241           LD=${LD-ld}_sol2
6242         fi
6243         ;;
6244       *)
6245         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6246           LD="${LD-ld} -64"
6247         fi
6248         ;;
6249       esac
6250       ;;
6251     esac
6252   fi
6253   rm -rf conftest*
6254   ;;
6255 esac
6256
6257 need_locks=$enable_libtool_lock
6258
6259 if test -n "$ac_tool_prefix"; then
6260   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6261 set dummy ${ac_tool_prefix}mt; ac_word=$2
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6263 $as_echo_n "checking for $ac_word... " >&6; }
6264 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6265   $as_echo_n "(cached) " >&6
6266 else
6267   if test -n "$MANIFEST_TOOL"; then
6268   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6269 else
6270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6271 for as_dir in $PATH
6272 do
6273   IFS=$as_save_IFS
6274   test -z "$as_dir" && as_dir=.
6275     for ac_exec_ext in '' $ac_executable_extensions; do
6276   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6277     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6278     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6279     break 2
6280   fi
6281 done
6282   done
6283 IFS=$as_save_IFS
6284
6285 fi
6286 fi
6287 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6288 if test -n "$MANIFEST_TOOL"; then
6289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6290 $as_echo "$MANIFEST_TOOL" >&6; }
6291 else
6292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6293 $as_echo "no" >&6; }
6294 fi
6295
6296
6297 fi
6298 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6299   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6300   # Extract the first word of "mt", so it can be a program name with args.
6301 set dummy mt; ac_word=$2
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6303 $as_echo_n "checking for $ac_word... " >&6; }
6304 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6305   $as_echo_n "(cached) " >&6
6306 else
6307   if test -n "$ac_ct_MANIFEST_TOOL"; then
6308   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6309 else
6310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6311 for as_dir in $PATH
6312 do
6313   IFS=$as_save_IFS
6314   test -z "$as_dir" && as_dir=.
6315     for ac_exec_ext in '' $ac_executable_extensions; do
6316   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6317     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6318     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6319     break 2
6320   fi
6321 done
6322   done
6323 IFS=$as_save_IFS
6324
6325 fi
6326 fi
6327 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6328 if test -n "$ac_ct_MANIFEST_TOOL"; then
6329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6330 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6331 else
6332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6333 $as_echo "no" >&6; }
6334 fi
6335
6336   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6337     MANIFEST_TOOL=":"
6338   else
6339     case $cross_compiling:$ac_tool_warned in
6340 yes:)
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6342 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6343 ac_tool_warned=yes ;;
6344 esac
6345     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6346   fi
6347 else
6348   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6349 fi
6350
6351 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6353 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6354 if ${lt_cv_path_mainfest_tool+:} false; then :
6355   $as_echo_n "(cached) " >&6
6356 else
6357   lt_cv_path_mainfest_tool=no
6358   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6359   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6360   cat conftest.err >&5
6361   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6362     lt_cv_path_mainfest_tool=yes
6363   fi
6364   rm -f conftest*
6365 fi
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6367 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6368 if test yes != "$lt_cv_path_mainfest_tool"; then
6369   MANIFEST_TOOL=:
6370 fi
6371
6372
6373
6374
6375
6376
6377   case $host_os in
6378     rhapsody* | darwin*)
6379     if test -n "$ac_tool_prefix"; then
6380   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6381 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6383 $as_echo_n "checking for $ac_word... " >&6; }
6384 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6385   $as_echo_n "(cached) " >&6
6386 else
6387   if test -n "$DSYMUTIL"; then
6388   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6389 else
6390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6391 for as_dir in $PATH
6392 do
6393   IFS=$as_save_IFS
6394   test -z "$as_dir" && as_dir=.
6395     for ac_exec_ext in '' $ac_executable_extensions; do
6396   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6397     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6398     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6399     break 2
6400   fi
6401 done
6402   done
6403 IFS=$as_save_IFS
6404
6405 fi
6406 fi
6407 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6408 if test -n "$DSYMUTIL"; then
6409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6410 $as_echo "$DSYMUTIL" >&6; }
6411 else
6412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6413 $as_echo "no" >&6; }
6414 fi
6415
6416
6417 fi
6418 if test -z "$ac_cv_prog_DSYMUTIL"; then
6419   ac_ct_DSYMUTIL=$DSYMUTIL
6420   # Extract the first word of "dsymutil", so it can be a program name with args.
6421 set dummy dsymutil; ac_word=$2
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6423 $as_echo_n "checking for $ac_word... " >&6; }
6424 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6425   $as_echo_n "(cached) " >&6
6426 else
6427   if test -n "$ac_ct_DSYMUTIL"; then
6428   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6429 else
6430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6431 for as_dir in $PATH
6432 do
6433   IFS=$as_save_IFS
6434   test -z "$as_dir" && as_dir=.
6435     for ac_exec_ext in '' $ac_executable_extensions; do
6436   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6437     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6438     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6439     break 2
6440   fi
6441 done
6442   done
6443 IFS=$as_save_IFS
6444
6445 fi
6446 fi
6447 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6448 if test -n "$ac_ct_DSYMUTIL"; then
6449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6450 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6451 else
6452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6453 $as_echo "no" >&6; }
6454 fi
6455
6456   if test "x$ac_ct_DSYMUTIL" = x; then
6457     DSYMUTIL=":"
6458   else
6459     case $cross_compiling:$ac_tool_warned in
6460 yes:)
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6462 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6463 ac_tool_warned=yes ;;
6464 esac
6465     DSYMUTIL=$ac_ct_DSYMUTIL
6466   fi
6467 else
6468   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6469 fi
6470
6471     if test -n "$ac_tool_prefix"; then
6472   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6473 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6475 $as_echo_n "checking for $ac_word... " >&6; }
6476 if ${ac_cv_prog_NMEDIT+:} false; then :
6477   $as_echo_n "(cached) " >&6
6478 else
6479   if test -n "$NMEDIT"; then
6480   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6481 else
6482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6483 for as_dir in $PATH
6484 do
6485   IFS=$as_save_IFS
6486   test -z "$as_dir" && as_dir=.
6487     for ac_exec_ext in '' $ac_executable_extensions; do
6488   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6489     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6490     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6491     break 2
6492   fi
6493 done
6494   done
6495 IFS=$as_save_IFS
6496
6497 fi
6498 fi
6499 NMEDIT=$ac_cv_prog_NMEDIT
6500 if test -n "$NMEDIT"; then
6501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6502 $as_echo "$NMEDIT" >&6; }
6503 else
6504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6505 $as_echo "no" >&6; }
6506 fi
6507
6508
6509 fi
6510 if test -z "$ac_cv_prog_NMEDIT"; then
6511   ac_ct_NMEDIT=$NMEDIT
6512   # Extract the first word of "nmedit", so it can be a program name with args.
6513 set dummy nmedit; ac_word=$2
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6515 $as_echo_n "checking for $ac_word... " >&6; }
6516 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6517   $as_echo_n "(cached) " >&6
6518 else
6519   if test -n "$ac_ct_NMEDIT"; then
6520   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6521 else
6522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6523 for as_dir in $PATH
6524 do
6525   IFS=$as_save_IFS
6526   test -z "$as_dir" && as_dir=.
6527     for ac_exec_ext in '' $ac_executable_extensions; do
6528   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6529     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6530     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6531     break 2
6532   fi
6533 done
6534   done
6535 IFS=$as_save_IFS
6536
6537 fi
6538 fi
6539 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6540 if test -n "$ac_ct_NMEDIT"; then
6541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6542 $as_echo "$ac_ct_NMEDIT" >&6; }
6543 else
6544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6545 $as_echo "no" >&6; }
6546 fi
6547
6548   if test "x$ac_ct_NMEDIT" = x; then
6549     NMEDIT=":"
6550   else
6551     case $cross_compiling:$ac_tool_warned in
6552 yes:)
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6554 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6555 ac_tool_warned=yes ;;
6556 esac
6557     NMEDIT=$ac_ct_NMEDIT
6558   fi
6559 else
6560   NMEDIT="$ac_cv_prog_NMEDIT"
6561 fi
6562
6563     if test -n "$ac_tool_prefix"; then
6564   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6565 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6567 $as_echo_n "checking for $ac_word... " >&6; }
6568 if ${ac_cv_prog_LIPO+:} false; then :
6569   $as_echo_n "(cached) " >&6
6570 else
6571   if test -n "$LIPO"; then
6572   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6573 else
6574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6575 for as_dir in $PATH
6576 do
6577   IFS=$as_save_IFS
6578   test -z "$as_dir" && as_dir=.
6579     for ac_exec_ext in '' $ac_executable_extensions; do
6580   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6581     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6582     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6583     break 2
6584   fi
6585 done
6586   done
6587 IFS=$as_save_IFS
6588
6589 fi
6590 fi
6591 LIPO=$ac_cv_prog_LIPO
6592 if test -n "$LIPO"; then
6593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6594 $as_echo "$LIPO" >&6; }
6595 else
6596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6597 $as_echo "no" >&6; }
6598 fi
6599
6600
6601 fi
6602 if test -z "$ac_cv_prog_LIPO"; then
6603   ac_ct_LIPO=$LIPO
6604   # Extract the first word of "lipo", so it can be a program name with args.
6605 set dummy lipo; ac_word=$2
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6607 $as_echo_n "checking for $ac_word... " >&6; }
6608 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6609   $as_echo_n "(cached) " >&6
6610 else
6611   if test -n "$ac_ct_LIPO"; then
6612   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6613 else
6614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6615 for as_dir in $PATH
6616 do
6617   IFS=$as_save_IFS
6618   test -z "$as_dir" && as_dir=.
6619     for ac_exec_ext in '' $ac_executable_extensions; do
6620   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6621     ac_cv_prog_ac_ct_LIPO="lipo"
6622     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6623     break 2
6624   fi
6625 done
6626   done
6627 IFS=$as_save_IFS
6628
6629 fi
6630 fi
6631 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6632 if test -n "$ac_ct_LIPO"; then
6633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6634 $as_echo "$ac_ct_LIPO" >&6; }
6635 else
6636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6637 $as_echo "no" >&6; }
6638 fi
6639
6640   if test "x$ac_ct_LIPO" = x; then
6641     LIPO=":"
6642   else
6643     case $cross_compiling:$ac_tool_warned in
6644 yes:)
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6646 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6647 ac_tool_warned=yes ;;
6648 esac
6649     LIPO=$ac_ct_LIPO
6650   fi
6651 else
6652   LIPO="$ac_cv_prog_LIPO"
6653 fi
6654
6655     if test -n "$ac_tool_prefix"; then
6656   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6657 set dummy ${ac_tool_prefix}otool; ac_word=$2
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6659 $as_echo_n "checking for $ac_word... " >&6; }
6660 if ${ac_cv_prog_OTOOL+:} false; then :
6661   $as_echo_n "(cached) " >&6
6662 else
6663   if test -n "$OTOOL"; then
6664   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6665 else
6666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6667 for as_dir in $PATH
6668 do
6669   IFS=$as_save_IFS
6670   test -z "$as_dir" && as_dir=.
6671     for ac_exec_ext in '' $ac_executable_extensions; do
6672   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6673     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6674     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6675     break 2
6676   fi
6677 done
6678   done
6679 IFS=$as_save_IFS
6680
6681 fi
6682 fi
6683 OTOOL=$ac_cv_prog_OTOOL
6684 if test -n "$OTOOL"; then
6685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6686 $as_echo "$OTOOL" >&6; }
6687 else
6688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6689 $as_echo "no" >&6; }
6690 fi
6691
6692
6693 fi
6694 if test -z "$ac_cv_prog_OTOOL"; then
6695   ac_ct_OTOOL=$OTOOL
6696   # Extract the first word of "otool", so it can be a program name with args.
6697 set dummy otool; ac_word=$2
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6699 $as_echo_n "checking for $ac_word... " >&6; }
6700 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6701   $as_echo_n "(cached) " >&6
6702 else
6703   if test -n "$ac_ct_OTOOL"; then
6704   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6705 else
6706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6707 for as_dir in $PATH
6708 do
6709   IFS=$as_save_IFS
6710   test -z "$as_dir" && as_dir=.
6711     for ac_exec_ext in '' $ac_executable_extensions; do
6712   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6713     ac_cv_prog_ac_ct_OTOOL="otool"
6714     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6715     break 2
6716   fi
6717 done
6718   done
6719 IFS=$as_save_IFS
6720
6721 fi
6722 fi
6723 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6724 if test -n "$ac_ct_OTOOL"; then
6725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6726 $as_echo "$ac_ct_OTOOL" >&6; }
6727 else
6728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6729 $as_echo "no" >&6; }
6730 fi
6731
6732   if test "x$ac_ct_OTOOL" = x; then
6733     OTOOL=":"
6734   else
6735     case $cross_compiling:$ac_tool_warned in
6736 yes:)
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6738 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6739 ac_tool_warned=yes ;;
6740 esac
6741     OTOOL=$ac_ct_OTOOL
6742   fi
6743 else
6744   OTOOL="$ac_cv_prog_OTOOL"
6745 fi
6746
6747     if test -n "$ac_tool_prefix"; then
6748   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6749 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6751 $as_echo_n "checking for $ac_word... " >&6; }
6752 if ${ac_cv_prog_OTOOL64+:} false; then :
6753   $as_echo_n "(cached) " >&6
6754 else
6755   if test -n "$OTOOL64"; then
6756   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6757 else
6758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6759 for as_dir in $PATH
6760 do
6761   IFS=$as_save_IFS
6762   test -z "$as_dir" && as_dir=.
6763     for ac_exec_ext in '' $ac_executable_extensions; do
6764   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6765     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6766     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6767     break 2
6768   fi
6769 done
6770   done
6771 IFS=$as_save_IFS
6772
6773 fi
6774 fi
6775 OTOOL64=$ac_cv_prog_OTOOL64
6776 if test -n "$OTOOL64"; then
6777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6778 $as_echo "$OTOOL64" >&6; }
6779 else
6780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6781 $as_echo "no" >&6; }
6782 fi
6783
6784
6785 fi
6786 if test -z "$ac_cv_prog_OTOOL64"; then
6787   ac_ct_OTOOL64=$OTOOL64
6788   # Extract the first word of "otool64", so it can be a program name with args.
6789 set dummy otool64; ac_word=$2
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6791 $as_echo_n "checking for $ac_word... " >&6; }
6792 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6793   $as_echo_n "(cached) " >&6
6794 else
6795   if test -n "$ac_ct_OTOOL64"; then
6796   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6797 else
6798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6799 for as_dir in $PATH
6800 do
6801   IFS=$as_save_IFS
6802   test -z "$as_dir" && as_dir=.
6803     for ac_exec_ext in '' $ac_executable_extensions; do
6804   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6805     ac_cv_prog_ac_ct_OTOOL64="otool64"
6806     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6807     break 2
6808   fi
6809 done
6810   done
6811 IFS=$as_save_IFS
6812
6813 fi
6814 fi
6815 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6816 if test -n "$ac_ct_OTOOL64"; then
6817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6818 $as_echo "$ac_ct_OTOOL64" >&6; }
6819 else
6820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6821 $as_echo "no" >&6; }
6822 fi
6823
6824   if test "x$ac_ct_OTOOL64" = x; then
6825     OTOOL64=":"
6826   else
6827     case $cross_compiling:$ac_tool_warned in
6828 yes:)
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6830 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6831 ac_tool_warned=yes ;;
6832 esac
6833     OTOOL64=$ac_ct_OTOOL64
6834   fi
6835 else
6836   OTOOL64="$ac_cv_prog_OTOOL64"
6837 fi
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6866 $as_echo_n "checking for -single_module linker flag... " >&6; }
6867 if ${lt_cv_apple_cc_single_mod+:} false; then :
6868   $as_echo_n "(cached) " >&6
6869 else
6870   lt_cv_apple_cc_single_mod=no
6871       if test -z "$LT_MULTI_MODULE"; then
6872         # By default we will add the -single_module flag. You can override
6873         # by either setting the environment variable LT_MULTI_MODULE
6874         # non-empty at configure time, or by adding -multi_module to the
6875         # link flags.
6876         rm -rf libconftest.dylib*
6877         echo "int foo(void){return 1;}" > conftest.c
6878         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6879 -dynamiclib -Wl,-single_module conftest.c" >&5
6880         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6881           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6882         _lt_result=$?
6883         # If there is a non-empty error log, and "single_module"
6884         # appears in it, assume the flag caused a linker warning
6885         if test -s conftest.err && $GREP single_module conftest.err; then
6886           cat conftest.err >&5
6887         # Otherwise, if the output was created with a 0 exit code from
6888         # the compiler, it worked.
6889         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
6890           lt_cv_apple_cc_single_mod=yes
6891         else
6892           cat conftest.err >&5
6893         fi
6894         rm -rf libconftest.dylib*
6895         rm -f conftest.*
6896       fi
6897 fi
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6899 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6900
6901     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6902 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6903 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6904   $as_echo_n "(cached) " >&6
6905 else
6906   lt_cv_ld_exported_symbols_list=no
6907       save_LDFLAGS=$LDFLAGS
6908       echo "_main" > conftest.sym
6909       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6910       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6911 /* end confdefs.h.  */
6912
6913 int
6914 main ()
6915 {
6916
6917   ;
6918   return 0;
6919 }
6920 _ACEOF
6921 if ac_fn_c_try_link "$LINENO"; then :
6922   lt_cv_ld_exported_symbols_list=yes
6923 else
6924   lt_cv_ld_exported_symbols_list=no
6925 fi
6926 rm -f core conftest.err conftest.$ac_objext \
6927     conftest$ac_exeext conftest.$ac_ext
6928         LDFLAGS=$save_LDFLAGS
6929
6930 fi
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6932 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6933
6934     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6935 $as_echo_n "checking for -force_load linker flag... " >&6; }
6936 if ${lt_cv_ld_force_load+:} false; then :
6937   $as_echo_n "(cached) " >&6
6938 else
6939   lt_cv_ld_force_load=no
6940       cat > conftest.c << _LT_EOF
6941 int forced_loaded() { return 2;}
6942 _LT_EOF
6943       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6944       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6945       echo "$AR cru libconftest.a conftest.o" >&5
6946       $AR cru libconftest.a conftest.o 2>&5
6947       echo "$RANLIB libconftest.a" >&5
6948       $RANLIB libconftest.a 2>&5
6949       cat > conftest.c << _LT_EOF
6950 int main() { return 0;}
6951 _LT_EOF
6952       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6953       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6954       _lt_result=$?
6955       if test -s conftest.err && $GREP force_load conftest.err; then
6956         cat conftest.err >&5
6957       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
6958         lt_cv_ld_force_load=yes
6959       else
6960         cat conftest.err >&5
6961       fi
6962         rm -f conftest.err libconftest.a conftest conftest.c
6963         rm -rf conftest.dSYM
6964
6965 fi
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6967 $as_echo "$lt_cv_ld_force_load" >&6; }
6968     case $host_os in
6969     rhapsody* | darwin1.[012])
6970       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
6971     darwin1.*)
6972       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
6973     darwin*) # darwin 5.x on
6974       # if running on 10.5 or later, the deployment target defaults
6975       # to the OS version, if on x86, and 10.4, the deployment
6976       # target defaults to 10.4. Don't you love it?
6977       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6978         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6979           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
6980         10.[012][,.]*)
6981           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
6982         10.*)
6983           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
6984       esac
6985     ;;
6986   esac
6987     if test yes = "$lt_cv_apple_cc_single_mod"; then
6988       _lt_dar_single_mod='$single_module'
6989     fi
6990     if test yes = "$lt_cv_ld_exported_symbols_list"; then
6991       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
6992     else
6993       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
6994     fi
6995     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
6996       _lt_dsymutil='~$DSYMUTIL $lib || :'
6997     else
6998       _lt_dsymutil=
6999     fi
7000     ;;
7001   esac
7002
7003 # func_munge_path_list VARIABLE PATH
7004 # -----------------------------------
7005 # VARIABLE is name of variable containing _space_ separated list of
7006 # directories to be munged by the contents of PATH, which is string
7007 # having a format:
7008 # "DIR[:DIR]:"
7009 #       string "DIR[ DIR]" will be prepended to VARIABLE
7010 # ":DIR[:DIR]"
7011 #       string "DIR[ DIR]" will be appended to VARIABLE
7012 # "DIRP[:DIRP]::[DIRA:]DIRA"
7013 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7014 #       "DIRA[ DIRA]" will be appended to VARIABLE
7015 # "DIR[:DIR]"
7016 #       VARIABLE will be replaced by "DIR[ DIR]"
7017 func_munge_path_list ()
7018 {
7019     case x$2 in
7020     x)
7021         ;;
7022     *:)
7023         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7024         ;;
7025     x:*)
7026         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7027         ;;
7028     *::*)
7029         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7030         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7031         ;;
7032     *)
7033         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7034         ;;
7035     esac
7036 }
7037
7038 ac_ext=c
7039 ac_cpp='$CPP $CPPFLAGS'
7040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7044 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7045 # On Suns, sometimes $CPP names a directory.
7046 if test -n "$CPP" && test -d "$CPP"; then
7047   CPP=
7048 fi
7049 if test -z "$CPP"; then
7050   if ${ac_cv_prog_CPP+:} false; then :
7051   $as_echo_n "(cached) " >&6
7052 else
7053       # Double quotes because CPP needs to be expanded
7054     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7055     do
7056       ac_preproc_ok=false
7057 for ac_c_preproc_warn_flag in '' yes
7058 do
7059   # Use a header file that comes with gcc, so configuring glibc
7060   # with a fresh cross-compiler works.
7061   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7062   # <limits.h> exists even on freestanding compilers.
7063   # On the NeXT, cc -E runs the code through the compiler's parser,
7064   # not just through cpp. "Syntax error" is here to catch this case.
7065   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7066 /* end confdefs.h.  */
7067 #ifdef __STDC__
7068 # include <limits.h>
7069 #else
7070 # include <assert.h>
7071 #endif
7072                      Syntax error
7073 _ACEOF
7074 if ac_fn_c_try_cpp "$LINENO"; then :
7075
7076 else
7077   # Broken: fails on valid input.
7078 continue
7079 fi
7080 rm -f conftest.err conftest.i conftest.$ac_ext
7081
7082   # OK, works on sane cases.  Now check whether nonexistent headers
7083   # can be detected and how.
7084   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7085 /* end confdefs.h.  */
7086 #include <ac_nonexistent.h>
7087 _ACEOF
7088 if ac_fn_c_try_cpp "$LINENO"; then :
7089   # Broken: success on invalid input.
7090 continue
7091 else
7092   # Passes both tests.
7093 ac_preproc_ok=:
7094 break
7095 fi
7096 rm -f conftest.err conftest.i conftest.$ac_ext
7097
7098 done
7099 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7100 rm -f conftest.i conftest.err conftest.$ac_ext
7101 if $ac_preproc_ok; then :
7102   break
7103 fi
7104
7105     done
7106     ac_cv_prog_CPP=$CPP
7107
7108 fi
7109   CPP=$ac_cv_prog_CPP
7110 else
7111   ac_cv_prog_CPP=$CPP
7112 fi
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7114 $as_echo "$CPP" >&6; }
7115 ac_preproc_ok=false
7116 for ac_c_preproc_warn_flag in '' yes
7117 do
7118   # Use a header file that comes with gcc, so configuring glibc
7119   # with a fresh cross-compiler works.
7120   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7121   # <limits.h> exists even on freestanding compilers.
7122   # On the NeXT, cc -E runs the code through the compiler's parser,
7123   # not just through cpp. "Syntax error" is here to catch this case.
7124   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7125 /* end confdefs.h.  */
7126 #ifdef __STDC__
7127 # include <limits.h>
7128 #else
7129 # include <assert.h>
7130 #endif
7131                      Syntax error
7132 _ACEOF
7133 if ac_fn_c_try_cpp "$LINENO"; then :
7134
7135 else
7136   # Broken: fails on valid input.
7137 continue
7138 fi
7139 rm -f conftest.err conftest.i conftest.$ac_ext
7140
7141   # OK, works on sane cases.  Now check whether nonexistent headers
7142   # can be detected and how.
7143   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7144 /* end confdefs.h.  */
7145 #include <ac_nonexistent.h>
7146 _ACEOF
7147 if ac_fn_c_try_cpp "$LINENO"; then :
7148   # Broken: success on invalid input.
7149 continue
7150 else
7151   # Passes both tests.
7152 ac_preproc_ok=:
7153 break
7154 fi
7155 rm -f conftest.err conftest.i conftest.$ac_ext
7156
7157 done
7158 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7159 rm -f conftest.i conftest.err conftest.$ac_ext
7160 if $ac_preproc_ok; then :
7161
7162 else
7163   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7164 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7165 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7166 See \`config.log' for more details" "$LINENO" 5; }
7167 fi
7168
7169 ac_ext=c
7170 ac_cpp='$CPP $CPPFLAGS'
7171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7174
7175
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7177 $as_echo_n "checking for ANSI C header files... " >&6; }
7178 if ${ac_cv_header_stdc+:} false; then :
7179   $as_echo_n "(cached) " >&6
7180 else
7181   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7182 /* end confdefs.h.  */
7183 #include <stdlib.h>
7184 #include <stdarg.h>
7185 #include <string.h>
7186 #include <float.h>
7187
7188 int
7189 main ()
7190 {
7191
7192   ;
7193   return 0;
7194 }
7195 _ACEOF
7196 if ac_fn_c_try_compile "$LINENO"; then :
7197   ac_cv_header_stdc=yes
7198 else
7199   ac_cv_header_stdc=no
7200 fi
7201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7202
7203 if test $ac_cv_header_stdc = yes; then
7204   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7205   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7206 /* end confdefs.h.  */
7207 #include <string.h>
7208
7209 _ACEOF
7210 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7211   $EGREP "memchr" >/dev/null 2>&1; then :
7212
7213 else
7214   ac_cv_header_stdc=no
7215 fi
7216 rm -f conftest*
7217
7218 fi
7219
7220 if test $ac_cv_header_stdc = yes; then
7221   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7222   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7223 /* end confdefs.h.  */
7224 #include <stdlib.h>
7225
7226 _ACEOF
7227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7228   $EGREP "free" >/dev/null 2>&1; then :
7229
7230 else
7231   ac_cv_header_stdc=no
7232 fi
7233 rm -f conftest*
7234
7235 fi
7236
7237 if test $ac_cv_header_stdc = yes; then
7238   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7239   if test "$cross_compiling" = yes; then :
7240   :
7241 else
7242   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7243 /* end confdefs.h.  */
7244 #include <ctype.h>
7245 #include <stdlib.h>
7246 #if ((' ' & 0x0FF) == 0x020)
7247 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7248 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7249 #else
7250 # define ISLOWER(c) \
7251                    (('a' <= (c) && (c) <= 'i') \
7252                      || ('j' <= (c) && (c) <= 'r') \
7253                      || ('s' <= (c) && (c) <= 'z'))
7254 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7255 #endif
7256
7257 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7258 int
7259 main ()
7260 {
7261   int i;
7262   for (i = 0; i < 256; i++)
7263     if (XOR (islower (i), ISLOWER (i))
7264         || toupper (i) != TOUPPER (i))
7265       return 2;
7266   return 0;
7267 }
7268 _ACEOF
7269 if ac_fn_c_try_run "$LINENO"; then :
7270
7271 else
7272   ac_cv_header_stdc=no
7273 fi
7274 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7275   conftest.$ac_objext conftest.beam conftest.$ac_ext
7276 fi
7277
7278 fi
7279 fi
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7281 $as_echo "$ac_cv_header_stdc" >&6; }
7282 if test $ac_cv_header_stdc = yes; then
7283
7284 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7285
7286 fi
7287
7288 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7289 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7290                   inttypes.h stdint.h unistd.h
7291 do :
7292   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7293 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7294 "
7295 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7296   cat >>confdefs.h <<_ACEOF
7297 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7298 _ACEOF
7299
7300 fi
7301
7302 done
7303
7304
7305 for ac_header in dlfcn.h
7306 do :
7307   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7308 "
7309 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7310   cat >>confdefs.h <<_ACEOF
7311 #define HAVE_DLFCN_H 1
7312 _ACEOF
7313
7314 fi
7315
7316 done
7317
7318
7319
7320
7321
7322 # Set options
7323
7324
7325
7326         enable_dlopen=no
7327
7328
7329
7330             # Check whether --enable-shared was given.
7331 if test "${enable_shared+set}" = set; then :
7332   enableval=$enable_shared; p=${PACKAGE-default}
7333     case $enableval in
7334     yes) enable_shared=yes ;;
7335     no) enable_shared=no ;;
7336     *)
7337       enable_shared=no
7338       # Look at the argument we got.  We use all the common list separators.
7339       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7340       for pkg in $enableval; do
7341         IFS=$lt_save_ifs
7342         if test "X$pkg" = "X$p"; then
7343           enable_shared=yes
7344         fi
7345       done
7346       IFS=$lt_save_ifs
7347       ;;
7348     esac
7349 else
7350   enable_shared=yes
7351 fi
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361   # Check whether --enable-static was given.
7362 if test "${enable_static+set}" = set; then :
7363   enableval=$enable_static; p=${PACKAGE-default}
7364     case $enableval in
7365     yes) enable_static=yes ;;
7366     no) enable_static=no ;;
7367     *)
7368      enable_static=no
7369       # Look at the argument we got.  We use all the common list separators.
7370       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7371       for pkg in $enableval; do
7372         IFS=$lt_save_ifs
7373         if test "X$pkg" = "X$p"; then
7374           enable_static=yes
7375         fi
7376       done
7377       IFS=$lt_save_ifs
7378       ;;
7379     esac
7380 else
7381   enable_static=yes
7382 fi
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393 # Check whether --with-pic was given.
7394 if test "${with_pic+set}" = set; then :
7395   withval=$with_pic; lt_p=${PACKAGE-default}
7396     case $withval in
7397     yes|no) pic_mode=$withval ;;
7398     *)
7399       pic_mode=default
7400       # Look at the argument we got.  We use all the common list separators.
7401       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7402       for lt_pkg in $withval; do
7403         IFS=$lt_save_ifs
7404         if test "X$lt_pkg" = "X$lt_p"; then
7405           pic_mode=yes
7406         fi
7407       done
7408       IFS=$lt_save_ifs
7409       ;;
7410     esac
7411 else
7412   pic_mode=default
7413 fi
7414
7415
7416
7417
7418
7419
7420
7421
7422   # Check whether --enable-fast-install was given.
7423 if test "${enable_fast_install+set}" = set; then :
7424   enableval=$enable_fast_install; p=${PACKAGE-default}
7425     case $enableval in
7426     yes) enable_fast_install=yes ;;
7427     no) enable_fast_install=no ;;
7428     *)
7429       enable_fast_install=no
7430       # Look at the argument we got.  We use all the common list separators.
7431       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7432       for pkg in $enableval; do
7433         IFS=$lt_save_ifs
7434         if test "X$pkg" = "X$p"; then
7435           enable_fast_install=yes
7436         fi
7437       done
7438       IFS=$lt_save_ifs
7439       ;;
7440     esac
7441 else
7442   enable_fast_install=yes
7443 fi
7444
7445
7446
7447
7448
7449
7450
7451
7452   shared_archive_member_spec=
7453 case $host,$enable_shared in
7454 power*-*-aix[5-9]*,yes)
7455   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7456 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7457
7458 # Check whether --with-aix-soname was given.
7459 if test "${with_aix_soname+set}" = set; then :
7460   withval=$with_aix_soname; case $withval in
7461     aix|svr4|both)
7462       ;;
7463     *)
7464       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7465       ;;
7466     esac
7467     lt_cv_with_aix_soname=$with_aix_soname
7468 else
7469   if ${lt_cv_with_aix_soname+:} false; then :
7470   $as_echo_n "(cached) " >&6
7471 else
7472   lt_cv_with_aix_soname=aix
7473 fi
7474
7475     with_aix_soname=$lt_cv_with_aix_soname
7476 fi
7477
7478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7479 $as_echo "$with_aix_soname" >&6; }
7480   if test aix != "$with_aix_soname"; then
7481     # For the AIX way of multilib, we name the shared archive member
7482     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7483     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7484     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7485     # the AIX toolchain works better with OBJECT_MODE set (default 32).
7486     if test 64 = "${OBJECT_MODE-32}"; then
7487       shared_archive_member_spec=shr_64
7488     else
7489       shared_archive_member_spec=shr
7490     fi
7491   fi
7492   ;;
7493 *)
7494   with_aix_soname=aix
7495   ;;
7496 esac
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507 # This can be used to rebuild libtool when needed
7508 LIBTOOL_DEPS=$ltmain
7509
7510 # Always use our own libtool.
7511 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542 test -z "$LN_S" && LN_S="ln -s"
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557 if test -n "${ZSH_VERSION+set}"; then
7558    setopt NO_GLOB_SUBST
7559 fi
7560
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7562 $as_echo_n "checking for objdir... " >&6; }
7563 if ${lt_cv_objdir+:} false; then :
7564   $as_echo_n "(cached) " >&6
7565 else
7566   rm -f .libs 2>/dev/null
7567 mkdir .libs 2>/dev/null
7568 if test -d .libs; then
7569   lt_cv_objdir=.libs
7570 else
7571   # MS-DOS does not allow filenames that begin with a dot.
7572   lt_cv_objdir=_libs
7573 fi
7574 rmdir .libs 2>/dev/null
7575 fi
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7577 $as_echo "$lt_cv_objdir" >&6; }
7578 objdir=$lt_cv_objdir
7579
7580
7581
7582
7583
7584 cat >>confdefs.h <<_ACEOF
7585 #define LT_OBJDIR "$lt_cv_objdir/"
7586 _ACEOF
7587
7588
7589
7590
7591 case $host_os in
7592 aix3*)
7593   # AIX sometimes has problems with the GCC collect2 program.  For some
7594   # reason, if we set the COLLECT_NAMES environment variable, the problems
7595   # vanish in a puff of smoke.
7596   if test set != "${COLLECT_NAMES+set}"; then
7597     COLLECT_NAMES=
7598     export COLLECT_NAMES
7599   fi
7600   ;;
7601 esac
7602
7603 # Global variables:
7604 ofile=libtool
7605 can_build_shared=yes
7606
7607 # All known linkers require a '.a' archive for static linking (except MSVC,
7608 # which needs '.lib').
7609 libext=a
7610
7611 with_gnu_ld=$lt_cv_prog_gnu_ld
7612
7613 old_CC=$CC
7614 old_CFLAGS=$CFLAGS
7615
7616 # Set sane defaults for various variables
7617 test -z "$CC" && CC=cc
7618 test -z "$LTCC" && LTCC=$CC
7619 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7620 test -z "$LD" && LD=ld
7621 test -z "$ac_objext" && ac_objext=o
7622
7623 func_cc_basename $compiler
7624 cc_basename=$func_cc_basename_result
7625
7626
7627 # Only perform the check for file, if the check method requires it
7628 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7629 case $deplibs_check_method in
7630 file_magic*)
7631   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7632     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7633 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7634 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7635   $as_echo_n "(cached) " >&6
7636 else
7637   case $MAGIC_CMD in
7638 [\\/*] |  ?:[\\/]*)
7639   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7640   ;;
7641 *)
7642   lt_save_MAGIC_CMD=$MAGIC_CMD
7643   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7644   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7645   for ac_dir in $ac_dummy; do
7646     IFS=$lt_save_ifs
7647     test -z "$ac_dir" && ac_dir=.
7648     if test -f "$ac_dir/${ac_tool_prefix}file"; then
7649       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
7650       if test -n "$file_magic_test_file"; then
7651         case $deplibs_check_method in
7652         "file_magic "*)
7653           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7654           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7655           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7656             $EGREP "$file_magic_regex" > /dev/null; then
7657             :
7658           else
7659             cat <<_LT_EOF 1>&2
7660
7661 *** Warning: the command libtool uses to detect shared libraries,
7662 *** $file_magic_cmd, produces output that libtool cannot recognize.
7663 *** The result is that libtool may fail to recognize shared libraries
7664 *** as such.  This will affect the creation of libtool libraries that
7665 *** depend on shared libraries, but programs linked with such libtool
7666 *** libraries will work regardless of this problem.  Nevertheless, you
7667 *** may want to report the problem to your system manager and/or to
7668 *** bug-libtool@gnu.org
7669
7670 _LT_EOF
7671           fi ;;
7672         esac
7673       fi
7674       break
7675     fi
7676   done
7677   IFS=$lt_save_ifs
7678   MAGIC_CMD=$lt_save_MAGIC_CMD
7679   ;;
7680 esac
7681 fi
7682
7683 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7684 if test -n "$MAGIC_CMD"; then
7685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7686 $as_echo "$MAGIC_CMD" >&6; }
7687 else
7688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7689 $as_echo "no" >&6; }
7690 fi
7691
7692
7693
7694
7695
7696 if test -z "$lt_cv_path_MAGIC_CMD"; then
7697   if test -n "$ac_tool_prefix"; then
7698     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7699 $as_echo_n "checking for file... " >&6; }
7700 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7701   $as_echo_n "(cached) " >&6
7702 else
7703   case $MAGIC_CMD in
7704 [\\/*] |  ?:[\\/]*)
7705   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7706   ;;
7707 *)
7708   lt_save_MAGIC_CMD=$MAGIC_CMD
7709   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7710   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7711   for ac_dir in $ac_dummy; do
7712     IFS=$lt_save_ifs
7713     test -z "$ac_dir" && ac_dir=.
7714     if test -f "$ac_dir/file"; then
7715       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
7716       if test -n "$file_magic_test_file"; then
7717         case $deplibs_check_method in
7718         "file_magic "*)
7719           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7720           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7721           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7722             $EGREP "$file_magic_regex" > /dev/null; then
7723             :
7724           else
7725             cat <<_LT_EOF 1>&2
7726
7727 *** Warning: the command libtool uses to detect shared libraries,
7728 *** $file_magic_cmd, produces output that libtool cannot recognize.
7729 *** The result is that libtool may fail to recognize shared libraries
7730 *** as such.  This will affect the creation of libtool libraries that
7731 *** depend on shared libraries, but programs linked with such libtool
7732 *** libraries will work regardless of this problem.  Nevertheless, you
7733 *** may want to report the problem to your system manager and/or to
7734 *** bug-libtool@gnu.org
7735
7736 _LT_EOF
7737           fi ;;
7738         esac
7739       fi
7740       break
7741     fi
7742   done
7743   IFS=$lt_save_ifs
7744   MAGIC_CMD=$lt_save_MAGIC_CMD
7745   ;;
7746 esac
7747 fi
7748
7749 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7750 if test -n "$MAGIC_CMD"; then
7751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7752 $as_echo "$MAGIC_CMD" >&6; }
7753 else
7754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7755 $as_echo "no" >&6; }
7756 fi
7757
7758
7759   else
7760     MAGIC_CMD=:
7761   fi
7762 fi
7763
7764   fi
7765   ;;
7766 esac
7767
7768 # Use C for the default configuration in the libtool script
7769
7770 lt_save_CC=$CC
7771 ac_ext=c
7772 ac_cpp='$CPP $CPPFLAGS'
7773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7776
7777
7778 # Source file extension for C test sources.
7779 ac_ext=c
7780
7781 # Object file extension for compiled C test sources.
7782 objext=o
7783 objext=$objext
7784
7785 # Code to be used in simple compile tests
7786 lt_simple_compile_test_code="int some_variable = 0;"
7787
7788 # Code to be used in simple link tests
7789 lt_simple_link_test_code='int main(){return(0);}'
7790
7791
7792
7793
7794
7795
7796
7797 # If no C compiler was specified, use CC.
7798 LTCC=${LTCC-"$CC"}
7799
7800 # If no C compiler flags were specified, use CFLAGS.
7801 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7802
7803 # Allow CC to be a program name with arguments.
7804 compiler=$CC
7805
7806 # Save the default compiler, since it gets overwritten when the other
7807 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7808 compiler_DEFAULT=$CC
7809
7810 # save warnings/boilerplate of simple test code
7811 ac_outfile=conftest.$ac_objext
7812 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7813 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7814 _lt_compiler_boilerplate=`cat conftest.err`
7815 $RM conftest*
7816
7817 ac_outfile=conftest.$ac_objext
7818 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7819 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7820 _lt_linker_boilerplate=`cat conftest.err`
7821 $RM -r conftest*
7822
7823
7824 ## CAVEAT EMPTOR:
7825 ## There is no encapsulation within the following macros, do not change
7826 ## the running order or otherwise move them around unless you know exactly
7827 ## what you are doing...
7828 if test -n "$compiler"; then
7829
7830 lt_prog_compiler_no_builtin_flag=
7831
7832 if test yes = "$GCC"; then
7833   case $cc_basename in
7834   nvcc*)
7835     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7836   *)
7837     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7838   esac
7839
7840   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7841 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7842 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7843   $as_echo_n "(cached) " >&6
7844 else
7845   lt_cv_prog_compiler_rtti_exceptions=no
7846    ac_outfile=conftest.$ac_objext
7847    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7848    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
7849    # Insert the option either (1) after the last *FLAGS variable, or
7850    # (2) before a word containing "conftest.", or (3) at the end.
7851    # Note that $ac_compile itself does not contain backslashes and begins
7852    # with a dollar sign (not a hyphen), so the echo should work correctly.
7853    # The option is referenced via a variable to avoid confusing sed.
7854    lt_compile=`echo "$ac_compile" | $SED \
7855    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7856    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7857    -e 's:$: $lt_compiler_flag:'`
7858    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7859    (eval "$lt_compile" 2>conftest.err)
7860    ac_status=$?
7861    cat conftest.err >&5
7862    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7863    if (exit $ac_status) && test -s "$ac_outfile"; then
7864      # The compiler can only warn and ignore the option if not recognized
7865      # So say no if there are warnings other than the usual output.
7866      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7867      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7868      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7869        lt_cv_prog_compiler_rtti_exceptions=yes
7870      fi
7871    fi
7872    $RM conftest*
7873
7874 fi
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7876 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7877
7878 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
7879     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7880 else
7881     :
7882 fi
7883
7884 fi
7885
7886
7887
7888
7889
7890
7891   lt_prog_compiler_wl=
7892 lt_prog_compiler_pic=
7893 lt_prog_compiler_static=
7894
7895
7896   if test yes = "$GCC"; then
7897     lt_prog_compiler_wl='-Wl,'
7898     lt_prog_compiler_static='-static'
7899
7900     case $host_os in
7901       aix*)
7902       # All AIX code is PIC.
7903       if test ia64 = "$host_cpu"; then
7904         # AIX 5 now supports IA64 processor
7905         lt_prog_compiler_static='-Bstatic'
7906       fi
7907       lt_prog_compiler_pic='-fPIC'
7908       ;;
7909
7910     amigaos*)
7911       case $host_cpu in
7912       powerpc)
7913             # see comment about AmigaOS4 .so support
7914             lt_prog_compiler_pic='-fPIC'
7915         ;;
7916       m68k)
7917             # FIXME: we need at least 68020 code to build shared libraries, but
7918             # adding the '-m68020' flag to GCC prevents building anything better,
7919             # like '-m68040'.
7920             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7921         ;;
7922       esac
7923       ;;
7924
7925     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7926       # PIC is the default for these OSes.
7927       ;;
7928
7929     mingw* | cygwin* | pw32* | os2* | cegcc*)
7930       # This hack is so that the source file can tell whether it is being
7931       # built for inclusion in a dll (and should export symbols for example).
7932       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7933       # (--disable-auto-import) libraries
7934       lt_prog_compiler_pic='-DDLL_EXPORT'
7935       case $host_os in
7936       os2*)
7937         lt_prog_compiler_static='$wl-static'
7938         ;;
7939       esac
7940       ;;
7941
7942     darwin* | rhapsody*)
7943       # PIC is the default on this platform
7944       # Common symbols not allowed in MH_DYLIB files
7945       lt_prog_compiler_pic='-fno-common'
7946       ;;
7947
7948     haiku*)
7949       # PIC is the default for Haiku.
7950       # The "-static" flag exists, but is broken.
7951       lt_prog_compiler_static=
7952       ;;
7953
7954     hpux*)
7955       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7956       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7957       # sets the default TLS model and affects inlining.
7958       case $host_cpu in
7959       hppa*64*)
7960         # +Z the default
7961         ;;
7962       *)
7963         lt_prog_compiler_pic='-fPIC'
7964         ;;
7965       esac
7966       ;;
7967
7968     interix[3-9]*)
7969       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7970       # Instead, we relocate shared libraries at runtime.
7971       ;;
7972
7973     msdosdjgpp*)
7974       # Just because we use GCC doesn't mean we suddenly get shared libraries
7975       # on systems that don't support them.
7976       lt_prog_compiler_can_build_shared=no
7977       enable_shared=no
7978       ;;
7979
7980     *nto* | *qnx*)
7981       # QNX uses GNU C++, but need to define -shared option too, otherwise
7982       # it will coredump.
7983       lt_prog_compiler_pic='-fPIC -shared'
7984       ;;
7985
7986     sysv4*MP*)
7987       if test -d /usr/nec; then
7988         lt_prog_compiler_pic=-Kconform_pic
7989       fi
7990       ;;
7991
7992     *)
7993       lt_prog_compiler_pic='-fPIC'
7994       ;;
7995     esac
7996
7997     case $cc_basename in
7998     nvcc*) # Cuda Compiler Driver 2.2
7999       lt_prog_compiler_wl='-Xlinker '
8000       if test -n "$lt_prog_compiler_pic"; then
8001         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8002       fi
8003       ;;
8004     esac
8005   else
8006     # PORTME Check for flag to pass linker flags through the system compiler.
8007     case $host_os in
8008     aix*)
8009       lt_prog_compiler_wl='-Wl,'
8010       if test ia64 = "$host_cpu"; then
8011         # AIX 5 now supports IA64 processor
8012         lt_prog_compiler_static='-Bstatic'
8013       else
8014         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8015       fi
8016       ;;
8017
8018     darwin* | rhapsody*)
8019       # PIC is the default on this platform
8020       # Common symbols not allowed in MH_DYLIB files
8021       lt_prog_compiler_pic='-fno-common'
8022       case $cc_basename in
8023       nagfor*)
8024         # NAG Fortran compiler
8025         lt_prog_compiler_wl='-Wl,-Wl,,'
8026         lt_prog_compiler_pic='-PIC'
8027         lt_prog_compiler_static='-Bstatic'
8028         ;;
8029       esac
8030       ;;
8031
8032     mingw* | cygwin* | pw32* | os2* | cegcc*)
8033       # This hack is so that the source file can tell whether it is being
8034       # built for inclusion in a dll (and should export symbols for example).
8035       lt_prog_compiler_pic='-DDLL_EXPORT'
8036       case $host_os in
8037       os2*)
8038         lt_prog_compiler_static='$wl-static'
8039         ;;
8040       esac
8041       ;;
8042
8043     hpux9* | hpux10* | hpux11*)
8044       lt_prog_compiler_wl='-Wl,'
8045       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8046       # not for PA HP-UX.
8047       case $host_cpu in
8048       hppa*64*|ia64*)
8049         # +Z the default
8050         ;;
8051       *)
8052         lt_prog_compiler_pic='+Z'
8053         ;;
8054       esac
8055       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8056       lt_prog_compiler_static='$wl-a ${wl}archive'
8057       ;;
8058
8059     irix5* | irix6* | nonstopux*)
8060       lt_prog_compiler_wl='-Wl,'
8061       # PIC (with -KPIC) is the default.
8062       lt_prog_compiler_static='-non_shared'
8063       ;;
8064
8065     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8066       case $cc_basename in
8067       # old Intel for x86_64, which still supported -KPIC.
8068       ecc*)
8069         lt_prog_compiler_wl='-Wl,'
8070         lt_prog_compiler_pic='-KPIC'
8071         lt_prog_compiler_static='-static'
8072         ;;
8073       # icc used to be incompatible with GCC.
8074       # ICC 10 doesn't accept -KPIC any more.
8075       icc* | ifort*)
8076         lt_prog_compiler_wl='-Wl,'
8077         lt_prog_compiler_pic='-fPIC'
8078         lt_prog_compiler_static='-static'
8079         ;;
8080       # Lahey Fortran 8.1.
8081       lf95*)
8082         lt_prog_compiler_wl='-Wl,'
8083         lt_prog_compiler_pic='--shared'
8084         lt_prog_compiler_static='--static'
8085         ;;
8086       nagfor*)
8087         # NAG Fortran compiler
8088         lt_prog_compiler_wl='-Wl,-Wl,,'
8089         lt_prog_compiler_pic='-PIC'
8090         lt_prog_compiler_static='-Bstatic'
8091         ;;
8092       tcc*)
8093         # Fabrice Bellard et al's Tiny C Compiler
8094         lt_prog_compiler_wl='-Wl,'
8095         lt_prog_compiler_pic='-fPIC'
8096         lt_prog_compiler_static='-static'
8097         ;;
8098       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8099         # Portland Group compilers (*not* the Pentium gcc compiler,
8100         # which looks to be a dead project)
8101         lt_prog_compiler_wl='-Wl,'
8102         lt_prog_compiler_pic='-fpic'
8103         lt_prog_compiler_static='-Bstatic'
8104         ;;
8105       ccc*)
8106         lt_prog_compiler_wl='-Wl,'
8107         # All Alpha code is PIC.
8108         lt_prog_compiler_static='-non_shared'
8109         ;;
8110       xl* | bgxl* | bgf* | mpixl*)
8111         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8112         lt_prog_compiler_wl='-Wl,'
8113         lt_prog_compiler_pic='-qpic'
8114         lt_prog_compiler_static='-qstaticlink'
8115         ;;
8116       *)
8117         case `$CC -V 2>&1 | sed 5q` in
8118         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8119           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8120           lt_prog_compiler_pic='-KPIC'
8121           lt_prog_compiler_static='-Bstatic'
8122           lt_prog_compiler_wl=''
8123           ;;
8124         *Sun\ F* | *Sun*Fortran*)
8125           lt_prog_compiler_pic='-KPIC'
8126           lt_prog_compiler_static='-Bstatic'
8127           lt_prog_compiler_wl='-Qoption ld '
8128           ;;
8129         *Sun\ C*)
8130           # Sun C 5.9
8131           lt_prog_compiler_pic='-KPIC'
8132           lt_prog_compiler_static='-Bstatic'
8133           lt_prog_compiler_wl='-Wl,'
8134           ;;
8135         *Intel*\ [CF]*Compiler*)
8136           lt_prog_compiler_wl='-Wl,'
8137           lt_prog_compiler_pic='-fPIC'
8138           lt_prog_compiler_static='-static'
8139           ;;
8140         *Portland\ Group*)
8141           lt_prog_compiler_wl='-Wl,'
8142           lt_prog_compiler_pic='-fpic'
8143           lt_prog_compiler_static='-Bstatic'
8144           ;;
8145         esac
8146         ;;
8147       esac
8148       ;;
8149
8150     newsos6)
8151       lt_prog_compiler_pic='-KPIC'
8152       lt_prog_compiler_static='-Bstatic'
8153       ;;
8154
8155     *nto* | *qnx*)
8156       # QNX uses GNU C++, but need to define -shared option too, otherwise
8157       # it will coredump.
8158       lt_prog_compiler_pic='-fPIC -shared'
8159       ;;
8160
8161     osf3* | osf4* | osf5*)
8162       lt_prog_compiler_wl='-Wl,'
8163       # All OSF/1 code is PIC.
8164       lt_prog_compiler_static='-non_shared'
8165       ;;
8166
8167     rdos*)
8168       lt_prog_compiler_static='-non_shared'
8169       ;;
8170
8171     solaris*)
8172       lt_prog_compiler_pic='-KPIC'
8173       lt_prog_compiler_static='-Bstatic'
8174       case $cc_basename in
8175       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8176         lt_prog_compiler_wl='-Qoption ld ';;
8177       *)
8178         lt_prog_compiler_wl='-Wl,';;
8179       esac
8180       ;;
8181
8182     sunos4*)
8183       lt_prog_compiler_wl='-Qoption ld '
8184       lt_prog_compiler_pic='-PIC'
8185       lt_prog_compiler_static='-Bstatic'
8186       ;;
8187
8188     sysv4 | sysv4.2uw2* | sysv4.3*)
8189       lt_prog_compiler_wl='-Wl,'
8190       lt_prog_compiler_pic='-KPIC'
8191       lt_prog_compiler_static='-Bstatic'
8192       ;;
8193
8194     sysv4*MP*)
8195       if test -d /usr/nec; then
8196         lt_prog_compiler_pic='-Kconform_pic'
8197         lt_prog_compiler_static='-Bstatic'
8198       fi
8199       ;;
8200
8201     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8202       lt_prog_compiler_wl='-Wl,'
8203       lt_prog_compiler_pic='-KPIC'
8204       lt_prog_compiler_static='-Bstatic'
8205       ;;
8206
8207     unicos*)
8208       lt_prog_compiler_wl='-Wl,'
8209       lt_prog_compiler_can_build_shared=no
8210       ;;
8211
8212     uts4*)
8213       lt_prog_compiler_pic='-pic'
8214       lt_prog_compiler_static='-Bstatic'
8215       ;;
8216
8217     *)
8218       lt_prog_compiler_can_build_shared=no
8219       ;;
8220     esac
8221   fi
8222
8223 case $host_os in
8224   # For platforms that do not support PIC, -DPIC is meaningless:
8225   *djgpp*)
8226     lt_prog_compiler_pic=
8227     ;;
8228   *)
8229     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8230     ;;
8231 esac
8232
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8234 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8235 if ${lt_cv_prog_compiler_pic+:} false; then :
8236   $as_echo_n "(cached) " >&6
8237 else
8238   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8239 fi
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8241 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8242 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8243
8244 #
8245 # Check to make sure the PIC flag actually works.
8246 #
8247 if test -n "$lt_prog_compiler_pic"; then
8248   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8249 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8250 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8251   $as_echo_n "(cached) " >&6
8252 else
8253   lt_cv_prog_compiler_pic_works=no
8254    ac_outfile=conftest.$ac_objext
8255    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8256    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
8257    # Insert the option either (1) after the last *FLAGS variable, or
8258    # (2) before a word containing "conftest.", or (3) at the end.
8259    # Note that $ac_compile itself does not contain backslashes and begins
8260    # with a dollar sign (not a hyphen), so the echo should work correctly.
8261    # The option is referenced via a variable to avoid confusing sed.
8262    lt_compile=`echo "$ac_compile" | $SED \
8263    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8264    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8265    -e 's:$: $lt_compiler_flag:'`
8266    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8267    (eval "$lt_compile" 2>conftest.err)
8268    ac_status=$?
8269    cat conftest.err >&5
8270    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271    if (exit $ac_status) && test -s "$ac_outfile"; then
8272      # The compiler can only warn and ignore the option if not recognized
8273      # So say no if there are warnings other than the usual output.
8274      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8275      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8276      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8277        lt_cv_prog_compiler_pic_works=yes
8278      fi
8279    fi
8280    $RM conftest*
8281
8282 fi
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8284 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8285
8286 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8287     case $lt_prog_compiler_pic in
8288      "" | " "*) ;;
8289      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8290      esac
8291 else
8292     lt_prog_compiler_pic=
8293      lt_prog_compiler_can_build_shared=no
8294 fi
8295
8296 fi
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308 #
8309 # Check to make sure the static flag actually works.
8310 #
8311 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8313 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8314 if ${lt_cv_prog_compiler_static_works+:} false; then :
8315   $as_echo_n "(cached) " >&6
8316 else
8317   lt_cv_prog_compiler_static_works=no
8318    save_LDFLAGS=$LDFLAGS
8319    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8320    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8321    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8322      # The linker can only warn and ignore the option if not recognized
8323      # So say no if there are warnings
8324      if test -s conftest.err; then
8325        # Append any errors to the config.log.
8326        cat conftest.err 1>&5
8327        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8328        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8329        if diff conftest.exp conftest.er2 >/dev/null; then
8330          lt_cv_prog_compiler_static_works=yes
8331        fi
8332      else
8333        lt_cv_prog_compiler_static_works=yes
8334      fi
8335    fi
8336    $RM -r conftest*
8337    LDFLAGS=$save_LDFLAGS
8338
8339 fi
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8341 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8342
8343 if test yes = "$lt_cv_prog_compiler_static_works"; then
8344     :
8345 else
8346     lt_prog_compiler_static=
8347 fi
8348
8349
8350
8351
8352
8353
8354
8355   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8356 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8357 if ${lt_cv_prog_compiler_c_o+:} false; then :
8358   $as_echo_n "(cached) " >&6
8359 else
8360   lt_cv_prog_compiler_c_o=no
8361    $RM -r conftest 2>/dev/null
8362    mkdir conftest
8363    cd conftest
8364    mkdir out
8365    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8366
8367    lt_compiler_flag="-o out/conftest2.$ac_objext"
8368    # Insert the option either (1) after the last *FLAGS variable, or
8369    # (2) before a word containing "conftest.", or (3) at the end.
8370    # Note that $ac_compile itself does not contain backslashes and begins
8371    # with a dollar sign (not a hyphen), so the echo should work correctly.
8372    lt_compile=`echo "$ac_compile" | $SED \
8373    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8374    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8375    -e 's:$: $lt_compiler_flag:'`
8376    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8377    (eval "$lt_compile" 2>out/conftest.err)
8378    ac_status=$?
8379    cat out/conftest.err >&5
8380    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8382    then
8383      # The compiler can only warn and ignore the option if not recognized
8384      # So say no if there are warnings
8385      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8386      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8387      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8388        lt_cv_prog_compiler_c_o=yes
8389      fi
8390    fi
8391    chmod u+w . 2>&5
8392    $RM conftest*
8393    # SGI C++ compiler will create directory out/ii_files/ for
8394    # template instantiation
8395    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8396    $RM out/* && rmdir out
8397    cd ..
8398    $RM -r conftest
8399    $RM conftest*
8400
8401 fi
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8403 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8404
8405
8406
8407
8408
8409
8410   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8411 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8412 if ${lt_cv_prog_compiler_c_o+:} false; then :
8413   $as_echo_n "(cached) " >&6
8414 else
8415   lt_cv_prog_compiler_c_o=no
8416    $RM -r conftest 2>/dev/null
8417    mkdir conftest
8418    cd conftest
8419    mkdir out
8420    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8421
8422    lt_compiler_flag="-o out/conftest2.$ac_objext"
8423    # Insert the option either (1) after the last *FLAGS variable, or
8424    # (2) before a word containing "conftest.", or (3) at the end.
8425    # Note that $ac_compile itself does not contain backslashes and begins
8426    # with a dollar sign (not a hyphen), so the echo should work correctly.
8427    lt_compile=`echo "$ac_compile" | $SED \
8428    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8429    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8430    -e 's:$: $lt_compiler_flag:'`
8431    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8432    (eval "$lt_compile" 2>out/conftest.err)
8433    ac_status=$?
8434    cat out/conftest.err >&5
8435    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8437    then
8438      # The compiler can only warn and ignore the option if not recognized
8439      # So say no if there are warnings
8440      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8441      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8442      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8443        lt_cv_prog_compiler_c_o=yes
8444      fi
8445    fi
8446    chmod u+w . 2>&5
8447    $RM conftest*
8448    # SGI C++ compiler will create directory out/ii_files/ for
8449    # template instantiation
8450    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8451    $RM out/* && rmdir out
8452    cd ..
8453    $RM -r conftest
8454    $RM conftest*
8455
8456 fi
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8458 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8459
8460
8461
8462
8463 hard_links=nottested
8464 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8465   # do not overwrite the value of need_locks provided by the user
8466   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8467 $as_echo_n "checking if we can lock with hard links... " >&6; }
8468   hard_links=yes
8469   $RM conftest*
8470   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8471   touch conftest.a
8472   ln conftest.a conftest.b 2>&5 || hard_links=no
8473   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8475 $as_echo "$hard_links" >&6; }
8476   if test no = "$hard_links"; then
8477     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8478 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8479     need_locks=warn
8480   fi
8481 else
8482   need_locks=no
8483 fi
8484
8485
8486
8487
8488
8489
8490   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8491 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8492
8493   runpath_var=
8494   allow_undefined_flag=
8495   always_export_symbols=no
8496   archive_cmds=
8497   archive_expsym_cmds=
8498   compiler_needs_object=no
8499   enable_shared_with_static_runtimes=no
8500   export_dynamic_flag_spec=
8501   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8502   hardcode_automatic=no
8503   hardcode_direct=no
8504   hardcode_direct_absolute=no
8505   hardcode_libdir_flag_spec=
8506   hardcode_libdir_separator=
8507   hardcode_minus_L=no
8508   hardcode_shlibpath_var=unsupported
8509   inherit_rpath=no
8510   link_all_deplibs=unknown
8511   module_cmds=
8512   module_expsym_cmds=
8513   old_archive_from_new_cmds=
8514   old_archive_from_expsyms_cmds=
8515   thread_safe_flag_spec=
8516   whole_archive_flag_spec=
8517   # include_expsyms should be a list of space-separated symbols to be *always*
8518   # included in the symbol list
8519   include_expsyms=
8520   # exclude_expsyms can be an extended regexp of symbols to exclude
8521   # it will be wrapped by ' (' and ')$', so one must not match beginning or
8522   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8523   # as well as any symbol that contains 'd'.
8524   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8525   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8526   # platforms (ab)use it in PIC code, but their linkers get confused if
8527   # the symbol is explicitly referenced.  Since portable code cannot
8528   # rely on this symbol name, it's probably fine to never include it in
8529   # preloaded symbol tables.
8530   # Exclude shared library initialization/finalization symbols.
8531   extract_expsyms_cmds=
8532
8533   case $host_os in
8534   cygwin* | mingw* | pw32* | cegcc*)
8535     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8536     # When not using gcc, we currently assume that we are using
8537     # Microsoft Visual C++.
8538     if test yes != "$GCC"; then
8539       with_gnu_ld=no
8540     fi
8541     ;;
8542   interix*)
8543     # we just hope/assume this is gcc and not c89 (= MSVC++)
8544     with_gnu_ld=yes
8545     ;;
8546   openbsd* | bitrig*)
8547     with_gnu_ld=no
8548     ;;
8549   esac
8550
8551   ld_shlibs=yes
8552
8553   # On some targets, GNU ld is compatible enough with the native linker
8554   # that we're better off using the native interface for both.
8555   lt_use_gnu_ld_interface=no
8556   if test yes = "$with_gnu_ld"; then
8557     case $host_os in
8558       aix*)
8559         # The AIX port of GNU ld has always aspired to compatibility
8560         # with the native linker.  However, as the warning in the GNU ld
8561         # block says, versions before 2.19.5* couldn't really create working
8562         # shared libraries, regardless of the interface used.
8563         case `$LD -v 2>&1` in
8564           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8565           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8566           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8567           *)
8568             lt_use_gnu_ld_interface=yes
8569             ;;
8570         esac
8571         ;;
8572       *)
8573         lt_use_gnu_ld_interface=yes
8574         ;;
8575     esac
8576   fi
8577
8578   if test yes = "$lt_use_gnu_ld_interface"; then
8579     # If archive_cmds runs LD, not CC, wlarc should be empty
8580     wlarc='$wl'
8581
8582     # Set some defaults for GNU ld with shared library support. These
8583     # are reset later if shared libraries are not supported. Putting them
8584     # here allows them to be overridden if necessary.
8585     runpath_var=LD_RUN_PATH
8586     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8587     export_dynamic_flag_spec='$wl--export-dynamic'
8588     # ancient GNU ld didn't support --whole-archive et. al.
8589     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8590       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8591     else
8592       whole_archive_flag_spec=
8593     fi
8594     supports_anon_versioning=no
8595     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
8596       *GNU\ gold*) supports_anon_versioning=yes ;;
8597       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8598       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8599       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8600       *\ 2.11.*) ;; # other 2.11 versions
8601       *) supports_anon_versioning=yes ;;
8602     esac
8603
8604     # See if GNU ld supports shared libraries.
8605     case $host_os in
8606     aix[3-9]*)
8607       # On AIX/PPC, the GNU linker is very broken
8608       if test ia64 != "$host_cpu"; then
8609         ld_shlibs=no
8610         cat <<_LT_EOF 1>&2
8611
8612 *** Warning: the GNU linker, at least up to release 2.19, is reported
8613 *** to be unable to reliably create shared libraries on AIX.
8614 *** Therefore, libtool is disabling shared libraries support.  If you
8615 *** really care for shared libraries, you may want to install binutils
8616 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8617 *** You will then need to restart the configuration process.
8618
8619 _LT_EOF
8620       fi
8621       ;;
8622
8623     amigaos*)
8624       case $host_cpu in
8625       powerpc)
8626             # see comment about AmigaOS4 .so support
8627             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8628             archive_expsym_cmds=''
8629         ;;
8630       m68k)
8631             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)'
8632             hardcode_libdir_flag_spec='-L$libdir'
8633             hardcode_minus_L=yes
8634         ;;
8635       esac
8636       ;;
8637
8638     beos*)
8639       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8640         allow_undefined_flag=unsupported
8641         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8642         # support --undefined.  This deserves some investigation.  FIXME
8643         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8644       else
8645         ld_shlibs=no
8646       fi
8647       ;;
8648
8649     cygwin* | mingw* | pw32* | cegcc*)
8650       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8651       # as there is no search path for DLLs.
8652       hardcode_libdir_flag_spec='-L$libdir'
8653       export_dynamic_flag_spec='$wl--export-all-symbols'
8654       allow_undefined_flag=unsupported
8655       always_export_symbols=no
8656       enable_shared_with_static_runtimes=yes
8657       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'
8658       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8659
8660       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8661         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8662         # If the export-symbols file already is a .def file, use it as
8663         # is; otherwise, prepend EXPORTS...
8664         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
8665           cp $export_symbols $output_objdir/$soname.def;
8666         else
8667           echo EXPORTS > $output_objdir/$soname.def;
8668           cat $export_symbols >> $output_objdir/$soname.def;
8669         fi~
8670         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8671       else
8672         ld_shlibs=no
8673       fi
8674       ;;
8675
8676     haiku*)
8677       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8678       link_all_deplibs=yes
8679       ;;
8680
8681     os2*)
8682       hardcode_libdir_flag_spec='-L$libdir'
8683       hardcode_minus_L=yes
8684       allow_undefined_flag=unsupported
8685       shrext_cmds=.dll
8686       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8687         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8688         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8689         $ECHO EXPORTS >> $output_objdir/$libname.def~
8690         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
8691         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8692         emximp -o $lib $output_objdir/$libname.def'
8693       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8694         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8695         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8696         $ECHO EXPORTS >> $output_objdir/$libname.def~
8697         prefix_cmds="$SED"~
8698         if test EXPORTS = "`$SED 1q $export_symbols`"; then
8699           prefix_cmds="$prefix_cmds -e 1d";
8700         fi~
8701         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
8702         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
8703         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8704         emximp -o $lib $output_objdir/$libname.def'
8705       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
8706       enable_shared_with_static_runtimes=yes
8707       ;;
8708
8709     interix[3-9]*)
8710       hardcode_direct=no
8711       hardcode_shlibpath_var=no
8712       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
8713       export_dynamic_flag_spec='$wl-E'
8714       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8715       # Instead, shared libraries are loaded at an image base (0x10000000 by
8716       # default) and relocated if they conflict, which is a slow very memory
8717       # consuming and fragmenting process.  To avoid this, we pick a random,
8718       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8719       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8720       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8721       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'
8722       ;;
8723
8724     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8725       tmp_diet=no
8726       if test linux-dietlibc = "$host_os"; then
8727         case $cc_basename in
8728           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8729         esac
8730       fi
8731       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8732          && test no = "$tmp_diet"
8733       then
8734         tmp_addflag=' $pic_flag'
8735         tmp_sharedflag='-shared'
8736         case $cc_basename,$host_cpu in
8737         pgcc*)                          # Portland Group C compiler
8738           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'
8739           tmp_addflag=' $pic_flag'
8740           ;;
8741         pgf77* | pgf90* | pgf95* | pgfortran*)
8742                                         # Portland Group f77 and f90 compilers
8743           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'
8744           tmp_addflag=' $pic_flag -Mnomain' ;;
8745         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8746           tmp_addflag=' -i_dynamic' ;;
8747         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8748           tmp_addflag=' -i_dynamic -nofor_main' ;;
8749         ifc* | ifort*)                  # Intel Fortran compiler
8750           tmp_addflag=' -nofor_main' ;;
8751         lf95*)                          # Lahey Fortran 8.1
8752           whole_archive_flag_spec=
8753           tmp_sharedflag='--shared' ;;
8754         nagfor*)                        # NAGFOR 5.3
8755           tmp_sharedflag='-Wl,-shared' ;;
8756         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8757           tmp_sharedflag='-qmkshrobj'
8758           tmp_addflag= ;;
8759         nvcc*)  # Cuda Compiler Driver 2.2
8760           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'
8761           compiler_needs_object=yes
8762           ;;
8763         esac
8764         case `$CC -V 2>&1 | sed 5q` in
8765         *Sun\ C*)                       # Sun C 5.9
8766           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'
8767           compiler_needs_object=yes
8768           tmp_sharedflag='-G' ;;
8769         *Sun\ F*)                       # Sun Fortran 8.3
8770           tmp_sharedflag='-G' ;;
8771         esac
8772         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8773
8774         if test yes = "$supports_anon_versioning"; then
8775           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8776             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8777             echo "local: *; };" >> $output_objdir/$libname.ver~
8778             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
8779         fi
8780
8781         case $cc_basename in
8782         tcc*)
8783           export_dynamic_flag_spec='-rdynamic'
8784           ;;
8785         xlf* | bgf* | bgxlf* | mpixlf*)
8786           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8787           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8788           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8789           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8790           if test yes = "$supports_anon_versioning"; then
8791             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8792               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8793               echo "local: *; };" >> $output_objdir/$libname.ver~
8794               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8795           fi
8796           ;;
8797         esac
8798       else
8799         ld_shlibs=no
8800       fi
8801       ;;
8802
8803     netbsd*)
8804       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8805         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8806         wlarc=
8807       else
8808         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8809         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8810       fi
8811       ;;
8812
8813     solaris*)
8814       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8815         ld_shlibs=no
8816         cat <<_LT_EOF 1>&2
8817
8818 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8819 *** create shared libraries on Solaris systems.  Therefore, libtool
8820 *** is disabling shared libraries support.  We urge you to upgrade GNU
8821 *** binutils to release 2.9.1 or newer.  Another option is to modify
8822 *** your PATH or compiler configuration so that the native linker is
8823 *** used, and then restart.
8824
8825 _LT_EOF
8826       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8827         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8828         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8829       else
8830         ld_shlibs=no
8831       fi
8832       ;;
8833
8834     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8835       case `$LD -v 2>&1` in
8836         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8837         ld_shlibs=no
8838         cat <<_LT_EOF 1>&2
8839
8840 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
8841 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8842 *** is disabling shared libraries support.  We urge you to upgrade GNU
8843 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8844 *** your PATH or compiler configuration so that the native linker is
8845 *** used, and then restart.
8846
8847 _LT_EOF
8848         ;;
8849         *)
8850           # For security reasons, it is highly recommended that you always
8851           # use absolute paths for naming shared libraries, and exclude the
8852           # DT_RUNPATH tag from executables and libraries.  But doing so
8853           # requires that you compile everything twice, which is a pain.
8854           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8855             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8856             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8857             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8858           else
8859             ld_shlibs=no
8860           fi
8861         ;;
8862       esac
8863       ;;
8864
8865     sunos4*)
8866       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8867       wlarc=
8868       hardcode_direct=yes
8869       hardcode_shlibpath_var=no
8870       ;;
8871
8872     *)
8873       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8874         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8875         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8876       else
8877         ld_shlibs=no
8878       fi
8879       ;;
8880     esac
8881
8882     if test no = "$ld_shlibs"; then
8883       runpath_var=
8884       hardcode_libdir_flag_spec=
8885       export_dynamic_flag_spec=
8886       whole_archive_flag_spec=
8887     fi
8888   else
8889     # PORTME fill in a description of your system's linker (not GNU ld)
8890     case $host_os in
8891     aix3*)
8892       allow_undefined_flag=unsupported
8893       always_export_symbols=yes
8894       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'
8895       # Note: this linker hardcodes the directories in LIBPATH if there
8896       # are no directories specified by -L.
8897       hardcode_minus_L=yes
8898       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
8899         # Neither direct hardcoding nor static linking is supported with a
8900         # broken collect2.
8901         hardcode_direct=unsupported
8902       fi
8903       ;;
8904
8905     aix[4-9]*)
8906       if test ia64 = "$host_cpu"; then
8907         # On IA64, the linker does run time linking by default, so we don't
8908         # have to do anything special.
8909         aix_use_runtimelinking=no
8910         exp_sym_flag='-Bexport'
8911         no_entry_flag=
8912       else
8913         # If we're using GNU nm, then we don't want the "-C" option.
8914         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
8915         # Without the "-l" option, or with the "-B" option, AIX nm treats
8916         # weak defined symbols like other global defined symbols, whereas
8917         # GNU nm marks them as "W".
8918         # While the 'weak' keyword is ignored in the Export File, we need
8919         # it in the Import File for the 'aix-soname' feature, so we have
8920         # to replace the "-B" option with "-P" for AIX nm.
8921         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8922           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
8923         else
8924           export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
8925         fi
8926         aix_use_runtimelinking=no
8927
8928         # Test if we are trying to use run time linking or normal
8929         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8930         # have runtime linking enabled, and use it for executables.
8931         # For shared libraries, we enable/disable runtime linking
8932         # depending on the kind of the shared library created -
8933         # when "with_aix_soname,aix_use_runtimelinking" is:
8934         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
8935         # "aix,yes"  lib.so          shared, rtl:yes, for executables
8936         #            lib.a           static archive
8937         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
8938         #            lib.a(lib.so.V) shared, rtl:no,  for executables
8939         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
8940         #            lib.a(lib.so.V) shared, rtl:no
8941         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
8942         #            lib.a           static archive
8943         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8944           for ld_flag in $LDFLAGS; do
8945           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
8946             aix_use_runtimelinking=yes
8947             break
8948           fi
8949           done
8950           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
8951             # With aix-soname=svr4, we create the lib.so.V shared archives only,
8952             # so we don't have lib.a shared libs to link our executables.
8953             # We have to force runtime linking in this case.
8954             aix_use_runtimelinking=yes
8955             LDFLAGS="$LDFLAGS -Wl,-brtl"
8956           fi
8957           ;;
8958         esac
8959
8960         exp_sym_flag='-bexport'
8961         no_entry_flag='-bnoentry'
8962       fi
8963
8964       # When large executables or shared objects are built, AIX ld can
8965       # have problems creating the table of contents.  If linking a library
8966       # or program results in "error TOC overflow" add -mminimal-toc to
8967       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8968       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8969
8970       archive_cmds=''
8971       hardcode_direct=yes
8972       hardcode_direct_absolute=yes
8973       hardcode_libdir_separator=':'
8974       link_all_deplibs=yes
8975       file_list_spec='$wl-f,'
8976       case $with_aix_soname,$aix_use_runtimelinking in
8977       aix,*) ;; # traditional, no import file
8978       svr4,* | *,yes) # use import file
8979         # The Import File defines what to hardcode.
8980         hardcode_direct=no
8981         hardcode_direct_absolute=no
8982         ;;
8983       esac
8984
8985       if test yes = "$GCC"; then
8986         case $host_os in aix4.[012]|aix4.[012].*)
8987         # We only want to do this on AIX 4.2 and lower, the check
8988         # below for broken collect2 doesn't work under 4.3+
8989           collect2name=`$CC -print-prog-name=collect2`
8990           if test -f "$collect2name" &&
8991            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8992           then
8993           # We have reworked collect2
8994           :
8995           else
8996           # We have old collect2
8997           hardcode_direct=unsupported
8998           # It fails to find uninstalled libraries when the uninstalled
8999           # path is not listed in the libpath.  Setting hardcode_minus_L
9000           # to unsupported forces relinking
9001           hardcode_minus_L=yes
9002           hardcode_libdir_flag_spec='-L$libdir'
9003           hardcode_libdir_separator=
9004           fi
9005           ;;
9006         esac
9007         shared_flag='-shared'
9008         if test yes = "$aix_use_runtimelinking"; then
9009           shared_flag="$shared_flag "'$wl-G'
9010         fi
9011         # Need to ensure runtime linking is disabled for the traditional
9012         # shared library, or the linker may eventually find shared libraries
9013         # /with/ Import File - we do not want to mix them.
9014         shared_flag_aix='-shared'
9015         shared_flag_svr4='-shared $wl-G'
9016       else
9017         # not using gcc
9018         if test ia64 = "$host_cpu"; then
9019         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9020         # chokes on -Wl,-G. The following line is correct:
9021           shared_flag='-G'
9022         else
9023           if test yes = "$aix_use_runtimelinking"; then
9024             shared_flag='$wl-G'
9025           else
9026             shared_flag='$wl-bM:SRE'
9027           fi
9028           shared_flag_aix='$wl-bM:SRE'
9029           shared_flag_svr4='$wl-G'
9030         fi
9031       fi
9032
9033       export_dynamic_flag_spec='$wl-bexpall'
9034       # It seems that -bexpall does not export symbols beginning with
9035       # underscore (_), so it is better to generate a list of symbols to export.
9036       always_export_symbols=yes
9037       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9038         # Warning - without using the other runtime loading flags (-brtl),
9039         # -berok will link without error, but may produce a broken library.
9040         allow_undefined_flag='-berok'
9041         # Determine the default libpath from the value encoded in an
9042         # empty executable.
9043         if test set = "${lt_cv_aix_libpath+set}"; then
9044   aix_libpath=$lt_cv_aix_libpath
9045 else
9046   if ${lt_cv_aix_libpath_+:} false; then :
9047   $as_echo_n "(cached) " >&6
9048 else
9049   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9050 /* end confdefs.h.  */
9051
9052 int
9053 main ()
9054 {
9055
9056   ;
9057   return 0;
9058 }
9059 _ACEOF
9060 if ac_fn_c_try_link "$LINENO"; then :
9061
9062   lt_aix_libpath_sed='
9063       /Import File Strings/,/^$/ {
9064           /^0/ {
9065               s/^0  *\([^ ]*\) *$/\1/
9066               p
9067           }
9068       }'
9069   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9070   # Check for a 64-bit object if we didn't find anything.
9071   if test -z "$lt_cv_aix_libpath_"; then
9072     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9073   fi
9074 fi
9075 rm -f core conftest.err conftest.$ac_objext \
9076     conftest$ac_exeext conftest.$ac_ext
9077   if test -z "$lt_cv_aix_libpath_"; then
9078     lt_cv_aix_libpath_=/usr/lib:/lib
9079   fi
9080
9081 fi
9082
9083   aix_libpath=$lt_cv_aix_libpath_
9084 fi
9085
9086         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9087         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9088       else
9089         if test ia64 = "$host_cpu"; then
9090           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9091           allow_undefined_flag="-z nodefs"
9092           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"
9093         else
9094          # Determine the default libpath from the value encoded in an
9095          # empty executable.
9096          if test set = "${lt_cv_aix_libpath+set}"; then
9097   aix_libpath=$lt_cv_aix_libpath
9098 else
9099   if ${lt_cv_aix_libpath_+:} false; then :
9100   $as_echo_n "(cached) " >&6
9101 else
9102   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9103 /* end confdefs.h.  */
9104
9105 int
9106 main ()
9107 {
9108
9109   ;
9110   return 0;
9111 }
9112 _ACEOF
9113 if ac_fn_c_try_link "$LINENO"; then :
9114
9115   lt_aix_libpath_sed='
9116       /Import File Strings/,/^$/ {
9117           /^0/ {
9118               s/^0  *\([^ ]*\) *$/\1/
9119               p
9120           }
9121       }'
9122   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9123   # Check for a 64-bit object if we didn't find anything.
9124   if test -z "$lt_cv_aix_libpath_"; then
9125     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9126   fi
9127 fi
9128 rm -f core conftest.err conftest.$ac_objext \
9129     conftest$ac_exeext conftest.$ac_ext
9130   if test -z "$lt_cv_aix_libpath_"; then
9131     lt_cv_aix_libpath_=/usr/lib:/lib
9132   fi
9133
9134 fi
9135
9136   aix_libpath=$lt_cv_aix_libpath_
9137 fi
9138
9139          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9140           # Warning - without using the other run time loading flags,
9141           # -berok will link without error, but may produce a broken library.
9142           no_undefined_flag=' $wl-bernotok'
9143           allow_undefined_flag=' $wl-berok'
9144           if test yes = "$with_gnu_ld"; then
9145             # We only use this code for GNU lds that support --whole-archive.
9146             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9147           else
9148             # Exported symbols can be pulled into shared objects from archives
9149             whole_archive_flag_spec='$convenience'
9150           fi
9151           archive_cmds_need_lc=yes
9152           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9153           # -brtl affects multiple linker settings, -berok does not and is overridden later
9154           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9155           if test svr4 != "$with_aix_soname"; then
9156             # This is similar to how AIX traditionally builds its shared libraries.
9157             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9158           fi
9159           if test aix != "$with_aix_soname"; then
9160             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9161           else
9162             # used by -dlpreopen to get the symbols
9163             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
9164           fi
9165           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9166         fi
9167       fi
9168       ;;
9169
9170     amigaos*)
9171       case $host_cpu in
9172       powerpc)
9173             # see comment about AmigaOS4 .so support
9174             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9175             archive_expsym_cmds=''
9176         ;;
9177       m68k)
9178             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)'
9179             hardcode_libdir_flag_spec='-L$libdir'
9180             hardcode_minus_L=yes
9181         ;;
9182       esac
9183       ;;
9184
9185     bsdi[45]*)
9186       export_dynamic_flag_spec=-rdynamic
9187       ;;
9188
9189     cygwin* | mingw* | pw32* | cegcc*)
9190       # When not using gcc, we currently assume that we are using
9191       # Microsoft Visual C++.
9192       # hardcode_libdir_flag_spec is actually meaningless, as there is
9193       # no search path for DLLs.
9194       case $cc_basename in
9195       cl*)
9196         # Native MSVC
9197         hardcode_libdir_flag_spec=' '
9198         allow_undefined_flag=unsupported
9199         always_export_symbols=yes
9200         file_list_spec='@'
9201         # Tell ltmain to make .lib files, not .a files.
9202         libext=lib
9203         # Tell ltmain to make .dll files, not .so files.
9204         shrext_cmds=.dll
9205         # FIXME: Setting linknames here is a bad hack.
9206         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9207         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9208             cp "$export_symbols" "$output_objdir/$soname.def";
9209             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9210           else
9211             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9212           fi~
9213           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9214           linknames='
9215         # The linker will not automatically build a static lib if we build a DLL.
9216         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9217         enable_shared_with_static_runtimes=yes
9218         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9219         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9220         # Don't use ranlib
9221         old_postinstall_cmds='chmod 644 $oldlib'
9222         postlink_cmds='lt_outputfile="@OUTPUT@"~
9223           lt_tool_outputfile="@TOOL_OUTPUT@"~
9224           case $lt_outputfile in
9225             *.exe|*.EXE) ;;
9226             *)
9227               lt_outputfile=$lt_outputfile.exe
9228               lt_tool_outputfile=$lt_tool_outputfile.exe
9229               ;;
9230           esac~
9231           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9232             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9233             $RM "$lt_outputfile.manifest";
9234           fi'
9235         ;;
9236       *)
9237         # Assume MSVC wrapper
9238         hardcode_libdir_flag_spec=' '
9239         allow_undefined_flag=unsupported
9240         # Tell ltmain to make .lib files, not .a files.
9241         libext=lib
9242         # Tell ltmain to make .dll files, not .so files.
9243         shrext_cmds=.dll
9244         # FIXME: Setting linknames here is a bad hack.
9245         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9246         # The linker will automatically build a .lib file if we build a DLL.
9247         old_archive_from_new_cmds='true'
9248         # FIXME: Should let the user specify the lib program.
9249         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9250         enable_shared_with_static_runtimes=yes
9251         ;;
9252       esac
9253       ;;
9254
9255     darwin* | rhapsody*)
9256
9257
9258   archive_cmds_need_lc=no
9259   hardcode_direct=no
9260   hardcode_automatic=yes
9261   hardcode_shlibpath_var=unsupported
9262   if test yes = "$lt_cv_ld_force_load"; then
9263     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\"`'
9264
9265   else
9266     whole_archive_flag_spec=''
9267   fi
9268   link_all_deplibs=yes
9269   allow_undefined_flag=$_lt_dar_allow_undefined
9270   case $cc_basename in
9271      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9272      *) _lt_dar_can_shared=$GCC ;;
9273   esac
9274   if test yes = "$_lt_dar_can_shared"; then
9275     output_verbose_link_cmd=func_echo_all
9276     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9277     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9278     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"
9279     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"
9280
9281   else
9282   ld_shlibs=no
9283   fi
9284
9285       ;;
9286
9287     dgux*)
9288       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9289       hardcode_libdir_flag_spec='-L$libdir'
9290       hardcode_shlibpath_var=no
9291       ;;
9292
9293     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9294     # support.  Future versions do this automatically, but an explicit c++rt0.o
9295     # does not break anything, and helps significantly (at the cost of a little
9296     # extra space).
9297     freebsd2.2*)
9298       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9299       hardcode_libdir_flag_spec='-R$libdir'
9300       hardcode_direct=yes
9301       hardcode_shlibpath_var=no
9302       ;;
9303
9304     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9305     freebsd2.*)
9306       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9307       hardcode_direct=yes
9308       hardcode_minus_L=yes
9309       hardcode_shlibpath_var=no
9310       ;;
9311
9312     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9313     freebsd* | dragonfly*)
9314       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9315       hardcode_libdir_flag_spec='-R$libdir'
9316       hardcode_direct=yes
9317       hardcode_shlibpath_var=no
9318       ;;
9319
9320     hpux9*)
9321       if test yes = "$GCC"; then
9322         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9323       else
9324         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9325       fi
9326       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9327       hardcode_libdir_separator=:
9328       hardcode_direct=yes
9329
9330       # hardcode_minus_L: Not really in the search PATH,
9331       # but as the default location of the library.
9332       hardcode_minus_L=yes
9333       export_dynamic_flag_spec='$wl-E'
9334       ;;
9335
9336     hpux10*)
9337       if test yes,no = "$GCC,$with_gnu_ld"; then
9338         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9339       else
9340         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9341       fi
9342       if test no = "$with_gnu_ld"; then
9343         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9344         hardcode_libdir_separator=:
9345         hardcode_direct=yes
9346         hardcode_direct_absolute=yes
9347         export_dynamic_flag_spec='$wl-E'
9348         # hardcode_minus_L: Not really in the search PATH,
9349         # but as the default location of the library.
9350         hardcode_minus_L=yes
9351       fi
9352       ;;
9353
9354     hpux11*)
9355       if test yes,no = "$GCC,$with_gnu_ld"; then
9356         case $host_cpu in
9357         hppa*64*)
9358           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9359           ;;
9360         ia64*)
9361           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9362           ;;
9363         *)
9364           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9365           ;;
9366         esac
9367       else
9368         case $host_cpu in
9369         hppa*64*)
9370           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9371           ;;
9372         ia64*)
9373           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9374           ;;
9375         *)
9376
9377           # Older versions of the 11.00 compiler do not understand -b yet
9378           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9379           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9380 $as_echo_n "checking if $CC understands -b... " >&6; }
9381 if ${lt_cv_prog_compiler__b+:} false; then :
9382   $as_echo_n "(cached) " >&6
9383 else
9384   lt_cv_prog_compiler__b=no
9385    save_LDFLAGS=$LDFLAGS
9386    LDFLAGS="$LDFLAGS -b"
9387    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9388    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9389      # The linker can only warn and ignore the option if not recognized
9390      # So say no if there are warnings
9391      if test -s conftest.err; then
9392        # Append any errors to the config.log.
9393        cat conftest.err 1>&5
9394        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9395        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9396        if diff conftest.exp conftest.er2 >/dev/null; then
9397          lt_cv_prog_compiler__b=yes
9398        fi
9399      else
9400        lt_cv_prog_compiler__b=yes
9401      fi
9402    fi
9403    $RM -r conftest*
9404    LDFLAGS=$save_LDFLAGS
9405
9406 fi
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9408 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9409
9410 if test yes = "$lt_cv_prog_compiler__b"; then
9411     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9412 else
9413     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9414 fi
9415
9416           ;;
9417         esac
9418       fi
9419       if test no = "$with_gnu_ld"; then
9420         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9421         hardcode_libdir_separator=:
9422
9423         case $host_cpu in
9424         hppa*64*|ia64*)
9425           hardcode_direct=no
9426           hardcode_shlibpath_var=no
9427           ;;
9428         *)
9429           hardcode_direct=yes
9430           hardcode_direct_absolute=yes
9431           export_dynamic_flag_spec='$wl-E'
9432
9433           # hardcode_minus_L: Not really in the search PATH,
9434           # but as the default location of the library.
9435           hardcode_minus_L=yes
9436           ;;
9437         esac
9438       fi
9439       ;;
9440
9441     irix5* | irix6* | nonstopux*)
9442       if test yes = "$GCC"; then
9443         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'
9444         # Try to use the -exported_symbol ld option, if it does not
9445         # work, assume that -exports_file does not work either and
9446         # implicitly export all symbols.
9447         # This should be the same for all languages, so no per-tag cache variable.
9448         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9449 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9450 if ${lt_cv_irix_exported_symbol+:} false; then :
9451   $as_echo_n "(cached) " >&6
9452 else
9453   save_LDFLAGS=$LDFLAGS
9454            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9455            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9456 /* end confdefs.h.  */
9457 int foo (void) { return 0; }
9458 _ACEOF
9459 if ac_fn_c_try_link "$LINENO"; then :
9460   lt_cv_irix_exported_symbol=yes
9461 else
9462   lt_cv_irix_exported_symbol=no
9463 fi
9464 rm -f core conftest.err conftest.$ac_objext \
9465     conftest$ac_exeext conftest.$ac_ext
9466            LDFLAGS=$save_LDFLAGS
9467 fi
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9469 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9470         if test yes = "$lt_cv_irix_exported_symbol"; then
9471           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'
9472         fi
9473       else
9474         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'
9475         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'
9476       fi
9477       archive_cmds_need_lc='no'
9478       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9479       hardcode_libdir_separator=:
9480       inherit_rpath=yes
9481       link_all_deplibs=yes
9482       ;;
9483
9484     linux*)
9485       case $cc_basename in
9486       tcc*)
9487         # Fabrice Bellard et al's Tiny C Compiler
9488         ld_shlibs=yes
9489         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9490         ;;
9491       esac
9492       ;;
9493
9494     netbsd*)
9495       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9496         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9497       else
9498         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9499       fi
9500       hardcode_libdir_flag_spec='-R$libdir'
9501       hardcode_direct=yes
9502       hardcode_shlibpath_var=no
9503       ;;
9504
9505     newsos6)
9506       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9507       hardcode_direct=yes
9508       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9509       hardcode_libdir_separator=:
9510       hardcode_shlibpath_var=no
9511       ;;
9512
9513     *nto* | *qnx*)
9514       ;;
9515
9516     openbsd* | bitrig*)
9517       if test -f /usr/libexec/ld.so; then
9518         hardcode_direct=yes
9519         hardcode_shlibpath_var=no
9520         hardcode_direct_absolute=yes
9521         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9522           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9523           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9524           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9525           export_dynamic_flag_spec='$wl-E'
9526         else
9527           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9528           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9529         fi
9530       else
9531         ld_shlibs=no
9532       fi
9533       ;;
9534
9535     os2*)
9536       hardcode_libdir_flag_spec='-L$libdir'
9537       hardcode_minus_L=yes
9538       allow_undefined_flag=unsupported
9539       shrext_cmds=.dll
9540       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9541         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9542         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9543         $ECHO EXPORTS >> $output_objdir/$libname.def~
9544         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9545         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9546         emximp -o $lib $output_objdir/$libname.def'
9547       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9548         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9549         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9550         $ECHO EXPORTS >> $output_objdir/$libname.def~
9551         prefix_cmds="$SED"~
9552         if test EXPORTS = "`$SED 1q $export_symbols`"; then
9553           prefix_cmds="$prefix_cmds -e 1d";
9554         fi~
9555         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9556         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9557         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9558         emximp -o $lib $output_objdir/$libname.def'
9559       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9560       enable_shared_with_static_runtimes=yes
9561       ;;
9562
9563     osf3*)
9564       if test yes = "$GCC"; then
9565         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9566         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'
9567       else
9568         allow_undefined_flag=' -expect_unresolved \*'
9569         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'
9570       fi
9571       archive_cmds_need_lc='no'
9572       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9573       hardcode_libdir_separator=:
9574       ;;
9575
9576     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9577       if test yes = "$GCC"; then
9578         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9579         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'
9580         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9581       else
9582         allow_undefined_flag=' -expect_unresolved \*'
9583         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'
9584         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~
9585           $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'
9586
9587         # Both c and cxx compiler support -rpath directly
9588         hardcode_libdir_flag_spec='-rpath $libdir'
9589       fi
9590       archive_cmds_need_lc='no'
9591       hardcode_libdir_separator=:
9592       ;;
9593
9594     solaris*)
9595       no_undefined_flag=' -z defs'
9596       if test yes = "$GCC"; then
9597         wlarc='$wl'
9598         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9599         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9600           $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'
9601       else
9602         case `$CC -V 2>&1` in
9603         *"Compilers 5.0"*)
9604           wlarc=''
9605           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
9606           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9607             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9608           ;;
9609         *)
9610           wlarc='$wl'
9611           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9612           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9613             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9614           ;;
9615         esac
9616       fi
9617       hardcode_libdir_flag_spec='-R$libdir'
9618       hardcode_shlibpath_var=no
9619       case $host_os in
9620       solaris2.[0-5] | solaris2.[0-5].*) ;;
9621       *)
9622         # The compiler driver will combine and reorder linker options,
9623         # but understands '-z linker_flag'.  GCC discards it without '$wl',
9624         # but is careful enough not to reorder.
9625         # Supported since Solaris 2.6 (maybe 2.5.1?)
9626         if test yes = "$GCC"; then
9627           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
9628         else
9629           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9630         fi
9631         ;;
9632       esac
9633       link_all_deplibs=yes
9634       ;;
9635
9636     sunos4*)
9637       if test sequent = "$host_vendor"; then
9638         # Use $CC to link under sequent, because it throws in some extra .o
9639         # files that make .init and .fini sections work.
9640         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9641       else
9642         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9643       fi
9644       hardcode_libdir_flag_spec='-L$libdir'
9645       hardcode_direct=yes
9646       hardcode_minus_L=yes
9647       hardcode_shlibpath_var=no
9648       ;;
9649
9650     sysv4)
9651       case $host_vendor in
9652         sni)
9653           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9654           hardcode_direct=yes # is this really true???
9655         ;;
9656         siemens)
9657           ## LD is ld it makes a PLAMLIB
9658           ## CC just makes a GrossModule.
9659           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9660           reload_cmds='$CC -r -o $output$reload_objs'
9661           hardcode_direct=no
9662         ;;
9663         motorola)
9664           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9665           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9666         ;;
9667       esac
9668       runpath_var='LD_RUN_PATH'
9669       hardcode_shlibpath_var=no
9670       ;;
9671
9672     sysv4.3*)
9673       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9674       hardcode_shlibpath_var=no
9675       export_dynamic_flag_spec='-Bexport'
9676       ;;
9677
9678     sysv4*MP*)
9679       if test -d /usr/nec; then
9680         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9681         hardcode_shlibpath_var=no
9682         runpath_var=LD_RUN_PATH
9683         hardcode_runpath_var=yes
9684         ld_shlibs=yes
9685       fi
9686       ;;
9687
9688     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9689       no_undefined_flag='$wl-z,text'
9690       archive_cmds_need_lc=no
9691       hardcode_shlibpath_var=no
9692       runpath_var='LD_RUN_PATH'
9693
9694       if test yes = "$GCC"; then
9695         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9696         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9697       else
9698         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9699         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9700       fi
9701       ;;
9702
9703     sysv5* | sco3.2v5* | sco5v6*)
9704       # Note: We CANNOT use -z defs as we might desire, because we do not
9705       # link with -lc, and that would cause any symbols used from libc to
9706       # always be unresolved, which means just about no library would
9707       # ever link correctly.  If we're not using GNU ld we use -z text
9708       # though, which does catch some bad symbols but isn't as heavy-handed
9709       # as -z defs.
9710       no_undefined_flag='$wl-z,text'
9711       allow_undefined_flag='$wl-z,nodefs'
9712       archive_cmds_need_lc=no
9713       hardcode_shlibpath_var=no
9714       hardcode_libdir_flag_spec='$wl-R,$libdir'
9715       hardcode_libdir_separator=':'
9716       link_all_deplibs=yes
9717       export_dynamic_flag_spec='$wl-Bexport'
9718       runpath_var='LD_RUN_PATH'
9719
9720       if test yes = "$GCC"; then
9721         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9722         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9723       else
9724         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9725         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9726       fi
9727       ;;
9728
9729     uts4*)
9730       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9731       hardcode_libdir_flag_spec='-L$libdir'
9732       hardcode_shlibpath_var=no
9733       ;;
9734
9735     *)
9736       ld_shlibs=no
9737       ;;
9738     esac
9739
9740     if test sni = "$host_vendor"; then
9741       case $host in
9742       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9743         export_dynamic_flag_spec='$wl-Blargedynsym'
9744         ;;
9745       esac
9746     fi
9747   fi
9748
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9750 $as_echo "$ld_shlibs" >&6; }
9751 test no = "$ld_shlibs" && can_build_shared=no
9752
9753 with_gnu_ld=$with_gnu_ld
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769 #
9770 # Do we need to explicitly link libc?
9771 #
9772 case "x$archive_cmds_need_lc" in
9773 x|xyes)
9774   # Assume -lc should be added
9775   archive_cmds_need_lc=yes
9776
9777   if test yes,yes = "$GCC,$enable_shared"; then
9778     case $archive_cmds in
9779     *'~'*)
9780       # FIXME: we may have to deal with multi-command sequences.
9781       ;;
9782     '$CC '*)
9783       # Test whether the compiler implicitly links with -lc since on some
9784       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9785       # to ld, don't add -lc before -lgcc.
9786       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9787 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9788 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9789   $as_echo_n "(cached) " >&6
9790 else
9791   $RM conftest*
9792         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9793
9794         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9795   (eval $ac_compile) 2>&5
9796   ac_status=$?
9797   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9798   test $ac_status = 0; } 2>conftest.err; then
9799           soname=conftest
9800           lib=conftest
9801           libobjs=conftest.$ac_objext
9802           deplibs=
9803           wl=$lt_prog_compiler_wl
9804           pic_flag=$lt_prog_compiler_pic
9805           compiler_flags=-v
9806           linker_flags=-v
9807           verstring=
9808           output_objdir=.
9809           libname=conftest
9810           lt_save_allow_undefined_flag=$allow_undefined_flag
9811           allow_undefined_flag=
9812           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9813   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9814   ac_status=$?
9815   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9816   test $ac_status = 0; }
9817           then
9818             lt_cv_archive_cmds_need_lc=no
9819           else
9820             lt_cv_archive_cmds_need_lc=yes
9821           fi
9822           allow_undefined_flag=$lt_save_allow_undefined_flag
9823         else
9824           cat conftest.err 1>&5
9825         fi
9826         $RM conftest*
9827
9828 fi
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9830 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9831       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9832       ;;
9833     esac
9834   fi
9835   ;;
9836 esac
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9990 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9991
9992 if test yes = "$GCC"; then
9993   case $host_os in
9994     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
9995     *) lt_awk_arg='/^libraries:/' ;;
9996   esac
9997   case $host_os in
9998     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
9999     *) lt_sed_strip_eq='s|=/|/|g' ;;
10000   esac
10001   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10002   case $lt_search_path_spec in
10003   *\;*)
10004     # if the path contains ";" then we assume it to be the separator
10005     # otherwise default to the standard path separator (i.e. ":") - it is
10006     # assumed that no part of a normal pathname contains ";" but that should
10007     # okay in the real world where ";" in dirpaths is itself problematic.
10008     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10009     ;;
10010   *)
10011     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10012     ;;
10013   esac
10014   # Ok, now we have the path, separated by spaces, we can step through it
10015   # and add multilib dir if necessary...
10016   lt_tmp_lt_search_path_spec=
10017   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10018   # ...but if some path component already ends with the multilib dir we assume
10019   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10020   case "$lt_multi_os_dir; $lt_search_path_spec " in
10021   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10022     lt_multi_os_dir=
10023     ;;
10024   esac
10025   for lt_sys_path in $lt_search_path_spec; do
10026     if test -d "$lt_sys_path$lt_multi_os_dir"; then
10027       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10028     elif test -n "$lt_multi_os_dir"; then
10029       test -d "$lt_sys_path" && \
10030         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10031     fi
10032   done
10033   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10034 BEGIN {RS = " "; FS = "/|\n";} {
10035   lt_foo = "";
10036   lt_count = 0;
10037   for (lt_i = NF; lt_i > 0; lt_i--) {
10038     if ($lt_i != "" && $lt_i != ".") {
10039       if ($lt_i == "..") {
10040         lt_count++;
10041       } else {
10042         if (lt_count == 0) {
10043           lt_foo = "/" $lt_i lt_foo;
10044         } else {
10045           lt_count--;
10046         }
10047       }
10048     }
10049   }
10050   if (lt_foo != "") { lt_freq[lt_foo]++; }
10051   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10052 }'`
10053   # AWK program above erroneously prepends '/' to C:/dos/paths
10054   # for these hosts.
10055   case $host_os in
10056     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10057       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10058   esac
10059   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10060 else
10061   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10062 fi
10063 library_names_spec=
10064 libname_spec='lib$name'
10065 soname_spec=
10066 shrext_cmds=.so
10067 postinstall_cmds=
10068 postuninstall_cmds=
10069 finish_cmds=
10070 finish_eval=
10071 shlibpath_var=
10072 shlibpath_overrides_runpath=unknown
10073 version_type=none
10074 dynamic_linker="$host_os ld.so"
10075 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10076 need_lib_prefix=unknown
10077 hardcode_into_libs=no
10078
10079 # when you set need_version to no, make sure it does not cause -set_version
10080 # flags to be left without arguments
10081 need_version=unknown
10082
10083
10084
10085 case $host_os in
10086 aix3*)
10087   version_type=linux # correct to gnu/linux during the next big refactor
10088   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10089   shlibpath_var=LIBPATH
10090
10091   # AIX 3 has no versioning support, so we append a major version to the name.
10092   soname_spec='$libname$release$shared_ext$major'
10093   ;;
10094
10095 aix[4-9]*)
10096   version_type=linux # correct to gnu/linux during the next big refactor
10097   need_lib_prefix=no
10098   need_version=no
10099   hardcode_into_libs=yes
10100   if test ia64 = "$host_cpu"; then
10101     # AIX 5 supports IA64
10102     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10103     shlibpath_var=LD_LIBRARY_PATH
10104   else
10105     # With GCC up to 2.95.x, collect2 would create an import file
10106     # for dependence libraries.  The import file would start with
10107     # the line '#! .'.  This would cause the generated library to
10108     # depend on '.', always an invalid library.  This was fixed in
10109     # development snapshots of GCC prior to 3.0.
10110     case $host_os in
10111       aix4 | aix4.[01] | aix4.[01].*)
10112       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10113            echo ' yes '
10114            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10115         :
10116       else
10117         can_build_shared=no
10118       fi
10119       ;;
10120     esac
10121     # Using Import Files as archive members, it is possible to support
10122     # filename-based versioning of shared library archives on AIX. While
10123     # this would work for both with and without runtime linking, it will
10124     # prevent static linking of such archives. So we do filename-based
10125     # shared library versioning with .so extension only, which is used
10126     # when both runtime linking and shared linking is enabled.
10127     # Unfortunately, runtime linking may impact performance, so we do
10128     # not want this to be the default eventually. Also, we use the
10129     # versioned .so libs for executables only if there is the -brtl
10130     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10131     # To allow for filename-based versioning support, we need to create
10132     # libNAME.so.V as an archive file, containing:
10133     # *) an Import File, referring to the versioned filename of the
10134     #    archive as well as the shared archive member, telling the
10135     #    bitwidth (32 or 64) of that shared object, and providing the
10136     #    list of exported symbols of that shared object, eventually
10137     #    decorated with the 'weak' keyword
10138     # *) the shared object with the F_LOADONLY flag set, to really avoid
10139     #    it being seen by the linker.
10140     # At run time we better use the real file rather than another symlink,
10141     # but for link time we create the symlink libNAME.so -> libNAME.so.V
10142
10143     case $with_aix_soname,$aix_use_runtimelinking in
10144     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10145     # soname into executable. Probably we can add versioning support to
10146     # collect2, so additional links can be useful in future.
10147     aix,yes) # traditional libtool
10148       dynamic_linker='AIX unversionable lib.so'
10149       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10150       # instead of lib<name>.a to let people know that these are not
10151       # typical AIX shared libraries.
10152       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10153       ;;
10154     aix,no) # traditional AIX only
10155       dynamic_linker='AIX lib.a(lib.so.V)'
10156       # We preserve .a as extension for shared libraries through AIX4.2
10157       # and later when we are not doing run time linking.
10158       library_names_spec='$libname$release.a $libname.a'
10159       soname_spec='$libname$release$shared_ext$major'
10160       ;;
10161     svr4,*) # full svr4 only
10162       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10163       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10164       # We do not specify a path in Import Files, so LIBPATH fires.
10165       shlibpath_overrides_runpath=yes
10166       ;;
10167     *,yes) # both, prefer svr4
10168       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10169       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10170       # unpreferred sharedlib libNAME.a needs extra handling
10171       postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10172       postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10173       # We do not specify a path in Import Files, so LIBPATH fires.
10174       shlibpath_overrides_runpath=yes
10175       ;;
10176     *,no) # both, prefer aix
10177       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10178       library_names_spec='$libname$release.a $libname.a'
10179       soname_spec='$libname$release$shared_ext$major'
10180       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10181       postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10182       postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10183       ;;
10184     esac
10185     shlibpath_var=LIBPATH
10186   fi
10187   ;;
10188
10189 amigaos*)
10190   case $host_cpu in
10191   powerpc)
10192     # Since July 2007 AmigaOS4 officially supports .so libraries.
10193     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10194     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10195     ;;
10196   m68k)
10197     library_names_spec='$libname.ixlibrary $libname.a'
10198     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10199     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10200     ;;
10201   esac
10202   ;;
10203
10204 beos*)
10205   library_names_spec='$libname$shared_ext'
10206   dynamic_linker="$host_os ld.so"
10207   shlibpath_var=LIBRARY_PATH
10208   ;;
10209
10210 bsdi[45]*)
10211   version_type=linux # correct to gnu/linux during the next big refactor
10212   need_version=no
10213   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10214   soname_spec='$libname$release$shared_ext$major'
10215   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10216   shlibpath_var=LD_LIBRARY_PATH
10217   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10218   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10219   # the default ld.so.conf also contains /usr/contrib/lib and
10220   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10221   # libtool to hard-code these into programs
10222   ;;
10223
10224 cygwin* | mingw* | pw32* | cegcc*)
10225   version_type=windows
10226   shrext_cmds=.dll
10227   need_version=no
10228   need_lib_prefix=no
10229
10230   case $GCC,$cc_basename in
10231   yes,*)
10232     # gcc
10233     library_names_spec='$libname.dll.a'
10234     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10235     postinstall_cmds='base_file=`basename \$file`~
10236       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10237       dldir=$destdir/`dirname \$dlpath`~
10238       test -d \$dldir || mkdir -p \$dldir~
10239       $install_prog $dir/$dlname \$dldir/$dlname~
10240       chmod a+x \$dldir/$dlname~
10241       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10242         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10243       fi'
10244     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10245       dlpath=$dir/\$dldll~
10246        $RM \$dlpath'
10247     shlibpath_overrides_runpath=yes
10248
10249     case $host_os in
10250     cygwin*)
10251       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10252       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10253
10254       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10255       ;;
10256     mingw* | cegcc*)
10257       # MinGW DLLs use traditional 'lib' prefix
10258       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10259       ;;
10260     pw32*)
10261       # pw32 DLLs use 'pw' prefix rather than 'lib'
10262       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10263       ;;
10264     esac
10265     dynamic_linker='Win32 ld.exe'
10266     ;;
10267
10268   *,cl*)
10269     # Native MSVC
10270     libname_spec='$name'
10271     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10272     library_names_spec='$libname.dll.lib'
10273
10274     case $build_os in
10275     mingw*)
10276       sys_lib_search_path_spec=
10277       lt_save_ifs=$IFS
10278       IFS=';'
10279       for lt_path in $LIB
10280       do
10281         IFS=$lt_save_ifs
10282         # Let DOS variable expansion print the short 8.3 style file name.
10283         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10284         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10285       done
10286       IFS=$lt_save_ifs
10287       # Convert to MSYS style.
10288       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10289       ;;
10290     cygwin*)
10291       # Convert to unix form, then to dos form, then back to unix form
10292       # but this time dos style (no spaces!) so that the unix form looks
10293       # like /cygdrive/c/PROGRA~1:/cygdr...
10294       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10295       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10296       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10297       ;;
10298     *)
10299       sys_lib_search_path_spec=$LIB
10300       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10301         # It is most probably a Windows format PATH.
10302         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10303       else
10304         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10305       fi
10306       # FIXME: find the short name or the path components, as spaces are
10307       # common. (e.g. "Program Files" -> "PROGRA~1")
10308       ;;
10309     esac
10310
10311     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10312     postinstall_cmds='base_file=`basename \$file`~
10313       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10314       dldir=$destdir/`dirname \$dlpath`~
10315       test -d \$dldir || mkdir -p \$dldir~
10316       $install_prog $dir/$dlname \$dldir/$dlname'
10317     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10318       dlpath=$dir/\$dldll~
10319        $RM \$dlpath'
10320     shlibpath_overrides_runpath=yes
10321     dynamic_linker='Win32 link.exe'
10322     ;;
10323
10324   *)
10325     # Assume MSVC wrapper
10326     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10327     dynamic_linker='Win32 ld.exe'
10328     ;;
10329   esac
10330   # FIXME: first we should search . and the directory the executable is in
10331   shlibpath_var=PATH
10332   ;;
10333
10334 darwin* | rhapsody*)
10335   dynamic_linker="$host_os dyld"
10336   version_type=darwin
10337   need_lib_prefix=no
10338   need_version=no
10339   library_names_spec='$libname$release$versuffix$shared_ext $libname$release$major$shared_ext $libname$shared_ext'
10340   soname_spec='$libname$release$major$shared_ext'
10341   shlibpath_overrides_runpath=yes
10342   shlibpath_var=DYLD_LIBRARY_PATH
10343   shrext_cmds='`test .$module = .yes && echo .bundle || echo .dylib`'
10344
10345   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10346   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10347   ;;
10348
10349 dgux*)
10350   version_type=linux # correct to gnu/linux during the next big refactor
10351   need_lib_prefix=no
10352   need_version=no
10353   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10354   soname_spec='$libname$release$shared_ext$major'
10355   shlibpath_var=LD_LIBRARY_PATH
10356   ;;
10357
10358 freebsd* | dragonfly*)
10359   # DragonFly does not have aout.  When/if they implement a new
10360   # versioning mechanism, adjust this.
10361   if test -x /usr/bin/objformat; then
10362     objformat=`/usr/bin/objformat`
10363   else
10364     case $host_os in
10365     freebsd[23].*) objformat=aout ;;
10366     *) objformat=elf ;;
10367     esac
10368   fi
10369   # Handle Gentoo/FreeBSD as it was Linux
10370   case $host_vendor in
10371     gentoo)
10372       version_type=linux ;;
10373     *)
10374       version_type=freebsd-$objformat ;;
10375   esac
10376
10377   case $version_type in
10378     freebsd-elf*)
10379       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10380       soname_spec='$libname$release$shared_ext$major'
10381       need_version=no
10382       need_lib_prefix=no
10383       ;;
10384     freebsd-*)
10385       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10386       need_version=yes
10387       ;;
10388     linux)
10389       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10390       soname_spec='${libname}${release}${shared_ext}$major'
10391       need_lib_prefix=no
10392       need_version=no
10393       ;;
10394   esac
10395   shlibpath_var=LD_LIBRARY_PATH
10396   case $host_os in
10397   freebsd2.*)
10398     shlibpath_overrides_runpath=yes
10399     ;;
10400   freebsd3.[01]* | freebsdelf3.[01]*)
10401     shlibpath_overrides_runpath=yes
10402     hardcode_into_libs=yes
10403     ;;
10404   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10405   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10406     shlibpath_overrides_runpath=no
10407     hardcode_into_libs=yes
10408     ;;
10409   *) # from 4.6 on, and DragonFly
10410     shlibpath_overrides_runpath=yes
10411     hardcode_into_libs=yes
10412     ;;
10413   esac
10414   ;;
10415
10416 haiku*)
10417   version_type=linux # correct to gnu/linux during the next big refactor
10418   need_lib_prefix=no
10419   need_version=no
10420   dynamic_linker="$host_os runtime_loader"
10421   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10422   soname_spec='$libname$release$shared_ext$major'
10423   shlibpath_var=LIBRARY_PATH
10424   shlibpath_overrides_runpath=no
10425   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10426   hardcode_into_libs=yes
10427   ;;
10428
10429 hpux9* | hpux10* | hpux11*)
10430   # Give a soname corresponding to the major version so that dld.sl refuses to
10431   # link against other versions.
10432   version_type=sunos
10433   need_lib_prefix=no
10434   need_version=no
10435   case $host_cpu in
10436   ia64*)
10437     shrext_cmds='.so'
10438     hardcode_into_libs=yes
10439     dynamic_linker="$host_os dld.so"
10440     shlibpath_var=LD_LIBRARY_PATH
10441     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10442     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10443     soname_spec='$libname$release$shared_ext$major'
10444     if test 32 = "$HPUX_IA64_MODE"; then
10445       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10446       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10447     else
10448       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10449       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10450     fi
10451     ;;
10452   hppa*64*)
10453     shrext_cmds='.sl'
10454     hardcode_into_libs=yes
10455     dynamic_linker="$host_os dld.sl"
10456     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10457     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10458     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10459     soname_spec='$libname$release$shared_ext$major'
10460     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10461     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10462     ;;
10463   *)
10464     shrext_cmds='.sl'
10465     dynamic_linker="$host_os dld.sl"
10466     shlibpath_var=SHLIB_PATH
10467     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10468     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10469     soname_spec='$libname$release$shared_ext$major'
10470     ;;
10471   esac
10472   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10473   postinstall_cmds='chmod 555 $lib'
10474   # or fails outright, so override atomically:
10475   install_override_mode=555
10476   ;;
10477
10478 interix[3-9]*)
10479   version_type=linux # correct to gnu/linux during the next big refactor
10480   need_lib_prefix=no
10481   need_version=no
10482   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10483   soname_spec='$libname$release$shared_ext$major'
10484   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10485   shlibpath_var=LD_LIBRARY_PATH
10486   shlibpath_overrides_runpath=no
10487   hardcode_into_libs=yes
10488   ;;
10489
10490 irix5* | irix6* | nonstopux*)
10491   case $host_os in
10492     nonstopux*) version_type=nonstopux ;;
10493     *)
10494         if test yes = "$lt_cv_prog_gnu_ld"; then
10495                 version_type=linux # correct to gnu/linux during the next big refactor
10496         else
10497                 version_type=irix
10498         fi ;;
10499   esac
10500   need_lib_prefix=no
10501   need_version=no
10502   soname_spec='$libname$release$shared_ext$major'
10503   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10504   case $host_os in
10505   irix5* | nonstopux*)
10506     libsuff= shlibsuff=
10507     ;;
10508   *)
10509     case $LD in # libtool.m4 will add one of these switches to LD
10510     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10511       libsuff= shlibsuff= libmagic=32-bit;;
10512     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10513       libsuff=32 shlibsuff=N32 libmagic=N32;;
10514     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10515       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10516     *) libsuff= shlibsuff= libmagic=never-match;;
10517     esac
10518     ;;
10519   esac
10520   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10521   shlibpath_overrides_runpath=no
10522   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10523   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10524   hardcode_into_libs=yes
10525   ;;
10526
10527 # No shared lib support for Linux oldld, aout, or coff.
10528 linux*oldld* | linux*aout* | linux*coff*)
10529   dynamic_linker=no
10530   ;;
10531
10532 linux*android*)
10533   version_type=none # Android doesn't support versioned libraries.
10534   need_lib_prefix=no
10535   need_version=no
10536   library_names_spec='$libname$release$shared_ext'
10537   soname_spec='$libname$release$shared_ext'
10538   finish_cmds=
10539   shlibpath_var=LD_LIBRARY_PATH
10540   shlibpath_overrides_runpath=yes
10541
10542   # This implies no fast_install, which is unacceptable.
10543   # Some rework will be needed to allow for fast_install
10544   # before this can be enabled.
10545   hardcode_into_libs=yes
10546
10547   dynamic_linker='Android linker'
10548   # Don't embed -rpath directories since the linker doesn't support them.
10549   hardcode_libdir_flag_spec='-L$libdir'
10550   ;;
10551
10552 # This must be glibc/ELF.
10553 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10554   version_type=linux # correct to gnu/linux during the next big refactor
10555   need_lib_prefix=no
10556   need_version=no
10557   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10558   soname_spec='$libname$release$shared_ext$major'
10559   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10560   shlibpath_var=LD_LIBRARY_PATH
10561   shlibpath_overrides_runpath=no
10562
10563   # Some binutils ld are patched to set DT_RUNPATH
10564   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10565   $as_echo_n "(cached) " >&6
10566 else
10567   lt_cv_shlibpath_overrides_runpath=no
10568     save_LDFLAGS=$LDFLAGS
10569     save_libdir=$libdir
10570     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10571          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10572     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10573 /* end confdefs.h.  */
10574
10575 int
10576 main ()
10577 {
10578
10579   ;
10580   return 0;
10581 }
10582 _ACEOF
10583 if ac_fn_c_try_link "$LINENO"; then :
10584   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10585   lt_cv_shlibpath_overrides_runpath=yes
10586 fi
10587 fi
10588 rm -f core conftest.err conftest.$ac_objext \
10589     conftest$ac_exeext conftest.$ac_ext
10590     LDFLAGS=$save_LDFLAGS
10591     libdir=$save_libdir
10592
10593 fi
10594
10595   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10596
10597   # This implies no fast_install, which is unacceptable.
10598   # Some rework will be needed to allow for fast_install
10599   # before this can be enabled.
10600   hardcode_into_libs=yes
10601
10602   # Ideally, we could use ldconfig to report *all* directores which are
10603   # searched for libraries, however this is still not possible.  Aside from not
10604   # being certain /sbin/ldconfig is available, command
10605   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
10606   # even though it is searched at run-time.  Try to do the best guess by
10607   # appending ld.so.conf contents (and includes) to the search path.
10608   if test -f /etc/ld.so.conf; then
10609     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' ' '`
10610     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10611   fi
10612
10613   # We used to test for /lib/ld.so.1 and disable shared libraries on
10614   # powerpc, because MkLinux only supported shared libraries with the
10615   # GNU dynamic linker.  Since this was broken with cross compilers,
10616   # most powerpc-linux boxes support dynamic linking these days and
10617   # people can always --disable-shared, the test was removed, and we
10618   # assume the GNU/Linux dynamic linker is in use.
10619   dynamic_linker='GNU/Linux ld.so'
10620   ;;
10621
10622 netbsd*)
10623   version_type=sunos
10624   need_lib_prefix=no
10625   need_version=no
10626   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10627     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10628     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10629     dynamic_linker='NetBSD (a.out) ld.so'
10630   else
10631     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10632     soname_spec='$libname$release$shared_ext$major'
10633     dynamic_linker='NetBSD ld.elf_so'
10634   fi
10635   shlibpath_var=LD_LIBRARY_PATH
10636   shlibpath_overrides_runpath=yes
10637   hardcode_into_libs=yes
10638   ;;
10639
10640 newsos6)
10641   version_type=linux # correct to gnu/linux during the next big refactor
10642   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10643   shlibpath_var=LD_LIBRARY_PATH
10644   shlibpath_overrides_runpath=yes
10645   ;;
10646
10647 *nto* | *qnx*)
10648   version_type=qnx
10649   need_lib_prefix=no
10650   need_version=no
10651   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10652   soname_spec='$libname$release$shared_ext$major'
10653   shlibpath_var=LD_LIBRARY_PATH
10654   shlibpath_overrides_runpath=no
10655   hardcode_into_libs=yes
10656   dynamic_linker='ldqnx.so'
10657   ;;
10658
10659 openbsd* | bitrig*)
10660   version_type=sunos
10661   sys_lib_dlsearch_path_spec=/usr/lib
10662   need_lib_prefix=no
10663   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10664     need_version=no
10665   else
10666     need_version=yes
10667   fi
10668   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10669   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10670   shlibpath_var=LD_LIBRARY_PATH
10671   shlibpath_overrides_runpath=yes
10672   ;;
10673
10674 os2*)
10675   libname_spec='$name'
10676   version_type=windows
10677   shrext_cmds=.dll
10678   need_version=no
10679   need_lib_prefix=no
10680   # OS/2 can only load a DLL with a base name of 8 characters or less.
10681   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
10682     v=$($ECHO $release$versuffix | tr -d .-);
10683     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
10684     $ECHO $n$v`$shared_ext'
10685   library_names_spec='${libname}_dll.$libext'
10686   dynamic_linker='OS/2 ld.exe'
10687   shlibpath_var=BEGINLIBPATH
10688   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10689   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10690   postinstall_cmds='base_file=`basename \$file`~
10691     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
10692     dldir=$destdir/`dirname \$dlpath`~
10693     test -d \$dldir || mkdir -p \$dldir~
10694     $install_prog $dir/$dlname \$dldir/$dlname~
10695     chmod a+x \$dldir/$dlname~
10696     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10697       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10698     fi'
10699   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
10700     dlpath=$dir/\$dldll~
10701     $RM \$dlpath'
10702   ;;
10703
10704 osf3* | osf4* | osf5*)
10705   version_type=osf
10706   need_lib_prefix=no
10707   need_version=no
10708   soname_spec='$libname$release$shared_ext$major'
10709   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10710   shlibpath_var=LD_LIBRARY_PATH
10711   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10712   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10713   ;;
10714
10715 rdos*)
10716   dynamic_linker=no
10717   ;;
10718
10719 solaris*)
10720   version_type=linux # correct to gnu/linux during the next big refactor
10721   need_lib_prefix=no
10722   need_version=no
10723   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10724   soname_spec='$libname$release$shared_ext$major'
10725   shlibpath_var=LD_LIBRARY_PATH
10726   shlibpath_overrides_runpath=yes
10727   hardcode_into_libs=yes
10728   # ldd complains unless libraries are executable
10729   postinstall_cmds='chmod +x $lib'
10730   ;;
10731
10732 sunos4*)
10733   version_type=sunos
10734   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10735   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10736   shlibpath_var=LD_LIBRARY_PATH
10737   shlibpath_overrides_runpath=yes
10738   if test yes = "$with_gnu_ld"; then
10739     need_lib_prefix=no
10740   fi
10741   need_version=yes
10742   ;;
10743
10744 sysv4 | sysv4.3*)
10745   version_type=linux # correct to gnu/linux during the next big refactor
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   shlibpath_var=LD_LIBRARY_PATH
10749   case $host_vendor in
10750     sni)
10751       shlibpath_overrides_runpath=no
10752       need_lib_prefix=no
10753       runpath_var=LD_RUN_PATH
10754       ;;
10755     siemens)
10756       need_lib_prefix=no
10757       ;;
10758     motorola)
10759       need_lib_prefix=no
10760       need_version=no
10761       shlibpath_overrides_runpath=no
10762       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10763       ;;
10764   esac
10765   ;;
10766
10767 sysv4*MP*)
10768   if test -d /usr/nec; then
10769     version_type=linux # correct to gnu/linux during the next big refactor
10770     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
10771     soname_spec='$libname$shared_ext.$major'
10772     shlibpath_var=LD_LIBRARY_PATH
10773   fi
10774   ;;
10775
10776 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10777   version_type=sco
10778   need_lib_prefix=no
10779   need_version=no
10780   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
10781   soname_spec='$libname$release$shared_ext$major'
10782   shlibpath_var=LD_LIBRARY_PATH
10783   shlibpath_overrides_runpath=yes
10784   hardcode_into_libs=yes
10785   if test yes = "$with_gnu_ld"; then
10786     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10787   else
10788     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10789     case $host_os in
10790       sco3.2v5*)
10791         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10792         ;;
10793     esac
10794   fi
10795   sys_lib_dlsearch_path_spec='/usr/lib'
10796   ;;
10797
10798 tpf*)
10799   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10800   version_type=linux # correct to gnu/linux during the next big refactor
10801   need_lib_prefix=no
10802   need_version=no
10803   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10804   shlibpath_var=LD_LIBRARY_PATH
10805   shlibpath_overrides_runpath=no
10806   hardcode_into_libs=yes
10807   ;;
10808
10809 uts4*)
10810   version_type=linux # correct to gnu/linux during the next big refactor
10811   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10812   soname_spec='$libname$release$shared_ext$major'
10813   shlibpath_var=LD_LIBRARY_PATH
10814   ;;
10815
10816 *)
10817   dynamic_linker=no
10818   ;;
10819 esac
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10821 $as_echo "$dynamic_linker" >&6; }
10822 test no = "$dynamic_linker" && can_build_shared=no
10823
10824 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10825 if test yes = "$GCC"; then
10826   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10827 fi
10828
10829 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
10830   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
10831 fi
10832
10833 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
10834   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
10835 fi
10836
10837 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
10838 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
10839
10840 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
10841 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
10842
10843 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
10844 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10943 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10944 hardcode_action=
10945 if test -n "$hardcode_libdir_flag_spec" ||
10946    test -n "$runpath_var" ||
10947    test yes = "$hardcode_automatic"; then
10948
10949   # We can hardcode non-existent directories.
10950   if test no != "$hardcode_direct" &&
10951      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10952      # have to relink, otherwise we might link with an installed library
10953      # when we should be linking with a yet-to-be-installed one
10954      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
10955      test no != "$hardcode_minus_L"; then
10956     # Linking always hardcodes the temporary library directory.
10957     hardcode_action=relink
10958   else
10959     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10960     hardcode_action=immediate
10961   fi
10962 else
10963   # We cannot hardcode anything, or else we can only hardcode existing
10964   # directories.
10965   hardcode_action=unsupported
10966 fi
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10968 $as_echo "$hardcode_action" >&6; }
10969
10970 if test relink = "$hardcode_action" ||
10971    test yes = "$inherit_rpath"; then
10972   # Fast installation is not supported
10973   enable_fast_install=no
10974 elif test yes = "$shlibpath_overrides_runpath" ||
10975      test no = "$enable_shared"; then
10976   # Fast installation is not necessary
10977   enable_fast_install=needless
10978 fi
10979
10980
10981
10982
10983
10984
10985   if test yes != "$enable_dlopen"; then
10986   enable_dlopen=unknown
10987   enable_dlopen_self=unknown
10988   enable_dlopen_self_static=unknown
10989 else
10990   lt_cv_dlopen=no
10991   lt_cv_dlopen_libs=
10992
10993   case $host_os in
10994   beos*)
10995     lt_cv_dlopen=load_add_on
10996     lt_cv_dlopen_libs=
10997     lt_cv_dlopen_self=yes
10998     ;;
10999
11000   mingw* | pw32* | cegcc*)
11001     lt_cv_dlopen=LoadLibrary
11002     lt_cv_dlopen_libs=
11003     ;;
11004
11005   cygwin*)
11006     lt_cv_dlopen=dlopen
11007     lt_cv_dlopen_libs=
11008     ;;
11009
11010   darwin*)
11011     # if libdl is installed we need to link against it
11012     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11013 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11014 if ${ac_cv_lib_dl_dlopen+:} false; then :
11015   $as_echo_n "(cached) " >&6
11016 else
11017   ac_check_lib_save_LIBS=$LIBS
11018 LIBS="-ldl  $LIBS"
11019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11020 /* end confdefs.h.  */
11021
11022 /* Override any GCC internal prototype to avoid an error.
11023    Use char because int might match the return type of a GCC
11024    builtin and then its argument prototype would still apply.  */
11025 #ifdef __cplusplus
11026 extern "C"
11027 #endif
11028 char dlopen ();
11029 int
11030 main ()
11031 {
11032 return dlopen ();
11033   ;
11034   return 0;
11035 }
11036 _ACEOF
11037 if ac_fn_c_try_link "$LINENO"; then :
11038   ac_cv_lib_dl_dlopen=yes
11039 else
11040   ac_cv_lib_dl_dlopen=no
11041 fi
11042 rm -f core conftest.err conftest.$ac_objext \
11043     conftest$ac_exeext conftest.$ac_ext
11044 LIBS=$ac_check_lib_save_LIBS
11045 fi
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11047 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11048 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11049   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11050 else
11051
11052     lt_cv_dlopen=dyld
11053     lt_cv_dlopen_libs=
11054     lt_cv_dlopen_self=yes
11055
11056 fi
11057
11058     ;;
11059
11060   tpf*)
11061     # Don't try to run any link tests for TPF.  We know it's impossible
11062     # because TPF is a cross-compiler, and we know how we open DSOs.
11063     lt_cv_dlopen=dlopen
11064     lt_cv_dlopen_libs=
11065     lt_cv_dlopen_self=no
11066     ;;
11067
11068   *)
11069     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11070 if test "x$ac_cv_func_shl_load" = xyes; then :
11071   lt_cv_dlopen=shl_load
11072 else
11073   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11074 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11075 if ${ac_cv_lib_dld_shl_load+:} false; then :
11076   $as_echo_n "(cached) " >&6
11077 else
11078   ac_check_lib_save_LIBS=$LIBS
11079 LIBS="-ldld  $LIBS"
11080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11081 /* end confdefs.h.  */
11082
11083 /* Override any GCC internal prototype to avoid an error.
11084    Use char because int might match the return type of a GCC
11085    builtin and then its argument prototype would still apply.  */
11086 #ifdef __cplusplus
11087 extern "C"
11088 #endif
11089 char shl_load ();
11090 int
11091 main ()
11092 {
11093 return shl_load ();
11094   ;
11095   return 0;
11096 }
11097 _ACEOF
11098 if ac_fn_c_try_link "$LINENO"; then :
11099   ac_cv_lib_dld_shl_load=yes
11100 else
11101   ac_cv_lib_dld_shl_load=no
11102 fi
11103 rm -f core conftest.err conftest.$ac_objext \
11104     conftest$ac_exeext conftest.$ac_ext
11105 LIBS=$ac_check_lib_save_LIBS
11106 fi
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11108 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11109 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11110   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11111 else
11112   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11113 if test "x$ac_cv_func_dlopen" = xyes; then :
11114   lt_cv_dlopen=dlopen
11115 else
11116   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11117 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11118 if ${ac_cv_lib_dl_dlopen+:} false; then :
11119   $as_echo_n "(cached) " >&6
11120 else
11121   ac_check_lib_save_LIBS=$LIBS
11122 LIBS="-ldl  $LIBS"
11123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11124 /* end confdefs.h.  */
11125
11126 /* Override any GCC internal prototype to avoid an error.
11127    Use char because int might match the return type of a GCC
11128    builtin and then its argument prototype would still apply.  */
11129 #ifdef __cplusplus
11130 extern "C"
11131 #endif
11132 char dlopen ();
11133 int
11134 main ()
11135 {
11136 return dlopen ();
11137   ;
11138   return 0;
11139 }
11140 _ACEOF
11141 if ac_fn_c_try_link "$LINENO"; then :
11142   ac_cv_lib_dl_dlopen=yes
11143 else
11144   ac_cv_lib_dl_dlopen=no
11145 fi
11146 rm -f core conftest.err conftest.$ac_objext \
11147     conftest$ac_exeext conftest.$ac_ext
11148 LIBS=$ac_check_lib_save_LIBS
11149 fi
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11151 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11152 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11153   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11154 else
11155   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11156 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11157 if ${ac_cv_lib_svld_dlopen+:} false; then :
11158   $as_echo_n "(cached) " >&6
11159 else
11160   ac_check_lib_save_LIBS=$LIBS
11161 LIBS="-lsvld  $LIBS"
11162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11163 /* end confdefs.h.  */
11164
11165 /* Override any GCC internal prototype to avoid an error.
11166    Use char because int might match the return type of a GCC
11167    builtin and then its argument prototype would still apply.  */
11168 #ifdef __cplusplus
11169 extern "C"
11170 #endif
11171 char dlopen ();
11172 int
11173 main ()
11174 {
11175 return dlopen ();
11176   ;
11177   return 0;
11178 }
11179 _ACEOF
11180 if ac_fn_c_try_link "$LINENO"; then :
11181   ac_cv_lib_svld_dlopen=yes
11182 else
11183   ac_cv_lib_svld_dlopen=no
11184 fi
11185 rm -f core conftest.err conftest.$ac_objext \
11186     conftest$ac_exeext conftest.$ac_ext
11187 LIBS=$ac_check_lib_save_LIBS
11188 fi
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11190 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11191 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11192   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11193 else
11194   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11195 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11196 if ${ac_cv_lib_dld_dld_link+:} false; then :
11197   $as_echo_n "(cached) " >&6
11198 else
11199   ac_check_lib_save_LIBS=$LIBS
11200 LIBS="-ldld  $LIBS"
11201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11202 /* end confdefs.h.  */
11203
11204 /* Override any GCC internal prototype to avoid an error.
11205    Use char because int might match the return type of a GCC
11206    builtin and then its argument prototype would still apply.  */
11207 #ifdef __cplusplus
11208 extern "C"
11209 #endif
11210 char dld_link ();
11211 int
11212 main ()
11213 {
11214 return dld_link ();
11215   ;
11216   return 0;
11217 }
11218 _ACEOF
11219 if ac_fn_c_try_link "$LINENO"; then :
11220   ac_cv_lib_dld_dld_link=yes
11221 else
11222   ac_cv_lib_dld_dld_link=no
11223 fi
11224 rm -f core conftest.err conftest.$ac_objext \
11225     conftest$ac_exeext conftest.$ac_ext
11226 LIBS=$ac_check_lib_save_LIBS
11227 fi
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11229 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11230 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11231   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11232 fi
11233
11234
11235 fi
11236
11237
11238 fi
11239
11240
11241 fi
11242
11243
11244 fi
11245
11246
11247 fi
11248
11249     ;;
11250   esac
11251
11252   if test no = "$lt_cv_dlopen"; then
11253     enable_dlopen=no
11254   else
11255     enable_dlopen=yes
11256   fi
11257
11258   case $lt_cv_dlopen in
11259   dlopen)
11260     save_CPPFLAGS=$CPPFLAGS
11261     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11262
11263     save_LDFLAGS=$LDFLAGS
11264     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11265
11266     save_LIBS=$LIBS
11267     LIBS="$lt_cv_dlopen_libs $LIBS"
11268
11269     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11270 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11271 if ${lt_cv_dlopen_self+:} false; then :
11272   $as_echo_n "(cached) " >&6
11273 else
11274           if test yes = "$cross_compiling"; then :
11275   lt_cv_dlopen_self=cross
11276 else
11277   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11278   lt_status=$lt_dlunknown
11279   cat > conftest.$ac_ext <<_LT_EOF
11280 #line $LINENO "configure"
11281 #include "confdefs.h"
11282
11283 #if HAVE_DLFCN_H
11284 #include <dlfcn.h>
11285 #endif
11286
11287 #include <stdio.h>
11288
11289 #ifdef RTLD_GLOBAL
11290 #  define LT_DLGLOBAL           RTLD_GLOBAL
11291 #else
11292 #  ifdef DL_GLOBAL
11293 #    define LT_DLGLOBAL         DL_GLOBAL
11294 #  else
11295 #    define LT_DLGLOBAL         0
11296 #  endif
11297 #endif
11298
11299 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11300    find out it does not work in some platform. */
11301 #ifndef LT_DLLAZY_OR_NOW
11302 #  ifdef RTLD_LAZY
11303 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11304 #  else
11305 #    ifdef DL_LAZY
11306 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11307 #    else
11308 #      ifdef RTLD_NOW
11309 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11310 #      else
11311 #        ifdef DL_NOW
11312 #          define LT_DLLAZY_OR_NOW      DL_NOW
11313 #        else
11314 #          define LT_DLLAZY_OR_NOW      0
11315 #        endif
11316 #      endif
11317 #    endif
11318 #  endif
11319 #endif
11320
11321 /* When -fvisibility=hidden is used, assume the code has been annotated
11322    correspondingly for the symbols needed.  */
11323 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11324 int fnord () __attribute__((visibility("default")));
11325 #endif
11326
11327 int fnord () { return 42; }
11328 int main ()
11329 {
11330   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11331   int status = $lt_dlunknown;
11332
11333   if (self)
11334     {
11335       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11336       else
11337         {
11338           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11339           else puts (dlerror ());
11340         }
11341       /* dlclose (self); */
11342     }
11343   else
11344     puts (dlerror ());
11345
11346   return status;
11347 }
11348 _LT_EOF
11349   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11350   (eval $ac_link) 2>&5
11351   ac_status=$?
11352   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11353   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11354     (./conftest; exit; ) >&5 2>/dev/null
11355     lt_status=$?
11356     case x$lt_status in
11357       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11358       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11359       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11360     esac
11361   else :
11362     # compilation failed
11363     lt_cv_dlopen_self=no
11364   fi
11365 fi
11366 rm -fr conftest*
11367
11368
11369 fi
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11371 $as_echo "$lt_cv_dlopen_self" >&6; }
11372
11373     if test yes = "$lt_cv_dlopen_self"; then
11374       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11375       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11376 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11377 if ${lt_cv_dlopen_self_static+:} false; then :
11378   $as_echo_n "(cached) " >&6
11379 else
11380           if test yes = "$cross_compiling"; then :
11381   lt_cv_dlopen_self_static=cross
11382 else
11383   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11384   lt_status=$lt_dlunknown
11385   cat > conftest.$ac_ext <<_LT_EOF
11386 #line $LINENO "configure"
11387 #include "confdefs.h"
11388
11389 #if HAVE_DLFCN_H
11390 #include <dlfcn.h>
11391 #endif
11392
11393 #include <stdio.h>
11394
11395 #ifdef RTLD_GLOBAL
11396 #  define LT_DLGLOBAL           RTLD_GLOBAL
11397 #else
11398 #  ifdef DL_GLOBAL
11399 #    define LT_DLGLOBAL         DL_GLOBAL
11400 #  else
11401 #    define LT_DLGLOBAL         0
11402 #  endif
11403 #endif
11404
11405 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11406    find out it does not work in some platform. */
11407 #ifndef LT_DLLAZY_OR_NOW
11408 #  ifdef RTLD_LAZY
11409 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11410 #  else
11411 #    ifdef DL_LAZY
11412 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11413 #    else
11414 #      ifdef RTLD_NOW
11415 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11416 #      else
11417 #        ifdef DL_NOW
11418 #          define LT_DLLAZY_OR_NOW      DL_NOW
11419 #        else
11420 #          define LT_DLLAZY_OR_NOW      0
11421 #        endif
11422 #      endif
11423 #    endif
11424 #  endif
11425 #endif
11426
11427 /* When -fvisibility=hidden is used, assume the code has been annotated
11428    correspondingly for the symbols needed.  */
11429 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11430 int fnord () __attribute__((visibility("default")));
11431 #endif
11432
11433 int fnord () { return 42; }
11434 int main ()
11435 {
11436   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11437   int status = $lt_dlunknown;
11438
11439   if (self)
11440     {
11441       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11442       else
11443         {
11444           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11445           else puts (dlerror ());
11446         }
11447       /* dlclose (self); */
11448     }
11449   else
11450     puts (dlerror ());
11451
11452   return status;
11453 }
11454 _LT_EOF
11455   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11456   (eval $ac_link) 2>&5
11457   ac_status=$?
11458   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11459   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11460     (./conftest; exit; ) >&5 2>/dev/null
11461     lt_status=$?
11462     case x$lt_status in
11463       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11464       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11465       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11466     esac
11467   else :
11468     # compilation failed
11469     lt_cv_dlopen_self_static=no
11470   fi
11471 fi
11472 rm -fr conftest*
11473
11474
11475 fi
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11477 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11478     fi
11479
11480     CPPFLAGS=$save_CPPFLAGS
11481     LDFLAGS=$save_LDFLAGS
11482     LIBS=$save_LIBS
11483     ;;
11484   esac
11485
11486   case $lt_cv_dlopen_self in
11487   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11488   *) enable_dlopen_self=unknown ;;
11489   esac
11490
11491   case $lt_cv_dlopen_self_static in
11492   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11493   *) enable_dlopen_self_static=unknown ;;
11494   esac
11495 fi
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513 striplib=
11514 old_striplib=
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11516 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11517 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11518   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11519   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11521 $as_echo "yes" >&6; }
11522 else
11523 # FIXME - insert some real tests, host_os isn't really good enough
11524   case $host_os in
11525   darwin*)
11526     if test -n "$STRIP"; then
11527       striplib="$STRIP -x"
11528       old_striplib="$STRIP -S"
11529       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11530 $as_echo "yes" >&6; }
11531     else
11532       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11533 $as_echo "no" >&6; }
11534     fi
11535     ;;
11536   *)
11537     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11538 $as_echo "no" >&6; }
11539     ;;
11540   esac
11541 fi
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554   # Report what library types will actually be built
11555   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11556 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11558 $as_echo "$can_build_shared" >&6; }
11559
11560   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11561 $as_echo_n "checking whether to build shared libraries... " >&6; }
11562   test no = "$can_build_shared" && enable_shared=no
11563
11564   # On AIX, shared libraries and static libraries use the same namespace, and
11565   # are all built from PIC.
11566   case $host_os in
11567   aix3*)
11568     test yes = "$enable_shared" && enable_static=no
11569     if test -n "$RANLIB"; then
11570       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11571       postinstall_cmds='$RANLIB $lib'
11572     fi
11573     ;;
11574
11575   aix[4-9]*)
11576     if test ia64 != "$host_cpu"; then
11577       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11578       yes,aix,yes) ;;                   # shared object as lib.so file only
11579       yes,svr4,*) ;;                    # shared object as lib.so archive member only
11580       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
11581       esac
11582     fi
11583     ;;
11584   esac
11585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11586 $as_echo "$enable_shared" >&6; }
11587
11588   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11589 $as_echo_n "checking whether to build static libraries... " >&6; }
11590   # Make sure either enable_shared or enable_static is yes.
11591   test yes = "$enable_shared" || enable_static=yes
11592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11593 $as_echo "$enable_static" >&6; }
11594
11595
11596
11597
11598 fi
11599 ac_ext=c
11600 ac_cpp='$CPP $CPPFLAGS'
11601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11604
11605 CC=$lt_save_CC
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621         ac_config_commands="$ac_config_commands libtool"
11622
11623
11624
11625
11626 # Only expand once:
11627
11628
11629
11630
11631
11632
11633
11634    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11635 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11636 if ${ac_cv_prog_cc_c99+:} false; then :
11637   $as_echo_n "(cached) " >&6
11638 else
11639   ac_cv_prog_cc_c99=no
11640 ac_save_CC=$CC
11641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11642 /* end confdefs.h.  */
11643 #include <stdarg.h>
11644 #include <stdbool.h>
11645 #include <stdlib.h>
11646 #include <wchar.h>
11647 #include <stdio.h>
11648
11649 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
11650 #define debug(...) fprintf (stderr, __VA_ARGS__)
11651 #define showlist(...) puts (#__VA_ARGS__)
11652 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11653 static void
11654 test_varargs_macros (void)
11655 {
11656   int x = 1234;
11657   int y = 5678;
11658   debug ("Flag");
11659   debug ("X = %d\n", x);
11660   showlist (The first, second, and third items.);
11661   report (x>y, "x is %d but y is %d", x, y);
11662 }
11663
11664 // Check long long types.
11665 #define BIG64 18446744073709551615ull
11666 #define BIG32 4294967295ul
11667 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11668 #if !BIG_OK
11669   your preprocessor is broken;
11670 #endif
11671 #if BIG_OK
11672 #else
11673   your preprocessor is broken;
11674 #endif
11675 static long long int bignum = -9223372036854775807LL;
11676 static unsigned long long int ubignum = BIG64;
11677
11678 struct incomplete_array
11679 {
11680   int datasize;
11681   double data[];
11682 };
11683
11684 struct named_init {
11685   int number;
11686   const wchar_t *name;
11687   double average;
11688 };
11689
11690 typedef const char *ccp;
11691
11692 static inline int
11693 test_restrict (ccp restrict text)
11694 {
11695   // See if C++-style comments work.
11696   // Iterate through items via the restricted pointer.
11697   // Also check for declarations in for loops.
11698   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11699     continue;
11700   return 0;
11701 }
11702
11703 // Check varargs and va_copy.
11704 static void
11705 test_varargs (const char *format, ...)
11706 {
11707   va_list args;
11708   va_start (args, format);
11709   va_list args_copy;
11710   va_copy (args_copy, args);
11711
11712   const char *str;
11713   int number;
11714   float fnumber;
11715
11716   while (*format)
11717     {
11718       switch (*format++)
11719         {
11720         case 's': // string
11721           str = va_arg (args_copy, const char *);
11722           break;
11723         case 'd': // int
11724           number = va_arg (args_copy, int);
11725           break;
11726         case 'f': // float
11727           fnumber = va_arg (args_copy, double);
11728           break;
11729         default:
11730           break;
11731         }
11732     }
11733   va_end (args_copy);
11734   va_end (args);
11735 }
11736
11737 int
11738 main ()
11739 {
11740
11741   // Check bool.
11742   _Bool success = false;
11743
11744   // Check restrict.
11745   if (test_restrict ("String literal") == 0)
11746     success = true;
11747   char *restrict newvar = "Another string";
11748
11749   // Check varargs.
11750   test_varargs ("s, d' f .", "string", 65, 34.234);
11751   test_varargs_macros ();
11752
11753   // Check flexible array members.
11754   struct incomplete_array *ia =
11755     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11756   ia->datasize = 10;
11757   for (int i = 0; i < ia->datasize; ++i)
11758     ia->data[i] = i * 1.234;
11759
11760   // Check named initializers.
11761   struct named_init ni = {
11762     .number = 34,
11763     .name = L"Test wide string",
11764     .average = 543.34343,
11765   };
11766
11767   ni.number = 58;
11768
11769   int dynamic_array[ni.number];
11770   dynamic_array[ni.number - 1] = 543;
11771
11772   // work around unused variable warnings
11773   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11774           || dynamic_array[ni.number - 1] != 543);
11775
11776   ;
11777   return 0;
11778 }
11779 _ACEOF
11780 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
11781 do
11782   CC="$ac_save_CC $ac_arg"
11783   if ac_fn_c_try_compile "$LINENO"; then :
11784   ac_cv_prog_cc_c99=$ac_arg
11785 fi
11786 rm -f core conftest.err conftest.$ac_objext
11787   test "x$ac_cv_prog_cc_c99" != "xno" && break
11788 done
11789 rm -f conftest.$ac_ext
11790 CC=$ac_save_CC
11791
11792 fi
11793 # AC_CACHE_VAL
11794 case "x$ac_cv_prog_cc_c99" in
11795   x)
11796     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11797 $as_echo "none needed" >&6; } ;;
11798   xno)
11799     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11800 $as_echo "unsupported" >&6; } ;;
11801   *)
11802     CC="$CC $ac_cv_prog_cc_c99"
11803     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11804 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11805 esac
11806 if test "x$ac_cv_prog_cc_c99" != xno; then :
11807
11808 fi
11809
11810
11811 ac_ext=cpp
11812 ac_cpp='$CXXCPP $CPPFLAGS'
11813 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11814 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11815 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11816 if test -z "$CXX"; then
11817   if test -n "$CCC"; then
11818     CXX=$CCC
11819   else
11820     if test -n "$ac_tool_prefix"; then
11821   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11822   do
11823     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11824 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11826 $as_echo_n "checking for $ac_word... " >&6; }
11827 if ${ac_cv_prog_CXX+:} false; then :
11828   $as_echo_n "(cached) " >&6
11829 else
11830   if test -n "$CXX"; then
11831   ac_cv_prog_CXX="$CXX" # Let the user override the test.
11832 else
11833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11834 for as_dir in $PATH
11835 do
11836   IFS=$as_save_IFS
11837   test -z "$as_dir" && as_dir=.
11838     for ac_exec_ext in '' $ac_executable_extensions; do
11839   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11840     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11841     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11842     break 2
11843   fi
11844 done
11845   done
11846 IFS=$as_save_IFS
11847
11848 fi
11849 fi
11850 CXX=$ac_cv_prog_CXX
11851 if test -n "$CXX"; then
11852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11853 $as_echo "$CXX" >&6; }
11854 else
11855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11856 $as_echo "no" >&6; }
11857 fi
11858
11859
11860     test -n "$CXX" && break
11861   done
11862 fi
11863 if test -z "$CXX"; then
11864   ac_ct_CXX=$CXX
11865   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11866 do
11867   # Extract the first word of "$ac_prog", so it can be a program name with args.
11868 set dummy $ac_prog; ac_word=$2
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11870 $as_echo_n "checking for $ac_word... " >&6; }
11871 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
11872   $as_echo_n "(cached) " >&6
11873 else
11874   if test -n "$ac_ct_CXX"; then
11875   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11876 else
11877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11878 for as_dir in $PATH
11879 do
11880   IFS=$as_save_IFS
11881   test -z "$as_dir" && as_dir=.
11882     for ac_exec_ext in '' $ac_executable_extensions; do
11883   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11884     ac_cv_prog_ac_ct_CXX="$ac_prog"
11885     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11886     break 2
11887   fi
11888 done
11889   done
11890 IFS=$as_save_IFS
11891
11892 fi
11893 fi
11894 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11895 if test -n "$ac_ct_CXX"; then
11896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11897 $as_echo "$ac_ct_CXX" >&6; }
11898 else
11899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11900 $as_echo "no" >&6; }
11901 fi
11902
11903
11904   test -n "$ac_ct_CXX" && break
11905 done
11906
11907   if test "x$ac_ct_CXX" = x; then
11908     CXX="g++"
11909   else
11910     case $cross_compiling:$ac_tool_warned in
11911 yes:)
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11913 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11914 ac_tool_warned=yes ;;
11915 esac
11916     CXX=$ac_ct_CXX
11917   fi
11918 fi
11919
11920   fi
11921 fi
11922 # Provide some information about the compiler.
11923 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11924 set X $ac_compile
11925 ac_compiler=$2
11926 for ac_option in --version -v -V -qversion; do
11927   { { ac_try="$ac_compiler $ac_option >&5"
11928 case "(($ac_try" in
11929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11930   *) ac_try_echo=$ac_try;;
11931 esac
11932 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11933 $as_echo "$ac_try_echo"; } >&5
11934   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11935   ac_status=$?
11936   if test -s conftest.err; then
11937     sed '10a\
11938 ... rest of stderr output deleted ...
11939          10q' conftest.err >conftest.er1
11940     cat conftest.er1 >&5
11941   fi
11942   rm -f conftest.er1 conftest.err
11943   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11944   test $ac_status = 0; }
11945 done
11946
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11948 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11949 if ${ac_cv_cxx_compiler_gnu+:} false; then :
11950   $as_echo_n "(cached) " >&6
11951 else
11952   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11953 /* end confdefs.h.  */
11954
11955 int
11956 main ()
11957 {
11958 #ifndef __GNUC__
11959        choke me
11960 #endif
11961
11962   ;
11963   return 0;
11964 }
11965 _ACEOF
11966 if ac_fn_cxx_try_compile "$LINENO"; then :
11967   ac_compiler_gnu=yes
11968 else
11969   ac_compiler_gnu=no
11970 fi
11971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11972 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11973
11974 fi
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11976 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11977 if test $ac_compiler_gnu = yes; then
11978   GXX=yes
11979 else
11980   GXX=
11981 fi
11982 ac_test_CXXFLAGS=${CXXFLAGS+set}
11983 ac_save_CXXFLAGS=$CXXFLAGS
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11985 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
11986 if ${ac_cv_prog_cxx_g+:} false; then :
11987   $as_echo_n "(cached) " >&6
11988 else
11989   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11990    ac_cxx_werror_flag=yes
11991    ac_cv_prog_cxx_g=no
11992    CXXFLAGS="-g"
11993    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11994 /* end confdefs.h.  */
11995
11996 int
11997 main ()
11998 {
11999
12000   ;
12001   return 0;
12002 }
12003 _ACEOF
12004 if ac_fn_cxx_try_compile "$LINENO"; then :
12005   ac_cv_prog_cxx_g=yes
12006 else
12007   CXXFLAGS=""
12008       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12009 /* end confdefs.h.  */
12010
12011 int
12012 main ()
12013 {
12014
12015   ;
12016   return 0;
12017 }
12018 _ACEOF
12019 if ac_fn_cxx_try_compile "$LINENO"; then :
12020
12021 else
12022   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12023          CXXFLAGS="-g"
12024          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12025 /* end confdefs.h.  */
12026
12027 int
12028 main ()
12029 {
12030
12031   ;
12032   return 0;
12033 }
12034 _ACEOF
12035 if ac_fn_cxx_try_compile "$LINENO"; then :
12036   ac_cv_prog_cxx_g=yes
12037 fi
12038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12039 fi
12040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12041 fi
12042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12043    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12044 fi
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12046 $as_echo "$ac_cv_prog_cxx_g" >&6; }
12047 if test "$ac_test_CXXFLAGS" = set; then
12048   CXXFLAGS=$ac_save_CXXFLAGS
12049 elif test $ac_cv_prog_cxx_g = yes; then
12050   if test "$GXX" = yes; then
12051     CXXFLAGS="-g -O2"
12052   else
12053     CXXFLAGS="-g"
12054   fi
12055 else
12056   if test "$GXX" = yes; then
12057     CXXFLAGS="-O2"
12058   else
12059     CXXFLAGS=
12060   fi
12061 fi
12062 ac_ext=c
12063 ac_cpp='$CPP $CPPFLAGS'
12064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12067
12068
12069
12070 func_stripname_cnf ()
12071 {
12072   case $2 in
12073   .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
12074   *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
12075   esac
12076 } # func_stripname_cnf
12077
12078       if test -n "$CXX" && ( test no != "$CXX" &&
12079     ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
12080     (test g++ != "$CXX"))); 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 yes != "$_lt_caught_CXX_error"; 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   func_cc_basename $compiler
12321 cc_basename=$func_cc_basename_result
12322
12323
12324   if test -n "$compiler"; then
12325     # We don't want -fno-exception when compiling C++ code, so set the
12326     # no_builtin_flag separately
12327     if test yes = "$GXX"; then
12328       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12329     else
12330       lt_prog_compiler_no_builtin_flag_CXX=
12331     fi
12332
12333     if test yes = "$GXX"; then
12334       # Set up default GNU C++ configuration
12335
12336
12337
12338 # Check whether --with-gnu-ld was given.
12339 if test "${with_gnu_ld+set}" = set; then :
12340   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
12341 else
12342   with_gnu_ld=no
12343 fi
12344
12345 ac_prog=ld
12346 if test yes = "$GCC"; then
12347   # Check if gcc -print-prog-name=ld gives a path.
12348   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12349 $as_echo_n "checking for ld used by $CC... " >&6; }
12350   case $host in
12351   *-*-mingw*)
12352     # gcc leaves a trailing carriage return, which upsets mingw
12353     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12354   *)
12355     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12356   esac
12357   case $ac_prog in
12358     # Accept absolute paths.
12359     [\\/]* | ?:[\\/]*)
12360       re_direlt='/[^/][^/]*/\.\./'
12361       # Canonicalize the pathname of ld
12362       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12363       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12364         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12365       done
12366       test -z "$LD" && LD=$ac_prog
12367       ;;
12368   "")
12369     # If it fails, then pretend we aren't using GCC.
12370     ac_prog=ld
12371     ;;
12372   *)
12373     # If it is relative, then search for the first ld in PATH.
12374     with_gnu_ld=unknown
12375     ;;
12376   esac
12377 elif test yes = "$with_gnu_ld"; then
12378   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12379 $as_echo_n "checking for GNU ld... " >&6; }
12380 else
12381   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12382 $as_echo_n "checking for non-GNU ld... " >&6; }
12383 fi
12384 if ${lt_cv_path_LD+:} false; then :
12385   $as_echo_n "(cached) " >&6
12386 else
12387   if test -z "$LD"; then
12388   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12389   for ac_dir in $PATH; do
12390     IFS=$lt_save_ifs
12391     test -z "$ac_dir" && ac_dir=.
12392     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12393       lt_cv_path_LD=$ac_dir/$ac_prog
12394       # Check to see if the program is GNU ld.  I'd rather use --version,
12395       # but apparently some variants of GNU ld only accept -v.
12396       # Break only if it was the GNU/non-GNU ld that we prefer.
12397       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12398       *GNU* | *'with BFD'*)
12399         test no != "$with_gnu_ld" && break
12400         ;;
12401       *)
12402         test yes != "$with_gnu_ld" && break
12403         ;;
12404       esac
12405     fi
12406   done
12407   IFS=$lt_save_ifs
12408 else
12409   lt_cv_path_LD=$LD # Let the user override the test with a path.
12410 fi
12411 fi
12412
12413 LD=$lt_cv_path_LD
12414 if test -n "$LD"; then
12415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12416 $as_echo "$LD" >&6; }
12417 else
12418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12419 $as_echo "no" >&6; }
12420 fi
12421 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12423 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12424 if ${lt_cv_prog_gnu_ld+:} false; then :
12425   $as_echo_n "(cached) " >&6
12426 else
12427   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12428 case `$LD -v 2>&1 </dev/null` in
12429 *GNU* | *'with BFD'*)
12430   lt_cv_prog_gnu_ld=yes
12431   ;;
12432 *)
12433   lt_cv_prog_gnu_ld=no
12434   ;;
12435 esac
12436 fi
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12438 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12439 with_gnu_ld=$lt_cv_prog_gnu_ld
12440
12441
12442
12443
12444
12445
12446
12447       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12448       # archiving commands below assume that GNU ld is being used.
12449       if test yes = "$with_gnu_ld"; then
12450         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
12451         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'
12452
12453         hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
12454         export_dynamic_flag_spec_CXX='$wl--export-dynamic'
12455
12456         # If archive_cmds runs LD, not CC, wlarc should be empty
12457         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12458         #     investigate it a little bit more. (MM)
12459         wlarc='$wl'
12460
12461         # ancient GNU ld didn't support --whole-archive et. al.
12462         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12463           $GREP 'no-whole-archive' > /dev/null; then
12464           whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12465         else
12466           whole_archive_flag_spec_CXX=
12467         fi
12468       else
12469         with_gnu_ld=no
12470         wlarc=
12471
12472         # A generic and very simple default shared library creation
12473         # command for GNU C++ for the case where it uses the native
12474         # linker, instead of GNU ld.  If possible, this setting should
12475         # overridden to take advantage of the native linker features on
12476         # the platform it is being used on.
12477         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12478       fi
12479
12480       # Commands to make compiler produce verbose output that lists
12481       # what "hidden" libraries, object files and flags are used when
12482       # linking a shared library.
12483       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12484
12485     else
12486       GXX=no
12487       with_gnu_ld=no
12488       wlarc=
12489     fi
12490
12491     # PORTME: fill in a description of your system's C++ link characteristics
12492     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12493 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12494     ld_shlibs_CXX=yes
12495     case $host_os in
12496       aix3*)
12497         # FIXME: insert proper C++ library support
12498         ld_shlibs_CXX=no
12499         ;;
12500       aix[4-9]*)
12501         if test ia64 = "$host_cpu"; then
12502           # On IA64, the linker does run time linking by default, so we don't
12503           # have to do anything special.
12504           aix_use_runtimelinking=no
12505           exp_sym_flag='-Bexport'
12506           no_entry_flag=
12507         else
12508           aix_use_runtimelinking=no
12509
12510           # Test if we are trying to use run time linking or normal
12511           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12512           # have runtime linking enabled, and use it for executables.
12513           # For shared libraries, we enable/disable runtime linking
12514           # depending on the kind of the shared library created -
12515           # when "with_aix_soname,aix_use_runtimelinking" is:
12516           # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
12517           # "aix,yes"  lib.so          shared, rtl:yes, for executables
12518           #            lib.a           static archive
12519           # "both,no"  lib.so.V(shr.o) shared, rtl:yes
12520           #            lib.a(lib.so.V) shared, rtl:no,  for executables
12521           # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12522           #            lib.a(lib.so.V) shared, rtl:no
12523           # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
12524           #            lib.a           static archive
12525           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12526             for ld_flag in $LDFLAGS; do
12527               case $ld_flag in
12528               *-brtl*)
12529                 aix_use_runtimelinking=yes
12530                 break
12531                 ;;
12532               esac
12533             done
12534             if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12535               # With aix-soname=svr4, we create the lib.so.V shared archives only,
12536               # so we don't have lib.a shared libs to link our executables.
12537               # We have to force runtime linking in this case.
12538               aix_use_runtimelinking=yes
12539               LDFLAGS="$LDFLAGS -Wl,-brtl"
12540             fi
12541             ;;
12542           esac
12543
12544           exp_sym_flag='-bexport'
12545           no_entry_flag='-bnoentry'
12546         fi
12547
12548         # When large executables or shared objects are built, AIX ld can
12549         # have problems creating the table of contents.  If linking a library
12550         # or program results in "error TOC overflow" add -mminimal-toc to
12551         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12552         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12553
12554         archive_cmds_CXX=''
12555         hardcode_direct_CXX=yes
12556         hardcode_direct_absolute_CXX=yes
12557         hardcode_libdir_separator_CXX=':'
12558         link_all_deplibs_CXX=yes
12559         file_list_spec_CXX='$wl-f,'
12560         case $with_aix_soname,$aix_use_runtimelinking in
12561         aix,*) ;;       # no import file
12562         svr4,* | *,yes) # use import file
12563           # The Import File defines what to hardcode.
12564           hardcode_direct_CXX=no
12565           hardcode_direct_absolute_CXX=no
12566           ;;
12567         esac
12568
12569         if test yes = "$GXX"; then
12570           case $host_os in aix4.[012]|aix4.[012].*)
12571           # We only want to do this on AIX 4.2 and lower, the check
12572           # below for broken collect2 doesn't work under 4.3+
12573           collect2name=`$CC -print-prog-name=collect2`
12574           if test -f "$collect2name" &&
12575              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12576           then
12577             # We have reworked collect2
12578             :
12579           else
12580             # We have old collect2
12581             hardcode_direct_CXX=unsupported
12582             # It fails to find uninstalled libraries when the uninstalled
12583             # path is not listed in the libpath.  Setting hardcode_minus_L
12584             # to unsupported forces relinking
12585             hardcode_minus_L_CXX=yes
12586             hardcode_libdir_flag_spec_CXX='-L$libdir'
12587             hardcode_libdir_separator_CXX=
12588           fi
12589           esac
12590           shared_flag='-shared'
12591           if test yes = "$aix_use_runtimelinking"; then
12592             shared_flag=$shared_flag' $wl-G'
12593           fi
12594           # Need to ensure runtime linking is disabled for the traditional
12595           # shared library, or the linker may eventually find shared libraries
12596           # /with/ Import File - we do not want to mix them.
12597           shared_flag_aix='-shared'
12598           shared_flag_svr4='-shared $wl-G'
12599         else
12600           # not using gcc
12601           if test ia64 = "$host_cpu"; then
12602           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12603           # chokes on -Wl,-G. The following line is correct:
12604           shared_flag='-G'
12605           else
12606             if test yes = "$aix_use_runtimelinking"; then
12607               shared_flag='$wl-G'
12608             else
12609               shared_flag='$wl-bM:SRE'
12610             fi
12611             shared_flag_aix='$wl-bM:SRE'
12612             shared_flag_svr4='$wl-G'
12613           fi
12614         fi
12615
12616         export_dynamic_flag_spec_CXX='$wl-bexpall'
12617         # It seems that -bexpall does not export symbols beginning with
12618         # underscore (_), so it is better to generate a list of symbols to
12619         # export.
12620         always_export_symbols_CXX=yes
12621         if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12622           # Warning - without using the other runtime loading flags (-brtl),
12623           # -berok will link without error, but may produce a broken library.
12624           # The "-G" linker flag allows undefined symbols.
12625           no_undefined_flag_CXX='-bernotok'
12626           # Determine the default libpath from the value encoded in an empty
12627           # executable.
12628           if test set = "${lt_cv_aix_libpath+set}"; then
12629   aix_libpath=$lt_cv_aix_libpath
12630 else
12631   if ${lt_cv_aix_libpath__CXX+:} false; then :
12632   $as_echo_n "(cached) " >&6
12633 else
12634   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12635 /* end confdefs.h.  */
12636
12637 int
12638 main ()
12639 {
12640
12641   ;
12642   return 0;
12643 }
12644 _ACEOF
12645 if ac_fn_cxx_try_link "$LINENO"; then :
12646
12647   lt_aix_libpath_sed='
12648       /Import File Strings/,/^$/ {
12649           /^0/ {
12650               s/^0  *\([^ ]*\) *$/\1/
12651               p
12652           }
12653       }'
12654   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12655   # Check for a 64-bit object if we didn't find anything.
12656   if test -z "$lt_cv_aix_libpath__CXX"; then
12657     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12658   fi
12659 fi
12660 rm -f core conftest.err conftest.$ac_objext \
12661     conftest$ac_exeext conftest.$ac_ext
12662   if test -z "$lt_cv_aix_libpath__CXX"; then
12663     lt_cv_aix_libpath__CXX=/usr/lib:/lib
12664   fi
12665
12666 fi
12667
12668   aix_libpath=$lt_cv_aix_libpath__CXX
12669 fi
12670
12671           hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
12672
12673           archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
12674         else
12675           if test ia64 = "$host_cpu"; then
12676             hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
12677             allow_undefined_flag_CXX="-z nodefs"
12678             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"
12679           else
12680             # Determine the default libpath from the value encoded in an
12681             # empty executable.
12682             if test set = "${lt_cv_aix_libpath+set}"; then
12683   aix_libpath=$lt_cv_aix_libpath
12684 else
12685   if ${lt_cv_aix_libpath__CXX+:} false; then :
12686   $as_echo_n "(cached) " >&6
12687 else
12688   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12689 /* end confdefs.h.  */
12690
12691 int
12692 main ()
12693 {
12694
12695   ;
12696   return 0;
12697 }
12698 _ACEOF
12699 if ac_fn_cxx_try_link "$LINENO"; then :
12700
12701   lt_aix_libpath_sed='
12702       /Import File Strings/,/^$/ {
12703           /^0/ {
12704               s/^0  *\([^ ]*\) *$/\1/
12705               p
12706           }
12707       }'
12708   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12709   # Check for a 64-bit object if we didn't find anything.
12710   if test -z "$lt_cv_aix_libpath__CXX"; then
12711     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12712   fi
12713 fi
12714 rm -f core conftest.err conftest.$ac_objext \
12715     conftest$ac_exeext conftest.$ac_ext
12716   if test -z "$lt_cv_aix_libpath__CXX"; then
12717     lt_cv_aix_libpath__CXX=/usr/lib:/lib
12718   fi
12719
12720 fi
12721
12722   aix_libpath=$lt_cv_aix_libpath__CXX
12723 fi
12724
12725             hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
12726             # Warning - without using the other run time loading flags,
12727             # -berok will link without error, but may produce a broken library.
12728             no_undefined_flag_CXX=' $wl-bernotok'
12729             allow_undefined_flag_CXX=' $wl-berok'
12730             if test yes = "$with_gnu_ld"; then
12731               # We only use this code for GNU lds that support --whole-archive.
12732               whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
12733             else
12734               # Exported symbols can be pulled into shared objects from archives
12735               whole_archive_flag_spec_CXX='$convenience'
12736             fi
12737             archive_cmds_need_lc_CXX=yes
12738             archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12739             # -brtl affects multiple linker settings, -berok does not and is overridden later
12740             compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12741             if test svr4 != "$with_aix_soname"; then
12742               # This is similar to how AIX traditionally builds its shared
12743               # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
12744               archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
12745             fi
12746             if test aix != "$with_aix_soname"; then
12747               archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
12748             else
12749               # used by -dlpreopen to get the symbols
12750               archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
12751             fi
12752             archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
12753           fi
12754         fi
12755         ;;
12756
12757       beos*)
12758         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12759           allow_undefined_flag_CXX=unsupported
12760           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12761           # support --undefined.  This deserves some investigation.  FIXME
12762           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12763         else
12764           ld_shlibs_CXX=no
12765         fi
12766         ;;
12767
12768       chorus*)
12769         case $cc_basename in
12770           *)
12771           # FIXME: insert proper C++ library support
12772           ld_shlibs_CXX=no
12773           ;;
12774         esac
12775         ;;
12776
12777       cygwin* | mingw* | pw32* | cegcc*)
12778         case $GXX,$cc_basename in
12779         ,cl* | no,cl*)
12780           # Native MSVC
12781           # hardcode_libdir_flag_spec is actually meaningless, as there is
12782           # no search path for DLLs.
12783           hardcode_libdir_flag_spec_CXX=' '
12784           allow_undefined_flag_CXX=unsupported
12785           always_export_symbols_CXX=yes
12786           file_list_spec_CXX='@'
12787           # Tell ltmain to make .lib files, not .a files.
12788           libext=lib
12789           # Tell ltmain to make .dll files, not .so files.
12790           shrext_cmds=.dll
12791           # FIXME: Setting linknames here is a bad hack.
12792           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12793           archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[     ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
12794               cp "$export_symbols" "$output_objdir/$soname.def";
12795               echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12796             else
12797               $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12798             fi~
12799             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12800             linknames='
12801           # The linker will not automatically build a static lib if we build a DLL.
12802           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12803           enable_shared_with_static_runtimes_CXX=yes
12804           # Don't use ranlib
12805           old_postinstall_cmds_CXX='chmod 644 $oldlib'
12806           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12807             lt_tool_outputfile="@TOOL_OUTPUT@"~
12808             case $lt_outputfile in
12809               *.exe|*.EXE) ;;
12810               *)
12811                 lt_outputfile=$lt_outputfile.exe
12812                 lt_tool_outputfile=$lt_tool_outputfile.exe
12813                 ;;
12814             esac~
12815             func_to_tool_file "$lt_outputfile"~
12816             if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12817               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12818               $RM "$lt_outputfile.manifest";
12819             fi'
12820           ;;
12821         *)
12822           # g++
12823           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12824           # as there is no search path for DLLs.
12825           hardcode_libdir_flag_spec_CXX='-L$libdir'
12826           export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
12827           allow_undefined_flag_CXX=unsupported
12828           always_export_symbols_CXX=no
12829           enable_shared_with_static_runtimes_CXX=yes
12830
12831           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12832             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'
12833             # If the export-symbols file already is a .def file, use it as
12834             # is; otherwise, prepend EXPORTS...
12835             archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
12836               cp $export_symbols $output_objdir/$soname.def;
12837             else
12838               echo EXPORTS > $output_objdir/$soname.def;
12839               cat $export_symbols >> $output_objdir/$soname.def;
12840             fi~
12841             $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'
12842           else
12843             ld_shlibs_CXX=no
12844           fi
12845           ;;
12846         esac
12847         ;;
12848       darwin* | rhapsody*)
12849
12850
12851   archive_cmds_need_lc_CXX=no
12852   hardcode_direct_CXX=no
12853   hardcode_automatic_CXX=yes
12854   hardcode_shlibpath_var_CXX=unsupported
12855   if test yes = "$lt_cv_ld_force_load"; then
12856     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\"`'
12857
12858   else
12859     whole_archive_flag_spec_CXX=''
12860   fi
12861   link_all_deplibs_CXX=yes
12862   allow_undefined_flag_CXX=$_lt_dar_allow_undefined
12863   case $cc_basename in
12864      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12865      *) _lt_dar_can_shared=$GCC ;;
12866   esac
12867   if test yes = "$_lt_dar_can_shared"; then
12868     output_verbose_link_cmd=func_echo_all
12869     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"
12870     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12871     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"
12872     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"
12873        if test yes != "$lt_cv_apple_cc_single_mod"; then
12874       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"
12875       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"
12876     fi
12877
12878   else
12879   ld_shlibs_CXX=no
12880   fi
12881
12882         ;;
12883
12884       os2*)
12885         hardcode_libdir_flag_spec_CXX='-L$libdir'
12886         hardcode_minus_L_CXX=yes
12887         allow_undefined_flag_CXX=unsupported
12888         shrext_cmds=.dll
12889         archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12890           $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12891           $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12892           $ECHO EXPORTS >> $output_objdir/$libname.def~
12893           emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12894           $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12895           emximp -o $lib $output_objdir/$libname.def'
12896         archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12897           $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12898           $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12899           $ECHO EXPORTS >> $output_objdir/$libname.def~
12900           prefix_cmds="$SED"~
12901           if test EXPORTS = "`$SED 1q $export_symbols`"; then
12902             prefix_cmds="$prefix_cmds -e 1d";
12903           fi~
12904           prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12905           cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12906           $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12907           emximp -o $lib $output_objdir/$libname.def'
12908         old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12909         enable_shared_with_static_runtimes_CXX=yes
12910         ;;
12911
12912       dgux*)
12913         case $cc_basename in
12914           ec++*)
12915             # FIXME: insert proper C++ library support
12916             ld_shlibs_CXX=no
12917             ;;
12918           ghcx*)
12919             # Green Hills C++ Compiler
12920             # FIXME: insert proper C++ library support
12921             ld_shlibs_CXX=no
12922             ;;
12923           *)
12924             # FIXME: insert proper C++ library support
12925             ld_shlibs_CXX=no
12926             ;;
12927         esac
12928         ;;
12929
12930       freebsd2.*)
12931         # C++ shared libraries reported to be fairly broken before
12932         # switch to ELF
12933         ld_shlibs_CXX=no
12934         ;;
12935
12936       freebsd-elf*)
12937         archive_cmds_need_lc_CXX=no
12938         ;;
12939
12940       freebsd* | dragonfly*)
12941         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12942         # conventions
12943         ld_shlibs_CXX=yes
12944         ;;
12945
12946       haiku*)
12947         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12948         link_all_deplibs_CXX=yes
12949         ;;
12950
12951       hpux9*)
12952         hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
12953         hardcode_libdir_separator_CXX=:
12954         export_dynamic_flag_spec_CXX='$wl-E'
12955         hardcode_direct_CXX=yes
12956         hardcode_minus_L_CXX=yes # Not in the search PATH,
12957                                              # but as the default
12958                                              # location of the library.
12959
12960         case $cc_basename in
12961           CC*)
12962             # FIXME: insert proper C++ library support
12963             ld_shlibs_CXX=no
12964             ;;
12965           aCC*)
12966             archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
12967             # Commands to make compiler produce verbose output that lists
12968             # what "hidden" libraries, object files and flags are used when
12969             # linking a shared library.
12970             #
12971             # There doesn't appear to be a way to prevent this compiler from
12972             # explicitly linking system object files so we need to strip them
12973             # from the output so that they don't get included in the library
12974             # dependencies.
12975             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"'
12976             ;;
12977           *)
12978             if test yes = "$GXX"; then
12979               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
12980             else
12981               # FIXME: insert proper C++ library support
12982               ld_shlibs_CXX=no
12983             fi
12984             ;;
12985         esac
12986         ;;
12987
12988       hpux10*|hpux11*)
12989         if test no = "$with_gnu_ld"; then
12990           hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
12991           hardcode_libdir_separator_CXX=:
12992
12993           case $host_cpu in
12994             hppa*64*|ia64*)
12995               ;;
12996             *)
12997               export_dynamic_flag_spec_CXX='$wl-E'
12998               ;;
12999           esac
13000         fi
13001         case $host_cpu in
13002           hppa*64*|ia64*)
13003             hardcode_direct_CXX=no
13004             hardcode_shlibpath_var_CXX=no
13005             ;;
13006           *)
13007             hardcode_direct_CXX=yes
13008             hardcode_direct_absolute_CXX=yes
13009             hardcode_minus_L_CXX=yes # Not in the search PATH,
13010                                                  # but as the default
13011                                                  # location of the library.
13012             ;;
13013         esac
13014
13015         case $cc_basename in
13016           CC*)
13017             # FIXME: insert proper C++ library support
13018             ld_shlibs_CXX=no
13019             ;;
13020           aCC*)
13021             case $host_cpu in
13022               hppa*64*)
13023                 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13024                 ;;
13025               ia64*)
13026                 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13027                 ;;
13028               *)
13029                 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13030                 ;;
13031             esac
13032             # Commands to make compiler produce verbose output that lists
13033             # what "hidden" libraries, object files and flags are used when
13034             # linking a shared library.
13035             #
13036             # There doesn't appear to be a way to prevent this compiler from
13037             # explicitly linking system object files so we need to strip them
13038             # from the output so that they don't get included in the library
13039             # dependencies.
13040             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"'
13041             ;;
13042           *)
13043             if test yes = "$GXX"; then
13044               if test no = "$with_gnu_ld"; then
13045                 case $host_cpu in
13046                   hppa*64*)
13047                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13048                     ;;
13049                   ia64*)
13050                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13051                     ;;
13052                   *)
13053                     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'
13054                     ;;
13055                 esac
13056               fi
13057             else
13058               # FIXME: insert proper C++ library support
13059               ld_shlibs_CXX=no
13060             fi
13061             ;;
13062         esac
13063         ;;
13064
13065       interix[3-9]*)
13066         hardcode_direct_CXX=no
13067         hardcode_shlibpath_var_CXX=no
13068         hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13069         export_dynamic_flag_spec_CXX='$wl-E'
13070         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13071         # Instead, shared libraries are loaded at an image base (0x10000000 by
13072         # default) and relocated if they conflict, which is a slow very memory
13073         # consuming and fragmenting process.  To avoid this, we pick a random,
13074         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13075         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13076         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'
13077         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'
13078         ;;
13079       irix5* | irix6*)
13080         case $cc_basename in
13081           CC*)
13082             # SGI C++
13083             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'
13084
13085             # Archives containing C++ object files must be created using
13086             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13087             # necessary to make sure instantiated templates are included
13088             # in the archive.
13089             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13090             ;;
13091           *)
13092             if test yes = "$GXX"; then
13093               if test no = "$with_gnu_ld"; then
13094                 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'
13095               else
13096                 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'
13097               fi
13098             fi
13099             link_all_deplibs_CXX=yes
13100             ;;
13101         esac
13102         hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13103         hardcode_libdir_separator_CXX=:
13104         inherit_rpath_CXX=yes
13105         ;;
13106
13107       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13108         case $cc_basename in
13109           KCC*)
13110             # Kuck and Associates, Inc. (KAI) C++ Compiler
13111
13112             # KCC will only create a shared library if the output file
13113             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13114             # to its proper name (with version) after linking.
13115             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'
13116             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'
13117             # Commands to make compiler produce verbose output that lists
13118             # what "hidden" libraries, object files and flags are used when
13119             # linking a shared library.
13120             #
13121             # There doesn't appear to be a way to prevent this compiler from
13122             # explicitly linking system object files so we need to strip them
13123             # from the output so that they don't get included in the library
13124             # dependencies.
13125             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"'
13126
13127             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13128             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13129
13130             # Archives containing C++ object files must be created using
13131             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13132             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13133             ;;
13134           icpc* | ecpc* )
13135             # Intel C++
13136             with_gnu_ld=yes
13137             # version 8.0 and above of icpc choke on multiply defined symbols
13138             # if we add $predep_objects and $postdep_objects, however 7.1 and
13139             # earlier do not add the objects themselves.
13140             case `$CC -V 2>&1` in
13141               *"Version 7."*)
13142                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13143                 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'
13144                 ;;
13145               *)  # Version 8.0 or newer
13146                 tmp_idyn=
13147                 case $host_cpu in
13148                   ia64*) tmp_idyn=' -i_dynamic';;
13149                 esac
13150                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13151                 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'
13152                 ;;
13153             esac
13154             archive_cmds_need_lc_CXX=no
13155             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13156             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13157             whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13158             ;;
13159           pgCC* | pgcpp*)
13160             # Portland Group C++ compiler
13161             case `$CC -V` in
13162             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13163               prelink_cmds_CXX='tpldir=Template.dir~
13164                rm -rf $tpldir~
13165                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13166                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13167               old_archive_cmds_CXX='tpldir=Template.dir~
13168                 rm -rf $tpldir~
13169                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13170                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13171                 $RANLIB $oldlib'
13172               archive_cmds_CXX='tpldir=Template.dir~
13173                 rm -rf $tpldir~
13174                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13175                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13176               archive_expsym_cmds_CXX='tpldir=Template.dir~
13177                 rm -rf $tpldir~
13178                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13179                 $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'
13180               ;;
13181             *) # Version 6 and above use weak symbols
13182               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13183               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'
13184               ;;
13185             esac
13186
13187             hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
13188             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13189             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'
13190             ;;
13191           cxx*)
13192             # Compaq C++
13193             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13194             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'
13195
13196             runpath_var=LD_RUN_PATH
13197             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13198             hardcode_libdir_separator_CXX=:
13199
13200             # Commands to make compiler produce verbose output that lists
13201             # what "hidden" libraries, object files and flags are used when
13202             # linking a shared library.
13203             #
13204             # There doesn't appear to be a way to prevent this compiler from
13205             # explicitly linking system object files so we need to strip them
13206             # from the output so that they don't get included in the library
13207             # dependencies.
13208             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'
13209             ;;
13210           xl* | mpixl* | bgxl*)
13211             # IBM XL 8.0 on PPC, with GNU ld
13212             hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13213             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13214             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13215             if test yes = "$supports_anon_versioning"; then
13216               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13217                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13218                 echo "local: *; };" >> $output_objdir/$libname.ver~
13219                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
13220             fi
13221             ;;
13222           *)
13223             case `$CC -V 2>&1 | sed 5q` in
13224             *Sun\ C*)
13225               # Sun C++ 5.9
13226               no_undefined_flag_CXX=' -zdefs'
13227               archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13228               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'
13229               hardcode_libdir_flag_spec_CXX='-R$libdir'
13230               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'
13231               compiler_needs_object_CXX=yes
13232
13233               # Not sure whether something based on
13234               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13235               # would be better.
13236               output_verbose_link_cmd='func_echo_all'
13237
13238               # Archives containing C++ object files must be created using
13239               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13240               # necessary to make sure instantiated templates are included
13241               # in the archive.
13242               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13243               ;;
13244             esac
13245             ;;
13246         esac
13247         ;;
13248
13249       lynxos*)
13250         # FIXME: insert proper C++ library support
13251         ld_shlibs_CXX=no
13252         ;;
13253
13254       m88k*)
13255         # FIXME: insert proper C++ library support
13256         ld_shlibs_CXX=no
13257         ;;
13258
13259       mvs*)
13260         case $cc_basename in
13261           cxx*)
13262             # FIXME: insert proper C++ library support
13263             ld_shlibs_CXX=no
13264             ;;
13265           *)
13266             # FIXME: insert proper C++ library support
13267             ld_shlibs_CXX=no
13268             ;;
13269         esac
13270         ;;
13271
13272       netbsd*)
13273         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13274           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13275           wlarc=
13276           hardcode_libdir_flag_spec_CXX='-R$libdir'
13277           hardcode_direct_CXX=yes
13278           hardcode_shlibpath_var_CXX=no
13279         fi
13280         # Workaround some broken pre-1.5 toolchains
13281         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13282         ;;
13283
13284       *nto* | *qnx*)
13285         ld_shlibs_CXX=yes
13286         ;;
13287
13288       openbsd* | bitrig*)
13289         if test -f /usr/libexec/ld.so; then
13290           hardcode_direct_CXX=yes
13291           hardcode_shlibpath_var_CXX=no
13292           hardcode_direct_absolute_CXX=yes
13293           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13294           hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13295           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
13296             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
13297             export_dynamic_flag_spec_CXX='$wl-E'
13298             whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13299           fi
13300           output_verbose_link_cmd=func_echo_all
13301         else
13302           ld_shlibs_CXX=no
13303         fi
13304         ;;
13305
13306       osf3* | osf4* | osf5*)
13307         case $cc_basename in
13308           KCC*)
13309             # Kuck and Associates, Inc. (KAI) C++ Compiler
13310
13311             # KCC will only create a shared library if the output file
13312             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13313             # to its proper name (with version) after linking.
13314             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'
13315
13316             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13317             hardcode_libdir_separator_CXX=:
13318
13319             # Archives containing C++ object files must be created using
13320             # the KAI C++ compiler.
13321             case $host in
13322               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13323               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13324             esac
13325             ;;
13326           RCC*)
13327             # Rational C++ 2.4.1
13328             # FIXME: insert proper C++ library support
13329             ld_shlibs_CXX=no
13330             ;;
13331           cxx*)
13332             case $host in
13333               osf3*)
13334                 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
13335                 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'
13336                 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13337                 ;;
13338               *)
13339                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13340                 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'
13341                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13342                   echo "-hidden">> $lib.exp~
13343                   $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~
13344                   $RM $lib.exp'
13345                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13346                 ;;
13347             esac
13348
13349             hardcode_libdir_separator_CXX=:
13350
13351             # Commands to make compiler produce verbose output that lists
13352             # what "hidden" libraries, object files and flags are used when
13353             # linking a shared library.
13354             #
13355             # There doesn't appear to be a way to prevent this compiler from
13356             # explicitly linking system object files so we need to strip them
13357             # from the output so that they don't get included in the library
13358             # dependencies.
13359             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"'
13360             ;;
13361           *)
13362             if test yes,no = "$GXX,$with_gnu_ld"; then
13363               allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
13364               case $host in
13365                 osf3*)
13366                   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'
13367                   ;;
13368                 *)
13369                   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'
13370                   ;;
13371               esac
13372
13373               hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13374               hardcode_libdir_separator_CXX=:
13375
13376               # Commands to make compiler produce verbose output that lists
13377               # what "hidden" libraries, object files and flags are used when
13378               # linking a shared library.
13379               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13380
13381             else
13382               # FIXME: insert proper C++ library support
13383               ld_shlibs_CXX=no
13384             fi
13385             ;;
13386         esac
13387         ;;
13388
13389       psos*)
13390         # FIXME: insert proper C++ library support
13391         ld_shlibs_CXX=no
13392         ;;
13393
13394       sunos4*)
13395         case $cc_basename in
13396           CC*)
13397             # Sun C++ 4.x
13398             # FIXME: insert proper C++ library support
13399             ld_shlibs_CXX=no
13400             ;;
13401           lcc*)
13402             # Lucid
13403             # FIXME: insert proper C++ library support
13404             ld_shlibs_CXX=no
13405             ;;
13406           *)
13407             # FIXME: insert proper C++ library support
13408             ld_shlibs_CXX=no
13409             ;;
13410         esac
13411         ;;
13412
13413       solaris*)
13414         case $cc_basename in
13415           CC* | sunCC*)
13416             # Sun C++ 4.2, 5.x and Centerline C++
13417             archive_cmds_need_lc_CXX=yes
13418             no_undefined_flag_CXX=' -zdefs'
13419             archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13420             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13421               $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'
13422
13423             hardcode_libdir_flag_spec_CXX='-R$libdir'
13424             hardcode_shlibpath_var_CXX=no
13425             case $host_os in
13426               solaris2.[0-5] | solaris2.[0-5].*) ;;
13427               *)
13428                 # The compiler driver will combine and reorder linker options,
13429                 # but understands '-z linker_flag'.
13430                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13431                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13432                 ;;
13433             esac
13434             link_all_deplibs_CXX=yes
13435
13436             output_verbose_link_cmd='func_echo_all'
13437
13438             # Archives containing C++ object files must be created using
13439             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13440             # necessary to make sure instantiated templates are included
13441             # in the archive.
13442             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13443             ;;
13444           gcx*)
13445             # Green Hills C++ Compiler
13446             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
13447
13448             # The C++ compiler must be used to create the archive.
13449             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13450             ;;
13451           *)
13452             # GNU C++ compiler with Solaris linker
13453             if test yes,no = "$GXX,$with_gnu_ld"; then
13454               no_undefined_flag_CXX=' $wl-z ${wl}defs'
13455               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13456                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
13457                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13458                   $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13459
13460                 # Commands to make compiler produce verbose output that lists
13461                 # what "hidden" libraries, object files and flags are used when
13462                 # linking a shared library.
13463                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13464               else
13465                 # g++ 2.7 appears to require '-G' NOT '-shared' on this
13466                 # platform.
13467                 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
13468                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13469                   $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13470
13471                 # Commands to make compiler produce verbose output that lists
13472                 # what "hidden" libraries, object files and flags are used when
13473                 # linking a shared library.
13474                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13475               fi
13476
13477               hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
13478               case $host_os in
13479                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13480                 *)
13481                   whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13482                   ;;
13483               esac
13484             fi
13485             ;;
13486         esac
13487         ;;
13488
13489     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13490       no_undefined_flag_CXX='$wl-z,text'
13491       archive_cmds_need_lc_CXX=no
13492       hardcode_shlibpath_var_CXX=no
13493       runpath_var='LD_RUN_PATH'
13494
13495       case $cc_basename in
13496         CC*)
13497           archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13498           archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13499           ;;
13500         *)
13501           archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13502           archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13503           ;;
13504       esac
13505       ;;
13506
13507       sysv5* | sco3.2v5* | sco5v6*)
13508         # Note: We CANNOT use -z defs as we might desire, because we do not
13509         # link with -lc, and that would cause any symbols used from libc to
13510         # always be unresolved, which means just about no library would
13511         # ever link correctly.  If we're not using GNU ld we use -z text
13512         # though, which does catch some bad symbols but isn't as heavy-handed
13513         # as -z defs.
13514         no_undefined_flag_CXX='$wl-z,text'
13515         allow_undefined_flag_CXX='$wl-z,nodefs'
13516         archive_cmds_need_lc_CXX=no
13517         hardcode_shlibpath_var_CXX=no
13518         hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
13519         hardcode_libdir_separator_CXX=':'
13520         link_all_deplibs_CXX=yes
13521         export_dynamic_flag_spec_CXX='$wl-Bexport'
13522         runpath_var='LD_RUN_PATH'
13523
13524         case $cc_basename in
13525           CC*)
13526             archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13527             archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13528             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13529               '"$old_archive_cmds_CXX"
13530             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13531               '"$reload_cmds_CXX"
13532             ;;
13533           *)
13534             archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13535             archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13536             ;;
13537         esac
13538       ;;
13539
13540       tandem*)
13541         case $cc_basename in
13542           NCC*)
13543             # NonStop-UX NCC 3.20
13544             # FIXME: insert proper C++ library support
13545             ld_shlibs_CXX=no
13546             ;;
13547           *)
13548             # FIXME: insert proper C++ library support
13549             ld_shlibs_CXX=no
13550             ;;
13551         esac
13552         ;;
13553
13554       vxworks*)
13555         # FIXME: insert proper C++ library support
13556         ld_shlibs_CXX=no
13557         ;;
13558
13559       *)
13560         # FIXME: insert proper C++ library support
13561         ld_shlibs_CXX=no
13562         ;;
13563     esac
13564
13565     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13566 $as_echo "$ld_shlibs_CXX" >&6; }
13567     test no = "$ld_shlibs_CXX" && can_build_shared=no
13568
13569     GCC_CXX=$GXX
13570     LD_CXX=$LD
13571
13572     ## CAVEAT EMPTOR:
13573     ## There is no encapsulation within the following macros, do not change
13574     ## the running order or otherwise move them around unless you know exactly
13575     ## what you are doing...
13576     # Dependencies to place before and after the object being linked:
13577 predep_objects_CXX=
13578 postdep_objects_CXX=
13579 predeps_CXX=
13580 postdeps_CXX=
13581 compiler_lib_search_path_CXX=
13582
13583 cat > conftest.$ac_ext <<_LT_EOF
13584 class Foo
13585 {
13586 public:
13587   Foo (void) { a = 0; }
13588 private:
13589   int a;
13590 };
13591 _LT_EOF
13592
13593
13594 _lt_libdeps_save_CFLAGS=$CFLAGS
13595 case "$CC $CFLAGS " in #(
13596 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13597 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13598 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13599 esac
13600
13601 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13602   (eval $ac_compile) 2>&5
13603   ac_status=$?
13604   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13605   test $ac_status = 0; }; then
13606   # Parse the compiler output and extract the necessary
13607   # objects, libraries and library flags.
13608
13609   # Sentinel used to keep track of whether or not we are before
13610   # the conftest object file.
13611   pre_test_object_deps_done=no
13612
13613   for p in `eval "$output_verbose_link_cmd"`; do
13614     case $prev$p in
13615
13616     -L* | -R* | -l*)
13617        # Some compilers place space between "-{L,R}" and the path.
13618        # Remove the space.
13619        if test x-L = "$p" ||
13620           test x-R = "$p"; then
13621          prev=$p
13622          continue
13623        fi
13624
13625        # Expand the sysroot to ease extracting the directories later.
13626        if test -z "$prev"; then
13627          case $p in
13628          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13629          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13630          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13631          esac
13632        fi
13633        case $p in
13634        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13635        esac
13636        if test no = "$pre_test_object_deps_done"; then
13637          case $prev in
13638          -L | -R)
13639            # Internal compiler library paths should come after those
13640            # provided the user.  The postdeps already come after the
13641            # user supplied libs so there is no need to process them.
13642            if test -z "$compiler_lib_search_path_CXX"; then
13643              compiler_lib_search_path_CXX=$prev$p
13644            else
13645              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
13646            fi
13647            ;;
13648          # The "-l" case would never come before the object being
13649          # linked, so don't bother handling this case.
13650          esac
13651        else
13652          if test -z "$postdeps_CXX"; then
13653            postdeps_CXX=$prev$p
13654          else
13655            postdeps_CXX="${postdeps_CXX} $prev$p"
13656          fi
13657        fi
13658        prev=
13659        ;;
13660
13661     *.lto.$objext) ;; # Ignore GCC LTO objects
13662     *.$objext)
13663        # This assumes that the test object file only shows up
13664        # once in the compiler output.
13665        if test "$p" = "conftest.$objext"; then
13666          pre_test_object_deps_done=yes
13667          continue
13668        fi
13669
13670        if test no = "$pre_test_object_deps_done"; then
13671          if test -z "$predep_objects_CXX"; then
13672            predep_objects_CXX=$p
13673          else
13674            predep_objects_CXX="$predep_objects_CXX $p"
13675          fi
13676        else
13677          if test -z "$postdep_objects_CXX"; then
13678            postdep_objects_CXX=$p
13679          else
13680            postdep_objects_CXX="$postdep_objects_CXX $p"
13681          fi
13682        fi
13683        ;;
13684
13685     *) ;; # Ignore the rest.
13686
13687     esac
13688   done
13689
13690   # Clean up.
13691   rm -f a.out a.exe
13692 else
13693   echo "libtool.m4: error: problem compiling CXX test program"
13694 fi
13695
13696 $RM -f confest.$objext
13697 CFLAGS=$_lt_libdeps_save_CFLAGS
13698
13699 # PORTME: override above test on systems where it is broken
13700 case $host_os in
13701 interix[3-9]*)
13702   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13703   # hack all around it, let's just trust "g++" to DTRT.
13704   predep_objects_CXX=
13705   postdep_objects_CXX=
13706   postdeps_CXX=
13707   ;;
13708 esac
13709
13710
13711 case " $postdeps_CXX " in
13712 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13713 esac
13714  compiler_lib_search_dirs_CXX=
13715 if test -n "${compiler_lib_search_path_CXX}"; then
13716  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
13717 fi
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749     lt_prog_compiler_wl_CXX=
13750 lt_prog_compiler_pic_CXX=
13751 lt_prog_compiler_static_CXX=
13752
13753
13754   # C++ specific cases for pic, static, wl, etc.
13755   if test yes = "$GXX"; then
13756     lt_prog_compiler_wl_CXX='-Wl,'
13757     lt_prog_compiler_static_CXX='-static'
13758
13759     case $host_os in
13760     aix*)
13761       # All AIX code is PIC.
13762       if test ia64 = "$host_cpu"; then
13763         # AIX 5 now supports IA64 processor
13764         lt_prog_compiler_static_CXX='-Bstatic'
13765       fi
13766       lt_prog_compiler_pic_CXX='-fPIC'
13767       ;;
13768
13769     amigaos*)
13770       case $host_cpu in
13771       powerpc)
13772             # see comment about AmigaOS4 .so support
13773             lt_prog_compiler_pic_CXX='-fPIC'
13774         ;;
13775       m68k)
13776             # FIXME: we need at least 68020 code to build shared libraries, but
13777             # adding the '-m68020' flag to GCC prevents building anything better,
13778             # like '-m68040'.
13779             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13780         ;;
13781       esac
13782       ;;
13783
13784     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13785       # PIC is the default for these OSes.
13786       ;;
13787     mingw* | cygwin* | os2* | pw32* | cegcc*)
13788       # This hack is so that the source file can tell whether it is being
13789       # built for inclusion in a dll (and should export symbols for example).
13790       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13791       # (--disable-auto-import) libraries
13792       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13793       case $host_os in
13794       os2*)
13795         lt_prog_compiler_static_CXX='$wl-static'
13796         ;;
13797       esac
13798       ;;
13799     darwin* | rhapsody*)
13800       # PIC is the default on this platform
13801       # Common symbols not allowed in MH_DYLIB files
13802       lt_prog_compiler_pic_CXX='-fno-common'
13803       ;;
13804     *djgpp*)
13805       # DJGPP does not support shared libraries at all
13806       lt_prog_compiler_pic_CXX=
13807       ;;
13808     haiku*)
13809       # PIC is the default for Haiku.
13810       # The "-static" flag exists, but is broken.
13811       lt_prog_compiler_static_CXX=
13812       ;;
13813     interix[3-9]*)
13814       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13815       # Instead, we relocate shared libraries at runtime.
13816       ;;
13817     sysv4*MP*)
13818       if test -d /usr/nec; then
13819         lt_prog_compiler_pic_CXX=-Kconform_pic
13820       fi
13821       ;;
13822     hpux*)
13823       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13824       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13825       # sets the default TLS model and affects inlining.
13826       case $host_cpu in
13827       hppa*64*)
13828         ;;
13829       *)
13830         lt_prog_compiler_pic_CXX='-fPIC'
13831         ;;
13832       esac
13833       ;;
13834     *qnx* | *nto*)
13835       # QNX uses GNU C++, but need to define -shared option too, otherwise
13836       # it will coredump.
13837       lt_prog_compiler_pic_CXX='-fPIC -shared'
13838       ;;
13839     *)
13840       lt_prog_compiler_pic_CXX='-fPIC'
13841       ;;
13842     esac
13843   else
13844     case $host_os in
13845       aix[4-9]*)
13846         # All AIX code is PIC.
13847         if test ia64 = "$host_cpu"; then
13848           # AIX 5 now supports IA64 processor
13849           lt_prog_compiler_static_CXX='-Bstatic'
13850         else
13851           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13852         fi
13853         ;;
13854       chorus*)
13855         case $cc_basename in
13856         cxch68*)
13857           # Green Hills C++ Compiler
13858           # _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"
13859           ;;
13860         esac
13861         ;;
13862       mingw* | cygwin* | os2* | pw32* | cegcc*)
13863         # This hack is so that the source file can tell whether it is being
13864         # built for inclusion in a dll (and should export symbols for example).
13865         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13866         ;;
13867       dgux*)
13868         case $cc_basename in
13869           ec++*)
13870             lt_prog_compiler_pic_CXX='-KPIC'
13871             ;;
13872           ghcx*)
13873             # Green Hills C++ Compiler
13874             lt_prog_compiler_pic_CXX='-pic'
13875             ;;
13876           *)
13877             ;;
13878         esac
13879         ;;
13880       freebsd* | dragonfly*)
13881         # FreeBSD uses GNU C++
13882         ;;
13883       hpux9* | hpux10* | hpux11*)
13884         case $cc_basename in
13885           CC*)
13886             lt_prog_compiler_wl_CXX='-Wl,'
13887             lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
13888             if test ia64 != "$host_cpu"; then
13889               lt_prog_compiler_pic_CXX='+Z'
13890             fi
13891             ;;
13892           aCC*)
13893             lt_prog_compiler_wl_CXX='-Wl,'
13894             lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
13895             case $host_cpu in
13896             hppa*64*|ia64*)
13897               # +Z the default
13898               ;;
13899             *)
13900               lt_prog_compiler_pic_CXX='+Z'
13901               ;;
13902             esac
13903             ;;
13904           *)
13905             ;;
13906         esac
13907         ;;
13908       interix*)
13909         # This is c89, which is MS Visual C++ (no shared libs)
13910         # Anyone wants to do a port?
13911         ;;
13912       irix5* | irix6* | nonstopux*)
13913         case $cc_basename in
13914           CC*)
13915             lt_prog_compiler_wl_CXX='-Wl,'
13916             lt_prog_compiler_static_CXX='-non_shared'
13917             # CC pic flag -KPIC is the default.
13918             ;;
13919           *)
13920             ;;
13921         esac
13922         ;;
13923       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13924         case $cc_basename in
13925           KCC*)
13926             # KAI C++ Compiler
13927             lt_prog_compiler_wl_CXX='--backend -Wl,'
13928             lt_prog_compiler_pic_CXX='-fPIC'
13929             ;;
13930           ecpc* )
13931             # old Intel C++ for x86_64, which still supported -KPIC.
13932             lt_prog_compiler_wl_CXX='-Wl,'
13933             lt_prog_compiler_pic_CXX='-KPIC'
13934             lt_prog_compiler_static_CXX='-static'
13935             ;;
13936           icpc* )
13937             # Intel C++, used to be incompatible with GCC.
13938             # ICC 10 doesn't accept -KPIC any more.
13939             lt_prog_compiler_wl_CXX='-Wl,'
13940             lt_prog_compiler_pic_CXX='-fPIC'
13941             lt_prog_compiler_static_CXX='-static'
13942             ;;
13943           pgCC* | pgcpp*)
13944             # Portland Group C++ compiler
13945             lt_prog_compiler_wl_CXX='-Wl,'
13946             lt_prog_compiler_pic_CXX='-fpic'
13947             lt_prog_compiler_static_CXX='-Bstatic'
13948             ;;
13949           cxx*)
13950             # Compaq C++
13951             # Make sure the PIC flag is empty.  It appears that all Alpha
13952             # Linux and Compaq Tru64 Unix objects are PIC.
13953             lt_prog_compiler_pic_CXX=
13954             lt_prog_compiler_static_CXX='-non_shared'
13955             ;;
13956           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13957             # IBM XL 8.0, 9.0 on PPC and BlueGene
13958             lt_prog_compiler_wl_CXX='-Wl,'
13959             lt_prog_compiler_pic_CXX='-qpic'
13960             lt_prog_compiler_static_CXX='-qstaticlink'
13961             ;;
13962           *)
13963             case `$CC -V 2>&1 | sed 5q` in
13964             *Sun\ C*)
13965               # Sun C++ 5.9
13966               lt_prog_compiler_pic_CXX='-KPIC'
13967               lt_prog_compiler_static_CXX='-Bstatic'
13968               lt_prog_compiler_wl_CXX='-Qoption ld '
13969               ;;
13970             esac
13971             ;;
13972         esac
13973         ;;
13974       lynxos*)
13975         ;;
13976       m88k*)
13977         ;;
13978       mvs*)
13979         case $cc_basename in
13980           cxx*)
13981             lt_prog_compiler_pic_CXX='-W c,exportall'
13982             ;;
13983           *)
13984             ;;
13985         esac
13986         ;;
13987       netbsd*)
13988         ;;
13989       *qnx* | *nto*)
13990         # QNX uses GNU C++, but need to define -shared option too, otherwise
13991         # it will coredump.
13992         lt_prog_compiler_pic_CXX='-fPIC -shared'
13993         ;;
13994       osf3* | osf4* | osf5*)
13995         case $cc_basename in
13996           KCC*)
13997             lt_prog_compiler_wl_CXX='--backend -Wl,'
13998             ;;
13999           RCC*)
14000             # Rational C++ 2.4.1
14001             lt_prog_compiler_pic_CXX='-pic'
14002             ;;
14003           cxx*)
14004             # Digital/Compaq C++
14005             lt_prog_compiler_wl_CXX='-Wl,'
14006             # Make sure the PIC flag is empty.  It appears that all Alpha
14007             # Linux and Compaq Tru64 Unix objects are PIC.
14008             lt_prog_compiler_pic_CXX=
14009             lt_prog_compiler_static_CXX='-non_shared'
14010             ;;
14011           *)
14012             ;;
14013         esac
14014         ;;
14015       psos*)
14016         ;;
14017       solaris*)
14018         case $cc_basename in
14019           CC* | sunCC*)
14020             # Sun C++ 4.2, 5.x and Centerline C++
14021             lt_prog_compiler_pic_CXX='-KPIC'
14022             lt_prog_compiler_static_CXX='-Bstatic'
14023             lt_prog_compiler_wl_CXX='-Qoption ld '
14024             ;;
14025           gcx*)
14026             # Green Hills C++ Compiler
14027             lt_prog_compiler_pic_CXX='-PIC'
14028             ;;
14029           *)
14030             ;;
14031         esac
14032         ;;
14033       sunos4*)
14034         case $cc_basename in
14035           CC*)
14036             # Sun C++ 4.x
14037             lt_prog_compiler_pic_CXX='-pic'
14038             lt_prog_compiler_static_CXX='-Bstatic'
14039             ;;
14040           lcc*)
14041             # Lucid
14042             lt_prog_compiler_pic_CXX='-pic'
14043             ;;
14044           *)
14045             ;;
14046         esac
14047         ;;
14048       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14049         case $cc_basename in
14050           CC*)
14051             lt_prog_compiler_wl_CXX='-Wl,'
14052             lt_prog_compiler_pic_CXX='-KPIC'
14053             lt_prog_compiler_static_CXX='-Bstatic'
14054             ;;
14055         esac
14056         ;;
14057       tandem*)
14058         case $cc_basename in
14059           NCC*)
14060             # NonStop-UX NCC 3.20
14061             lt_prog_compiler_pic_CXX='-KPIC'
14062             ;;
14063           *)
14064             ;;
14065         esac
14066         ;;
14067       vxworks*)
14068         ;;
14069       *)
14070         lt_prog_compiler_can_build_shared_CXX=no
14071         ;;
14072     esac
14073   fi
14074
14075 case $host_os in
14076   # For platforms that do not support PIC, -DPIC is meaningless:
14077   *djgpp*)
14078     lt_prog_compiler_pic_CXX=
14079     ;;
14080   *)
14081     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14082     ;;
14083 esac
14084
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14086 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14087 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14088   $as_echo_n "(cached) " >&6
14089 else
14090   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14091 fi
14092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14093 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14094 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14095
14096 #
14097 # Check to make sure the PIC flag actually works.
14098 #
14099 if test -n "$lt_prog_compiler_pic_CXX"; then
14100   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14101 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14102 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14103   $as_echo_n "(cached) " >&6
14104 else
14105   lt_cv_prog_compiler_pic_works_CXX=no
14106    ac_outfile=conftest.$ac_objext
14107    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14108    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
14109    # Insert the option either (1) after the last *FLAGS variable, or
14110    # (2) before a word containing "conftest.", or (3) at the end.
14111    # Note that $ac_compile itself does not contain backslashes and begins
14112    # with a dollar sign (not a hyphen), so the echo should work correctly.
14113    # The option is referenced via a variable to avoid confusing sed.
14114    lt_compile=`echo "$ac_compile" | $SED \
14115    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14116    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14117    -e 's:$: $lt_compiler_flag:'`
14118    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14119    (eval "$lt_compile" 2>conftest.err)
14120    ac_status=$?
14121    cat conftest.err >&5
14122    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123    if (exit $ac_status) && test -s "$ac_outfile"; then
14124      # The compiler can only warn and ignore the option if not recognized
14125      # So say no if there are warnings other than the usual output.
14126      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14127      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14128      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14129        lt_cv_prog_compiler_pic_works_CXX=yes
14130      fi
14131    fi
14132    $RM conftest*
14133
14134 fi
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14136 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14137
14138 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
14139     case $lt_prog_compiler_pic_CXX in
14140      "" | " "*) ;;
14141      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14142      esac
14143 else
14144     lt_prog_compiler_pic_CXX=
14145      lt_prog_compiler_can_build_shared_CXX=no
14146 fi
14147
14148 fi
14149
14150
14151
14152
14153
14154 #
14155 # Check to make sure the static flag actually works.
14156 #
14157 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14159 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14160 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14161   $as_echo_n "(cached) " >&6
14162 else
14163   lt_cv_prog_compiler_static_works_CXX=no
14164    save_LDFLAGS=$LDFLAGS
14165    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14166    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14167    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14168      # The linker can only warn and ignore the option if not recognized
14169      # So say no if there are warnings
14170      if test -s conftest.err; then
14171        # Append any errors to the config.log.
14172        cat conftest.err 1>&5
14173        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14174        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14175        if diff conftest.exp conftest.er2 >/dev/null; then
14176          lt_cv_prog_compiler_static_works_CXX=yes
14177        fi
14178      else
14179        lt_cv_prog_compiler_static_works_CXX=yes
14180      fi
14181    fi
14182    $RM -r conftest*
14183    LDFLAGS=$save_LDFLAGS
14184
14185 fi
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14187 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14188
14189 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
14190     :
14191 else
14192     lt_prog_compiler_static_CXX=
14193 fi
14194
14195
14196
14197
14198     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14199 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14200 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14201   $as_echo_n "(cached) " >&6
14202 else
14203   lt_cv_prog_compiler_c_o_CXX=no
14204    $RM -r conftest 2>/dev/null
14205    mkdir conftest
14206    cd conftest
14207    mkdir out
14208    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14209
14210    lt_compiler_flag="-o out/conftest2.$ac_objext"
14211    # Insert the option either (1) after the last *FLAGS variable, or
14212    # (2) before a word containing "conftest.", or (3) at the end.
14213    # Note that $ac_compile itself does not contain backslashes and begins
14214    # with a dollar sign (not a hyphen), so the echo should work correctly.
14215    lt_compile=`echo "$ac_compile" | $SED \
14216    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14217    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14218    -e 's:$: $lt_compiler_flag:'`
14219    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14220    (eval "$lt_compile" 2>out/conftest.err)
14221    ac_status=$?
14222    cat out/conftest.err >&5
14223    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14225    then
14226      # The compiler can only warn and ignore the option if not recognized
14227      # So say no if there are warnings
14228      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14229      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14230      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14231        lt_cv_prog_compiler_c_o_CXX=yes
14232      fi
14233    fi
14234    chmod u+w . 2>&5
14235    $RM conftest*
14236    # SGI C++ compiler will create directory out/ii_files/ for
14237    # template instantiation
14238    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14239    $RM out/* && rmdir out
14240    cd ..
14241    $RM -r conftest
14242    $RM conftest*
14243
14244 fi
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14246 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14247
14248
14249
14250     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14251 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14252 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14253   $as_echo_n "(cached) " >&6
14254 else
14255   lt_cv_prog_compiler_c_o_CXX=no
14256    $RM -r conftest 2>/dev/null
14257    mkdir conftest
14258    cd conftest
14259    mkdir out
14260    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14261
14262    lt_compiler_flag="-o out/conftest2.$ac_objext"
14263    # Insert the option either (1) after the last *FLAGS variable, or
14264    # (2) before a word containing "conftest.", or (3) at the end.
14265    # Note that $ac_compile itself does not contain backslashes and begins
14266    # with a dollar sign (not a hyphen), so the echo should work correctly.
14267    lt_compile=`echo "$ac_compile" | $SED \
14268    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14269    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14270    -e 's:$: $lt_compiler_flag:'`
14271    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14272    (eval "$lt_compile" 2>out/conftest.err)
14273    ac_status=$?
14274    cat out/conftest.err >&5
14275    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14276    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14277    then
14278      # The compiler can only warn and ignore the option if not recognized
14279      # So say no if there are warnings
14280      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14281      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14282      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14283        lt_cv_prog_compiler_c_o_CXX=yes
14284      fi
14285    fi
14286    chmod u+w . 2>&5
14287    $RM conftest*
14288    # SGI C++ compiler will create directory out/ii_files/ for
14289    # template instantiation
14290    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14291    $RM out/* && rmdir out
14292    cd ..
14293    $RM -r conftest
14294    $RM conftest*
14295
14296 fi
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14298 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14299
14300
14301
14302
14303 hard_links=nottested
14304 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
14305   # do not overwrite the value of need_locks provided by the user
14306   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14307 $as_echo_n "checking if we can lock with hard links... " >&6; }
14308   hard_links=yes
14309   $RM conftest*
14310   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14311   touch conftest.a
14312   ln conftest.a conftest.b 2>&5 || hard_links=no
14313   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14315 $as_echo "$hard_links" >&6; }
14316   if test no = "$hard_links"; then
14317     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
14318 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
14319     need_locks=warn
14320   fi
14321 else
14322   need_locks=no
14323 fi
14324
14325
14326
14327     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14328 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14329
14330   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14331   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14332   case $host_os in
14333   aix[4-9]*)
14334     # If we're using GNU nm, then we don't want the "-C" option.
14335     # -C means demangle to GNU nm, but means don't demangle to AIX nm.
14336     # Without the "-l" option, or with the "-B" option, AIX nm treats
14337     # weak defined symbols like other global defined symbols, whereas
14338     # GNU nm marks them as "W".
14339     # While the 'weak' keyword is ignored in the Export File, we need
14340     # it in the Import File for the 'aix-soname' feature, so we have
14341     # to replace the "-B" option with "-P" for AIX nm.
14342     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14343       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
14344     else
14345       export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
14346     fi
14347     ;;
14348   pw32*)
14349     export_symbols_cmds_CXX=$ltdll_cmds
14350     ;;
14351   cygwin* | mingw* | cegcc*)
14352     case $cc_basename in
14353     cl*)
14354       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14355       ;;
14356     *)
14357       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'
14358       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14359       ;;
14360     esac
14361     ;;
14362   *)
14363     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14364     ;;
14365   esac
14366
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14368 $as_echo "$ld_shlibs_CXX" >&6; }
14369 test no = "$ld_shlibs_CXX" && can_build_shared=no
14370
14371 with_gnu_ld_CXX=$with_gnu_ld
14372
14373
14374
14375
14376
14377
14378 #
14379 # Do we need to explicitly link libc?
14380 #
14381 case "x$archive_cmds_need_lc_CXX" in
14382 x|xyes)
14383   # Assume -lc should be added
14384   archive_cmds_need_lc_CXX=yes
14385
14386   if test yes,yes = "$GCC,$enable_shared"; then
14387     case $archive_cmds_CXX in
14388     *'~'*)
14389       # FIXME: we may have to deal with multi-command sequences.
14390       ;;
14391     '$CC '*)
14392       # Test whether the compiler implicitly links with -lc since on some
14393       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14394       # to ld, don't add -lc before -lgcc.
14395       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14396 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14397 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14398   $as_echo_n "(cached) " >&6
14399 else
14400   $RM conftest*
14401         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14402
14403         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14404   (eval $ac_compile) 2>&5
14405   ac_status=$?
14406   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14407   test $ac_status = 0; } 2>conftest.err; then
14408           soname=conftest
14409           lib=conftest
14410           libobjs=conftest.$ac_objext
14411           deplibs=
14412           wl=$lt_prog_compiler_wl_CXX
14413           pic_flag=$lt_prog_compiler_pic_CXX
14414           compiler_flags=-v
14415           linker_flags=-v
14416           verstring=
14417           output_objdir=.
14418           libname=conftest
14419           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14420           allow_undefined_flag_CXX=
14421           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14422   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14423   ac_status=$?
14424   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14425   test $ac_status = 0; }
14426           then
14427             lt_cv_archive_cmds_need_lc_CXX=no
14428           else
14429             lt_cv_archive_cmds_need_lc_CXX=yes
14430           fi
14431           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14432         else
14433           cat conftest.err 1>&5
14434         fi
14435         $RM conftest*
14436
14437 fi
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14439 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14440       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14441       ;;
14442     esac
14443   fi
14444   ;;
14445 esac
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
14483
14484
14485
14486
14487
14488
14489
14490
14491
14492
14493
14494
14495
14496
14497
14498
14499
14500
14501
14502
14503
14504
14505
14506
14507
14508     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14509 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14510
14511 library_names_spec=
14512 libname_spec='lib$name'
14513 soname_spec=
14514 shrext_cmds=.so
14515 postinstall_cmds=
14516 postuninstall_cmds=
14517 finish_cmds=
14518 finish_eval=
14519 shlibpath_var=
14520 shlibpath_overrides_runpath=unknown
14521 version_type=none
14522 dynamic_linker="$host_os ld.so"
14523 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14524 need_lib_prefix=unknown
14525 hardcode_into_libs=no
14526
14527 # when you set need_version to no, make sure it does not cause -set_version
14528 # flags to be left without arguments
14529 need_version=unknown
14530
14531
14532
14533 case $host_os in
14534 aix3*)
14535   version_type=linux # correct to gnu/linux during the next big refactor
14536   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
14537   shlibpath_var=LIBPATH
14538
14539   # AIX 3 has no versioning support, so we append a major version to the name.
14540   soname_spec='$libname$release$shared_ext$major'
14541   ;;
14542
14543 aix[4-9]*)
14544   version_type=linux # correct to gnu/linux during the next big refactor
14545   need_lib_prefix=no
14546   need_version=no
14547   hardcode_into_libs=yes
14548   if test ia64 = "$host_cpu"; then
14549     # AIX 5 supports IA64
14550     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
14551     shlibpath_var=LD_LIBRARY_PATH
14552   else
14553     # With GCC up to 2.95.x, collect2 would create an import file
14554     # for dependence libraries.  The import file would start with
14555     # the line '#! .'.  This would cause the generated library to
14556     # depend on '.', always an invalid library.  This was fixed in
14557     # development snapshots of GCC prior to 3.0.
14558     case $host_os in
14559       aix4 | aix4.[01] | aix4.[01].*)
14560       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14561            echo ' yes '
14562            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
14563         :
14564       else
14565         can_build_shared=no
14566       fi
14567       ;;
14568     esac
14569     # Using Import Files as archive members, it is possible to support
14570     # filename-based versioning of shared library archives on AIX. While
14571     # this would work for both with and without runtime linking, it will
14572     # prevent static linking of such archives. So we do filename-based
14573     # shared library versioning with .so extension only, which is used
14574     # when both runtime linking and shared linking is enabled.
14575     # Unfortunately, runtime linking may impact performance, so we do
14576     # not want this to be the default eventually. Also, we use the
14577     # versioned .so libs for executables only if there is the -brtl
14578     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
14579     # To allow for filename-based versioning support, we need to create
14580     # libNAME.so.V as an archive file, containing:
14581     # *) an Import File, referring to the versioned filename of the
14582     #    archive as well as the shared archive member, telling the
14583     #    bitwidth (32 or 64) of that shared object, and providing the
14584     #    list of exported symbols of that shared object, eventually
14585     #    decorated with the 'weak' keyword
14586     # *) the shared object with the F_LOADONLY flag set, to really avoid
14587     #    it being seen by the linker.
14588     # At run time we better use the real file rather than another symlink,
14589     # but for link time we create the symlink libNAME.so -> libNAME.so.V
14590
14591     case $with_aix_soname,$aix_use_runtimelinking in
14592     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
14593     # soname into executable. Probably we can add versioning support to
14594     # collect2, so additional links can be useful in future.
14595     aix,yes) # traditional libtool
14596       dynamic_linker='AIX unversionable lib.so'
14597       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14598       # instead of lib<name>.a to let people know that these are not
14599       # typical AIX shared libraries.
14600       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14601       ;;
14602     aix,no) # traditional AIX only
14603       dynamic_linker='AIX lib.a(lib.so.V)'
14604       # We preserve .a as extension for shared libraries through AIX4.2
14605       # and later when we are not doing run time linking.
14606       library_names_spec='$libname$release.a $libname.a'
14607       soname_spec='$libname$release$shared_ext$major'
14608       ;;
14609     svr4,*) # full svr4 only
14610       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
14611       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14612       # We do not specify a path in Import Files, so LIBPATH fires.
14613       shlibpath_overrides_runpath=yes
14614       ;;
14615     *,yes) # both, prefer svr4
14616       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
14617       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14618       # unpreferred sharedlib libNAME.a needs extra handling
14619       postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
14620       postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
14621       # We do not specify a path in Import Files, so LIBPATH fires.
14622       shlibpath_overrides_runpath=yes
14623       ;;
14624     *,no) # both, prefer aix
14625       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
14626       library_names_spec='$libname$release.a $libname.a'
14627       soname_spec='$libname$release$shared_ext$major'
14628       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
14629       postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
14630       postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
14631       ;;
14632     esac
14633     shlibpath_var=LIBPATH
14634   fi
14635   ;;
14636
14637 amigaos*)
14638   case $host_cpu in
14639   powerpc)
14640     # Since July 2007 AmigaOS4 officially supports .so libraries.
14641     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14642     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14643     ;;
14644   m68k)
14645     library_names_spec='$libname.ixlibrary $libname.a'
14646     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14647     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14648     ;;
14649   esac
14650   ;;
14651
14652 beos*)
14653   library_names_spec='$libname$shared_ext'
14654   dynamic_linker="$host_os ld.so"
14655   shlibpath_var=LIBRARY_PATH
14656   ;;
14657
14658 bsdi[45]*)
14659   version_type=linux # correct to gnu/linux during the next big refactor
14660   need_version=no
14661   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14662   soname_spec='$libname$release$shared_ext$major'
14663   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14664   shlibpath_var=LD_LIBRARY_PATH
14665   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14666   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14667   # the default ld.so.conf also contains /usr/contrib/lib and
14668   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14669   # libtool to hard-code these into programs
14670   ;;
14671
14672 cygwin* | mingw* | pw32* | cegcc*)
14673   version_type=windows
14674   shrext_cmds=.dll
14675   need_version=no
14676   need_lib_prefix=no
14677
14678   case $GCC,$cc_basename in
14679   yes,*)
14680     # gcc
14681     library_names_spec='$libname.dll.a'
14682     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14683     postinstall_cmds='base_file=`basename \$file`~
14684       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14685       dldir=$destdir/`dirname \$dlpath`~
14686       test -d \$dldir || mkdir -p \$dldir~
14687       $install_prog $dir/$dlname \$dldir/$dlname~
14688       chmod a+x \$dldir/$dlname~
14689       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14690         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14691       fi'
14692     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14693       dlpath=$dir/\$dldll~
14694        $RM \$dlpath'
14695     shlibpath_overrides_runpath=yes
14696
14697     case $host_os in
14698     cygwin*)
14699       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14700       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14701
14702       ;;
14703     mingw* | cegcc*)
14704       # MinGW DLLs use traditional 'lib' prefix
14705       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14706       ;;
14707     pw32*)
14708       # pw32 DLLs use 'pw' prefix rather than 'lib'
14709       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14710       ;;
14711     esac
14712     dynamic_linker='Win32 ld.exe'
14713     ;;
14714
14715   *,cl*)
14716     # Native MSVC
14717     libname_spec='$name'
14718     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14719     library_names_spec='$libname.dll.lib'
14720
14721     case $build_os in
14722     mingw*)
14723       sys_lib_search_path_spec=
14724       lt_save_ifs=$IFS
14725       IFS=';'
14726       for lt_path in $LIB
14727       do
14728         IFS=$lt_save_ifs
14729         # Let DOS variable expansion print the short 8.3 style file name.
14730         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14731         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14732       done
14733       IFS=$lt_save_ifs
14734       # Convert to MSYS style.
14735       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14736       ;;
14737     cygwin*)
14738       # Convert to unix form, then to dos form, then back to unix form
14739       # but this time dos style (no spaces!) so that the unix form looks
14740       # like /cygdrive/c/PROGRA~1:/cygdr...
14741       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14742       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14743       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14744       ;;
14745     *)
14746       sys_lib_search_path_spec=$LIB
14747       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14748         # It is most probably a Windows format PATH.
14749         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14750       else
14751         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14752       fi
14753       # FIXME: find the short name or the path components, as spaces are
14754       # common. (e.g. "Program Files" -> "PROGRA~1")
14755       ;;
14756     esac
14757
14758     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14759     postinstall_cmds='base_file=`basename \$file`~
14760       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14761       dldir=$destdir/`dirname \$dlpath`~
14762       test -d \$dldir || mkdir -p \$dldir~
14763       $install_prog $dir/$dlname \$dldir/$dlname'
14764     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14765       dlpath=$dir/\$dldll~
14766        $RM \$dlpath'
14767     shlibpath_overrides_runpath=yes
14768     dynamic_linker='Win32 link.exe'
14769     ;;
14770
14771   *)
14772     # Assume MSVC wrapper
14773     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
14774     dynamic_linker='Win32 ld.exe'
14775     ;;
14776   esac
14777   # FIXME: first we should search . and the directory the executable is in
14778   shlibpath_var=PATH
14779   ;;
14780
14781 darwin* | rhapsody*)
14782   dynamic_linker="$host_os dyld"
14783   version_type=darwin
14784   need_lib_prefix=no
14785   need_version=no
14786   library_names_spec='$libname$release$versuffix$shared_ext $libname$release$major$shared_ext $libname$shared_ext'
14787   soname_spec='$libname$release$major$shared_ext'
14788   shlibpath_overrides_runpath=yes
14789   shlibpath_var=DYLD_LIBRARY_PATH
14790   shrext_cmds='`test .$module = .yes && echo .bundle || echo .dylib`'
14791
14792   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14793   ;;
14794
14795 dgux*)
14796   version_type=linux # correct to gnu/linux during the next big refactor
14797   need_lib_prefix=no
14798   need_version=no
14799   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14800   soname_spec='$libname$release$shared_ext$major'
14801   shlibpath_var=LD_LIBRARY_PATH
14802   ;;
14803
14804 freebsd* | dragonfly*)
14805   # DragonFly does not have aout.  When/if they implement a new
14806   # versioning mechanism, adjust this.
14807   if test -x /usr/bin/objformat; then
14808     objformat=`/usr/bin/objformat`
14809   else
14810     case $host_os in
14811     freebsd[23].*) objformat=aout ;;
14812     *) objformat=elf ;;
14813     esac
14814   fi
14815   # Handle Gentoo/FreeBSD as it was Linux
14816   case $host_vendor in
14817     gentoo)
14818       version_type=linux ;;
14819     *)
14820       version_type=freebsd-$objformat ;;
14821   esac
14822
14823   case $version_type in
14824     freebsd-elf*)
14825       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14826       soname_spec='$libname$release$shared_ext$major'
14827       need_version=no
14828       need_lib_prefix=no
14829       ;;
14830     freebsd-*)
14831       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14832       need_version=yes
14833       ;;
14834     linux)
14835       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14836       soname_spec='${libname}${release}${shared_ext}$major'
14837       need_lib_prefix=no
14838       need_version=no
14839       ;;
14840   esac
14841   shlibpath_var=LD_LIBRARY_PATH
14842   case $host_os in
14843   freebsd2.*)
14844     shlibpath_overrides_runpath=yes
14845     ;;
14846   freebsd3.[01]* | freebsdelf3.[01]*)
14847     shlibpath_overrides_runpath=yes
14848     hardcode_into_libs=yes
14849     ;;
14850   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14851   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14852     shlibpath_overrides_runpath=no
14853     hardcode_into_libs=yes
14854     ;;
14855   *) # from 4.6 on, and DragonFly
14856     shlibpath_overrides_runpath=yes
14857     hardcode_into_libs=yes
14858     ;;
14859   esac
14860   ;;
14861
14862 haiku*)
14863   version_type=linux # correct to gnu/linux during the next big refactor
14864   need_lib_prefix=no
14865   need_version=no
14866   dynamic_linker="$host_os runtime_loader"
14867   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14868   soname_spec='$libname$release$shared_ext$major'
14869   shlibpath_var=LIBRARY_PATH
14870   shlibpath_overrides_runpath=no
14871   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14872   hardcode_into_libs=yes
14873   ;;
14874
14875 hpux9* | hpux10* | hpux11*)
14876   # Give a soname corresponding to the major version so that dld.sl refuses to
14877   # link against other versions.
14878   version_type=sunos
14879   need_lib_prefix=no
14880   need_version=no
14881   case $host_cpu in
14882   ia64*)
14883     shrext_cmds='.so'
14884     hardcode_into_libs=yes
14885     dynamic_linker="$host_os dld.so"
14886     shlibpath_var=LD_LIBRARY_PATH
14887     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14888     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14889     soname_spec='$libname$release$shared_ext$major'
14890     if test 32 = "$HPUX_IA64_MODE"; then
14891       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14892       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
14893     else
14894       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14895       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
14896     fi
14897     ;;
14898   hppa*64*)
14899     shrext_cmds='.sl'
14900     hardcode_into_libs=yes
14901     dynamic_linker="$host_os dld.sl"
14902     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14903     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14904     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14905     soname_spec='$libname$release$shared_ext$major'
14906     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14907     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14908     ;;
14909   *)
14910     shrext_cmds='.sl'
14911     dynamic_linker="$host_os dld.sl"
14912     shlibpath_var=SHLIB_PATH
14913     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14914     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14915     soname_spec='$libname$release$shared_ext$major'
14916     ;;
14917   esac
14918   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14919   postinstall_cmds='chmod 555 $lib'
14920   # or fails outright, so override atomically:
14921   install_override_mode=555
14922   ;;
14923
14924 interix[3-9]*)
14925   version_type=linux # correct to gnu/linux during the next big refactor
14926   need_lib_prefix=no
14927   need_version=no
14928   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14929   soname_spec='$libname$release$shared_ext$major'
14930   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14931   shlibpath_var=LD_LIBRARY_PATH
14932   shlibpath_overrides_runpath=no
14933   hardcode_into_libs=yes
14934   ;;
14935
14936 irix5* | irix6* | nonstopux*)
14937   case $host_os in
14938     nonstopux*) version_type=nonstopux ;;
14939     *)
14940         if test yes = "$lt_cv_prog_gnu_ld"; then
14941                 version_type=linux # correct to gnu/linux during the next big refactor
14942         else
14943                 version_type=irix
14944         fi ;;
14945   esac
14946   need_lib_prefix=no
14947   need_version=no
14948   soname_spec='$libname$release$shared_ext$major'
14949   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14950   case $host_os in
14951   irix5* | nonstopux*)
14952     libsuff= shlibsuff=
14953     ;;
14954   *)
14955     case $LD in # libtool.m4 will add one of these switches to LD
14956     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14957       libsuff= shlibsuff= libmagic=32-bit;;
14958     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14959       libsuff=32 shlibsuff=N32 libmagic=N32;;
14960     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14961       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14962     *) libsuff= shlibsuff= libmagic=never-match;;
14963     esac
14964     ;;
14965   esac
14966   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14967   shlibpath_overrides_runpath=no
14968   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14969   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14970   hardcode_into_libs=yes
14971   ;;
14972
14973 # No shared lib support for Linux oldld, aout, or coff.
14974 linux*oldld* | linux*aout* | linux*coff*)
14975   dynamic_linker=no
14976   ;;
14977
14978 linux*android*)
14979   version_type=none # Android doesn't support versioned libraries.
14980   need_lib_prefix=no
14981   need_version=no
14982   library_names_spec='$libname$release$shared_ext'
14983   soname_spec='$libname$release$shared_ext'
14984   finish_cmds=
14985   shlibpath_var=LD_LIBRARY_PATH
14986   shlibpath_overrides_runpath=yes
14987
14988   # This implies no fast_install, which is unacceptable.
14989   # Some rework will be needed to allow for fast_install
14990   # before this can be enabled.
14991   hardcode_into_libs=yes
14992
14993   dynamic_linker='Android linker'
14994   # Don't embed -rpath directories since the linker doesn't support them.
14995   hardcode_libdir_flag_spec_CXX='-L$libdir'
14996   ;;
14997
14998 # This must be glibc/ELF.
14999 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15000   version_type=linux # correct to gnu/linux during the next big refactor
15001   need_lib_prefix=no
15002   need_version=no
15003   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15004   soname_spec='$libname$release$shared_ext$major'
15005   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15006   shlibpath_var=LD_LIBRARY_PATH
15007   shlibpath_overrides_runpath=no
15008
15009   # Some binutils ld are patched to set DT_RUNPATH
15010   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15011   $as_echo_n "(cached) " >&6
15012 else
15013   lt_cv_shlibpath_overrides_runpath=no
15014     save_LDFLAGS=$LDFLAGS
15015     save_libdir=$libdir
15016     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15017          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15018     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15019 /* end confdefs.h.  */
15020
15021 int
15022 main ()
15023 {
15024
15025   ;
15026   return 0;
15027 }
15028 _ACEOF
15029 if ac_fn_cxx_try_link "$LINENO"; then :
15030   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15031   lt_cv_shlibpath_overrides_runpath=yes
15032 fi
15033 fi
15034 rm -f core conftest.err conftest.$ac_objext \
15035     conftest$ac_exeext conftest.$ac_ext
15036     LDFLAGS=$save_LDFLAGS
15037     libdir=$save_libdir
15038
15039 fi
15040
15041   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15042
15043   # This implies no fast_install, which is unacceptable.
15044   # Some rework will be needed to allow for fast_install
15045   # before this can be enabled.
15046   hardcode_into_libs=yes
15047
15048   # Ideally, we could use ldconfig to report *all* directores which are
15049   # searched for libraries, however this is still not possible.  Aside from not
15050   # being certain /sbin/ldconfig is available, command
15051   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
15052   # even though it is searched at run-time.  Try to do the best guess by
15053   # appending ld.so.conf contents (and includes) to the search path.
15054   if test -f /etc/ld.so.conf; then
15055     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' ' '`
15056     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15057   fi
15058
15059   # We used to test for /lib/ld.so.1 and disable shared libraries on
15060   # powerpc, because MkLinux only supported shared libraries with the
15061   # GNU dynamic linker.  Since this was broken with cross compilers,
15062   # most powerpc-linux boxes support dynamic linking these days and
15063   # people can always --disable-shared, the test was removed, and we
15064   # assume the GNU/Linux dynamic linker is in use.
15065   dynamic_linker='GNU/Linux ld.so'
15066   ;;
15067
15068 netbsd*)
15069   version_type=sunos
15070   need_lib_prefix=no
15071   need_version=no
15072   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15073     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15074     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15075     dynamic_linker='NetBSD (a.out) ld.so'
15076   else
15077     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15078     soname_spec='$libname$release$shared_ext$major'
15079     dynamic_linker='NetBSD ld.elf_so'
15080   fi
15081   shlibpath_var=LD_LIBRARY_PATH
15082   shlibpath_overrides_runpath=yes
15083   hardcode_into_libs=yes
15084   ;;
15085
15086 newsos6)
15087   version_type=linux # correct to gnu/linux during the next big refactor
15088   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15089   shlibpath_var=LD_LIBRARY_PATH
15090   shlibpath_overrides_runpath=yes
15091   ;;
15092
15093 *nto* | *qnx*)
15094   version_type=qnx
15095   need_lib_prefix=no
15096   need_version=no
15097   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15098   soname_spec='$libname$release$shared_ext$major'
15099   shlibpath_var=LD_LIBRARY_PATH
15100   shlibpath_overrides_runpath=no
15101   hardcode_into_libs=yes
15102   dynamic_linker='ldqnx.so'
15103   ;;
15104
15105 openbsd* | bitrig*)
15106   version_type=sunos
15107   sys_lib_dlsearch_path_spec=/usr/lib
15108   need_lib_prefix=no
15109   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
15110     need_version=no
15111   else
15112     need_version=yes
15113   fi
15114   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15115   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15116   shlibpath_var=LD_LIBRARY_PATH
15117   shlibpath_overrides_runpath=yes
15118   ;;
15119
15120 os2*)
15121   libname_spec='$name'
15122   version_type=windows
15123   shrext_cmds=.dll
15124   need_version=no
15125   need_lib_prefix=no
15126   # OS/2 can only load a DLL with a base name of 8 characters or less.
15127   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
15128     v=$($ECHO $release$versuffix | tr -d .-);
15129     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
15130     $ECHO $n$v`$shared_ext'
15131   library_names_spec='${libname}_dll.$libext'
15132   dynamic_linker='OS/2 ld.exe'
15133   shlibpath_var=BEGINLIBPATH
15134   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15135   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15136   postinstall_cmds='base_file=`basename \$file`~
15137     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
15138     dldir=$destdir/`dirname \$dlpath`~
15139     test -d \$dldir || mkdir -p \$dldir~
15140     $install_prog $dir/$dlname \$dldir/$dlname~
15141     chmod a+x \$dldir/$dlname~
15142     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15143       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15144     fi'
15145   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
15146     dlpath=$dir/\$dldll~
15147     $RM \$dlpath'
15148   ;;
15149
15150 osf3* | osf4* | osf5*)
15151   version_type=osf
15152   need_lib_prefix=no
15153   need_version=no
15154   soname_spec='$libname$release$shared_ext$major'
15155   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15156   shlibpath_var=LD_LIBRARY_PATH
15157   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15158   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15159   ;;
15160
15161 rdos*)
15162   dynamic_linker=no
15163   ;;
15164
15165 solaris*)
15166   version_type=linux # correct to gnu/linux during the next big refactor
15167   need_lib_prefix=no
15168   need_version=no
15169   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15170   soname_spec='$libname$release$shared_ext$major'
15171   shlibpath_var=LD_LIBRARY_PATH
15172   shlibpath_overrides_runpath=yes
15173   hardcode_into_libs=yes
15174   # ldd complains unless libraries are executable
15175   postinstall_cmds='chmod +x $lib'
15176   ;;
15177
15178 sunos4*)
15179   version_type=sunos
15180   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15181   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15182   shlibpath_var=LD_LIBRARY_PATH
15183   shlibpath_overrides_runpath=yes
15184   if test yes = "$with_gnu_ld"; then
15185     need_lib_prefix=no
15186   fi
15187   need_version=yes
15188   ;;
15189
15190 sysv4 | sysv4.3*)
15191   version_type=linux # correct to gnu/linux during the next big refactor
15192   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15193   soname_spec='$libname$release$shared_ext$major'
15194   shlibpath_var=LD_LIBRARY_PATH
15195   case $host_vendor in
15196     sni)
15197       shlibpath_overrides_runpath=no
15198       need_lib_prefix=no
15199       runpath_var=LD_RUN_PATH
15200       ;;
15201     siemens)
15202       need_lib_prefix=no
15203       ;;
15204     motorola)
15205       need_lib_prefix=no
15206       need_version=no
15207       shlibpath_overrides_runpath=no
15208       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15209       ;;
15210   esac
15211   ;;
15212
15213 sysv4*MP*)
15214   if test -d /usr/nec; then
15215     version_type=linux # correct to gnu/linux during the next big refactor
15216     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
15217     soname_spec='$libname$shared_ext.$major'
15218     shlibpath_var=LD_LIBRARY_PATH
15219   fi
15220   ;;
15221
15222 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15223   version_type=sco
15224   need_lib_prefix=no
15225   need_version=no
15226   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
15227   soname_spec='$libname$release$shared_ext$major'
15228   shlibpath_var=LD_LIBRARY_PATH
15229   shlibpath_overrides_runpath=yes
15230   hardcode_into_libs=yes
15231   if test yes = "$with_gnu_ld"; then
15232     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15233   else
15234     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15235     case $host_os in
15236       sco3.2v5*)
15237         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15238         ;;
15239     esac
15240   fi
15241   sys_lib_dlsearch_path_spec='/usr/lib'
15242   ;;
15243
15244 tpf*)
15245   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15246   version_type=linux # correct to gnu/linux during the next big refactor
15247   need_lib_prefix=no
15248   need_version=no
15249   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15250   shlibpath_var=LD_LIBRARY_PATH
15251   shlibpath_overrides_runpath=no
15252   hardcode_into_libs=yes
15253   ;;
15254
15255 uts4*)
15256   version_type=linux # correct to gnu/linux during the next big refactor
15257   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15258   soname_spec='$libname$release$shared_ext$major'
15259   shlibpath_var=LD_LIBRARY_PATH
15260   ;;
15261
15262 *)
15263   dynamic_linker=no
15264   ;;
15265 esac
15266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15267 $as_echo "$dynamic_linker" >&6; }
15268 test no = "$dynamic_linker" && can_build_shared=no
15269
15270 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15271 if test yes = "$GCC"; then
15272   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15273 fi
15274
15275 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
15276   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
15277 fi
15278
15279 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
15280   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
15281 fi
15282
15283 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
15284 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
15285
15286 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
15287 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
15288
15289 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
15290 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
15291
15292
15293
15294
15295
15296
15297
15298
15299
15300
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15332 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15333 hardcode_action_CXX=
15334 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15335    test -n "$runpath_var_CXX" ||
15336    test yes = "$hardcode_automatic_CXX"; then
15337
15338   # We can hardcode non-existent directories.
15339   if test no != "$hardcode_direct_CXX" &&
15340      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15341      # have to relink, otherwise we might link with an installed library
15342      # when we should be linking with a yet-to-be-installed one
15343      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
15344      test no != "$hardcode_minus_L_CXX"; then
15345     # Linking always hardcodes the temporary library directory.
15346     hardcode_action_CXX=relink
15347   else
15348     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15349     hardcode_action_CXX=immediate
15350   fi
15351 else
15352   # We cannot hardcode anything, or else we can only hardcode existing
15353   # directories.
15354   hardcode_action_CXX=unsupported
15355 fi
15356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15357 $as_echo "$hardcode_action_CXX" >&6; }
15358
15359 if test relink = "$hardcode_action_CXX" ||
15360    test yes = "$inherit_rpath_CXX"; then
15361   # Fast installation is not supported
15362   enable_fast_install=no
15363 elif test yes = "$shlibpath_overrides_runpath" ||
15364      test no = "$enable_shared"; then
15365   # Fast installation is not necessary
15366   enable_fast_install=needless
15367 fi
15368
15369
15370
15371
15372
15373
15374
15375   fi # test -n "$compiler"
15376
15377   CC=$lt_save_CC
15378   CFLAGS=$lt_save_CFLAGS
15379   LDCXX=$LD
15380   LD=$lt_save_LD
15381   GCC=$lt_save_GCC
15382   with_gnu_ld=$lt_save_with_gnu_ld
15383   lt_cv_path_LDCXX=$lt_cv_path_LD
15384   lt_cv_path_LD=$lt_save_path_LD
15385   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15386   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15387 fi # test yes != "$_lt_caught_CXX_error"
15388
15389 ac_ext=c
15390 ac_cpp='$CPP $CPPFLAGS'
15391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15394
15395
15396 # Find a good install program.  We prefer a C program (faster),
15397 # so one script is as good as another.  But avoid the broken or
15398 # incompatible versions:
15399 # SysV /etc/install, /usr/sbin/install
15400 # SunOS /usr/etc/install
15401 # IRIX /sbin/install
15402 # AIX /bin/install
15403 # AmigaOS /C/install, which installs bootblocks on floppy discs
15404 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
15405 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
15406 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
15407 # OS/2's system install, which has a completely different semantic
15408 # ./install, which can be erroneously created by make from ./install.sh.
15409 # Reject install programs that cannot install multiple files.
15410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
15411 $as_echo_n "checking for a BSD-compatible install... " >&6; }
15412 if test -z "$INSTALL"; then
15413 if ${ac_cv_path_install+:} false; then :
15414   $as_echo_n "(cached) " >&6
15415 else
15416   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15417 for as_dir in $PATH
15418 do
15419   IFS=$as_save_IFS
15420   test -z "$as_dir" && as_dir=.
15421     # Account for people who put trailing slashes in PATH elements.
15422 case $as_dir/ in #((
15423   ./ | .// | /[cC]/* | \
15424   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
15425   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
15426   /usr/ucb/* ) ;;
15427   *)
15428     # OSF1 and SCO ODT 3.0 have their own names for install.
15429     # Don't use installbsd from OSF since it installs stuff as root
15430     # by default.
15431     for ac_prog in ginstall scoinst install; do
15432       for ac_exec_ext in '' $ac_executable_extensions; do
15433         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
15434           if test $ac_prog = install &&
15435             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15436             # AIX install.  It has an incompatible calling convention.
15437             :
15438           elif test $ac_prog = install &&
15439             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15440             # program-specific install script used by HP pwplus--don't use.
15441             :
15442           else
15443             rm -rf conftest.one conftest.two conftest.dir
15444             echo one > conftest.one
15445             echo two > conftest.two
15446             mkdir conftest.dir
15447             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
15448               test -s conftest.one && test -s conftest.two &&
15449               test -s conftest.dir/conftest.one &&
15450               test -s conftest.dir/conftest.two
15451             then
15452               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
15453               break 3
15454             fi
15455           fi
15456         fi
15457       done
15458     done
15459     ;;
15460 esac
15461
15462   done
15463 IFS=$as_save_IFS
15464
15465 rm -rf conftest.one conftest.two conftest.dir
15466
15467 fi
15468   if test "${ac_cv_path_install+set}" = set; then
15469     INSTALL=$ac_cv_path_install
15470   else
15471     # As a last resort, use the slow shell script.  Don't cache a
15472     # value for INSTALL within a source directory, because that will
15473     # break other packages using the cache if that directory is
15474     # removed, or if the value is a relative name.
15475     INSTALL=$ac_install_sh
15476   fi
15477 fi
15478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
15479 $as_echo "$INSTALL" >&6; }
15480
15481 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
15482 # It thinks the first close brace ends the variable substitution.
15483 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
15484
15485 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
15486
15487 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
15488
15489
15490 if test "$GCC" = yes ; then
15491                         OLDCFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wstrict-prototypes"
15492     CFLAGS="$OLDCFLAGS -fexceptions"
15493     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -fexceptions" >&5
15494 $as_echo_n "checking whether $CC accepts -fexceptions... " >&6; }
15495     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15496 /* end confdefs.h.  */
15497
15498 int
15499 main ()
15500 {
15501
15502   ;
15503   return 0;
15504 }
15505 _ACEOF
15506 if ac_fn_c_try_link "$LINENO"; then :
15507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15508 $as_echo "yes" >&6; }
15509 else
15510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15511 $as_echo "no" >&6; }; CFLAGS="$OLDCFLAGS"
15512 fi
15513 rm -f core conftest.err conftest.$ac_objext \
15514     conftest$ac_exeext conftest.$ac_ext
15515     if test "x$CXXFLAGS" = x ; then
15516     CXXFLAGS=`echo "$CFLAGS" | sed 's/ -Wmissing-prototypes -Wstrict-prototypes//'`
15517     fi
15518
15519     CFLAGS="${CFLAGS} -fno-strict-aliasing"
15520     CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing"
15521     LDFLAGS="${LDFLAGS} -fno-strict-aliasing"
15522 fi
15523
15524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15525 $as_echo_n "checking for ANSI C header files... " >&6; }
15526 if ${ac_cv_header_stdc+:} false; then :
15527   $as_echo_n "(cached) " >&6
15528 else
15529   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15530 /* end confdefs.h.  */
15531 #include <stdlib.h>
15532 #include <stdarg.h>
15533 #include <string.h>
15534 #include <float.h>
15535
15536 int
15537 main ()
15538 {
15539
15540   ;
15541   return 0;
15542 }
15543 _ACEOF
15544 if ac_fn_c_try_compile "$LINENO"; then :
15545   ac_cv_header_stdc=yes
15546 else
15547   ac_cv_header_stdc=no
15548 fi
15549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15550
15551 if test $ac_cv_header_stdc = yes; then
15552   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15553   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15554 /* end confdefs.h.  */
15555 #include <string.h>
15556
15557 _ACEOF
15558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15559   $EGREP "memchr" >/dev/null 2>&1; then :
15560
15561 else
15562   ac_cv_header_stdc=no
15563 fi
15564 rm -f conftest*
15565
15566 fi
15567
15568 if test $ac_cv_header_stdc = yes; then
15569   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15570   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15571 /* end confdefs.h.  */
15572 #include <stdlib.h>
15573
15574 _ACEOF
15575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15576   $EGREP "free" >/dev/null 2>&1; then :
15577
15578 else
15579   ac_cv_header_stdc=no
15580 fi
15581 rm -f conftest*
15582
15583 fi
15584
15585 if test $ac_cv_header_stdc = yes; then
15586   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15587   if test "$cross_compiling" = yes; then :
15588   :
15589 else
15590   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15591 /* end confdefs.h.  */
15592 #include <ctype.h>
15593 #include <stdlib.h>
15594 #if ((' ' & 0x0FF) == 0x020)
15595 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15596 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15597 #else
15598 # define ISLOWER(c) \
15599                    (('a' <= (c) && (c) <= 'i') \
15600                      || ('j' <= (c) && (c) <= 'r') \
15601                      || ('s' <= (c) && (c) <= 'z'))
15602 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15603 #endif
15604
15605 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15606 int
15607 main ()
15608 {
15609   int i;
15610   for (i = 0; i < 256; i++)
15611     if (XOR (islower (i), ISLOWER (i))
15612         || toupper (i) != TOUPPER (i))
15613       return 2;
15614   return 0;
15615 }
15616 _ACEOF
15617 if ac_fn_c_try_run "$LINENO"; then :
15618
15619 else
15620   ac_cv_header_stdc=no
15621 fi
15622 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15623   conftest.$ac_objext conftest.beam conftest.$ac_ext
15624 fi
15625
15626 fi
15627 fi
15628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15629 $as_echo "$ac_cv_header_stdc" >&6; }
15630 if test $ac_cv_header_stdc = yes; then
15631
15632 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15633
15634 fi
15635
15636
15637
15638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15639 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15640 if ${ac_cv_c_bigendian+:} false; then :
15641   $as_echo_n "(cached) " >&6
15642 else
15643   ac_cv_c_bigendian=unknown
15644 # See if sys/param.h defines the BYTE_ORDER macro.
15645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15646 /* end confdefs.h.  */
15647 #include <sys/types.h>
15648 #include <sys/param.h>
15649 int
15650 main ()
15651 {
15652
15653 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
15654  bogus endian macros
15655 #endif
15656   ;
15657   return 0;
15658 }
15659 _ACEOF
15660 if ac_fn_c_try_compile "$LINENO"; then :
15661   # It does; now see whether it defined to BIG_ENDIAN or not.
15662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15663 /* end confdefs.h.  */
15664 #include <sys/types.h>
15665 #include <sys/param.h>
15666 int
15667 main ()
15668 {
15669
15670 #if BYTE_ORDER != BIG_ENDIAN
15671  not big endian
15672 #endif
15673   ;
15674   return 0;
15675 }
15676 _ACEOF
15677 if ac_fn_c_try_compile "$LINENO"; then :
15678   ac_cv_c_bigendian=yes
15679 else
15680   ac_cv_c_bigendian=no
15681 fi
15682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15683 fi
15684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15685 if test $ac_cv_c_bigendian = unknown; then
15686 if test "$cross_compiling" = yes; then :
15687    echo $ac_n "cross-compiling... " 2>&6
15688 else
15689   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15690 /* end confdefs.h.  */
15691 main () {
15692   /* Are we little or big endian?  From Harbison&Steele.  */
15693   union
15694   {
15695     long l;
15696     char c[sizeof (long)];
15697   } u;
15698   u.l = 1;
15699   exit (u.c[sizeof (long) - 1] == 1);
15700 }
15701 _ACEOF
15702 if ac_fn_c_try_run "$LINENO"; then :
15703   ac_cv_c_bigendian=no
15704 else
15705   ac_cv_c_bigendian=yes
15706 fi
15707 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15708   conftest.$ac_objext conftest.beam conftest.$ac_ext
15709 fi
15710
15711 fi
15712 fi
15713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15714 $as_echo "$ac_cv_c_bigendian" >&6; }
15715 if test $ac_cv_c_bigendian = unknown; then
15716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to probe for byte ordering" >&5
15717 $as_echo_n "checking to probe for byte ordering... " >&6; }
15718
15719 cat >conftest.c <<EOF
15720 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15721 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15722 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
15723 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15724 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15725 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
15726 int main() { _ascii (); _ebcdic (); return 0; }
15727 EOF
15728  if test -f conftest.c ; then
15729      if ${CC-cc} -c conftest.c -o conftest.o && test -f conftest.o ; then
15730         if test `grep -l BIGenDianSyS conftest.o` ; then
15731            echo $ac_n ' big endian probe OK, ' 1>&6
15732            ac_cv_c_bigendian=yes
15733         fi
15734         if test `grep -l LiTTleEnDian conftest.o` ; then
15735            echo $ac_n ' little endian probe OK, ' 1>&6
15736            if test $ac_cv_c_bigendian = yes ; then
15737             ac_cv_c_bigendian=unknown;
15738            else
15739             ac_cv_c_bigendian=no
15740            fi
15741         fi
15742         echo $ac_n 'guessing bigendian ...  ' >&6
15743      fi
15744   fi
15745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15746 $as_echo "$ac_cv_c_bigendian" >&6; }
15747 fi
15748 if test $ac_cv_c_bigendian = yes; then
15749
15750 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15751
15752   BYTEORDER=4321
15753 else
15754   BYTEORDER=1234
15755 fi
15756
15757 cat >>confdefs.h <<_ACEOF
15758 #define BYTEORDER $BYTEORDER
15759 _ACEOF
15760
15761 if test $ac_cv_c_bigendian = unknown; then
15762   as_fn_error please pre-set ac_cv_c_bigendian "unknown endianess - sorry" "$LINENO" 5
15763 fi
15764
15765
15766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
15767 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
15768 if ${ac_cv_c_const+:} false; then :
15769   $as_echo_n "(cached) " >&6
15770 else
15771   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15772 /* end confdefs.h.  */
15773
15774 int
15775 main ()
15776 {
15777
15778 #ifndef __cplusplus
15779   /* Ultrix mips cc rejects this sort of thing.  */
15780   typedef int charset[2];
15781   const charset cs = { 0, 0 };
15782   /* SunOS 4.1.1 cc rejects this.  */
15783   char const *const *pcpcc;
15784   char **ppc;
15785   /* NEC SVR4.0.2 mips cc rejects this.  */
15786   struct point {int x, y;};
15787   static struct point const zero = {0,0};
15788   /* AIX XL C 1.02.0.0 rejects this.
15789      It does not let you subtract one const X* pointer from another in
15790      an arm of an if-expression whose if-part is not a constant
15791      expression */
15792   const char *g = "string";
15793   pcpcc = &g + (g ? g-g : 0);
15794   /* HPUX 7.0 cc rejects these. */
15795   ++pcpcc;
15796   ppc = (char**) pcpcc;
15797   pcpcc = (char const *const *) ppc;
15798   { /* SCO 3.2v4 cc rejects this sort of thing.  */
15799     char tx;
15800     char *t = &tx;
15801     char const *s = 0 ? (char *) 0 : (char const *) 0;
15802
15803     *t++ = 0;
15804     if (s) return 0;
15805   }
15806   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
15807     int x[] = {25, 17};
15808     const int *foo = &x[0];
15809     ++foo;
15810   }
15811   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15812     typedef const int *iptr;
15813     iptr p = 0;
15814     ++p;
15815   }
15816   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
15817        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15818     struct s { int j; const int *ap[3]; } bx;
15819     struct s *b = &bx; b->j = 5;
15820   }
15821   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15822     const int foo = 10;
15823     if (!foo) return 0;
15824   }
15825   return !cs[0] && !zero.x;
15826 #endif
15827
15828   ;
15829   return 0;
15830 }
15831 _ACEOF
15832 if ac_fn_c_try_compile "$LINENO"; then :
15833   ac_cv_c_const=yes
15834 else
15835   ac_cv_c_const=no
15836 fi
15837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15838 fi
15839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
15840 $as_echo "$ac_cv_c_const" >&6; }
15841 if test $ac_cv_c_const = no; then
15842
15843 $as_echo "#define const /**/" >>confdefs.h
15844
15845 fi
15846
15847 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15848 if test "x$ac_cv_type_size_t" = xyes; then :
15849
15850 else
15851
15852 cat >>confdefs.h <<_ACEOF
15853 #define size_t unsigned int
15854 _ACEOF
15855
15856 fi
15857
15858 for ac_func in memmove bcopy
15859 do :
15860   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15861 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15862 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15863   cat >>confdefs.h <<_ACEOF
15864 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15865 _ACEOF
15866
15867 fi
15868 done
15869
15870
15871
15872
15873 # Check whether --with-libbsd was given.
15874 if test "${with_libbsd+set}" = set; then :
15875   withval=$with_libbsd;
15876 else
15877   with_libbsd=no
15878 fi
15879
15880 if test "x${with_libbsd}" != xno; then :
15881
15882   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for arc4random_buf in -lbsd" >&5
15883 $as_echo_n "checking for arc4random_buf in -lbsd... " >&6; }
15884 if ${ac_cv_lib_bsd_arc4random_buf+:} false; then :
15885   $as_echo_n "(cached) " >&6
15886 else
15887   ac_check_lib_save_LIBS=$LIBS
15888 LIBS="-lbsd  $LIBS"
15889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15890 /* end confdefs.h.  */
15891
15892 /* Override any GCC internal prototype to avoid an error.
15893    Use char because int might match the return type of a GCC
15894    builtin and then its argument prototype would still apply.  */
15895 #ifdef __cplusplus
15896 extern "C"
15897 #endif
15898 char arc4random_buf ();
15899 int
15900 main ()
15901 {
15902 return arc4random_buf ();
15903   ;
15904   return 0;
15905 }
15906 _ACEOF
15907 if ac_fn_c_try_link "$LINENO"; then :
15908   ac_cv_lib_bsd_arc4random_buf=yes
15909 else
15910   ac_cv_lib_bsd_arc4random_buf=no
15911 fi
15912 rm -f core conftest.err conftest.$ac_objext \
15913     conftest$ac_exeext conftest.$ac_ext
15914 LIBS=$ac_check_lib_save_LIBS
15915 fi
15916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_arc4random_buf" >&5
15917 $as_echo "$ac_cv_lib_bsd_arc4random_buf" >&6; }
15918 if test "x$ac_cv_lib_bsd_arc4random_buf" = xyes; then :
15919   cat >>confdefs.h <<_ACEOF
15920 #define HAVE_LIBBSD 1
15921 _ACEOF
15922
15923   LIBS="-lbsd $LIBS"
15924
15925 else
15926
15927     if test "x${with_libbsd}" = xyes; then :
15928
15929       as_fn_error $? "Enforced use of libbsd cannot be satisfied." "$LINENO" 5
15930
15931 fi
15932
15933 fi
15934
15935
15936 fi
15937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for arc4random_buf (BSD or libbsd)" >&5
15938 $as_echo_n "checking for arc4random_buf (BSD or libbsd)... " >&6; }
15939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15940 /* end confdefs.h.  */
15941
15942   #include <stdlib.h>  /* for arc4random_buf on BSD, for NULL */
15943   #if defined(HAVE_LIBBSD)
15944   # include <bsd/stdlib.h>
15945   #endif
15946   int main() {
15947     arc4random_buf(NULL, 0U);
15948     return 0;
15949   }
15950
15951 _ACEOF
15952 if ac_fn_c_try_link "$LINENO"; then :
15953
15954
15955 $as_echo "#define HAVE_ARC4RANDOM_BUF 1" >>confdefs.h
15956
15957     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15958 $as_echo "yes" >&6; }
15959
15960 else
15961
15962     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15963 $as_echo "no" >&6; }
15964
15965 fi
15966 rm -f core conftest.err conftest.$ac_objext \
15967     conftest$ac_exeext conftest.$ac_ext
15968
15969
15970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getrandom (Linux 3.17+, glibc 2.25+)" >&5
15971 $as_echo_n "checking for getrandom (Linux 3.17+, glibc 2.25+)... " >&6; }
15972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15973 /* end confdefs.h.  */
15974
15975   #include <stdlib.h>  /* for NULL */
15976   #include <sys/random.h>
15977   int main() {
15978     return getrandom(NULL, 0U, 0U);
15979   }
15980
15981 _ACEOF
15982 if ac_fn_c_try_link "$LINENO"; then :
15983
15984
15985 $as_echo "#define HAVE_GETRANDOM 1" >>confdefs.h
15986
15987     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15988 $as_echo "yes" >&6; }
15989
15990 else
15991
15992     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15993 $as_echo "no" >&6; }
15994
15995     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syscall SYS_getrandom (Linux 3.17+)" >&5
15996 $as_echo_n "checking for syscall SYS_getrandom (Linux 3.17+)... " >&6; }
15997     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15998 /* end confdefs.h.  */
15999
16000       #include <stdlib.h>  /* for NULL */
16001       #include <unistd.h>  /* for syscall */
16002       #include <sys/syscall.h>  /* for SYS_getrandom */
16003       int main() {
16004         syscall(SYS_getrandom, NULL, 0, 0);
16005         return 0;
16006       }
16007
16008 _ACEOF
16009 if ac_fn_c_try_link "$LINENO"; then :
16010
16011
16012 $as_echo "#define HAVE_SYSCALL_GETRANDOM 1" >>confdefs.h
16013
16014         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16015 $as_echo "yes" >&6; }
16016
16017 else
16018
16019         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16020 $as_echo "no" >&6; }
16021
16022 fi
16023 rm -f core conftest.err conftest.$ac_objext \
16024     conftest$ac_exeext conftest.$ac_ext
16025
16026 fi
16027 rm -f core conftest.err conftest.$ac_objext \
16028     conftest$ac_exeext conftest.$ac_ext
16029
16030
16031 for ac_header in fcntl.h unistd.h
16032 do :
16033   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16034 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16035 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16036   cat >>confdefs.h <<_ACEOF
16037 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16038 _ACEOF
16039
16040 fi
16041
16042 done
16043
16044 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
16045 if test "x$ac_cv_type_off_t" = xyes; then :
16046
16047 else
16048
16049 cat >>confdefs.h <<_ACEOF
16050 #define off_t long int
16051 _ACEOF
16052
16053 fi
16054
16055
16056
16057
16058   for ac_header in $ac_header_list
16059 do :
16060   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16061 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16062 "
16063 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16064   cat >>confdefs.h <<_ACEOF
16065 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16066 _ACEOF
16067
16068 fi
16069
16070 done
16071
16072
16073
16074
16075
16076
16077
16078
16079 for ac_func in getpagesize
16080 do :
16081   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
16082 if test "x$ac_cv_func_getpagesize" = xyes; then :
16083   cat >>confdefs.h <<_ACEOF
16084 #define HAVE_GETPAGESIZE 1
16085 _ACEOF
16086
16087 fi
16088 done
16089
16090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
16091 $as_echo_n "checking for working mmap... " >&6; }
16092 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
16093   $as_echo_n "(cached) " >&6
16094 else
16095   if test "$cross_compiling" = yes; then :
16096   ac_cv_func_mmap_fixed_mapped=no
16097 else
16098   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16099 /* end confdefs.h.  */
16100 $ac_includes_default
16101 /* malloc might have been renamed as rpl_malloc. */
16102 #undef malloc
16103
16104 /* Thanks to Mike Haertel and Jim Avera for this test.
16105    Here is a matrix of mmap possibilities:
16106         mmap private not fixed
16107         mmap private fixed at somewhere currently unmapped
16108         mmap private fixed at somewhere already mapped
16109         mmap shared not fixed
16110         mmap shared fixed at somewhere currently unmapped
16111         mmap shared fixed at somewhere already mapped
16112    For private mappings, we should verify that changes cannot be read()
16113    back from the file, nor mmap's back from the file at a different
16114    address.  (There have been systems where private was not correctly
16115    implemented like the infamous i386 svr4.0, and systems where the
16116    VM page cache was not coherent with the file system buffer cache
16117    like early versions of FreeBSD and possibly contemporary NetBSD.)
16118    For shared mappings, we should conversely verify that changes get
16119    propagated back to all the places they're supposed to be.
16120
16121    Grep wants private fixed already mapped.
16122    The main things grep needs to know about mmap are:
16123    * does it exist and is it safe to write into the mmap'd area
16124    * how to use it (BSD variants)  */
16125
16126 #include <fcntl.h>
16127 #include <sys/mman.h>
16128
16129 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
16130 char *malloc ();
16131 #endif
16132
16133 /* This mess was copied from the GNU getpagesize.h.  */
16134 #ifndef HAVE_GETPAGESIZE
16135 # ifdef _SC_PAGESIZE
16136 #  define getpagesize() sysconf(_SC_PAGESIZE)
16137 # else /* no _SC_PAGESIZE */
16138 #  ifdef HAVE_SYS_PARAM_H
16139 #   include <sys/param.h>
16140 #   ifdef EXEC_PAGESIZE
16141 #    define getpagesize() EXEC_PAGESIZE
16142 #   else /* no EXEC_PAGESIZE */
16143 #    ifdef NBPG
16144 #     define getpagesize() NBPG * CLSIZE
16145 #     ifndef CLSIZE
16146 #      define CLSIZE 1
16147 #     endif /* no CLSIZE */
16148 #    else /* no NBPG */
16149 #     ifdef NBPC
16150 #      define getpagesize() NBPC
16151 #     else /* no NBPC */
16152 #      ifdef PAGESIZE
16153 #       define getpagesize() PAGESIZE
16154 #      endif /* PAGESIZE */
16155 #     endif /* no NBPC */
16156 #    endif /* no NBPG */
16157 #   endif /* no EXEC_PAGESIZE */
16158 #  else /* no HAVE_SYS_PARAM_H */
16159 #   define getpagesize() 8192   /* punt totally */
16160 #  endif /* no HAVE_SYS_PARAM_H */
16161 # endif /* no _SC_PAGESIZE */
16162
16163 #endif /* no HAVE_GETPAGESIZE */
16164
16165 int
16166 main ()
16167 {
16168   char *data, *data2, *data3;
16169   const char *cdata2;
16170   int i, pagesize;
16171   int fd, fd2;
16172
16173   pagesize = getpagesize ();
16174
16175   /* First, make a file with some known garbage in it. */
16176   data = (char *) malloc (pagesize);
16177   if (!data)
16178     return 1;
16179   for (i = 0; i < pagesize; ++i)
16180     *(data + i) = rand ();
16181   umask (0);
16182   fd = creat ("conftest.mmap", 0600);
16183   if (fd < 0)
16184     return 2;
16185   if (write (fd, data, pagesize) != pagesize)
16186     return 3;
16187   close (fd);
16188
16189   /* Next, check that the tail of a page is zero-filled.  File must have
16190      non-zero length, otherwise we risk SIGBUS for entire page.  */
16191   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
16192   if (fd2 < 0)
16193     return 4;
16194   cdata2 = "";
16195   if (write (fd2, cdata2, 1) != 1)
16196     return 5;
16197   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
16198   if (data2 == MAP_FAILED)
16199     return 6;
16200   for (i = 0; i < pagesize; ++i)
16201     if (*(data2 + i))
16202       return 7;
16203   close (fd2);
16204   if (munmap (data2, pagesize))
16205     return 8;
16206
16207   /* Next, try to mmap the file at a fixed address which already has
16208      something else allocated at it.  If we can, also make sure that
16209      we see the same garbage.  */
16210   fd = open ("conftest.mmap", O_RDWR);
16211   if (fd < 0)
16212     return 9;
16213   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16214                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
16215     return 10;
16216   for (i = 0; i < pagesize; ++i)
16217     if (*(data + i) != *(data2 + i))
16218       return 11;
16219
16220   /* Finally, make sure that changes to the mapped area do not
16221      percolate back to the file as seen by read().  (This is a bug on
16222      some variants of i386 svr4.0.)  */
16223   for (i = 0; i < pagesize; ++i)
16224     *(data2 + i) = *(data2 + i) + 1;
16225   data3 = (char *) malloc (pagesize);
16226   if (!data3)
16227     return 12;
16228   if (read (fd, data3, pagesize) != pagesize)
16229     return 13;
16230   for (i = 0; i < pagesize; ++i)
16231     if (*(data + i) != *(data3 + i))
16232       return 14;
16233   close (fd);
16234   return 0;
16235 }
16236 _ACEOF
16237 if ac_fn_c_try_run "$LINENO"; then :
16238   ac_cv_func_mmap_fixed_mapped=yes
16239 else
16240   ac_cv_func_mmap_fixed_mapped=no
16241 fi
16242 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16243   conftest.$ac_objext conftest.beam conftest.$ac_ext
16244 fi
16245
16246 fi
16247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
16248 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
16249 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16250
16251 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
16252
16253 fi
16254 rm -f conftest.mmap conftest.txt
16255
16256
16257 if test "$ac_cv_func_mmap_fixed_mapped" = "yes"; then
16258     FILEMAP=unixfilemap
16259 else
16260     FILEMAP=readfilemap
16261 fi
16262
16263
16264
16265
16266 $as_echo "#define XML_NS 1" >>confdefs.h
16267
16268
16269 $as_echo "#define XML_DTD 1" >>confdefs.h
16270
16271
16272 # Check whether --enable-xml-context was given.
16273 if test "${enable_xml_context+set}" = set; then :
16274   enableval=$enable_xml_context; enable_xml_context=${enableval}
16275 fi
16276
16277 if test "x${enable_xml_context}" != "xno"; then :
16278
16279   if test "x${enable_xml_context}" = "xyes" \
16280       -o "x${enable_xml_context}" = "x"; then :
16281
16282     enable_xml_context=1024
16283
16284 fi
16285
16286 cat >>confdefs.h <<_ACEOF
16287 #define XML_CONTEXT_BYTES ${enable_xml_context}
16288 _ACEOF
16289
16290
16291 fi
16292
16293 ac_config_files="$ac_config_files Makefile expat.pc"
16294
16295 ac_config_files="$ac_config_files run.sh"
16296
16297 cat >confcache <<\_ACEOF
16298 # This file is a shell script that caches the results of configure
16299 # tests run on this system so they can be shared between configure
16300 # scripts and configure runs, see configure's option --config-cache.
16301 # It is not useful on other systems.  If it contains results you don't
16302 # want to keep, you may remove or edit it.
16303 #
16304 # config.status only pays attention to the cache file if you give it
16305 # the --recheck option to rerun configure.
16306 #
16307 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16308 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16309 # following values.
16310
16311 _ACEOF
16312
16313 # The following way of writing the cache mishandles newlines in values,
16314 # but we know of no workaround that is simple, portable, and efficient.
16315 # So, we kill variables containing newlines.
16316 # Ultrix sh set writes to stderr and can't be redirected directly,
16317 # and sets the high bit in the cache file unless we assign to the vars.
16318 (
16319   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16320     eval ac_val=\$$ac_var
16321     case $ac_val in #(
16322     *${as_nl}*)
16323       case $ac_var in #(
16324       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16325 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16326       esac
16327       case $ac_var in #(
16328       _ | IFS | as_nl) ;; #(
16329       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16330       *) { eval $ac_var=; unset $ac_var;} ;;
16331       esac ;;
16332     esac
16333   done
16334
16335   (set) 2>&1 |
16336     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16337     *${as_nl}ac_space=\ *)
16338       # `set' does not quote correctly, so add quotes: double-quote
16339       # substitution turns \\\\ into \\, and sed turns \\ into \.
16340       sed -n \
16341         "s/'/'\\\\''/g;
16342           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16343       ;; #(
16344     *)
16345       # `set' quotes correctly as required by POSIX, so do not add quotes.
16346       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16347       ;;
16348     esac |
16349     sort
16350 ) |
16351   sed '
16352      /^ac_cv_env_/b end
16353      t clear
16354      :clear
16355      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16356      t end
16357      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16358      :end' >>confcache
16359 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16360   if test -w "$cache_file"; then
16361     if test "x$cache_file" != "x/dev/null"; then
16362       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16363 $as_echo "$as_me: updating cache $cache_file" >&6;}
16364       if test ! -f "$cache_file" || test -h "$cache_file"; then
16365         cat confcache >"$cache_file"
16366       else
16367         case $cache_file in #(
16368         */* | ?:*)
16369           mv -f confcache "$cache_file"$$ &&
16370           mv -f "$cache_file"$$ "$cache_file" ;; #(
16371         *)
16372           mv -f confcache "$cache_file" ;;
16373         esac
16374       fi
16375     fi
16376   else
16377     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16378 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16379   fi
16380 fi
16381 rm -f confcache
16382
16383 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16384 # Let make expand exec_prefix.
16385 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16386
16387 DEFS=-DHAVE_CONFIG_H
16388
16389 ac_libobjs=
16390 ac_ltlibobjs=
16391 U=
16392 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16393   # 1. Remove the extension, and $U if already installed.
16394   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16395   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16396   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16397   #    will be set to the directory where LIBOBJS objects are built.
16398   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16399   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16400 done
16401 LIBOBJS=$ac_libobjs
16402
16403 LTLIBOBJS=$ac_ltlibobjs
16404
16405
16406
16407 : "${CONFIG_STATUS=./config.status}"
16408 ac_write_fail=0
16409 ac_clean_files_save=$ac_clean_files
16410 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16411 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16412 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16413 as_write_fail=0
16414 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16415 #! $SHELL
16416 # Generated by $as_me.
16417 # Run this file to recreate the current configuration.
16418 # Compiler output produced by configure, useful for debugging
16419 # configure, is in config.log if it exists.
16420
16421 debug=false
16422 ac_cs_recheck=false
16423 ac_cs_silent=false
16424
16425 SHELL=\${CONFIG_SHELL-$SHELL}
16426 export SHELL
16427 _ASEOF
16428 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16429 ## -------------------- ##
16430 ## M4sh Initialization. ##
16431 ## -------------------- ##
16432
16433 # Be more Bourne compatible
16434 DUALCASE=1; export DUALCASE # for MKS sh
16435 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16436   emulate sh
16437   NULLCMD=:
16438   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16439   # is contrary to our usage.  Disable this feature.
16440   alias -g '${1+"$@"}'='"$@"'
16441   setopt NO_GLOB_SUBST
16442 else
16443   case `(set -o) 2>/dev/null` in #(
16444   *posix*) :
16445     set -o posix ;; #(
16446   *) :
16447      ;;
16448 esac
16449 fi
16450
16451
16452 as_nl='
16453 '
16454 export as_nl
16455 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16456 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16457 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16458 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16459 # Prefer a ksh shell builtin over an external printf program on Solaris,
16460 # but without wasting forks for bash or zsh.
16461 if test -z "$BASH_VERSION$ZSH_VERSION" \
16462     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16463   as_echo='print -r --'
16464   as_echo_n='print -rn --'
16465 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16466   as_echo='printf %s\n'
16467   as_echo_n='printf %s'
16468 else
16469   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16470     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16471     as_echo_n='/usr/ucb/echo -n'
16472   else
16473     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16474     as_echo_n_body='eval
16475       arg=$1;
16476       case $arg in #(
16477       *"$as_nl"*)
16478         expr "X$arg" : "X\\(.*\\)$as_nl";
16479         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16480       esac;
16481       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16482     '
16483     export as_echo_n_body
16484     as_echo_n='sh -c $as_echo_n_body as_echo'
16485   fi
16486   export as_echo_body
16487   as_echo='sh -c $as_echo_body as_echo'
16488 fi
16489
16490 # The user is always right.
16491 if test "${PATH_SEPARATOR+set}" != set; then
16492   PATH_SEPARATOR=:
16493   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16494     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16495       PATH_SEPARATOR=';'
16496   }
16497 fi
16498
16499
16500 # IFS
16501 # We need space, tab and new line, in precisely that order.  Quoting is
16502 # there to prevent editors from complaining about space-tab.
16503 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16504 # splitting by setting IFS to empty value.)
16505 IFS=" ""        $as_nl"
16506
16507 # Find who we are.  Look in the path if we contain no directory separator.
16508 as_myself=
16509 case $0 in #((
16510   *[\\/]* ) as_myself=$0 ;;
16511   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16512 for as_dir in $PATH
16513 do
16514   IFS=$as_save_IFS
16515   test -z "$as_dir" && as_dir=.
16516     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16517   done
16518 IFS=$as_save_IFS
16519
16520      ;;
16521 esac
16522 # We did not find ourselves, most probably we were run as `sh COMMAND'
16523 # in which case we are not to be found in the path.
16524 if test "x$as_myself" = x; then
16525   as_myself=$0
16526 fi
16527 if test ! -f "$as_myself"; then
16528   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16529   exit 1
16530 fi
16531
16532 # Unset variables that we do not need and which cause bugs (e.g. in
16533 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16534 # suppresses any "Segmentation fault" message there.  '((' could
16535 # trigger a bug in pdksh 5.2.14.
16536 for as_var in BASH_ENV ENV MAIL MAILPATH
16537 do eval test x\${$as_var+set} = xset \
16538   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16539 done
16540 PS1='$ '
16541 PS2='> '
16542 PS4='+ '
16543
16544 # NLS nuisances.
16545 LC_ALL=C
16546 export LC_ALL
16547 LANGUAGE=C
16548 export LANGUAGE
16549
16550 # CDPATH.
16551 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16552
16553
16554 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16555 # ----------------------------------------
16556 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16557 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16558 # script with STATUS, using 1 if that was 0.
16559 as_fn_error ()
16560 {
16561   as_status=$1; test $as_status -eq 0 && as_status=1
16562   if test "$4"; then
16563     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16564     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16565   fi
16566   $as_echo "$as_me: error: $2" >&2
16567   as_fn_exit $as_status
16568 } # as_fn_error
16569
16570
16571 # as_fn_set_status STATUS
16572 # -----------------------
16573 # Set $? to STATUS, without forking.
16574 as_fn_set_status ()
16575 {
16576   return $1
16577 } # as_fn_set_status
16578
16579 # as_fn_exit STATUS
16580 # -----------------
16581 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16582 as_fn_exit ()
16583 {
16584   set +e
16585   as_fn_set_status $1
16586   exit $1
16587 } # as_fn_exit
16588
16589 # as_fn_unset VAR
16590 # ---------------
16591 # Portably unset VAR.
16592 as_fn_unset ()
16593 {
16594   { eval $1=; unset $1;}
16595 }
16596 as_unset=as_fn_unset
16597 # as_fn_append VAR VALUE
16598 # ----------------------
16599 # Append the text in VALUE to the end of the definition contained in VAR. Take
16600 # advantage of any shell optimizations that allow amortized linear growth over
16601 # repeated appends, instead of the typical quadratic growth present in naive
16602 # implementations.
16603 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16604   eval 'as_fn_append ()
16605   {
16606     eval $1+=\$2
16607   }'
16608 else
16609   as_fn_append ()
16610   {
16611     eval $1=\$$1\$2
16612   }
16613 fi # as_fn_append
16614
16615 # as_fn_arith ARG...
16616 # ------------------
16617 # Perform arithmetic evaluation on the ARGs, and store the result in the
16618 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16619 # must be portable across $(()) and expr.
16620 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16621   eval 'as_fn_arith ()
16622   {
16623     as_val=$(( $* ))
16624   }'
16625 else
16626   as_fn_arith ()
16627   {
16628     as_val=`expr "$@" || test $? -eq 1`
16629   }
16630 fi # as_fn_arith
16631
16632
16633 if expr a : '\(a\)' >/dev/null 2>&1 &&
16634    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16635   as_expr=expr
16636 else
16637   as_expr=false
16638 fi
16639
16640 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16641   as_basename=basename
16642 else
16643   as_basename=false
16644 fi
16645
16646 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16647   as_dirname=dirname
16648 else
16649   as_dirname=false
16650 fi
16651
16652 as_me=`$as_basename -- "$0" ||
16653 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16654          X"$0" : 'X\(//\)$' \| \
16655          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16656 $as_echo X/"$0" |
16657     sed '/^.*\/\([^/][^/]*\)\/*$/{
16658             s//\1/
16659             q
16660           }
16661           /^X\/\(\/\/\)$/{
16662             s//\1/
16663             q
16664           }
16665           /^X\/\(\/\).*/{
16666             s//\1/
16667             q
16668           }
16669           s/.*/./; q'`
16670
16671 # Avoid depending upon Character Ranges.
16672 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16673 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16674 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16675 as_cr_digits='0123456789'
16676 as_cr_alnum=$as_cr_Letters$as_cr_digits
16677
16678 ECHO_C= ECHO_N= ECHO_T=
16679 case `echo -n x` in #(((((
16680 -n*)
16681   case `echo 'xy\c'` in
16682   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16683   xy)  ECHO_C='\c';;
16684   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16685        ECHO_T=' ';;
16686   esac;;
16687 *)
16688   ECHO_N='-n';;
16689 esac
16690
16691 rm -f conf$$ conf$$.exe conf$$.file
16692 if test -d conf$$.dir; then
16693   rm -f conf$$.dir/conf$$.file
16694 else
16695   rm -f conf$$.dir
16696   mkdir conf$$.dir 2>/dev/null
16697 fi
16698 if (echo >conf$$.file) 2>/dev/null; then
16699   if ln -s conf$$.file conf$$ 2>/dev/null; then
16700     as_ln_s='ln -s'
16701     # ... but there are two gotchas:
16702     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16703     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16704     # In both cases, we have to default to `cp -pR'.
16705     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16706       as_ln_s='cp -pR'
16707   elif ln conf$$.file conf$$ 2>/dev/null; then
16708     as_ln_s=ln
16709   else
16710     as_ln_s='cp -pR'
16711   fi
16712 else
16713   as_ln_s='cp -pR'
16714 fi
16715 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16716 rmdir conf$$.dir 2>/dev/null
16717
16718
16719 # as_fn_mkdir_p
16720 # -------------
16721 # Create "$as_dir" as a directory, including parents if necessary.
16722 as_fn_mkdir_p ()
16723 {
16724
16725   case $as_dir in #(
16726   -*) as_dir=./$as_dir;;
16727   esac
16728   test -d "$as_dir" || eval $as_mkdir_p || {
16729     as_dirs=
16730     while :; do
16731       case $as_dir in #(
16732       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16733       *) as_qdir=$as_dir;;
16734       esac
16735       as_dirs="'$as_qdir' $as_dirs"
16736       as_dir=`$as_dirname -- "$as_dir" ||
16737 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16738          X"$as_dir" : 'X\(//\)[^/]' \| \
16739          X"$as_dir" : 'X\(//\)$' \| \
16740          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16741 $as_echo X"$as_dir" |
16742     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16743             s//\1/
16744             q
16745           }
16746           /^X\(\/\/\)[^/].*/{
16747             s//\1/
16748             q
16749           }
16750           /^X\(\/\/\)$/{
16751             s//\1/
16752             q
16753           }
16754           /^X\(\/\).*/{
16755             s//\1/
16756             q
16757           }
16758           s/.*/./; q'`
16759       test -d "$as_dir" && break
16760     done
16761     test -z "$as_dirs" || eval "mkdir $as_dirs"
16762   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16763
16764
16765 } # as_fn_mkdir_p
16766 if mkdir -p . 2>/dev/null; then
16767   as_mkdir_p='mkdir -p "$as_dir"'
16768 else
16769   test -d ./-p && rmdir ./-p
16770   as_mkdir_p=false
16771 fi
16772
16773
16774 # as_fn_executable_p FILE
16775 # -----------------------
16776 # Test if FILE is an executable regular file.
16777 as_fn_executable_p ()
16778 {
16779   test -f "$1" && test -x "$1"
16780 } # as_fn_executable_p
16781 as_test_x='test -x'
16782 as_executable_p=as_fn_executable_p
16783
16784 # Sed expression to map a string onto a valid CPP name.
16785 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16786
16787 # Sed expression to map a string onto a valid variable name.
16788 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16789
16790
16791 exec 6>&1
16792 ## ----------------------------------- ##
16793 ## Main body of $CONFIG_STATUS script. ##
16794 ## ----------------------------------- ##
16795 _ASEOF
16796 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16797
16798 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16799 # Save the log message, to keep $0 and so on meaningful, and to
16800 # report actual input values of CONFIG_FILES etc. instead of their
16801 # values after options handling.
16802 ac_log="
16803 This file was extended by expat $as_me 2.2.2, which was
16804 generated by GNU Autoconf 2.69.  Invocation command line was
16805
16806   CONFIG_FILES    = $CONFIG_FILES
16807   CONFIG_HEADERS  = $CONFIG_HEADERS
16808   CONFIG_LINKS    = $CONFIG_LINKS
16809   CONFIG_COMMANDS = $CONFIG_COMMANDS
16810   $ $0 $@
16811
16812 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16813 "
16814
16815 _ACEOF
16816
16817 case $ac_config_files in *"
16818 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16819 esac
16820
16821 case $ac_config_headers in *"
16822 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16823 esac
16824
16825
16826 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16827 # Files that config.status was made for.
16828 config_files="$ac_config_files"
16829 config_headers="$ac_config_headers"
16830 config_commands="$ac_config_commands"
16831
16832 _ACEOF
16833
16834 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16835 ac_cs_usage="\
16836 \`$as_me' instantiates files and other configuration actions
16837 from templates according to the current configuration.  Unless the files
16838 and actions are specified as TAGs, all are instantiated by default.
16839
16840 Usage: $0 [OPTION]... [TAG]...
16841
16842   -h, --help       print this help, then exit
16843   -V, --version    print version number and configuration settings, then exit
16844       --config     print configuration, then exit
16845   -q, --quiet, --silent
16846                    do not print progress messages
16847   -d, --debug      don't remove temporary files
16848       --recheck    update $as_me by reconfiguring in the same conditions
16849       --file=FILE[:TEMPLATE]
16850                    instantiate the configuration file FILE
16851       --header=FILE[:TEMPLATE]
16852                    instantiate the configuration header FILE
16853
16854 Configuration files:
16855 $config_files
16856
16857 Configuration headers:
16858 $config_headers
16859
16860 Configuration commands:
16861 $config_commands
16862
16863 Report bugs to <expat-bugs@libexpat.org>."
16864
16865 _ACEOF
16866 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16867 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16868 ac_cs_version="\\
16869 expat config.status 2.2.2
16870 configured by $0, generated by GNU Autoconf 2.69,
16871   with options \\"\$ac_cs_config\\"
16872
16873 Copyright (C) 2012 Free Software Foundation, Inc.
16874 This config.status script is free software; the Free Software Foundation
16875 gives unlimited permission to copy, distribute and modify it."
16876
16877 ac_pwd='$ac_pwd'
16878 srcdir='$srcdir'
16879 INSTALL='$INSTALL'
16880 AWK='$AWK'
16881 test -n "\$AWK" || AWK=awk
16882 _ACEOF
16883
16884 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16885 # The default lists apply if the user does not specify any file.
16886 ac_need_defaults=:
16887 while test $# != 0
16888 do
16889   case $1 in
16890   --*=?*)
16891     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16892     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16893     ac_shift=:
16894     ;;
16895   --*=)
16896     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16897     ac_optarg=
16898     ac_shift=:
16899     ;;
16900   *)
16901     ac_option=$1
16902     ac_optarg=$2
16903     ac_shift=shift
16904     ;;
16905   esac
16906
16907   case $ac_option in
16908   # Handling of the options.
16909   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16910     ac_cs_recheck=: ;;
16911   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16912     $as_echo "$ac_cs_version"; exit ;;
16913   --config | --confi | --conf | --con | --co | --c )
16914     $as_echo "$ac_cs_config"; exit ;;
16915   --debug | --debu | --deb | --de | --d | -d )
16916     debug=: ;;
16917   --file | --fil | --fi | --f )
16918     $ac_shift
16919     case $ac_optarg in
16920     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16921     '') as_fn_error $? "missing file argument" ;;
16922     esac
16923     as_fn_append CONFIG_FILES " '$ac_optarg'"
16924     ac_need_defaults=false;;
16925   --header | --heade | --head | --hea )
16926     $ac_shift
16927     case $ac_optarg in
16928     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16929     esac
16930     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16931     ac_need_defaults=false;;
16932   --he | --h)
16933     # Conflict between --help and --header
16934     as_fn_error $? "ambiguous option: \`$1'
16935 Try \`$0 --help' for more information.";;
16936   --help | --hel | -h )
16937     $as_echo "$ac_cs_usage"; exit ;;
16938   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16939   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16940     ac_cs_silent=: ;;
16941
16942   # This is an error.
16943   -*) as_fn_error $? "unrecognized option: \`$1'
16944 Try \`$0 --help' for more information." ;;
16945
16946   *) as_fn_append ac_config_targets " $1"
16947      ac_need_defaults=false ;;
16948
16949   esac
16950   shift
16951 done
16952
16953 ac_configure_extra_args=
16954
16955 if $ac_cs_silent; then
16956   exec 6>/dev/null
16957   ac_configure_extra_args="$ac_configure_extra_args --silent"
16958 fi
16959
16960 _ACEOF
16961 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16962 if \$ac_cs_recheck; then
16963   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16964   shift
16965   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16966   CONFIG_SHELL='$SHELL'
16967   export CONFIG_SHELL
16968   exec "\$@"
16969 fi
16970
16971 _ACEOF
16972 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16973 exec 5>>config.log
16974 {
16975   echo
16976   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16977 ## Running $as_me. ##
16978 _ASBOX
16979   $as_echo "$ac_log"
16980 } >&5
16981
16982 _ACEOF
16983 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16984 #
16985 # INIT-COMMANDS
16986 #
16987
16988
16989 # The HP-UX ksh and POSIX shell print the target directory to stdout
16990 # if CDPATH is set.
16991 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16992
16993 sed_quote_subst='$sed_quote_subst'
16994 double_quote_subst='$double_quote_subst'
16995 delay_variable_subst='$delay_variable_subst'
16996 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
16997 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16998 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16999 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17000 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17001 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17002 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17003 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17004 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17005 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
17006 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17007 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17008 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17009 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17010 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17011 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17012 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17013 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17014 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17015 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17016 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17017 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17018 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17019 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17020 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17021 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17022 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17023 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17024 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17025 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17026 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17027 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17028 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17029 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17030 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17031 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17032 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17033 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17034 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17035 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17036 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17037 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17038 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17039 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17040 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17041 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17042 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17043 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17044 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17045 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17046 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17047 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17048 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17049 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17050 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17051 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17052 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17053 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
17054 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17055 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"`'
17056 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
17057 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17058 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17059 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
17060 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17061 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17062 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17063 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17064 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17065 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17066 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17067 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17068 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17069 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17070 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17071 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17072 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17073 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17074 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17075 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17076 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17077 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17078 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17079 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17080 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17081 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17082 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17083 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17084 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17085 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17086 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17087 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17088 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17089 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17090 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17091 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17092 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17093 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17094 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17095 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17096 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17097 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17098 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17099 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17100 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17101 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17102 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17103 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17104 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17105 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17106 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17107 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17108 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17109 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17110 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17111 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17112 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17113 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17114 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17115 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17116 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17117 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17118 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17119 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17120 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17121 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17122 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17123 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17124 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
17125 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
17126 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17127 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17128 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17129 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17130 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17131 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17132 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17133 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17134 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17135 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17136 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17137 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17138 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17139 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17140 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17141 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17142 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17143 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17144 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17145 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17146 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17147 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17148 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17149 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17150 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17151 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17152 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17153 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17154 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17155 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17156 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17157 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17158 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17159 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17160 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17161 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17162 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17163 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17164 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17165 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17166 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17167 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17168 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17169 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17170 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17171 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17172 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17173 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17174 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17175 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17176 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17177 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17178 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17179 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17180 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17181 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17182 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17183 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17184 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17185 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17186
17187 LTCC='$LTCC'
17188 LTCFLAGS='$LTCFLAGS'
17189 compiler='$compiler_DEFAULT'
17190
17191 # A function that is used when there is no print builtin or printf.
17192 func_fallback_echo ()
17193 {
17194   eval 'cat <<_LTECHO_EOF
17195 \$1
17196 _LTECHO_EOF'
17197 }
17198
17199 # Quote evaled strings.
17200 for var in AS \
17201 DLLTOOL \
17202 OBJDUMP \
17203 SHELL \
17204 ECHO \
17205 PATH_SEPARATOR \
17206 SED \
17207 GREP \
17208 EGREP \
17209 FGREP \
17210 LD \
17211 NM \
17212 LN_S \
17213 lt_SP2NL \
17214 lt_NL2SP \
17215 reload_flag \
17216 deplibs_check_method \
17217 file_magic_cmd \
17218 file_magic_glob \
17219 want_nocaseglob \
17220 sharedlib_from_linklib_cmd \
17221 AR \
17222 AR_FLAGS \
17223 archiver_list_spec \
17224 STRIP \
17225 RANLIB \
17226 CC \
17227 CFLAGS \
17228 compiler \
17229 lt_cv_sys_global_symbol_pipe \
17230 lt_cv_sys_global_symbol_to_cdecl \
17231 lt_cv_sys_global_symbol_to_import \
17232 lt_cv_sys_global_symbol_to_c_name_address \
17233 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17234 lt_cv_nm_interface \
17235 nm_file_list_spec \
17236 lt_cv_truncate_bin \
17237 lt_prog_compiler_no_builtin_flag \
17238 lt_prog_compiler_pic \
17239 lt_prog_compiler_wl \
17240 lt_prog_compiler_static \
17241 lt_cv_prog_compiler_c_o \
17242 need_locks \
17243 MANIFEST_TOOL \
17244 DSYMUTIL \
17245 NMEDIT \
17246 LIPO \
17247 OTOOL \
17248 OTOOL64 \
17249 shrext_cmds \
17250 export_dynamic_flag_spec \
17251 whole_archive_flag_spec \
17252 compiler_needs_object \
17253 with_gnu_ld \
17254 allow_undefined_flag \
17255 no_undefined_flag \
17256 hardcode_libdir_flag_spec \
17257 hardcode_libdir_separator \
17258 exclude_expsyms \
17259 include_expsyms \
17260 file_list_spec \
17261 variables_saved_for_relink \
17262 libname_spec \
17263 library_names_spec \
17264 soname_spec \
17265 install_override_mode \
17266 finish_eval \
17267 old_striplib \
17268 striplib \
17269 compiler_lib_search_dirs \
17270 predep_objects \
17271 postdep_objects \
17272 predeps \
17273 postdeps \
17274 compiler_lib_search_path \
17275 LD_CXX \
17276 reload_flag_CXX \
17277 compiler_CXX \
17278 lt_prog_compiler_no_builtin_flag_CXX \
17279 lt_prog_compiler_pic_CXX \
17280 lt_prog_compiler_wl_CXX \
17281 lt_prog_compiler_static_CXX \
17282 lt_cv_prog_compiler_c_o_CXX \
17283 export_dynamic_flag_spec_CXX \
17284 whole_archive_flag_spec_CXX \
17285 compiler_needs_object_CXX \
17286 with_gnu_ld_CXX \
17287 allow_undefined_flag_CXX \
17288 no_undefined_flag_CXX \
17289 hardcode_libdir_flag_spec_CXX \
17290 hardcode_libdir_separator_CXX \
17291 exclude_expsyms_CXX \
17292 include_expsyms_CXX \
17293 file_list_spec_CXX \
17294 compiler_lib_search_dirs_CXX \
17295 predep_objects_CXX \
17296 postdep_objects_CXX \
17297 predeps_CXX \
17298 postdeps_CXX \
17299 compiler_lib_search_path_CXX; do
17300     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17301     *[\\\\\\\`\\"\\\$]*)
17302       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17303       ;;
17304     *)
17305       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17306       ;;
17307     esac
17308 done
17309
17310 # Double-quote double-evaled strings.
17311 for var in reload_cmds \
17312 old_postinstall_cmds \
17313 old_postuninstall_cmds \
17314 old_archive_cmds \
17315 extract_expsyms_cmds \
17316 old_archive_from_new_cmds \
17317 old_archive_from_expsyms_cmds \
17318 archive_cmds \
17319 archive_expsym_cmds \
17320 module_cmds \
17321 module_expsym_cmds \
17322 export_symbols_cmds \
17323 prelink_cmds \
17324 postlink_cmds \
17325 postinstall_cmds \
17326 postuninstall_cmds \
17327 finish_cmds \
17328 sys_lib_search_path_spec \
17329 configure_time_dlsearch_path \
17330 configure_time_lt_sys_library_path \
17331 reload_cmds_CXX \
17332 old_archive_cmds_CXX \
17333 old_archive_from_new_cmds_CXX \
17334 old_archive_from_expsyms_cmds_CXX \
17335 archive_cmds_CXX \
17336 archive_expsym_cmds_CXX \
17337 module_cmds_CXX \
17338 module_expsym_cmds_CXX \
17339 export_symbols_cmds_CXX \
17340 prelink_cmds_CXX \
17341 postlink_cmds_CXX; do
17342     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17343     *[\\\\\\\`\\"\\\$]*)
17344       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17345       ;;
17346     *)
17347       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17348       ;;
17349     esac
17350 done
17351
17352 ac_aux_dir='$ac_aux_dir'
17353
17354 # See if we are running on zsh, and set the options that allow our
17355 # commands through without removal of \ escapes INIT.
17356 if test -n "\${ZSH_VERSION+set}"; then
17357    setopt NO_GLOB_SUBST
17358 fi
17359
17360
17361     PACKAGE='$PACKAGE'
17362     VERSION='$VERSION'
17363     RM='$RM'
17364     ofile='$ofile'
17365
17366
17367
17368
17369
17370
17371 _ACEOF
17372
17373 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17374
17375 # Handling of arguments.
17376 for ac_config_target in $ac_config_targets
17377 do
17378   case $ac_config_target in
17379     "expat_config.h") CONFIG_HEADERS="$CONFIG_HEADERS expat_config.h" ;;
17380     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17381     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17382     "expat.pc") CONFIG_FILES="$CONFIG_FILES expat.pc" ;;
17383     "run.sh") CONFIG_FILES="$CONFIG_FILES run.sh" ;;
17384
17385   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17386   esac
17387 done
17388
17389
17390 # If the user did not use the arguments to specify the items to instantiate,
17391 # then the envvar interface is used.  Set only those that are not.
17392 # We use the long form for the default assignment because of an extremely
17393 # bizarre bug on SunOS 4.1.3.
17394 if $ac_need_defaults; then
17395   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17396   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17397   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17398 fi
17399
17400 # Have a temporary directory for convenience.  Make it in the build tree
17401 # simply because there is no reason against having it here, and in addition,
17402 # creating and moving files from /tmp can sometimes cause problems.
17403 # Hook for its removal unless debugging.
17404 # Note that there is a small window in which the directory will not be cleaned:
17405 # after its creation but before its name has been assigned to `$tmp'.
17406 $debug ||
17407 {
17408   tmp= ac_tmp=
17409   trap 'exit_status=$?
17410   : "${ac_tmp:=$tmp}"
17411   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17412 ' 0
17413   trap 'as_fn_exit 1' 1 2 13 15
17414 }
17415 # Create a (secure) tmp directory for tmp files.
17416
17417 {
17418   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17419   test -d "$tmp"
17420 }  ||
17421 {
17422   tmp=./conf$$-$RANDOM
17423   (umask 077 && mkdir "$tmp")
17424 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17425 ac_tmp=$tmp
17426
17427 # Set up the scripts for CONFIG_FILES section.
17428 # No need to generate them if there are no CONFIG_FILES.
17429 # This happens for instance with `./config.status config.h'.
17430 if test -n "$CONFIG_FILES"; then
17431
17432
17433 ac_cr=`echo X | tr X '\015'`
17434 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17435 # But we know of no other shell where ac_cr would be empty at this
17436 # point, so we can use a bashism as a fallback.
17437 if test "x$ac_cr" = x; then
17438   eval ac_cr=\$\'\\r\'
17439 fi
17440 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17441 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17442   ac_cs_awk_cr='\\r'
17443 else
17444   ac_cs_awk_cr=$ac_cr
17445 fi
17446
17447 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17448 _ACEOF
17449
17450
17451 {
17452   echo "cat >conf$$subs.awk <<_ACEOF" &&
17453   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17454   echo "_ACEOF"
17455 } >conf$$subs.sh ||
17456   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17457 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17458 ac_delim='%!_!# '
17459 for ac_last_try in false false false false false :; do
17460   . ./conf$$subs.sh ||
17461     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17462
17463   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17464   if test $ac_delim_n = $ac_delim_num; then
17465     break
17466   elif $ac_last_try; then
17467     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17468   else
17469     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17470   fi
17471 done
17472 rm -f conf$$subs.sh
17473
17474 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17475 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17476 _ACEOF
17477 sed -n '
17478 h
17479 s/^/S["/; s/!.*/"]=/
17480 p
17481 g
17482 s/^[^!]*!//
17483 :repl
17484 t repl
17485 s/'"$ac_delim"'$//
17486 t delim
17487 :nl
17488 h
17489 s/\(.\{148\}\)..*/\1/
17490 t more1
17491 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17492 p
17493 n
17494 b repl
17495 :more1
17496 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17497 p
17498 g
17499 s/.\{148\}//
17500 t nl
17501 :delim
17502 h
17503 s/\(.\{148\}\)..*/\1/
17504 t more2
17505 s/["\\]/\\&/g; s/^/"/; s/$/"/
17506 p
17507 b
17508 :more2
17509 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17510 p
17511 g
17512 s/.\{148\}//
17513 t delim
17514 ' <conf$$subs.awk | sed '
17515 /^[^""]/{
17516   N
17517   s/\n//
17518 }
17519 ' >>$CONFIG_STATUS || ac_write_fail=1
17520 rm -f conf$$subs.awk
17521 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17522 _ACAWK
17523 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17524   for (key in S) S_is_set[key] = 1
17525   FS = "\a"
17526
17527 }
17528 {
17529   line = $ 0
17530   nfields = split(line, field, "@")
17531   substed = 0
17532   len = length(field[1])
17533   for (i = 2; i < nfields; i++) {
17534     key = field[i]
17535     keylen = length(key)
17536     if (S_is_set[key]) {
17537       value = S[key]
17538       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17539       len += length(value) + length(field[++i])
17540       substed = 1
17541     } else
17542       len += 1 + keylen
17543   }
17544
17545   print line
17546 }
17547
17548 _ACAWK
17549 _ACEOF
17550 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17551 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17552   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17553 else
17554   cat
17555 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17556   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17557 _ACEOF
17558
17559 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17560 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17561 # trailing colons and then remove the whole line if VPATH becomes empty
17562 # (actually we leave an empty line to preserve line numbers).
17563 if test "x$srcdir" = x.; then
17564   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
17565 h
17566 s///
17567 s/^/:/
17568 s/[      ]*$/:/
17569 s/:\$(srcdir):/:/g
17570 s/:\${srcdir}:/:/g
17571 s/:@srcdir@:/:/g
17572 s/^:*//
17573 s/:*$//
17574 x
17575 s/\(=[   ]*\).*/\1/
17576 G
17577 s/\n//
17578 s/^[^=]*=[       ]*$//
17579 }'
17580 fi
17581
17582 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17583 fi # test -n "$CONFIG_FILES"
17584
17585 # Set up the scripts for CONFIG_HEADERS section.
17586 # No need to generate them if there are no CONFIG_HEADERS.
17587 # This happens for instance with `./config.status Makefile'.
17588 if test -n "$CONFIG_HEADERS"; then
17589 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17590 BEGIN {
17591 _ACEOF
17592
17593 # Transform confdefs.h into an awk script `defines.awk', embedded as
17594 # here-document in config.status, that substitutes the proper values into
17595 # config.h.in to produce config.h.
17596
17597 # Create a delimiter string that does not exist in confdefs.h, to ease
17598 # handling of long lines.
17599 ac_delim='%!_!# '
17600 for ac_last_try in false false :; do
17601   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17602   if test -z "$ac_tt"; then
17603     break
17604   elif $ac_last_try; then
17605     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17606   else
17607     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17608   fi
17609 done
17610
17611 # For the awk script, D is an array of macro values keyed by name,
17612 # likewise P contains macro parameters if any.  Preserve backslash
17613 # newline sequences.
17614
17615 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17616 sed -n '
17617 s/.\{148\}/&'"$ac_delim"'/g
17618 t rset
17619 :rset
17620 s/^[     ]*#[    ]*define[       ][      ]*/ /
17621 t def
17622 d
17623 :def
17624 s/\\$//
17625 t bsnl
17626 s/["\\]/\\&/g
17627 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17628 D["\1"]=" \3"/p
17629 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
17630 d
17631 :bsnl
17632 s/["\\]/\\&/g
17633 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17634 D["\1"]=" \3\\\\\\n"\\/p
17635 t cont
17636 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17637 t cont
17638 d
17639 :cont
17640 n
17641 s/.\{148\}/&'"$ac_delim"'/g
17642 t clear
17643 :clear
17644 s/\\$//
17645 t bsnlc
17646 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17647 d
17648 :bsnlc
17649 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17650 b cont
17651 ' <confdefs.h | sed '
17652 s/'"$ac_delim"'/"\\\
17653 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17654
17655 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17656   for (key in D) D_is_set[key] = 1
17657   FS = "\a"
17658 }
17659 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17660   line = \$ 0
17661   split(line, arg, " ")
17662   if (arg[1] == "#") {
17663     defundef = arg[2]
17664     mac1 = arg[3]
17665   } else {
17666     defundef = substr(arg[1], 2)
17667     mac1 = arg[2]
17668   }
17669   split(mac1, mac2, "(") #)
17670   macro = mac2[1]
17671   prefix = substr(line, 1, index(line, defundef) - 1)
17672   if (D_is_set[macro]) {
17673     # Preserve the white space surrounding the "#".
17674     print prefix "define", macro P[macro] D[macro]
17675     next
17676   } else {
17677     # Replace #undef with comments.  This is necessary, for example,
17678     # in the case of _POSIX_SOURCE, which is predefined and required
17679     # on some systems where configure will not decide to define it.
17680     if (defundef == "undef") {
17681       print "/*", prefix defundef, macro, "*/"
17682       next
17683     }
17684   }
17685 }
17686 { print }
17687 _ACAWK
17688 _ACEOF
17689 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17690   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17691 fi # test -n "$CONFIG_HEADERS"
17692
17693
17694 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17695 shift
17696 for ac_tag
17697 do
17698   case $ac_tag in
17699   :[FHLC]) ac_mode=$ac_tag; continue;;
17700   esac
17701   case $ac_mode$ac_tag in
17702   :[FHL]*:*);;
17703   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17704   :[FH]-) ac_tag=-:-;;
17705   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17706   esac
17707   ac_save_IFS=$IFS
17708   IFS=:
17709   set x $ac_tag
17710   IFS=$ac_save_IFS
17711   shift
17712   ac_file=$1
17713   shift
17714
17715   case $ac_mode in
17716   :L) ac_source=$1;;
17717   :[FH])
17718     ac_file_inputs=
17719     for ac_f
17720     do
17721       case $ac_f in
17722       -) ac_f="$ac_tmp/stdin";;
17723       *) # Look for the file first in the build tree, then in the source tree
17724          # (if the path is not absolute).  The absolute path cannot be DOS-style,
17725          # because $ac_f cannot contain `:'.
17726          test -f "$ac_f" ||
17727            case $ac_f in
17728            [\\/$]*) false;;
17729            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17730            esac ||
17731            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17732       esac
17733       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17734       as_fn_append ac_file_inputs " '$ac_f'"
17735     done
17736
17737     # Let's still pretend it is `configure' which instantiates (i.e., don't
17738     # use $as_me), people would be surprised to read:
17739     #    /* config.h.  Generated by config.status.  */
17740     configure_input='Generated from '`
17741           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17742         `' by configure.'
17743     if test x"$ac_file" != x-; then
17744       configure_input="$ac_file.  $configure_input"
17745       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17746 $as_echo "$as_me: creating $ac_file" >&6;}
17747     fi
17748     # Neutralize special characters interpreted by sed in replacement strings.
17749     case $configure_input in #(
17750     *\&* | *\|* | *\\* )
17751        ac_sed_conf_input=`$as_echo "$configure_input" |
17752        sed 's/[\\\\&|]/\\\\&/g'`;; #(
17753     *) ac_sed_conf_input=$configure_input;;
17754     esac
17755
17756     case $ac_tag in
17757     *:-:* | *:-) cat >"$ac_tmp/stdin" \
17758       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17759     esac
17760     ;;
17761   esac
17762
17763   ac_dir=`$as_dirname -- "$ac_file" ||
17764 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17765          X"$ac_file" : 'X\(//\)[^/]' \| \
17766          X"$ac_file" : 'X\(//\)$' \| \
17767          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17768 $as_echo X"$ac_file" |
17769     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17770             s//\1/
17771             q
17772           }
17773           /^X\(\/\/\)[^/].*/{
17774             s//\1/
17775             q
17776           }
17777           /^X\(\/\/\)$/{
17778             s//\1/
17779             q
17780           }
17781           /^X\(\/\).*/{
17782             s//\1/
17783             q
17784           }
17785           s/.*/./; q'`
17786   as_dir="$ac_dir"; as_fn_mkdir_p
17787   ac_builddir=.
17788
17789 case "$ac_dir" in
17790 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17791 *)
17792   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17793   # A ".." for each directory in $ac_dir_suffix.
17794   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17795   case $ac_top_builddir_sub in
17796   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17797   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17798   esac ;;
17799 esac
17800 ac_abs_top_builddir=$ac_pwd
17801 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17802 # for backward compatibility:
17803 ac_top_builddir=$ac_top_build_prefix
17804
17805 case $srcdir in
17806   .)  # We are building in place.
17807     ac_srcdir=.
17808     ac_top_srcdir=$ac_top_builddir_sub
17809     ac_abs_top_srcdir=$ac_pwd ;;
17810   [\\/]* | ?:[\\/]* )  # Absolute name.
17811     ac_srcdir=$srcdir$ac_dir_suffix;
17812     ac_top_srcdir=$srcdir
17813     ac_abs_top_srcdir=$srcdir ;;
17814   *) # Relative name.
17815     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17816     ac_top_srcdir=$ac_top_build_prefix$srcdir
17817     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17818 esac
17819 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17820
17821
17822   case $ac_mode in
17823   :F)
17824   #
17825   # CONFIG_FILE
17826   #
17827
17828   case $INSTALL in
17829   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17830   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17831   esac
17832 _ACEOF
17833
17834 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17835 # If the template does not know about datarootdir, expand it.
17836 # FIXME: This hack should be removed a few years after 2.60.
17837 ac_datarootdir_hack=; ac_datarootdir_seen=
17838 ac_sed_dataroot='
17839 /datarootdir/ {
17840   p
17841   q
17842 }
17843 /@datadir@/p
17844 /@docdir@/p
17845 /@infodir@/p
17846 /@localedir@/p
17847 /@mandir@/p'
17848 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17849 *datarootdir*) ac_datarootdir_seen=yes;;
17850 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17851   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17852 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17853 _ACEOF
17854 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17855   ac_datarootdir_hack='
17856   s&@datadir@&$datadir&g
17857   s&@docdir@&$docdir&g
17858   s&@infodir@&$infodir&g
17859   s&@localedir@&$localedir&g
17860   s&@mandir@&$mandir&g
17861   s&\\\${datarootdir}&$datarootdir&g' ;;
17862 esac
17863 _ACEOF
17864
17865 # Neutralize VPATH when `$srcdir' = `.'.
17866 # Shell code in configure.ac might set extrasub.
17867 # FIXME: do we really want to maintain this feature?
17868 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17869 ac_sed_extra="$ac_vpsub
17870 $extrasub
17871 _ACEOF
17872 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17873 :t
17874 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17875 s|@configure_input@|$ac_sed_conf_input|;t t
17876 s&@top_builddir@&$ac_top_builddir_sub&;t t
17877 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17878 s&@srcdir@&$ac_srcdir&;t t
17879 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17880 s&@top_srcdir@&$ac_top_srcdir&;t t
17881 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17882 s&@builddir@&$ac_builddir&;t t
17883 s&@abs_builddir@&$ac_abs_builddir&;t t
17884 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17885 s&@INSTALL@&$ac_INSTALL&;t t
17886 $ac_datarootdir_hack
17887 "
17888 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17889   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17890
17891 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17892   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17893   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
17894       "$ac_tmp/out"`; test -z "$ac_out"; } &&
17895   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17896 which seems to be undefined.  Please make sure it is defined" >&5
17897 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17898 which seems to be undefined.  Please make sure it is defined" >&2;}
17899
17900   rm -f "$ac_tmp/stdin"
17901   case $ac_file in
17902   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17903   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17904   esac \
17905   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17906  ;;
17907   :H)
17908   #
17909   # CONFIG_HEADER
17910   #
17911   if test x"$ac_file" != x-; then
17912     {
17913       $as_echo "/* $configure_input  */" \
17914       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17915     } >"$ac_tmp/config.h" \
17916       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17917     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17918       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17919 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17920     else
17921       rm -f "$ac_file"
17922       mv "$ac_tmp/config.h" "$ac_file" \
17923         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17924     fi
17925   else
17926     $as_echo "/* $configure_input  */" \
17927       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17928       || as_fn_error $? "could not create -" "$LINENO" 5
17929   fi
17930  ;;
17931
17932   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17933 $as_echo "$as_me: executing $ac_file commands" >&6;}
17934  ;;
17935   esac
17936
17937
17938   case $ac_file$ac_mode in
17939     "libtool":C)
17940
17941     # See if we are running on zsh, and set the options that allow our
17942     # commands through without removal of \ escapes.
17943     if test -n "${ZSH_VERSION+set}"; then
17944       setopt NO_GLOB_SUBST
17945     fi
17946
17947     cfgfile=${ofile}T
17948     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17949     $RM "$cfgfile"
17950
17951     cat <<_LT_EOF >> "$cfgfile"
17952 #! $SHELL
17953 # Generated automatically by $as_me ($PACKAGE) $VERSION
17954 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17955 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17956
17957 # Provide generalized library-building support services.
17958 # Written by Gordon Matzigkeit, 1996
17959
17960 # Copyright (C) 2014 Free Software Foundation, Inc.
17961 # This is free software; see the source for copying conditions.  There is NO
17962 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17963
17964 # GNU Libtool is free software; you can redistribute it and/or modify
17965 # it under the terms of the GNU General Public License as published by
17966 # the Free Software Foundation; either version 2 of of the License, or
17967 # (at your option) any later version.
17968 #
17969 # As a special exception to the GNU General Public License, if you
17970 # distribute this file as part of a program or library that is built
17971 # using GNU Libtool, you may include this file under the  same
17972 # distribution terms that you use for the rest of that program.
17973 #
17974 # GNU Libtool is distributed in the hope that it will be useful, but
17975 # WITHOUT ANY WARRANTY; without even the implied warranty of
17976 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17977 # GNU General Public License for more details.
17978 #
17979 # You should have received a copy of the GNU General Public License
17980 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
17981
17982
17983 # The names of the tagged configurations supported by this script.
17984 available_tags='CXX '
17985
17986 # Configured defaults for sys_lib_dlsearch_path munging.
17987 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
17988
17989 # ### BEGIN LIBTOOL CONFIG
17990
17991 # Assembler program.
17992 AS=$lt_AS
17993
17994 # DLL creation program.
17995 DLLTOOL=$lt_DLLTOOL
17996
17997 # Object dumper program.
17998 OBJDUMP=$lt_OBJDUMP
17999
18000 # Which release of libtool.m4 was used?
18001 macro_version=$macro_version
18002 macro_revision=$macro_revision
18003
18004 # Whether or not to build shared libraries.
18005 build_libtool_libs=$enable_shared
18006
18007 # Whether or not to build static libraries.
18008 build_old_libs=$enable_static
18009
18010 # What type of objects to build.
18011 pic_mode=$pic_mode
18012
18013 # Whether or not to optimize for fast installation.
18014 fast_install=$enable_fast_install
18015
18016 # Shared archive member basename,for filename based shared library versioning on AIX.
18017 shared_archive_member_spec=$shared_archive_member_spec
18018
18019 # Shell to use when invoking shell scripts.
18020 SHELL=$lt_SHELL
18021
18022 # An echo program that protects backslashes.
18023 ECHO=$lt_ECHO
18024
18025 # The PATH separator for the build system.
18026 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18027
18028 # The host system.
18029 host_alias=$host_alias
18030 host=$host
18031 host_os=$host_os
18032
18033 # The build system.
18034 build_alias=$build_alias
18035 build=$build
18036 build_os=$build_os
18037
18038 # A sed program that does not truncate output.
18039 SED=$lt_SED
18040
18041 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18042 Xsed="\$SED -e 1s/^X//"
18043
18044 # A grep program that handles long lines.
18045 GREP=$lt_GREP
18046
18047 # An ERE matcher.
18048 EGREP=$lt_EGREP
18049
18050 # A literal string matcher.
18051 FGREP=$lt_FGREP
18052
18053 # A BSD- or MS-compatible name lister.
18054 NM=$lt_NM
18055
18056 # Whether we need soft or hard links.
18057 LN_S=$lt_LN_S
18058
18059 # What is the maximum length of a command?
18060 max_cmd_len=$max_cmd_len
18061
18062 # Object file suffix (normally "o").
18063 objext=$ac_objext
18064
18065 # Executable file suffix (normally "").
18066 exeext=$exeext
18067
18068 # whether the shell understands "unset".
18069 lt_unset=$lt_unset
18070
18071 # turn spaces into newlines.
18072 SP2NL=$lt_lt_SP2NL
18073
18074 # turn newlines into spaces.
18075 NL2SP=$lt_lt_NL2SP
18076
18077 # convert \$build file names to \$host format.
18078 to_host_file_cmd=$lt_cv_to_host_file_cmd
18079
18080 # convert \$build files to toolchain format.
18081 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18082
18083 # Method to check whether dependent libraries are shared objects.
18084 deplibs_check_method=$lt_deplibs_check_method
18085
18086 # Command to use when deplibs_check_method = "file_magic".
18087 file_magic_cmd=$lt_file_magic_cmd
18088
18089 # How to find potential files when deplibs_check_method = "file_magic".
18090 file_magic_glob=$lt_file_magic_glob
18091
18092 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18093 want_nocaseglob=$lt_want_nocaseglob
18094
18095 # Command to associate shared and link libraries.
18096 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18097
18098 # The archiver.
18099 AR=$lt_AR
18100
18101 # Flags to create an archive.
18102 AR_FLAGS=$lt_AR_FLAGS
18103
18104 # How to feed a file listing to the archiver.
18105 archiver_list_spec=$lt_archiver_list_spec
18106
18107 # A symbol stripping program.
18108 STRIP=$lt_STRIP
18109
18110 # Commands used to install an old-style archive.
18111 RANLIB=$lt_RANLIB
18112 old_postinstall_cmds=$lt_old_postinstall_cmds
18113 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18114
18115 # Whether to use a lock for old archive extraction.
18116 lock_old_archive_extraction=$lock_old_archive_extraction
18117
18118 # A C compiler.
18119 LTCC=$lt_CC
18120
18121 # LTCC compiler flags.
18122 LTCFLAGS=$lt_CFLAGS
18123
18124 # Take the output of nm and produce a listing of raw symbols and C names.
18125 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18126
18127 # Transform the output of nm in a proper C declaration.
18128 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18129
18130 # Transform the output of nm into a list of symbols to manually relocate.
18131 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
18132
18133 # Transform the output of nm in a C name address pair.
18134 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18135
18136 # Transform the output of nm in a C name address pair when lib prefix is needed.
18137 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18138
18139 # The name lister interface.
18140 nm_interface=$lt_lt_cv_nm_interface
18141
18142 # Specify filename containing input files for \$NM.
18143 nm_file_list_spec=$lt_nm_file_list_spec
18144
18145 # The root where to search for dependent libraries,and where our libraries should be installed.
18146 lt_sysroot=$lt_sysroot
18147
18148 # Command to truncate a binary pipe.
18149 lt_truncate_bin=$lt_lt_cv_truncate_bin
18150
18151 # The name of the directory that contains temporary libtool files.
18152 objdir=$objdir
18153
18154 # Used to examine libraries when file_magic_cmd begins with "file".
18155 MAGIC_CMD=$MAGIC_CMD
18156
18157 # Must we lock files when doing compilation?
18158 need_locks=$lt_need_locks
18159
18160 # Manifest tool.
18161 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18162
18163 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18164 DSYMUTIL=$lt_DSYMUTIL
18165
18166 # Tool to change global to local symbols on Mac OS X.
18167 NMEDIT=$lt_NMEDIT
18168
18169 # Tool to manipulate fat objects and archives on Mac OS X.
18170 LIPO=$lt_LIPO
18171
18172 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18173 OTOOL=$lt_OTOOL
18174
18175 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18176 OTOOL64=$lt_OTOOL64
18177
18178 # Old archive suffix (normally "a").
18179 libext=$libext
18180
18181 # Shared library suffix (normally ".so").
18182 shrext_cmds=$lt_shrext_cmds
18183
18184 # The commands to extract the exported symbol list from a shared archive.
18185 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18186
18187 # Variables whose values should be saved in libtool wrapper scripts and
18188 # restored at link time.
18189 variables_saved_for_relink=$lt_variables_saved_for_relink
18190
18191 # Do we need the "lib" prefix for modules?
18192 need_lib_prefix=$need_lib_prefix
18193
18194 # Do we need a version for libraries?
18195 need_version=$need_version
18196
18197 # Library versioning type.
18198 version_type=$version_type
18199
18200 # Shared library runtime path variable.
18201 runpath_var=$runpath_var
18202
18203 # Shared library path variable.
18204 shlibpath_var=$shlibpath_var
18205
18206 # Is shlibpath searched before the hard-coded library search path?
18207 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18208
18209 # Format of library name prefix.
18210 libname_spec=$lt_libname_spec
18211
18212 # List of archive names.  First name is the real one, the rest are links.
18213 # The last name is the one that the linker finds with -lNAME
18214 library_names_spec=$lt_library_names_spec
18215
18216 # The coded name of the library, if different from the real name.
18217 soname_spec=$lt_soname_spec
18218
18219 # Permission mode override for installation of shared libraries.
18220 install_override_mode=$lt_install_override_mode
18221
18222 # Command to use after installation of a shared archive.
18223 postinstall_cmds=$lt_postinstall_cmds
18224
18225 # Command to use after uninstallation of a shared archive.
18226 postuninstall_cmds=$lt_postuninstall_cmds
18227
18228 # Commands used to finish a libtool library installation in a directory.
18229 finish_cmds=$lt_finish_cmds
18230
18231 # As "finish_cmds", except a single script fragment to be evaled but
18232 # not shown.
18233 finish_eval=$lt_finish_eval
18234
18235 # Whether we should hardcode library paths into libraries.
18236 hardcode_into_libs=$hardcode_into_libs
18237
18238 # Compile-time system search path for libraries.
18239 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18240
18241 # Detected run-time system search path for libraries.
18242 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
18243
18244 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
18245 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
18246
18247 # Whether dlopen is supported.
18248 dlopen_support=$enable_dlopen
18249
18250 # Whether dlopen of programs is supported.
18251 dlopen_self=$enable_dlopen_self
18252
18253 # Whether dlopen of statically linked programs is supported.
18254 dlopen_self_static=$enable_dlopen_self_static
18255
18256 # Commands to strip libraries.
18257 old_striplib=$lt_old_striplib
18258 striplib=$lt_striplib
18259
18260
18261 # The linker used to build libraries.
18262 LD=$lt_LD
18263
18264 # How to create reloadable object files.
18265 reload_flag=$lt_reload_flag
18266 reload_cmds=$lt_reload_cmds
18267
18268 # Commands used to build an old-style archive.
18269 old_archive_cmds=$lt_old_archive_cmds
18270
18271 # A language specific compiler.
18272 CC=$lt_compiler
18273
18274 # Is the compiler the GNU compiler?
18275 with_gcc=$GCC
18276
18277 # Compiler flag to turn off builtin functions.
18278 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18279
18280 # Additional compiler flags for building library objects.
18281 pic_flag=$lt_lt_prog_compiler_pic
18282
18283 # How to pass a linker flag through the compiler.
18284 wl=$lt_lt_prog_compiler_wl
18285
18286 # Compiler flag to prevent dynamic linking.
18287 link_static_flag=$lt_lt_prog_compiler_static
18288
18289 # Does compiler simultaneously support -c and -o options?
18290 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18291
18292 # Whether or not to add -lc for building shared libraries.
18293 build_libtool_need_lc=$archive_cmds_need_lc
18294
18295 # Whether or not to disallow shared libs when runtime libs are static.
18296 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18297
18298 # Compiler flag to allow reflexive dlopens.
18299 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18300
18301 # Compiler flag to generate shared objects directly from archives.
18302 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18303
18304 # Whether the compiler copes with passing no objects directly.
18305 compiler_needs_object=$lt_compiler_needs_object
18306
18307 # Create an old-style archive from a shared archive.
18308 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18309
18310 # Create a temporary old-style archive to link instead of a shared archive.
18311 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18312
18313 # Commands used to build a shared archive.
18314 archive_cmds=$lt_archive_cmds
18315 archive_expsym_cmds=$lt_archive_expsym_cmds
18316
18317 # Commands used to build a loadable module if different from building
18318 # a shared archive.
18319 module_cmds=$lt_module_cmds
18320 module_expsym_cmds=$lt_module_expsym_cmds
18321
18322 # Whether we are building with GNU ld or not.
18323 with_gnu_ld=$lt_with_gnu_ld
18324
18325 # Flag that allows shared libraries with undefined symbols to be built.
18326 allow_undefined_flag=$lt_allow_undefined_flag
18327
18328 # Flag that enforces no undefined symbols.
18329 no_undefined_flag=$lt_no_undefined_flag
18330
18331 # Flag to hardcode \$libdir into a binary during linking.
18332 # This must work even if \$libdir does not exist
18333 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18334
18335 # Whether we need a single "-rpath" flag with a separated argument.
18336 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18337
18338 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18339 # DIR into the resulting binary.
18340 hardcode_direct=$hardcode_direct
18341
18342 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18343 # DIR into the resulting binary and the resulting library dependency is
18344 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
18345 # library is relocated.
18346 hardcode_direct_absolute=$hardcode_direct_absolute
18347
18348 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18349 # into the resulting binary.
18350 hardcode_minus_L=$hardcode_minus_L
18351
18352 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18353 # into the resulting binary.
18354 hardcode_shlibpath_var=$hardcode_shlibpath_var
18355
18356 # Set to "yes" if building a shared library automatically hardcodes DIR
18357 # into the library and all subsequent libraries and executables linked
18358 # against it.
18359 hardcode_automatic=$hardcode_automatic
18360
18361 # Set to yes if linker adds runtime paths of dependent libraries
18362 # to runtime path list.
18363 inherit_rpath=$inherit_rpath
18364
18365 # Whether libtool must link a program against all its dependency libraries.
18366 link_all_deplibs=$link_all_deplibs
18367
18368 # Set to "yes" if exported symbols are required.
18369 always_export_symbols=$always_export_symbols
18370
18371 # The commands to list exported symbols.
18372 export_symbols_cmds=$lt_export_symbols_cmds
18373
18374 # Symbols that should not be listed in the preloaded symbols.
18375 exclude_expsyms=$lt_exclude_expsyms
18376
18377 # Symbols that must always be exported.
18378 include_expsyms=$lt_include_expsyms
18379
18380 # Commands necessary for linking programs (against libraries) with templates.
18381 prelink_cmds=$lt_prelink_cmds
18382
18383 # Commands necessary for finishing linking programs.
18384 postlink_cmds=$lt_postlink_cmds
18385
18386 # Specify filename containing input files.
18387 file_list_spec=$lt_file_list_spec
18388
18389 # How to hardcode a shared library path into an executable.
18390 hardcode_action=$hardcode_action
18391
18392 # The directories searched by this compiler when creating a shared library.
18393 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18394
18395 # Dependencies to place before and after the objects being linked to
18396 # create a shared library.
18397 predep_objects=$lt_predep_objects
18398 postdep_objects=$lt_postdep_objects
18399 predeps=$lt_predeps
18400 postdeps=$lt_postdeps
18401
18402 # The library search path used internally by the compiler when linking
18403 # a shared library.
18404 compiler_lib_search_path=$lt_compiler_lib_search_path
18405
18406 # ### END LIBTOOL CONFIG
18407
18408 _LT_EOF
18409
18410     cat <<'_LT_EOF' >> "$cfgfile"
18411
18412 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
18413
18414 # func_munge_path_list VARIABLE PATH
18415 # -----------------------------------
18416 # VARIABLE is name of variable containing _space_ separated list of
18417 # directories to be munged by the contents of PATH, which is string
18418 # having a format:
18419 # "DIR[:DIR]:"
18420 #       string "DIR[ DIR]" will be prepended to VARIABLE
18421 # ":DIR[:DIR]"
18422 #       string "DIR[ DIR]" will be appended to VARIABLE
18423 # "DIRP[:DIRP]::[DIRA:]DIRA"
18424 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
18425 #       "DIRA[ DIRA]" will be appended to VARIABLE
18426 # "DIR[:DIR]"
18427 #       VARIABLE will be replaced by "DIR[ DIR]"
18428 func_munge_path_list ()
18429 {
18430     case x$2 in
18431     x)
18432         ;;
18433     *:)
18434         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
18435         ;;
18436     x:*)
18437         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
18438         ;;
18439     *::*)
18440         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
18441         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
18442         ;;
18443     *)
18444         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
18445         ;;
18446     esac
18447 }
18448
18449
18450 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
18451 func_cc_basename ()
18452 {
18453     for cc_temp in $*""; do
18454       case $cc_temp in
18455         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18456         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18457         \-*) ;;
18458         *) break;;
18459       esac
18460     done
18461     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18462 }
18463
18464
18465 # ### END FUNCTIONS SHARED WITH CONFIGURE
18466
18467 _LT_EOF
18468
18469   case $host_os in
18470   aix3*)
18471     cat <<\_LT_EOF >> "$cfgfile"
18472 # AIX sometimes has problems with the GCC collect2 program.  For some
18473 # reason, if we set the COLLECT_NAMES environment variable, the problems
18474 # vanish in a puff of smoke.
18475 if test set != "${COLLECT_NAMES+set}"; then
18476   COLLECT_NAMES=
18477   export COLLECT_NAMES
18478 fi
18479 _LT_EOF
18480     ;;
18481   esac
18482
18483
18484 ltmain=$ac_aux_dir/ltmain.sh
18485
18486
18487   # We use sed instead of cat because bash on DJGPP gets confused if
18488   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18489   # text mode, it properly converts lines to CR/LF.  This bash problem
18490   # is reportedly fixed, but why not run on old versions too?
18491   sed '$q' "$ltmain" >> "$cfgfile" \
18492      || (rm -f "$cfgfile"; exit 1)
18493
18494    mv -f "$cfgfile" "$ofile" ||
18495     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18496   chmod +x "$ofile"
18497
18498
18499     cat <<_LT_EOF >> "$ofile"
18500
18501 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18502
18503 # The linker used to build libraries.
18504 LD=$lt_LD_CXX
18505
18506 # How to create reloadable object files.
18507 reload_flag=$lt_reload_flag_CXX
18508 reload_cmds=$lt_reload_cmds_CXX
18509
18510 # Commands used to build an old-style archive.
18511 old_archive_cmds=$lt_old_archive_cmds_CXX
18512
18513 # A language specific compiler.
18514 CC=$lt_compiler_CXX
18515
18516 # Is the compiler the GNU compiler?
18517 with_gcc=$GCC_CXX
18518
18519 # Compiler flag to turn off builtin functions.
18520 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18521
18522 # Additional compiler flags for building library objects.
18523 pic_flag=$lt_lt_prog_compiler_pic_CXX
18524
18525 # How to pass a linker flag through the compiler.
18526 wl=$lt_lt_prog_compiler_wl_CXX
18527
18528 # Compiler flag to prevent dynamic linking.
18529 link_static_flag=$lt_lt_prog_compiler_static_CXX
18530
18531 # Does compiler simultaneously support -c and -o options?
18532 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18533
18534 # Whether or not to add -lc for building shared libraries.
18535 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18536
18537 # Whether or not to disallow shared libs when runtime libs are static.
18538 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18539
18540 # Compiler flag to allow reflexive dlopens.
18541 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18542
18543 # Compiler flag to generate shared objects directly from archives.
18544 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18545
18546 # Whether the compiler copes with passing no objects directly.
18547 compiler_needs_object=$lt_compiler_needs_object_CXX
18548
18549 # Create an old-style archive from a shared archive.
18550 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18551
18552 # Create a temporary old-style archive to link instead of a shared archive.
18553 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18554
18555 # Commands used to build a shared archive.
18556 archive_cmds=$lt_archive_cmds_CXX
18557 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18558
18559 # Commands used to build a loadable module if different from building
18560 # a shared archive.
18561 module_cmds=$lt_module_cmds_CXX
18562 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18563
18564 # Whether we are building with GNU ld or not.
18565 with_gnu_ld=$lt_with_gnu_ld_CXX
18566
18567 # Flag that allows shared libraries with undefined symbols to be built.
18568 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18569
18570 # Flag that enforces no undefined symbols.
18571 no_undefined_flag=$lt_no_undefined_flag_CXX
18572
18573 # Flag to hardcode \$libdir into a binary during linking.
18574 # This must work even if \$libdir does not exist
18575 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18576
18577 # Whether we need a single "-rpath" flag with a separated argument.
18578 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18579
18580 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18581 # DIR into the resulting binary.
18582 hardcode_direct=$hardcode_direct_CXX
18583
18584 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18585 # DIR into the resulting binary and the resulting library dependency is
18586 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
18587 # library is relocated.
18588 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18589
18590 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18591 # into the resulting binary.
18592 hardcode_minus_L=$hardcode_minus_L_CXX
18593
18594 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18595 # into the resulting binary.
18596 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18597
18598 # Set to "yes" if building a shared library automatically hardcodes DIR
18599 # into the library and all subsequent libraries and executables linked
18600 # against it.
18601 hardcode_automatic=$hardcode_automatic_CXX
18602
18603 # Set to yes if linker adds runtime paths of dependent libraries
18604 # to runtime path list.
18605 inherit_rpath=$inherit_rpath_CXX
18606
18607 # Whether libtool must link a program against all its dependency libraries.
18608 link_all_deplibs=$link_all_deplibs_CXX
18609
18610 # Set to "yes" if exported symbols are required.
18611 always_export_symbols=$always_export_symbols_CXX
18612
18613 # The commands to list exported symbols.
18614 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18615
18616 # Symbols that should not be listed in the preloaded symbols.
18617 exclude_expsyms=$lt_exclude_expsyms_CXX
18618
18619 # Symbols that must always be exported.
18620 include_expsyms=$lt_include_expsyms_CXX
18621
18622 # Commands necessary for linking programs (against libraries) with templates.
18623 prelink_cmds=$lt_prelink_cmds_CXX
18624
18625 # Commands necessary for finishing linking programs.
18626 postlink_cmds=$lt_postlink_cmds_CXX
18627
18628 # Specify filename containing input files.
18629 file_list_spec=$lt_file_list_spec_CXX
18630
18631 # How to hardcode a shared library path into an executable.
18632 hardcode_action=$hardcode_action_CXX
18633
18634 # The directories searched by this compiler when creating a shared library.
18635 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18636
18637 # Dependencies to place before and after the objects being linked to
18638 # create a shared library.
18639 predep_objects=$lt_predep_objects_CXX
18640 postdep_objects=$lt_postdep_objects_CXX
18641 predeps=$lt_predeps_CXX
18642 postdeps=$lt_postdeps_CXX
18643
18644 # The library search path used internally by the compiler when linking
18645 # a shared library.
18646 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18647
18648 # ### END LIBTOOL TAG CONFIG: CXX
18649 _LT_EOF
18650
18651  ;;
18652     "run.sh":F) chmod +x run.sh ;;
18653
18654   esac
18655 done # for ac_tag
18656
18657
18658 as_fn_exit 0
18659 _ACEOF
18660 ac_clean_files=$ac_clean_files_save
18661
18662 test $ac_write_fail = 0 ||
18663   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18664
18665
18666 # configure is writing to config.log, and then calls config.status.
18667 # config.status does its own redirection, appending to config.log.
18668 # Unfortunately, on DOS this fails, as config.log is still kept open
18669 # by configure, so config.status won't be able to write to it; its
18670 # output is simply discarded.  So we exec the FD to /dev/null,
18671 # effectively closing config.log, so it can be properly (re)opened and
18672 # appended to by config.status.  When coming back to configure, we
18673 # need to make the FD available again.
18674 if test "$no_create" != yes; then
18675   ac_cs_success=:
18676   ac_config_status_args=
18677   test "$silent" = yes &&
18678     ac_config_status_args="$ac_config_status_args --quiet"
18679   exec 5>/dev/null
18680   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18681   exec 5>>config.log
18682   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18683   # would make configure fail if this is the last instruction.
18684   $ac_cs_success || as_fn_exit 1
18685 fi
18686 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18687   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18688 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18689 fi
18690
18691
18692 abs_srcdir="`cd $srcdir && pwd`"
18693 abs_builddir="`pwd`"
18694 if test "$abs_srcdir" != "$abs_builddir"; then
18695   make mkdir-init
18696 fi