8890e5e167fcba819a63b248b2c0a59b710aaa44
[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.1.
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.1'
594 PACKAGE_STRING='expat 2.2.1'
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.1 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.1:";;
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.1
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.1, 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=3  # 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 ac_ext=c
11635 ac_cpp='$CPP $CPPFLAGS'
11636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11639 if test -n "$ac_tool_prefix"; then
11640   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11641 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11643 $as_echo_n "checking for $ac_word... " >&6; }
11644 if ${ac_cv_prog_CC+:} false; then :
11645   $as_echo_n "(cached) " >&6
11646 else
11647   if test -n "$CC"; then
11648   ac_cv_prog_CC="$CC" # Let the user override the test.
11649 else
11650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11651 for as_dir in $PATH
11652 do
11653   IFS=$as_save_IFS
11654   test -z "$as_dir" && as_dir=.
11655     for ac_exec_ext in '' $ac_executable_extensions; do
11656   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11657     ac_cv_prog_CC="${ac_tool_prefix}gcc"
11658     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11659     break 2
11660   fi
11661 done
11662   done
11663 IFS=$as_save_IFS
11664
11665 fi
11666 fi
11667 CC=$ac_cv_prog_CC
11668 if test -n "$CC"; then
11669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11670 $as_echo "$CC" >&6; }
11671 else
11672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11673 $as_echo "no" >&6; }
11674 fi
11675
11676
11677 fi
11678 if test -z "$ac_cv_prog_CC"; then
11679   ac_ct_CC=$CC
11680   # Extract the first word of "gcc", so it can be a program name with args.
11681 set dummy gcc; ac_word=$2
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11683 $as_echo_n "checking for $ac_word... " >&6; }
11684 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11685   $as_echo_n "(cached) " >&6
11686 else
11687   if test -n "$ac_ct_CC"; then
11688   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11689 else
11690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11691 for as_dir in $PATH
11692 do
11693   IFS=$as_save_IFS
11694   test -z "$as_dir" && as_dir=.
11695     for ac_exec_ext in '' $ac_executable_extensions; do
11696   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11697     ac_cv_prog_ac_ct_CC="gcc"
11698     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11699     break 2
11700   fi
11701 done
11702   done
11703 IFS=$as_save_IFS
11704
11705 fi
11706 fi
11707 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11708 if test -n "$ac_ct_CC"; then
11709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11710 $as_echo "$ac_ct_CC" >&6; }
11711 else
11712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11713 $as_echo "no" >&6; }
11714 fi
11715
11716   if test "x$ac_ct_CC" = x; then
11717     CC=""
11718   else
11719     case $cross_compiling:$ac_tool_warned in
11720 yes:)
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11722 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11723 ac_tool_warned=yes ;;
11724 esac
11725     CC=$ac_ct_CC
11726   fi
11727 else
11728   CC="$ac_cv_prog_CC"
11729 fi
11730
11731 if test -z "$CC"; then
11732           if test -n "$ac_tool_prefix"; then
11733     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11734 set dummy ${ac_tool_prefix}cc; ac_word=$2
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11736 $as_echo_n "checking for $ac_word... " >&6; }
11737 if ${ac_cv_prog_CC+:} false; then :
11738   $as_echo_n "(cached) " >&6
11739 else
11740   if test -n "$CC"; then
11741   ac_cv_prog_CC="$CC" # Let the user override the test.
11742 else
11743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11744 for as_dir in $PATH
11745 do
11746   IFS=$as_save_IFS
11747   test -z "$as_dir" && as_dir=.
11748     for ac_exec_ext in '' $ac_executable_extensions; do
11749   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11750     ac_cv_prog_CC="${ac_tool_prefix}cc"
11751     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11752     break 2
11753   fi
11754 done
11755   done
11756 IFS=$as_save_IFS
11757
11758 fi
11759 fi
11760 CC=$ac_cv_prog_CC
11761 if test -n "$CC"; then
11762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11763 $as_echo "$CC" >&6; }
11764 else
11765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11766 $as_echo "no" >&6; }
11767 fi
11768
11769
11770   fi
11771 fi
11772 if test -z "$CC"; then
11773   # Extract the first word of "cc", so it can be a program name with args.
11774 set dummy cc; ac_word=$2
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11776 $as_echo_n "checking for $ac_word... " >&6; }
11777 if ${ac_cv_prog_CC+:} false; then :
11778   $as_echo_n "(cached) " >&6
11779 else
11780   if test -n "$CC"; then
11781   ac_cv_prog_CC="$CC" # Let the user override the test.
11782 else
11783   ac_prog_rejected=no
11784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11785 for as_dir in $PATH
11786 do
11787   IFS=$as_save_IFS
11788   test -z "$as_dir" && as_dir=.
11789     for ac_exec_ext in '' $ac_executable_extensions; do
11790   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11791     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11792        ac_prog_rejected=yes
11793        continue
11794      fi
11795     ac_cv_prog_CC="cc"
11796     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11797     break 2
11798   fi
11799 done
11800   done
11801 IFS=$as_save_IFS
11802
11803 if test $ac_prog_rejected = yes; then
11804   # We found a bogon in the path, so make sure we never use it.
11805   set dummy $ac_cv_prog_CC
11806   shift
11807   if test $# != 0; then
11808     # We chose a different compiler from the bogus one.
11809     # However, it has the same basename, so the bogon will be chosen
11810     # first if we set CC to just the basename; use the full file name.
11811     shift
11812     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11813   fi
11814 fi
11815 fi
11816 fi
11817 CC=$ac_cv_prog_CC
11818 if test -n "$CC"; then
11819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11820 $as_echo "$CC" >&6; }
11821 else
11822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11823 $as_echo "no" >&6; }
11824 fi
11825
11826
11827 fi
11828 if test -z "$CC"; then
11829   if test -n "$ac_tool_prefix"; then
11830   for ac_prog in cl.exe
11831   do
11832     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11833 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11835 $as_echo_n "checking for $ac_word... " >&6; }
11836 if ${ac_cv_prog_CC+:} false; then :
11837   $as_echo_n "(cached) " >&6
11838 else
11839   if test -n "$CC"; then
11840   ac_cv_prog_CC="$CC" # Let the user override the test.
11841 else
11842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11843 for as_dir in $PATH
11844 do
11845   IFS=$as_save_IFS
11846   test -z "$as_dir" && as_dir=.
11847     for ac_exec_ext in '' $ac_executable_extensions; do
11848   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11849     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11850     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11851     break 2
11852   fi
11853 done
11854   done
11855 IFS=$as_save_IFS
11856
11857 fi
11858 fi
11859 CC=$ac_cv_prog_CC
11860 if test -n "$CC"; then
11861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11862 $as_echo "$CC" >&6; }
11863 else
11864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11865 $as_echo "no" >&6; }
11866 fi
11867
11868
11869     test -n "$CC" && break
11870   done
11871 fi
11872 if test -z "$CC"; then
11873   ac_ct_CC=$CC
11874   for ac_prog in cl.exe
11875 do
11876   # Extract the first word of "$ac_prog", so it can be a program name with args.
11877 set dummy $ac_prog; ac_word=$2
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11879 $as_echo_n "checking for $ac_word... " >&6; }
11880 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11881   $as_echo_n "(cached) " >&6
11882 else
11883   if test -n "$ac_ct_CC"; then
11884   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11885 else
11886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11887 for as_dir in $PATH
11888 do
11889   IFS=$as_save_IFS
11890   test -z "$as_dir" && as_dir=.
11891     for ac_exec_ext in '' $ac_executable_extensions; do
11892   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11893     ac_cv_prog_ac_ct_CC="$ac_prog"
11894     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11895     break 2
11896   fi
11897 done
11898   done
11899 IFS=$as_save_IFS
11900
11901 fi
11902 fi
11903 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11904 if test -n "$ac_ct_CC"; then
11905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11906 $as_echo "$ac_ct_CC" >&6; }
11907 else
11908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11909 $as_echo "no" >&6; }
11910 fi
11911
11912
11913   test -n "$ac_ct_CC" && break
11914 done
11915
11916   if test "x$ac_ct_CC" = x; then
11917     CC=""
11918   else
11919     case $cross_compiling:$ac_tool_warned in
11920 yes:)
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11922 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11923 ac_tool_warned=yes ;;
11924 esac
11925     CC=$ac_ct_CC
11926   fi
11927 fi
11928
11929 fi
11930
11931
11932 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11933 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11934 as_fn_error $? "no acceptable C compiler found in \$PATH
11935 See \`config.log' for more details" "$LINENO" 5; }
11936
11937 # Provide some information about the compiler.
11938 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11939 set X $ac_compile
11940 ac_compiler=$2
11941 for ac_option in --version -v -V -qversion; do
11942   { { ac_try="$ac_compiler $ac_option >&5"
11943 case "(($ac_try" in
11944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11945   *) ac_try_echo=$ac_try;;
11946 esac
11947 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11948 $as_echo "$ac_try_echo"; } >&5
11949   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11950   ac_status=$?
11951   if test -s conftest.err; then
11952     sed '10a\
11953 ... rest of stderr output deleted ...
11954          10q' conftest.err >conftest.er1
11955     cat conftest.er1 >&5
11956   fi
11957   rm -f conftest.er1 conftest.err
11958   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11959   test $ac_status = 0; }
11960 done
11961
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11963 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11964 if ${ac_cv_c_compiler_gnu+:} false; then :
11965   $as_echo_n "(cached) " >&6
11966 else
11967   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11968 /* end confdefs.h.  */
11969
11970 int
11971 main ()
11972 {
11973 #ifndef __GNUC__
11974        choke me
11975 #endif
11976
11977   ;
11978   return 0;
11979 }
11980 _ACEOF
11981 if ac_fn_c_try_compile "$LINENO"; then :
11982   ac_compiler_gnu=yes
11983 else
11984   ac_compiler_gnu=no
11985 fi
11986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11987 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11988
11989 fi
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11991 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11992 if test $ac_compiler_gnu = yes; then
11993   GCC=yes
11994 else
11995   GCC=
11996 fi
11997 ac_test_CFLAGS=${CFLAGS+set}
11998 ac_save_CFLAGS=$CFLAGS
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12000 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12001 if ${ac_cv_prog_cc_g+:} false; then :
12002   $as_echo_n "(cached) " >&6
12003 else
12004   ac_save_c_werror_flag=$ac_c_werror_flag
12005    ac_c_werror_flag=yes
12006    ac_cv_prog_cc_g=no
12007    CFLAGS="-g"
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_c_try_compile "$LINENO"; then :
12020   ac_cv_prog_cc_g=yes
12021 else
12022   CFLAGS=""
12023       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12024 /* end confdefs.h.  */
12025
12026 int
12027 main ()
12028 {
12029
12030   ;
12031   return 0;
12032 }
12033 _ACEOF
12034 if ac_fn_c_try_compile "$LINENO"; then :
12035
12036 else
12037   ac_c_werror_flag=$ac_save_c_werror_flag
12038          CFLAGS="-g"
12039          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12040 /* end confdefs.h.  */
12041
12042 int
12043 main ()
12044 {
12045
12046   ;
12047   return 0;
12048 }
12049 _ACEOF
12050 if ac_fn_c_try_compile "$LINENO"; then :
12051   ac_cv_prog_cc_g=yes
12052 fi
12053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12054 fi
12055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12056 fi
12057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12058    ac_c_werror_flag=$ac_save_c_werror_flag
12059 fi
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12061 $as_echo "$ac_cv_prog_cc_g" >&6; }
12062 if test "$ac_test_CFLAGS" = set; then
12063   CFLAGS=$ac_save_CFLAGS
12064 elif test $ac_cv_prog_cc_g = yes; then
12065   if test "$GCC" = yes; then
12066     CFLAGS="-g -O2"
12067   else
12068     CFLAGS="-g"
12069   fi
12070 else
12071   if test "$GCC" = yes; then
12072     CFLAGS="-O2"
12073   else
12074     CFLAGS=
12075   fi
12076 fi
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12078 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12079 if ${ac_cv_prog_cc_c89+:} false; then :
12080   $as_echo_n "(cached) " >&6
12081 else
12082   ac_cv_prog_cc_c89=no
12083 ac_save_CC=$CC
12084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12085 /* end confdefs.h.  */
12086 #include <stdarg.h>
12087 #include <stdio.h>
12088 struct stat;
12089 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12090 struct buf { int x; };
12091 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12092 static char *e (p, i)
12093      char **p;
12094      int i;
12095 {
12096   return p[i];
12097 }
12098 static char *f (char * (*g) (char **, int), char **p, ...)
12099 {
12100   char *s;
12101   va_list v;
12102   va_start (v,p);
12103   s = g (p, va_arg (v,int));
12104   va_end (v);
12105   return s;
12106 }
12107
12108 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12109    function prototypes and stuff, but not '\xHH' hex character constants.
12110    These don't provoke an error unfortunately, instead are silently treated
12111    as 'x'.  The following induces an error, until -std is added to get
12112    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12113    array size at least.  It's necessary to write '\x00'==0 to get something
12114    that's true only with -std.  */
12115 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12116
12117 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12118    inside strings and character constants.  */
12119 #define FOO(x) 'x'
12120 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12121
12122 int test (int i, double x);
12123 struct s1 {int (*f) (int a);};
12124 struct s2 {int (*f) (double a);};
12125 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12126 int argc;
12127 char **argv;
12128 int
12129 main ()
12130 {
12131 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12132   ;
12133   return 0;
12134 }
12135 _ACEOF
12136 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12137         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12138 do
12139   CC="$ac_save_CC $ac_arg"
12140   if ac_fn_c_try_compile "$LINENO"; then :
12141   ac_cv_prog_cc_c89=$ac_arg
12142 fi
12143 rm -f core conftest.err conftest.$ac_objext
12144   test "x$ac_cv_prog_cc_c89" != "xno" && break
12145 done
12146 rm -f conftest.$ac_ext
12147 CC=$ac_save_CC
12148
12149 fi
12150 # AC_CACHE_VAL
12151 case "x$ac_cv_prog_cc_c89" in
12152   x)
12153     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12154 $as_echo "none needed" >&6; } ;;
12155   xno)
12156     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12157 $as_echo "unsupported" >&6; } ;;
12158   *)
12159     CC="$CC $ac_cv_prog_cc_c89"
12160     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12161 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12162 esac
12163 if test "x$ac_cv_prog_cc_c89" != xno; then :
12164
12165 fi
12166
12167 ac_ext=c
12168 ac_cpp='$CPP $CPPFLAGS'
12169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12172
12173 ac_ext=cpp
12174 ac_cpp='$CXXCPP $CPPFLAGS'
12175 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12176 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12177 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12178 if test -z "$CXX"; then
12179   if test -n "$CCC"; then
12180     CXX=$CCC
12181   else
12182     if test -n "$ac_tool_prefix"; then
12183   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12184   do
12185     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12186 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12188 $as_echo_n "checking for $ac_word... " >&6; }
12189 if ${ac_cv_prog_CXX+:} false; then :
12190   $as_echo_n "(cached) " >&6
12191 else
12192   if test -n "$CXX"; then
12193   ac_cv_prog_CXX="$CXX" # Let the user override the test.
12194 else
12195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12196 for as_dir in $PATH
12197 do
12198   IFS=$as_save_IFS
12199   test -z "$as_dir" && as_dir=.
12200     for ac_exec_ext in '' $ac_executable_extensions; do
12201   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12202     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12203     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12204     break 2
12205   fi
12206 done
12207   done
12208 IFS=$as_save_IFS
12209
12210 fi
12211 fi
12212 CXX=$ac_cv_prog_CXX
12213 if test -n "$CXX"; then
12214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12215 $as_echo "$CXX" >&6; }
12216 else
12217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12218 $as_echo "no" >&6; }
12219 fi
12220
12221
12222     test -n "$CXX" && break
12223   done
12224 fi
12225 if test -z "$CXX"; then
12226   ac_ct_CXX=$CXX
12227   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12228 do
12229   # Extract the first word of "$ac_prog", so it can be a program name with args.
12230 set dummy $ac_prog; ac_word=$2
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12232 $as_echo_n "checking for $ac_word... " >&6; }
12233 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
12234   $as_echo_n "(cached) " >&6
12235 else
12236   if test -n "$ac_ct_CXX"; then
12237   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12238 else
12239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12240 for as_dir in $PATH
12241 do
12242   IFS=$as_save_IFS
12243   test -z "$as_dir" && as_dir=.
12244     for ac_exec_ext in '' $ac_executable_extensions; do
12245   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12246     ac_cv_prog_ac_ct_CXX="$ac_prog"
12247     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12248     break 2
12249   fi
12250 done
12251   done
12252 IFS=$as_save_IFS
12253
12254 fi
12255 fi
12256 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12257 if test -n "$ac_ct_CXX"; then
12258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
12259 $as_echo "$ac_ct_CXX" >&6; }
12260 else
12261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12262 $as_echo "no" >&6; }
12263 fi
12264
12265
12266   test -n "$ac_ct_CXX" && break
12267 done
12268
12269   if test "x$ac_ct_CXX" = x; then
12270     CXX="g++"
12271   else
12272     case $cross_compiling:$ac_tool_warned in
12273 yes:)
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12275 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12276 ac_tool_warned=yes ;;
12277 esac
12278     CXX=$ac_ct_CXX
12279   fi
12280 fi
12281
12282   fi
12283 fi
12284 # Provide some information about the compiler.
12285 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12286 set X $ac_compile
12287 ac_compiler=$2
12288 for ac_option in --version -v -V -qversion; do
12289   { { ac_try="$ac_compiler $ac_option >&5"
12290 case "(($ac_try" in
12291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12292   *) ac_try_echo=$ac_try;;
12293 esac
12294 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12295 $as_echo "$ac_try_echo"; } >&5
12296   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12297   ac_status=$?
12298   if test -s conftest.err; then
12299     sed '10a\
12300 ... rest of stderr output deleted ...
12301          10q' conftest.err >conftest.er1
12302     cat conftest.er1 >&5
12303   fi
12304   rm -f conftest.er1 conftest.err
12305   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12306   test $ac_status = 0; }
12307 done
12308
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
12310 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12311 if ${ac_cv_cxx_compiler_gnu+:} false; then :
12312   $as_echo_n "(cached) " >&6
12313 else
12314   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12315 /* end confdefs.h.  */
12316
12317 int
12318 main ()
12319 {
12320 #ifndef __GNUC__
12321        choke me
12322 #endif
12323
12324   ;
12325   return 0;
12326 }
12327 _ACEOF
12328 if ac_fn_cxx_try_compile "$LINENO"; then :
12329   ac_compiler_gnu=yes
12330 else
12331   ac_compiler_gnu=no
12332 fi
12333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12334 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12335
12336 fi
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12338 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12339 if test $ac_compiler_gnu = yes; then
12340   GXX=yes
12341 else
12342   GXX=
12343 fi
12344 ac_test_CXXFLAGS=${CXXFLAGS+set}
12345 ac_save_CXXFLAGS=$CXXFLAGS
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12347 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
12348 if ${ac_cv_prog_cxx_g+:} false; then :
12349   $as_echo_n "(cached) " >&6
12350 else
12351   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12352    ac_cxx_werror_flag=yes
12353    ac_cv_prog_cxx_g=no
12354    CXXFLAGS="-g"
12355    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12356 /* end confdefs.h.  */
12357
12358 int
12359 main ()
12360 {
12361
12362   ;
12363   return 0;
12364 }
12365 _ACEOF
12366 if ac_fn_cxx_try_compile "$LINENO"; then :
12367   ac_cv_prog_cxx_g=yes
12368 else
12369   CXXFLAGS=""
12370       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12371 /* end confdefs.h.  */
12372
12373 int
12374 main ()
12375 {
12376
12377   ;
12378   return 0;
12379 }
12380 _ACEOF
12381 if ac_fn_cxx_try_compile "$LINENO"; then :
12382
12383 else
12384   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12385          CXXFLAGS="-g"
12386          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12387 /* end confdefs.h.  */
12388
12389 int
12390 main ()
12391 {
12392
12393   ;
12394   return 0;
12395 }
12396 _ACEOF
12397 if ac_fn_cxx_try_compile "$LINENO"; then :
12398   ac_cv_prog_cxx_g=yes
12399 fi
12400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12401 fi
12402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12403 fi
12404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12405    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12406 fi
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12408 $as_echo "$ac_cv_prog_cxx_g" >&6; }
12409 if test "$ac_test_CXXFLAGS" = set; then
12410   CXXFLAGS=$ac_save_CXXFLAGS
12411 elif test $ac_cv_prog_cxx_g = yes; then
12412   if test "$GXX" = yes; then
12413     CXXFLAGS="-g -O2"
12414   else
12415     CXXFLAGS="-g"
12416   fi
12417 else
12418   if test "$GXX" = yes; then
12419     CXXFLAGS="-O2"
12420   else
12421     CXXFLAGS=
12422   fi
12423 fi
12424 ac_ext=c
12425 ac_cpp='$CPP $CPPFLAGS'
12426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12429
12430
12431
12432 func_stripname_cnf ()
12433 {
12434   case $2 in
12435   .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
12436   *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
12437   esac
12438 } # func_stripname_cnf
12439
12440       if test -n "$CXX" && ( test no != "$CXX" &&
12441     ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
12442     (test g++ != "$CXX"))); then
12443   ac_ext=cpp
12444 ac_cpp='$CXXCPP $CPPFLAGS'
12445 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12446 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12447 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12449 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12450 if test -z "$CXXCPP"; then
12451   if ${ac_cv_prog_CXXCPP+:} false; then :
12452   $as_echo_n "(cached) " >&6
12453 else
12454       # Double quotes because CXXCPP needs to be expanded
12455     for CXXCPP in "$CXX -E" "/lib/cpp"
12456     do
12457       ac_preproc_ok=false
12458 for ac_cxx_preproc_warn_flag in '' yes
12459 do
12460   # Use a header file that comes with gcc, so configuring glibc
12461   # with a fresh cross-compiler works.
12462   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12463   # <limits.h> exists even on freestanding compilers.
12464   # On the NeXT, cc -E runs the code through the compiler's parser,
12465   # not just through cpp. "Syntax error" is here to catch this case.
12466   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12467 /* end confdefs.h.  */
12468 #ifdef __STDC__
12469 # include <limits.h>
12470 #else
12471 # include <assert.h>
12472 #endif
12473                      Syntax error
12474 _ACEOF
12475 if ac_fn_cxx_try_cpp "$LINENO"; then :
12476
12477 else
12478   # Broken: fails on valid input.
12479 continue
12480 fi
12481 rm -f conftest.err conftest.i conftest.$ac_ext
12482
12483   # OK, works on sane cases.  Now check whether nonexistent headers
12484   # can be detected and how.
12485   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12486 /* end confdefs.h.  */
12487 #include <ac_nonexistent.h>
12488 _ACEOF
12489 if ac_fn_cxx_try_cpp "$LINENO"; then :
12490   # Broken: success on invalid input.
12491 continue
12492 else
12493   # Passes both tests.
12494 ac_preproc_ok=:
12495 break
12496 fi
12497 rm -f conftest.err conftest.i conftest.$ac_ext
12498
12499 done
12500 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12501 rm -f conftest.i conftest.err conftest.$ac_ext
12502 if $ac_preproc_ok; then :
12503   break
12504 fi
12505
12506     done
12507     ac_cv_prog_CXXCPP=$CXXCPP
12508
12509 fi
12510   CXXCPP=$ac_cv_prog_CXXCPP
12511 else
12512   ac_cv_prog_CXXCPP=$CXXCPP
12513 fi
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12515 $as_echo "$CXXCPP" >&6; }
12516 ac_preproc_ok=false
12517 for ac_cxx_preproc_warn_flag in '' yes
12518 do
12519   # Use a header file that comes with gcc, so configuring glibc
12520   # with a fresh cross-compiler works.
12521   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12522   # <limits.h> exists even on freestanding compilers.
12523   # On the NeXT, cc -E runs the code through the compiler's parser,
12524   # not just through cpp. "Syntax error" is here to catch this case.
12525   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12526 /* end confdefs.h.  */
12527 #ifdef __STDC__
12528 # include <limits.h>
12529 #else
12530 # include <assert.h>
12531 #endif
12532                      Syntax error
12533 _ACEOF
12534 if ac_fn_cxx_try_cpp "$LINENO"; then :
12535
12536 else
12537   # Broken: fails on valid input.
12538 continue
12539 fi
12540 rm -f conftest.err conftest.i conftest.$ac_ext
12541
12542   # OK, works on sane cases.  Now check whether nonexistent headers
12543   # can be detected and how.
12544   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12545 /* end confdefs.h.  */
12546 #include <ac_nonexistent.h>
12547 _ACEOF
12548 if ac_fn_cxx_try_cpp "$LINENO"; then :
12549   # Broken: success on invalid input.
12550 continue
12551 else
12552   # Passes both tests.
12553 ac_preproc_ok=:
12554 break
12555 fi
12556 rm -f conftest.err conftest.i conftest.$ac_ext
12557
12558 done
12559 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12560 rm -f conftest.i conftest.err conftest.$ac_ext
12561 if $ac_preproc_ok; then :
12562
12563 else
12564   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12565 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12566 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12567 See \`config.log' for more details" "$LINENO" 5; }
12568 fi
12569
12570 ac_ext=c
12571 ac_cpp='$CPP $CPPFLAGS'
12572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12575
12576 else
12577   _lt_caught_CXX_error=yes
12578 fi
12579
12580 ac_ext=cpp
12581 ac_cpp='$CXXCPP $CPPFLAGS'
12582 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12583 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12584 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12585
12586 archive_cmds_need_lc_CXX=no
12587 allow_undefined_flag_CXX=
12588 always_export_symbols_CXX=no
12589 archive_expsym_cmds_CXX=
12590 compiler_needs_object_CXX=no
12591 export_dynamic_flag_spec_CXX=
12592 hardcode_direct_CXX=no
12593 hardcode_direct_absolute_CXX=no
12594 hardcode_libdir_flag_spec_CXX=
12595 hardcode_libdir_separator_CXX=
12596 hardcode_minus_L_CXX=no
12597 hardcode_shlibpath_var_CXX=unsupported
12598 hardcode_automatic_CXX=no
12599 inherit_rpath_CXX=no
12600 module_cmds_CXX=
12601 module_expsym_cmds_CXX=
12602 link_all_deplibs_CXX=unknown
12603 old_archive_cmds_CXX=$old_archive_cmds
12604 reload_flag_CXX=$reload_flag
12605 reload_cmds_CXX=$reload_cmds
12606 no_undefined_flag_CXX=
12607 whole_archive_flag_spec_CXX=
12608 enable_shared_with_static_runtimes_CXX=no
12609
12610 # Source file extension for C++ test sources.
12611 ac_ext=cpp
12612
12613 # Object file extension for compiled C++ test sources.
12614 objext=o
12615 objext_CXX=$objext
12616
12617 # No sense in running all these tests if we already determined that
12618 # the CXX compiler isn't working.  Some variables (like enable_shared)
12619 # are currently assumed to apply to all compilers on this platform,
12620 # and will be corrupted by setting them based on a non-working compiler.
12621 if test yes != "$_lt_caught_CXX_error"; then
12622   # Code to be used in simple compile tests
12623   lt_simple_compile_test_code="int some_variable = 0;"
12624
12625   # Code to be used in simple link tests
12626   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12627
12628   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12629
12630
12631
12632
12633
12634
12635 # If no C compiler was specified, use CC.
12636 LTCC=${LTCC-"$CC"}
12637
12638 # If no C compiler flags were specified, use CFLAGS.
12639 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12640
12641 # Allow CC to be a program name with arguments.
12642 compiler=$CC
12643
12644
12645   # save warnings/boilerplate of simple test code
12646   ac_outfile=conftest.$ac_objext
12647 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12648 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12649 _lt_compiler_boilerplate=`cat conftest.err`
12650 $RM conftest*
12651
12652   ac_outfile=conftest.$ac_objext
12653 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12654 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12655 _lt_linker_boilerplate=`cat conftest.err`
12656 $RM -r conftest*
12657
12658
12659   # Allow CC to be a program name with arguments.
12660   lt_save_CC=$CC
12661   lt_save_CFLAGS=$CFLAGS
12662   lt_save_LD=$LD
12663   lt_save_GCC=$GCC
12664   GCC=$GXX
12665   lt_save_with_gnu_ld=$with_gnu_ld
12666   lt_save_path_LD=$lt_cv_path_LD
12667   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12668     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12669   else
12670     $as_unset lt_cv_prog_gnu_ld
12671   fi
12672   if test -n "${lt_cv_path_LDCXX+set}"; then
12673     lt_cv_path_LD=$lt_cv_path_LDCXX
12674   else
12675     $as_unset lt_cv_path_LD
12676   fi
12677   test -z "${LDCXX+set}" || LD=$LDCXX
12678   CC=${CXX-"c++"}
12679   CFLAGS=$CXXFLAGS
12680   compiler=$CC
12681   compiler_CXX=$CC
12682   func_cc_basename $compiler
12683 cc_basename=$func_cc_basename_result
12684
12685
12686   if test -n "$compiler"; then
12687     # We don't want -fno-exception when compiling C++ code, so set the
12688     # no_builtin_flag separately
12689     if test yes = "$GXX"; then
12690       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12691     else
12692       lt_prog_compiler_no_builtin_flag_CXX=
12693     fi
12694
12695     if test yes = "$GXX"; then
12696       # Set up default GNU C++ configuration
12697
12698
12699
12700 # Check whether --with-gnu-ld was given.
12701 if test "${with_gnu_ld+set}" = set; then :
12702   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
12703 else
12704   with_gnu_ld=no
12705 fi
12706
12707 ac_prog=ld
12708 if test yes = "$GCC"; then
12709   # Check if gcc -print-prog-name=ld gives a path.
12710   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12711 $as_echo_n "checking for ld used by $CC... " >&6; }
12712   case $host in
12713   *-*-mingw*)
12714     # gcc leaves a trailing carriage return, which upsets mingw
12715     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12716   *)
12717     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12718   esac
12719   case $ac_prog in
12720     # Accept absolute paths.
12721     [\\/]* | ?:[\\/]*)
12722       re_direlt='/[^/][^/]*/\.\./'
12723       # Canonicalize the pathname of ld
12724       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12725       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12726         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12727       done
12728       test -z "$LD" && LD=$ac_prog
12729       ;;
12730   "")
12731     # If it fails, then pretend we aren't using GCC.
12732     ac_prog=ld
12733     ;;
12734   *)
12735     # If it is relative, then search for the first ld in PATH.
12736     with_gnu_ld=unknown
12737     ;;
12738   esac
12739 elif test yes = "$with_gnu_ld"; then
12740   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12741 $as_echo_n "checking for GNU ld... " >&6; }
12742 else
12743   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12744 $as_echo_n "checking for non-GNU ld... " >&6; }
12745 fi
12746 if ${lt_cv_path_LD+:} false; then :
12747   $as_echo_n "(cached) " >&6
12748 else
12749   if test -z "$LD"; then
12750   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12751   for ac_dir in $PATH; do
12752     IFS=$lt_save_ifs
12753     test -z "$ac_dir" && ac_dir=.
12754     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12755       lt_cv_path_LD=$ac_dir/$ac_prog
12756       # Check to see if the program is GNU ld.  I'd rather use --version,
12757       # but apparently some variants of GNU ld only accept -v.
12758       # Break only if it was the GNU/non-GNU ld that we prefer.
12759       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12760       *GNU* | *'with BFD'*)
12761         test no != "$with_gnu_ld" && break
12762         ;;
12763       *)
12764         test yes != "$with_gnu_ld" && break
12765         ;;
12766       esac
12767     fi
12768   done
12769   IFS=$lt_save_ifs
12770 else
12771   lt_cv_path_LD=$LD # Let the user override the test with a path.
12772 fi
12773 fi
12774
12775 LD=$lt_cv_path_LD
12776 if test -n "$LD"; then
12777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12778 $as_echo "$LD" >&6; }
12779 else
12780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12781 $as_echo "no" >&6; }
12782 fi
12783 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12785 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12786 if ${lt_cv_prog_gnu_ld+:} false; then :
12787   $as_echo_n "(cached) " >&6
12788 else
12789   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12790 case `$LD -v 2>&1 </dev/null` in
12791 *GNU* | *'with BFD'*)
12792   lt_cv_prog_gnu_ld=yes
12793   ;;
12794 *)
12795   lt_cv_prog_gnu_ld=no
12796   ;;
12797 esac
12798 fi
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12800 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12801 with_gnu_ld=$lt_cv_prog_gnu_ld
12802
12803
12804
12805
12806
12807
12808
12809       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12810       # archiving commands below assume that GNU ld is being used.
12811       if test yes = "$with_gnu_ld"; then
12812         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
12813         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'
12814
12815         hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
12816         export_dynamic_flag_spec_CXX='$wl--export-dynamic'
12817
12818         # If archive_cmds runs LD, not CC, wlarc should be empty
12819         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12820         #     investigate it a little bit more. (MM)
12821         wlarc='$wl'
12822
12823         # ancient GNU ld didn't support --whole-archive et. al.
12824         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12825           $GREP 'no-whole-archive' > /dev/null; then
12826           whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12827         else
12828           whole_archive_flag_spec_CXX=
12829         fi
12830       else
12831         with_gnu_ld=no
12832         wlarc=
12833
12834         # A generic and very simple default shared library creation
12835         # command for GNU C++ for the case where it uses the native
12836         # linker, instead of GNU ld.  If possible, this setting should
12837         # overridden to take advantage of the native linker features on
12838         # the platform it is being used on.
12839         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12840       fi
12841
12842       # Commands to make compiler produce verbose output that lists
12843       # what "hidden" libraries, object files and flags are used when
12844       # linking a shared library.
12845       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12846
12847     else
12848       GXX=no
12849       with_gnu_ld=no
12850       wlarc=
12851     fi
12852
12853     # PORTME: fill in a description of your system's C++ link characteristics
12854     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12855 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12856     ld_shlibs_CXX=yes
12857     case $host_os in
12858       aix3*)
12859         # FIXME: insert proper C++ library support
12860         ld_shlibs_CXX=no
12861         ;;
12862       aix[4-9]*)
12863         if test ia64 = "$host_cpu"; then
12864           # On IA64, the linker does run time linking by default, so we don't
12865           # have to do anything special.
12866           aix_use_runtimelinking=no
12867           exp_sym_flag='-Bexport'
12868           no_entry_flag=
12869         else
12870           aix_use_runtimelinking=no
12871
12872           # Test if we are trying to use run time linking or normal
12873           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12874           # have runtime linking enabled, and use it for executables.
12875           # For shared libraries, we enable/disable runtime linking
12876           # depending on the kind of the shared library created -
12877           # when "with_aix_soname,aix_use_runtimelinking" is:
12878           # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
12879           # "aix,yes"  lib.so          shared, rtl:yes, for executables
12880           #            lib.a           static archive
12881           # "both,no"  lib.so.V(shr.o) shared, rtl:yes
12882           #            lib.a(lib.so.V) shared, rtl:no,  for executables
12883           # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12884           #            lib.a(lib.so.V) shared, rtl:no
12885           # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
12886           #            lib.a           static archive
12887           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12888             for ld_flag in $LDFLAGS; do
12889               case $ld_flag in
12890               *-brtl*)
12891                 aix_use_runtimelinking=yes
12892                 break
12893                 ;;
12894               esac
12895             done
12896             if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12897               # With aix-soname=svr4, we create the lib.so.V shared archives only,
12898               # so we don't have lib.a shared libs to link our executables.
12899               # We have to force runtime linking in this case.
12900               aix_use_runtimelinking=yes
12901               LDFLAGS="$LDFLAGS -Wl,-brtl"
12902             fi
12903             ;;
12904           esac
12905
12906           exp_sym_flag='-bexport'
12907           no_entry_flag='-bnoentry'
12908         fi
12909
12910         # When large executables or shared objects are built, AIX ld can
12911         # have problems creating the table of contents.  If linking a library
12912         # or program results in "error TOC overflow" add -mminimal-toc to
12913         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12914         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12915
12916         archive_cmds_CXX=''
12917         hardcode_direct_CXX=yes
12918         hardcode_direct_absolute_CXX=yes
12919         hardcode_libdir_separator_CXX=':'
12920         link_all_deplibs_CXX=yes
12921         file_list_spec_CXX='$wl-f,'
12922         case $with_aix_soname,$aix_use_runtimelinking in
12923         aix,*) ;;       # no import file
12924         svr4,* | *,yes) # use import file
12925           # The Import File defines what to hardcode.
12926           hardcode_direct_CXX=no
12927           hardcode_direct_absolute_CXX=no
12928           ;;
12929         esac
12930
12931         if test yes = "$GXX"; then
12932           case $host_os in aix4.[012]|aix4.[012].*)
12933           # We only want to do this on AIX 4.2 and lower, the check
12934           # below for broken collect2 doesn't work under 4.3+
12935           collect2name=`$CC -print-prog-name=collect2`
12936           if test -f "$collect2name" &&
12937              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12938           then
12939             # We have reworked collect2
12940             :
12941           else
12942             # We have old collect2
12943             hardcode_direct_CXX=unsupported
12944             # It fails to find uninstalled libraries when the uninstalled
12945             # path is not listed in the libpath.  Setting hardcode_minus_L
12946             # to unsupported forces relinking
12947             hardcode_minus_L_CXX=yes
12948             hardcode_libdir_flag_spec_CXX='-L$libdir'
12949             hardcode_libdir_separator_CXX=
12950           fi
12951           esac
12952           shared_flag='-shared'
12953           if test yes = "$aix_use_runtimelinking"; then
12954             shared_flag=$shared_flag' $wl-G'
12955           fi
12956           # Need to ensure runtime linking is disabled for the traditional
12957           # shared library, or the linker may eventually find shared libraries
12958           # /with/ Import File - we do not want to mix them.
12959           shared_flag_aix='-shared'
12960           shared_flag_svr4='-shared $wl-G'
12961         else
12962           # not using gcc
12963           if test ia64 = "$host_cpu"; then
12964           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12965           # chokes on -Wl,-G. The following line is correct:
12966           shared_flag='-G'
12967           else
12968             if test yes = "$aix_use_runtimelinking"; then
12969               shared_flag='$wl-G'
12970             else
12971               shared_flag='$wl-bM:SRE'
12972             fi
12973             shared_flag_aix='$wl-bM:SRE'
12974             shared_flag_svr4='$wl-G'
12975           fi
12976         fi
12977
12978         export_dynamic_flag_spec_CXX='$wl-bexpall'
12979         # It seems that -bexpall does not export symbols beginning with
12980         # underscore (_), so it is better to generate a list of symbols to
12981         # export.
12982         always_export_symbols_CXX=yes
12983         if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12984           # Warning - without using the other runtime loading flags (-brtl),
12985           # -berok will link without error, but may produce a broken library.
12986           # The "-G" linker flag allows undefined symbols.
12987           no_undefined_flag_CXX='-bernotok'
12988           # Determine the default libpath from the value encoded in an empty
12989           # executable.
12990           if test set = "${lt_cv_aix_libpath+set}"; then
12991   aix_libpath=$lt_cv_aix_libpath
12992 else
12993   if ${lt_cv_aix_libpath__CXX+:} false; then :
12994   $as_echo_n "(cached) " >&6
12995 else
12996   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12997 /* end confdefs.h.  */
12998
12999 int
13000 main ()
13001 {
13002
13003   ;
13004   return 0;
13005 }
13006 _ACEOF
13007 if ac_fn_cxx_try_link "$LINENO"; then :
13008
13009   lt_aix_libpath_sed='
13010       /Import File Strings/,/^$/ {
13011           /^0/ {
13012               s/^0  *\([^ ]*\) *$/\1/
13013               p
13014           }
13015       }'
13016   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13017   # Check for a 64-bit object if we didn't find anything.
13018   if test -z "$lt_cv_aix_libpath__CXX"; then
13019     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13020   fi
13021 fi
13022 rm -f core conftest.err conftest.$ac_objext \
13023     conftest$ac_exeext conftest.$ac_ext
13024   if test -z "$lt_cv_aix_libpath__CXX"; then
13025     lt_cv_aix_libpath__CXX=/usr/lib:/lib
13026   fi
13027
13028 fi
13029
13030   aix_libpath=$lt_cv_aix_libpath__CXX
13031 fi
13032
13033           hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13034
13035           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
13036         else
13037           if test ia64 = "$host_cpu"; then
13038             hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
13039             allow_undefined_flag_CXX="-z nodefs"
13040             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"
13041           else
13042             # Determine the default libpath from the value encoded in an
13043             # empty executable.
13044             if test set = "${lt_cv_aix_libpath+set}"; then
13045   aix_libpath=$lt_cv_aix_libpath
13046 else
13047   if ${lt_cv_aix_libpath__CXX+:} false; then :
13048   $as_echo_n "(cached) " >&6
13049 else
13050   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13051 /* end confdefs.h.  */
13052
13053 int
13054 main ()
13055 {
13056
13057   ;
13058   return 0;
13059 }
13060 _ACEOF
13061 if ac_fn_cxx_try_link "$LINENO"; then :
13062
13063   lt_aix_libpath_sed='
13064       /Import File Strings/,/^$/ {
13065           /^0/ {
13066               s/^0  *\([^ ]*\) *$/\1/
13067               p
13068           }
13069       }'
13070   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13071   # Check for a 64-bit object if we didn't find anything.
13072   if test -z "$lt_cv_aix_libpath__CXX"; then
13073     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13074   fi
13075 fi
13076 rm -f core conftest.err conftest.$ac_objext \
13077     conftest$ac_exeext conftest.$ac_ext
13078   if test -z "$lt_cv_aix_libpath__CXX"; then
13079     lt_cv_aix_libpath__CXX=/usr/lib:/lib
13080   fi
13081
13082 fi
13083
13084   aix_libpath=$lt_cv_aix_libpath__CXX
13085 fi
13086
13087             hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13088             # Warning - without using the other run time loading flags,
13089             # -berok will link without error, but may produce a broken library.
13090             no_undefined_flag_CXX=' $wl-bernotok'
13091             allow_undefined_flag_CXX=' $wl-berok'
13092             if test yes = "$with_gnu_ld"; then
13093               # We only use this code for GNU lds that support --whole-archive.
13094               whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13095             else
13096               # Exported symbols can be pulled into shared objects from archives
13097               whole_archive_flag_spec_CXX='$convenience'
13098             fi
13099             archive_cmds_need_lc_CXX=yes
13100             archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13101             # -brtl affects multiple linker settings, -berok does not and is overridden later
13102             compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13103             if test svr4 != "$with_aix_soname"; then
13104               # This is similar to how AIX traditionally builds its shared
13105               # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
13106               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'
13107             fi
13108             if test aix != "$with_aix_soname"; then
13109               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'
13110             else
13111               # used by -dlpreopen to get the symbols
13112               archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
13113             fi
13114             archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
13115           fi
13116         fi
13117         ;;
13118
13119       beos*)
13120         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13121           allow_undefined_flag_CXX=unsupported
13122           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13123           # support --undefined.  This deserves some investigation.  FIXME
13124           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13125         else
13126           ld_shlibs_CXX=no
13127         fi
13128         ;;
13129
13130       chorus*)
13131         case $cc_basename in
13132           *)
13133           # FIXME: insert proper C++ library support
13134           ld_shlibs_CXX=no
13135           ;;
13136         esac
13137         ;;
13138
13139       cygwin* | mingw* | pw32* | cegcc*)
13140         case $GXX,$cc_basename in
13141         ,cl* | no,cl*)
13142           # Native MSVC
13143           # hardcode_libdir_flag_spec is actually meaningless, as there is
13144           # no search path for DLLs.
13145           hardcode_libdir_flag_spec_CXX=' '
13146           allow_undefined_flag_CXX=unsupported
13147           always_export_symbols_CXX=yes
13148           file_list_spec_CXX='@'
13149           # Tell ltmain to make .lib files, not .a files.
13150           libext=lib
13151           # Tell ltmain to make .dll files, not .so files.
13152           shrext_cmds=.dll
13153           # FIXME: Setting linknames here is a bad hack.
13154           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13155           archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[     ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
13156               cp "$export_symbols" "$output_objdir/$soname.def";
13157               echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13158             else
13159               $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13160             fi~
13161             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13162             linknames='
13163           # The linker will not automatically build a static lib if we build a DLL.
13164           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13165           enable_shared_with_static_runtimes_CXX=yes
13166           # Don't use ranlib
13167           old_postinstall_cmds_CXX='chmod 644 $oldlib'
13168           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13169             lt_tool_outputfile="@TOOL_OUTPUT@"~
13170             case $lt_outputfile in
13171               *.exe|*.EXE) ;;
13172               *)
13173                 lt_outputfile=$lt_outputfile.exe
13174                 lt_tool_outputfile=$lt_tool_outputfile.exe
13175                 ;;
13176             esac~
13177             func_to_tool_file "$lt_outputfile"~
13178             if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13179               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13180               $RM "$lt_outputfile.manifest";
13181             fi'
13182           ;;
13183         *)
13184           # g++
13185           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13186           # as there is no search path for DLLs.
13187           hardcode_libdir_flag_spec_CXX='-L$libdir'
13188           export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
13189           allow_undefined_flag_CXX=unsupported
13190           always_export_symbols_CXX=no
13191           enable_shared_with_static_runtimes_CXX=yes
13192
13193           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13194             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'
13195             # If the export-symbols file already is a .def file, use it as
13196             # is; otherwise, prepend EXPORTS...
13197             archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
13198               cp $export_symbols $output_objdir/$soname.def;
13199             else
13200               echo EXPORTS > $output_objdir/$soname.def;
13201               cat $export_symbols >> $output_objdir/$soname.def;
13202             fi~
13203             $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'
13204           else
13205             ld_shlibs_CXX=no
13206           fi
13207           ;;
13208         esac
13209         ;;
13210       darwin* | rhapsody*)
13211
13212
13213   archive_cmds_need_lc_CXX=no
13214   hardcode_direct_CXX=no
13215   hardcode_automatic_CXX=yes
13216   hardcode_shlibpath_var_CXX=unsupported
13217   if test yes = "$lt_cv_ld_force_load"; then
13218     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\"`'
13219
13220   else
13221     whole_archive_flag_spec_CXX=''
13222   fi
13223   link_all_deplibs_CXX=yes
13224   allow_undefined_flag_CXX=$_lt_dar_allow_undefined
13225   case $cc_basename in
13226      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13227      *) _lt_dar_can_shared=$GCC ;;
13228   esac
13229   if test yes = "$_lt_dar_can_shared"; then
13230     output_verbose_link_cmd=func_echo_all
13231     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"
13232     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13233     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"
13234     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"
13235        if test yes != "$lt_cv_apple_cc_single_mod"; then
13236       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"
13237       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"
13238     fi
13239
13240   else
13241   ld_shlibs_CXX=no
13242   fi
13243
13244         ;;
13245
13246       os2*)
13247         hardcode_libdir_flag_spec_CXX='-L$libdir'
13248         hardcode_minus_L_CXX=yes
13249         allow_undefined_flag_CXX=unsupported
13250         shrext_cmds=.dll
13251         archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13252           $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13253           $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13254           $ECHO EXPORTS >> $output_objdir/$libname.def~
13255           emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13256           $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13257           emximp -o $lib $output_objdir/$libname.def'
13258         archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13259           $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13260           $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13261           $ECHO EXPORTS >> $output_objdir/$libname.def~
13262           prefix_cmds="$SED"~
13263           if test EXPORTS = "`$SED 1q $export_symbols`"; then
13264             prefix_cmds="$prefix_cmds -e 1d";
13265           fi~
13266           prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13267           cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13268           $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13269           emximp -o $lib $output_objdir/$libname.def'
13270         old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13271         enable_shared_with_static_runtimes_CXX=yes
13272         ;;
13273
13274       dgux*)
13275         case $cc_basename in
13276           ec++*)
13277             # FIXME: insert proper C++ library support
13278             ld_shlibs_CXX=no
13279             ;;
13280           ghcx*)
13281             # Green Hills C++ Compiler
13282             # FIXME: insert proper C++ library support
13283             ld_shlibs_CXX=no
13284             ;;
13285           *)
13286             # FIXME: insert proper C++ library support
13287             ld_shlibs_CXX=no
13288             ;;
13289         esac
13290         ;;
13291
13292       freebsd2.*)
13293         # C++ shared libraries reported to be fairly broken before
13294         # switch to ELF
13295         ld_shlibs_CXX=no
13296         ;;
13297
13298       freebsd-elf*)
13299         archive_cmds_need_lc_CXX=no
13300         ;;
13301
13302       freebsd* | dragonfly*)
13303         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13304         # conventions
13305         ld_shlibs_CXX=yes
13306         ;;
13307
13308       haiku*)
13309         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13310         link_all_deplibs_CXX=yes
13311         ;;
13312
13313       hpux9*)
13314         hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13315         hardcode_libdir_separator_CXX=:
13316         export_dynamic_flag_spec_CXX='$wl-E'
13317         hardcode_direct_CXX=yes
13318         hardcode_minus_L_CXX=yes # Not in the search PATH,
13319                                              # but as the default
13320                                              # location of the library.
13321
13322         case $cc_basename in
13323           CC*)
13324             # FIXME: insert proper C++ library support
13325             ld_shlibs_CXX=no
13326             ;;
13327           aCC*)
13328             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'
13329             # Commands to make compiler produce verbose output that lists
13330             # what "hidden" libraries, object files and flags are used when
13331             # linking a shared library.
13332             #
13333             # There doesn't appear to be a way to prevent this compiler from
13334             # explicitly linking system object files so we need to strip them
13335             # from the output so that they don't get included in the library
13336             # dependencies.
13337             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"'
13338             ;;
13339           *)
13340             if test yes = "$GXX"; then
13341               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'
13342             else
13343               # FIXME: insert proper C++ library support
13344               ld_shlibs_CXX=no
13345             fi
13346             ;;
13347         esac
13348         ;;
13349
13350       hpux10*|hpux11*)
13351         if test no = "$with_gnu_ld"; then
13352           hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13353           hardcode_libdir_separator_CXX=:
13354
13355           case $host_cpu in
13356             hppa*64*|ia64*)
13357               ;;
13358             *)
13359               export_dynamic_flag_spec_CXX='$wl-E'
13360               ;;
13361           esac
13362         fi
13363         case $host_cpu in
13364           hppa*64*|ia64*)
13365             hardcode_direct_CXX=no
13366             hardcode_shlibpath_var_CXX=no
13367             ;;
13368           *)
13369             hardcode_direct_CXX=yes
13370             hardcode_direct_absolute_CXX=yes
13371             hardcode_minus_L_CXX=yes # Not in the search PATH,
13372                                                  # but as the default
13373                                                  # location of the library.
13374             ;;
13375         esac
13376
13377         case $cc_basename in
13378           CC*)
13379             # FIXME: insert proper C++ library support
13380             ld_shlibs_CXX=no
13381             ;;
13382           aCC*)
13383             case $host_cpu in
13384               hppa*64*)
13385                 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13386                 ;;
13387               ia64*)
13388                 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13389                 ;;
13390               *)
13391                 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13392                 ;;
13393             esac
13394             # Commands to make compiler produce verbose output that lists
13395             # what "hidden" libraries, object files and flags are used when
13396             # linking a shared library.
13397             #
13398             # There doesn't appear to be a way to prevent this compiler from
13399             # explicitly linking system object files so we need to strip them
13400             # from the output so that they don't get included in the library
13401             # dependencies.
13402             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"'
13403             ;;
13404           *)
13405             if test yes = "$GXX"; then
13406               if test no = "$with_gnu_ld"; then
13407                 case $host_cpu in
13408                   hppa*64*)
13409                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13410                     ;;
13411                   ia64*)
13412                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13413                     ;;
13414                   *)
13415                     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'
13416                     ;;
13417                 esac
13418               fi
13419             else
13420               # FIXME: insert proper C++ library support
13421               ld_shlibs_CXX=no
13422             fi
13423             ;;
13424         esac
13425         ;;
13426
13427       interix[3-9]*)
13428         hardcode_direct_CXX=no
13429         hardcode_shlibpath_var_CXX=no
13430         hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13431         export_dynamic_flag_spec_CXX='$wl-E'
13432         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13433         # Instead, shared libraries are loaded at an image base (0x10000000 by
13434         # default) and relocated if they conflict, which is a slow very memory
13435         # consuming and fragmenting process.  To avoid this, we pick a random,
13436         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13437         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13438         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'
13439         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'
13440         ;;
13441       irix5* | irix6*)
13442         case $cc_basename in
13443           CC*)
13444             # SGI C++
13445             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'
13446
13447             # Archives containing C++ object files must be created using
13448             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13449             # necessary to make sure instantiated templates are included
13450             # in the archive.
13451             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13452             ;;
13453           *)
13454             if test yes = "$GXX"; then
13455               if test no = "$with_gnu_ld"; then
13456                 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'
13457               else
13458                 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'
13459               fi
13460             fi
13461             link_all_deplibs_CXX=yes
13462             ;;
13463         esac
13464         hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13465         hardcode_libdir_separator_CXX=:
13466         inherit_rpath_CXX=yes
13467         ;;
13468
13469       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13470         case $cc_basename in
13471           KCC*)
13472             # Kuck and Associates, Inc. (KAI) C++ Compiler
13473
13474             # KCC will only create a shared library if the output file
13475             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13476             # to its proper name (with version) after linking.
13477             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'
13478             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'
13479             # Commands to make compiler produce verbose output that lists
13480             # what "hidden" libraries, object files and flags are used when
13481             # linking a shared library.
13482             #
13483             # There doesn't appear to be a way to prevent this compiler from
13484             # explicitly linking system object files so we need to strip them
13485             # from the output so that they don't get included in the library
13486             # dependencies.
13487             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"'
13488
13489             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13490             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13491
13492             # Archives containing C++ object files must be created using
13493             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13494             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13495             ;;
13496           icpc* | ecpc* )
13497             # Intel C++
13498             with_gnu_ld=yes
13499             # version 8.0 and above of icpc choke on multiply defined symbols
13500             # if we add $predep_objects and $postdep_objects, however 7.1 and
13501             # earlier do not add the objects themselves.
13502             case `$CC -V 2>&1` in
13503               *"Version 7."*)
13504                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13505                 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'
13506                 ;;
13507               *)  # Version 8.0 or newer
13508                 tmp_idyn=
13509                 case $host_cpu in
13510                   ia64*) tmp_idyn=' -i_dynamic';;
13511                 esac
13512                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13513                 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'
13514                 ;;
13515             esac
13516             archive_cmds_need_lc_CXX=no
13517             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13518             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13519             whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13520             ;;
13521           pgCC* | pgcpp*)
13522             # Portland Group C++ compiler
13523             case `$CC -V` in
13524             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13525               prelink_cmds_CXX='tpldir=Template.dir~
13526                rm -rf $tpldir~
13527                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13528                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13529               old_archive_cmds_CXX='tpldir=Template.dir~
13530                 rm -rf $tpldir~
13531                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13532                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13533                 $RANLIB $oldlib'
13534               archive_cmds_CXX='tpldir=Template.dir~
13535                 rm -rf $tpldir~
13536                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13537                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13538               archive_expsym_cmds_CXX='tpldir=Template.dir~
13539                 rm -rf $tpldir~
13540                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13541                 $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'
13542               ;;
13543             *) # Version 6 and above use weak symbols
13544               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13545               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'
13546               ;;
13547             esac
13548
13549             hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
13550             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13551             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'
13552             ;;
13553           cxx*)
13554             # Compaq C++
13555             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13556             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'
13557
13558             runpath_var=LD_RUN_PATH
13559             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13560             hardcode_libdir_separator_CXX=:
13561
13562             # Commands to make compiler produce verbose output that lists
13563             # what "hidden" libraries, object files and flags are used when
13564             # linking a shared library.
13565             #
13566             # There doesn't appear to be a way to prevent this compiler from
13567             # explicitly linking system object files so we need to strip them
13568             # from the output so that they don't get included in the library
13569             # dependencies.
13570             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'
13571             ;;
13572           xl* | mpixl* | bgxl*)
13573             # IBM XL 8.0 on PPC, with GNU ld
13574             hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13575             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13576             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13577             if test yes = "$supports_anon_versioning"; then
13578               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13579                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13580                 echo "local: *; };" >> $output_objdir/$libname.ver~
13581                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
13582             fi
13583             ;;
13584           *)
13585             case `$CC -V 2>&1 | sed 5q` in
13586             *Sun\ C*)
13587               # Sun C++ 5.9
13588               no_undefined_flag_CXX=' -zdefs'
13589               archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13590               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'
13591               hardcode_libdir_flag_spec_CXX='-R$libdir'
13592               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'
13593               compiler_needs_object_CXX=yes
13594
13595               # Not sure whether something based on
13596               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13597               # would be better.
13598               output_verbose_link_cmd='func_echo_all'
13599
13600               # Archives containing C++ object files must be created using
13601               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13602               # necessary to make sure instantiated templates are included
13603               # in the archive.
13604               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13605               ;;
13606             esac
13607             ;;
13608         esac
13609         ;;
13610
13611       lynxos*)
13612         # FIXME: insert proper C++ library support
13613         ld_shlibs_CXX=no
13614         ;;
13615
13616       m88k*)
13617         # FIXME: insert proper C++ library support
13618         ld_shlibs_CXX=no
13619         ;;
13620
13621       mvs*)
13622         case $cc_basename in
13623           cxx*)
13624             # FIXME: insert proper C++ library support
13625             ld_shlibs_CXX=no
13626             ;;
13627           *)
13628             # FIXME: insert proper C++ library support
13629             ld_shlibs_CXX=no
13630             ;;
13631         esac
13632         ;;
13633
13634       netbsd*)
13635         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13636           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13637           wlarc=
13638           hardcode_libdir_flag_spec_CXX='-R$libdir'
13639           hardcode_direct_CXX=yes
13640           hardcode_shlibpath_var_CXX=no
13641         fi
13642         # Workaround some broken pre-1.5 toolchains
13643         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13644         ;;
13645
13646       *nto* | *qnx*)
13647         ld_shlibs_CXX=yes
13648         ;;
13649
13650       openbsd* | bitrig*)
13651         if test -f /usr/libexec/ld.so; then
13652           hardcode_direct_CXX=yes
13653           hardcode_shlibpath_var_CXX=no
13654           hardcode_direct_absolute_CXX=yes
13655           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13656           hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13657           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
13658             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
13659             export_dynamic_flag_spec_CXX='$wl-E'
13660             whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13661           fi
13662           output_verbose_link_cmd=func_echo_all
13663         else
13664           ld_shlibs_CXX=no
13665         fi
13666         ;;
13667
13668       osf3* | osf4* | osf5*)
13669         case $cc_basename in
13670           KCC*)
13671             # Kuck and Associates, Inc. (KAI) C++ Compiler
13672
13673             # KCC will only create a shared library if the output file
13674             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13675             # to its proper name (with version) after linking.
13676             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'
13677
13678             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13679             hardcode_libdir_separator_CXX=:
13680
13681             # Archives containing C++ object files must be created using
13682             # the KAI C++ compiler.
13683             case $host in
13684               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13685               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13686             esac
13687             ;;
13688           RCC*)
13689             # Rational C++ 2.4.1
13690             # FIXME: insert proper C++ library support
13691             ld_shlibs_CXX=no
13692             ;;
13693           cxx*)
13694             case $host in
13695               osf3*)
13696                 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
13697                 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'
13698                 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13699                 ;;
13700               *)
13701                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13702                 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'
13703                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13704                   echo "-hidden">> $lib.exp~
13705                   $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~
13706                   $RM $lib.exp'
13707                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13708                 ;;
13709             esac
13710
13711             hardcode_libdir_separator_CXX=:
13712
13713             # Commands to make compiler produce verbose output that lists
13714             # what "hidden" libraries, object files and flags are used when
13715             # linking a shared library.
13716             #
13717             # There doesn't appear to be a way to prevent this compiler from
13718             # explicitly linking system object files so we need to strip them
13719             # from the output so that they don't get included in the library
13720             # dependencies.
13721             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"'
13722             ;;
13723           *)
13724             if test yes,no = "$GXX,$with_gnu_ld"; then
13725               allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
13726               case $host in
13727                 osf3*)
13728                   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'
13729                   ;;
13730                 *)
13731                   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'
13732                   ;;
13733               esac
13734
13735               hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13736               hardcode_libdir_separator_CXX=:
13737
13738               # Commands to make compiler produce verbose output that lists
13739               # what "hidden" libraries, object files and flags are used when
13740               # linking a shared library.
13741               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13742
13743             else
13744               # FIXME: insert proper C++ library support
13745               ld_shlibs_CXX=no
13746             fi
13747             ;;
13748         esac
13749         ;;
13750
13751       psos*)
13752         # FIXME: insert proper C++ library support
13753         ld_shlibs_CXX=no
13754         ;;
13755
13756       sunos4*)
13757         case $cc_basename in
13758           CC*)
13759             # Sun C++ 4.x
13760             # FIXME: insert proper C++ library support
13761             ld_shlibs_CXX=no
13762             ;;
13763           lcc*)
13764             # Lucid
13765             # FIXME: insert proper C++ library support
13766             ld_shlibs_CXX=no
13767             ;;
13768           *)
13769             # FIXME: insert proper C++ library support
13770             ld_shlibs_CXX=no
13771             ;;
13772         esac
13773         ;;
13774
13775       solaris*)
13776         case $cc_basename in
13777           CC* | sunCC*)
13778             # Sun C++ 4.2, 5.x and Centerline C++
13779             archive_cmds_need_lc_CXX=yes
13780             no_undefined_flag_CXX=' -zdefs'
13781             archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13782             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13783               $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'
13784
13785             hardcode_libdir_flag_spec_CXX='-R$libdir'
13786             hardcode_shlibpath_var_CXX=no
13787             case $host_os in
13788               solaris2.[0-5] | solaris2.[0-5].*) ;;
13789               *)
13790                 # The compiler driver will combine and reorder linker options,
13791                 # but understands '-z linker_flag'.
13792                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13793                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13794                 ;;
13795             esac
13796             link_all_deplibs_CXX=yes
13797
13798             output_verbose_link_cmd='func_echo_all'
13799
13800             # Archives containing C++ object files must be created using
13801             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13802             # necessary to make sure instantiated templates are included
13803             # in the archive.
13804             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13805             ;;
13806           gcx*)
13807             # Green Hills C++ Compiler
13808             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
13809
13810             # The C++ compiler must be used to create the archive.
13811             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13812             ;;
13813           *)
13814             # GNU C++ compiler with Solaris linker
13815             if test yes,no = "$GXX,$with_gnu_ld"; then
13816               no_undefined_flag_CXX=' $wl-z ${wl}defs'
13817               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13818                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
13819                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13820                   $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'
13821
13822                 # Commands to make compiler produce verbose output that lists
13823                 # what "hidden" libraries, object files and flags are used when
13824                 # linking a shared library.
13825                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13826               else
13827                 # g++ 2.7 appears to require '-G' NOT '-shared' on this
13828                 # platform.
13829                 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
13830                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13831                   $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'
13832
13833                 # Commands to make compiler produce verbose output that lists
13834                 # what "hidden" libraries, object files and flags are used when
13835                 # linking a shared library.
13836                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13837               fi
13838
13839               hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
13840               case $host_os in
13841                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13842                 *)
13843                   whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13844                   ;;
13845               esac
13846             fi
13847             ;;
13848         esac
13849         ;;
13850
13851     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13852       no_undefined_flag_CXX='$wl-z,text'
13853       archive_cmds_need_lc_CXX=no
13854       hardcode_shlibpath_var_CXX=no
13855       runpath_var='LD_RUN_PATH'
13856
13857       case $cc_basename in
13858         CC*)
13859           archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13860           archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13861           ;;
13862         *)
13863           archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13864           archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13865           ;;
13866       esac
13867       ;;
13868
13869       sysv5* | sco3.2v5* | sco5v6*)
13870         # Note: We CANNOT use -z defs as we might desire, because we do not
13871         # link with -lc, and that would cause any symbols used from libc to
13872         # always be unresolved, which means just about no library would
13873         # ever link correctly.  If we're not using GNU ld we use -z text
13874         # though, which does catch some bad symbols but isn't as heavy-handed
13875         # as -z defs.
13876         no_undefined_flag_CXX='$wl-z,text'
13877         allow_undefined_flag_CXX='$wl-z,nodefs'
13878         archive_cmds_need_lc_CXX=no
13879         hardcode_shlibpath_var_CXX=no
13880         hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
13881         hardcode_libdir_separator_CXX=':'
13882         link_all_deplibs_CXX=yes
13883         export_dynamic_flag_spec_CXX='$wl-Bexport'
13884         runpath_var='LD_RUN_PATH'
13885
13886         case $cc_basename in
13887           CC*)
13888             archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13889             archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13890             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13891               '"$old_archive_cmds_CXX"
13892             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13893               '"$reload_cmds_CXX"
13894             ;;
13895           *)
13896             archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13897             archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13898             ;;
13899         esac
13900       ;;
13901
13902       tandem*)
13903         case $cc_basename in
13904           NCC*)
13905             # NonStop-UX NCC 3.20
13906             # FIXME: insert proper C++ library support
13907             ld_shlibs_CXX=no
13908             ;;
13909           *)
13910             # FIXME: insert proper C++ library support
13911             ld_shlibs_CXX=no
13912             ;;
13913         esac
13914         ;;
13915
13916       vxworks*)
13917         # FIXME: insert proper C++ library support
13918         ld_shlibs_CXX=no
13919         ;;
13920
13921       *)
13922         # FIXME: insert proper C++ library support
13923         ld_shlibs_CXX=no
13924         ;;
13925     esac
13926
13927     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13928 $as_echo "$ld_shlibs_CXX" >&6; }
13929     test no = "$ld_shlibs_CXX" && can_build_shared=no
13930
13931     GCC_CXX=$GXX
13932     LD_CXX=$LD
13933
13934     ## CAVEAT EMPTOR:
13935     ## There is no encapsulation within the following macros, do not change
13936     ## the running order or otherwise move them around unless you know exactly
13937     ## what you are doing...
13938     # Dependencies to place before and after the object being linked:
13939 predep_objects_CXX=
13940 postdep_objects_CXX=
13941 predeps_CXX=
13942 postdeps_CXX=
13943 compiler_lib_search_path_CXX=
13944
13945 cat > conftest.$ac_ext <<_LT_EOF
13946 class Foo
13947 {
13948 public:
13949   Foo (void) { a = 0; }
13950 private:
13951   int a;
13952 };
13953 _LT_EOF
13954
13955
13956 _lt_libdeps_save_CFLAGS=$CFLAGS
13957 case "$CC $CFLAGS " in #(
13958 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13959 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13960 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13961 esac
13962
13963 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13964   (eval $ac_compile) 2>&5
13965   ac_status=$?
13966   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13967   test $ac_status = 0; }; then
13968   # Parse the compiler output and extract the necessary
13969   # objects, libraries and library flags.
13970
13971   # Sentinel used to keep track of whether or not we are before
13972   # the conftest object file.
13973   pre_test_object_deps_done=no
13974
13975   for p in `eval "$output_verbose_link_cmd"`; do
13976     case $prev$p in
13977
13978     -L* | -R* | -l*)
13979        # Some compilers place space between "-{L,R}" and the path.
13980        # Remove the space.
13981        if test x-L = "$p" ||
13982           test x-R = "$p"; then
13983          prev=$p
13984          continue
13985        fi
13986
13987        # Expand the sysroot to ease extracting the directories later.
13988        if test -z "$prev"; then
13989          case $p in
13990          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13991          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13992          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13993          esac
13994        fi
13995        case $p in
13996        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13997        esac
13998        if test no = "$pre_test_object_deps_done"; then
13999          case $prev in
14000          -L | -R)
14001            # Internal compiler library paths should come after those
14002            # provided the user.  The postdeps already come after the
14003            # user supplied libs so there is no need to process them.
14004            if test -z "$compiler_lib_search_path_CXX"; then
14005              compiler_lib_search_path_CXX=$prev$p
14006            else
14007              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
14008            fi
14009            ;;
14010          # The "-l" case would never come before the object being
14011          # linked, so don't bother handling this case.
14012          esac
14013        else
14014          if test -z "$postdeps_CXX"; then
14015            postdeps_CXX=$prev$p
14016          else
14017            postdeps_CXX="${postdeps_CXX} $prev$p"
14018          fi
14019        fi
14020        prev=
14021        ;;
14022
14023     *.lto.$objext) ;; # Ignore GCC LTO objects
14024     *.$objext)
14025        # This assumes that the test object file only shows up
14026        # once in the compiler output.
14027        if test "$p" = "conftest.$objext"; then
14028          pre_test_object_deps_done=yes
14029          continue
14030        fi
14031
14032        if test no = "$pre_test_object_deps_done"; then
14033          if test -z "$predep_objects_CXX"; then
14034            predep_objects_CXX=$p
14035          else
14036            predep_objects_CXX="$predep_objects_CXX $p"
14037          fi
14038        else
14039          if test -z "$postdep_objects_CXX"; then
14040            postdep_objects_CXX=$p
14041          else
14042            postdep_objects_CXX="$postdep_objects_CXX $p"
14043          fi
14044        fi
14045        ;;
14046
14047     *) ;; # Ignore the rest.
14048
14049     esac
14050   done
14051
14052   # Clean up.
14053   rm -f a.out a.exe
14054 else
14055   echo "libtool.m4: error: problem compiling CXX test program"
14056 fi
14057
14058 $RM -f confest.$objext
14059 CFLAGS=$_lt_libdeps_save_CFLAGS
14060
14061 # PORTME: override above test on systems where it is broken
14062 case $host_os in
14063 interix[3-9]*)
14064   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14065   # hack all around it, let's just trust "g++" to DTRT.
14066   predep_objects_CXX=
14067   postdep_objects_CXX=
14068   postdeps_CXX=
14069   ;;
14070 esac
14071
14072
14073 case " $postdeps_CXX " in
14074 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14075 esac
14076  compiler_lib_search_dirs_CXX=
14077 if test -n "${compiler_lib_search_path_CXX}"; then
14078  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
14079 fi
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111     lt_prog_compiler_wl_CXX=
14112 lt_prog_compiler_pic_CXX=
14113 lt_prog_compiler_static_CXX=
14114
14115
14116   # C++ specific cases for pic, static, wl, etc.
14117   if test yes = "$GXX"; then
14118     lt_prog_compiler_wl_CXX='-Wl,'
14119     lt_prog_compiler_static_CXX='-static'
14120
14121     case $host_os in
14122     aix*)
14123       # All AIX code is PIC.
14124       if test ia64 = "$host_cpu"; then
14125         # AIX 5 now supports IA64 processor
14126         lt_prog_compiler_static_CXX='-Bstatic'
14127       fi
14128       lt_prog_compiler_pic_CXX='-fPIC'
14129       ;;
14130
14131     amigaos*)
14132       case $host_cpu in
14133       powerpc)
14134             # see comment about AmigaOS4 .so support
14135             lt_prog_compiler_pic_CXX='-fPIC'
14136         ;;
14137       m68k)
14138             # FIXME: we need at least 68020 code to build shared libraries, but
14139             # adding the '-m68020' flag to GCC prevents building anything better,
14140             # like '-m68040'.
14141             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14142         ;;
14143       esac
14144       ;;
14145
14146     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14147       # PIC is the default for these OSes.
14148       ;;
14149     mingw* | cygwin* | os2* | pw32* | cegcc*)
14150       # This hack is so that the source file can tell whether it is being
14151       # built for inclusion in a dll (and should export symbols for example).
14152       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14153       # (--disable-auto-import) libraries
14154       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14155       case $host_os in
14156       os2*)
14157         lt_prog_compiler_static_CXX='$wl-static'
14158         ;;
14159       esac
14160       ;;
14161     darwin* | rhapsody*)
14162       # PIC is the default on this platform
14163       # Common symbols not allowed in MH_DYLIB files
14164       lt_prog_compiler_pic_CXX='-fno-common'
14165       ;;
14166     *djgpp*)
14167       # DJGPP does not support shared libraries at all
14168       lt_prog_compiler_pic_CXX=
14169       ;;
14170     haiku*)
14171       # PIC is the default for Haiku.
14172       # The "-static" flag exists, but is broken.
14173       lt_prog_compiler_static_CXX=
14174       ;;
14175     interix[3-9]*)
14176       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14177       # Instead, we relocate shared libraries at runtime.
14178       ;;
14179     sysv4*MP*)
14180       if test -d /usr/nec; then
14181         lt_prog_compiler_pic_CXX=-Kconform_pic
14182       fi
14183       ;;
14184     hpux*)
14185       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14186       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14187       # sets the default TLS model and affects inlining.
14188       case $host_cpu in
14189       hppa*64*)
14190         ;;
14191       *)
14192         lt_prog_compiler_pic_CXX='-fPIC'
14193         ;;
14194       esac
14195       ;;
14196     *qnx* | *nto*)
14197       # QNX uses GNU C++, but need to define -shared option too, otherwise
14198       # it will coredump.
14199       lt_prog_compiler_pic_CXX='-fPIC -shared'
14200       ;;
14201     *)
14202       lt_prog_compiler_pic_CXX='-fPIC'
14203       ;;
14204     esac
14205   else
14206     case $host_os in
14207       aix[4-9]*)
14208         # All AIX code is PIC.
14209         if test ia64 = "$host_cpu"; then
14210           # AIX 5 now supports IA64 processor
14211           lt_prog_compiler_static_CXX='-Bstatic'
14212         else
14213           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14214         fi
14215         ;;
14216       chorus*)
14217         case $cc_basename in
14218         cxch68*)
14219           # Green Hills C++ Compiler
14220           # _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"
14221           ;;
14222         esac
14223         ;;
14224       mingw* | cygwin* | os2* | pw32* | cegcc*)
14225         # This hack is so that the source file can tell whether it is being
14226         # built for inclusion in a dll (and should export symbols for example).
14227         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14228         ;;
14229       dgux*)
14230         case $cc_basename in
14231           ec++*)
14232             lt_prog_compiler_pic_CXX='-KPIC'
14233             ;;
14234           ghcx*)
14235             # Green Hills C++ Compiler
14236             lt_prog_compiler_pic_CXX='-pic'
14237             ;;
14238           *)
14239             ;;
14240         esac
14241         ;;
14242       freebsd* | dragonfly*)
14243         # FreeBSD uses GNU C++
14244         ;;
14245       hpux9* | hpux10* | hpux11*)
14246         case $cc_basename in
14247           CC*)
14248             lt_prog_compiler_wl_CXX='-Wl,'
14249             lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14250             if test ia64 != "$host_cpu"; then
14251               lt_prog_compiler_pic_CXX='+Z'
14252             fi
14253             ;;
14254           aCC*)
14255             lt_prog_compiler_wl_CXX='-Wl,'
14256             lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14257             case $host_cpu in
14258             hppa*64*|ia64*)
14259               # +Z the default
14260               ;;
14261             *)
14262               lt_prog_compiler_pic_CXX='+Z'
14263               ;;
14264             esac
14265             ;;
14266           *)
14267             ;;
14268         esac
14269         ;;
14270       interix*)
14271         # This is c89, which is MS Visual C++ (no shared libs)
14272         # Anyone wants to do a port?
14273         ;;
14274       irix5* | irix6* | nonstopux*)
14275         case $cc_basename in
14276           CC*)
14277             lt_prog_compiler_wl_CXX='-Wl,'
14278             lt_prog_compiler_static_CXX='-non_shared'
14279             # CC pic flag -KPIC is the default.
14280             ;;
14281           *)
14282             ;;
14283         esac
14284         ;;
14285       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14286         case $cc_basename in
14287           KCC*)
14288             # KAI C++ Compiler
14289             lt_prog_compiler_wl_CXX='--backend -Wl,'
14290             lt_prog_compiler_pic_CXX='-fPIC'
14291             ;;
14292           ecpc* )
14293             # old Intel C++ for x86_64, which still supported -KPIC.
14294             lt_prog_compiler_wl_CXX='-Wl,'
14295             lt_prog_compiler_pic_CXX='-KPIC'
14296             lt_prog_compiler_static_CXX='-static'
14297             ;;
14298           icpc* )
14299             # Intel C++, used to be incompatible with GCC.
14300             # ICC 10 doesn't accept -KPIC any more.
14301             lt_prog_compiler_wl_CXX='-Wl,'
14302             lt_prog_compiler_pic_CXX='-fPIC'
14303             lt_prog_compiler_static_CXX='-static'
14304             ;;
14305           pgCC* | pgcpp*)
14306             # Portland Group C++ compiler
14307             lt_prog_compiler_wl_CXX='-Wl,'
14308             lt_prog_compiler_pic_CXX='-fpic'
14309             lt_prog_compiler_static_CXX='-Bstatic'
14310             ;;
14311           cxx*)
14312             # Compaq C++
14313             # Make sure the PIC flag is empty.  It appears that all Alpha
14314             # Linux and Compaq Tru64 Unix objects are PIC.
14315             lt_prog_compiler_pic_CXX=
14316             lt_prog_compiler_static_CXX='-non_shared'
14317             ;;
14318           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14319             # IBM XL 8.0, 9.0 on PPC and BlueGene
14320             lt_prog_compiler_wl_CXX='-Wl,'
14321             lt_prog_compiler_pic_CXX='-qpic'
14322             lt_prog_compiler_static_CXX='-qstaticlink'
14323             ;;
14324           *)
14325             case `$CC -V 2>&1 | sed 5q` in
14326             *Sun\ C*)
14327               # Sun C++ 5.9
14328               lt_prog_compiler_pic_CXX='-KPIC'
14329               lt_prog_compiler_static_CXX='-Bstatic'
14330               lt_prog_compiler_wl_CXX='-Qoption ld '
14331               ;;
14332             esac
14333             ;;
14334         esac
14335         ;;
14336       lynxos*)
14337         ;;
14338       m88k*)
14339         ;;
14340       mvs*)
14341         case $cc_basename in
14342           cxx*)
14343             lt_prog_compiler_pic_CXX='-W c,exportall'
14344             ;;
14345           *)
14346             ;;
14347         esac
14348         ;;
14349       netbsd*)
14350         ;;
14351       *qnx* | *nto*)
14352         # QNX uses GNU C++, but need to define -shared option too, otherwise
14353         # it will coredump.
14354         lt_prog_compiler_pic_CXX='-fPIC -shared'
14355         ;;
14356       osf3* | osf4* | osf5*)
14357         case $cc_basename in
14358           KCC*)
14359             lt_prog_compiler_wl_CXX='--backend -Wl,'
14360             ;;
14361           RCC*)
14362             # Rational C++ 2.4.1
14363             lt_prog_compiler_pic_CXX='-pic'
14364             ;;
14365           cxx*)
14366             # Digital/Compaq C++
14367             lt_prog_compiler_wl_CXX='-Wl,'
14368             # Make sure the PIC flag is empty.  It appears that all Alpha
14369             # Linux and Compaq Tru64 Unix objects are PIC.
14370             lt_prog_compiler_pic_CXX=
14371             lt_prog_compiler_static_CXX='-non_shared'
14372             ;;
14373           *)
14374             ;;
14375         esac
14376         ;;
14377       psos*)
14378         ;;
14379       solaris*)
14380         case $cc_basename in
14381           CC* | sunCC*)
14382             # Sun C++ 4.2, 5.x and Centerline C++
14383             lt_prog_compiler_pic_CXX='-KPIC'
14384             lt_prog_compiler_static_CXX='-Bstatic'
14385             lt_prog_compiler_wl_CXX='-Qoption ld '
14386             ;;
14387           gcx*)
14388             # Green Hills C++ Compiler
14389             lt_prog_compiler_pic_CXX='-PIC'
14390             ;;
14391           *)
14392             ;;
14393         esac
14394         ;;
14395       sunos4*)
14396         case $cc_basename in
14397           CC*)
14398             # Sun C++ 4.x
14399             lt_prog_compiler_pic_CXX='-pic'
14400             lt_prog_compiler_static_CXX='-Bstatic'
14401             ;;
14402           lcc*)
14403             # Lucid
14404             lt_prog_compiler_pic_CXX='-pic'
14405             ;;
14406           *)
14407             ;;
14408         esac
14409         ;;
14410       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14411         case $cc_basename in
14412           CC*)
14413             lt_prog_compiler_wl_CXX='-Wl,'
14414             lt_prog_compiler_pic_CXX='-KPIC'
14415             lt_prog_compiler_static_CXX='-Bstatic'
14416             ;;
14417         esac
14418         ;;
14419       tandem*)
14420         case $cc_basename in
14421           NCC*)
14422             # NonStop-UX NCC 3.20
14423             lt_prog_compiler_pic_CXX='-KPIC'
14424             ;;
14425           *)
14426             ;;
14427         esac
14428         ;;
14429       vxworks*)
14430         ;;
14431       *)
14432         lt_prog_compiler_can_build_shared_CXX=no
14433         ;;
14434     esac
14435   fi
14436
14437 case $host_os in
14438   # For platforms that do not support PIC, -DPIC is meaningless:
14439   *djgpp*)
14440     lt_prog_compiler_pic_CXX=
14441     ;;
14442   *)
14443     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14444     ;;
14445 esac
14446
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14448 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14449 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14450   $as_echo_n "(cached) " >&6
14451 else
14452   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14453 fi
14454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14455 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14456 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14457
14458 #
14459 # Check to make sure the PIC flag actually works.
14460 #
14461 if test -n "$lt_prog_compiler_pic_CXX"; then
14462   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14463 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14464 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14465   $as_echo_n "(cached) " >&6
14466 else
14467   lt_cv_prog_compiler_pic_works_CXX=no
14468    ac_outfile=conftest.$ac_objext
14469    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14470    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
14471    # Insert the option either (1) after the last *FLAGS variable, or
14472    # (2) before a word containing "conftest.", or (3) at the end.
14473    # Note that $ac_compile itself does not contain backslashes and begins
14474    # with a dollar sign (not a hyphen), so the echo should work correctly.
14475    # The option is referenced via a variable to avoid confusing sed.
14476    lt_compile=`echo "$ac_compile" | $SED \
14477    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14478    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14479    -e 's:$: $lt_compiler_flag:'`
14480    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14481    (eval "$lt_compile" 2>conftest.err)
14482    ac_status=$?
14483    cat conftest.err >&5
14484    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14485    if (exit $ac_status) && test -s "$ac_outfile"; then
14486      # The compiler can only warn and ignore the option if not recognized
14487      # So say no if there are warnings other than the usual output.
14488      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14489      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14490      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14491        lt_cv_prog_compiler_pic_works_CXX=yes
14492      fi
14493    fi
14494    $RM conftest*
14495
14496 fi
14497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14498 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14499
14500 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
14501     case $lt_prog_compiler_pic_CXX in
14502      "" | " "*) ;;
14503      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14504      esac
14505 else
14506     lt_prog_compiler_pic_CXX=
14507      lt_prog_compiler_can_build_shared_CXX=no
14508 fi
14509
14510 fi
14511
14512
14513
14514
14515
14516 #
14517 # Check to make sure the static flag actually works.
14518 #
14519 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14521 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14522 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14523   $as_echo_n "(cached) " >&6
14524 else
14525   lt_cv_prog_compiler_static_works_CXX=no
14526    save_LDFLAGS=$LDFLAGS
14527    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14528    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14529    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14530      # The linker can only warn and ignore the option if not recognized
14531      # So say no if there are warnings
14532      if test -s conftest.err; then
14533        # Append any errors to the config.log.
14534        cat conftest.err 1>&5
14535        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14536        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14537        if diff conftest.exp conftest.er2 >/dev/null; then
14538          lt_cv_prog_compiler_static_works_CXX=yes
14539        fi
14540      else
14541        lt_cv_prog_compiler_static_works_CXX=yes
14542      fi
14543    fi
14544    $RM -r conftest*
14545    LDFLAGS=$save_LDFLAGS
14546
14547 fi
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14549 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14550
14551 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
14552     :
14553 else
14554     lt_prog_compiler_static_CXX=
14555 fi
14556
14557
14558
14559
14560     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14561 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14562 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14563   $as_echo_n "(cached) " >&6
14564 else
14565   lt_cv_prog_compiler_c_o_CXX=no
14566    $RM -r conftest 2>/dev/null
14567    mkdir conftest
14568    cd conftest
14569    mkdir out
14570    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14571
14572    lt_compiler_flag="-o out/conftest2.$ac_objext"
14573    # Insert the option either (1) after the last *FLAGS variable, or
14574    # (2) before a word containing "conftest.", or (3) at the end.
14575    # Note that $ac_compile itself does not contain backslashes and begins
14576    # with a dollar sign (not a hyphen), so the echo should work correctly.
14577    lt_compile=`echo "$ac_compile" | $SED \
14578    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14579    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14580    -e 's:$: $lt_compiler_flag:'`
14581    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14582    (eval "$lt_compile" 2>out/conftest.err)
14583    ac_status=$?
14584    cat out/conftest.err >&5
14585    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14587    then
14588      # The compiler can only warn and ignore the option if not recognized
14589      # So say no if there are warnings
14590      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14591      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14592      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14593        lt_cv_prog_compiler_c_o_CXX=yes
14594      fi
14595    fi
14596    chmod u+w . 2>&5
14597    $RM conftest*
14598    # SGI C++ compiler will create directory out/ii_files/ for
14599    # template instantiation
14600    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14601    $RM out/* && rmdir out
14602    cd ..
14603    $RM -r conftest
14604    $RM conftest*
14605
14606 fi
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14608 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14609
14610
14611
14612     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14613 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14614 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14615   $as_echo_n "(cached) " >&6
14616 else
14617   lt_cv_prog_compiler_c_o_CXX=no
14618    $RM -r conftest 2>/dev/null
14619    mkdir conftest
14620    cd conftest
14621    mkdir out
14622    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14623
14624    lt_compiler_flag="-o out/conftest2.$ac_objext"
14625    # Insert the option either (1) after the last *FLAGS variable, or
14626    # (2) before a word containing "conftest.", or (3) at the end.
14627    # Note that $ac_compile itself does not contain backslashes and begins
14628    # with a dollar sign (not a hyphen), so the echo should work correctly.
14629    lt_compile=`echo "$ac_compile" | $SED \
14630    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14631    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14632    -e 's:$: $lt_compiler_flag:'`
14633    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14634    (eval "$lt_compile" 2>out/conftest.err)
14635    ac_status=$?
14636    cat out/conftest.err >&5
14637    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14638    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14639    then
14640      # The compiler can only warn and ignore the option if not recognized
14641      # So say no if there are warnings
14642      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14643      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14644      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14645        lt_cv_prog_compiler_c_o_CXX=yes
14646      fi
14647    fi
14648    chmod u+w . 2>&5
14649    $RM conftest*
14650    # SGI C++ compiler will create directory out/ii_files/ for
14651    # template instantiation
14652    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14653    $RM out/* && rmdir out
14654    cd ..
14655    $RM -r conftest
14656    $RM conftest*
14657
14658 fi
14659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14660 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14661
14662
14663
14664
14665 hard_links=nottested
14666 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
14667   # do not overwrite the value of need_locks provided by the user
14668   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14669 $as_echo_n "checking if we can lock with hard links... " >&6; }
14670   hard_links=yes
14671   $RM conftest*
14672   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14673   touch conftest.a
14674   ln conftest.a conftest.b 2>&5 || hard_links=no
14675   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14677 $as_echo "$hard_links" >&6; }
14678   if test no = "$hard_links"; then
14679     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
14680 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
14681     need_locks=warn
14682   fi
14683 else
14684   need_locks=no
14685 fi
14686
14687
14688
14689     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14690 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14691
14692   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14693   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14694   case $host_os in
14695   aix[4-9]*)
14696     # If we're using GNU nm, then we don't want the "-C" option.
14697     # -C means demangle to GNU nm, but means don't demangle to AIX nm.
14698     # Without the "-l" option, or with the "-B" option, AIX nm treats
14699     # weak defined symbols like other global defined symbols, whereas
14700     # GNU nm marks them as "W".
14701     # While the 'weak' keyword is ignored in the Export File, we need
14702     # it in the Import File for the 'aix-soname' feature, so we have
14703     # to replace the "-B" option with "-P" for AIX nm.
14704     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14705       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'
14706     else
14707       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'
14708     fi
14709     ;;
14710   pw32*)
14711     export_symbols_cmds_CXX=$ltdll_cmds
14712     ;;
14713   cygwin* | mingw* | cegcc*)
14714     case $cc_basename in
14715     cl*)
14716       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14717       ;;
14718     *)
14719       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'
14720       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14721       ;;
14722     esac
14723     ;;
14724   *)
14725     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14726     ;;
14727   esac
14728
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14730 $as_echo "$ld_shlibs_CXX" >&6; }
14731 test no = "$ld_shlibs_CXX" && can_build_shared=no
14732
14733 with_gnu_ld_CXX=$with_gnu_ld
14734
14735
14736
14737
14738
14739
14740 #
14741 # Do we need to explicitly link libc?
14742 #
14743 case "x$archive_cmds_need_lc_CXX" in
14744 x|xyes)
14745   # Assume -lc should be added
14746   archive_cmds_need_lc_CXX=yes
14747
14748   if test yes,yes = "$GCC,$enable_shared"; then
14749     case $archive_cmds_CXX in
14750     *'~'*)
14751       # FIXME: we may have to deal with multi-command sequences.
14752       ;;
14753     '$CC '*)
14754       # Test whether the compiler implicitly links with -lc since on some
14755       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14756       # to ld, don't add -lc before -lgcc.
14757       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14758 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14759 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14760   $as_echo_n "(cached) " >&6
14761 else
14762   $RM conftest*
14763         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14764
14765         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14766   (eval $ac_compile) 2>&5
14767   ac_status=$?
14768   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14769   test $ac_status = 0; } 2>conftest.err; then
14770           soname=conftest
14771           lib=conftest
14772           libobjs=conftest.$ac_objext
14773           deplibs=
14774           wl=$lt_prog_compiler_wl_CXX
14775           pic_flag=$lt_prog_compiler_pic_CXX
14776           compiler_flags=-v
14777           linker_flags=-v
14778           verstring=
14779           output_objdir=.
14780           libname=conftest
14781           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14782           allow_undefined_flag_CXX=
14783           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14784   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14785   ac_status=$?
14786   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14787   test $ac_status = 0; }
14788           then
14789             lt_cv_archive_cmds_need_lc_CXX=no
14790           else
14791             lt_cv_archive_cmds_need_lc_CXX=yes
14792           fi
14793           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14794         else
14795           cat conftest.err 1>&5
14796         fi
14797         $RM conftest*
14798
14799 fi
14800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14801 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14802       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14803       ;;
14804     esac
14805   fi
14806   ;;
14807 esac
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14871 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14872
14873 library_names_spec=
14874 libname_spec='lib$name'
14875 soname_spec=
14876 shrext_cmds=.so
14877 postinstall_cmds=
14878 postuninstall_cmds=
14879 finish_cmds=
14880 finish_eval=
14881 shlibpath_var=
14882 shlibpath_overrides_runpath=unknown
14883 version_type=none
14884 dynamic_linker="$host_os ld.so"
14885 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14886 need_lib_prefix=unknown
14887 hardcode_into_libs=no
14888
14889 # when you set need_version to no, make sure it does not cause -set_version
14890 # flags to be left without arguments
14891 need_version=unknown
14892
14893
14894
14895 case $host_os in
14896 aix3*)
14897   version_type=linux # correct to gnu/linux during the next big refactor
14898   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
14899   shlibpath_var=LIBPATH
14900
14901   # AIX 3 has no versioning support, so we append a major version to the name.
14902   soname_spec='$libname$release$shared_ext$major'
14903   ;;
14904
14905 aix[4-9]*)
14906   version_type=linux # correct to gnu/linux during the next big refactor
14907   need_lib_prefix=no
14908   need_version=no
14909   hardcode_into_libs=yes
14910   if test ia64 = "$host_cpu"; then
14911     # AIX 5 supports IA64
14912     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
14913     shlibpath_var=LD_LIBRARY_PATH
14914   else
14915     # With GCC up to 2.95.x, collect2 would create an import file
14916     # for dependence libraries.  The import file would start with
14917     # the line '#! .'.  This would cause the generated library to
14918     # depend on '.', always an invalid library.  This was fixed in
14919     # development snapshots of GCC prior to 3.0.
14920     case $host_os in
14921       aix4 | aix4.[01] | aix4.[01].*)
14922       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14923            echo ' yes '
14924            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
14925         :
14926       else
14927         can_build_shared=no
14928       fi
14929       ;;
14930     esac
14931     # Using Import Files as archive members, it is possible to support
14932     # filename-based versioning of shared library archives on AIX. While
14933     # this would work for both with and without runtime linking, it will
14934     # prevent static linking of such archives. So we do filename-based
14935     # shared library versioning with .so extension only, which is used
14936     # when both runtime linking and shared linking is enabled.
14937     # Unfortunately, runtime linking may impact performance, so we do
14938     # not want this to be the default eventually. Also, we use the
14939     # versioned .so libs for executables only if there is the -brtl
14940     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
14941     # To allow for filename-based versioning support, we need to create
14942     # libNAME.so.V as an archive file, containing:
14943     # *) an Import File, referring to the versioned filename of the
14944     #    archive as well as the shared archive member, telling the
14945     #    bitwidth (32 or 64) of that shared object, and providing the
14946     #    list of exported symbols of that shared object, eventually
14947     #    decorated with the 'weak' keyword
14948     # *) the shared object with the F_LOADONLY flag set, to really avoid
14949     #    it being seen by the linker.
14950     # At run time we better use the real file rather than another symlink,
14951     # but for link time we create the symlink libNAME.so -> libNAME.so.V
14952
14953     case $with_aix_soname,$aix_use_runtimelinking in
14954     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
14955     # soname into executable. Probably we can add versioning support to
14956     # collect2, so additional links can be useful in future.
14957     aix,yes) # traditional libtool
14958       dynamic_linker='AIX unversionable lib.so'
14959       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14960       # instead of lib<name>.a to let people know that these are not
14961       # typical AIX shared libraries.
14962       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14963       ;;
14964     aix,no) # traditional AIX only
14965       dynamic_linker='AIX lib.a(lib.so.V)'
14966       # We preserve .a as extension for shared libraries through AIX4.2
14967       # and later when we are not doing run time linking.
14968       library_names_spec='$libname$release.a $libname.a'
14969       soname_spec='$libname$release$shared_ext$major'
14970       ;;
14971     svr4,*) # full svr4 only
14972       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
14973       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14974       # We do not specify a path in Import Files, so LIBPATH fires.
14975       shlibpath_overrides_runpath=yes
14976       ;;
14977     *,yes) # both, prefer svr4
14978       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
14979       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14980       # unpreferred sharedlib libNAME.a needs extra handling
14981       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"'
14982       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"'
14983       # We do not specify a path in Import Files, so LIBPATH fires.
14984       shlibpath_overrides_runpath=yes
14985       ;;
14986     *,no) # both, prefer aix
14987       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
14988       library_names_spec='$libname$release.a $libname.a'
14989       soname_spec='$libname$release$shared_ext$major'
14990       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
14991       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)'
14992       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"'
14993       ;;
14994     esac
14995     shlibpath_var=LIBPATH
14996   fi
14997   ;;
14998
14999 amigaos*)
15000   case $host_cpu in
15001   powerpc)
15002     # Since July 2007 AmigaOS4 officially supports .so libraries.
15003     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15004     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15005     ;;
15006   m68k)
15007     library_names_spec='$libname.ixlibrary $libname.a'
15008     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15009     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'
15010     ;;
15011   esac
15012   ;;
15013
15014 beos*)
15015   library_names_spec='$libname$shared_ext'
15016   dynamic_linker="$host_os ld.so"
15017   shlibpath_var=LIBRARY_PATH
15018   ;;
15019
15020 bsdi[45]*)
15021   version_type=linux # correct to gnu/linux during the next big refactor
15022   need_version=no
15023   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15024   soname_spec='$libname$release$shared_ext$major'
15025   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15026   shlibpath_var=LD_LIBRARY_PATH
15027   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15028   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15029   # the default ld.so.conf also contains /usr/contrib/lib and
15030   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15031   # libtool to hard-code these into programs
15032   ;;
15033
15034 cygwin* | mingw* | pw32* | cegcc*)
15035   version_type=windows
15036   shrext_cmds=.dll
15037   need_version=no
15038   need_lib_prefix=no
15039
15040   case $GCC,$cc_basename in
15041   yes,*)
15042     # gcc
15043     library_names_spec='$libname.dll.a'
15044     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15045     postinstall_cmds='base_file=`basename \$file`~
15046       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15047       dldir=$destdir/`dirname \$dlpath`~
15048       test -d \$dldir || mkdir -p \$dldir~
15049       $install_prog $dir/$dlname \$dldir/$dlname~
15050       chmod a+x \$dldir/$dlname~
15051       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15052         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15053       fi'
15054     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15055       dlpath=$dir/\$dldll~
15056        $RM \$dlpath'
15057     shlibpath_overrides_runpath=yes
15058
15059     case $host_os in
15060     cygwin*)
15061       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15062       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15063
15064       ;;
15065     mingw* | cegcc*)
15066       # MinGW DLLs use traditional 'lib' prefix
15067       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15068       ;;
15069     pw32*)
15070       # pw32 DLLs use 'pw' prefix rather than 'lib'
15071       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15072       ;;
15073     esac
15074     dynamic_linker='Win32 ld.exe'
15075     ;;
15076
15077   *,cl*)
15078     # Native MSVC
15079     libname_spec='$name'
15080     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15081     library_names_spec='$libname.dll.lib'
15082
15083     case $build_os in
15084     mingw*)
15085       sys_lib_search_path_spec=
15086       lt_save_ifs=$IFS
15087       IFS=';'
15088       for lt_path in $LIB
15089       do
15090         IFS=$lt_save_ifs
15091         # Let DOS variable expansion print the short 8.3 style file name.
15092         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15093         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15094       done
15095       IFS=$lt_save_ifs
15096       # Convert to MSYS style.
15097       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15098       ;;
15099     cygwin*)
15100       # Convert to unix form, then to dos form, then back to unix form
15101       # but this time dos style (no spaces!) so that the unix form looks
15102       # like /cygdrive/c/PROGRA~1:/cygdr...
15103       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15104       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15105       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15106       ;;
15107     *)
15108       sys_lib_search_path_spec=$LIB
15109       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15110         # It is most probably a Windows format PATH.
15111         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15112       else
15113         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15114       fi
15115       # FIXME: find the short name or the path components, as spaces are
15116       # common. (e.g. "Program Files" -> "PROGRA~1")
15117       ;;
15118     esac
15119
15120     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15121     postinstall_cmds='base_file=`basename \$file`~
15122       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15123       dldir=$destdir/`dirname \$dlpath`~
15124       test -d \$dldir || mkdir -p \$dldir~
15125       $install_prog $dir/$dlname \$dldir/$dlname'
15126     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15127       dlpath=$dir/\$dldll~
15128        $RM \$dlpath'
15129     shlibpath_overrides_runpath=yes
15130     dynamic_linker='Win32 link.exe'
15131     ;;
15132
15133   *)
15134     # Assume MSVC wrapper
15135     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15136     dynamic_linker='Win32 ld.exe'
15137     ;;
15138   esac
15139   # FIXME: first we should search . and the directory the executable is in
15140   shlibpath_var=PATH
15141   ;;
15142
15143 darwin* | rhapsody*)
15144   dynamic_linker="$host_os dyld"
15145   version_type=darwin
15146   need_lib_prefix=no
15147   need_version=no
15148   library_names_spec='$libname$release$versuffix$shared_ext $libname$release$major$shared_ext $libname$shared_ext'
15149   soname_spec='$libname$release$major$shared_ext'
15150   shlibpath_overrides_runpath=yes
15151   shlibpath_var=DYLD_LIBRARY_PATH
15152   shrext_cmds='`test .$module = .yes && echo .bundle || echo .dylib`'
15153
15154   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15155   ;;
15156
15157 dgux*)
15158   version_type=linux # correct to gnu/linux during the next big refactor
15159   need_lib_prefix=no
15160   need_version=no
15161   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15162   soname_spec='$libname$release$shared_ext$major'
15163   shlibpath_var=LD_LIBRARY_PATH
15164   ;;
15165
15166 freebsd* | dragonfly*)
15167   # DragonFly does not have aout.  When/if they implement a new
15168   # versioning mechanism, adjust this.
15169   if test -x /usr/bin/objformat; then
15170     objformat=`/usr/bin/objformat`
15171   else
15172     case $host_os in
15173     freebsd[23].*) objformat=aout ;;
15174     *) objformat=elf ;;
15175     esac
15176   fi
15177   # Handle Gentoo/FreeBSD as it was Linux
15178   case $host_vendor in
15179     gentoo)
15180       version_type=linux ;;
15181     *)
15182       version_type=freebsd-$objformat ;;
15183   esac
15184
15185   case $version_type in
15186     freebsd-elf*)
15187       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15188       soname_spec='$libname$release$shared_ext$major'
15189       need_version=no
15190       need_lib_prefix=no
15191       ;;
15192     freebsd-*)
15193       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15194       need_version=yes
15195       ;;
15196     linux)
15197       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15198       soname_spec='${libname}${release}${shared_ext}$major'
15199       need_lib_prefix=no
15200       need_version=no
15201       ;;
15202   esac
15203   shlibpath_var=LD_LIBRARY_PATH
15204   case $host_os in
15205   freebsd2.*)
15206     shlibpath_overrides_runpath=yes
15207     ;;
15208   freebsd3.[01]* | freebsdelf3.[01]*)
15209     shlibpath_overrides_runpath=yes
15210     hardcode_into_libs=yes
15211     ;;
15212   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15213   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15214     shlibpath_overrides_runpath=no
15215     hardcode_into_libs=yes
15216     ;;
15217   *) # from 4.6 on, and DragonFly
15218     shlibpath_overrides_runpath=yes
15219     hardcode_into_libs=yes
15220     ;;
15221   esac
15222   ;;
15223
15224 haiku*)
15225   version_type=linux # correct to gnu/linux during the next big refactor
15226   need_lib_prefix=no
15227   need_version=no
15228   dynamic_linker="$host_os runtime_loader"
15229   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15230   soname_spec='$libname$release$shared_ext$major'
15231   shlibpath_var=LIBRARY_PATH
15232   shlibpath_overrides_runpath=no
15233   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15234   hardcode_into_libs=yes
15235   ;;
15236
15237 hpux9* | hpux10* | hpux11*)
15238   # Give a soname corresponding to the major version so that dld.sl refuses to
15239   # link against other versions.
15240   version_type=sunos
15241   need_lib_prefix=no
15242   need_version=no
15243   case $host_cpu in
15244   ia64*)
15245     shrext_cmds='.so'
15246     hardcode_into_libs=yes
15247     dynamic_linker="$host_os dld.so"
15248     shlibpath_var=LD_LIBRARY_PATH
15249     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15250     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15251     soname_spec='$libname$release$shared_ext$major'
15252     if test 32 = "$HPUX_IA64_MODE"; then
15253       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15254       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
15255     else
15256       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15257       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
15258     fi
15259     ;;
15260   hppa*64*)
15261     shrext_cmds='.sl'
15262     hardcode_into_libs=yes
15263     dynamic_linker="$host_os dld.sl"
15264     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15265     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15266     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15267     soname_spec='$libname$release$shared_ext$major'
15268     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15269     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15270     ;;
15271   *)
15272     shrext_cmds='.sl'
15273     dynamic_linker="$host_os dld.sl"
15274     shlibpath_var=SHLIB_PATH
15275     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15276     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15277     soname_spec='$libname$release$shared_ext$major'
15278     ;;
15279   esac
15280   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15281   postinstall_cmds='chmod 555 $lib'
15282   # or fails outright, so override atomically:
15283   install_override_mode=555
15284   ;;
15285
15286 interix[3-9]*)
15287   version_type=linux # correct to gnu/linux during the next big refactor
15288   need_lib_prefix=no
15289   need_version=no
15290   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15291   soname_spec='$libname$release$shared_ext$major'
15292   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15293   shlibpath_var=LD_LIBRARY_PATH
15294   shlibpath_overrides_runpath=no
15295   hardcode_into_libs=yes
15296   ;;
15297
15298 irix5* | irix6* | nonstopux*)
15299   case $host_os in
15300     nonstopux*) version_type=nonstopux ;;
15301     *)
15302         if test yes = "$lt_cv_prog_gnu_ld"; then
15303                 version_type=linux # correct to gnu/linux during the next big refactor
15304         else
15305                 version_type=irix
15306         fi ;;
15307   esac
15308   need_lib_prefix=no
15309   need_version=no
15310   soname_spec='$libname$release$shared_ext$major'
15311   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
15312   case $host_os in
15313   irix5* | nonstopux*)
15314     libsuff= shlibsuff=
15315     ;;
15316   *)
15317     case $LD in # libtool.m4 will add one of these switches to LD
15318     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15319       libsuff= shlibsuff= libmagic=32-bit;;
15320     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15321       libsuff=32 shlibsuff=N32 libmagic=N32;;
15322     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15323       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15324     *) libsuff= shlibsuff= libmagic=never-match;;
15325     esac
15326     ;;
15327   esac
15328   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15329   shlibpath_overrides_runpath=no
15330   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
15331   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
15332   hardcode_into_libs=yes
15333   ;;
15334
15335 # No shared lib support for Linux oldld, aout, or coff.
15336 linux*oldld* | linux*aout* | linux*coff*)
15337   dynamic_linker=no
15338   ;;
15339
15340 linux*android*)
15341   version_type=none # Android doesn't support versioned libraries.
15342   need_lib_prefix=no
15343   need_version=no
15344   library_names_spec='$libname$release$shared_ext'
15345   soname_spec='$libname$release$shared_ext'
15346   finish_cmds=
15347   shlibpath_var=LD_LIBRARY_PATH
15348   shlibpath_overrides_runpath=yes
15349
15350   # This implies no fast_install, which is unacceptable.
15351   # Some rework will be needed to allow for fast_install
15352   # before this can be enabled.
15353   hardcode_into_libs=yes
15354
15355   dynamic_linker='Android linker'
15356   # Don't embed -rpath directories since the linker doesn't support them.
15357   hardcode_libdir_flag_spec_CXX='-L$libdir'
15358   ;;
15359
15360 # This must be glibc/ELF.
15361 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15362   version_type=linux # correct to gnu/linux during the next big refactor
15363   need_lib_prefix=no
15364   need_version=no
15365   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15366   soname_spec='$libname$release$shared_ext$major'
15367   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15368   shlibpath_var=LD_LIBRARY_PATH
15369   shlibpath_overrides_runpath=no
15370
15371   # Some binutils ld are patched to set DT_RUNPATH
15372   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15373   $as_echo_n "(cached) " >&6
15374 else
15375   lt_cv_shlibpath_overrides_runpath=no
15376     save_LDFLAGS=$LDFLAGS
15377     save_libdir=$libdir
15378     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15379          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15380     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15381 /* end confdefs.h.  */
15382
15383 int
15384 main ()
15385 {
15386
15387   ;
15388   return 0;
15389 }
15390 _ACEOF
15391 if ac_fn_cxx_try_link "$LINENO"; then :
15392   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15393   lt_cv_shlibpath_overrides_runpath=yes
15394 fi
15395 fi
15396 rm -f core conftest.err conftest.$ac_objext \
15397     conftest$ac_exeext conftest.$ac_ext
15398     LDFLAGS=$save_LDFLAGS
15399     libdir=$save_libdir
15400
15401 fi
15402
15403   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15404
15405   # This implies no fast_install, which is unacceptable.
15406   # Some rework will be needed to allow for fast_install
15407   # before this can be enabled.
15408   hardcode_into_libs=yes
15409
15410   # Ideally, we could use ldconfig to report *all* directores which are
15411   # searched for libraries, however this is still not possible.  Aside from not
15412   # being certain /sbin/ldconfig is available, command
15413   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
15414   # even though it is searched at run-time.  Try to do the best guess by
15415   # appending ld.so.conf contents (and includes) to the search path.
15416   if test -f /etc/ld.so.conf; then
15417     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' ' '`
15418     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15419   fi
15420
15421   # We used to test for /lib/ld.so.1 and disable shared libraries on
15422   # powerpc, because MkLinux only supported shared libraries with the
15423   # GNU dynamic linker.  Since this was broken with cross compilers,
15424   # most powerpc-linux boxes support dynamic linking these days and
15425   # people can always --disable-shared, the test was removed, and we
15426   # assume the GNU/Linux dynamic linker is in use.
15427   dynamic_linker='GNU/Linux ld.so'
15428   ;;
15429
15430 netbsd*)
15431   version_type=sunos
15432   need_lib_prefix=no
15433   need_version=no
15434   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15435     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15436     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15437     dynamic_linker='NetBSD (a.out) ld.so'
15438   else
15439     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15440     soname_spec='$libname$release$shared_ext$major'
15441     dynamic_linker='NetBSD ld.elf_so'
15442   fi
15443   shlibpath_var=LD_LIBRARY_PATH
15444   shlibpath_overrides_runpath=yes
15445   hardcode_into_libs=yes
15446   ;;
15447
15448 newsos6)
15449   version_type=linux # correct to gnu/linux during the next big refactor
15450   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15451   shlibpath_var=LD_LIBRARY_PATH
15452   shlibpath_overrides_runpath=yes
15453   ;;
15454
15455 *nto* | *qnx*)
15456   version_type=qnx
15457   need_lib_prefix=no
15458   need_version=no
15459   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15460   soname_spec='$libname$release$shared_ext$major'
15461   shlibpath_var=LD_LIBRARY_PATH
15462   shlibpath_overrides_runpath=no
15463   hardcode_into_libs=yes
15464   dynamic_linker='ldqnx.so'
15465   ;;
15466
15467 openbsd* | bitrig*)
15468   version_type=sunos
15469   sys_lib_dlsearch_path_spec=/usr/lib
15470   need_lib_prefix=no
15471   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
15472     need_version=no
15473   else
15474     need_version=yes
15475   fi
15476   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15477   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15478   shlibpath_var=LD_LIBRARY_PATH
15479   shlibpath_overrides_runpath=yes
15480   ;;
15481
15482 os2*)
15483   libname_spec='$name'
15484   version_type=windows
15485   shrext_cmds=.dll
15486   need_version=no
15487   need_lib_prefix=no
15488   # OS/2 can only load a DLL with a base name of 8 characters or less.
15489   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
15490     v=$($ECHO $release$versuffix | tr -d .-);
15491     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
15492     $ECHO $n$v`$shared_ext'
15493   library_names_spec='${libname}_dll.$libext'
15494   dynamic_linker='OS/2 ld.exe'
15495   shlibpath_var=BEGINLIBPATH
15496   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15497   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15498   postinstall_cmds='base_file=`basename \$file`~
15499     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
15500     dldir=$destdir/`dirname \$dlpath`~
15501     test -d \$dldir || mkdir -p \$dldir~
15502     $install_prog $dir/$dlname \$dldir/$dlname~
15503     chmod a+x \$dldir/$dlname~
15504     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15505       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15506     fi'
15507   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
15508     dlpath=$dir/\$dldll~
15509     $RM \$dlpath'
15510   ;;
15511
15512 osf3* | osf4* | osf5*)
15513   version_type=osf
15514   need_lib_prefix=no
15515   need_version=no
15516   soname_spec='$libname$release$shared_ext$major'
15517   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15518   shlibpath_var=LD_LIBRARY_PATH
15519   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15520   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15521   ;;
15522
15523 rdos*)
15524   dynamic_linker=no
15525   ;;
15526
15527 solaris*)
15528   version_type=linux # correct to gnu/linux during the next big refactor
15529   need_lib_prefix=no
15530   need_version=no
15531   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15532   soname_spec='$libname$release$shared_ext$major'
15533   shlibpath_var=LD_LIBRARY_PATH
15534   shlibpath_overrides_runpath=yes
15535   hardcode_into_libs=yes
15536   # ldd complains unless libraries are executable
15537   postinstall_cmds='chmod +x $lib'
15538   ;;
15539
15540 sunos4*)
15541   version_type=sunos
15542   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15543   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15544   shlibpath_var=LD_LIBRARY_PATH
15545   shlibpath_overrides_runpath=yes
15546   if test yes = "$with_gnu_ld"; then
15547     need_lib_prefix=no
15548   fi
15549   need_version=yes
15550   ;;
15551
15552 sysv4 | sysv4.3*)
15553   version_type=linux # correct to gnu/linux during the next big refactor
15554   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15555   soname_spec='$libname$release$shared_ext$major'
15556   shlibpath_var=LD_LIBRARY_PATH
15557   case $host_vendor in
15558     sni)
15559       shlibpath_overrides_runpath=no
15560       need_lib_prefix=no
15561       runpath_var=LD_RUN_PATH
15562       ;;
15563     siemens)
15564       need_lib_prefix=no
15565       ;;
15566     motorola)
15567       need_lib_prefix=no
15568       need_version=no
15569       shlibpath_overrides_runpath=no
15570       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15571       ;;
15572   esac
15573   ;;
15574
15575 sysv4*MP*)
15576   if test -d /usr/nec; then
15577     version_type=linux # correct to gnu/linux during the next big refactor
15578     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
15579     soname_spec='$libname$shared_ext.$major'
15580     shlibpath_var=LD_LIBRARY_PATH
15581   fi
15582   ;;
15583
15584 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15585   version_type=sco
15586   need_lib_prefix=no
15587   need_version=no
15588   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
15589   soname_spec='$libname$release$shared_ext$major'
15590   shlibpath_var=LD_LIBRARY_PATH
15591   shlibpath_overrides_runpath=yes
15592   hardcode_into_libs=yes
15593   if test yes = "$with_gnu_ld"; then
15594     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15595   else
15596     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15597     case $host_os in
15598       sco3.2v5*)
15599         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15600         ;;
15601     esac
15602   fi
15603   sys_lib_dlsearch_path_spec='/usr/lib'
15604   ;;
15605
15606 tpf*)
15607   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15608   version_type=linux # correct to gnu/linux during the next big refactor
15609   need_lib_prefix=no
15610   need_version=no
15611   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15612   shlibpath_var=LD_LIBRARY_PATH
15613   shlibpath_overrides_runpath=no
15614   hardcode_into_libs=yes
15615   ;;
15616
15617 uts4*)
15618   version_type=linux # correct to gnu/linux during the next big refactor
15619   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15620   soname_spec='$libname$release$shared_ext$major'
15621   shlibpath_var=LD_LIBRARY_PATH
15622   ;;
15623
15624 *)
15625   dynamic_linker=no
15626   ;;
15627 esac
15628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15629 $as_echo "$dynamic_linker" >&6; }
15630 test no = "$dynamic_linker" && can_build_shared=no
15631
15632 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15633 if test yes = "$GCC"; then
15634   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15635 fi
15636
15637 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
15638   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
15639 fi
15640
15641 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
15642   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
15643 fi
15644
15645 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
15646 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
15647
15648 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
15649 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
15650
15651 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
15652 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
15653
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668
15669
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682
15683
15684
15685
15686
15687
15688
15689
15690
15691
15692
15693     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15694 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15695 hardcode_action_CXX=
15696 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15697    test -n "$runpath_var_CXX" ||
15698    test yes = "$hardcode_automatic_CXX"; then
15699
15700   # We can hardcode non-existent directories.
15701   if test no != "$hardcode_direct_CXX" &&
15702      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15703      # have to relink, otherwise we might link with an installed library
15704      # when we should be linking with a yet-to-be-installed one
15705      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
15706      test no != "$hardcode_minus_L_CXX"; then
15707     # Linking always hardcodes the temporary library directory.
15708     hardcode_action_CXX=relink
15709   else
15710     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15711     hardcode_action_CXX=immediate
15712   fi
15713 else
15714   # We cannot hardcode anything, or else we can only hardcode existing
15715   # directories.
15716   hardcode_action_CXX=unsupported
15717 fi
15718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15719 $as_echo "$hardcode_action_CXX" >&6; }
15720
15721 if test relink = "$hardcode_action_CXX" ||
15722    test yes = "$inherit_rpath_CXX"; then
15723   # Fast installation is not supported
15724   enable_fast_install=no
15725 elif test yes = "$shlibpath_overrides_runpath" ||
15726      test no = "$enable_shared"; then
15727   # Fast installation is not necessary
15728   enable_fast_install=needless
15729 fi
15730
15731
15732
15733
15734
15735
15736
15737   fi # test -n "$compiler"
15738
15739   CC=$lt_save_CC
15740   CFLAGS=$lt_save_CFLAGS
15741   LDCXX=$LD
15742   LD=$lt_save_LD
15743   GCC=$lt_save_GCC
15744   with_gnu_ld=$lt_save_with_gnu_ld
15745   lt_cv_path_LDCXX=$lt_cv_path_LD
15746   lt_cv_path_LD=$lt_save_path_LD
15747   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15748   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15749 fi # test yes != "$_lt_caught_CXX_error"
15750
15751 ac_ext=c
15752 ac_cpp='$CPP $CPPFLAGS'
15753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15756
15757
15758 # Find a good install program.  We prefer a C program (faster),
15759 # so one script is as good as another.  But avoid the broken or
15760 # incompatible versions:
15761 # SysV /etc/install, /usr/sbin/install
15762 # SunOS /usr/etc/install
15763 # IRIX /sbin/install
15764 # AIX /bin/install
15765 # AmigaOS /C/install, which installs bootblocks on floppy discs
15766 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
15767 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
15768 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
15769 # OS/2's system install, which has a completely different semantic
15770 # ./install, which can be erroneously created by make from ./install.sh.
15771 # Reject install programs that cannot install multiple files.
15772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
15773 $as_echo_n "checking for a BSD-compatible install... " >&6; }
15774 if test -z "$INSTALL"; then
15775 if ${ac_cv_path_install+:} false; then :
15776   $as_echo_n "(cached) " >&6
15777 else
15778   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15779 for as_dir in $PATH
15780 do
15781   IFS=$as_save_IFS
15782   test -z "$as_dir" && as_dir=.
15783     # Account for people who put trailing slashes in PATH elements.
15784 case $as_dir/ in #((
15785   ./ | .// | /[cC]/* | \
15786   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
15787   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
15788   /usr/ucb/* ) ;;
15789   *)
15790     # OSF1 and SCO ODT 3.0 have their own names for install.
15791     # Don't use installbsd from OSF since it installs stuff as root
15792     # by default.
15793     for ac_prog in ginstall scoinst install; do
15794       for ac_exec_ext in '' $ac_executable_extensions; do
15795         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
15796           if test $ac_prog = install &&
15797             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15798             # AIX install.  It has an incompatible calling convention.
15799             :
15800           elif test $ac_prog = install &&
15801             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15802             # program-specific install script used by HP pwplus--don't use.
15803             :
15804           else
15805             rm -rf conftest.one conftest.two conftest.dir
15806             echo one > conftest.one
15807             echo two > conftest.two
15808             mkdir conftest.dir
15809             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
15810               test -s conftest.one && test -s conftest.two &&
15811               test -s conftest.dir/conftest.one &&
15812               test -s conftest.dir/conftest.two
15813             then
15814               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
15815               break 3
15816             fi
15817           fi
15818         fi
15819       done
15820     done
15821     ;;
15822 esac
15823
15824   done
15825 IFS=$as_save_IFS
15826
15827 rm -rf conftest.one conftest.two conftest.dir
15828
15829 fi
15830   if test "${ac_cv_path_install+set}" = set; then
15831     INSTALL=$ac_cv_path_install
15832   else
15833     # As a last resort, use the slow shell script.  Don't cache a
15834     # value for INSTALL within a source directory, because that will
15835     # break other packages using the cache if that directory is
15836     # removed, or if the value is a relative name.
15837     INSTALL=$ac_install_sh
15838   fi
15839 fi
15840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
15841 $as_echo "$INSTALL" >&6; }
15842
15843 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
15844 # It thinks the first close brace ends the variable substitution.
15845 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
15846
15847 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
15848
15849 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
15850
15851
15852 if test "$GCC" = yes ; then
15853                         OLDCFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wstrict-prototypes"
15854     CFLAGS="$OLDCFLAGS -fexceptions"
15855     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -fexceptions" >&5
15856 $as_echo_n "checking whether $CC accepts -fexceptions... " >&6; }
15857     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15858 /* end confdefs.h.  */
15859
15860 int
15861 main ()
15862 {
15863
15864   ;
15865   return 0;
15866 }
15867 _ACEOF
15868 if ac_fn_c_try_link "$LINENO"; then :
15869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15870 $as_echo "yes" >&6; }
15871 else
15872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15873 $as_echo "no" >&6; }; CFLAGS="$OLDCFLAGS"
15874 fi
15875 rm -f core conftest.err conftest.$ac_objext \
15876     conftest$ac_exeext conftest.$ac_ext
15877     if test "x$CXXFLAGS" = x ; then
15878     CXXFLAGS=`echo "$CFLAGS" | sed 's/ -Wmissing-prototypes -Wstrict-prototypes//'`
15879     fi
15880
15881     CFLAGS="${CFLAGS} -fno-strict-aliasing"
15882     CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing"
15883     LDFLAGS="${LDFLAGS} -fno-strict-aliasing"
15884 fi
15885
15886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15887 $as_echo_n "checking for ANSI C header files... " >&6; }
15888 if ${ac_cv_header_stdc+:} false; then :
15889   $as_echo_n "(cached) " >&6
15890 else
15891   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15892 /* end confdefs.h.  */
15893 #include <stdlib.h>
15894 #include <stdarg.h>
15895 #include <string.h>
15896 #include <float.h>
15897
15898 int
15899 main ()
15900 {
15901
15902   ;
15903   return 0;
15904 }
15905 _ACEOF
15906 if ac_fn_c_try_compile "$LINENO"; then :
15907   ac_cv_header_stdc=yes
15908 else
15909   ac_cv_header_stdc=no
15910 fi
15911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15912
15913 if test $ac_cv_header_stdc = yes; then
15914   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15915   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15916 /* end confdefs.h.  */
15917 #include <string.h>
15918
15919 _ACEOF
15920 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15921   $EGREP "memchr" >/dev/null 2>&1; then :
15922
15923 else
15924   ac_cv_header_stdc=no
15925 fi
15926 rm -f conftest*
15927
15928 fi
15929
15930 if test $ac_cv_header_stdc = yes; then
15931   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15932   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15933 /* end confdefs.h.  */
15934 #include <stdlib.h>
15935
15936 _ACEOF
15937 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15938   $EGREP "free" >/dev/null 2>&1; then :
15939
15940 else
15941   ac_cv_header_stdc=no
15942 fi
15943 rm -f conftest*
15944
15945 fi
15946
15947 if test $ac_cv_header_stdc = yes; then
15948   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15949   if test "$cross_compiling" = yes; then :
15950   :
15951 else
15952   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15953 /* end confdefs.h.  */
15954 #include <ctype.h>
15955 #include <stdlib.h>
15956 #if ((' ' & 0x0FF) == 0x020)
15957 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15958 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15959 #else
15960 # define ISLOWER(c) \
15961                    (('a' <= (c) && (c) <= 'i') \
15962                      || ('j' <= (c) && (c) <= 'r') \
15963                      || ('s' <= (c) && (c) <= 'z'))
15964 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15965 #endif
15966
15967 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15968 int
15969 main ()
15970 {
15971   int i;
15972   for (i = 0; i < 256; i++)
15973     if (XOR (islower (i), ISLOWER (i))
15974         || toupper (i) != TOUPPER (i))
15975       return 2;
15976   return 0;
15977 }
15978 _ACEOF
15979 if ac_fn_c_try_run "$LINENO"; then :
15980
15981 else
15982   ac_cv_header_stdc=no
15983 fi
15984 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15985   conftest.$ac_objext conftest.beam conftest.$ac_ext
15986 fi
15987
15988 fi
15989 fi
15990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15991 $as_echo "$ac_cv_header_stdc" >&6; }
15992 if test $ac_cv_header_stdc = yes; then
15993
15994 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15995
15996 fi
15997
15998
15999
16000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16001 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16002 if ${ac_cv_c_bigendian+:} false; then :
16003   $as_echo_n "(cached) " >&6
16004 else
16005   ac_cv_c_bigendian=unknown
16006 # See if sys/param.h defines the BYTE_ORDER macro.
16007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16008 /* end confdefs.h.  */
16009 #include <sys/types.h>
16010 #include <sys/param.h>
16011 int
16012 main ()
16013 {
16014
16015 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
16016  bogus endian macros
16017 #endif
16018   ;
16019   return 0;
16020 }
16021 _ACEOF
16022 if ac_fn_c_try_compile "$LINENO"; then :
16023   # It does; now see whether it defined to BIG_ENDIAN or not.
16024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16025 /* end confdefs.h.  */
16026 #include <sys/types.h>
16027 #include <sys/param.h>
16028 int
16029 main ()
16030 {
16031
16032 #if BYTE_ORDER != BIG_ENDIAN
16033  not big endian
16034 #endif
16035   ;
16036   return 0;
16037 }
16038 _ACEOF
16039 if ac_fn_c_try_compile "$LINENO"; then :
16040   ac_cv_c_bigendian=yes
16041 else
16042   ac_cv_c_bigendian=no
16043 fi
16044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16045 fi
16046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16047 if test $ac_cv_c_bigendian = unknown; then
16048 if test "$cross_compiling" = yes; then :
16049    echo $ac_n "cross-compiling... " 2>&6
16050 else
16051   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16052 /* end confdefs.h.  */
16053 main () {
16054   /* Are we little or big endian?  From Harbison&Steele.  */
16055   union
16056   {
16057     long l;
16058     char c[sizeof (long)];
16059   } u;
16060   u.l = 1;
16061   exit (u.c[sizeof (long) - 1] == 1);
16062 }
16063 _ACEOF
16064 if ac_fn_c_try_run "$LINENO"; then :
16065   ac_cv_c_bigendian=no
16066 else
16067   ac_cv_c_bigendian=yes
16068 fi
16069 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16070   conftest.$ac_objext conftest.beam conftest.$ac_ext
16071 fi
16072
16073 fi
16074 fi
16075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16076 $as_echo "$ac_cv_c_bigendian" >&6; }
16077 if test $ac_cv_c_bigendian = unknown; then
16078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to probe for byte ordering" >&5
16079 $as_echo_n "checking to probe for byte ordering... " >&6; }
16080
16081 cat >conftest.c <<EOF
16082 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16083 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16084 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
16085 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16086 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16087 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
16088 int main() { _ascii (); _ebcdic (); return 0; }
16089 EOF
16090  if test -f conftest.c ; then
16091      if ${CC-cc} -c conftest.c -o conftest.o && test -f conftest.o ; then
16092         if test `grep -l BIGenDianSyS conftest.o` ; then
16093            echo $ac_n ' big endian probe OK, ' 1>&6
16094            ac_cv_c_bigendian=yes
16095         fi
16096         if test `grep -l LiTTleEnDian conftest.o` ; then
16097            echo $ac_n ' little endian probe OK, ' 1>&6
16098            if test $ac_cv_c_bigendian = yes ; then
16099             ac_cv_c_bigendian=unknown;
16100            else
16101             ac_cv_c_bigendian=no
16102            fi
16103         fi
16104         echo $ac_n 'guessing bigendian ...  ' >&6
16105      fi
16106   fi
16107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16108 $as_echo "$ac_cv_c_bigendian" >&6; }
16109 fi
16110 if test $ac_cv_c_bigendian = yes; then
16111
16112 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16113
16114   BYTEORDER=4321
16115 else
16116   BYTEORDER=1234
16117 fi
16118
16119 cat >>confdefs.h <<_ACEOF
16120 #define BYTEORDER $BYTEORDER
16121 _ACEOF
16122
16123 if test $ac_cv_c_bigendian = unknown; then
16124   as_fn_error please pre-set ac_cv_c_bigendian "unknown endianess - sorry" "$LINENO" 5
16125 fi
16126
16127
16128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16129 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16130 if ${ac_cv_c_const+:} false; then :
16131   $as_echo_n "(cached) " >&6
16132 else
16133   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16134 /* end confdefs.h.  */
16135
16136 int
16137 main ()
16138 {
16139
16140 #ifndef __cplusplus
16141   /* Ultrix mips cc rejects this sort of thing.  */
16142   typedef int charset[2];
16143   const charset cs = { 0, 0 };
16144   /* SunOS 4.1.1 cc rejects this.  */
16145   char const *const *pcpcc;
16146   char **ppc;
16147   /* NEC SVR4.0.2 mips cc rejects this.  */
16148   struct point {int x, y;};
16149   static struct point const zero = {0,0};
16150   /* AIX XL C 1.02.0.0 rejects this.
16151      It does not let you subtract one const X* pointer from another in
16152      an arm of an if-expression whose if-part is not a constant
16153      expression */
16154   const char *g = "string";
16155   pcpcc = &g + (g ? g-g : 0);
16156   /* HPUX 7.0 cc rejects these. */
16157   ++pcpcc;
16158   ppc = (char**) pcpcc;
16159   pcpcc = (char const *const *) ppc;
16160   { /* SCO 3.2v4 cc rejects this sort of thing.  */
16161     char tx;
16162     char *t = &tx;
16163     char const *s = 0 ? (char *) 0 : (char const *) 0;
16164
16165     *t++ = 0;
16166     if (s) return 0;
16167   }
16168   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
16169     int x[] = {25, 17};
16170     const int *foo = &x[0];
16171     ++foo;
16172   }
16173   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16174     typedef const int *iptr;
16175     iptr p = 0;
16176     ++p;
16177   }
16178   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
16179        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16180     struct s { int j; const int *ap[3]; } bx;
16181     struct s *b = &bx; b->j = 5;
16182   }
16183   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16184     const int foo = 10;
16185     if (!foo) return 0;
16186   }
16187   return !cs[0] && !zero.x;
16188 #endif
16189
16190   ;
16191   return 0;
16192 }
16193 _ACEOF
16194 if ac_fn_c_try_compile "$LINENO"; then :
16195   ac_cv_c_const=yes
16196 else
16197   ac_cv_c_const=no
16198 fi
16199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16200 fi
16201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16202 $as_echo "$ac_cv_c_const" >&6; }
16203 if test $ac_cv_c_const = no; then
16204
16205 $as_echo "#define const /**/" >>confdefs.h
16206
16207 fi
16208
16209 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16210 if test "x$ac_cv_type_size_t" = xyes; then :
16211
16212 else
16213
16214 cat >>confdefs.h <<_ACEOF
16215 #define size_t unsigned int
16216 _ACEOF
16217
16218 fi
16219
16220 for ac_func in memmove bcopy
16221 do :
16222   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16223 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16224 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16225   cat >>confdefs.h <<_ACEOF
16226 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16227 _ACEOF
16228
16229 fi
16230 done
16231
16232
16233
16234
16235 # Check whether --with-libbsd was given.
16236 if test "${with_libbsd+set}" = set; then :
16237   withval=$with_libbsd;
16238 else
16239   with_libbsd=no
16240 fi
16241
16242 if test "x${with_libbsd}" != xno; then :
16243
16244   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for arc4random_buf in -lbsd" >&5
16245 $as_echo_n "checking for arc4random_buf in -lbsd... " >&6; }
16246 if ${ac_cv_lib_bsd_arc4random_buf+:} false; then :
16247   $as_echo_n "(cached) " >&6
16248 else
16249   ac_check_lib_save_LIBS=$LIBS
16250 LIBS="-lbsd  $LIBS"
16251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16252 /* end confdefs.h.  */
16253
16254 /* Override any GCC internal prototype to avoid an error.
16255    Use char because int might match the return type of a GCC
16256    builtin and then its argument prototype would still apply.  */
16257 #ifdef __cplusplus
16258 extern "C"
16259 #endif
16260 char arc4random_buf ();
16261 int
16262 main ()
16263 {
16264 return arc4random_buf ();
16265   ;
16266   return 0;
16267 }
16268 _ACEOF
16269 if ac_fn_c_try_link "$LINENO"; then :
16270   ac_cv_lib_bsd_arc4random_buf=yes
16271 else
16272   ac_cv_lib_bsd_arc4random_buf=no
16273 fi
16274 rm -f core conftest.err conftest.$ac_objext \
16275     conftest$ac_exeext conftest.$ac_ext
16276 LIBS=$ac_check_lib_save_LIBS
16277 fi
16278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_arc4random_buf" >&5
16279 $as_echo "$ac_cv_lib_bsd_arc4random_buf" >&6; }
16280 if test "x$ac_cv_lib_bsd_arc4random_buf" = xyes; then :
16281   cat >>confdefs.h <<_ACEOF
16282 #define HAVE_LIBBSD 1
16283 _ACEOF
16284
16285   LIBS="-lbsd $LIBS"
16286
16287 else
16288
16289     if test "x${with_libbsd}" = xyes; then :
16290
16291       as_fn_error $? "Enforced use of libbsd cannot be satisfied." "$LINENO" 5
16292
16293 fi
16294
16295 fi
16296
16297
16298 fi
16299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for arc4random_buf (BSD or libbsd)" >&5
16300 $as_echo_n "checking for arc4random_buf (BSD or libbsd)... " >&6; }
16301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16302 /* end confdefs.h.  */
16303
16304   #include <stdlib.h>  /* for arc4random_buf on BSD, for NULL */
16305   #if defined(HAVE_LIBBSD)
16306   # include <bsd/stdlib.h>
16307   #endif
16308   int main() {
16309     arc4random_buf(NULL, 0U);
16310     return 0;
16311   }
16312
16313 _ACEOF
16314 if ac_fn_c_try_link "$LINENO"; then :
16315
16316
16317 $as_echo "#define HAVE_ARC4RANDOM_BUF 1" >>confdefs.h
16318
16319     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16320 $as_echo "yes" >&6; }
16321
16322 else
16323
16324     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16325 $as_echo "no" >&6; }
16326
16327 fi
16328 rm -f core conftest.err conftest.$ac_objext \
16329     conftest$ac_exeext conftest.$ac_ext
16330
16331
16332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getrandom (Linux 3.17+, glibc 2.25+)" >&5
16333 $as_echo_n "checking for getrandom (Linux 3.17+, glibc 2.25+)... " >&6; }
16334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16335 /* end confdefs.h.  */
16336
16337   #include <stdlib.h>  /* for NULL */
16338   #include <sys/random.h>
16339   int main() {
16340     return getrandom(NULL, 0U, 0U);
16341   }
16342
16343 _ACEOF
16344 if ac_fn_c_try_compile "$LINENO"; then :
16345
16346
16347 $as_echo "#define HAVE_GETRANDOM 1" >>confdefs.h
16348
16349     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16350 $as_echo "yes" >&6; }
16351
16352 else
16353
16354     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16355 $as_echo "no" >&6; }
16356
16357     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syscall SYS_getrandom (Linux 3.17+)" >&5
16358 $as_echo_n "checking for syscall SYS_getrandom (Linux 3.17+)... " >&6; }
16359     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16360 /* end confdefs.h.  */
16361
16362       #include <stdlib.h>  /* for NULL */
16363       #include <unistd.h>  /* for syscall */
16364       #include <sys/syscall.h>  /* for SYS_getrandom */
16365       int main() {
16366         syscall(SYS_getrandom, NULL, 0, 0);
16367         return 0;
16368       }
16369
16370 _ACEOF
16371 if ac_fn_c_try_link "$LINENO"; then :
16372
16373
16374 $as_echo "#define HAVE_SYSCALL_GETRANDOM 1" >>confdefs.h
16375
16376         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16377 $as_echo "yes" >&6; }
16378
16379 else
16380
16381         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16382 $as_echo "no" >&6; }
16383
16384 fi
16385 rm -f core conftest.err conftest.$ac_objext \
16386     conftest$ac_exeext conftest.$ac_ext
16387
16388 fi
16389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16390
16391
16392 for ac_header in fcntl.h unistd.h
16393 do :
16394   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16395 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16396 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16397   cat >>confdefs.h <<_ACEOF
16398 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16399 _ACEOF
16400
16401 fi
16402
16403 done
16404
16405 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
16406 if test "x$ac_cv_type_off_t" = xyes; then :
16407
16408 else
16409
16410 cat >>confdefs.h <<_ACEOF
16411 #define off_t long int
16412 _ACEOF
16413
16414 fi
16415
16416
16417
16418
16419   for ac_header in $ac_header_list
16420 do :
16421   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16422 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16423 "
16424 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16425   cat >>confdefs.h <<_ACEOF
16426 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16427 _ACEOF
16428
16429 fi
16430
16431 done
16432
16433
16434
16435
16436
16437
16438
16439
16440 for ac_func in getpagesize
16441 do :
16442   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
16443 if test "x$ac_cv_func_getpagesize" = xyes; then :
16444   cat >>confdefs.h <<_ACEOF
16445 #define HAVE_GETPAGESIZE 1
16446 _ACEOF
16447
16448 fi
16449 done
16450
16451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
16452 $as_echo_n "checking for working mmap... " >&6; }
16453 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
16454   $as_echo_n "(cached) " >&6
16455 else
16456   if test "$cross_compiling" = yes; then :
16457   ac_cv_func_mmap_fixed_mapped=no
16458 else
16459   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16460 /* end confdefs.h.  */
16461 $ac_includes_default
16462 /* malloc might have been renamed as rpl_malloc. */
16463 #undef malloc
16464
16465 /* Thanks to Mike Haertel and Jim Avera for this test.
16466    Here is a matrix of mmap possibilities:
16467         mmap private not fixed
16468         mmap private fixed at somewhere currently unmapped
16469         mmap private fixed at somewhere already mapped
16470         mmap shared not fixed
16471         mmap shared fixed at somewhere currently unmapped
16472         mmap shared fixed at somewhere already mapped
16473    For private mappings, we should verify that changes cannot be read()
16474    back from the file, nor mmap's back from the file at a different
16475    address.  (There have been systems where private was not correctly
16476    implemented like the infamous i386 svr4.0, and systems where the
16477    VM page cache was not coherent with the file system buffer cache
16478    like early versions of FreeBSD and possibly contemporary NetBSD.)
16479    For shared mappings, we should conversely verify that changes get
16480    propagated back to all the places they're supposed to be.
16481
16482    Grep wants private fixed already mapped.
16483    The main things grep needs to know about mmap are:
16484    * does it exist and is it safe to write into the mmap'd area
16485    * how to use it (BSD variants)  */
16486
16487 #include <fcntl.h>
16488 #include <sys/mman.h>
16489
16490 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
16491 char *malloc ();
16492 #endif
16493
16494 /* This mess was copied from the GNU getpagesize.h.  */
16495 #ifndef HAVE_GETPAGESIZE
16496 # ifdef _SC_PAGESIZE
16497 #  define getpagesize() sysconf(_SC_PAGESIZE)
16498 # else /* no _SC_PAGESIZE */
16499 #  ifdef HAVE_SYS_PARAM_H
16500 #   include <sys/param.h>
16501 #   ifdef EXEC_PAGESIZE
16502 #    define getpagesize() EXEC_PAGESIZE
16503 #   else /* no EXEC_PAGESIZE */
16504 #    ifdef NBPG
16505 #     define getpagesize() NBPG * CLSIZE
16506 #     ifndef CLSIZE
16507 #      define CLSIZE 1
16508 #     endif /* no CLSIZE */
16509 #    else /* no NBPG */
16510 #     ifdef NBPC
16511 #      define getpagesize() NBPC
16512 #     else /* no NBPC */
16513 #      ifdef PAGESIZE
16514 #       define getpagesize() PAGESIZE
16515 #      endif /* PAGESIZE */
16516 #     endif /* no NBPC */
16517 #    endif /* no NBPG */
16518 #   endif /* no EXEC_PAGESIZE */
16519 #  else /* no HAVE_SYS_PARAM_H */
16520 #   define getpagesize() 8192   /* punt totally */
16521 #  endif /* no HAVE_SYS_PARAM_H */
16522 # endif /* no _SC_PAGESIZE */
16523
16524 #endif /* no HAVE_GETPAGESIZE */
16525
16526 int
16527 main ()
16528 {
16529   char *data, *data2, *data3;
16530   const char *cdata2;
16531   int i, pagesize;
16532   int fd, fd2;
16533
16534   pagesize = getpagesize ();
16535
16536   /* First, make a file with some known garbage in it. */
16537   data = (char *) malloc (pagesize);
16538   if (!data)
16539     return 1;
16540   for (i = 0; i < pagesize; ++i)
16541     *(data + i) = rand ();
16542   umask (0);
16543   fd = creat ("conftest.mmap", 0600);
16544   if (fd < 0)
16545     return 2;
16546   if (write (fd, data, pagesize) != pagesize)
16547     return 3;
16548   close (fd);
16549
16550   /* Next, check that the tail of a page is zero-filled.  File must have
16551      non-zero length, otherwise we risk SIGBUS for entire page.  */
16552   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
16553   if (fd2 < 0)
16554     return 4;
16555   cdata2 = "";
16556   if (write (fd2, cdata2, 1) != 1)
16557     return 5;
16558   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
16559   if (data2 == MAP_FAILED)
16560     return 6;
16561   for (i = 0; i < pagesize; ++i)
16562     if (*(data2 + i))
16563       return 7;
16564   close (fd2);
16565   if (munmap (data2, pagesize))
16566     return 8;
16567
16568   /* Next, try to mmap the file at a fixed address which already has
16569      something else allocated at it.  If we can, also make sure that
16570      we see the same garbage.  */
16571   fd = open ("conftest.mmap", O_RDWR);
16572   if (fd < 0)
16573     return 9;
16574   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16575                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
16576     return 10;
16577   for (i = 0; i < pagesize; ++i)
16578     if (*(data + i) != *(data2 + i))
16579       return 11;
16580
16581   /* Finally, make sure that changes to the mapped area do not
16582      percolate back to the file as seen by read().  (This is a bug on
16583      some variants of i386 svr4.0.)  */
16584   for (i = 0; i < pagesize; ++i)
16585     *(data2 + i) = *(data2 + i) + 1;
16586   data3 = (char *) malloc (pagesize);
16587   if (!data3)
16588     return 12;
16589   if (read (fd, data3, pagesize) != pagesize)
16590     return 13;
16591   for (i = 0; i < pagesize; ++i)
16592     if (*(data + i) != *(data3 + i))
16593       return 14;
16594   close (fd);
16595   return 0;
16596 }
16597 _ACEOF
16598 if ac_fn_c_try_run "$LINENO"; then :
16599   ac_cv_func_mmap_fixed_mapped=yes
16600 else
16601   ac_cv_func_mmap_fixed_mapped=no
16602 fi
16603 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16604   conftest.$ac_objext conftest.beam conftest.$ac_ext
16605 fi
16606
16607 fi
16608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
16609 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
16610 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16611
16612 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
16613
16614 fi
16615 rm -f conftest.mmap conftest.txt
16616
16617
16618 if test "$ac_cv_func_mmap_fixed_mapped" = "yes"; then
16619     FILEMAP=unixfilemap
16620 else
16621     FILEMAP=readfilemap
16622 fi
16623
16624
16625
16626 # AC_CPP_FUNC
16627 # ------------------ #
16628 # Checks to see if ANSI C99 CPP variable __func__ works.
16629 # If not, perhaps __FUNCTION__ works instead.
16630 # If not, we'll just define __func__ to "".
16631 # AC_CPP_FUNC
16632
16633    case $ac_cv_prog_cc_stdc in #(
16634   no) :
16635     ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
16636   *) :
16637     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
16638 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
16639 if ${ac_cv_prog_cc_c99+:} false; then :
16640   $as_echo_n "(cached) " >&6
16641 else
16642   ac_cv_prog_cc_c99=no
16643 ac_save_CC=$CC
16644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16645 /* end confdefs.h.  */
16646 #include <stdarg.h>
16647 #include <stdbool.h>
16648 #include <stdlib.h>
16649 #include <wchar.h>
16650 #include <stdio.h>
16651
16652 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
16653 #define debug(...) fprintf (stderr, __VA_ARGS__)
16654 #define showlist(...) puts (#__VA_ARGS__)
16655 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
16656 static void
16657 test_varargs_macros (void)
16658 {
16659   int x = 1234;
16660   int y = 5678;
16661   debug ("Flag");
16662   debug ("X = %d\n", x);
16663   showlist (The first, second, and third items.);
16664   report (x>y, "x is %d but y is %d", x, y);
16665 }
16666
16667 // Check long long types.
16668 #define BIG64 18446744073709551615ull
16669 #define BIG32 4294967295ul
16670 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
16671 #if !BIG_OK
16672   your preprocessor is broken;
16673 #endif
16674 #if BIG_OK
16675 #else
16676   your preprocessor is broken;
16677 #endif
16678 static long long int bignum = -9223372036854775807LL;
16679 static unsigned long long int ubignum = BIG64;
16680
16681 struct incomplete_array
16682 {
16683   int datasize;
16684   double data[];
16685 };
16686
16687 struct named_init {
16688   int number;
16689   const wchar_t *name;
16690   double average;
16691 };
16692
16693 typedef const char *ccp;
16694
16695 static inline int
16696 test_restrict (ccp restrict text)
16697 {
16698   // See if C++-style comments work.
16699   // Iterate through items via the restricted pointer.
16700   // Also check for declarations in for loops.
16701   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
16702     continue;
16703   return 0;
16704 }
16705
16706 // Check varargs and va_copy.
16707 static void
16708 test_varargs (const char *format, ...)
16709 {
16710   va_list args;
16711   va_start (args, format);
16712   va_list args_copy;
16713   va_copy (args_copy, args);
16714
16715   const char *str;
16716   int number;
16717   float fnumber;
16718
16719   while (*format)
16720     {
16721       switch (*format++)
16722         {
16723         case 's': // string
16724           str = va_arg (args_copy, const char *);
16725           break;
16726         case 'd': // int
16727           number = va_arg (args_copy, int);
16728           break;
16729         case 'f': // float
16730           fnumber = va_arg (args_copy, double);
16731           break;
16732         default:
16733           break;
16734         }
16735     }
16736   va_end (args_copy);
16737   va_end (args);
16738 }
16739
16740 int
16741 main ()
16742 {
16743
16744   // Check bool.
16745   _Bool success = false;
16746
16747   // Check restrict.
16748   if (test_restrict ("String literal") == 0)
16749     success = true;
16750   char *restrict newvar = "Another string";
16751
16752   // Check varargs.
16753   test_varargs ("s, d' f .", "string", 65, 34.234);
16754   test_varargs_macros ();
16755
16756   // Check flexible array members.
16757   struct incomplete_array *ia =
16758     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
16759   ia->datasize = 10;
16760   for (int i = 0; i < ia->datasize; ++i)
16761     ia->data[i] = i * 1.234;
16762
16763   // Check named initializers.
16764   struct named_init ni = {
16765     .number = 34,
16766     .name = L"Test wide string",
16767     .average = 543.34343,
16768   };
16769
16770   ni.number = 58;
16771
16772   int dynamic_array[ni.number];
16773   dynamic_array[ni.number - 1] = 543;
16774
16775   // work around unused variable warnings
16776   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
16777           || dynamic_array[ni.number - 1] != 543);
16778
16779   ;
16780   return 0;
16781 }
16782 _ACEOF
16783 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
16784 do
16785   CC="$ac_save_CC $ac_arg"
16786   if ac_fn_c_try_compile "$LINENO"; then :
16787   ac_cv_prog_cc_c99=$ac_arg
16788 fi
16789 rm -f core conftest.err conftest.$ac_objext
16790   test "x$ac_cv_prog_cc_c99" != "xno" && break
16791 done
16792 rm -f conftest.$ac_ext
16793 CC=$ac_save_CC
16794
16795 fi
16796 # AC_CACHE_VAL
16797 case "x$ac_cv_prog_cc_c99" in
16798   x)
16799     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
16800 $as_echo "none needed" >&6; } ;;
16801   xno)
16802     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
16803 $as_echo "unsupported" >&6; } ;;
16804   *)
16805     CC="$CC $ac_cv_prog_cc_c99"
16806     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
16807 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
16808 esac
16809 if test "x$ac_cv_prog_cc_c99" != xno; then :
16810   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
16811 else
16812   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
16813 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
16814 if ${ac_cv_prog_cc_c89+:} false; then :
16815   $as_echo_n "(cached) " >&6
16816 else
16817   ac_cv_prog_cc_c89=no
16818 ac_save_CC=$CC
16819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16820 /* end confdefs.h.  */
16821 #include <stdarg.h>
16822 #include <stdio.h>
16823 struct stat;
16824 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
16825 struct buf { int x; };
16826 FILE * (*rcsopen) (struct buf *, struct stat *, int);
16827 static char *e (p, i)
16828      char **p;
16829      int i;
16830 {
16831   return p[i];
16832 }
16833 static char *f (char * (*g) (char **, int), char **p, ...)
16834 {
16835   char *s;
16836   va_list v;
16837   va_start (v,p);
16838   s = g (p, va_arg (v,int));
16839   va_end (v);
16840   return s;
16841 }
16842
16843 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
16844    function prototypes and stuff, but not '\xHH' hex character constants.
16845    These don't provoke an error unfortunately, instead are silently treated
16846    as 'x'.  The following induces an error, until -std is added to get
16847    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
16848    array size at least.  It's necessary to write '\x00'==0 to get something
16849    that's true only with -std.  */
16850 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
16851
16852 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
16853    inside strings and character constants.  */
16854 #define FOO(x) 'x'
16855 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
16856
16857 int test (int i, double x);
16858 struct s1 {int (*f) (int a);};
16859 struct s2 {int (*f) (double a);};
16860 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
16861 int argc;
16862 char **argv;
16863 int
16864 main ()
16865 {
16866 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
16867   ;
16868   return 0;
16869 }
16870 _ACEOF
16871 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
16872         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
16873 do
16874   CC="$ac_save_CC $ac_arg"
16875   if ac_fn_c_try_compile "$LINENO"; then :
16876   ac_cv_prog_cc_c89=$ac_arg
16877 fi
16878 rm -f core conftest.err conftest.$ac_objext
16879   test "x$ac_cv_prog_cc_c89" != "xno" && break
16880 done
16881 rm -f conftest.$ac_ext
16882 CC=$ac_save_CC
16883
16884 fi
16885 # AC_CACHE_VAL
16886 case "x$ac_cv_prog_cc_c89" in
16887   x)
16888     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
16889 $as_echo "none needed" >&6; } ;;
16890   xno)
16891     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
16892 $as_echo "unsupported" >&6; } ;;
16893   *)
16894     CC="$CC $ac_cv_prog_cc_c89"
16895     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
16896 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
16897 esac
16898 if test "x$ac_cv_prog_cc_c89" != xno; then :
16899   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
16900 else
16901   ac_cv_prog_cc_stdc=no
16902 fi
16903
16904 fi
16905  ;;
16906 esac
16907   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
16908 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
16909   if ${ac_cv_prog_cc_stdc+:} false; then :
16910   $as_echo_n "(cached) " >&6
16911 fi
16912
16913   case $ac_cv_prog_cc_stdc in #(
16914   no) :
16915     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
16916 $as_echo "unsupported" >&6; } ;; #(
16917   '') :
16918     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
16919 $as_echo "none needed" >&6; } ;; #(
16920   *) :
16921     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
16922 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
16923 esac
16924
16925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C99-conforming __func__" >&5
16926 $as_echo_n "checking for an ANSI C99-conforming __func__... " >&6; }
16927 if ${ac_cv_cpp_func+:} false; then :
16928   $as_echo_n "(cached) " >&6
16929 else
16930   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16931 /* end confdefs.h.  */
16932
16933 int
16934 main ()
16935 {
16936 const char *foo = __func__;
16937   ;
16938   return 0;
16939 }
16940 _ACEOF
16941 if ac_fn_c_try_compile "$LINENO"; then :
16942   ac_cv_cpp_func=yes
16943 else
16944   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16945 /* end confdefs.h.  */
16946
16947 int
16948 main ()
16949 {
16950 const char *foo = __FUNCTION__;
16951   ;
16952   return 0;
16953 }
16954 _ACEOF
16955 if ac_fn_c_try_compile "$LINENO"; then :
16956   ac_cv_cpp_func=__FUNCTION__
16957 else
16958   ac_cv_cpp_func=no
16959 fi
16960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16961 fi
16962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16963 fi
16964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_func" >&5
16965 $as_echo "$ac_cv_cpp_func" >&6; }
16966 if test $ac_cv_cpp_func = __FUNCTION__; then
16967
16968 $as_echo "#define __func__ __FUNCTION__" >>confdefs.h
16969
16970 elif test $ac_cv_cpp_func = no; then
16971
16972 $as_echo "#define __func__ \"\"" >>confdefs.h
16973
16974 fi
16975
16976
16977
16978
16979 $as_echo "#define XML_NS 1" >>confdefs.h
16980
16981
16982 $as_echo "#define XML_DTD 1" >>confdefs.h
16983
16984
16985 # Check whether --enable-xml-context was given.
16986 if test "${enable_xml_context+set}" = set; then :
16987   enableval=$enable_xml_context; enable_xml_context=${enableval}
16988 fi
16989
16990 if test "x${enable_xml_context}" != "xno"; then :
16991
16992   if test "x${enable_xml_context}" == "xyes" \
16993       -o "x${enable_xml_context}" == "x"; then :
16994
16995     enable_xml_context=1024
16996
16997 fi
16998
16999 cat >>confdefs.h <<_ACEOF
17000 #define XML_CONTEXT_BYTES ${enable_xml_context}
17001 _ACEOF
17002
17003
17004 fi
17005
17006 ac_config_files="$ac_config_files Makefile expat.pc"
17007
17008 ac_config_files="$ac_config_files run.sh"
17009
17010 cat >confcache <<\_ACEOF
17011 # This file is a shell script that caches the results of configure
17012 # tests run on this system so they can be shared between configure
17013 # scripts and configure runs, see configure's option --config-cache.
17014 # It is not useful on other systems.  If it contains results you don't
17015 # want to keep, you may remove or edit it.
17016 #
17017 # config.status only pays attention to the cache file if you give it
17018 # the --recheck option to rerun configure.
17019 #
17020 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17021 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17022 # following values.
17023
17024 _ACEOF
17025
17026 # The following way of writing the cache mishandles newlines in values,
17027 # but we know of no workaround that is simple, portable, and efficient.
17028 # So, we kill variables containing newlines.
17029 # Ultrix sh set writes to stderr and can't be redirected directly,
17030 # and sets the high bit in the cache file unless we assign to the vars.
17031 (
17032   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17033     eval ac_val=\$$ac_var
17034     case $ac_val in #(
17035     *${as_nl}*)
17036       case $ac_var in #(
17037       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17038 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17039       esac
17040       case $ac_var in #(
17041       _ | IFS | as_nl) ;; #(
17042       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17043       *) { eval $ac_var=; unset $ac_var;} ;;
17044       esac ;;
17045     esac
17046   done
17047
17048   (set) 2>&1 |
17049     case $as_nl`(ac_space=' '; set) 2>&1` in #(
17050     *${as_nl}ac_space=\ *)
17051       # `set' does not quote correctly, so add quotes: double-quote
17052       # substitution turns \\\\ into \\, and sed turns \\ into \.
17053       sed -n \
17054         "s/'/'\\\\''/g;
17055           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17056       ;; #(
17057     *)
17058       # `set' quotes correctly as required by POSIX, so do not add quotes.
17059       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17060       ;;
17061     esac |
17062     sort
17063 ) |
17064   sed '
17065      /^ac_cv_env_/b end
17066      t clear
17067      :clear
17068      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17069      t end
17070      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17071      :end' >>confcache
17072 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17073   if test -w "$cache_file"; then
17074     if test "x$cache_file" != "x/dev/null"; then
17075       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17076 $as_echo "$as_me: updating cache $cache_file" >&6;}
17077       if test ! -f "$cache_file" || test -h "$cache_file"; then
17078         cat confcache >"$cache_file"
17079       else
17080         case $cache_file in #(
17081         */* | ?:*)
17082           mv -f confcache "$cache_file"$$ &&
17083           mv -f "$cache_file"$$ "$cache_file" ;; #(
17084         *)
17085           mv -f confcache "$cache_file" ;;
17086         esac
17087       fi
17088     fi
17089   else
17090     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17091 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17092   fi
17093 fi
17094 rm -f confcache
17095
17096 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17097 # Let make expand exec_prefix.
17098 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17099
17100 DEFS=-DHAVE_CONFIG_H
17101
17102 ac_libobjs=
17103 ac_ltlibobjs=
17104 U=
17105 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17106   # 1. Remove the extension, and $U if already installed.
17107   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17108   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17109   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17110   #    will be set to the directory where LIBOBJS objects are built.
17111   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17112   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17113 done
17114 LIBOBJS=$ac_libobjs
17115
17116 LTLIBOBJS=$ac_ltlibobjs
17117
17118
17119
17120 : "${CONFIG_STATUS=./config.status}"
17121 ac_write_fail=0
17122 ac_clean_files_save=$ac_clean_files
17123 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17124 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17125 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17126 as_write_fail=0
17127 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17128 #! $SHELL
17129 # Generated by $as_me.
17130 # Run this file to recreate the current configuration.
17131 # Compiler output produced by configure, useful for debugging
17132 # configure, is in config.log if it exists.
17133
17134 debug=false
17135 ac_cs_recheck=false
17136 ac_cs_silent=false
17137
17138 SHELL=\${CONFIG_SHELL-$SHELL}
17139 export SHELL
17140 _ASEOF
17141 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17142 ## -------------------- ##
17143 ## M4sh Initialization. ##
17144 ## -------------------- ##
17145
17146 # Be more Bourne compatible
17147 DUALCASE=1; export DUALCASE # for MKS sh
17148 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17149   emulate sh
17150   NULLCMD=:
17151   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17152   # is contrary to our usage.  Disable this feature.
17153   alias -g '${1+"$@"}'='"$@"'
17154   setopt NO_GLOB_SUBST
17155 else
17156   case `(set -o) 2>/dev/null` in #(
17157   *posix*) :
17158     set -o posix ;; #(
17159   *) :
17160      ;;
17161 esac
17162 fi
17163
17164
17165 as_nl='
17166 '
17167 export as_nl
17168 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17169 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17170 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17171 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17172 # Prefer a ksh shell builtin over an external printf program on Solaris,
17173 # but without wasting forks for bash or zsh.
17174 if test -z "$BASH_VERSION$ZSH_VERSION" \
17175     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17176   as_echo='print -r --'
17177   as_echo_n='print -rn --'
17178 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17179   as_echo='printf %s\n'
17180   as_echo_n='printf %s'
17181 else
17182   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17183     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17184     as_echo_n='/usr/ucb/echo -n'
17185   else
17186     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17187     as_echo_n_body='eval
17188       arg=$1;
17189       case $arg in #(
17190       *"$as_nl"*)
17191         expr "X$arg" : "X\\(.*\\)$as_nl";
17192         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17193       esac;
17194       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17195     '
17196     export as_echo_n_body
17197     as_echo_n='sh -c $as_echo_n_body as_echo'
17198   fi
17199   export as_echo_body
17200   as_echo='sh -c $as_echo_body as_echo'
17201 fi
17202
17203 # The user is always right.
17204 if test "${PATH_SEPARATOR+set}" != set; then
17205   PATH_SEPARATOR=:
17206   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17207     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17208       PATH_SEPARATOR=';'
17209   }
17210 fi
17211
17212
17213 # IFS
17214 # We need space, tab and new line, in precisely that order.  Quoting is
17215 # there to prevent editors from complaining about space-tab.
17216 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17217 # splitting by setting IFS to empty value.)
17218 IFS=" ""        $as_nl"
17219
17220 # Find who we are.  Look in the path if we contain no directory separator.
17221 as_myself=
17222 case $0 in #((
17223   *[\\/]* ) as_myself=$0 ;;
17224   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17225 for as_dir in $PATH
17226 do
17227   IFS=$as_save_IFS
17228   test -z "$as_dir" && as_dir=.
17229     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17230   done
17231 IFS=$as_save_IFS
17232
17233      ;;
17234 esac
17235 # We did not find ourselves, most probably we were run as `sh COMMAND'
17236 # in which case we are not to be found in the path.
17237 if test "x$as_myself" = x; then
17238   as_myself=$0
17239 fi
17240 if test ! -f "$as_myself"; then
17241   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17242   exit 1
17243 fi
17244
17245 # Unset variables that we do not need and which cause bugs (e.g. in
17246 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17247 # suppresses any "Segmentation fault" message there.  '((' could
17248 # trigger a bug in pdksh 5.2.14.
17249 for as_var in BASH_ENV ENV MAIL MAILPATH
17250 do eval test x\${$as_var+set} = xset \
17251   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17252 done
17253 PS1='$ '
17254 PS2='> '
17255 PS4='+ '
17256
17257 # NLS nuisances.
17258 LC_ALL=C
17259 export LC_ALL
17260 LANGUAGE=C
17261 export LANGUAGE
17262
17263 # CDPATH.
17264 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17265
17266
17267 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17268 # ----------------------------------------
17269 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17270 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17271 # script with STATUS, using 1 if that was 0.
17272 as_fn_error ()
17273 {
17274   as_status=$1; test $as_status -eq 0 && as_status=1
17275   if test "$4"; then
17276     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17277     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17278   fi
17279   $as_echo "$as_me: error: $2" >&2
17280   as_fn_exit $as_status
17281 } # as_fn_error
17282
17283
17284 # as_fn_set_status STATUS
17285 # -----------------------
17286 # Set $? to STATUS, without forking.
17287 as_fn_set_status ()
17288 {
17289   return $1
17290 } # as_fn_set_status
17291
17292 # as_fn_exit STATUS
17293 # -----------------
17294 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17295 as_fn_exit ()
17296 {
17297   set +e
17298   as_fn_set_status $1
17299   exit $1
17300 } # as_fn_exit
17301
17302 # as_fn_unset VAR
17303 # ---------------
17304 # Portably unset VAR.
17305 as_fn_unset ()
17306 {
17307   { eval $1=; unset $1;}
17308 }
17309 as_unset=as_fn_unset
17310 # as_fn_append VAR VALUE
17311 # ----------------------
17312 # Append the text in VALUE to the end of the definition contained in VAR. Take
17313 # advantage of any shell optimizations that allow amortized linear growth over
17314 # repeated appends, instead of the typical quadratic growth present in naive
17315 # implementations.
17316 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17317   eval 'as_fn_append ()
17318   {
17319     eval $1+=\$2
17320   }'
17321 else
17322   as_fn_append ()
17323   {
17324     eval $1=\$$1\$2
17325   }
17326 fi # as_fn_append
17327
17328 # as_fn_arith ARG...
17329 # ------------------
17330 # Perform arithmetic evaluation on the ARGs, and store the result in the
17331 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17332 # must be portable across $(()) and expr.
17333 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17334   eval 'as_fn_arith ()
17335   {
17336     as_val=$(( $* ))
17337   }'
17338 else
17339   as_fn_arith ()
17340   {
17341     as_val=`expr "$@" || test $? -eq 1`
17342   }
17343 fi # as_fn_arith
17344
17345
17346 if expr a : '\(a\)' >/dev/null 2>&1 &&
17347    test "X`expr 00001 : '.*\(...\)'`" = X001; then
17348   as_expr=expr
17349 else
17350   as_expr=false
17351 fi
17352
17353 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17354   as_basename=basename
17355 else
17356   as_basename=false
17357 fi
17358
17359 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17360   as_dirname=dirname
17361 else
17362   as_dirname=false
17363 fi
17364
17365 as_me=`$as_basename -- "$0" ||
17366 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17367          X"$0" : 'X\(//\)$' \| \
17368          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17369 $as_echo X/"$0" |
17370     sed '/^.*\/\([^/][^/]*\)\/*$/{
17371             s//\1/
17372             q
17373           }
17374           /^X\/\(\/\/\)$/{
17375             s//\1/
17376             q
17377           }
17378           /^X\/\(\/\).*/{
17379             s//\1/
17380             q
17381           }
17382           s/.*/./; q'`
17383
17384 # Avoid depending upon Character Ranges.
17385 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17386 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17387 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17388 as_cr_digits='0123456789'
17389 as_cr_alnum=$as_cr_Letters$as_cr_digits
17390
17391 ECHO_C= ECHO_N= ECHO_T=
17392 case `echo -n x` in #(((((
17393 -n*)
17394   case `echo 'xy\c'` in
17395   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
17396   xy)  ECHO_C='\c';;
17397   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17398        ECHO_T=' ';;
17399   esac;;
17400 *)
17401   ECHO_N='-n';;
17402 esac
17403
17404 rm -f conf$$ conf$$.exe conf$$.file
17405 if test -d conf$$.dir; then
17406   rm -f conf$$.dir/conf$$.file
17407 else
17408   rm -f conf$$.dir
17409   mkdir conf$$.dir 2>/dev/null
17410 fi
17411 if (echo >conf$$.file) 2>/dev/null; then
17412   if ln -s conf$$.file conf$$ 2>/dev/null; then
17413     as_ln_s='ln -s'
17414     # ... but there are two gotchas:
17415     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17416     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17417     # In both cases, we have to default to `cp -pR'.
17418     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17419       as_ln_s='cp -pR'
17420   elif ln conf$$.file conf$$ 2>/dev/null; then
17421     as_ln_s=ln
17422   else
17423     as_ln_s='cp -pR'
17424   fi
17425 else
17426   as_ln_s='cp -pR'
17427 fi
17428 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17429 rmdir conf$$.dir 2>/dev/null
17430
17431
17432 # as_fn_mkdir_p
17433 # -------------
17434 # Create "$as_dir" as a directory, including parents if necessary.
17435 as_fn_mkdir_p ()
17436 {
17437
17438   case $as_dir in #(
17439   -*) as_dir=./$as_dir;;
17440   esac
17441   test -d "$as_dir" || eval $as_mkdir_p || {
17442     as_dirs=
17443     while :; do
17444       case $as_dir in #(
17445       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17446       *) as_qdir=$as_dir;;
17447       esac
17448       as_dirs="'$as_qdir' $as_dirs"
17449       as_dir=`$as_dirname -- "$as_dir" ||
17450 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17451          X"$as_dir" : 'X\(//\)[^/]' \| \
17452          X"$as_dir" : 'X\(//\)$' \| \
17453          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17454 $as_echo X"$as_dir" |
17455     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17456             s//\1/
17457             q
17458           }
17459           /^X\(\/\/\)[^/].*/{
17460             s//\1/
17461             q
17462           }
17463           /^X\(\/\/\)$/{
17464             s//\1/
17465             q
17466           }
17467           /^X\(\/\).*/{
17468             s//\1/
17469             q
17470           }
17471           s/.*/./; q'`
17472       test -d "$as_dir" && break
17473     done
17474     test -z "$as_dirs" || eval "mkdir $as_dirs"
17475   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17476
17477
17478 } # as_fn_mkdir_p
17479 if mkdir -p . 2>/dev/null; then
17480   as_mkdir_p='mkdir -p "$as_dir"'
17481 else
17482   test -d ./-p && rmdir ./-p
17483   as_mkdir_p=false
17484 fi
17485
17486
17487 # as_fn_executable_p FILE
17488 # -----------------------
17489 # Test if FILE is an executable regular file.
17490 as_fn_executable_p ()
17491 {
17492   test -f "$1" && test -x "$1"
17493 } # as_fn_executable_p
17494 as_test_x='test -x'
17495 as_executable_p=as_fn_executable_p
17496
17497 # Sed expression to map a string onto a valid CPP name.
17498 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17499
17500 # Sed expression to map a string onto a valid variable name.
17501 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17502
17503
17504 exec 6>&1
17505 ## ----------------------------------- ##
17506 ## Main body of $CONFIG_STATUS script. ##
17507 ## ----------------------------------- ##
17508 _ASEOF
17509 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17510
17511 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17512 # Save the log message, to keep $0 and so on meaningful, and to
17513 # report actual input values of CONFIG_FILES etc. instead of their
17514 # values after options handling.
17515 ac_log="
17516 This file was extended by expat $as_me 2.2.1, which was
17517 generated by GNU Autoconf 2.69.  Invocation command line was
17518
17519   CONFIG_FILES    = $CONFIG_FILES
17520   CONFIG_HEADERS  = $CONFIG_HEADERS
17521   CONFIG_LINKS    = $CONFIG_LINKS
17522   CONFIG_COMMANDS = $CONFIG_COMMANDS
17523   $ $0 $@
17524
17525 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17526 "
17527
17528 _ACEOF
17529
17530 case $ac_config_files in *"
17531 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17532 esac
17533
17534 case $ac_config_headers in *"
17535 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17536 esac
17537
17538
17539 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17540 # Files that config.status was made for.
17541 config_files="$ac_config_files"
17542 config_headers="$ac_config_headers"
17543 config_commands="$ac_config_commands"
17544
17545 _ACEOF
17546
17547 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17548 ac_cs_usage="\
17549 \`$as_me' instantiates files and other configuration actions
17550 from templates according to the current configuration.  Unless the files
17551 and actions are specified as TAGs, all are instantiated by default.
17552
17553 Usage: $0 [OPTION]... [TAG]...
17554
17555   -h, --help       print this help, then exit
17556   -V, --version    print version number and configuration settings, then exit
17557       --config     print configuration, then exit
17558   -q, --quiet, --silent
17559                    do not print progress messages
17560   -d, --debug      don't remove temporary files
17561       --recheck    update $as_me by reconfiguring in the same conditions
17562       --file=FILE[:TEMPLATE]
17563                    instantiate the configuration file FILE
17564       --header=FILE[:TEMPLATE]
17565                    instantiate the configuration header FILE
17566
17567 Configuration files:
17568 $config_files
17569
17570 Configuration headers:
17571 $config_headers
17572
17573 Configuration commands:
17574 $config_commands
17575
17576 Report bugs to <expat-bugs@libexpat.org>."
17577
17578 _ACEOF
17579 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17580 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17581 ac_cs_version="\\
17582 expat config.status 2.2.1
17583 configured by $0, generated by GNU Autoconf 2.69,
17584   with options \\"\$ac_cs_config\\"
17585
17586 Copyright (C) 2012 Free Software Foundation, Inc.
17587 This config.status script is free software; the Free Software Foundation
17588 gives unlimited permission to copy, distribute and modify it."
17589
17590 ac_pwd='$ac_pwd'
17591 srcdir='$srcdir'
17592 INSTALL='$INSTALL'
17593 AWK='$AWK'
17594 test -n "\$AWK" || AWK=awk
17595 _ACEOF
17596
17597 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17598 # The default lists apply if the user does not specify any file.
17599 ac_need_defaults=:
17600 while test $# != 0
17601 do
17602   case $1 in
17603   --*=?*)
17604     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17605     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17606     ac_shift=:
17607     ;;
17608   --*=)
17609     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17610     ac_optarg=
17611     ac_shift=:
17612     ;;
17613   *)
17614     ac_option=$1
17615     ac_optarg=$2
17616     ac_shift=shift
17617     ;;
17618   esac
17619
17620   case $ac_option in
17621   # Handling of the options.
17622   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17623     ac_cs_recheck=: ;;
17624   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17625     $as_echo "$ac_cs_version"; exit ;;
17626   --config | --confi | --conf | --con | --co | --c )
17627     $as_echo "$ac_cs_config"; exit ;;
17628   --debug | --debu | --deb | --de | --d | -d )
17629     debug=: ;;
17630   --file | --fil | --fi | --f )
17631     $ac_shift
17632     case $ac_optarg in
17633     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17634     '') as_fn_error $? "missing file argument" ;;
17635     esac
17636     as_fn_append CONFIG_FILES " '$ac_optarg'"
17637     ac_need_defaults=false;;
17638   --header | --heade | --head | --hea )
17639     $ac_shift
17640     case $ac_optarg in
17641     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17642     esac
17643     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17644     ac_need_defaults=false;;
17645   --he | --h)
17646     # Conflict between --help and --header
17647     as_fn_error $? "ambiguous option: \`$1'
17648 Try \`$0 --help' for more information.";;
17649   --help | --hel | -h )
17650     $as_echo "$ac_cs_usage"; exit ;;
17651   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17652   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17653     ac_cs_silent=: ;;
17654
17655   # This is an error.
17656   -*) as_fn_error $? "unrecognized option: \`$1'
17657 Try \`$0 --help' for more information." ;;
17658
17659   *) as_fn_append ac_config_targets " $1"
17660      ac_need_defaults=false ;;
17661
17662   esac
17663   shift
17664 done
17665
17666 ac_configure_extra_args=
17667
17668 if $ac_cs_silent; then
17669   exec 6>/dev/null
17670   ac_configure_extra_args="$ac_configure_extra_args --silent"
17671 fi
17672
17673 _ACEOF
17674 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17675 if \$ac_cs_recheck; then
17676   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17677   shift
17678   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17679   CONFIG_SHELL='$SHELL'
17680   export CONFIG_SHELL
17681   exec "\$@"
17682 fi
17683
17684 _ACEOF
17685 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17686 exec 5>>config.log
17687 {
17688   echo
17689   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17690 ## Running $as_me. ##
17691 _ASBOX
17692   $as_echo "$ac_log"
17693 } >&5
17694
17695 _ACEOF
17696 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17697 #
17698 # INIT-COMMANDS
17699 #
17700
17701
17702 # The HP-UX ksh and POSIX shell print the target directory to stdout
17703 # if CDPATH is set.
17704 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17705
17706 sed_quote_subst='$sed_quote_subst'
17707 double_quote_subst='$double_quote_subst'
17708 delay_variable_subst='$delay_variable_subst'
17709 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
17710 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17711 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17712 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17713 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17714 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17715 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17716 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17717 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17718 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
17719 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17720 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17721 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17722 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17723 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17724 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17725 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17726 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17727 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17728 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17729 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17730 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17731 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17732 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17733 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17734 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17735 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17736 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17737 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17738 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17739 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17740 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17741 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17742 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17743 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17744 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17745 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17746 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17747 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17748 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17749 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17750 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17751 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17752 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17753 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17754 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17755 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17756 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17757 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17758 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17759 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17760 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17761 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17762 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17763 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17764 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17765 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17766 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
17767 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17768 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"`'
17769 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
17770 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17771 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17772 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
17773 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17774 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17775 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17776 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17777 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17778 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17779 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17780 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17781 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17782 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17783 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17784 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17785 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17786 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17787 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17788 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17789 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17790 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17791 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17792 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17793 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17794 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17795 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17796 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17797 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17798 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17799 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17800 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17801 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17802 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17803 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17804 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17805 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17806 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17807 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17808 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17809 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17810 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17811 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17812 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17813 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17814 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17815 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17816 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17817 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17818 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17819 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17820 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17821 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17822 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17823 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17824 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17825 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17826 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17827 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17828 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17829 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17830 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17831 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17832 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17833 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17834 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17835 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17836 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17837 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
17838 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
17839 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17840 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17841 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17842 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17843 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17844 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17845 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17846 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17847 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17848 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17849 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17850 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17851 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17852 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17853 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17854 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17855 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17856 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17857 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17858 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17859 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17860 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17861 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17862 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17863 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17864 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17865 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17866 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17867 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17868 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17869 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17870 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17871 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17872 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17873 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17874 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17875 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17876 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17877 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17878 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17879 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17880 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17881 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17882 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17883 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17884 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17885 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17886 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17887 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17888 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17889 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17890 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17891 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17892 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17893 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17894 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17895 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17896 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17897 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17898 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17899
17900 LTCC='$LTCC'
17901 LTCFLAGS='$LTCFLAGS'
17902 compiler='$compiler_DEFAULT'
17903
17904 # A function that is used when there is no print builtin or printf.
17905 func_fallback_echo ()
17906 {
17907   eval 'cat <<_LTECHO_EOF
17908 \$1
17909 _LTECHO_EOF'
17910 }
17911
17912 # Quote evaled strings.
17913 for var in AS \
17914 DLLTOOL \
17915 OBJDUMP \
17916 SHELL \
17917 ECHO \
17918 PATH_SEPARATOR \
17919 SED \
17920 GREP \
17921 EGREP \
17922 FGREP \
17923 LD \
17924 NM \
17925 LN_S \
17926 lt_SP2NL \
17927 lt_NL2SP \
17928 reload_flag \
17929 deplibs_check_method \
17930 file_magic_cmd \
17931 file_magic_glob \
17932 want_nocaseglob \
17933 sharedlib_from_linklib_cmd \
17934 AR \
17935 AR_FLAGS \
17936 archiver_list_spec \
17937 STRIP \
17938 RANLIB \
17939 CC \
17940 CFLAGS \
17941 compiler \
17942 lt_cv_sys_global_symbol_pipe \
17943 lt_cv_sys_global_symbol_to_cdecl \
17944 lt_cv_sys_global_symbol_to_import \
17945 lt_cv_sys_global_symbol_to_c_name_address \
17946 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17947 lt_cv_nm_interface \
17948 nm_file_list_spec \
17949 lt_cv_truncate_bin \
17950 lt_prog_compiler_no_builtin_flag \
17951 lt_prog_compiler_pic \
17952 lt_prog_compiler_wl \
17953 lt_prog_compiler_static \
17954 lt_cv_prog_compiler_c_o \
17955 need_locks \
17956 MANIFEST_TOOL \
17957 DSYMUTIL \
17958 NMEDIT \
17959 LIPO \
17960 OTOOL \
17961 OTOOL64 \
17962 shrext_cmds \
17963 export_dynamic_flag_spec \
17964 whole_archive_flag_spec \
17965 compiler_needs_object \
17966 with_gnu_ld \
17967 allow_undefined_flag \
17968 no_undefined_flag \
17969 hardcode_libdir_flag_spec \
17970 hardcode_libdir_separator \
17971 exclude_expsyms \
17972 include_expsyms \
17973 file_list_spec \
17974 variables_saved_for_relink \
17975 libname_spec \
17976 library_names_spec \
17977 soname_spec \
17978 install_override_mode \
17979 finish_eval \
17980 old_striplib \
17981 striplib \
17982 compiler_lib_search_dirs \
17983 predep_objects \
17984 postdep_objects \
17985 predeps \
17986 postdeps \
17987 compiler_lib_search_path \
17988 LD_CXX \
17989 reload_flag_CXX \
17990 compiler_CXX \
17991 lt_prog_compiler_no_builtin_flag_CXX \
17992 lt_prog_compiler_pic_CXX \
17993 lt_prog_compiler_wl_CXX \
17994 lt_prog_compiler_static_CXX \
17995 lt_cv_prog_compiler_c_o_CXX \
17996 export_dynamic_flag_spec_CXX \
17997 whole_archive_flag_spec_CXX \
17998 compiler_needs_object_CXX \
17999 with_gnu_ld_CXX \
18000 allow_undefined_flag_CXX \
18001 no_undefined_flag_CXX \
18002 hardcode_libdir_flag_spec_CXX \
18003 hardcode_libdir_separator_CXX \
18004 exclude_expsyms_CXX \
18005 include_expsyms_CXX \
18006 file_list_spec_CXX \
18007 compiler_lib_search_dirs_CXX \
18008 predep_objects_CXX \
18009 postdep_objects_CXX \
18010 predeps_CXX \
18011 postdeps_CXX \
18012 compiler_lib_search_path_CXX; do
18013     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18014     *[\\\\\\\`\\"\\\$]*)
18015       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18016       ;;
18017     *)
18018       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18019       ;;
18020     esac
18021 done
18022
18023 # Double-quote double-evaled strings.
18024 for var in reload_cmds \
18025 old_postinstall_cmds \
18026 old_postuninstall_cmds \
18027 old_archive_cmds \
18028 extract_expsyms_cmds \
18029 old_archive_from_new_cmds \
18030 old_archive_from_expsyms_cmds \
18031 archive_cmds \
18032 archive_expsym_cmds \
18033 module_cmds \
18034 module_expsym_cmds \
18035 export_symbols_cmds \
18036 prelink_cmds \
18037 postlink_cmds \
18038 postinstall_cmds \
18039 postuninstall_cmds \
18040 finish_cmds \
18041 sys_lib_search_path_spec \
18042 configure_time_dlsearch_path \
18043 configure_time_lt_sys_library_path \
18044 reload_cmds_CXX \
18045 old_archive_cmds_CXX \
18046 old_archive_from_new_cmds_CXX \
18047 old_archive_from_expsyms_cmds_CXX \
18048 archive_cmds_CXX \
18049 archive_expsym_cmds_CXX \
18050 module_cmds_CXX \
18051 module_expsym_cmds_CXX \
18052 export_symbols_cmds_CXX \
18053 prelink_cmds_CXX \
18054 postlink_cmds_CXX; do
18055     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18056     *[\\\\\\\`\\"\\\$]*)
18057       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18058       ;;
18059     *)
18060       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18061       ;;
18062     esac
18063 done
18064
18065 ac_aux_dir='$ac_aux_dir'
18066
18067 # See if we are running on zsh, and set the options that allow our
18068 # commands through without removal of \ escapes INIT.
18069 if test -n "\${ZSH_VERSION+set}"; then
18070    setopt NO_GLOB_SUBST
18071 fi
18072
18073
18074     PACKAGE='$PACKAGE'
18075     VERSION='$VERSION'
18076     RM='$RM'
18077     ofile='$ofile'
18078
18079
18080
18081
18082
18083
18084 _ACEOF
18085
18086 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18087
18088 # Handling of arguments.
18089 for ac_config_target in $ac_config_targets
18090 do
18091   case $ac_config_target in
18092     "expat_config.h") CONFIG_HEADERS="$CONFIG_HEADERS expat_config.h" ;;
18093     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18094     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18095     "expat.pc") CONFIG_FILES="$CONFIG_FILES expat.pc" ;;
18096     "run.sh") CONFIG_FILES="$CONFIG_FILES run.sh" ;;
18097
18098   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18099   esac
18100 done
18101
18102
18103 # If the user did not use the arguments to specify the items to instantiate,
18104 # then the envvar interface is used.  Set only those that are not.
18105 # We use the long form for the default assignment because of an extremely
18106 # bizarre bug on SunOS 4.1.3.
18107 if $ac_need_defaults; then
18108   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18109   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18110   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18111 fi
18112
18113 # Have a temporary directory for convenience.  Make it in the build tree
18114 # simply because there is no reason against having it here, and in addition,
18115 # creating and moving files from /tmp can sometimes cause problems.
18116 # Hook for its removal unless debugging.
18117 # Note that there is a small window in which the directory will not be cleaned:
18118 # after its creation but before its name has been assigned to `$tmp'.
18119 $debug ||
18120 {
18121   tmp= ac_tmp=
18122   trap 'exit_status=$?
18123   : "${ac_tmp:=$tmp}"
18124   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18125 ' 0
18126   trap 'as_fn_exit 1' 1 2 13 15
18127 }
18128 # Create a (secure) tmp directory for tmp files.
18129
18130 {
18131   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18132   test -d "$tmp"
18133 }  ||
18134 {
18135   tmp=./conf$$-$RANDOM
18136   (umask 077 && mkdir "$tmp")
18137 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18138 ac_tmp=$tmp
18139
18140 # Set up the scripts for CONFIG_FILES section.
18141 # No need to generate them if there are no CONFIG_FILES.
18142 # This happens for instance with `./config.status config.h'.
18143 if test -n "$CONFIG_FILES"; then
18144
18145
18146 ac_cr=`echo X | tr X '\015'`
18147 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18148 # But we know of no other shell where ac_cr would be empty at this
18149 # point, so we can use a bashism as a fallback.
18150 if test "x$ac_cr" = x; then
18151   eval ac_cr=\$\'\\r\'
18152 fi
18153 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18154 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18155   ac_cs_awk_cr='\\r'
18156 else
18157   ac_cs_awk_cr=$ac_cr
18158 fi
18159
18160 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18161 _ACEOF
18162
18163
18164 {
18165   echo "cat >conf$$subs.awk <<_ACEOF" &&
18166   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18167   echo "_ACEOF"
18168 } >conf$$subs.sh ||
18169   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18170 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18171 ac_delim='%!_!# '
18172 for ac_last_try in false false false false false :; do
18173   . ./conf$$subs.sh ||
18174     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18175
18176   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18177   if test $ac_delim_n = $ac_delim_num; then
18178     break
18179   elif $ac_last_try; then
18180     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18181   else
18182     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18183   fi
18184 done
18185 rm -f conf$$subs.sh
18186
18187 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18188 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18189 _ACEOF
18190 sed -n '
18191 h
18192 s/^/S["/; s/!.*/"]=/
18193 p
18194 g
18195 s/^[^!]*!//
18196 :repl
18197 t repl
18198 s/'"$ac_delim"'$//
18199 t delim
18200 :nl
18201 h
18202 s/\(.\{148\}\)..*/\1/
18203 t more1
18204 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18205 p
18206 n
18207 b repl
18208 :more1
18209 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18210 p
18211 g
18212 s/.\{148\}//
18213 t nl
18214 :delim
18215 h
18216 s/\(.\{148\}\)..*/\1/
18217 t more2
18218 s/["\\]/\\&/g; s/^/"/; s/$/"/
18219 p
18220 b
18221 :more2
18222 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18223 p
18224 g
18225 s/.\{148\}//
18226 t delim
18227 ' <conf$$subs.awk | sed '
18228 /^[^""]/{
18229   N
18230   s/\n//
18231 }
18232 ' >>$CONFIG_STATUS || ac_write_fail=1
18233 rm -f conf$$subs.awk
18234 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18235 _ACAWK
18236 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18237   for (key in S) S_is_set[key] = 1
18238   FS = "\a"
18239
18240 }
18241 {
18242   line = $ 0
18243   nfields = split(line, field, "@")
18244   substed = 0
18245   len = length(field[1])
18246   for (i = 2; i < nfields; i++) {
18247     key = field[i]
18248     keylen = length(key)
18249     if (S_is_set[key]) {
18250       value = S[key]
18251       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18252       len += length(value) + length(field[++i])
18253       substed = 1
18254     } else
18255       len += 1 + keylen
18256   }
18257
18258   print line
18259 }
18260
18261 _ACAWK
18262 _ACEOF
18263 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18264 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18265   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18266 else
18267   cat
18268 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18269   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18270 _ACEOF
18271
18272 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18273 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18274 # trailing colons and then remove the whole line if VPATH becomes empty
18275 # (actually we leave an empty line to preserve line numbers).
18276 if test "x$srcdir" = x.; then
18277   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
18278 h
18279 s///
18280 s/^/:/
18281 s/[      ]*$/:/
18282 s/:\$(srcdir):/:/g
18283 s/:\${srcdir}:/:/g
18284 s/:@srcdir@:/:/g
18285 s/^:*//
18286 s/:*$//
18287 x
18288 s/\(=[   ]*\).*/\1/
18289 G
18290 s/\n//
18291 s/^[^=]*=[       ]*$//
18292 }'
18293 fi
18294
18295 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18296 fi # test -n "$CONFIG_FILES"
18297
18298 # Set up the scripts for CONFIG_HEADERS section.
18299 # No need to generate them if there are no CONFIG_HEADERS.
18300 # This happens for instance with `./config.status Makefile'.
18301 if test -n "$CONFIG_HEADERS"; then
18302 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18303 BEGIN {
18304 _ACEOF
18305
18306 # Transform confdefs.h into an awk script `defines.awk', embedded as
18307 # here-document in config.status, that substitutes the proper values into
18308 # config.h.in to produce config.h.
18309
18310 # Create a delimiter string that does not exist in confdefs.h, to ease
18311 # handling of long lines.
18312 ac_delim='%!_!# '
18313 for ac_last_try in false false :; do
18314   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18315   if test -z "$ac_tt"; then
18316     break
18317   elif $ac_last_try; then
18318     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18319   else
18320     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18321   fi
18322 done
18323
18324 # For the awk script, D is an array of macro values keyed by name,
18325 # likewise P contains macro parameters if any.  Preserve backslash
18326 # newline sequences.
18327
18328 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18329 sed -n '
18330 s/.\{148\}/&'"$ac_delim"'/g
18331 t rset
18332 :rset
18333 s/^[     ]*#[    ]*define[       ][      ]*/ /
18334 t def
18335 d
18336 :def
18337 s/\\$//
18338 t bsnl
18339 s/["\\]/\\&/g
18340 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18341 D["\1"]=" \3"/p
18342 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
18343 d
18344 :bsnl
18345 s/["\\]/\\&/g
18346 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18347 D["\1"]=" \3\\\\\\n"\\/p
18348 t cont
18349 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18350 t cont
18351 d
18352 :cont
18353 n
18354 s/.\{148\}/&'"$ac_delim"'/g
18355 t clear
18356 :clear
18357 s/\\$//
18358 t bsnlc
18359 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18360 d
18361 :bsnlc
18362 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18363 b cont
18364 ' <confdefs.h | sed '
18365 s/'"$ac_delim"'/"\\\
18366 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18367
18368 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18369   for (key in D) D_is_set[key] = 1
18370   FS = "\a"
18371 }
18372 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18373   line = \$ 0
18374   split(line, arg, " ")
18375   if (arg[1] == "#") {
18376     defundef = arg[2]
18377     mac1 = arg[3]
18378   } else {
18379     defundef = substr(arg[1], 2)
18380     mac1 = arg[2]
18381   }
18382   split(mac1, mac2, "(") #)
18383   macro = mac2[1]
18384   prefix = substr(line, 1, index(line, defundef) - 1)
18385   if (D_is_set[macro]) {
18386     # Preserve the white space surrounding the "#".
18387     print prefix "define", macro P[macro] D[macro]
18388     next
18389   } else {
18390     # Replace #undef with comments.  This is necessary, for example,
18391     # in the case of _POSIX_SOURCE, which is predefined and required
18392     # on some systems where configure will not decide to define it.
18393     if (defundef == "undef") {
18394       print "/*", prefix defundef, macro, "*/"
18395       next
18396     }
18397   }
18398 }
18399 { print }
18400 _ACAWK
18401 _ACEOF
18402 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18403   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18404 fi # test -n "$CONFIG_HEADERS"
18405
18406
18407 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18408 shift
18409 for ac_tag
18410 do
18411   case $ac_tag in
18412   :[FHLC]) ac_mode=$ac_tag; continue;;
18413   esac
18414   case $ac_mode$ac_tag in
18415   :[FHL]*:*);;
18416   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18417   :[FH]-) ac_tag=-:-;;
18418   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18419   esac
18420   ac_save_IFS=$IFS
18421   IFS=:
18422   set x $ac_tag
18423   IFS=$ac_save_IFS
18424   shift
18425   ac_file=$1
18426   shift
18427
18428   case $ac_mode in
18429   :L) ac_source=$1;;
18430   :[FH])
18431     ac_file_inputs=
18432     for ac_f
18433     do
18434       case $ac_f in
18435       -) ac_f="$ac_tmp/stdin";;
18436       *) # Look for the file first in the build tree, then in the source tree
18437          # (if the path is not absolute).  The absolute path cannot be DOS-style,
18438          # because $ac_f cannot contain `:'.
18439          test -f "$ac_f" ||
18440            case $ac_f in
18441            [\\/$]*) false;;
18442            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18443            esac ||
18444            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18445       esac
18446       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18447       as_fn_append ac_file_inputs " '$ac_f'"
18448     done
18449
18450     # Let's still pretend it is `configure' which instantiates (i.e., don't
18451     # use $as_me), people would be surprised to read:
18452     #    /* config.h.  Generated by config.status.  */
18453     configure_input='Generated from '`
18454           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18455         `' by configure.'
18456     if test x"$ac_file" != x-; then
18457       configure_input="$ac_file.  $configure_input"
18458       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18459 $as_echo "$as_me: creating $ac_file" >&6;}
18460     fi
18461     # Neutralize special characters interpreted by sed in replacement strings.
18462     case $configure_input in #(
18463     *\&* | *\|* | *\\* )
18464        ac_sed_conf_input=`$as_echo "$configure_input" |
18465        sed 's/[\\\\&|]/\\\\&/g'`;; #(
18466     *) ac_sed_conf_input=$configure_input;;
18467     esac
18468
18469     case $ac_tag in
18470     *:-:* | *:-) cat >"$ac_tmp/stdin" \
18471       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18472     esac
18473     ;;
18474   esac
18475
18476   ac_dir=`$as_dirname -- "$ac_file" ||
18477 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18478          X"$ac_file" : 'X\(//\)[^/]' \| \
18479          X"$ac_file" : 'X\(//\)$' \| \
18480          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18481 $as_echo X"$ac_file" |
18482     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18483             s//\1/
18484             q
18485           }
18486           /^X\(\/\/\)[^/].*/{
18487             s//\1/
18488             q
18489           }
18490           /^X\(\/\/\)$/{
18491             s//\1/
18492             q
18493           }
18494           /^X\(\/\).*/{
18495             s//\1/
18496             q
18497           }
18498           s/.*/./; q'`
18499   as_dir="$ac_dir"; as_fn_mkdir_p
18500   ac_builddir=.
18501
18502 case "$ac_dir" in
18503 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18504 *)
18505   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18506   # A ".." for each directory in $ac_dir_suffix.
18507   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18508   case $ac_top_builddir_sub in
18509   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18510   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18511   esac ;;
18512 esac
18513 ac_abs_top_builddir=$ac_pwd
18514 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18515 # for backward compatibility:
18516 ac_top_builddir=$ac_top_build_prefix
18517
18518 case $srcdir in
18519   .)  # We are building in place.
18520     ac_srcdir=.
18521     ac_top_srcdir=$ac_top_builddir_sub
18522     ac_abs_top_srcdir=$ac_pwd ;;
18523   [\\/]* | ?:[\\/]* )  # Absolute name.
18524     ac_srcdir=$srcdir$ac_dir_suffix;
18525     ac_top_srcdir=$srcdir
18526     ac_abs_top_srcdir=$srcdir ;;
18527   *) # Relative name.
18528     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18529     ac_top_srcdir=$ac_top_build_prefix$srcdir
18530     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18531 esac
18532 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18533
18534
18535   case $ac_mode in
18536   :F)
18537   #
18538   # CONFIG_FILE
18539   #
18540
18541   case $INSTALL in
18542   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18543   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18544   esac
18545 _ACEOF
18546
18547 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18548 # If the template does not know about datarootdir, expand it.
18549 # FIXME: This hack should be removed a few years after 2.60.
18550 ac_datarootdir_hack=; ac_datarootdir_seen=
18551 ac_sed_dataroot='
18552 /datarootdir/ {
18553   p
18554   q
18555 }
18556 /@datadir@/p
18557 /@docdir@/p
18558 /@infodir@/p
18559 /@localedir@/p
18560 /@mandir@/p'
18561 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18562 *datarootdir*) ac_datarootdir_seen=yes;;
18563 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18564   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18565 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18566 _ACEOF
18567 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18568   ac_datarootdir_hack='
18569   s&@datadir@&$datadir&g
18570   s&@docdir@&$docdir&g
18571   s&@infodir@&$infodir&g
18572   s&@localedir@&$localedir&g
18573   s&@mandir@&$mandir&g
18574   s&\\\${datarootdir}&$datarootdir&g' ;;
18575 esac
18576 _ACEOF
18577
18578 # Neutralize VPATH when `$srcdir' = `.'.
18579 # Shell code in configure.ac might set extrasub.
18580 # FIXME: do we really want to maintain this feature?
18581 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18582 ac_sed_extra="$ac_vpsub
18583 $extrasub
18584 _ACEOF
18585 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18586 :t
18587 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18588 s|@configure_input@|$ac_sed_conf_input|;t t
18589 s&@top_builddir@&$ac_top_builddir_sub&;t t
18590 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18591 s&@srcdir@&$ac_srcdir&;t t
18592 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18593 s&@top_srcdir@&$ac_top_srcdir&;t t
18594 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18595 s&@builddir@&$ac_builddir&;t t
18596 s&@abs_builddir@&$ac_abs_builddir&;t t
18597 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18598 s&@INSTALL@&$ac_INSTALL&;t t
18599 $ac_datarootdir_hack
18600 "
18601 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18602   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18603
18604 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18605   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18606   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
18607       "$ac_tmp/out"`; test -z "$ac_out"; } &&
18608   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18609 which seems to be undefined.  Please make sure it is defined" >&5
18610 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18611 which seems to be undefined.  Please make sure it is defined" >&2;}
18612
18613   rm -f "$ac_tmp/stdin"
18614   case $ac_file in
18615   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18616   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18617   esac \
18618   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18619  ;;
18620   :H)
18621   #
18622   # CONFIG_HEADER
18623   #
18624   if test x"$ac_file" != x-; then
18625     {
18626       $as_echo "/* $configure_input  */" \
18627       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18628     } >"$ac_tmp/config.h" \
18629       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18630     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18631       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18632 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18633     else
18634       rm -f "$ac_file"
18635       mv "$ac_tmp/config.h" "$ac_file" \
18636         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18637     fi
18638   else
18639     $as_echo "/* $configure_input  */" \
18640       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18641       || as_fn_error $? "could not create -" "$LINENO" 5
18642   fi
18643  ;;
18644
18645   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18646 $as_echo "$as_me: executing $ac_file commands" >&6;}
18647  ;;
18648   esac
18649
18650
18651   case $ac_file$ac_mode in
18652     "libtool":C)
18653
18654     # See if we are running on zsh, and set the options that allow our
18655     # commands through without removal of \ escapes.
18656     if test -n "${ZSH_VERSION+set}"; then
18657       setopt NO_GLOB_SUBST
18658     fi
18659
18660     cfgfile=${ofile}T
18661     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18662     $RM "$cfgfile"
18663
18664     cat <<_LT_EOF >> "$cfgfile"
18665 #! $SHELL
18666 # Generated automatically by $as_me ($PACKAGE) $VERSION
18667 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18668 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18669
18670 # Provide generalized library-building support services.
18671 # Written by Gordon Matzigkeit, 1996
18672
18673 # Copyright (C) 2014 Free Software Foundation, Inc.
18674 # This is free software; see the source for copying conditions.  There is NO
18675 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18676
18677 # GNU Libtool is free software; you can redistribute it and/or modify
18678 # it under the terms of the GNU General Public License as published by
18679 # the Free Software Foundation; either version 2 of of the License, or
18680 # (at your option) any later version.
18681 #
18682 # As a special exception to the GNU General Public License, if you
18683 # distribute this file as part of a program or library that is built
18684 # using GNU Libtool, you may include this file under the  same
18685 # distribution terms that you use for the rest of that program.
18686 #
18687 # GNU Libtool is distributed in the hope that it will be useful, but
18688 # WITHOUT ANY WARRANTY; without even the implied warranty of
18689 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18690 # GNU General Public License for more details.
18691 #
18692 # You should have received a copy of the GNU General Public License
18693 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
18694
18695
18696 # The names of the tagged configurations supported by this script.
18697 available_tags='CXX '
18698
18699 # Configured defaults for sys_lib_dlsearch_path munging.
18700 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
18701
18702 # ### BEGIN LIBTOOL CONFIG
18703
18704 # Assembler program.
18705 AS=$lt_AS
18706
18707 # DLL creation program.
18708 DLLTOOL=$lt_DLLTOOL
18709
18710 # Object dumper program.
18711 OBJDUMP=$lt_OBJDUMP
18712
18713 # Which release of libtool.m4 was used?
18714 macro_version=$macro_version
18715 macro_revision=$macro_revision
18716
18717 # Whether or not to build shared libraries.
18718 build_libtool_libs=$enable_shared
18719
18720 # Whether or not to build static libraries.
18721 build_old_libs=$enable_static
18722
18723 # What type of objects to build.
18724 pic_mode=$pic_mode
18725
18726 # Whether or not to optimize for fast installation.
18727 fast_install=$enable_fast_install
18728
18729 # Shared archive member basename,for filename based shared library versioning on AIX.
18730 shared_archive_member_spec=$shared_archive_member_spec
18731
18732 # Shell to use when invoking shell scripts.
18733 SHELL=$lt_SHELL
18734
18735 # An echo program that protects backslashes.
18736 ECHO=$lt_ECHO
18737
18738 # The PATH separator for the build system.
18739 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18740
18741 # The host system.
18742 host_alias=$host_alias
18743 host=$host
18744 host_os=$host_os
18745
18746 # The build system.
18747 build_alias=$build_alias
18748 build=$build
18749 build_os=$build_os
18750
18751 # A sed program that does not truncate output.
18752 SED=$lt_SED
18753
18754 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18755 Xsed="\$SED -e 1s/^X//"
18756
18757 # A grep program that handles long lines.
18758 GREP=$lt_GREP
18759
18760 # An ERE matcher.
18761 EGREP=$lt_EGREP
18762
18763 # A literal string matcher.
18764 FGREP=$lt_FGREP
18765
18766 # A BSD- or MS-compatible name lister.
18767 NM=$lt_NM
18768
18769 # Whether we need soft or hard links.
18770 LN_S=$lt_LN_S
18771
18772 # What is the maximum length of a command?
18773 max_cmd_len=$max_cmd_len
18774
18775 # Object file suffix (normally "o").
18776 objext=$ac_objext
18777
18778 # Executable file suffix (normally "").
18779 exeext=$exeext
18780
18781 # whether the shell understands "unset".
18782 lt_unset=$lt_unset
18783
18784 # turn spaces into newlines.
18785 SP2NL=$lt_lt_SP2NL
18786
18787 # turn newlines into spaces.
18788 NL2SP=$lt_lt_NL2SP
18789
18790 # convert \$build file names to \$host format.
18791 to_host_file_cmd=$lt_cv_to_host_file_cmd
18792
18793 # convert \$build files to toolchain format.
18794 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18795
18796 # Method to check whether dependent libraries are shared objects.
18797 deplibs_check_method=$lt_deplibs_check_method
18798
18799 # Command to use when deplibs_check_method = "file_magic".
18800 file_magic_cmd=$lt_file_magic_cmd
18801
18802 # How to find potential files when deplibs_check_method = "file_magic".
18803 file_magic_glob=$lt_file_magic_glob
18804
18805 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18806 want_nocaseglob=$lt_want_nocaseglob
18807
18808 # Command to associate shared and link libraries.
18809 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18810
18811 # The archiver.
18812 AR=$lt_AR
18813
18814 # Flags to create an archive.
18815 AR_FLAGS=$lt_AR_FLAGS
18816
18817 # How to feed a file listing to the archiver.
18818 archiver_list_spec=$lt_archiver_list_spec
18819
18820 # A symbol stripping program.
18821 STRIP=$lt_STRIP
18822
18823 # Commands used to install an old-style archive.
18824 RANLIB=$lt_RANLIB
18825 old_postinstall_cmds=$lt_old_postinstall_cmds
18826 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18827
18828 # Whether to use a lock for old archive extraction.
18829 lock_old_archive_extraction=$lock_old_archive_extraction
18830
18831 # A C compiler.
18832 LTCC=$lt_CC
18833
18834 # LTCC compiler flags.
18835 LTCFLAGS=$lt_CFLAGS
18836
18837 # Take the output of nm and produce a listing of raw symbols and C names.
18838 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18839
18840 # Transform the output of nm in a proper C declaration.
18841 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18842
18843 # Transform the output of nm into a list of symbols to manually relocate.
18844 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
18845
18846 # Transform the output of nm in a C name address pair.
18847 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18848
18849 # Transform the output of nm in a C name address pair when lib prefix is needed.
18850 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18851
18852 # The name lister interface.
18853 nm_interface=$lt_lt_cv_nm_interface
18854
18855 # Specify filename containing input files for \$NM.
18856 nm_file_list_spec=$lt_nm_file_list_spec
18857
18858 # The root where to search for dependent libraries,and where our libraries should be installed.
18859 lt_sysroot=$lt_sysroot
18860
18861 # Command to truncate a binary pipe.
18862 lt_truncate_bin=$lt_lt_cv_truncate_bin
18863
18864 # The name of the directory that contains temporary libtool files.
18865 objdir=$objdir
18866
18867 # Used to examine libraries when file_magic_cmd begins with "file".
18868 MAGIC_CMD=$MAGIC_CMD
18869
18870 # Must we lock files when doing compilation?
18871 need_locks=$lt_need_locks
18872
18873 # Manifest tool.
18874 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18875
18876 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18877 DSYMUTIL=$lt_DSYMUTIL
18878
18879 # Tool to change global to local symbols on Mac OS X.
18880 NMEDIT=$lt_NMEDIT
18881
18882 # Tool to manipulate fat objects and archives on Mac OS X.
18883 LIPO=$lt_LIPO
18884
18885 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18886 OTOOL=$lt_OTOOL
18887
18888 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18889 OTOOL64=$lt_OTOOL64
18890
18891 # Old archive suffix (normally "a").
18892 libext=$libext
18893
18894 # Shared library suffix (normally ".so").
18895 shrext_cmds=$lt_shrext_cmds
18896
18897 # The commands to extract the exported symbol list from a shared archive.
18898 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18899
18900 # Variables whose values should be saved in libtool wrapper scripts and
18901 # restored at link time.
18902 variables_saved_for_relink=$lt_variables_saved_for_relink
18903
18904 # Do we need the "lib" prefix for modules?
18905 need_lib_prefix=$need_lib_prefix
18906
18907 # Do we need a version for libraries?
18908 need_version=$need_version
18909
18910 # Library versioning type.
18911 version_type=$version_type
18912
18913 # Shared library runtime path variable.
18914 runpath_var=$runpath_var
18915
18916 # Shared library path variable.
18917 shlibpath_var=$shlibpath_var
18918
18919 # Is shlibpath searched before the hard-coded library search path?
18920 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18921
18922 # Format of library name prefix.
18923 libname_spec=$lt_libname_spec
18924
18925 # List of archive names.  First name is the real one, the rest are links.
18926 # The last name is the one that the linker finds with -lNAME
18927 library_names_spec=$lt_library_names_spec
18928
18929 # The coded name of the library, if different from the real name.
18930 soname_spec=$lt_soname_spec
18931
18932 # Permission mode override for installation of shared libraries.
18933 install_override_mode=$lt_install_override_mode
18934
18935 # Command to use after installation of a shared archive.
18936 postinstall_cmds=$lt_postinstall_cmds
18937
18938 # Command to use after uninstallation of a shared archive.
18939 postuninstall_cmds=$lt_postuninstall_cmds
18940
18941 # Commands used to finish a libtool library installation in a directory.
18942 finish_cmds=$lt_finish_cmds
18943
18944 # As "finish_cmds", except a single script fragment to be evaled but
18945 # not shown.
18946 finish_eval=$lt_finish_eval
18947
18948 # Whether we should hardcode library paths into libraries.
18949 hardcode_into_libs=$hardcode_into_libs
18950
18951 # Compile-time system search path for libraries.
18952 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18953
18954 # Detected run-time system search path for libraries.
18955 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
18956
18957 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
18958 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
18959
18960 # Whether dlopen is supported.
18961 dlopen_support=$enable_dlopen
18962
18963 # Whether dlopen of programs is supported.
18964 dlopen_self=$enable_dlopen_self
18965
18966 # Whether dlopen of statically linked programs is supported.
18967 dlopen_self_static=$enable_dlopen_self_static
18968
18969 # Commands to strip libraries.
18970 old_striplib=$lt_old_striplib
18971 striplib=$lt_striplib
18972
18973
18974 # The linker used to build libraries.
18975 LD=$lt_LD
18976
18977 # How to create reloadable object files.
18978 reload_flag=$lt_reload_flag
18979 reload_cmds=$lt_reload_cmds
18980
18981 # Commands used to build an old-style archive.
18982 old_archive_cmds=$lt_old_archive_cmds
18983
18984 # A language specific compiler.
18985 CC=$lt_compiler
18986
18987 # Is the compiler the GNU compiler?
18988 with_gcc=$GCC
18989
18990 # Compiler flag to turn off builtin functions.
18991 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18992
18993 # Additional compiler flags for building library objects.
18994 pic_flag=$lt_lt_prog_compiler_pic
18995
18996 # How to pass a linker flag through the compiler.
18997 wl=$lt_lt_prog_compiler_wl
18998
18999 # Compiler flag to prevent dynamic linking.
19000 link_static_flag=$lt_lt_prog_compiler_static
19001
19002 # Does compiler simultaneously support -c and -o options?
19003 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19004
19005 # Whether or not to add -lc for building shared libraries.
19006 build_libtool_need_lc=$archive_cmds_need_lc
19007
19008 # Whether or not to disallow shared libs when runtime libs are static.
19009 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19010
19011 # Compiler flag to allow reflexive dlopens.
19012 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19013
19014 # Compiler flag to generate shared objects directly from archives.
19015 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19016
19017 # Whether the compiler copes with passing no objects directly.
19018 compiler_needs_object=$lt_compiler_needs_object
19019
19020 # Create an old-style archive from a shared archive.
19021 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19022
19023 # Create a temporary old-style archive to link instead of a shared archive.
19024 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19025
19026 # Commands used to build a shared archive.
19027 archive_cmds=$lt_archive_cmds
19028 archive_expsym_cmds=$lt_archive_expsym_cmds
19029
19030 # Commands used to build a loadable module if different from building
19031 # a shared archive.
19032 module_cmds=$lt_module_cmds
19033 module_expsym_cmds=$lt_module_expsym_cmds
19034
19035 # Whether we are building with GNU ld or not.
19036 with_gnu_ld=$lt_with_gnu_ld
19037
19038 # Flag that allows shared libraries with undefined symbols to be built.
19039 allow_undefined_flag=$lt_allow_undefined_flag
19040
19041 # Flag that enforces no undefined symbols.
19042 no_undefined_flag=$lt_no_undefined_flag
19043
19044 # Flag to hardcode \$libdir into a binary during linking.
19045 # This must work even if \$libdir does not exist
19046 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19047
19048 # Whether we need a single "-rpath" flag with a separated argument.
19049 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19050
19051 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19052 # DIR into the resulting binary.
19053 hardcode_direct=$hardcode_direct
19054
19055 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19056 # DIR into the resulting binary and the resulting library dependency is
19057 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
19058 # library is relocated.
19059 hardcode_direct_absolute=$hardcode_direct_absolute
19060
19061 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19062 # into the resulting binary.
19063 hardcode_minus_L=$hardcode_minus_L
19064
19065 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19066 # into the resulting binary.
19067 hardcode_shlibpath_var=$hardcode_shlibpath_var
19068
19069 # Set to "yes" if building a shared library automatically hardcodes DIR
19070 # into the library and all subsequent libraries and executables linked
19071 # against it.
19072 hardcode_automatic=$hardcode_automatic
19073
19074 # Set to yes if linker adds runtime paths of dependent libraries
19075 # to runtime path list.
19076 inherit_rpath=$inherit_rpath
19077
19078 # Whether libtool must link a program against all its dependency libraries.
19079 link_all_deplibs=$link_all_deplibs
19080
19081 # Set to "yes" if exported symbols are required.
19082 always_export_symbols=$always_export_symbols
19083
19084 # The commands to list exported symbols.
19085 export_symbols_cmds=$lt_export_symbols_cmds
19086
19087 # Symbols that should not be listed in the preloaded symbols.
19088 exclude_expsyms=$lt_exclude_expsyms
19089
19090 # Symbols that must always be exported.
19091 include_expsyms=$lt_include_expsyms
19092
19093 # Commands necessary for linking programs (against libraries) with templates.
19094 prelink_cmds=$lt_prelink_cmds
19095
19096 # Commands necessary for finishing linking programs.
19097 postlink_cmds=$lt_postlink_cmds
19098
19099 # Specify filename containing input files.
19100 file_list_spec=$lt_file_list_spec
19101
19102 # How to hardcode a shared library path into an executable.
19103 hardcode_action=$hardcode_action
19104
19105 # The directories searched by this compiler when creating a shared library.
19106 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19107
19108 # Dependencies to place before and after the objects being linked to
19109 # create a shared library.
19110 predep_objects=$lt_predep_objects
19111 postdep_objects=$lt_postdep_objects
19112 predeps=$lt_predeps
19113 postdeps=$lt_postdeps
19114
19115 # The library search path used internally by the compiler when linking
19116 # a shared library.
19117 compiler_lib_search_path=$lt_compiler_lib_search_path
19118
19119 # ### END LIBTOOL CONFIG
19120
19121 _LT_EOF
19122
19123     cat <<'_LT_EOF' >> "$cfgfile"
19124
19125 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19126
19127 # func_munge_path_list VARIABLE PATH
19128 # -----------------------------------
19129 # VARIABLE is name of variable containing _space_ separated list of
19130 # directories to be munged by the contents of PATH, which is string
19131 # having a format:
19132 # "DIR[:DIR]:"
19133 #       string "DIR[ DIR]" will be prepended to VARIABLE
19134 # ":DIR[:DIR]"
19135 #       string "DIR[ DIR]" will be appended to VARIABLE
19136 # "DIRP[:DIRP]::[DIRA:]DIRA"
19137 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19138 #       "DIRA[ DIRA]" will be appended to VARIABLE
19139 # "DIR[:DIR]"
19140 #       VARIABLE will be replaced by "DIR[ DIR]"
19141 func_munge_path_list ()
19142 {
19143     case x$2 in
19144     x)
19145         ;;
19146     *:)
19147         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19148         ;;
19149     x:*)
19150         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19151         ;;
19152     *::*)
19153         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19154         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19155         ;;
19156     *)
19157         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19158         ;;
19159     esac
19160 }
19161
19162
19163 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
19164 func_cc_basename ()
19165 {
19166     for cc_temp in $*""; do
19167       case $cc_temp in
19168         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19169         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19170         \-*) ;;
19171         *) break;;
19172       esac
19173     done
19174     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19175 }
19176
19177
19178 # ### END FUNCTIONS SHARED WITH CONFIGURE
19179
19180 _LT_EOF
19181
19182   case $host_os in
19183   aix3*)
19184     cat <<\_LT_EOF >> "$cfgfile"
19185 # AIX sometimes has problems with the GCC collect2 program.  For some
19186 # reason, if we set the COLLECT_NAMES environment variable, the problems
19187 # vanish in a puff of smoke.
19188 if test set != "${COLLECT_NAMES+set}"; then
19189   COLLECT_NAMES=
19190   export COLLECT_NAMES
19191 fi
19192 _LT_EOF
19193     ;;
19194   esac
19195
19196
19197 ltmain=$ac_aux_dir/ltmain.sh
19198
19199
19200   # We use sed instead of cat because bash on DJGPP gets confused if
19201   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19202   # text mode, it properly converts lines to CR/LF.  This bash problem
19203   # is reportedly fixed, but why not run on old versions too?
19204   sed '$q' "$ltmain" >> "$cfgfile" \
19205      || (rm -f "$cfgfile"; exit 1)
19206
19207    mv -f "$cfgfile" "$ofile" ||
19208     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19209   chmod +x "$ofile"
19210
19211
19212     cat <<_LT_EOF >> "$ofile"
19213
19214 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19215
19216 # The linker used to build libraries.
19217 LD=$lt_LD_CXX
19218
19219 # How to create reloadable object files.
19220 reload_flag=$lt_reload_flag_CXX
19221 reload_cmds=$lt_reload_cmds_CXX
19222
19223 # Commands used to build an old-style archive.
19224 old_archive_cmds=$lt_old_archive_cmds_CXX
19225
19226 # A language specific compiler.
19227 CC=$lt_compiler_CXX
19228
19229 # Is the compiler the GNU compiler?
19230 with_gcc=$GCC_CXX
19231
19232 # Compiler flag to turn off builtin functions.
19233 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19234
19235 # Additional compiler flags for building library objects.
19236 pic_flag=$lt_lt_prog_compiler_pic_CXX
19237
19238 # How to pass a linker flag through the compiler.
19239 wl=$lt_lt_prog_compiler_wl_CXX
19240
19241 # Compiler flag to prevent dynamic linking.
19242 link_static_flag=$lt_lt_prog_compiler_static_CXX
19243
19244 # Does compiler simultaneously support -c and -o options?
19245 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19246
19247 # Whether or not to add -lc for building shared libraries.
19248 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19249
19250 # Whether or not to disallow shared libs when runtime libs are static.
19251 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19252
19253 # Compiler flag to allow reflexive dlopens.
19254 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19255
19256 # Compiler flag to generate shared objects directly from archives.
19257 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19258
19259 # Whether the compiler copes with passing no objects directly.
19260 compiler_needs_object=$lt_compiler_needs_object_CXX
19261
19262 # Create an old-style archive from a shared archive.
19263 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19264
19265 # Create a temporary old-style archive to link instead of a shared archive.
19266 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19267
19268 # Commands used to build a shared archive.
19269 archive_cmds=$lt_archive_cmds_CXX
19270 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19271
19272 # Commands used to build a loadable module if different from building
19273 # a shared archive.
19274 module_cmds=$lt_module_cmds_CXX
19275 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19276
19277 # Whether we are building with GNU ld or not.
19278 with_gnu_ld=$lt_with_gnu_ld_CXX
19279
19280 # Flag that allows shared libraries with undefined symbols to be built.
19281 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19282
19283 # Flag that enforces no undefined symbols.
19284 no_undefined_flag=$lt_no_undefined_flag_CXX
19285
19286 # Flag to hardcode \$libdir into a binary during linking.
19287 # This must work even if \$libdir does not exist
19288 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19289
19290 # Whether we need a single "-rpath" flag with a separated argument.
19291 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19292
19293 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19294 # DIR into the resulting binary.
19295 hardcode_direct=$hardcode_direct_CXX
19296
19297 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19298 # DIR into the resulting binary and the resulting library dependency is
19299 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
19300 # library is relocated.
19301 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19302
19303 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19304 # into the resulting binary.
19305 hardcode_minus_L=$hardcode_minus_L_CXX
19306
19307 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19308 # into the resulting binary.
19309 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19310
19311 # Set to "yes" if building a shared library automatically hardcodes DIR
19312 # into the library and all subsequent libraries and executables linked
19313 # against it.
19314 hardcode_automatic=$hardcode_automatic_CXX
19315
19316 # Set to yes if linker adds runtime paths of dependent libraries
19317 # to runtime path list.
19318 inherit_rpath=$inherit_rpath_CXX
19319
19320 # Whether libtool must link a program against all its dependency libraries.
19321 link_all_deplibs=$link_all_deplibs_CXX
19322
19323 # Set to "yes" if exported symbols are required.
19324 always_export_symbols=$always_export_symbols_CXX
19325
19326 # The commands to list exported symbols.
19327 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19328
19329 # Symbols that should not be listed in the preloaded symbols.
19330 exclude_expsyms=$lt_exclude_expsyms_CXX
19331
19332 # Symbols that must always be exported.
19333 include_expsyms=$lt_include_expsyms_CXX
19334
19335 # Commands necessary for linking programs (against libraries) with templates.
19336 prelink_cmds=$lt_prelink_cmds_CXX
19337
19338 # Commands necessary for finishing linking programs.
19339 postlink_cmds=$lt_postlink_cmds_CXX
19340
19341 # Specify filename containing input files.
19342 file_list_spec=$lt_file_list_spec_CXX
19343
19344 # How to hardcode a shared library path into an executable.
19345 hardcode_action=$hardcode_action_CXX
19346
19347 # The directories searched by this compiler when creating a shared library.
19348 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19349
19350 # Dependencies to place before and after the objects being linked to
19351 # create a shared library.
19352 predep_objects=$lt_predep_objects_CXX
19353 postdep_objects=$lt_postdep_objects_CXX
19354 predeps=$lt_predeps_CXX
19355 postdeps=$lt_postdeps_CXX
19356
19357 # The library search path used internally by the compiler when linking
19358 # a shared library.
19359 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19360
19361 # ### END LIBTOOL TAG CONFIG: CXX
19362 _LT_EOF
19363
19364  ;;
19365     "run.sh":F) chmod +x run.sh ;;
19366
19367   esac
19368 done # for ac_tag
19369
19370
19371 as_fn_exit 0
19372 _ACEOF
19373 ac_clean_files=$ac_clean_files_save
19374
19375 test $ac_write_fail = 0 ||
19376   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19377
19378
19379 # configure is writing to config.log, and then calls config.status.
19380 # config.status does its own redirection, appending to config.log.
19381 # Unfortunately, on DOS this fails, as config.log is still kept open
19382 # by configure, so config.status won't be able to write to it; its
19383 # output is simply discarded.  So we exec the FD to /dev/null,
19384 # effectively closing config.log, so it can be properly (re)opened and
19385 # appended to by config.status.  When coming back to configure, we
19386 # need to make the FD available again.
19387 if test "$no_create" != yes; then
19388   ac_cs_success=:
19389   ac_config_status_args=
19390   test "$silent" = yes &&
19391     ac_config_status_args="$ac_config_status_args --quiet"
19392   exec 5>/dev/null
19393   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19394   exec 5>>config.log
19395   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19396   # would make configure fail if this is the last instruction.
19397   $ac_cs_success || as_fn_exit 1
19398 fi
19399 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19400   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19401 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19402 fi
19403
19404
19405 abs_srcdir="`cd $srcdir && pwd`"
19406 abs_builddir="`pwd`"
19407 if test "$abs_srcdir" != "$abs_builddir"; then
19408   make mkdir-init
19409 fi