Merge "Rebase for expat 2.2.0" into tizen_base
[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.0.
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.0'
594 PACKAGE_STRING='expat 2.2.0'
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 '
740       ac_precious_vars='build_alias
741 host_alias
742 target_alias
743 CC
744 CFLAGS
745 LDFLAGS
746 LIBS
747 CPPFLAGS
748 LT_SYS_LIBRARY_PATH
749 CPP
750 CXX
751 CXXFLAGS
752 CCC
753 CXXCPP'
754
755
756 # Initialize some variables set by options.
757 ac_init_help=
758 ac_init_version=false
759 ac_unrecognized_opts=
760 ac_unrecognized_sep=
761 # The variables have the same names as the options, with
762 # dashes changed to underlines.
763 cache_file=/dev/null
764 exec_prefix=NONE
765 no_create=
766 no_recursion=
767 prefix=NONE
768 program_prefix=NONE
769 program_suffix=NONE
770 program_transform_name=s,x,x,
771 silent=
772 site=
773 srcdir=
774 verbose=
775 x_includes=NONE
776 x_libraries=NONE
777
778 # Installation directory options.
779 # These are left unexpanded so users can "make install exec_prefix=/foo"
780 # and all the variables that are supposed to be based on exec_prefix
781 # by default will actually change.
782 # Use braces instead of parens because sh, perl, etc. also accept them.
783 # (The list follows the same order as the GNU Coding Standards.)
784 bindir='${exec_prefix}/bin'
785 sbindir='${exec_prefix}/sbin'
786 libexecdir='${exec_prefix}/libexec'
787 datarootdir='${prefix}/share'
788 datadir='${datarootdir}'
789 sysconfdir='${prefix}/etc'
790 sharedstatedir='${prefix}/com'
791 localstatedir='${prefix}/var'
792 includedir='${prefix}/include'
793 oldincludedir='/usr/include'
794 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
795 infodir='${datarootdir}/info'
796 htmldir='${docdir}'
797 dvidir='${docdir}'
798 pdfdir='${docdir}'
799 psdir='${docdir}'
800 libdir='${exec_prefix}/lib'
801 localedir='${datarootdir}/locale'
802 mandir='${datarootdir}/man'
803
804 ac_prev=
805 ac_dashdash=
806 for ac_option
807 do
808   # If the previous option needs an argument, assign it.
809   if test -n "$ac_prev"; then
810     eval $ac_prev=\$ac_option
811     ac_prev=
812     continue
813   fi
814
815   case $ac_option in
816   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
817   *=)   ac_optarg= ;;
818   *)    ac_optarg=yes ;;
819   esac
820
821   # Accept the important Cygnus configure options, so we can diagnose typos.
822
823   case $ac_dashdash$ac_option in
824   --)
825     ac_dashdash=yes ;;
826
827   -bindir | --bindir | --bindi | --bind | --bin | --bi)
828     ac_prev=bindir ;;
829   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
830     bindir=$ac_optarg ;;
831
832   -build | --build | --buil | --bui | --bu)
833     ac_prev=build_alias ;;
834   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
835     build_alias=$ac_optarg ;;
836
837   -cache-file | --cache-file | --cache-fil | --cache-fi \
838   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
839     ac_prev=cache_file ;;
840   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
841   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
842     cache_file=$ac_optarg ;;
843
844   --config-cache | -C)
845     cache_file=config.cache ;;
846
847   -datadir | --datadir | --datadi | --datad)
848     ac_prev=datadir ;;
849   -datadir=* | --datadir=* | --datadi=* | --datad=*)
850     datadir=$ac_optarg ;;
851
852   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
853   | --dataroo | --dataro | --datar)
854     ac_prev=datarootdir ;;
855   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
856   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
857     datarootdir=$ac_optarg ;;
858
859   -disable-* | --disable-*)
860     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
861     # Reject names that are not valid shell variable names.
862     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
863       as_fn_error $? "invalid feature name: $ac_useropt"
864     ac_useropt_orig=$ac_useropt
865     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
866     case $ac_user_opts in
867       *"
868 "enable_$ac_useropt"
869 "*) ;;
870       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
871          ac_unrecognized_sep=', ';;
872     esac
873     eval enable_$ac_useropt=no ;;
874
875   -docdir | --docdir | --docdi | --doc | --do)
876     ac_prev=docdir ;;
877   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
878     docdir=$ac_optarg ;;
879
880   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
881     ac_prev=dvidir ;;
882   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
883     dvidir=$ac_optarg ;;
884
885   -enable-* | --enable-*)
886     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
887     # Reject names that are not valid shell variable names.
888     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
889       as_fn_error $? "invalid feature name: $ac_useropt"
890     ac_useropt_orig=$ac_useropt
891     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
892     case $ac_user_opts in
893       *"
894 "enable_$ac_useropt"
895 "*) ;;
896       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
897          ac_unrecognized_sep=', ';;
898     esac
899     eval enable_$ac_useropt=\$ac_optarg ;;
900
901   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
902   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
903   | --exec | --exe | --ex)
904     ac_prev=exec_prefix ;;
905   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
906   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
907   | --exec=* | --exe=* | --ex=*)
908     exec_prefix=$ac_optarg ;;
909
910   -gas | --gas | --ga | --g)
911     # Obsolete; use --with-gas.
912     with_gas=yes ;;
913
914   -help | --help | --hel | --he | -h)
915     ac_init_help=long ;;
916   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
917     ac_init_help=recursive ;;
918   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
919     ac_init_help=short ;;
920
921   -host | --host | --hos | --ho)
922     ac_prev=host_alias ;;
923   -host=* | --host=* | --hos=* | --ho=*)
924     host_alias=$ac_optarg ;;
925
926   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
927     ac_prev=htmldir ;;
928   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
929   | --ht=*)
930     htmldir=$ac_optarg ;;
931
932   -includedir | --includedir | --includedi | --included | --include \
933   | --includ | --inclu | --incl | --inc)
934     ac_prev=includedir ;;
935   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
936   | --includ=* | --inclu=* | --incl=* | --inc=*)
937     includedir=$ac_optarg ;;
938
939   -infodir | --infodir | --infodi | --infod | --info | --inf)
940     ac_prev=infodir ;;
941   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
942     infodir=$ac_optarg ;;
943
944   -libdir | --libdir | --libdi | --libd)
945     ac_prev=libdir ;;
946   -libdir=* | --libdir=* | --libdi=* | --libd=*)
947     libdir=$ac_optarg ;;
948
949   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
950   | --libexe | --libex | --libe)
951     ac_prev=libexecdir ;;
952   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
953   | --libexe=* | --libex=* | --libe=*)
954     libexecdir=$ac_optarg ;;
955
956   -localedir | --localedir | --localedi | --localed | --locale)
957     ac_prev=localedir ;;
958   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
959     localedir=$ac_optarg ;;
960
961   -localstatedir | --localstatedir | --localstatedi | --localstated \
962   | --localstate | --localstat | --localsta | --localst | --locals)
963     ac_prev=localstatedir ;;
964   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
965   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
966     localstatedir=$ac_optarg ;;
967
968   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
969     ac_prev=mandir ;;
970   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
971     mandir=$ac_optarg ;;
972
973   -nfp | --nfp | --nf)
974     # Obsolete; use --without-fp.
975     with_fp=no ;;
976
977   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
978   | --no-cr | --no-c | -n)
979     no_create=yes ;;
980
981   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
982   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
983     no_recursion=yes ;;
984
985   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
986   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
987   | --oldin | --oldi | --old | --ol | --o)
988     ac_prev=oldincludedir ;;
989   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
990   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
991   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
992     oldincludedir=$ac_optarg ;;
993
994   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
995     ac_prev=prefix ;;
996   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
997     prefix=$ac_optarg ;;
998
999   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1000   | --program-pre | --program-pr | --program-p)
1001     ac_prev=program_prefix ;;
1002   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1003   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1004     program_prefix=$ac_optarg ;;
1005
1006   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1007   | --program-suf | --program-su | --program-s)
1008     ac_prev=program_suffix ;;
1009   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1010   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1011     program_suffix=$ac_optarg ;;
1012
1013   -program-transform-name | --program-transform-name \
1014   | --program-transform-nam | --program-transform-na \
1015   | --program-transform-n | --program-transform- \
1016   | --program-transform | --program-transfor \
1017   | --program-transfo | --program-transf \
1018   | --program-trans | --program-tran \
1019   | --progr-tra | --program-tr | --program-t)
1020     ac_prev=program_transform_name ;;
1021   -program-transform-name=* | --program-transform-name=* \
1022   | --program-transform-nam=* | --program-transform-na=* \
1023   | --program-transform-n=* | --program-transform-=* \
1024   | --program-transform=* | --program-transfor=* \
1025   | --program-transfo=* | --program-transf=* \
1026   | --program-trans=* | --program-tran=* \
1027   | --progr-tra=* | --program-tr=* | --program-t=*)
1028     program_transform_name=$ac_optarg ;;
1029
1030   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1031     ac_prev=pdfdir ;;
1032   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1033     pdfdir=$ac_optarg ;;
1034
1035   -psdir | --psdir | --psdi | --psd | --ps)
1036     ac_prev=psdir ;;
1037   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1038     psdir=$ac_optarg ;;
1039
1040   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1041   | -silent | --silent | --silen | --sile | --sil)
1042     silent=yes ;;
1043
1044   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1045     ac_prev=sbindir ;;
1046   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1047   | --sbi=* | --sb=*)
1048     sbindir=$ac_optarg ;;
1049
1050   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1051   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1052   | --sharedst | --shareds | --shared | --share | --shar \
1053   | --sha | --sh)
1054     ac_prev=sharedstatedir ;;
1055   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1056   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1057   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1058   | --sha=* | --sh=*)
1059     sharedstatedir=$ac_optarg ;;
1060
1061   -site | --site | --sit)
1062     ac_prev=site ;;
1063   -site=* | --site=* | --sit=*)
1064     site=$ac_optarg ;;
1065
1066   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1067     ac_prev=srcdir ;;
1068   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1069     srcdir=$ac_optarg ;;
1070
1071   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1072   | --syscon | --sysco | --sysc | --sys | --sy)
1073     ac_prev=sysconfdir ;;
1074   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1075   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1076     sysconfdir=$ac_optarg ;;
1077
1078   -target | --target | --targe | --targ | --tar | --ta | --t)
1079     ac_prev=target_alias ;;
1080   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1081     target_alias=$ac_optarg ;;
1082
1083   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1084     verbose=yes ;;
1085
1086   -version | --version | --versio | --versi | --vers | -V)
1087     ac_init_version=: ;;
1088
1089   -with-* | --with-*)
1090     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1091     # Reject names that are not valid shell variable names.
1092     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1093       as_fn_error $? "invalid package name: $ac_useropt"
1094     ac_useropt_orig=$ac_useropt
1095     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1096     case $ac_user_opts in
1097       *"
1098 "with_$ac_useropt"
1099 "*) ;;
1100       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1101          ac_unrecognized_sep=', ';;
1102     esac
1103     eval with_$ac_useropt=\$ac_optarg ;;
1104
1105   -without-* | --without-*)
1106     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1107     # Reject names that are not valid shell variable names.
1108     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1109       as_fn_error $? "invalid package name: $ac_useropt"
1110     ac_useropt_orig=$ac_useropt
1111     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1112     case $ac_user_opts in
1113       *"
1114 "with_$ac_useropt"
1115 "*) ;;
1116       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1117          ac_unrecognized_sep=', ';;
1118     esac
1119     eval with_$ac_useropt=no ;;
1120
1121   --x)
1122     # Obsolete; use --with-x.
1123     with_x=yes ;;
1124
1125   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1126   | --x-incl | --x-inc | --x-in | --x-i)
1127     ac_prev=x_includes ;;
1128   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1129   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1130     x_includes=$ac_optarg ;;
1131
1132   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1133   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1134     ac_prev=x_libraries ;;
1135   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1136   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1137     x_libraries=$ac_optarg ;;
1138
1139   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1140 Try \`$0 --help' for more information"
1141     ;;
1142
1143   *=*)
1144     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1145     # Reject names that are not valid shell variable names.
1146     case $ac_envvar in #(
1147       '' | [0-9]* | *[!_$as_cr_alnum]* )
1148       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1149     esac
1150     eval $ac_envvar=\$ac_optarg
1151     export $ac_envvar ;;
1152
1153   *)
1154     # FIXME: should be removed in autoconf 3.0.
1155     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1156     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1157       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1158     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1159     ;;
1160
1161   esac
1162 done
1163
1164 if test -n "$ac_prev"; then
1165   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1166   as_fn_error $? "missing argument to $ac_option"
1167 fi
1168
1169 if test -n "$ac_unrecognized_opts"; then
1170   case $enable_option_checking in
1171     no) ;;
1172     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1173     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1174   esac
1175 fi
1176
1177 # Check all directory arguments for consistency.
1178 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1179                 datadir sysconfdir sharedstatedir localstatedir includedir \
1180                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1181                 libdir localedir mandir
1182 do
1183   eval ac_val=\$$ac_var
1184   # Remove trailing slashes.
1185   case $ac_val in
1186     */ )
1187       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1188       eval $ac_var=\$ac_val;;
1189   esac
1190   # Be sure to have absolute directory names.
1191   case $ac_val in
1192     [\\/$]* | ?:[\\/]* )  continue;;
1193     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1194   esac
1195   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1196 done
1197
1198 # There might be people who depend on the old broken behavior: `$host'
1199 # used to hold the argument of --host etc.
1200 # FIXME: To remove some day.
1201 build=$build_alias
1202 host=$host_alias
1203 target=$target_alias
1204
1205 # FIXME: To remove some day.
1206 if test "x$host_alias" != x; then
1207   if test "x$build_alias" = x; then
1208     cross_compiling=maybe
1209   elif test "x$build_alias" != "x$host_alias"; then
1210     cross_compiling=yes
1211   fi
1212 fi
1213
1214 ac_tool_prefix=
1215 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1216
1217 test "$silent" = yes && exec 6>/dev/null
1218
1219
1220 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1221 ac_ls_di=`ls -di .` &&
1222 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1223   as_fn_error $? "working directory cannot be determined"
1224 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1225   as_fn_error $? "pwd does not report name of working directory"
1226
1227
1228 # Find the source files, if location was not specified.
1229 if test -z "$srcdir"; then
1230   ac_srcdir_defaulted=yes
1231   # Try the directory containing this script, then the parent directory.
1232   ac_confdir=`$as_dirname -- "$as_myself" ||
1233 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1234          X"$as_myself" : 'X\(//\)[^/]' \| \
1235          X"$as_myself" : 'X\(//\)$' \| \
1236          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1237 $as_echo X"$as_myself" |
1238     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1239             s//\1/
1240             q
1241           }
1242           /^X\(\/\/\)[^/].*/{
1243             s//\1/
1244             q
1245           }
1246           /^X\(\/\/\)$/{
1247             s//\1/
1248             q
1249           }
1250           /^X\(\/\).*/{
1251             s//\1/
1252             q
1253           }
1254           s/.*/./; q'`
1255   srcdir=$ac_confdir
1256   if test ! -r "$srcdir/$ac_unique_file"; then
1257     srcdir=..
1258   fi
1259 else
1260   ac_srcdir_defaulted=no
1261 fi
1262 if test ! -r "$srcdir/$ac_unique_file"; then
1263   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1264   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1265 fi
1266 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1267 ac_abs_confdir=`(
1268         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1269         pwd)`
1270 # When building in place, set srcdir=.
1271 if test "$ac_abs_confdir" = "$ac_pwd"; then
1272   srcdir=.
1273 fi
1274 # Remove unnecessary trailing slashes from srcdir.
1275 # Double slashes in file names in object file debugging info
1276 # mess up M-x gdb in Emacs.
1277 case $srcdir in
1278 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1279 esac
1280 for ac_var in $ac_precious_vars; do
1281   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1282   eval ac_env_${ac_var}_value=\$${ac_var}
1283   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1284   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1285 done
1286
1287 #
1288 # Report the --help message.
1289 #
1290 if test "$ac_init_help" = "long"; then
1291   # Omit some internal or obsolete options to make the list less imposing.
1292   # This message is too long to be a string in the A/UX 3.1 sh.
1293   cat <<_ACEOF
1294 \`configure' configures expat 2.2.0 to adapt to many kinds of systems.
1295
1296 Usage: $0 [OPTION]... [VAR=VALUE]...
1297
1298 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1299 VAR=VALUE.  See below for descriptions of some of the useful variables.
1300
1301 Defaults for the options are specified in brackets.
1302
1303 Configuration:
1304   -h, --help              display this help and exit
1305       --help=short        display options specific to this package
1306       --help=recursive    display the short help of all the included packages
1307   -V, --version           display version information and exit
1308   -q, --quiet, --silent   do not print \`checking ...' messages
1309       --cache-file=FILE   cache test results in FILE [disabled]
1310   -C, --config-cache      alias for \`--cache-file=config.cache'
1311   -n, --no-create         do not create output files
1312       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1313
1314 Installation directories:
1315   --prefix=PREFIX         install architecture-independent files in PREFIX
1316                           [$ac_default_prefix]
1317   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1318                           [PREFIX]
1319
1320 By default, \`make install' will install all the files in
1321 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1322 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1323 for instance \`--prefix=\$HOME'.
1324
1325 For better control, use the options below.
1326
1327 Fine tuning of the installation directories:
1328   --bindir=DIR            user executables [EPREFIX/bin]
1329   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1330   --libexecdir=DIR        program executables [EPREFIX/libexec]
1331   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1332   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1333   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1334   --libdir=DIR            object code libraries [EPREFIX/lib]
1335   --includedir=DIR        C header files [PREFIX/include]
1336   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1337   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1338   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1339   --infodir=DIR           info documentation [DATAROOTDIR/info]
1340   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1341   --mandir=DIR            man documentation [DATAROOTDIR/man]
1342   --docdir=DIR            documentation root [DATAROOTDIR/doc/expat]
1343   --htmldir=DIR           html documentation [DOCDIR]
1344   --dvidir=DIR            dvi documentation [DOCDIR]
1345   --pdfdir=DIR            pdf documentation [DOCDIR]
1346   --psdir=DIR             ps documentation [DOCDIR]
1347 _ACEOF
1348
1349   cat <<\_ACEOF
1350
1351 System types:
1352   --build=BUILD     configure for building on BUILD [guessed]
1353   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1354 _ACEOF
1355 fi
1356
1357 if test -n "$ac_init_help"; then
1358   case $ac_init_help in
1359      short | recursive ) echo "Configuration of expat 2.2.0:";;
1360    esac
1361   cat <<\_ACEOF
1362
1363 Optional Features:
1364   --disable-option-checking  ignore unrecognized --enable/--with options
1365   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1366   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1367   --enable-shared[=PKGS]  build shared libraries [default=yes]
1368   --enable-static[=PKGS]  build static libraries [default=yes]
1369   --enable-fast-install[=PKGS]
1370                           optimize for fast installation [default=yes]
1371   --disable-libtool-lock  avoid locking (might break parallel builds)
1372
1373 Optional Packages:
1374   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1375   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1376   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1377                           both]
1378   --with-aix-soname=aix|svr4|both
1379                           shared library versioning (aka "SONAME") variant to
1380                           provide on AIX, [default=aix].
1381   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1382   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1383                           compiler's sysroot if not specified).
1384
1385 Some influential environment variables:
1386   CC          C compiler command
1387   CFLAGS      C compiler flags
1388   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1389               nonstandard directory <lib dir>
1390   LIBS        libraries to pass to the linker, e.g. -l<library>
1391   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1392               you have headers in a nonstandard directory <include dir>
1393   LT_SYS_LIBRARY_PATH
1394               User-defined run-time library search path.
1395   CPP         C preprocessor
1396   CXX         C++ compiler command
1397   CXXFLAGS    C++ compiler flags
1398   CXXCPP      C++ preprocessor
1399
1400 Use these variables to override the choices made by `configure' or to help
1401 it to find libraries and programs with nonstandard names/locations.
1402
1403 Report bugs to <expat-bugs@libexpat.org>.
1404 _ACEOF
1405 ac_status=$?
1406 fi
1407
1408 if test "$ac_init_help" = "recursive"; then
1409   # If there are subdirs, report their specific --help.
1410   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1411     test -d "$ac_dir" ||
1412       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1413       continue
1414     ac_builddir=.
1415
1416 case "$ac_dir" in
1417 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1418 *)
1419   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1420   # A ".." for each directory in $ac_dir_suffix.
1421   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1422   case $ac_top_builddir_sub in
1423   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1424   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1425   esac ;;
1426 esac
1427 ac_abs_top_builddir=$ac_pwd
1428 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1429 # for backward compatibility:
1430 ac_top_builddir=$ac_top_build_prefix
1431
1432 case $srcdir in
1433   .)  # We are building in place.
1434     ac_srcdir=.
1435     ac_top_srcdir=$ac_top_builddir_sub
1436     ac_abs_top_srcdir=$ac_pwd ;;
1437   [\\/]* | ?:[\\/]* )  # Absolute name.
1438     ac_srcdir=$srcdir$ac_dir_suffix;
1439     ac_top_srcdir=$srcdir
1440     ac_abs_top_srcdir=$srcdir ;;
1441   *) # Relative name.
1442     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1443     ac_top_srcdir=$ac_top_build_prefix$srcdir
1444     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1445 esac
1446 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1447
1448     cd "$ac_dir" || { ac_status=$?; continue; }
1449     # Check for guested configure.
1450     if test -f "$ac_srcdir/configure.gnu"; then
1451       echo &&
1452       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1453     elif test -f "$ac_srcdir/configure"; then
1454       echo &&
1455       $SHELL "$ac_srcdir/configure" --help=recursive
1456     else
1457       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1458     fi || ac_status=$?
1459     cd "$ac_pwd" || { ac_status=$?; break; }
1460   done
1461 fi
1462
1463 test -n "$ac_init_help" && exit $ac_status
1464 if $ac_init_version; then
1465   cat <<\_ACEOF
1466 expat configure 2.2.0
1467 generated by GNU Autoconf 2.69
1468
1469 Copyright (C) 2012 Free Software Foundation, Inc.
1470 This configure script is free software; the Free Software Foundation
1471 gives unlimited permission to copy, distribute and modify it.
1472 _ACEOF
1473   exit
1474 fi
1475
1476 ## ------------------------ ##
1477 ## Autoconf initialization. ##
1478 ## ------------------------ ##
1479
1480 # ac_fn_c_try_compile LINENO
1481 # --------------------------
1482 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1483 ac_fn_c_try_compile ()
1484 {
1485   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1486   rm -f conftest.$ac_objext
1487   if { { ac_try="$ac_compile"
1488 case "(($ac_try" in
1489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1490   *) ac_try_echo=$ac_try;;
1491 esac
1492 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1493 $as_echo "$ac_try_echo"; } >&5
1494   (eval "$ac_compile") 2>conftest.err
1495   ac_status=$?
1496   if test -s conftest.err; then
1497     grep -v '^ *+' conftest.err >conftest.er1
1498     cat conftest.er1 >&5
1499     mv -f conftest.er1 conftest.err
1500   fi
1501   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1502   test $ac_status = 0; } && {
1503          test -z "$ac_c_werror_flag" ||
1504          test ! -s conftest.err
1505        } && test -s conftest.$ac_objext; then :
1506   ac_retval=0
1507 else
1508   $as_echo "$as_me: failed program was:" >&5
1509 sed 's/^/| /' conftest.$ac_ext >&5
1510
1511         ac_retval=1
1512 fi
1513   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1514   as_fn_set_status $ac_retval
1515
1516 } # ac_fn_c_try_compile
1517
1518 # ac_fn_c_try_link LINENO
1519 # -----------------------
1520 # Try to link conftest.$ac_ext, and return whether this succeeded.
1521 ac_fn_c_try_link ()
1522 {
1523   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1524   rm -f conftest.$ac_objext conftest$ac_exeext
1525   if { { ac_try="$ac_link"
1526 case "(($ac_try" in
1527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1528   *) ac_try_echo=$ac_try;;
1529 esac
1530 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1531 $as_echo "$ac_try_echo"; } >&5
1532   (eval "$ac_link") 2>conftest.err
1533   ac_status=$?
1534   if test -s conftest.err; then
1535     grep -v '^ *+' conftest.err >conftest.er1
1536     cat conftest.er1 >&5
1537     mv -f conftest.er1 conftest.err
1538   fi
1539   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1540   test $ac_status = 0; } && {
1541          test -z "$ac_c_werror_flag" ||
1542          test ! -s conftest.err
1543        } && test -s conftest$ac_exeext && {
1544          test "$cross_compiling" = yes ||
1545          test -x conftest$ac_exeext
1546        }; then :
1547   ac_retval=0
1548 else
1549   $as_echo "$as_me: failed program was:" >&5
1550 sed 's/^/| /' conftest.$ac_ext >&5
1551
1552         ac_retval=1
1553 fi
1554   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1555   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1556   # interfere with the next link command; also delete a directory that is
1557   # left behind by Apple's compiler.  We do this before executing the actions.
1558   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1559   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1560   as_fn_set_status $ac_retval
1561
1562 } # ac_fn_c_try_link
1563
1564 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1565 # -------------------------------------------------------
1566 # Tests whether HEADER exists and can be compiled using the include files in
1567 # INCLUDES, setting the cache variable VAR accordingly.
1568 ac_fn_c_check_header_compile ()
1569 {
1570   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1571   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1572 $as_echo_n "checking for $2... " >&6; }
1573 if eval \${$3+:} false; then :
1574   $as_echo_n "(cached) " >&6
1575 else
1576   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1577 /* end confdefs.h.  */
1578 $4
1579 #include <$2>
1580 _ACEOF
1581 if ac_fn_c_try_compile "$LINENO"; then :
1582   eval "$3=yes"
1583 else
1584   eval "$3=no"
1585 fi
1586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1587 fi
1588 eval ac_res=\$$3
1589                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1590 $as_echo "$ac_res" >&6; }
1591   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1592
1593 } # ac_fn_c_check_header_compile
1594
1595 # ac_fn_c_try_cpp LINENO
1596 # ----------------------
1597 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1598 ac_fn_c_try_cpp ()
1599 {
1600   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1601   if { { ac_try="$ac_cpp conftest.$ac_ext"
1602 case "(($ac_try" in
1603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1604   *) ac_try_echo=$ac_try;;
1605 esac
1606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1607 $as_echo "$ac_try_echo"; } >&5
1608   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1609   ac_status=$?
1610   if test -s conftest.err; then
1611     grep -v '^ *+' conftest.err >conftest.er1
1612     cat conftest.er1 >&5
1613     mv -f conftest.er1 conftest.err
1614   fi
1615   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1616   test $ac_status = 0; } > conftest.i && {
1617          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1618          test ! -s conftest.err
1619        }; then :
1620   ac_retval=0
1621 else
1622   $as_echo "$as_me: failed program was:" >&5
1623 sed 's/^/| /' conftest.$ac_ext >&5
1624
1625     ac_retval=1
1626 fi
1627   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1628   as_fn_set_status $ac_retval
1629
1630 } # ac_fn_c_try_cpp
1631
1632 # ac_fn_c_try_run LINENO
1633 # ----------------------
1634 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1635 # that executables *can* be run.
1636 ac_fn_c_try_run ()
1637 {
1638   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1639   if { { ac_try="$ac_link"
1640 case "(($ac_try" in
1641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1642   *) ac_try_echo=$ac_try;;
1643 esac
1644 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1645 $as_echo "$ac_try_echo"; } >&5
1646   (eval "$ac_link") 2>&5
1647   ac_status=$?
1648   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1649   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1650   { { case "(($ac_try" in
1651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1652   *) ac_try_echo=$ac_try;;
1653 esac
1654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1655 $as_echo "$ac_try_echo"; } >&5
1656   (eval "$ac_try") 2>&5
1657   ac_status=$?
1658   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1659   test $ac_status = 0; }; }; then :
1660   ac_retval=0
1661 else
1662   $as_echo "$as_me: program exited with status $ac_status" >&5
1663        $as_echo "$as_me: failed program was:" >&5
1664 sed 's/^/| /' conftest.$ac_ext >&5
1665
1666        ac_retval=$ac_status
1667 fi
1668   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1669   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1670   as_fn_set_status $ac_retval
1671
1672 } # ac_fn_c_try_run
1673
1674 # ac_fn_c_check_func LINENO FUNC VAR
1675 # ----------------------------------
1676 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1677 ac_fn_c_check_func ()
1678 {
1679   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1681 $as_echo_n "checking for $2... " >&6; }
1682 if eval \${$3+:} false; then :
1683   $as_echo_n "(cached) " >&6
1684 else
1685   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1686 /* end confdefs.h.  */
1687 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1688    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1689 #define $2 innocuous_$2
1690
1691 /* System header to define __stub macros and hopefully few prototypes,
1692     which can conflict with char $2 (); below.
1693     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1694     <limits.h> exists even on freestanding compilers.  */
1695
1696 #ifdef __STDC__
1697 # include <limits.h>
1698 #else
1699 # include <assert.h>
1700 #endif
1701
1702 #undef $2
1703
1704 /* Override any GCC internal prototype to avoid an error.
1705    Use char because int might match the return type of a GCC
1706    builtin and then its argument prototype would still apply.  */
1707 #ifdef __cplusplus
1708 extern "C"
1709 #endif
1710 char $2 ();
1711 /* The GNU C library defines this for functions which it implements
1712     to always fail with ENOSYS.  Some functions are actually named
1713     something starting with __ and the normal name is an alias.  */
1714 #if defined __stub_$2 || defined __stub___$2
1715 choke me
1716 #endif
1717
1718 int
1719 main ()
1720 {
1721 return $2 ();
1722   ;
1723   return 0;
1724 }
1725 _ACEOF
1726 if ac_fn_c_try_link "$LINENO"; then :
1727   eval "$3=yes"
1728 else
1729   eval "$3=no"
1730 fi
1731 rm -f core conftest.err conftest.$ac_objext \
1732     conftest$ac_exeext conftest.$ac_ext
1733 fi
1734 eval ac_res=\$$3
1735                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1736 $as_echo "$ac_res" >&6; }
1737   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1738
1739 } # ac_fn_c_check_func
1740
1741 # ac_fn_cxx_try_compile LINENO
1742 # ----------------------------
1743 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1744 ac_fn_cxx_try_compile ()
1745 {
1746   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747   rm -f conftest.$ac_objext
1748   if { { ac_try="$ac_compile"
1749 case "(($ac_try" in
1750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1751   *) ac_try_echo=$ac_try;;
1752 esac
1753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1754 $as_echo "$ac_try_echo"; } >&5
1755   (eval "$ac_compile") 2>conftest.err
1756   ac_status=$?
1757   if test -s conftest.err; then
1758     grep -v '^ *+' conftest.err >conftest.er1
1759     cat conftest.er1 >&5
1760     mv -f conftest.er1 conftest.err
1761   fi
1762   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1763   test $ac_status = 0; } && {
1764          test -z "$ac_cxx_werror_flag" ||
1765          test ! -s conftest.err
1766        } && test -s conftest.$ac_objext; then :
1767   ac_retval=0
1768 else
1769   $as_echo "$as_me: failed program was:" >&5
1770 sed 's/^/| /' conftest.$ac_ext >&5
1771
1772         ac_retval=1
1773 fi
1774   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1775   as_fn_set_status $ac_retval
1776
1777 } # ac_fn_cxx_try_compile
1778
1779 # ac_fn_cxx_try_cpp LINENO
1780 # ------------------------
1781 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1782 ac_fn_cxx_try_cpp ()
1783 {
1784   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785   if { { ac_try="$ac_cpp conftest.$ac_ext"
1786 case "(($ac_try" in
1787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1788   *) ac_try_echo=$ac_try;;
1789 esac
1790 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1791 $as_echo "$ac_try_echo"; } >&5
1792   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1793   ac_status=$?
1794   if test -s conftest.err; then
1795     grep -v '^ *+' conftest.err >conftest.er1
1796     cat conftest.er1 >&5
1797     mv -f conftest.er1 conftest.err
1798   fi
1799   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1800   test $ac_status = 0; } > conftest.i && {
1801          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1802          test ! -s conftest.err
1803        }; then :
1804   ac_retval=0
1805 else
1806   $as_echo "$as_me: failed program was:" >&5
1807 sed 's/^/| /' conftest.$ac_ext >&5
1808
1809     ac_retval=1
1810 fi
1811   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1812   as_fn_set_status $ac_retval
1813
1814 } # ac_fn_cxx_try_cpp
1815
1816 # ac_fn_cxx_try_link LINENO
1817 # -------------------------
1818 # Try to link conftest.$ac_ext, and return whether this succeeded.
1819 ac_fn_cxx_try_link ()
1820 {
1821   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822   rm -f conftest.$ac_objext conftest$ac_exeext
1823   if { { ac_try="$ac_link"
1824 case "(($ac_try" in
1825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1826   *) ac_try_echo=$ac_try;;
1827 esac
1828 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1829 $as_echo "$ac_try_echo"; } >&5
1830   (eval "$ac_link") 2>conftest.err
1831   ac_status=$?
1832   if test -s conftest.err; then
1833     grep -v '^ *+' conftest.err >conftest.er1
1834     cat conftest.er1 >&5
1835     mv -f conftest.er1 conftest.err
1836   fi
1837   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1838   test $ac_status = 0; } && {
1839          test -z "$ac_cxx_werror_flag" ||
1840          test ! -s conftest.err
1841        } && test -s conftest$ac_exeext && {
1842          test "$cross_compiling" = yes ||
1843          test -x conftest$ac_exeext
1844        }; then :
1845   ac_retval=0
1846 else
1847   $as_echo "$as_me: failed program was:" >&5
1848 sed 's/^/| /' conftest.$ac_ext >&5
1849
1850         ac_retval=1
1851 fi
1852   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1853   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1854   # interfere with the next link command; also delete a directory that is
1855   # left behind by Apple's compiler.  We do this before executing the actions.
1856   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1857   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1858   as_fn_set_status $ac_retval
1859
1860 } # ac_fn_cxx_try_link
1861
1862 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1863 # -------------------------------------------
1864 # Tests whether TYPE exists after having included INCLUDES, setting cache
1865 # variable VAR accordingly.
1866 ac_fn_c_check_type ()
1867 {
1868   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1870 $as_echo_n "checking for $2... " >&6; }
1871 if eval \${$3+:} false; then :
1872   $as_echo_n "(cached) " >&6
1873 else
1874   eval "$3=no"
1875   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1876 /* end confdefs.h.  */
1877 $4
1878 int
1879 main ()
1880 {
1881 if (sizeof ($2))
1882          return 0;
1883   ;
1884   return 0;
1885 }
1886 _ACEOF
1887 if ac_fn_c_try_compile "$LINENO"; then :
1888   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1889 /* end confdefs.h.  */
1890 $4
1891 int
1892 main ()
1893 {
1894 if (sizeof (($2)))
1895             return 0;
1896   ;
1897   return 0;
1898 }
1899 _ACEOF
1900 if ac_fn_c_try_compile "$LINENO"; then :
1901
1902 else
1903   eval "$3=yes"
1904 fi
1905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1906 fi
1907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1908 fi
1909 eval ac_res=\$$3
1910                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1911 $as_echo "$ac_res" >&6; }
1912   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1913
1914 } # ac_fn_c_check_type
1915
1916 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1917 # -------------------------------------------------------
1918 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1919 # the include files in INCLUDES and setting the cache variable VAR
1920 # accordingly.
1921 ac_fn_c_check_header_mongrel ()
1922 {
1923   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924   if eval \${$3+:} false; then :
1925   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1926 $as_echo_n "checking for $2... " >&6; }
1927 if eval \${$3+:} false; then :
1928   $as_echo_n "(cached) " >&6
1929 fi
1930 eval ac_res=\$$3
1931                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1932 $as_echo "$ac_res" >&6; }
1933 else
1934   # Is the header compilable?
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1936 $as_echo_n "checking $2 usability... " >&6; }
1937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1938 /* end confdefs.h.  */
1939 $4
1940 #include <$2>
1941 _ACEOF
1942 if ac_fn_c_try_compile "$LINENO"; then :
1943   ac_header_compiler=yes
1944 else
1945   ac_header_compiler=no
1946 fi
1947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1949 $as_echo "$ac_header_compiler" >&6; }
1950
1951 # Is the header present?
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1953 $as_echo_n "checking $2 presence... " >&6; }
1954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1955 /* end confdefs.h.  */
1956 #include <$2>
1957 _ACEOF
1958 if ac_fn_c_try_cpp "$LINENO"; then :
1959   ac_header_preproc=yes
1960 else
1961   ac_header_preproc=no
1962 fi
1963 rm -f conftest.err conftest.i conftest.$ac_ext
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1965 $as_echo "$ac_header_preproc" >&6; }
1966
1967 # So?  What about this header?
1968 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1969   yes:no: )
1970     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1971 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1972     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1973 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1974     ;;
1975   no:yes:* )
1976     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1977 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1978     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1979 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1980     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1981 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1982     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1983 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1984     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1985 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1986 ( $as_echo "## -------------------------------------- ##
1987 ## Report this to expat-bugs@libexpat.org ##
1988 ## -------------------------------------- ##"
1989      ) | sed "s/^/$as_me: WARNING:     /" >&2
1990     ;;
1991 esac
1992   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1993 $as_echo_n "checking for $2... " >&6; }
1994 if eval \${$3+:} false; then :
1995   $as_echo_n "(cached) " >&6
1996 else
1997   eval "$3=\$ac_header_compiler"
1998 fi
1999 eval ac_res=\$$3
2000                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2001 $as_echo "$ac_res" >&6; }
2002 fi
2003   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2004
2005 } # ac_fn_c_check_header_mongrel
2006 cat >config.log <<_ACEOF
2007 This file contains any messages produced by compilers while
2008 running configure, to aid debugging if configure makes a mistake.
2009
2010 It was created by expat $as_me 2.2.0, which was
2011 generated by GNU Autoconf 2.69.  Invocation command line was
2012
2013   $ $0 $@
2014
2015 _ACEOF
2016 exec 5>>config.log
2017 {
2018 cat <<_ASUNAME
2019 ## --------- ##
2020 ## Platform. ##
2021 ## --------- ##
2022
2023 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2024 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2025 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2026 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2027 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2028
2029 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2030 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2031
2032 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2033 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2034 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2035 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2036 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2037 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2038 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2039
2040 _ASUNAME
2041
2042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2043 for as_dir in $PATH
2044 do
2045   IFS=$as_save_IFS
2046   test -z "$as_dir" && as_dir=.
2047     $as_echo "PATH: $as_dir"
2048   done
2049 IFS=$as_save_IFS
2050
2051 } >&5
2052
2053 cat >&5 <<_ACEOF
2054
2055
2056 ## ----------- ##
2057 ## Core tests. ##
2058 ## ----------- ##
2059
2060 _ACEOF
2061
2062
2063 # Keep a trace of the command line.
2064 # Strip out --no-create and --no-recursion so they do not pile up.
2065 # Strip out --silent because we don't want to record it for future runs.
2066 # Also quote any args containing shell meta-characters.
2067 # Make two passes to allow for proper duplicate-argument suppression.
2068 ac_configure_args=
2069 ac_configure_args0=
2070 ac_configure_args1=
2071 ac_must_keep_next=false
2072 for ac_pass in 1 2
2073 do
2074   for ac_arg
2075   do
2076     case $ac_arg in
2077     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2078     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2079     | -silent | --silent | --silen | --sile | --sil)
2080       continue ;;
2081     *\'*)
2082       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2083     esac
2084     case $ac_pass in
2085     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2086     2)
2087       as_fn_append ac_configure_args1 " '$ac_arg'"
2088       if test $ac_must_keep_next = true; then
2089         ac_must_keep_next=false # Got value, back to normal.
2090       else
2091         case $ac_arg in
2092           *=* | --config-cache | -C | -disable-* | --disable-* \
2093           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2094           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2095           | -with-* | --with-* | -without-* | --without-* | --x)
2096             case "$ac_configure_args0 " in
2097               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2098             esac
2099             ;;
2100           -* ) ac_must_keep_next=true ;;
2101         esac
2102       fi
2103       as_fn_append ac_configure_args " '$ac_arg'"
2104       ;;
2105     esac
2106   done
2107 done
2108 { ac_configure_args0=; unset ac_configure_args0;}
2109 { ac_configure_args1=; unset ac_configure_args1;}
2110
2111 # When interrupted or exit'd, cleanup temporary files, and complete
2112 # config.log.  We remove comments because anyway the quotes in there
2113 # would cause problems or look ugly.
2114 # WARNING: Use '\'' to represent an apostrophe within the trap.
2115 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2116 trap 'exit_status=$?
2117   # Save into config.log some information that might help in debugging.
2118   {
2119     echo
2120
2121     $as_echo "## ---------------- ##
2122 ## Cache variables. ##
2123 ## ---------------- ##"
2124     echo
2125     # The following way of writing the cache mishandles newlines in values,
2126 (
2127   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2128     eval ac_val=\$$ac_var
2129     case $ac_val in #(
2130     *${as_nl}*)
2131       case $ac_var in #(
2132       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2133 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2134       esac
2135       case $ac_var in #(
2136       _ | IFS | as_nl) ;; #(
2137       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2138       *) { eval $ac_var=; unset $ac_var;} ;;
2139       esac ;;
2140     esac
2141   done
2142   (set) 2>&1 |
2143     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2144     *${as_nl}ac_space=\ *)
2145       sed -n \
2146         "s/'\''/'\''\\\\'\'''\''/g;
2147           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2148       ;; #(
2149     *)
2150       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2151       ;;
2152     esac |
2153     sort
2154 )
2155     echo
2156
2157     $as_echo "## ----------------- ##
2158 ## Output variables. ##
2159 ## ----------------- ##"
2160     echo
2161     for ac_var in $ac_subst_vars
2162     do
2163       eval ac_val=\$$ac_var
2164       case $ac_val in
2165       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2166       esac
2167       $as_echo "$ac_var='\''$ac_val'\''"
2168     done | sort
2169     echo
2170
2171     if test -n "$ac_subst_files"; then
2172       $as_echo "## ------------------- ##
2173 ## File substitutions. ##
2174 ## ------------------- ##"
2175       echo
2176       for ac_var in $ac_subst_files
2177       do
2178         eval ac_val=\$$ac_var
2179         case $ac_val in
2180         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2181         esac
2182         $as_echo "$ac_var='\''$ac_val'\''"
2183       done | sort
2184       echo
2185     fi
2186
2187     if test -s confdefs.h; then
2188       $as_echo "## ----------- ##
2189 ## confdefs.h. ##
2190 ## ----------- ##"
2191       echo
2192       cat confdefs.h
2193       echo
2194     fi
2195     test "$ac_signal" != 0 &&
2196       $as_echo "$as_me: caught signal $ac_signal"
2197     $as_echo "$as_me: exit $exit_status"
2198   } >&5
2199   rm -f core *.core core.conftest.* &&
2200     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2201     exit $exit_status
2202 ' 0
2203 for ac_signal in 1 2 13 15; do
2204   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2205 done
2206 ac_signal=0
2207
2208 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2209 rm -f -r conftest* confdefs.h
2210
2211 $as_echo "/* confdefs.h */" > confdefs.h
2212
2213 # Predefined preprocessor variables.
2214
2215 cat >>confdefs.h <<_ACEOF
2216 #define PACKAGE_NAME "$PACKAGE_NAME"
2217 _ACEOF
2218
2219 cat >>confdefs.h <<_ACEOF
2220 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2221 _ACEOF
2222
2223 cat >>confdefs.h <<_ACEOF
2224 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2225 _ACEOF
2226
2227 cat >>confdefs.h <<_ACEOF
2228 #define PACKAGE_STRING "$PACKAGE_STRING"
2229 _ACEOF
2230
2231 cat >>confdefs.h <<_ACEOF
2232 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2233 _ACEOF
2234
2235 cat >>confdefs.h <<_ACEOF
2236 #define PACKAGE_URL "$PACKAGE_URL"
2237 _ACEOF
2238
2239
2240 # Let the site file select an alternate cache file if it wants to.
2241 # Prefer an explicitly selected file to automatically selected ones.
2242 ac_site_file1=NONE
2243 ac_site_file2=NONE
2244 if test -n "$CONFIG_SITE"; then
2245   # We do not want a PATH search for config.site.
2246   case $CONFIG_SITE in #((
2247     -*)  ac_site_file1=./$CONFIG_SITE;;
2248     */*) ac_site_file1=$CONFIG_SITE;;
2249     *)   ac_site_file1=./$CONFIG_SITE;;
2250   esac
2251 elif test "x$prefix" != xNONE; then
2252   ac_site_file1=$prefix/share/config.site
2253   ac_site_file2=$prefix/etc/config.site
2254 else
2255   ac_site_file1=$ac_default_prefix/share/config.site
2256   ac_site_file2=$ac_default_prefix/etc/config.site
2257 fi
2258 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2259 do
2260   test "x$ac_site_file" = xNONE && continue
2261   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2262     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2263 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2264     sed 's/^/| /' "$ac_site_file" >&5
2265     . "$ac_site_file" \
2266       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2267 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2268 as_fn_error $? "failed to load site script $ac_site_file
2269 See \`config.log' for more details" "$LINENO" 5; }
2270   fi
2271 done
2272
2273 if test -r "$cache_file"; then
2274   # Some versions of bash will fail to source /dev/null (special files
2275   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2276   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2277     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2278 $as_echo "$as_me: loading cache $cache_file" >&6;}
2279     case $cache_file in
2280       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2281       *)                      . "./$cache_file";;
2282     esac
2283   fi
2284 else
2285   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2286 $as_echo "$as_me: creating cache $cache_file" >&6;}
2287   >$cache_file
2288 fi
2289
2290 as_fn_append ac_header_list " stdlib.h"
2291 as_fn_append ac_header_list " unistd.h"
2292 as_fn_append ac_header_list " sys/param.h"
2293 # Check that the precious variables saved in the cache have kept the same
2294 # value.
2295 ac_cache_corrupted=false
2296 for ac_var in $ac_precious_vars; do
2297   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2298   eval ac_new_set=\$ac_env_${ac_var}_set
2299   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2300   eval ac_new_val=\$ac_env_${ac_var}_value
2301   case $ac_old_set,$ac_new_set in
2302     set,)
2303       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2304 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2305       ac_cache_corrupted=: ;;
2306     ,set)
2307       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2308 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2309       ac_cache_corrupted=: ;;
2310     ,);;
2311     *)
2312       if test "x$ac_old_val" != "x$ac_new_val"; then
2313         # differences in whitespace do not lead to failure.
2314         ac_old_val_w=`echo x $ac_old_val`
2315         ac_new_val_w=`echo x $ac_new_val`
2316         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2317           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2318 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2319           ac_cache_corrupted=:
2320         else
2321           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2322 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2323           eval $ac_var=\$ac_old_val
2324         fi
2325         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2326 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2327         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2328 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2329       fi;;
2330   esac
2331   # Pass precious variables to config.status.
2332   if test "$ac_new_set" = set; then
2333     case $ac_new_val in
2334     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2335     *) ac_arg=$ac_var=$ac_new_val ;;
2336     esac
2337     case " $ac_configure_args " in
2338       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2339       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2340     esac
2341   fi
2342 done
2343 if $ac_cache_corrupted; then
2344   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2345 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2346   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2347 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2348   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2349 fi
2350 ## -------------------- ##
2351 ## Main body of script. ##
2352 ## -------------------- ##
2353
2354 ac_ext=c
2355 ac_cpp='$CPP $CPPFLAGS'
2356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2359
2360
2361
2362
2363
2364 ac_aux_dir=
2365 for ac_dir in conftools "$srcdir"/conftools; do
2366   if test -f "$ac_dir/install-sh"; then
2367     ac_aux_dir=$ac_dir
2368     ac_install_sh="$ac_aux_dir/install-sh -c"
2369     break
2370   elif test -f "$ac_dir/install.sh"; then
2371     ac_aux_dir=$ac_dir
2372     ac_install_sh="$ac_aux_dir/install.sh -c"
2373     break
2374   elif test -f "$ac_dir/shtool"; then
2375     ac_aux_dir=$ac_dir
2376     ac_install_sh="$ac_aux_dir/shtool install -c"
2377     break
2378   fi
2379 done
2380 if test -z "$ac_aux_dir"; then
2381   as_fn_error $? "cannot find install-sh, install.sh, or shtool in conftools \"$srcdir\"/conftools" "$LINENO" 5
2382 fi
2383
2384 # These three variables are undocumented and unsupported,
2385 # and are intended to be withdrawn in a future Autoconf release.
2386 # They can cause serious problems if a builder's source tree is in a directory
2387 # whose full name contains unusual characters.
2388 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2389 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2390 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2391
2392
2393
2394
2395
2396
2397 LIBCURRENT=7   # sync
2398 LIBREVISION=2  # with
2399 LIBAGE=6       # CMakeLists.txt!
2400
2401 ac_config_headers="$ac_config_headers expat_config.h"
2402
2403
2404
2405
2406
2407 # Make sure we can run config.sub.
2408 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2409   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2410
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2412 $as_echo_n "checking build system type... " >&6; }
2413 if ${ac_cv_build+:} false; then :
2414   $as_echo_n "(cached) " >&6
2415 else
2416   ac_build_alias=$build_alias
2417 test "x$ac_build_alias" = x &&
2418   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2419 test "x$ac_build_alias" = x &&
2420   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2421 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2422   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2423
2424 fi
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2426 $as_echo "$ac_cv_build" >&6; }
2427 case $ac_cv_build in
2428 *-*-*) ;;
2429 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2430 esac
2431 build=$ac_cv_build
2432 ac_save_IFS=$IFS; IFS='-'
2433 set x $ac_cv_build
2434 shift
2435 build_cpu=$1
2436 build_vendor=$2
2437 shift; shift
2438 # Remember, the first character of IFS is used to create $*,
2439 # except with old shells:
2440 build_os=$*
2441 IFS=$ac_save_IFS
2442 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2443
2444
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2446 $as_echo_n "checking host system type... " >&6; }
2447 if ${ac_cv_host+:} false; then :
2448   $as_echo_n "(cached) " >&6
2449 else
2450   if test "x$host_alias" = x; then
2451   ac_cv_host=$ac_cv_build
2452 else
2453   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2454     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2455 fi
2456
2457 fi
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2459 $as_echo "$ac_cv_host" >&6; }
2460 case $ac_cv_host in
2461 *-*-*) ;;
2462 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2463 esac
2464 host=$ac_cv_host
2465 ac_save_IFS=$IFS; IFS='-'
2466 set x $ac_cv_host
2467 shift
2468 host_cpu=$1
2469 host_vendor=$2
2470 shift; shift
2471 # Remember, the first character of IFS is used to create $*,
2472 # except with old shells:
2473 host_os=$*
2474 IFS=$ac_save_IFS
2475 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2476
2477
2478 enable_win32_dll=yes
2479
2480 case $host in
2481 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
2482   if test -n "$ac_tool_prefix"; then
2483   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2484 set dummy ${ac_tool_prefix}as; ac_word=$2
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2486 $as_echo_n "checking for $ac_word... " >&6; }
2487 if ${ac_cv_prog_AS+:} false; then :
2488   $as_echo_n "(cached) " >&6
2489 else
2490   if test -n "$AS"; then
2491   ac_cv_prog_AS="$AS" # Let the user override the test.
2492 else
2493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2494 for as_dir in $PATH
2495 do
2496   IFS=$as_save_IFS
2497   test -z "$as_dir" && as_dir=.
2498     for ac_exec_ext in '' $ac_executable_extensions; do
2499   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2500     ac_cv_prog_AS="${ac_tool_prefix}as"
2501     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2502     break 2
2503   fi
2504 done
2505   done
2506 IFS=$as_save_IFS
2507
2508 fi
2509 fi
2510 AS=$ac_cv_prog_AS
2511 if test -n "$AS"; then
2512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
2513 $as_echo "$AS" >&6; }
2514 else
2515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2516 $as_echo "no" >&6; }
2517 fi
2518
2519
2520 fi
2521 if test -z "$ac_cv_prog_AS"; then
2522   ac_ct_AS=$AS
2523   # Extract the first word of "as", so it can be a program name with args.
2524 set dummy as; ac_word=$2
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2526 $as_echo_n "checking for $ac_word... " >&6; }
2527 if ${ac_cv_prog_ac_ct_AS+:} false; then :
2528   $as_echo_n "(cached) " >&6
2529 else
2530   if test -n "$ac_ct_AS"; then
2531   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
2532 else
2533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2534 for as_dir in $PATH
2535 do
2536   IFS=$as_save_IFS
2537   test -z "$as_dir" && as_dir=.
2538     for ac_exec_ext in '' $ac_executable_extensions; do
2539   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2540     ac_cv_prog_ac_ct_AS="as"
2541     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2542     break 2
2543   fi
2544 done
2545   done
2546 IFS=$as_save_IFS
2547
2548 fi
2549 fi
2550 ac_ct_AS=$ac_cv_prog_ac_ct_AS
2551 if test -n "$ac_ct_AS"; then
2552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
2553 $as_echo "$ac_ct_AS" >&6; }
2554 else
2555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2556 $as_echo "no" >&6; }
2557 fi
2558
2559   if test "x$ac_ct_AS" = x; then
2560     AS="false"
2561   else
2562     case $cross_compiling:$ac_tool_warned in
2563 yes:)
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2565 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2566 ac_tool_warned=yes ;;
2567 esac
2568     AS=$ac_ct_AS
2569   fi
2570 else
2571   AS="$ac_cv_prog_AS"
2572 fi
2573
2574   if test -n "$ac_tool_prefix"; then
2575   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
2576 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2578 $as_echo_n "checking for $ac_word... " >&6; }
2579 if ${ac_cv_prog_DLLTOOL+:} false; then :
2580   $as_echo_n "(cached) " >&6
2581 else
2582   if test -n "$DLLTOOL"; then
2583   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2584 else
2585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2586 for as_dir in $PATH
2587 do
2588   IFS=$as_save_IFS
2589   test -z "$as_dir" && as_dir=.
2590     for ac_exec_ext in '' $ac_executable_extensions; do
2591   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2592     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
2593     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2594     break 2
2595   fi
2596 done
2597   done
2598 IFS=$as_save_IFS
2599
2600 fi
2601 fi
2602 DLLTOOL=$ac_cv_prog_DLLTOOL
2603 if test -n "$DLLTOOL"; then
2604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
2605 $as_echo "$DLLTOOL" >&6; }
2606 else
2607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2608 $as_echo "no" >&6; }
2609 fi
2610
2611
2612 fi
2613 if test -z "$ac_cv_prog_DLLTOOL"; then
2614   ac_ct_DLLTOOL=$DLLTOOL
2615   # Extract the first word of "dlltool", so it can be a program name with args.
2616 set dummy dlltool; ac_word=$2
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2618 $as_echo_n "checking for $ac_word... " >&6; }
2619 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
2620   $as_echo_n "(cached) " >&6
2621 else
2622   if test -n "$ac_ct_DLLTOOL"; then
2623   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
2624 else
2625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2626 for as_dir in $PATH
2627 do
2628   IFS=$as_save_IFS
2629   test -z "$as_dir" && as_dir=.
2630     for ac_exec_ext in '' $ac_executable_extensions; do
2631   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2632     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
2633     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2634     break 2
2635   fi
2636 done
2637   done
2638 IFS=$as_save_IFS
2639
2640 fi
2641 fi
2642 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
2643 if test -n "$ac_ct_DLLTOOL"; then
2644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
2645 $as_echo "$ac_ct_DLLTOOL" >&6; }
2646 else
2647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2648 $as_echo "no" >&6; }
2649 fi
2650
2651   if test "x$ac_ct_DLLTOOL" = x; then
2652     DLLTOOL="false"
2653   else
2654     case $cross_compiling:$ac_tool_warned in
2655 yes:)
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2657 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2658 ac_tool_warned=yes ;;
2659 esac
2660     DLLTOOL=$ac_ct_DLLTOOL
2661   fi
2662 else
2663   DLLTOOL="$ac_cv_prog_DLLTOOL"
2664 fi
2665
2666   if test -n "$ac_tool_prefix"; then
2667   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
2668 set dummy ${ac_tool_prefix}objdump; ac_word=$2
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2670 $as_echo_n "checking for $ac_word... " >&6; }
2671 if ${ac_cv_prog_OBJDUMP+:} false; then :
2672   $as_echo_n "(cached) " >&6
2673 else
2674   if test -n "$OBJDUMP"; then
2675   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
2676 else
2677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2678 for as_dir in $PATH
2679 do
2680   IFS=$as_save_IFS
2681   test -z "$as_dir" && as_dir=.
2682     for ac_exec_ext in '' $ac_executable_extensions; do
2683   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2684     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
2685     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2686     break 2
2687   fi
2688 done
2689   done
2690 IFS=$as_save_IFS
2691
2692 fi
2693 fi
2694 OBJDUMP=$ac_cv_prog_OBJDUMP
2695 if test -n "$OBJDUMP"; then
2696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
2697 $as_echo "$OBJDUMP" >&6; }
2698 else
2699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2700 $as_echo "no" >&6; }
2701 fi
2702
2703
2704 fi
2705 if test -z "$ac_cv_prog_OBJDUMP"; then
2706   ac_ct_OBJDUMP=$OBJDUMP
2707   # Extract the first word of "objdump", so it can be a program name with args.
2708 set dummy objdump; ac_word=$2
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2710 $as_echo_n "checking for $ac_word... " >&6; }
2711 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
2712   $as_echo_n "(cached) " >&6
2713 else
2714   if test -n "$ac_ct_OBJDUMP"; then
2715   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
2716 else
2717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2718 for as_dir in $PATH
2719 do
2720   IFS=$as_save_IFS
2721   test -z "$as_dir" && as_dir=.
2722     for ac_exec_ext in '' $ac_executable_extensions; do
2723   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2724     ac_cv_prog_ac_ct_OBJDUMP="objdump"
2725     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2726     break 2
2727   fi
2728 done
2729   done
2730 IFS=$as_save_IFS
2731
2732 fi
2733 fi
2734 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
2735 if test -n "$ac_ct_OBJDUMP"; then
2736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
2737 $as_echo "$ac_ct_OBJDUMP" >&6; }
2738 else
2739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2740 $as_echo "no" >&6; }
2741 fi
2742
2743   if test "x$ac_ct_OBJDUMP" = x; then
2744     OBJDUMP="false"
2745   else
2746     case $cross_compiling:$ac_tool_warned in
2747 yes:)
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2749 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2750 ac_tool_warned=yes ;;
2751 esac
2752     OBJDUMP=$ac_ct_OBJDUMP
2753   fi
2754 else
2755   OBJDUMP="$ac_cv_prog_OBJDUMP"
2756 fi
2757
2758   ;;
2759 esac
2760
2761 test -z "$AS" && AS=as
2762
2763
2764
2765
2766
2767 test -z "$DLLTOOL" && DLLTOOL=dlltool
2768
2769
2770
2771
2772
2773 test -z "$OBJDUMP" && OBJDUMP=objdump
2774
2775
2776
2777
2778
2779
2780
2781 case `pwd` in
2782   *\ * | *\     *)
2783     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2784 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2785 esac
2786
2787
2788
2789 macro_version='2.4.6'
2790 macro_revision='2.4.6'
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804 ltmain=$ac_aux_dir/ltmain.sh
2805
2806 # Backslashify metacharacters that are still active within
2807 # double-quoted strings.
2808 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2809
2810 # Same as above, but do not quote variable references.
2811 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2812
2813 # Sed substitution to delay expansion of an escaped shell variable in a
2814 # double_quote_subst'ed string.
2815 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2816
2817 # Sed substitution to delay expansion of an escaped single quote.
2818 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2819
2820 # Sed substitution to avoid accidental globbing in evaled expressions
2821 no_glob_subst='s/\*/\\\*/g'
2822
2823 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2824 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2825 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2826
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2828 $as_echo_n "checking how to print strings... " >&6; }
2829 # Test print first, because it will be a builtin if present.
2830 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2831    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2832   ECHO='print -r --'
2833 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2834   ECHO='printf %s\n'
2835 else
2836   # Use this function as a fallback that always works.
2837   func_fallback_echo ()
2838   {
2839     eval 'cat <<_LTECHO_EOF
2840 $1
2841 _LTECHO_EOF'
2842   }
2843   ECHO='func_fallback_echo'
2844 fi
2845
2846 # func_echo_all arg...
2847 # Invoke $ECHO with all args, space-separated.
2848 func_echo_all ()
2849 {
2850     $ECHO ""
2851 }
2852
2853 case $ECHO in
2854   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2855 $as_echo "printf" >&6; } ;;
2856   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2857 $as_echo "print -r" >&6; } ;;
2858   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2859 $as_echo "cat" >&6; } ;;
2860 esac
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875 ac_ext=c
2876 ac_cpp='$CPP $CPPFLAGS'
2877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2880 if test -n "$ac_tool_prefix"; then
2881   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2882 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2884 $as_echo_n "checking for $ac_word... " >&6; }
2885 if ${ac_cv_prog_CC+:} false; then :
2886   $as_echo_n "(cached) " >&6
2887 else
2888   if test -n "$CC"; then
2889   ac_cv_prog_CC="$CC" # Let the user override the test.
2890 else
2891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2892 for as_dir in $PATH
2893 do
2894   IFS=$as_save_IFS
2895   test -z "$as_dir" && as_dir=.
2896     for ac_exec_ext in '' $ac_executable_extensions; do
2897   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2898     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2899     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2900     break 2
2901   fi
2902 done
2903   done
2904 IFS=$as_save_IFS
2905
2906 fi
2907 fi
2908 CC=$ac_cv_prog_CC
2909 if test -n "$CC"; then
2910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2911 $as_echo "$CC" >&6; }
2912 else
2913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2914 $as_echo "no" >&6; }
2915 fi
2916
2917
2918 fi
2919 if test -z "$ac_cv_prog_CC"; then
2920   ac_ct_CC=$CC
2921   # Extract the first word of "gcc", so it can be a program name with args.
2922 set dummy gcc; ac_word=$2
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2924 $as_echo_n "checking for $ac_word... " >&6; }
2925 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2926   $as_echo_n "(cached) " >&6
2927 else
2928   if test -n "$ac_ct_CC"; then
2929   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2930 else
2931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2932 for as_dir in $PATH
2933 do
2934   IFS=$as_save_IFS
2935   test -z "$as_dir" && as_dir=.
2936     for ac_exec_ext in '' $ac_executable_extensions; do
2937   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2938     ac_cv_prog_ac_ct_CC="gcc"
2939     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2940     break 2
2941   fi
2942 done
2943   done
2944 IFS=$as_save_IFS
2945
2946 fi
2947 fi
2948 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2949 if test -n "$ac_ct_CC"; then
2950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2951 $as_echo "$ac_ct_CC" >&6; }
2952 else
2953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2954 $as_echo "no" >&6; }
2955 fi
2956
2957   if test "x$ac_ct_CC" = x; then
2958     CC=""
2959   else
2960     case $cross_compiling:$ac_tool_warned in
2961 yes:)
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2963 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2964 ac_tool_warned=yes ;;
2965 esac
2966     CC=$ac_ct_CC
2967   fi
2968 else
2969   CC="$ac_cv_prog_CC"
2970 fi
2971
2972 if test -z "$CC"; then
2973           if test -n "$ac_tool_prefix"; then
2974     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2975 set dummy ${ac_tool_prefix}cc; ac_word=$2
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2977 $as_echo_n "checking for $ac_word... " >&6; }
2978 if ${ac_cv_prog_CC+:} false; then :
2979   $as_echo_n "(cached) " >&6
2980 else
2981   if test -n "$CC"; then
2982   ac_cv_prog_CC="$CC" # Let the user override the test.
2983 else
2984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2985 for as_dir in $PATH
2986 do
2987   IFS=$as_save_IFS
2988   test -z "$as_dir" && as_dir=.
2989     for ac_exec_ext in '' $ac_executable_extensions; do
2990   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2991     ac_cv_prog_CC="${ac_tool_prefix}cc"
2992     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2993     break 2
2994   fi
2995 done
2996   done
2997 IFS=$as_save_IFS
2998
2999 fi
3000 fi
3001 CC=$ac_cv_prog_CC
3002 if test -n "$CC"; then
3003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3004 $as_echo "$CC" >&6; }
3005 else
3006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3007 $as_echo "no" >&6; }
3008 fi
3009
3010
3011   fi
3012 fi
3013 if test -z "$CC"; then
3014   # Extract the first word of "cc", so it can be a program name with args.
3015 set dummy cc; ac_word=$2
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3017 $as_echo_n "checking for $ac_word... " >&6; }
3018 if ${ac_cv_prog_CC+:} false; then :
3019   $as_echo_n "(cached) " >&6
3020 else
3021   if test -n "$CC"; then
3022   ac_cv_prog_CC="$CC" # Let the user override the test.
3023 else
3024   ac_prog_rejected=no
3025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3026 for as_dir in $PATH
3027 do
3028   IFS=$as_save_IFS
3029   test -z "$as_dir" && as_dir=.
3030     for ac_exec_ext in '' $ac_executable_extensions; do
3031   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3032     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3033        ac_prog_rejected=yes
3034        continue
3035      fi
3036     ac_cv_prog_CC="cc"
3037     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3038     break 2
3039   fi
3040 done
3041   done
3042 IFS=$as_save_IFS
3043
3044 if test $ac_prog_rejected = yes; then
3045   # We found a bogon in the path, so make sure we never use it.
3046   set dummy $ac_cv_prog_CC
3047   shift
3048   if test $# != 0; then
3049     # We chose a different compiler from the bogus one.
3050     # However, it has the same basename, so the bogon will be chosen
3051     # first if we set CC to just the basename; use the full file name.
3052     shift
3053     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3054   fi
3055 fi
3056 fi
3057 fi
3058 CC=$ac_cv_prog_CC
3059 if test -n "$CC"; then
3060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3061 $as_echo "$CC" >&6; }
3062 else
3063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3064 $as_echo "no" >&6; }
3065 fi
3066
3067
3068 fi
3069 if test -z "$CC"; then
3070   if test -n "$ac_tool_prefix"; then
3071   for ac_prog in cl.exe
3072   do
3073     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3074 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3076 $as_echo_n "checking for $ac_word... " >&6; }
3077 if ${ac_cv_prog_CC+:} false; then :
3078   $as_echo_n "(cached) " >&6
3079 else
3080   if test -n "$CC"; then
3081   ac_cv_prog_CC="$CC" # Let the user override the test.
3082 else
3083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3084 for as_dir in $PATH
3085 do
3086   IFS=$as_save_IFS
3087   test -z "$as_dir" && as_dir=.
3088     for ac_exec_ext in '' $ac_executable_extensions; do
3089   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3090     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3091     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3092     break 2
3093   fi
3094 done
3095   done
3096 IFS=$as_save_IFS
3097
3098 fi
3099 fi
3100 CC=$ac_cv_prog_CC
3101 if test -n "$CC"; then
3102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3103 $as_echo "$CC" >&6; }
3104 else
3105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3106 $as_echo "no" >&6; }
3107 fi
3108
3109
3110     test -n "$CC" && break
3111   done
3112 fi
3113 if test -z "$CC"; then
3114   ac_ct_CC=$CC
3115   for ac_prog in cl.exe
3116 do
3117   # Extract the first word of "$ac_prog", so it can be a program name with args.
3118 set dummy $ac_prog; ac_word=$2
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3120 $as_echo_n "checking for $ac_word... " >&6; }
3121 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3122   $as_echo_n "(cached) " >&6
3123 else
3124   if test -n "$ac_ct_CC"; then
3125   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3126 else
3127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3128 for as_dir in $PATH
3129 do
3130   IFS=$as_save_IFS
3131   test -z "$as_dir" && as_dir=.
3132     for ac_exec_ext in '' $ac_executable_extensions; do
3133   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3134     ac_cv_prog_ac_ct_CC="$ac_prog"
3135     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3136     break 2
3137   fi
3138 done
3139   done
3140 IFS=$as_save_IFS
3141
3142 fi
3143 fi
3144 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3145 if test -n "$ac_ct_CC"; then
3146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3147 $as_echo "$ac_ct_CC" >&6; }
3148 else
3149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3150 $as_echo "no" >&6; }
3151 fi
3152
3153
3154   test -n "$ac_ct_CC" && break
3155 done
3156
3157   if test "x$ac_ct_CC" = x; then
3158     CC=""
3159   else
3160     case $cross_compiling:$ac_tool_warned in
3161 yes:)
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3163 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3164 ac_tool_warned=yes ;;
3165 esac
3166     CC=$ac_ct_CC
3167   fi
3168 fi
3169
3170 fi
3171
3172
3173 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3174 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3175 as_fn_error $? "no acceptable C compiler found in \$PATH
3176 See \`config.log' for more details" "$LINENO" 5; }
3177
3178 # Provide some information about the compiler.
3179 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3180 set X $ac_compile
3181 ac_compiler=$2
3182 for ac_option in --version -v -V -qversion; do
3183   { { ac_try="$ac_compiler $ac_option >&5"
3184 case "(($ac_try" in
3185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3186   *) ac_try_echo=$ac_try;;
3187 esac
3188 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3189 $as_echo "$ac_try_echo"; } >&5
3190   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3191   ac_status=$?
3192   if test -s conftest.err; then
3193     sed '10a\
3194 ... rest of stderr output deleted ...
3195          10q' conftest.err >conftest.er1
3196     cat conftest.er1 >&5
3197   fi
3198   rm -f conftest.er1 conftest.err
3199   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3200   test $ac_status = 0; }
3201 done
3202
3203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3204 /* end confdefs.h.  */
3205
3206 int
3207 main ()
3208 {
3209
3210   ;
3211   return 0;
3212 }
3213 _ACEOF
3214 ac_clean_files_save=$ac_clean_files
3215 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3216 # Try to create an executable without -o first, disregard a.out.
3217 # It will help us diagnose broken compilers, and finding out an intuition
3218 # of exeext.
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3220 $as_echo_n "checking whether the C compiler works... " >&6; }
3221 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3222
3223 # The possible output files:
3224 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3225
3226 ac_rmfiles=
3227 for ac_file in $ac_files
3228 do
3229   case $ac_file in
3230     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3231     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3232   esac
3233 done
3234 rm -f $ac_rmfiles
3235
3236 if { { ac_try="$ac_link_default"
3237 case "(($ac_try" in
3238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3239   *) ac_try_echo=$ac_try;;
3240 esac
3241 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3242 $as_echo "$ac_try_echo"; } >&5
3243   (eval "$ac_link_default") 2>&5
3244   ac_status=$?
3245   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3246   test $ac_status = 0; }; then :
3247   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3248 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3249 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3250 # so that the user can short-circuit this test for compilers unknown to
3251 # Autoconf.
3252 for ac_file in $ac_files ''
3253 do
3254   test -f "$ac_file" || continue
3255   case $ac_file in
3256     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3257         ;;
3258     [ab].out )
3259         # We found the default executable, but exeext='' is most
3260         # certainly right.
3261         break;;
3262     *.* )
3263         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3264         then :; else
3265            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3266         fi
3267         # We set ac_cv_exeext here because the later test for it is not
3268         # safe: cross compilers may not add the suffix if given an `-o'
3269         # argument, so we may need to know it at that point already.
3270         # Even if this section looks crufty: it has the advantage of
3271         # actually working.
3272         break;;
3273     * )
3274         break;;
3275   esac
3276 done
3277 test "$ac_cv_exeext" = no && ac_cv_exeext=
3278
3279 else
3280   ac_file=''
3281 fi
3282 if test -z "$ac_file"; then :
3283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3284 $as_echo "no" >&6; }
3285 $as_echo "$as_me: failed program was:" >&5
3286 sed 's/^/| /' conftest.$ac_ext >&5
3287
3288 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3289 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3290 as_fn_error 77 "C compiler cannot create executables
3291 See \`config.log' for more details" "$LINENO" 5; }
3292 else
3293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3294 $as_echo "yes" >&6; }
3295 fi
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3297 $as_echo_n "checking for C compiler default output file name... " >&6; }
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3299 $as_echo "$ac_file" >&6; }
3300 ac_exeext=$ac_cv_exeext
3301
3302 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3303 ac_clean_files=$ac_clean_files_save
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3305 $as_echo_n "checking for suffix of executables... " >&6; }
3306 if { { ac_try="$ac_link"
3307 case "(($ac_try" in
3308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3309   *) ac_try_echo=$ac_try;;
3310 esac
3311 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3312 $as_echo "$ac_try_echo"; } >&5
3313   (eval "$ac_link") 2>&5
3314   ac_status=$?
3315   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3316   test $ac_status = 0; }; then :
3317   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3318 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3319 # work properly (i.e., refer to `conftest.exe'), while it won't with
3320 # `rm'.
3321 for ac_file in conftest.exe conftest conftest.*; do
3322   test -f "$ac_file" || continue
3323   case $ac_file in
3324     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3325     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3326           break;;
3327     * ) break;;
3328   esac
3329 done
3330 else
3331   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3332 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3333 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3334 See \`config.log' for more details" "$LINENO" 5; }
3335 fi
3336 rm -f conftest conftest$ac_cv_exeext
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3338 $as_echo "$ac_cv_exeext" >&6; }
3339
3340 rm -f conftest.$ac_ext
3341 EXEEXT=$ac_cv_exeext
3342 ac_exeext=$EXEEXT
3343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3344 /* end confdefs.h.  */
3345 #include <stdio.h>
3346 int
3347 main ()
3348 {
3349 FILE *f = fopen ("conftest.out", "w");
3350  return ferror (f) || fclose (f) != 0;
3351
3352   ;
3353   return 0;
3354 }
3355 _ACEOF
3356 ac_clean_files="$ac_clean_files conftest.out"
3357 # Check that the compiler produces executables we can run.  If not, either
3358 # the compiler is broken, or we cross compile.
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3360 $as_echo_n "checking whether we are cross compiling... " >&6; }
3361 if test "$cross_compiling" != yes; then
3362   { { ac_try="$ac_link"
3363 case "(($ac_try" in
3364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3365   *) ac_try_echo=$ac_try;;
3366 esac
3367 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3368 $as_echo "$ac_try_echo"; } >&5
3369   (eval "$ac_link") 2>&5
3370   ac_status=$?
3371   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3372   test $ac_status = 0; }
3373   if { ac_try='./conftest$ac_cv_exeext'
3374   { { case "(($ac_try" in
3375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3376   *) ac_try_echo=$ac_try;;
3377 esac
3378 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3379 $as_echo "$ac_try_echo"; } >&5
3380   (eval "$ac_try") 2>&5
3381   ac_status=$?
3382   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3383   test $ac_status = 0; }; }; then
3384     cross_compiling=no
3385   else
3386     if test "$cross_compiling" = maybe; then
3387         cross_compiling=yes
3388     else
3389         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3390 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3391 as_fn_error $? "cannot run C compiled programs.
3392 If you meant to cross compile, use \`--host'.
3393 See \`config.log' for more details" "$LINENO" 5; }
3394     fi
3395   fi
3396 fi
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3398 $as_echo "$cross_compiling" >&6; }
3399
3400 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3401 ac_clean_files=$ac_clean_files_save
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3403 $as_echo_n "checking for suffix of object files... " >&6; }
3404 if ${ac_cv_objext+:} false; then :
3405   $as_echo_n "(cached) " >&6
3406 else
3407   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3408 /* end confdefs.h.  */
3409
3410 int
3411 main ()
3412 {
3413
3414   ;
3415   return 0;
3416 }
3417 _ACEOF
3418 rm -f conftest.o conftest.obj
3419 if { { ac_try="$ac_compile"
3420 case "(($ac_try" in
3421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3422   *) ac_try_echo=$ac_try;;
3423 esac
3424 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3425 $as_echo "$ac_try_echo"; } >&5
3426   (eval "$ac_compile") 2>&5
3427   ac_status=$?
3428   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3429   test $ac_status = 0; }; then :
3430   for ac_file in conftest.o conftest.obj conftest.*; do
3431   test -f "$ac_file" || continue;
3432   case $ac_file in
3433     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3434     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3435        break;;
3436   esac
3437 done
3438 else
3439   $as_echo "$as_me: failed program was:" >&5
3440 sed 's/^/| /' conftest.$ac_ext >&5
3441
3442 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3443 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3444 as_fn_error $? "cannot compute suffix of object files: cannot compile
3445 See \`config.log' for more details" "$LINENO" 5; }
3446 fi
3447 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3448 fi
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3450 $as_echo "$ac_cv_objext" >&6; }
3451 OBJEXT=$ac_cv_objext
3452 ac_objext=$OBJEXT
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3454 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3455 if ${ac_cv_c_compiler_gnu+:} false; then :
3456   $as_echo_n "(cached) " >&6
3457 else
3458   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3459 /* end confdefs.h.  */
3460
3461 int
3462 main ()
3463 {
3464 #ifndef __GNUC__
3465        choke me
3466 #endif
3467
3468   ;
3469   return 0;
3470 }
3471 _ACEOF
3472 if ac_fn_c_try_compile "$LINENO"; then :
3473   ac_compiler_gnu=yes
3474 else
3475   ac_compiler_gnu=no
3476 fi
3477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3478 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3479
3480 fi
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3482 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3483 if test $ac_compiler_gnu = yes; then
3484   GCC=yes
3485 else
3486   GCC=
3487 fi
3488 ac_test_CFLAGS=${CFLAGS+set}
3489 ac_save_CFLAGS=$CFLAGS
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3491 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3492 if ${ac_cv_prog_cc_g+:} false; then :
3493   $as_echo_n "(cached) " >&6
3494 else
3495   ac_save_c_werror_flag=$ac_c_werror_flag
3496    ac_c_werror_flag=yes
3497    ac_cv_prog_cc_g=no
3498    CFLAGS="-g"
3499    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3500 /* end confdefs.h.  */
3501
3502 int
3503 main ()
3504 {
3505
3506   ;
3507   return 0;
3508 }
3509 _ACEOF
3510 if ac_fn_c_try_compile "$LINENO"; then :
3511   ac_cv_prog_cc_g=yes
3512 else
3513   CFLAGS=""
3514       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3515 /* end confdefs.h.  */
3516
3517 int
3518 main ()
3519 {
3520
3521   ;
3522   return 0;
3523 }
3524 _ACEOF
3525 if ac_fn_c_try_compile "$LINENO"; then :
3526
3527 else
3528   ac_c_werror_flag=$ac_save_c_werror_flag
3529          CFLAGS="-g"
3530          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3531 /* end confdefs.h.  */
3532
3533 int
3534 main ()
3535 {
3536
3537   ;
3538   return 0;
3539 }
3540 _ACEOF
3541 if ac_fn_c_try_compile "$LINENO"; then :
3542   ac_cv_prog_cc_g=yes
3543 fi
3544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3545 fi
3546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3547 fi
3548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3549    ac_c_werror_flag=$ac_save_c_werror_flag
3550 fi
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3552 $as_echo "$ac_cv_prog_cc_g" >&6; }
3553 if test "$ac_test_CFLAGS" = set; then
3554   CFLAGS=$ac_save_CFLAGS
3555 elif test $ac_cv_prog_cc_g = yes; then
3556   if test "$GCC" = yes; then
3557     CFLAGS="-g -O2"
3558   else
3559     CFLAGS="-g"
3560   fi
3561 else
3562   if test "$GCC" = yes; then
3563     CFLAGS="-O2"
3564   else
3565     CFLAGS=
3566   fi
3567 fi
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3569 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3570 if ${ac_cv_prog_cc_c89+:} false; then :
3571   $as_echo_n "(cached) " >&6
3572 else
3573   ac_cv_prog_cc_c89=no
3574 ac_save_CC=$CC
3575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3576 /* end confdefs.h.  */
3577 #include <stdarg.h>
3578 #include <stdio.h>
3579 struct stat;
3580 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3581 struct buf { int x; };
3582 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3583 static char *e (p, i)
3584      char **p;
3585      int i;
3586 {
3587   return p[i];
3588 }
3589 static char *f (char * (*g) (char **, int), char **p, ...)
3590 {
3591   char *s;
3592   va_list v;
3593   va_start (v,p);
3594   s = g (p, va_arg (v,int));
3595   va_end (v);
3596   return s;
3597 }
3598
3599 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3600    function prototypes and stuff, but not '\xHH' hex character constants.
3601    These don't provoke an error unfortunately, instead are silently treated
3602    as 'x'.  The following induces an error, until -std is added to get
3603    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3604    array size at least.  It's necessary to write '\x00'==0 to get something
3605    that's true only with -std.  */
3606 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3607
3608 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3609    inside strings and character constants.  */
3610 #define FOO(x) 'x'
3611 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3612
3613 int test (int i, double x);
3614 struct s1 {int (*f) (int a);};
3615 struct s2 {int (*f) (double a);};
3616 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3617 int argc;
3618 char **argv;
3619 int
3620 main ()
3621 {
3622 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3623   ;
3624   return 0;
3625 }
3626 _ACEOF
3627 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3628         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3629 do
3630   CC="$ac_save_CC $ac_arg"
3631   if ac_fn_c_try_compile "$LINENO"; then :
3632   ac_cv_prog_cc_c89=$ac_arg
3633 fi
3634 rm -f core conftest.err conftest.$ac_objext
3635   test "x$ac_cv_prog_cc_c89" != "xno" && break
3636 done
3637 rm -f conftest.$ac_ext
3638 CC=$ac_save_CC
3639
3640 fi
3641 # AC_CACHE_VAL
3642 case "x$ac_cv_prog_cc_c89" in
3643   x)
3644     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3645 $as_echo "none needed" >&6; } ;;
3646   xno)
3647     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3648 $as_echo "unsupported" >&6; } ;;
3649   *)
3650     CC="$CC $ac_cv_prog_cc_c89"
3651     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3652 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3653 esac
3654 if test "x$ac_cv_prog_cc_c89" != xno; then :
3655
3656 fi
3657
3658 ac_ext=c
3659 ac_cpp='$CPP $CPPFLAGS'
3660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3663
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3665 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3666 if ${ac_cv_path_SED+:} false; then :
3667   $as_echo_n "(cached) " >&6
3668 else
3669             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3670      for ac_i in 1 2 3 4 5 6 7; do
3671        ac_script="$ac_script$as_nl$ac_script"
3672      done
3673      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3674      { ac_script=; unset ac_script;}
3675      if test -z "$SED"; then
3676   ac_path_SED_found=false
3677   # Loop through the user's path and test for each of PROGNAME-LIST
3678   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3679 for as_dir in $PATH
3680 do
3681   IFS=$as_save_IFS
3682   test -z "$as_dir" && as_dir=.
3683     for ac_prog in sed gsed; do
3684     for ac_exec_ext in '' $ac_executable_extensions; do
3685       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3686       as_fn_executable_p "$ac_path_SED" || continue
3687 # Check for GNU ac_path_SED and select it if it is found.
3688   # Check for GNU $ac_path_SED
3689 case `"$ac_path_SED" --version 2>&1` in
3690 *GNU*)
3691   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3692 *)
3693   ac_count=0
3694   $as_echo_n 0123456789 >"conftest.in"
3695   while :
3696   do
3697     cat "conftest.in" "conftest.in" >"conftest.tmp"
3698     mv "conftest.tmp" "conftest.in"
3699     cp "conftest.in" "conftest.nl"
3700     $as_echo '' >> "conftest.nl"
3701     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3702     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3703     as_fn_arith $ac_count + 1 && ac_count=$as_val
3704     if test $ac_count -gt ${ac_path_SED_max-0}; then
3705       # Best one so far, save it but keep looking for a better one
3706       ac_cv_path_SED="$ac_path_SED"
3707       ac_path_SED_max=$ac_count
3708     fi
3709     # 10*(2^10) chars as input seems more than enough
3710     test $ac_count -gt 10 && break
3711   done
3712   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3713 esac
3714
3715       $ac_path_SED_found && break 3
3716     done
3717   done
3718   done
3719 IFS=$as_save_IFS
3720   if test -z "$ac_cv_path_SED"; then
3721     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3722   fi
3723 else
3724   ac_cv_path_SED=$SED
3725 fi
3726
3727 fi
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3729 $as_echo "$ac_cv_path_SED" >&6; }
3730  SED="$ac_cv_path_SED"
3731   rm -f conftest.sed
3732
3733 test -z "$SED" && SED=sed
3734 Xsed="$SED -e 1s/^X//"
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3747 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3748 if ${ac_cv_path_GREP+:} false; then :
3749   $as_echo_n "(cached) " >&6
3750 else
3751   if test -z "$GREP"; then
3752   ac_path_GREP_found=false
3753   # Loop through the user's path and test for each of PROGNAME-LIST
3754   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3755 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3756 do
3757   IFS=$as_save_IFS
3758   test -z "$as_dir" && as_dir=.
3759     for ac_prog in grep ggrep; do
3760     for ac_exec_ext in '' $ac_executable_extensions; do
3761       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3762       as_fn_executable_p "$ac_path_GREP" || continue
3763 # Check for GNU ac_path_GREP and select it if it is found.
3764   # Check for GNU $ac_path_GREP
3765 case `"$ac_path_GREP" --version 2>&1` in
3766 *GNU*)
3767   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3768 *)
3769   ac_count=0
3770   $as_echo_n 0123456789 >"conftest.in"
3771   while :
3772   do
3773     cat "conftest.in" "conftest.in" >"conftest.tmp"
3774     mv "conftest.tmp" "conftest.in"
3775     cp "conftest.in" "conftest.nl"
3776     $as_echo 'GREP' >> "conftest.nl"
3777     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3778     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3779     as_fn_arith $ac_count + 1 && ac_count=$as_val
3780     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3781       # Best one so far, save it but keep looking for a better one
3782       ac_cv_path_GREP="$ac_path_GREP"
3783       ac_path_GREP_max=$ac_count
3784     fi
3785     # 10*(2^10) chars as input seems more than enough
3786     test $ac_count -gt 10 && break
3787   done
3788   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3789 esac
3790
3791       $ac_path_GREP_found && break 3
3792     done
3793   done
3794   done
3795 IFS=$as_save_IFS
3796   if test -z "$ac_cv_path_GREP"; then
3797     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3798   fi
3799 else
3800   ac_cv_path_GREP=$GREP
3801 fi
3802
3803 fi
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3805 $as_echo "$ac_cv_path_GREP" >&6; }
3806  GREP="$ac_cv_path_GREP"
3807
3808
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3810 $as_echo_n "checking for egrep... " >&6; }
3811 if ${ac_cv_path_EGREP+:} false; then :
3812   $as_echo_n "(cached) " >&6
3813 else
3814   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3815    then ac_cv_path_EGREP="$GREP -E"
3816    else
3817      if test -z "$EGREP"; then
3818   ac_path_EGREP_found=false
3819   # Loop through the user's path and test for each of PROGNAME-LIST
3820   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3821 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3822 do
3823   IFS=$as_save_IFS
3824   test -z "$as_dir" && as_dir=.
3825     for ac_prog in egrep; do
3826     for ac_exec_ext in '' $ac_executable_extensions; do
3827       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3828       as_fn_executable_p "$ac_path_EGREP" || continue
3829 # Check for GNU ac_path_EGREP and select it if it is found.
3830   # Check for GNU $ac_path_EGREP
3831 case `"$ac_path_EGREP" --version 2>&1` in
3832 *GNU*)
3833   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3834 *)
3835   ac_count=0
3836   $as_echo_n 0123456789 >"conftest.in"
3837   while :
3838   do
3839     cat "conftest.in" "conftest.in" >"conftest.tmp"
3840     mv "conftest.tmp" "conftest.in"
3841     cp "conftest.in" "conftest.nl"
3842     $as_echo 'EGREP' >> "conftest.nl"
3843     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3844     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3845     as_fn_arith $ac_count + 1 && ac_count=$as_val
3846     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3847       # Best one so far, save it but keep looking for a better one
3848       ac_cv_path_EGREP="$ac_path_EGREP"
3849       ac_path_EGREP_max=$ac_count
3850     fi
3851     # 10*(2^10) chars as input seems more than enough
3852     test $ac_count -gt 10 && break
3853   done
3854   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3855 esac
3856
3857       $ac_path_EGREP_found && break 3
3858     done
3859   done
3860   done
3861 IFS=$as_save_IFS
3862   if test -z "$ac_cv_path_EGREP"; then
3863     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3864   fi
3865 else
3866   ac_cv_path_EGREP=$EGREP
3867 fi
3868
3869    fi
3870 fi
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3872 $as_echo "$ac_cv_path_EGREP" >&6; }
3873  EGREP="$ac_cv_path_EGREP"
3874
3875
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3877 $as_echo_n "checking for fgrep... " >&6; }
3878 if ${ac_cv_path_FGREP+:} false; then :
3879   $as_echo_n "(cached) " >&6
3880 else
3881   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3882    then ac_cv_path_FGREP="$GREP -F"
3883    else
3884      if test -z "$FGREP"; then
3885   ac_path_FGREP_found=false
3886   # Loop through the user's path and test for each of PROGNAME-LIST
3887   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3888 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3889 do
3890   IFS=$as_save_IFS
3891   test -z "$as_dir" && as_dir=.
3892     for ac_prog in fgrep; do
3893     for ac_exec_ext in '' $ac_executable_extensions; do
3894       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3895       as_fn_executable_p "$ac_path_FGREP" || continue
3896 # Check for GNU ac_path_FGREP and select it if it is found.
3897   # Check for GNU $ac_path_FGREP
3898 case `"$ac_path_FGREP" --version 2>&1` in
3899 *GNU*)
3900   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3901 *)
3902   ac_count=0
3903   $as_echo_n 0123456789 >"conftest.in"
3904   while :
3905   do
3906     cat "conftest.in" "conftest.in" >"conftest.tmp"
3907     mv "conftest.tmp" "conftest.in"
3908     cp "conftest.in" "conftest.nl"
3909     $as_echo 'FGREP' >> "conftest.nl"
3910     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3911     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3912     as_fn_arith $ac_count + 1 && ac_count=$as_val
3913     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3914       # Best one so far, save it but keep looking for a better one
3915       ac_cv_path_FGREP="$ac_path_FGREP"
3916       ac_path_FGREP_max=$ac_count
3917     fi
3918     # 10*(2^10) chars as input seems more than enough
3919     test $ac_count -gt 10 && break
3920   done
3921   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3922 esac
3923
3924       $ac_path_FGREP_found && break 3
3925     done
3926   done
3927   done
3928 IFS=$as_save_IFS
3929   if test -z "$ac_cv_path_FGREP"; then
3930     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3931   fi
3932 else
3933   ac_cv_path_FGREP=$FGREP
3934 fi
3935
3936    fi
3937 fi
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3939 $as_echo "$ac_cv_path_FGREP" >&6; }
3940  FGREP="$ac_cv_path_FGREP"
3941
3942
3943 test -z "$GREP" && GREP=grep
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963 # Check whether --with-gnu-ld was given.
3964 if test "${with_gnu_ld+set}" = set; then :
3965   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
3966 else
3967   with_gnu_ld=no
3968 fi
3969
3970 ac_prog=ld
3971 if test yes = "$GCC"; then
3972   # Check if gcc -print-prog-name=ld gives a path.
3973   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3974 $as_echo_n "checking for ld used by $CC... " >&6; }
3975   case $host in
3976   *-*-mingw*)
3977     # gcc leaves a trailing carriage return, which upsets mingw
3978     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3979   *)
3980     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3981   esac
3982   case $ac_prog in
3983     # Accept absolute paths.
3984     [\\/]* | ?:[\\/]*)
3985       re_direlt='/[^/][^/]*/\.\./'
3986       # Canonicalize the pathname of ld
3987       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3988       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3989         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3990       done
3991       test -z "$LD" && LD=$ac_prog
3992       ;;
3993   "")
3994     # If it fails, then pretend we aren't using GCC.
3995     ac_prog=ld
3996     ;;
3997   *)
3998     # If it is relative, then search for the first ld in PATH.
3999     with_gnu_ld=unknown
4000     ;;
4001   esac
4002 elif test yes = "$with_gnu_ld"; then
4003   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4004 $as_echo_n "checking for GNU ld... " >&6; }
4005 else
4006   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4007 $as_echo_n "checking for non-GNU ld... " >&6; }
4008 fi
4009 if ${lt_cv_path_LD+:} false; then :
4010   $as_echo_n "(cached) " >&6
4011 else
4012   if test -z "$LD"; then
4013   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4014   for ac_dir in $PATH; do
4015     IFS=$lt_save_ifs
4016     test -z "$ac_dir" && ac_dir=.
4017     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4018       lt_cv_path_LD=$ac_dir/$ac_prog
4019       # Check to see if the program is GNU ld.  I'd rather use --version,
4020       # but apparently some variants of GNU ld only accept -v.
4021       # Break only if it was the GNU/non-GNU ld that we prefer.
4022       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4023       *GNU* | *'with BFD'*)
4024         test no != "$with_gnu_ld" && break
4025         ;;
4026       *)
4027         test yes != "$with_gnu_ld" && break
4028         ;;
4029       esac
4030     fi
4031   done
4032   IFS=$lt_save_ifs
4033 else
4034   lt_cv_path_LD=$LD # Let the user override the test with a path.
4035 fi
4036 fi
4037
4038 LD=$lt_cv_path_LD
4039 if test -n "$LD"; then
4040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4041 $as_echo "$LD" >&6; }
4042 else
4043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4044 $as_echo "no" >&6; }
4045 fi
4046 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4048 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4049 if ${lt_cv_prog_gnu_ld+:} false; then :
4050   $as_echo_n "(cached) " >&6
4051 else
4052   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4053 case `$LD -v 2>&1 </dev/null` in
4054 *GNU* | *'with BFD'*)
4055   lt_cv_prog_gnu_ld=yes
4056   ;;
4057 *)
4058   lt_cv_prog_gnu_ld=no
4059   ;;
4060 esac
4061 fi
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4063 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4064 with_gnu_ld=$lt_cv_prog_gnu_ld
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4075 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4076 if ${lt_cv_path_NM+:} false; then :
4077   $as_echo_n "(cached) " >&6
4078 else
4079   if test -n "$NM"; then
4080   # Let the user override the test.
4081   lt_cv_path_NM=$NM
4082 else
4083   lt_nm_to_check=${ac_tool_prefix}nm
4084   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4085     lt_nm_to_check="$lt_nm_to_check nm"
4086   fi
4087   for lt_tmp_nm in $lt_nm_to_check; do
4088     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4089     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4090       IFS=$lt_save_ifs
4091       test -z "$ac_dir" && ac_dir=.
4092       tmp_nm=$ac_dir/$lt_tmp_nm
4093       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4094         # Check to see if the nm accepts a BSD-compat flag.
4095         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4096         #   nm: unknown option "B" ignored
4097         # Tru64's nm complains that /dev/null is an invalid object file
4098         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4099         case $build_os in
4100         mingw*) lt_bad_file=conftest.nm/nofile ;;
4101         *) lt_bad_file=/dev/null ;;
4102         esac
4103         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4104         *$lt_bad_file* | *'Invalid file or object type'*)
4105           lt_cv_path_NM="$tmp_nm -B"
4106           break 2
4107           ;;
4108         *)
4109           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4110           */dev/null*)
4111             lt_cv_path_NM="$tmp_nm -p"
4112             break 2
4113             ;;
4114           *)
4115             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4116             continue # so that we can try to find one that supports BSD flags
4117             ;;
4118           esac
4119           ;;
4120         esac
4121       fi
4122     done
4123     IFS=$lt_save_ifs
4124   done
4125   : ${lt_cv_path_NM=no}
4126 fi
4127 fi
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4129 $as_echo "$lt_cv_path_NM" >&6; }
4130 if test no != "$lt_cv_path_NM"; then
4131   NM=$lt_cv_path_NM
4132 else
4133   # Didn't find any BSD compatible name lister, look for dumpbin.
4134   if test -n "$DUMPBIN"; then :
4135     # Let the user override the test.
4136   else
4137     if test -n "$ac_tool_prefix"; then
4138   for ac_prog in dumpbin "link -dump"
4139   do
4140     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4141 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4143 $as_echo_n "checking for $ac_word... " >&6; }
4144 if ${ac_cv_prog_DUMPBIN+:} false; then :
4145   $as_echo_n "(cached) " >&6
4146 else
4147   if test -n "$DUMPBIN"; then
4148   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4149 else
4150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4151 for as_dir in $PATH
4152 do
4153   IFS=$as_save_IFS
4154   test -z "$as_dir" && as_dir=.
4155     for ac_exec_ext in '' $ac_executable_extensions; do
4156   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4157     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4158     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4159     break 2
4160   fi
4161 done
4162   done
4163 IFS=$as_save_IFS
4164
4165 fi
4166 fi
4167 DUMPBIN=$ac_cv_prog_DUMPBIN
4168 if test -n "$DUMPBIN"; then
4169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4170 $as_echo "$DUMPBIN" >&6; }
4171 else
4172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4173 $as_echo "no" >&6; }
4174 fi
4175
4176
4177     test -n "$DUMPBIN" && break
4178   done
4179 fi
4180 if test -z "$DUMPBIN"; then
4181   ac_ct_DUMPBIN=$DUMPBIN
4182   for ac_prog in dumpbin "link -dump"
4183 do
4184   # Extract the first word of "$ac_prog", so it can be a program name with args.
4185 set dummy $ac_prog; ac_word=$2
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4187 $as_echo_n "checking for $ac_word... " >&6; }
4188 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4189   $as_echo_n "(cached) " >&6
4190 else
4191   if test -n "$ac_ct_DUMPBIN"; then
4192   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4193 else
4194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4195 for as_dir in $PATH
4196 do
4197   IFS=$as_save_IFS
4198   test -z "$as_dir" && as_dir=.
4199     for ac_exec_ext in '' $ac_executable_extensions; do
4200   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4201     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4202     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4203     break 2
4204   fi
4205 done
4206   done
4207 IFS=$as_save_IFS
4208
4209 fi
4210 fi
4211 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4212 if test -n "$ac_ct_DUMPBIN"; then
4213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4214 $as_echo "$ac_ct_DUMPBIN" >&6; }
4215 else
4216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4217 $as_echo "no" >&6; }
4218 fi
4219
4220
4221   test -n "$ac_ct_DUMPBIN" && break
4222 done
4223
4224   if test "x$ac_ct_DUMPBIN" = x; then
4225     DUMPBIN=":"
4226   else
4227     case $cross_compiling:$ac_tool_warned in
4228 yes:)
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4230 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4231 ac_tool_warned=yes ;;
4232 esac
4233     DUMPBIN=$ac_ct_DUMPBIN
4234   fi
4235 fi
4236
4237     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4238     *COFF*)
4239       DUMPBIN="$DUMPBIN -symbols -headers"
4240       ;;
4241     *)
4242       DUMPBIN=:
4243       ;;
4244     esac
4245   fi
4246
4247   if test : != "$DUMPBIN"; then
4248     NM=$DUMPBIN
4249   fi
4250 fi
4251 test -z "$NM" && NM=nm
4252
4253
4254
4255
4256
4257
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4259 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4260 if ${lt_cv_nm_interface+:} false; then :
4261   $as_echo_n "(cached) " >&6
4262 else
4263   lt_cv_nm_interface="BSD nm"
4264   echo "int some_variable = 0;" > conftest.$ac_ext
4265   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4266   (eval "$ac_compile" 2>conftest.err)
4267   cat conftest.err >&5
4268   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4269   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4270   cat conftest.err >&5
4271   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4272   cat conftest.out >&5
4273   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4274     lt_cv_nm_interface="MS dumpbin"
4275   fi
4276   rm -f conftest*
4277 fi
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4279 $as_echo "$lt_cv_nm_interface" >&6; }
4280
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4282 $as_echo_n "checking whether ln -s works... " >&6; }
4283 LN_S=$as_ln_s
4284 if test "$LN_S" = "ln -s"; then
4285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4286 $as_echo "yes" >&6; }
4287 else
4288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4289 $as_echo "no, using $LN_S" >&6; }
4290 fi
4291
4292 # find the maximum length of command line arguments
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4294 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4295 if ${lt_cv_sys_max_cmd_len+:} false; then :
4296   $as_echo_n "(cached) " >&6
4297 else
4298     i=0
4299   teststring=ABCD
4300
4301   case $build_os in
4302   msdosdjgpp*)
4303     # On DJGPP, this test can blow up pretty badly due to problems in libc
4304     # (any single argument exceeding 2000 bytes causes a buffer overrun
4305     # during glob expansion).  Even if it were fixed, the result of this
4306     # check would be larger than it should be.
4307     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4308     ;;
4309
4310   gnu*)
4311     # Under GNU Hurd, this test is not required because there is
4312     # no limit to the length of command line arguments.
4313     # Libtool will interpret -1 as no limit whatsoever
4314     lt_cv_sys_max_cmd_len=-1;
4315     ;;
4316
4317   cygwin* | mingw* | cegcc*)
4318     # On Win9x/ME, this test blows up -- it succeeds, but takes
4319     # about 5 minutes as the teststring grows exponentially.
4320     # Worse, since 9x/ME are not pre-emptively multitasking,
4321     # you end up with a "frozen" computer, even though with patience
4322     # the test eventually succeeds (with a max line length of 256k).
4323     # Instead, let's just punt: use the minimum linelength reported by
4324     # all of the supported platforms: 8192 (on NT/2K/XP).
4325     lt_cv_sys_max_cmd_len=8192;
4326     ;;
4327
4328   mint*)
4329     # On MiNT this can take a long time and run out of memory.
4330     lt_cv_sys_max_cmd_len=8192;
4331     ;;
4332
4333   amigaos*)
4334     # On AmigaOS with pdksh, this test takes hours, literally.
4335     # So we just punt and use a minimum line length of 8192.
4336     lt_cv_sys_max_cmd_len=8192;
4337     ;;
4338
4339   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4340     # This has been around since 386BSD, at least.  Likely further.
4341     if test -x /sbin/sysctl; then
4342       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4343     elif test -x /usr/sbin/sysctl; then
4344       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4345     else
4346       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4347     fi
4348     # And add a safety zone
4349     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4350     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4351     ;;
4352
4353   interix*)
4354     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4355     lt_cv_sys_max_cmd_len=196608
4356     ;;
4357
4358   os2*)
4359     # The test takes a long time on OS/2.
4360     lt_cv_sys_max_cmd_len=8192
4361     ;;
4362
4363   osf*)
4364     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4365     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4366     # nice to cause kernel panics so lets avoid the loop below.
4367     # First set a reasonable default.
4368     lt_cv_sys_max_cmd_len=16384
4369     #
4370     if test -x /sbin/sysconfig; then
4371       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4372         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4373       esac
4374     fi
4375     ;;
4376   sco3.2v5*)
4377     lt_cv_sys_max_cmd_len=102400
4378     ;;
4379   sysv5* | sco5v6* | sysv4.2uw2*)
4380     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4381     if test -n "$kargmax"; then
4382       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4383     else
4384       lt_cv_sys_max_cmd_len=32768
4385     fi
4386     ;;
4387   *)
4388     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4389     if test -n "$lt_cv_sys_max_cmd_len" && \
4390        test undefined != "$lt_cv_sys_max_cmd_len"; then
4391       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4392       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4393     else
4394       # Make teststring a little bigger before we do anything with it.
4395       # a 1K string should be a reasonable start.
4396       for i in 1 2 3 4 5 6 7 8; do
4397         teststring=$teststring$teststring
4398       done
4399       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4400       # If test is not a shell built-in, we'll probably end up computing a
4401       # maximum length that is only half of the actual maximum length, but
4402       # we can't tell.
4403       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4404                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4405               test 17 != "$i" # 1/2 MB should be enough
4406       do
4407         i=`expr $i + 1`
4408         teststring=$teststring$teststring
4409       done
4410       # Only check the string length outside the loop.
4411       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4412       teststring=
4413       # Add a significant safety factor because C++ compilers can tack on
4414       # massive amounts of additional arguments before passing them to the
4415       # linker.  It appears as though 1/2 is a usable value.
4416       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4417     fi
4418     ;;
4419   esac
4420
4421 fi
4422
4423 if test -n "$lt_cv_sys_max_cmd_len"; then
4424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4425 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4426 else
4427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4428 $as_echo "none" >&6; }
4429 fi
4430 max_cmd_len=$lt_cv_sys_max_cmd_len
4431
4432
4433
4434
4435
4436
4437 : ${CP="cp -f"}
4438 : ${MV="mv -f"}
4439 : ${RM="rm -f"}
4440
4441 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4442   lt_unset=unset
4443 else
4444   lt_unset=false
4445 fi
4446
4447
4448
4449
4450
4451 # test EBCDIC or ASCII
4452 case `echo X|tr X '\101'` in
4453  A) # ASCII based system
4454     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4455   lt_SP2NL='tr \040 \012'
4456   lt_NL2SP='tr \015\012 \040\040'
4457   ;;
4458  *) # EBCDIC based system
4459   lt_SP2NL='tr \100 \n'
4460   lt_NL2SP='tr \r\n \100\100'
4461   ;;
4462 esac
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4473 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4474 if ${lt_cv_to_host_file_cmd+:} false; then :
4475   $as_echo_n "(cached) " >&6
4476 else
4477   case $host in
4478   *-*-mingw* )
4479     case $build in
4480       *-*-mingw* ) # actually msys
4481         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4482         ;;
4483       *-*-cygwin* )
4484         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4485         ;;
4486       * ) # otherwise, assume *nix
4487         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4488         ;;
4489     esac
4490     ;;
4491   *-*-cygwin* )
4492     case $build in
4493       *-*-mingw* ) # actually msys
4494         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4495         ;;
4496       *-*-cygwin* )
4497         lt_cv_to_host_file_cmd=func_convert_file_noop
4498         ;;
4499       * ) # otherwise, assume *nix
4500         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4501         ;;
4502     esac
4503     ;;
4504   * ) # unhandled hosts (and "normal" native builds)
4505     lt_cv_to_host_file_cmd=func_convert_file_noop
4506     ;;
4507 esac
4508
4509 fi
4510
4511 to_host_file_cmd=$lt_cv_to_host_file_cmd
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4513 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4514
4515
4516
4517
4518
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4520 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4521 if ${lt_cv_to_tool_file_cmd+:} false; then :
4522   $as_echo_n "(cached) " >&6
4523 else
4524   #assume ordinary cross tools, or native build.
4525 lt_cv_to_tool_file_cmd=func_convert_file_noop
4526 case $host in
4527   *-*-mingw* )
4528     case $build in
4529       *-*-mingw* ) # actually msys
4530         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4531         ;;
4532     esac
4533     ;;
4534 esac
4535
4536 fi
4537
4538 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4540 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4541
4542
4543
4544
4545
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4547 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4548 if ${lt_cv_ld_reload_flag+:} false; then :
4549   $as_echo_n "(cached) " >&6
4550 else
4551   lt_cv_ld_reload_flag='-r'
4552 fi
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4554 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4555 reload_flag=$lt_cv_ld_reload_flag
4556 case $reload_flag in
4557 "" | " "*) ;;
4558 *) reload_flag=" $reload_flag" ;;
4559 esac
4560 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4561 case $host_os in
4562   cygwin* | mingw* | pw32* | cegcc*)
4563     if test yes != "$GCC"; then
4564       reload_cmds=false
4565     fi
4566     ;;
4567   darwin*)
4568     if test yes = "$GCC"; then
4569       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
4570     else
4571       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4572     fi
4573     ;;
4574 esac
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584 if test -n "$ac_tool_prefix"; then
4585   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4586 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4588 $as_echo_n "checking for $ac_word... " >&6; }
4589 if ${ac_cv_prog_OBJDUMP+:} false; then :
4590   $as_echo_n "(cached) " >&6
4591 else
4592   if test -n "$OBJDUMP"; then
4593   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4594 else
4595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4596 for as_dir in $PATH
4597 do
4598   IFS=$as_save_IFS
4599   test -z "$as_dir" && as_dir=.
4600     for ac_exec_ext in '' $ac_executable_extensions; do
4601   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4602     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4603     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4604     break 2
4605   fi
4606 done
4607   done
4608 IFS=$as_save_IFS
4609
4610 fi
4611 fi
4612 OBJDUMP=$ac_cv_prog_OBJDUMP
4613 if test -n "$OBJDUMP"; then
4614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4615 $as_echo "$OBJDUMP" >&6; }
4616 else
4617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4618 $as_echo "no" >&6; }
4619 fi
4620
4621
4622 fi
4623 if test -z "$ac_cv_prog_OBJDUMP"; then
4624   ac_ct_OBJDUMP=$OBJDUMP
4625   # Extract the first word of "objdump", so it can be a program name with args.
4626 set dummy objdump; ac_word=$2
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4628 $as_echo_n "checking for $ac_word... " >&6; }
4629 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4630   $as_echo_n "(cached) " >&6
4631 else
4632   if test -n "$ac_ct_OBJDUMP"; then
4633   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4634 else
4635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4636 for as_dir in $PATH
4637 do
4638   IFS=$as_save_IFS
4639   test -z "$as_dir" && as_dir=.
4640     for ac_exec_ext in '' $ac_executable_extensions; do
4641   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4642     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4643     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4644     break 2
4645   fi
4646 done
4647   done
4648 IFS=$as_save_IFS
4649
4650 fi
4651 fi
4652 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4653 if test -n "$ac_ct_OBJDUMP"; then
4654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4655 $as_echo "$ac_ct_OBJDUMP" >&6; }
4656 else
4657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4658 $as_echo "no" >&6; }
4659 fi
4660
4661   if test "x$ac_ct_OBJDUMP" = x; then
4662     OBJDUMP="false"
4663   else
4664     case $cross_compiling:$ac_tool_warned in
4665 yes:)
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4667 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4668 ac_tool_warned=yes ;;
4669 esac
4670     OBJDUMP=$ac_ct_OBJDUMP
4671   fi
4672 else
4673   OBJDUMP="$ac_cv_prog_OBJDUMP"
4674 fi
4675
4676 test -z "$OBJDUMP" && OBJDUMP=objdump
4677
4678
4679
4680
4681
4682
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4684 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4685 if ${lt_cv_deplibs_check_method+:} false; then :
4686   $as_echo_n "(cached) " >&6
4687 else
4688   lt_cv_file_magic_cmd='$MAGIC_CMD'
4689 lt_cv_file_magic_test_file=
4690 lt_cv_deplibs_check_method='unknown'
4691 # Need to set the preceding variable on all platforms that support
4692 # interlibrary dependencies.
4693 # 'none' -- dependencies not supported.
4694 # 'unknown' -- same as none, but documents that we really don't know.
4695 # 'pass_all' -- all dependencies passed with no checks.
4696 # 'test_compile' -- check by making test program.
4697 # 'file_magic [[regex]]' -- check by looking for files in library path
4698 # that responds to the $file_magic_cmd with a given extended regex.
4699 # If you have 'file' or equivalent on your system and you're not sure
4700 # whether 'pass_all' will *always* work, you probably want this one.
4701
4702 case $host_os in
4703 aix[4-9]*)
4704   lt_cv_deplibs_check_method=pass_all
4705   ;;
4706
4707 beos*)
4708   lt_cv_deplibs_check_method=pass_all
4709   ;;
4710
4711 bsdi[45]*)
4712   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4713   lt_cv_file_magic_cmd='/usr/bin/file -L'
4714   lt_cv_file_magic_test_file=/shlib/libc.so
4715   ;;
4716
4717 cygwin*)
4718   # func_win32_libid is a shell function defined in ltmain.sh
4719   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4720   lt_cv_file_magic_cmd='func_win32_libid'
4721   ;;
4722
4723 mingw* | pw32*)
4724   # Base MSYS/MinGW do not provide the 'file' command needed by
4725   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4726   # unless we find 'file', for example because we are cross-compiling.
4727   if ( file / ) >/dev/null 2>&1; then
4728     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4729     lt_cv_file_magic_cmd='func_win32_libid'
4730   else
4731     # Keep this pattern in sync with the one in func_win32_libid.
4732     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4733     lt_cv_file_magic_cmd='$OBJDUMP -f'
4734   fi
4735   ;;
4736
4737 cegcc*)
4738   # use the weaker test based on 'objdump'. See mingw*.
4739   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4740   lt_cv_file_magic_cmd='$OBJDUMP -f'
4741   ;;
4742
4743 darwin* | rhapsody*)
4744   lt_cv_deplibs_check_method=pass_all
4745   ;;
4746
4747 freebsd* | dragonfly*)
4748   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4749     case $host_cpu in
4750     i*86 )
4751       # Not sure whether the presence of OpenBSD here was a mistake.
4752       # Let's accept both of them until this is cleared up.
4753       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4754       lt_cv_file_magic_cmd=/usr/bin/file
4755       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4756       ;;
4757     esac
4758   else
4759     lt_cv_deplibs_check_method=pass_all
4760   fi
4761   ;;
4762
4763 haiku*)
4764   lt_cv_deplibs_check_method=pass_all
4765   ;;
4766
4767 hpux10.20* | hpux11*)
4768   lt_cv_file_magic_cmd=/usr/bin/file
4769   case $host_cpu in
4770   ia64*)
4771     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4772     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4773     ;;
4774   hppa*64*)
4775     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]'
4776     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4777     ;;
4778   *)
4779     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4780     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4781     ;;
4782   esac
4783   ;;
4784
4785 interix[3-9]*)
4786   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4787   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4788   ;;
4789
4790 irix5* | irix6* | nonstopux*)
4791   case $LD in
4792   *-32|*"-32 ") libmagic=32-bit;;
4793   *-n32|*"-n32 ") libmagic=N32;;
4794   *-64|*"-64 ") libmagic=64-bit;;
4795   *) libmagic=never-match;;
4796   esac
4797   lt_cv_deplibs_check_method=pass_all
4798   ;;
4799
4800 # This must be glibc/ELF.
4801 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4802   lt_cv_deplibs_check_method=pass_all
4803   ;;
4804
4805 netbsd*)
4806   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4807     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4808   else
4809     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4810   fi
4811   ;;
4812
4813 newos6*)
4814   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4815   lt_cv_file_magic_cmd=/usr/bin/file
4816   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4817   ;;
4818
4819 *nto* | *qnx*)
4820   lt_cv_deplibs_check_method=pass_all
4821   ;;
4822
4823 openbsd* | bitrig*)
4824   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
4825     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4826   else
4827     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4828   fi
4829   ;;
4830
4831 osf3* | osf4* | osf5*)
4832   lt_cv_deplibs_check_method=pass_all
4833   ;;
4834
4835 rdos*)
4836   lt_cv_deplibs_check_method=pass_all
4837   ;;
4838
4839 solaris*)
4840   lt_cv_deplibs_check_method=pass_all
4841   ;;
4842
4843 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4844   lt_cv_deplibs_check_method=pass_all
4845   ;;
4846
4847 sysv4 | sysv4.3*)
4848   case $host_vendor in
4849   motorola)
4850     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]'
4851     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4852     ;;
4853   ncr)
4854     lt_cv_deplibs_check_method=pass_all
4855     ;;
4856   sequent)
4857     lt_cv_file_magic_cmd='/bin/file'
4858     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4859     ;;
4860   sni)
4861     lt_cv_file_magic_cmd='/bin/file'
4862     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4863     lt_cv_file_magic_test_file=/lib/libc.so
4864     ;;
4865   siemens)
4866     lt_cv_deplibs_check_method=pass_all
4867     ;;
4868   pc)
4869     lt_cv_deplibs_check_method=pass_all
4870     ;;
4871   esac
4872   ;;
4873
4874 tpf*)
4875   lt_cv_deplibs_check_method=pass_all
4876   ;;
4877 os2*)
4878   lt_cv_deplibs_check_method=pass_all
4879   ;;
4880 esac
4881
4882 fi
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4884 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4885
4886 file_magic_glob=
4887 want_nocaseglob=no
4888 if test "$build" = "$host"; then
4889   case $host_os in
4890   mingw* | pw32*)
4891     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4892       want_nocaseglob=yes
4893     else
4894       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
4895     fi
4896     ;;
4897   esac
4898 fi
4899
4900 file_magic_cmd=$lt_cv_file_magic_cmd
4901 deplibs_check_method=$lt_cv_deplibs_check_method
4902 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925 if test -n "$ac_tool_prefix"; then
4926   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4927 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4929 $as_echo_n "checking for $ac_word... " >&6; }
4930 if ${ac_cv_prog_DLLTOOL+:} false; then :
4931   $as_echo_n "(cached) " >&6
4932 else
4933   if test -n "$DLLTOOL"; then
4934   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4935 else
4936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4937 for as_dir in $PATH
4938 do
4939   IFS=$as_save_IFS
4940   test -z "$as_dir" && as_dir=.
4941     for ac_exec_ext in '' $ac_executable_extensions; do
4942   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4943     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4944     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4945     break 2
4946   fi
4947 done
4948   done
4949 IFS=$as_save_IFS
4950
4951 fi
4952 fi
4953 DLLTOOL=$ac_cv_prog_DLLTOOL
4954 if test -n "$DLLTOOL"; then
4955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4956 $as_echo "$DLLTOOL" >&6; }
4957 else
4958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4959 $as_echo "no" >&6; }
4960 fi
4961
4962
4963 fi
4964 if test -z "$ac_cv_prog_DLLTOOL"; then
4965   ac_ct_DLLTOOL=$DLLTOOL
4966   # Extract the first word of "dlltool", so it can be a program name with args.
4967 set dummy dlltool; ac_word=$2
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4969 $as_echo_n "checking for $ac_word... " >&6; }
4970 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4971   $as_echo_n "(cached) " >&6
4972 else
4973   if test -n "$ac_ct_DLLTOOL"; then
4974   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4975 else
4976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4977 for as_dir in $PATH
4978 do
4979   IFS=$as_save_IFS
4980   test -z "$as_dir" && as_dir=.
4981     for ac_exec_ext in '' $ac_executable_extensions; do
4982   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4983     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4984     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4985     break 2
4986   fi
4987 done
4988   done
4989 IFS=$as_save_IFS
4990
4991 fi
4992 fi
4993 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4994 if test -n "$ac_ct_DLLTOOL"; then
4995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4996 $as_echo "$ac_ct_DLLTOOL" >&6; }
4997 else
4998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4999 $as_echo "no" >&6; }
5000 fi
5001
5002   if test "x$ac_ct_DLLTOOL" = x; then
5003     DLLTOOL="false"
5004   else
5005     case $cross_compiling:$ac_tool_warned in
5006 yes:)
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5008 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5009 ac_tool_warned=yes ;;
5010 esac
5011     DLLTOOL=$ac_ct_DLLTOOL
5012   fi
5013 else
5014   DLLTOOL="$ac_cv_prog_DLLTOOL"
5015 fi
5016
5017 test -z "$DLLTOOL" && DLLTOOL=dlltool
5018
5019
5020
5021
5022
5023
5024
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5026 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5027 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5028   $as_echo_n "(cached) " >&6
5029 else
5030   lt_cv_sharedlib_from_linklib_cmd='unknown'
5031
5032 case $host_os in
5033 cygwin* | mingw* | pw32* | cegcc*)
5034   # two different shell functions defined in ltmain.sh;
5035   # decide which one to use based on capabilities of $DLLTOOL
5036   case `$DLLTOOL --help 2>&1` in
5037   *--identify-strict*)
5038     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5039     ;;
5040   *)
5041     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5042     ;;
5043   esac
5044   ;;
5045 *)
5046   # fallback: assume linklib IS sharedlib
5047   lt_cv_sharedlib_from_linklib_cmd=$ECHO
5048   ;;
5049 esac
5050
5051 fi
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5053 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5054 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5055 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5056
5057
5058
5059
5060
5061
5062
5063
5064 if test -n "$ac_tool_prefix"; then
5065   for ac_prog in ar
5066   do
5067     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5068 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5070 $as_echo_n "checking for $ac_word... " >&6; }
5071 if ${ac_cv_prog_AR+:} false; then :
5072   $as_echo_n "(cached) " >&6
5073 else
5074   if test -n "$AR"; then
5075   ac_cv_prog_AR="$AR" # Let the user override the test.
5076 else
5077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5078 for as_dir in $PATH
5079 do
5080   IFS=$as_save_IFS
5081   test -z "$as_dir" && as_dir=.
5082     for ac_exec_ext in '' $ac_executable_extensions; do
5083   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5084     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5085     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5086     break 2
5087   fi
5088 done
5089   done
5090 IFS=$as_save_IFS
5091
5092 fi
5093 fi
5094 AR=$ac_cv_prog_AR
5095 if test -n "$AR"; then
5096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5097 $as_echo "$AR" >&6; }
5098 else
5099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5100 $as_echo "no" >&6; }
5101 fi
5102
5103
5104     test -n "$AR" && break
5105   done
5106 fi
5107 if test -z "$AR"; then
5108   ac_ct_AR=$AR
5109   for ac_prog in ar
5110 do
5111   # Extract the first word of "$ac_prog", so it can be a program name with args.
5112 set dummy $ac_prog; ac_word=$2
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5114 $as_echo_n "checking for $ac_word... " >&6; }
5115 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5116   $as_echo_n "(cached) " >&6
5117 else
5118   if test -n "$ac_ct_AR"; then
5119   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5120 else
5121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5122 for as_dir in $PATH
5123 do
5124   IFS=$as_save_IFS
5125   test -z "$as_dir" && as_dir=.
5126     for ac_exec_ext in '' $ac_executable_extensions; do
5127   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5128     ac_cv_prog_ac_ct_AR="$ac_prog"
5129     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5130     break 2
5131   fi
5132 done
5133   done
5134 IFS=$as_save_IFS
5135
5136 fi
5137 fi
5138 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5139 if test -n "$ac_ct_AR"; then
5140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5141 $as_echo "$ac_ct_AR" >&6; }
5142 else
5143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5144 $as_echo "no" >&6; }
5145 fi
5146
5147
5148   test -n "$ac_ct_AR" && break
5149 done
5150
5151   if test "x$ac_ct_AR" = x; then
5152     AR="false"
5153   else
5154     case $cross_compiling:$ac_tool_warned in
5155 yes:)
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5157 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5158 ac_tool_warned=yes ;;
5159 esac
5160     AR=$ac_ct_AR
5161   fi
5162 fi
5163
5164 : ${AR=ar}
5165 : ${AR_FLAGS=cru}
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5178 $as_echo_n "checking for archiver @FILE support... " >&6; }
5179 if ${lt_cv_ar_at_file+:} false; then :
5180   $as_echo_n "(cached) " >&6
5181 else
5182   lt_cv_ar_at_file=no
5183    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5184 /* end confdefs.h.  */
5185
5186 int
5187 main ()
5188 {
5189
5190   ;
5191   return 0;
5192 }
5193 _ACEOF
5194 if ac_fn_c_try_compile "$LINENO"; then :
5195   echo conftest.$ac_objext > conftest.lst
5196       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5197       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5198   (eval $lt_ar_try) 2>&5
5199   ac_status=$?
5200   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5201   test $ac_status = 0; }
5202       if test 0 -eq "$ac_status"; then
5203         # Ensure the archiver fails upon bogus file names.
5204         rm -f conftest.$ac_objext libconftest.a
5205         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5206   (eval $lt_ar_try) 2>&5
5207   ac_status=$?
5208   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5209   test $ac_status = 0; }
5210         if test 0 -ne "$ac_status"; then
5211           lt_cv_ar_at_file=@
5212         fi
5213       fi
5214       rm -f conftest.* libconftest.a
5215
5216 fi
5217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5218
5219 fi
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5221 $as_echo "$lt_cv_ar_at_file" >&6; }
5222
5223 if test no = "$lt_cv_ar_at_file"; then
5224   archiver_list_spec=
5225 else
5226   archiver_list_spec=$lt_cv_ar_at_file
5227 fi
5228
5229
5230
5231
5232
5233
5234
5235 if test -n "$ac_tool_prefix"; then
5236   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5237 set dummy ${ac_tool_prefix}strip; ac_word=$2
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5239 $as_echo_n "checking for $ac_word... " >&6; }
5240 if ${ac_cv_prog_STRIP+:} false; then :
5241   $as_echo_n "(cached) " >&6
5242 else
5243   if test -n "$STRIP"; then
5244   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5245 else
5246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5247 for as_dir in $PATH
5248 do
5249   IFS=$as_save_IFS
5250   test -z "$as_dir" && as_dir=.
5251     for ac_exec_ext in '' $ac_executable_extensions; do
5252   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5253     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5254     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5255     break 2
5256   fi
5257 done
5258   done
5259 IFS=$as_save_IFS
5260
5261 fi
5262 fi
5263 STRIP=$ac_cv_prog_STRIP
5264 if test -n "$STRIP"; then
5265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5266 $as_echo "$STRIP" >&6; }
5267 else
5268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5269 $as_echo "no" >&6; }
5270 fi
5271
5272
5273 fi
5274 if test -z "$ac_cv_prog_STRIP"; then
5275   ac_ct_STRIP=$STRIP
5276   # Extract the first word of "strip", so it can be a program name with args.
5277 set dummy strip; ac_word=$2
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5279 $as_echo_n "checking for $ac_word... " >&6; }
5280 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5281   $as_echo_n "(cached) " >&6
5282 else
5283   if test -n "$ac_ct_STRIP"; then
5284   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5285 else
5286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5287 for as_dir in $PATH
5288 do
5289   IFS=$as_save_IFS
5290   test -z "$as_dir" && as_dir=.
5291     for ac_exec_ext in '' $ac_executable_extensions; do
5292   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5293     ac_cv_prog_ac_ct_STRIP="strip"
5294     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5295     break 2
5296   fi
5297 done
5298   done
5299 IFS=$as_save_IFS
5300
5301 fi
5302 fi
5303 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5304 if test -n "$ac_ct_STRIP"; then
5305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5306 $as_echo "$ac_ct_STRIP" >&6; }
5307 else
5308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5309 $as_echo "no" >&6; }
5310 fi
5311
5312   if test "x$ac_ct_STRIP" = x; then
5313     STRIP=":"
5314   else
5315     case $cross_compiling:$ac_tool_warned in
5316 yes:)
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5318 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5319 ac_tool_warned=yes ;;
5320 esac
5321     STRIP=$ac_ct_STRIP
5322   fi
5323 else
5324   STRIP="$ac_cv_prog_STRIP"
5325 fi
5326
5327 test -z "$STRIP" && STRIP=:
5328
5329
5330
5331
5332
5333
5334 if test -n "$ac_tool_prefix"; then
5335   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5336 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5338 $as_echo_n "checking for $ac_word... " >&6; }
5339 if ${ac_cv_prog_RANLIB+:} false; then :
5340   $as_echo_n "(cached) " >&6
5341 else
5342   if test -n "$RANLIB"; then
5343   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5344 else
5345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5346 for as_dir in $PATH
5347 do
5348   IFS=$as_save_IFS
5349   test -z "$as_dir" && as_dir=.
5350     for ac_exec_ext in '' $ac_executable_extensions; do
5351   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5352     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5353     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5354     break 2
5355   fi
5356 done
5357   done
5358 IFS=$as_save_IFS
5359
5360 fi
5361 fi
5362 RANLIB=$ac_cv_prog_RANLIB
5363 if test -n "$RANLIB"; then
5364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5365 $as_echo "$RANLIB" >&6; }
5366 else
5367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5368 $as_echo "no" >&6; }
5369 fi
5370
5371
5372 fi
5373 if test -z "$ac_cv_prog_RANLIB"; then
5374   ac_ct_RANLIB=$RANLIB
5375   # Extract the first word of "ranlib", so it can be a program name with args.
5376 set dummy ranlib; ac_word=$2
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5378 $as_echo_n "checking for $ac_word... " >&6; }
5379 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5380   $as_echo_n "(cached) " >&6
5381 else
5382   if test -n "$ac_ct_RANLIB"; then
5383   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5384 else
5385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5386 for as_dir in $PATH
5387 do
5388   IFS=$as_save_IFS
5389   test -z "$as_dir" && as_dir=.
5390     for ac_exec_ext in '' $ac_executable_extensions; do
5391   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5392     ac_cv_prog_ac_ct_RANLIB="ranlib"
5393     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5394     break 2
5395   fi
5396 done
5397   done
5398 IFS=$as_save_IFS
5399
5400 fi
5401 fi
5402 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5403 if test -n "$ac_ct_RANLIB"; then
5404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5405 $as_echo "$ac_ct_RANLIB" >&6; }
5406 else
5407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5408 $as_echo "no" >&6; }
5409 fi
5410
5411   if test "x$ac_ct_RANLIB" = x; then
5412     RANLIB=":"
5413   else
5414     case $cross_compiling:$ac_tool_warned in
5415 yes:)
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5417 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5418 ac_tool_warned=yes ;;
5419 esac
5420     RANLIB=$ac_ct_RANLIB
5421   fi
5422 else
5423   RANLIB="$ac_cv_prog_RANLIB"
5424 fi
5425
5426 test -z "$RANLIB" && RANLIB=:
5427
5428
5429
5430
5431
5432
5433 # Determine commands to create old-style static archives.
5434 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5435 old_postinstall_cmds='chmod 644 $oldlib'
5436 old_postuninstall_cmds=
5437
5438 if test -n "$RANLIB"; then
5439   case $host_os in
5440   bitrig* | openbsd*)
5441     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5442     ;;
5443   *)
5444     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5445     ;;
5446   esac
5447   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5448 fi
5449
5450 case $host_os in
5451   darwin*)
5452     lock_old_archive_extraction=yes ;;
5453   *)
5454     lock_old_archive_extraction=no ;;
5455 esac
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477 for ac_prog in gawk mawk nawk awk
5478 do
5479   # Extract the first word of "$ac_prog", so it can be a program name with args.
5480 set dummy $ac_prog; ac_word=$2
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5482 $as_echo_n "checking for $ac_word... " >&6; }
5483 if ${ac_cv_prog_AWK+:} false; then :
5484   $as_echo_n "(cached) " >&6
5485 else
5486   if test -n "$AWK"; then
5487   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5488 else
5489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5490 for as_dir in $PATH
5491 do
5492   IFS=$as_save_IFS
5493   test -z "$as_dir" && as_dir=.
5494     for ac_exec_ext in '' $ac_executable_extensions; do
5495   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5496     ac_cv_prog_AWK="$ac_prog"
5497     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5498     break 2
5499   fi
5500 done
5501   done
5502 IFS=$as_save_IFS
5503
5504 fi
5505 fi
5506 AWK=$ac_cv_prog_AWK
5507 if test -n "$AWK"; then
5508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5509 $as_echo "$AWK" >&6; }
5510 else
5511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5512 $as_echo "no" >&6; }
5513 fi
5514
5515
5516   test -n "$AWK" && break
5517 done
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537 # If no C compiler was specified, use CC.
5538 LTCC=${LTCC-"$CC"}
5539
5540 # If no C compiler flags were specified, use CFLAGS.
5541 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5542
5543 # Allow CC to be a program name with arguments.
5544 compiler=$CC
5545
5546
5547 # Check for command to grab the raw symbol name followed by C symbol from nm.
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5549 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5550 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5551   $as_echo_n "(cached) " >&6
5552 else
5553
5554 # These are sane defaults that work on at least a few old systems.
5555 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5556
5557 # Character class describing NM global symbol codes.
5558 symcode='[BCDEGRST]'
5559
5560 # Regexp to match symbols that can be accessed directly from C.
5561 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5562
5563 # Define system-specific variables.
5564 case $host_os in
5565 aix*)
5566   symcode='[BCDT]'
5567   ;;
5568 cygwin* | mingw* | pw32* | cegcc*)
5569   symcode='[ABCDGISTW]'
5570   ;;
5571 hpux*)
5572   if test ia64 = "$host_cpu"; then
5573     symcode='[ABCDEGRST]'
5574   fi
5575   ;;
5576 irix* | nonstopux*)
5577   symcode='[BCDEGRST]'
5578   ;;
5579 osf*)
5580   symcode='[BCDEGQRST]'
5581   ;;
5582 solaris*)
5583   symcode='[BDRT]'
5584   ;;
5585 sco3.2v5*)
5586   symcode='[DT]'
5587   ;;
5588 sysv4.2uw2*)
5589   symcode='[DT]'
5590   ;;
5591 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5592   symcode='[ABDT]'
5593   ;;
5594 sysv4)
5595   symcode='[DFNSTU]'
5596   ;;
5597 esac
5598
5599 # If we're using GNU nm, then use its standard symbol codes.
5600 case `$NM -V 2>&1` in
5601 *GNU* | *'with BFD'*)
5602   symcode='[ABCDGIRSTW]' ;;
5603 esac
5604
5605 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5606   # Gets list of data symbols to import.
5607   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
5608   # Adjust the below global symbol transforms to fixup imported variables.
5609   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
5610   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
5611   lt_c_name_lib_hook="\
5612   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
5613   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
5614 else
5615   # Disable hooks by default.
5616   lt_cv_sys_global_symbol_to_import=
5617   lt_cdecl_hook=
5618   lt_c_name_hook=
5619   lt_c_name_lib_hook=
5620 fi
5621
5622 # Transform an extracted symbol line into a proper C declaration.
5623 # Some systems (esp. on ia64) link data and code symbols differently,
5624 # so use this general approach.
5625 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
5626 $lt_cdecl_hook\
5627 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
5628 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
5629
5630 # Transform an extracted symbol line into symbol name and symbol address
5631 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
5632 $lt_c_name_hook\
5633 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
5634 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
5635
5636 # Transform an extracted symbol line into symbol name with lib prefix and
5637 # symbol address.
5638 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
5639 $lt_c_name_lib_hook\
5640 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
5641 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
5642 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
5643
5644 # Handle CRLF in mingw tool chain
5645 opt_cr=
5646 case $build_os in
5647 mingw*)
5648   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5649   ;;
5650 esac
5651
5652 # Try without a prefix underscore, then with it.
5653 for ac_symprfx in "" "_"; do
5654
5655   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5656   symxfrm="\\1 $ac_symprfx\\2 \\2"
5657
5658   # Write the raw and C identifiers.
5659   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5660     # Fake it for dumpbin and say T for any non-static function,
5661     # D for any global variable and I for any imported variable.
5662     # Also find C++ and __fastcall symbols from MSVC++,
5663     # which start with @ or ?.
5664     lt_cv_sys_global_symbol_pipe="$AWK '"\
5665 "     {last_section=section; section=\$ 3};"\
5666 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5667 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5668 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
5669 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
5670 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
5671 "     \$ 0!~/External *\|/{next};"\
5672 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5673 "     {if(hide[section]) next};"\
5674 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
5675 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
5676 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
5677 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
5678 "     ' prfx=^$ac_symprfx"
5679   else
5680     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5681   fi
5682   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5683
5684   # Check to see that the pipe works correctly.
5685   pipe_works=no
5686
5687   rm -f conftest*
5688   cat > conftest.$ac_ext <<_LT_EOF
5689 #ifdef __cplusplus
5690 extern "C" {
5691 #endif
5692 char nm_test_var;
5693 void nm_test_func(void);
5694 void nm_test_func(void){}
5695 #ifdef __cplusplus
5696 }
5697 #endif
5698 int main(){nm_test_var='a';nm_test_func();return(0);}
5699 _LT_EOF
5700
5701   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5702   (eval $ac_compile) 2>&5
5703   ac_status=$?
5704   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5705   test $ac_status = 0; }; then
5706     # Now try to grab the symbols.
5707     nlist=conftest.nm
5708     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5709   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5710   ac_status=$?
5711   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5712   test $ac_status = 0; } && test -s "$nlist"; then
5713       # Try sorting and uniquifying the output.
5714       if sort "$nlist" | uniq > "$nlist"T; then
5715         mv -f "$nlist"T "$nlist"
5716       else
5717         rm -f "$nlist"T
5718       fi
5719
5720       # Make sure that we snagged all the symbols we need.
5721       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5722         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5723           cat <<_LT_EOF > conftest.$ac_ext
5724 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
5725 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
5726 /* DATA imports from DLLs on WIN32 can't be const, because runtime
5727    relocations are performed -- see ld's documentation on pseudo-relocs.  */
5728 # define LT_DLSYM_CONST
5729 #elif defined __osf__
5730 /* This system does not cope well with relocations in const data.  */
5731 # define LT_DLSYM_CONST
5732 #else
5733 # define LT_DLSYM_CONST const
5734 #endif
5735
5736 #ifdef __cplusplus
5737 extern "C" {
5738 #endif
5739
5740 _LT_EOF
5741           # Now generate the symbol file.
5742           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5743
5744           cat <<_LT_EOF >> conftest.$ac_ext
5745
5746 /* The mapping between symbol names and symbols.  */
5747 LT_DLSYM_CONST struct {
5748   const char *name;
5749   void       *address;
5750 }
5751 lt__PROGRAM__LTX_preloaded_symbols[] =
5752 {
5753   { "@PROGRAM@", (void *) 0 },
5754 _LT_EOF
5755           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5756           cat <<\_LT_EOF >> conftest.$ac_ext
5757   {0, (void *) 0}
5758 };
5759
5760 /* This works around a problem in FreeBSD linker */
5761 #ifdef FREEBSD_WORKAROUND
5762 static const void *lt_preloaded_setup() {
5763   return lt__PROGRAM__LTX_preloaded_symbols;
5764 }
5765 #endif
5766
5767 #ifdef __cplusplus
5768 }
5769 #endif
5770 _LT_EOF
5771           # Now try linking the two files.
5772           mv conftest.$ac_objext conftstm.$ac_objext
5773           lt_globsym_save_LIBS=$LIBS
5774           lt_globsym_save_CFLAGS=$CFLAGS
5775           LIBS=conftstm.$ac_objext
5776           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5777           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5778   (eval $ac_link) 2>&5
5779   ac_status=$?
5780   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5781   test $ac_status = 0; } && test -s conftest$ac_exeext; then
5782             pipe_works=yes
5783           fi
5784           LIBS=$lt_globsym_save_LIBS
5785           CFLAGS=$lt_globsym_save_CFLAGS
5786         else
5787           echo "cannot find nm_test_func in $nlist" >&5
5788         fi
5789       else
5790         echo "cannot find nm_test_var in $nlist" >&5
5791       fi
5792     else
5793       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5794     fi
5795   else
5796     echo "$progname: failed program was:" >&5
5797     cat conftest.$ac_ext >&5
5798   fi
5799   rm -rf conftest* conftst*
5800
5801   # Do not use the global_symbol_pipe unless it works.
5802   if test yes = "$pipe_works"; then
5803     break
5804   else
5805     lt_cv_sys_global_symbol_pipe=
5806   fi
5807 done
5808
5809 fi
5810
5811 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5812   lt_cv_sys_global_symbol_to_cdecl=
5813 fi
5814 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5816 $as_echo "failed" >&6; }
5817 else
5818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5819 $as_echo "ok" >&6; }
5820 fi
5821
5822 # Response file support.
5823 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5824   nm_file_list_spec='@'
5825 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5826   nm_file_list_spec='@'
5827 fi
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5866 $as_echo_n "checking for sysroot... " >&6; }
5867
5868 # Check whether --with-sysroot was given.
5869 if test "${with_sysroot+set}" = set; then :
5870   withval=$with_sysroot;
5871 else
5872   with_sysroot=no
5873 fi
5874
5875
5876 lt_sysroot=
5877 case $with_sysroot in #(
5878  yes)
5879    if test yes = "$GCC"; then
5880      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5881    fi
5882    ;; #(
5883  /*)
5884    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5885    ;; #(
5886  no|'')
5887    ;; #(
5888  *)
5889    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
5890 $as_echo "$with_sysroot" >&6; }
5891    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5892    ;;
5893 esac
5894
5895  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5896 $as_echo "${lt_sysroot:-no}" >&6; }
5897
5898
5899
5900
5901
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
5903 $as_echo_n "checking for a working dd... " >&6; }
5904 if ${ac_cv_path_lt_DD+:} false; then :
5905   $as_echo_n "(cached) " >&6
5906 else
5907   printf 0123456789abcdef0123456789abcdef >conftest.i
5908 cat conftest.i conftest.i >conftest2.i
5909 : ${lt_DD:=$DD}
5910 if test -z "$lt_DD"; then
5911   ac_path_lt_DD_found=false
5912   # Loop through the user's path and test for each of PROGNAME-LIST
5913   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5914 for as_dir in $PATH
5915 do
5916   IFS=$as_save_IFS
5917   test -z "$as_dir" && as_dir=.
5918     for ac_prog in dd; do
5919     for ac_exec_ext in '' $ac_executable_extensions; do
5920       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
5921       as_fn_executable_p "$ac_path_lt_DD" || continue
5922 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
5923   cmp -s conftest.i conftest.out \
5924   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
5925 fi
5926       $ac_path_lt_DD_found && break 3
5927     done
5928   done
5929   done
5930 IFS=$as_save_IFS
5931   if test -z "$ac_cv_path_lt_DD"; then
5932     :
5933   fi
5934 else
5935   ac_cv_path_lt_DD=$lt_DD
5936 fi
5937
5938 rm -f conftest.i conftest2.i conftest.out
5939 fi
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
5941 $as_echo "$ac_cv_path_lt_DD" >&6; }
5942
5943
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
5945 $as_echo_n "checking how to truncate binary pipes... " >&6; }
5946 if ${lt_cv_truncate_bin+:} false; then :
5947   $as_echo_n "(cached) " >&6
5948 else
5949   printf 0123456789abcdef0123456789abcdef >conftest.i
5950 cat conftest.i conftest.i >conftest2.i
5951 lt_cv_truncate_bin=
5952 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
5953   cmp -s conftest.i conftest.out \
5954   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
5955 fi
5956 rm -f conftest.i conftest2.i conftest.out
5957 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
5958 fi
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
5960 $as_echo "$lt_cv_truncate_bin" >&6; }
5961
5962
5963
5964
5965
5966
5967
5968 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
5969 func_cc_basename ()
5970 {
5971     for cc_temp in $*""; do
5972       case $cc_temp in
5973         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5974         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5975         \-*) ;;
5976         *) break;;
5977       esac
5978     done
5979     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
5980 }
5981
5982 # Check whether --enable-libtool-lock was given.
5983 if test "${enable_libtool_lock+set}" = set; then :
5984   enableval=$enable_libtool_lock;
5985 fi
5986
5987 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
5988
5989 # Some flags need to be propagated to the compiler or linker for good
5990 # libtool support.
5991 case $host in
5992 ia64-*-hpux*)
5993   # Find out what ABI is being produced by ac_compile, and set mode
5994   # options accordingly.
5995   echo 'int i;' > conftest.$ac_ext
5996   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5997   (eval $ac_compile) 2>&5
5998   ac_status=$?
5999   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6000   test $ac_status = 0; }; then
6001     case `/usr/bin/file conftest.$ac_objext` in
6002       *ELF-32*)
6003         HPUX_IA64_MODE=32
6004         ;;
6005       *ELF-64*)
6006         HPUX_IA64_MODE=64
6007         ;;
6008     esac
6009   fi
6010   rm -rf conftest*
6011   ;;
6012 *-*-irix6*)
6013   # Find out what ABI is being produced by ac_compile, and set linker
6014   # options accordingly.
6015   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6016   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6017   (eval $ac_compile) 2>&5
6018   ac_status=$?
6019   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6020   test $ac_status = 0; }; then
6021     if test yes = "$lt_cv_prog_gnu_ld"; then
6022       case `/usr/bin/file conftest.$ac_objext` in
6023         *32-bit*)
6024           LD="${LD-ld} -melf32bsmip"
6025           ;;
6026         *N32*)
6027           LD="${LD-ld} -melf32bmipn32"
6028           ;;
6029         *64-bit*)
6030           LD="${LD-ld} -melf64bmip"
6031         ;;
6032       esac
6033     else
6034       case `/usr/bin/file conftest.$ac_objext` in
6035         *32-bit*)
6036           LD="${LD-ld} -32"
6037           ;;
6038         *N32*)
6039           LD="${LD-ld} -n32"
6040           ;;
6041         *64-bit*)
6042           LD="${LD-ld} -64"
6043           ;;
6044       esac
6045     fi
6046   fi
6047   rm -rf conftest*
6048   ;;
6049
6050 mips64*-*linux*)
6051   # Find out what ABI is being produced by ac_compile, and set linker
6052   # options accordingly.
6053   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6054   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6055   (eval $ac_compile) 2>&5
6056   ac_status=$?
6057   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6058   test $ac_status = 0; }; then
6059     emul=elf
6060     case `/usr/bin/file conftest.$ac_objext` in
6061       *32-bit*)
6062         emul="${emul}32"
6063         ;;
6064       *64-bit*)
6065         emul="${emul}64"
6066         ;;
6067     esac
6068     case `/usr/bin/file conftest.$ac_objext` in
6069       *MSB*)
6070         emul="${emul}btsmip"
6071         ;;
6072       *LSB*)
6073         emul="${emul}ltsmip"
6074         ;;
6075     esac
6076     case `/usr/bin/file conftest.$ac_objext` in
6077       *N32*)
6078         emul="${emul}n32"
6079         ;;
6080     esac
6081     LD="${LD-ld} -m $emul"
6082   fi
6083   rm -rf conftest*
6084   ;;
6085
6086 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6087 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6088   # Find out what ABI is being produced by ac_compile, and set linker
6089   # options accordingly.  Note that the listed cases only cover the
6090   # situations where additional linker options are needed (such as when
6091   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6092   # vice versa); the common cases where no linker options are needed do
6093   # not appear in the list.
6094   echo 'int i;' > conftest.$ac_ext
6095   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6096   (eval $ac_compile) 2>&5
6097   ac_status=$?
6098   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6099   test $ac_status = 0; }; then
6100     case `/usr/bin/file conftest.o` in
6101       *32-bit*)
6102         case $host in
6103           x86_64-*kfreebsd*-gnu)
6104             LD="${LD-ld} -m elf_i386_fbsd"
6105             ;;
6106           x86_64-*linux*)
6107             case `/usr/bin/file conftest.o` in
6108               *x86-64*)
6109                 LD="${LD-ld} -m elf32_x86_64"
6110                 ;;
6111               *)
6112                 LD="${LD-ld} -m elf_i386"
6113                 ;;
6114             esac
6115             ;;
6116           powerpc64le-*linux*)
6117             LD="${LD-ld} -m elf32lppclinux"
6118             ;;
6119           powerpc64-*linux*)
6120             LD="${LD-ld} -m elf32ppclinux"
6121             ;;
6122           s390x-*linux*)
6123             LD="${LD-ld} -m elf_s390"
6124             ;;
6125           sparc64-*linux*)
6126             LD="${LD-ld} -m elf32_sparc"
6127             ;;
6128         esac
6129         ;;
6130       *64-bit*)
6131         case $host in
6132           x86_64-*kfreebsd*-gnu)
6133             LD="${LD-ld} -m elf_x86_64_fbsd"
6134             ;;
6135           x86_64-*linux*)
6136             LD="${LD-ld} -m elf_x86_64"
6137             ;;
6138           powerpcle-*linux*)
6139             LD="${LD-ld} -m elf64lppc"
6140             ;;
6141           powerpc-*linux*)
6142             LD="${LD-ld} -m elf64ppc"
6143             ;;
6144           s390*-*linux*|s390*-*tpf*)
6145             LD="${LD-ld} -m elf64_s390"
6146             ;;
6147           sparc*-*linux*)
6148             LD="${LD-ld} -m elf64_sparc"
6149             ;;
6150         esac
6151         ;;
6152     esac
6153   fi
6154   rm -rf conftest*
6155   ;;
6156
6157 *-*-sco3.2v5*)
6158   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6159   SAVE_CFLAGS=$CFLAGS
6160   CFLAGS="$CFLAGS -belf"
6161   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6162 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6163 if ${lt_cv_cc_needs_belf+:} false; then :
6164   $as_echo_n "(cached) " >&6
6165 else
6166   ac_ext=c
6167 ac_cpp='$CPP $CPPFLAGS'
6168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6171
6172      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6173 /* end confdefs.h.  */
6174
6175 int
6176 main ()
6177 {
6178
6179   ;
6180   return 0;
6181 }
6182 _ACEOF
6183 if ac_fn_c_try_link "$LINENO"; then :
6184   lt_cv_cc_needs_belf=yes
6185 else
6186   lt_cv_cc_needs_belf=no
6187 fi
6188 rm -f core conftest.err conftest.$ac_objext \
6189     conftest$ac_exeext conftest.$ac_ext
6190      ac_ext=c
6191 ac_cpp='$CPP $CPPFLAGS'
6192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6195
6196 fi
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6198 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6199   if test yes != "$lt_cv_cc_needs_belf"; then
6200     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6201     CFLAGS=$SAVE_CFLAGS
6202   fi
6203   ;;
6204 *-*solaris*)
6205   # Find out what ABI is being produced by ac_compile, and set linker
6206   # options accordingly.
6207   echo 'int i;' > conftest.$ac_ext
6208   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6209   (eval $ac_compile) 2>&5
6210   ac_status=$?
6211   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6212   test $ac_status = 0; }; then
6213     case `/usr/bin/file conftest.o` in
6214     *64-bit*)
6215       case $lt_cv_prog_gnu_ld in
6216       yes*)
6217         case $host in
6218         i?86-*-solaris*|x86_64-*-solaris*)
6219           LD="${LD-ld} -m elf_x86_64"
6220           ;;
6221         sparc*-*-solaris*)
6222           LD="${LD-ld} -m elf64_sparc"
6223           ;;
6224         esac
6225         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6226         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6227           LD=${LD-ld}_sol2
6228         fi
6229         ;;
6230       *)
6231         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6232           LD="${LD-ld} -64"
6233         fi
6234         ;;
6235       esac
6236       ;;
6237     esac
6238   fi
6239   rm -rf conftest*
6240   ;;
6241 esac
6242
6243 need_locks=$enable_libtool_lock
6244
6245 if test -n "$ac_tool_prefix"; then
6246   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6247 set dummy ${ac_tool_prefix}mt; ac_word=$2
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6249 $as_echo_n "checking for $ac_word... " >&6; }
6250 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6251   $as_echo_n "(cached) " >&6
6252 else
6253   if test -n "$MANIFEST_TOOL"; then
6254   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6255 else
6256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6257 for as_dir in $PATH
6258 do
6259   IFS=$as_save_IFS
6260   test -z "$as_dir" && as_dir=.
6261     for ac_exec_ext in '' $ac_executable_extensions; do
6262   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6263     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6264     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6265     break 2
6266   fi
6267 done
6268   done
6269 IFS=$as_save_IFS
6270
6271 fi
6272 fi
6273 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6274 if test -n "$MANIFEST_TOOL"; then
6275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6276 $as_echo "$MANIFEST_TOOL" >&6; }
6277 else
6278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6279 $as_echo "no" >&6; }
6280 fi
6281
6282
6283 fi
6284 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6285   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6286   # Extract the first word of "mt", so it can be a program name with args.
6287 set dummy mt; ac_word=$2
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6289 $as_echo_n "checking for $ac_word... " >&6; }
6290 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6291   $as_echo_n "(cached) " >&6
6292 else
6293   if test -n "$ac_ct_MANIFEST_TOOL"; then
6294   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6295 else
6296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6297 for as_dir in $PATH
6298 do
6299   IFS=$as_save_IFS
6300   test -z "$as_dir" && as_dir=.
6301     for ac_exec_ext in '' $ac_executable_extensions; do
6302   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6303     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6304     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6305     break 2
6306   fi
6307 done
6308   done
6309 IFS=$as_save_IFS
6310
6311 fi
6312 fi
6313 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6314 if test -n "$ac_ct_MANIFEST_TOOL"; then
6315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6316 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6317 else
6318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6319 $as_echo "no" >&6; }
6320 fi
6321
6322   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6323     MANIFEST_TOOL=":"
6324   else
6325     case $cross_compiling:$ac_tool_warned in
6326 yes:)
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6328 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6329 ac_tool_warned=yes ;;
6330 esac
6331     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6332   fi
6333 else
6334   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6335 fi
6336
6337 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6339 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6340 if ${lt_cv_path_mainfest_tool+:} false; then :
6341   $as_echo_n "(cached) " >&6
6342 else
6343   lt_cv_path_mainfest_tool=no
6344   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6345   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6346   cat conftest.err >&5
6347   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6348     lt_cv_path_mainfest_tool=yes
6349   fi
6350   rm -f conftest*
6351 fi
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6353 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6354 if test yes != "$lt_cv_path_mainfest_tool"; then
6355   MANIFEST_TOOL=:
6356 fi
6357
6358
6359
6360
6361
6362
6363   case $host_os in
6364     rhapsody* | darwin*)
6365     if test -n "$ac_tool_prefix"; then
6366   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6367 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6369 $as_echo_n "checking for $ac_word... " >&6; }
6370 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6371   $as_echo_n "(cached) " >&6
6372 else
6373   if test -n "$DSYMUTIL"; then
6374   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6375 else
6376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6377 for as_dir in $PATH
6378 do
6379   IFS=$as_save_IFS
6380   test -z "$as_dir" && as_dir=.
6381     for ac_exec_ext in '' $ac_executable_extensions; do
6382   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6383     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6384     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6385     break 2
6386   fi
6387 done
6388   done
6389 IFS=$as_save_IFS
6390
6391 fi
6392 fi
6393 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6394 if test -n "$DSYMUTIL"; then
6395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6396 $as_echo "$DSYMUTIL" >&6; }
6397 else
6398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6399 $as_echo "no" >&6; }
6400 fi
6401
6402
6403 fi
6404 if test -z "$ac_cv_prog_DSYMUTIL"; then
6405   ac_ct_DSYMUTIL=$DSYMUTIL
6406   # Extract the first word of "dsymutil", so it can be a program name with args.
6407 set dummy dsymutil; ac_word=$2
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6409 $as_echo_n "checking for $ac_word... " >&6; }
6410 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6411   $as_echo_n "(cached) " >&6
6412 else
6413   if test -n "$ac_ct_DSYMUTIL"; then
6414   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6415 else
6416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6417 for as_dir in $PATH
6418 do
6419   IFS=$as_save_IFS
6420   test -z "$as_dir" && as_dir=.
6421     for ac_exec_ext in '' $ac_executable_extensions; do
6422   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6423     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6424     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6425     break 2
6426   fi
6427 done
6428   done
6429 IFS=$as_save_IFS
6430
6431 fi
6432 fi
6433 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6434 if test -n "$ac_ct_DSYMUTIL"; then
6435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6436 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6437 else
6438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6439 $as_echo "no" >&6; }
6440 fi
6441
6442   if test "x$ac_ct_DSYMUTIL" = x; then
6443     DSYMUTIL=":"
6444   else
6445     case $cross_compiling:$ac_tool_warned in
6446 yes:)
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6448 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6449 ac_tool_warned=yes ;;
6450 esac
6451     DSYMUTIL=$ac_ct_DSYMUTIL
6452   fi
6453 else
6454   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6455 fi
6456
6457     if test -n "$ac_tool_prefix"; then
6458   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6459 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6461 $as_echo_n "checking for $ac_word... " >&6; }
6462 if ${ac_cv_prog_NMEDIT+:} false; then :
6463   $as_echo_n "(cached) " >&6
6464 else
6465   if test -n "$NMEDIT"; then
6466   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6467 else
6468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6469 for as_dir in $PATH
6470 do
6471   IFS=$as_save_IFS
6472   test -z "$as_dir" && as_dir=.
6473     for ac_exec_ext in '' $ac_executable_extensions; do
6474   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6475     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6476     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6477     break 2
6478   fi
6479 done
6480   done
6481 IFS=$as_save_IFS
6482
6483 fi
6484 fi
6485 NMEDIT=$ac_cv_prog_NMEDIT
6486 if test -n "$NMEDIT"; then
6487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6488 $as_echo "$NMEDIT" >&6; }
6489 else
6490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6491 $as_echo "no" >&6; }
6492 fi
6493
6494
6495 fi
6496 if test -z "$ac_cv_prog_NMEDIT"; then
6497   ac_ct_NMEDIT=$NMEDIT
6498   # Extract the first word of "nmedit", so it can be a program name with args.
6499 set dummy nmedit; ac_word=$2
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6501 $as_echo_n "checking for $ac_word... " >&6; }
6502 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6503   $as_echo_n "(cached) " >&6
6504 else
6505   if test -n "$ac_ct_NMEDIT"; then
6506   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6507 else
6508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6509 for as_dir in $PATH
6510 do
6511   IFS=$as_save_IFS
6512   test -z "$as_dir" && as_dir=.
6513     for ac_exec_ext in '' $ac_executable_extensions; do
6514   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6515     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6516     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6517     break 2
6518   fi
6519 done
6520   done
6521 IFS=$as_save_IFS
6522
6523 fi
6524 fi
6525 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6526 if test -n "$ac_ct_NMEDIT"; then
6527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6528 $as_echo "$ac_ct_NMEDIT" >&6; }
6529 else
6530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6531 $as_echo "no" >&6; }
6532 fi
6533
6534   if test "x$ac_ct_NMEDIT" = x; then
6535     NMEDIT=":"
6536   else
6537     case $cross_compiling:$ac_tool_warned in
6538 yes:)
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6540 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6541 ac_tool_warned=yes ;;
6542 esac
6543     NMEDIT=$ac_ct_NMEDIT
6544   fi
6545 else
6546   NMEDIT="$ac_cv_prog_NMEDIT"
6547 fi
6548
6549     if test -n "$ac_tool_prefix"; then
6550   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6551 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6553 $as_echo_n "checking for $ac_word... " >&6; }
6554 if ${ac_cv_prog_LIPO+:} false; then :
6555   $as_echo_n "(cached) " >&6
6556 else
6557   if test -n "$LIPO"; then
6558   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6559 else
6560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6561 for as_dir in $PATH
6562 do
6563   IFS=$as_save_IFS
6564   test -z "$as_dir" && as_dir=.
6565     for ac_exec_ext in '' $ac_executable_extensions; do
6566   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6567     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6568     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6569     break 2
6570   fi
6571 done
6572   done
6573 IFS=$as_save_IFS
6574
6575 fi
6576 fi
6577 LIPO=$ac_cv_prog_LIPO
6578 if test -n "$LIPO"; then
6579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6580 $as_echo "$LIPO" >&6; }
6581 else
6582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6583 $as_echo "no" >&6; }
6584 fi
6585
6586
6587 fi
6588 if test -z "$ac_cv_prog_LIPO"; then
6589   ac_ct_LIPO=$LIPO
6590   # Extract the first word of "lipo", so it can be a program name with args.
6591 set dummy lipo; ac_word=$2
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6593 $as_echo_n "checking for $ac_word... " >&6; }
6594 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6595   $as_echo_n "(cached) " >&6
6596 else
6597   if test -n "$ac_ct_LIPO"; then
6598   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6599 else
6600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6601 for as_dir in $PATH
6602 do
6603   IFS=$as_save_IFS
6604   test -z "$as_dir" && as_dir=.
6605     for ac_exec_ext in '' $ac_executable_extensions; do
6606   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6607     ac_cv_prog_ac_ct_LIPO="lipo"
6608     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6609     break 2
6610   fi
6611 done
6612   done
6613 IFS=$as_save_IFS
6614
6615 fi
6616 fi
6617 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6618 if test -n "$ac_ct_LIPO"; then
6619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6620 $as_echo "$ac_ct_LIPO" >&6; }
6621 else
6622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6623 $as_echo "no" >&6; }
6624 fi
6625
6626   if test "x$ac_ct_LIPO" = x; then
6627     LIPO=":"
6628   else
6629     case $cross_compiling:$ac_tool_warned in
6630 yes:)
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6632 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6633 ac_tool_warned=yes ;;
6634 esac
6635     LIPO=$ac_ct_LIPO
6636   fi
6637 else
6638   LIPO="$ac_cv_prog_LIPO"
6639 fi
6640
6641     if test -n "$ac_tool_prefix"; then
6642   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6643 set dummy ${ac_tool_prefix}otool; ac_word=$2
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6645 $as_echo_n "checking for $ac_word... " >&6; }
6646 if ${ac_cv_prog_OTOOL+:} false; then :
6647   $as_echo_n "(cached) " >&6
6648 else
6649   if test -n "$OTOOL"; then
6650   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6651 else
6652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6653 for as_dir in $PATH
6654 do
6655   IFS=$as_save_IFS
6656   test -z "$as_dir" && as_dir=.
6657     for ac_exec_ext in '' $ac_executable_extensions; do
6658   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6659     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6660     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6661     break 2
6662   fi
6663 done
6664   done
6665 IFS=$as_save_IFS
6666
6667 fi
6668 fi
6669 OTOOL=$ac_cv_prog_OTOOL
6670 if test -n "$OTOOL"; then
6671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6672 $as_echo "$OTOOL" >&6; }
6673 else
6674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6675 $as_echo "no" >&6; }
6676 fi
6677
6678
6679 fi
6680 if test -z "$ac_cv_prog_OTOOL"; then
6681   ac_ct_OTOOL=$OTOOL
6682   # Extract the first word of "otool", so it can be a program name with args.
6683 set dummy otool; ac_word=$2
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6685 $as_echo_n "checking for $ac_word... " >&6; }
6686 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6687   $as_echo_n "(cached) " >&6
6688 else
6689   if test -n "$ac_ct_OTOOL"; then
6690   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6691 else
6692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6693 for as_dir in $PATH
6694 do
6695   IFS=$as_save_IFS
6696   test -z "$as_dir" && as_dir=.
6697     for ac_exec_ext in '' $ac_executable_extensions; do
6698   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6699     ac_cv_prog_ac_ct_OTOOL="otool"
6700     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6701     break 2
6702   fi
6703 done
6704   done
6705 IFS=$as_save_IFS
6706
6707 fi
6708 fi
6709 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6710 if test -n "$ac_ct_OTOOL"; then
6711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6712 $as_echo "$ac_ct_OTOOL" >&6; }
6713 else
6714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6715 $as_echo "no" >&6; }
6716 fi
6717
6718   if test "x$ac_ct_OTOOL" = x; then
6719     OTOOL=":"
6720   else
6721     case $cross_compiling:$ac_tool_warned in
6722 yes:)
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6724 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6725 ac_tool_warned=yes ;;
6726 esac
6727     OTOOL=$ac_ct_OTOOL
6728   fi
6729 else
6730   OTOOL="$ac_cv_prog_OTOOL"
6731 fi
6732
6733     if test -n "$ac_tool_prefix"; then
6734   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6735 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6737 $as_echo_n "checking for $ac_word... " >&6; }
6738 if ${ac_cv_prog_OTOOL64+:} false; then :
6739   $as_echo_n "(cached) " >&6
6740 else
6741   if test -n "$OTOOL64"; then
6742   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6743 else
6744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6745 for as_dir in $PATH
6746 do
6747   IFS=$as_save_IFS
6748   test -z "$as_dir" && as_dir=.
6749     for ac_exec_ext in '' $ac_executable_extensions; do
6750   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6751     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6752     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6753     break 2
6754   fi
6755 done
6756   done
6757 IFS=$as_save_IFS
6758
6759 fi
6760 fi
6761 OTOOL64=$ac_cv_prog_OTOOL64
6762 if test -n "$OTOOL64"; then
6763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6764 $as_echo "$OTOOL64" >&6; }
6765 else
6766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6767 $as_echo "no" >&6; }
6768 fi
6769
6770
6771 fi
6772 if test -z "$ac_cv_prog_OTOOL64"; then
6773   ac_ct_OTOOL64=$OTOOL64
6774   # Extract the first word of "otool64", so it can be a program name with args.
6775 set dummy otool64; ac_word=$2
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6777 $as_echo_n "checking for $ac_word... " >&6; }
6778 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6779   $as_echo_n "(cached) " >&6
6780 else
6781   if test -n "$ac_ct_OTOOL64"; then
6782   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6783 else
6784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6785 for as_dir in $PATH
6786 do
6787   IFS=$as_save_IFS
6788   test -z "$as_dir" && as_dir=.
6789     for ac_exec_ext in '' $ac_executable_extensions; do
6790   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6791     ac_cv_prog_ac_ct_OTOOL64="otool64"
6792     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6793     break 2
6794   fi
6795 done
6796   done
6797 IFS=$as_save_IFS
6798
6799 fi
6800 fi
6801 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6802 if test -n "$ac_ct_OTOOL64"; then
6803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6804 $as_echo "$ac_ct_OTOOL64" >&6; }
6805 else
6806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6807 $as_echo "no" >&6; }
6808 fi
6809
6810   if test "x$ac_ct_OTOOL64" = x; then
6811     OTOOL64=":"
6812   else
6813     case $cross_compiling:$ac_tool_warned in
6814 yes:)
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6816 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6817 ac_tool_warned=yes ;;
6818 esac
6819     OTOOL64=$ac_ct_OTOOL64
6820   fi
6821 else
6822   OTOOL64="$ac_cv_prog_OTOOL64"
6823 fi
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6852 $as_echo_n "checking for -single_module linker flag... " >&6; }
6853 if ${lt_cv_apple_cc_single_mod+:} false; then :
6854   $as_echo_n "(cached) " >&6
6855 else
6856   lt_cv_apple_cc_single_mod=no
6857       if test -z "$LT_MULTI_MODULE"; then
6858         # By default we will add the -single_module flag. You can override
6859         # by either setting the environment variable LT_MULTI_MODULE
6860         # non-empty at configure time, or by adding -multi_module to the
6861         # link flags.
6862         rm -rf libconftest.dylib*
6863         echo "int foo(void){return 1;}" > conftest.c
6864         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6865 -dynamiclib -Wl,-single_module conftest.c" >&5
6866         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6867           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6868         _lt_result=$?
6869         # If there is a non-empty error log, and "single_module"
6870         # appears in it, assume the flag caused a linker warning
6871         if test -s conftest.err && $GREP single_module conftest.err; then
6872           cat conftest.err >&5
6873         # Otherwise, if the output was created with a 0 exit code from
6874         # the compiler, it worked.
6875         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
6876           lt_cv_apple_cc_single_mod=yes
6877         else
6878           cat conftest.err >&5
6879         fi
6880         rm -rf libconftest.dylib*
6881         rm -f conftest.*
6882       fi
6883 fi
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6885 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6886
6887     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6888 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6889 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6890   $as_echo_n "(cached) " >&6
6891 else
6892   lt_cv_ld_exported_symbols_list=no
6893       save_LDFLAGS=$LDFLAGS
6894       echo "_main" > conftest.sym
6895       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6896       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6897 /* end confdefs.h.  */
6898
6899 int
6900 main ()
6901 {
6902
6903   ;
6904   return 0;
6905 }
6906 _ACEOF
6907 if ac_fn_c_try_link "$LINENO"; then :
6908   lt_cv_ld_exported_symbols_list=yes
6909 else
6910   lt_cv_ld_exported_symbols_list=no
6911 fi
6912 rm -f core conftest.err conftest.$ac_objext \
6913     conftest$ac_exeext conftest.$ac_ext
6914         LDFLAGS=$save_LDFLAGS
6915
6916 fi
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6918 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6919
6920     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6921 $as_echo_n "checking for -force_load linker flag... " >&6; }
6922 if ${lt_cv_ld_force_load+:} false; then :
6923   $as_echo_n "(cached) " >&6
6924 else
6925   lt_cv_ld_force_load=no
6926       cat > conftest.c << _LT_EOF
6927 int forced_loaded() { return 2;}
6928 _LT_EOF
6929       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6930       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6931       echo "$AR cru libconftest.a conftest.o" >&5
6932       $AR cru libconftest.a conftest.o 2>&5
6933       echo "$RANLIB libconftest.a" >&5
6934       $RANLIB libconftest.a 2>&5
6935       cat > conftest.c << _LT_EOF
6936 int main() { return 0;}
6937 _LT_EOF
6938       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6939       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6940       _lt_result=$?
6941       if test -s conftest.err && $GREP force_load conftest.err; then
6942         cat conftest.err >&5
6943       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
6944         lt_cv_ld_force_load=yes
6945       else
6946         cat conftest.err >&5
6947       fi
6948         rm -f conftest.err libconftest.a conftest conftest.c
6949         rm -rf conftest.dSYM
6950
6951 fi
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6953 $as_echo "$lt_cv_ld_force_load" >&6; }
6954     case $host_os in
6955     rhapsody* | darwin1.[012])
6956       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
6957     darwin1.*)
6958       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
6959     darwin*) # darwin 5.x on
6960       # if running on 10.5 or later, the deployment target defaults
6961       # to the OS version, if on x86, and 10.4, the deployment
6962       # target defaults to 10.4. Don't you love it?
6963       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6964         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6965           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
6966         10.[012][,.]*)
6967           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
6968         10.*)
6969           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
6970       esac
6971     ;;
6972   esac
6973     if test yes = "$lt_cv_apple_cc_single_mod"; then
6974       _lt_dar_single_mod='$single_module'
6975     fi
6976     if test yes = "$lt_cv_ld_exported_symbols_list"; then
6977       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
6978     else
6979       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
6980     fi
6981     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
6982       _lt_dsymutil='~$DSYMUTIL $lib || :'
6983     else
6984       _lt_dsymutil=
6985     fi
6986     ;;
6987   esac
6988
6989 # func_munge_path_list VARIABLE PATH
6990 # -----------------------------------
6991 # VARIABLE is name of variable containing _space_ separated list of
6992 # directories to be munged by the contents of PATH, which is string
6993 # having a format:
6994 # "DIR[:DIR]:"
6995 #       string "DIR[ DIR]" will be prepended to VARIABLE
6996 # ":DIR[:DIR]"
6997 #       string "DIR[ DIR]" will be appended to VARIABLE
6998 # "DIRP[:DIRP]::[DIRA:]DIRA"
6999 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7000 #       "DIRA[ DIRA]" will be appended to VARIABLE
7001 # "DIR[:DIR]"
7002 #       VARIABLE will be replaced by "DIR[ DIR]"
7003 func_munge_path_list ()
7004 {
7005     case x$2 in
7006     x)
7007         ;;
7008     *:)
7009         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7010         ;;
7011     x:*)
7012         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7013         ;;
7014     *::*)
7015         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7016         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7017         ;;
7018     *)
7019         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7020         ;;
7021     esac
7022 }
7023
7024 ac_ext=c
7025 ac_cpp='$CPP $CPPFLAGS'
7026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7030 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7031 # On Suns, sometimes $CPP names a directory.
7032 if test -n "$CPP" && test -d "$CPP"; then
7033   CPP=
7034 fi
7035 if test -z "$CPP"; then
7036   if ${ac_cv_prog_CPP+:} false; then :
7037   $as_echo_n "(cached) " >&6
7038 else
7039       # Double quotes because CPP needs to be expanded
7040     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7041     do
7042       ac_preproc_ok=false
7043 for ac_c_preproc_warn_flag in '' yes
7044 do
7045   # Use a header file that comes with gcc, so configuring glibc
7046   # with a fresh cross-compiler works.
7047   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7048   # <limits.h> exists even on freestanding compilers.
7049   # On the NeXT, cc -E runs the code through the compiler's parser,
7050   # not just through cpp. "Syntax error" is here to catch this case.
7051   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7052 /* end confdefs.h.  */
7053 #ifdef __STDC__
7054 # include <limits.h>
7055 #else
7056 # include <assert.h>
7057 #endif
7058                      Syntax error
7059 _ACEOF
7060 if ac_fn_c_try_cpp "$LINENO"; then :
7061
7062 else
7063   # Broken: fails on valid input.
7064 continue
7065 fi
7066 rm -f conftest.err conftest.i conftest.$ac_ext
7067
7068   # OK, works on sane cases.  Now check whether nonexistent headers
7069   # can be detected and how.
7070   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7071 /* end confdefs.h.  */
7072 #include <ac_nonexistent.h>
7073 _ACEOF
7074 if ac_fn_c_try_cpp "$LINENO"; then :
7075   # Broken: success on invalid input.
7076 continue
7077 else
7078   # Passes both tests.
7079 ac_preproc_ok=:
7080 break
7081 fi
7082 rm -f conftest.err conftest.i conftest.$ac_ext
7083
7084 done
7085 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7086 rm -f conftest.i conftest.err conftest.$ac_ext
7087 if $ac_preproc_ok; then :
7088   break
7089 fi
7090
7091     done
7092     ac_cv_prog_CPP=$CPP
7093
7094 fi
7095   CPP=$ac_cv_prog_CPP
7096 else
7097   ac_cv_prog_CPP=$CPP
7098 fi
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7100 $as_echo "$CPP" >&6; }
7101 ac_preproc_ok=false
7102 for ac_c_preproc_warn_flag in '' yes
7103 do
7104   # Use a header file that comes with gcc, so configuring glibc
7105   # with a fresh cross-compiler works.
7106   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7107   # <limits.h> exists even on freestanding compilers.
7108   # On the NeXT, cc -E runs the code through the compiler's parser,
7109   # not just through cpp. "Syntax error" is here to catch this case.
7110   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7111 /* end confdefs.h.  */
7112 #ifdef __STDC__
7113 # include <limits.h>
7114 #else
7115 # include <assert.h>
7116 #endif
7117                      Syntax error
7118 _ACEOF
7119 if ac_fn_c_try_cpp "$LINENO"; then :
7120
7121 else
7122   # Broken: fails on valid input.
7123 continue
7124 fi
7125 rm -f conftest.err conftest.i conftest.$ac_ext
7126
7127   # OK, works on sane cases.  Now check whether nonexistent headers
7128   # can be detected and how.
7129   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7130 /* end confdefs.h.  */
7131 #include <ac_nonexistent.h>
7132 _ACEOF
7133 if ac_fn_c_try_cpp "$LINENO"; then :
7134   # Broken: success on invalid input.
7135 continue
7136 else
7137   # Passes both tests.
7138 ac_preproc_ok=:
7139 break
7140 fi
7141 rm -f conftest.err conftest.i conftest.$ac_ext
7142
7143 done
7144 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7145 rm -f conftest.i conftest.err conftest.$ac_ext
7146 if $ac_preproc_ok; then :
7147
7148 else
7149   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7150 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7151 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7152 See \`config.log' for more details" "$LINENO" 5; }
7153 fi
7154
7155 ac_ext=c
7156 ac_cpp='$CPP $CPPFLAGS'
7157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7160
7161
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7163 $as_echo_n "checking for ANSI C header files... " >&6; }
7164 if ${ac_cv_header_stdc+:} false; then :
7165   $as_echo_n "(cached) " >&6
7166 else
7167   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7168 /* end confdefs.h.  */
7169 #include <stdlib.h>
7170 #include <stdarg.h>
7171 #include <string.h>
7172 #include <float.h>
7173
7174 int
7175 main ()
7176 {
7177
7178   ;
7179   return 0;
7180 }
7181 _ACEOF
7182 if ac_fn_c_try_compile "$LINENO"; then :
7183   ac_cv_header_stdc=yes
7184 else
7185   ac_cv_header_stdc=no
7186 fi
7187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7188
7189 if test $ac_cv_header_stdc = yes; then
7190   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7191   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7192 /* end confdefs.h.  */
7193 #include <string.h>
7194
7195 _ACEOF
7196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7197   $EGREP "memchr" >/dev/null 2>&1; then :
7198
7199 else
7200   ac_cv_header_stdc=no
7201 fi
7202 rm -f conftest*
7203
7204 fi
7205
7206 if test $ac_cv_header_stdc = yes; then
7207   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7208   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7209 /* end confdefs.h.  */
7210 #include <stdlib.h>
7211
7212 _ACEOF
7213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7214   $EGREP "free" >/dev/null 2>&1; then :
7215
7216 else
7217   ac_cv_header_stdc=no
7218 fi
7219 rm -f conftest*
7220
7221 fi
7222
7223 if test $ac_cv_header_stdc = yes; then
7224   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7225   if test "$cross_compiling" = yes; then :
7226   :
7227 else
7228   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7229 /* end confdefs.h.  */
7230 #include <ctype.h>
7231 #include <stdlib.h>
7232 #if ((' ' & 0x0FF) == 0x020)
7233 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7234 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7235 #else
7236 # define ISLOWER(c) \
7237                    (('a' <= (c) && (c) <= 'i') \
7238                      || ('j' <= (c) && (c) <= 'r') \
7239                      || ('s' <= (c) && (c) <= 'z'))
7240 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7241 #endif
7242
7243 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7244 int
7245 main ()
7246 {
7247   int i;
7248   for (i = 0; i < 256; i++)
7249     if (XOR (islower (i), ISLOWER (i))
7250         || toupper (i) != TOUPPER (i))
7251       return 2;
7252   return 0;
7253 }
7254 _ACEOF
7255 if ac_fn_c_try_run "$LINENO"; then :
7256
7257 else
7258   ac_cv_header_stdc=no
7259 fi
7260 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7261   conftest.$ac_objext conftest.beam conftest.$ac_ext
7262 fi
7263
7264 fi
7265 fi
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7267 $as_echo "$ac_cv_header_stdc" >&6; }
7268 if test $ac_cv_header_stdc = yes; then
7269
7270 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7271
7272 fi
7273
7274 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7275 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7276                   inttypes.h stdint.h unistd.h
7277 do :
7278   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7279 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7280 "
7281 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7282   cat >>confdefs.h <<_ACEOF
7283 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7284 _ACEOF
7285
7286 fi
7287
7288 done
7289
7290
7291 for ac_header in dlfcn.h
7292 do :
7293   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7294 "
7295 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7296   cat >>confdefs.h <<_ACEOF
7297 #define HAVE_DLFCN_H 1
7298 _ACEOF
7299
7300 fi
7301
7302 done
7303
7304
7305
7306
7307
7308 # Set options
7309
7310
7311
7312         enable_dlopen=no
7313
7314
7315
7316             # Check whether --enable-shared was given.
7317 if test "${enable_shared+set}" = set; then :
7318   enableval=$enable_shared; p=${PACKAGE-default}
7319     case $enableval in
7320     yes) enable_shared=yes ;;
7321     no) enable_shared=no ;;
7322     *)
7323       enable_shared=no
7324       # Look at the argument we got.  We use all the common list separators.
7325       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7326       for pkg in $enableval; do
7327         IFS=$lt_save_ifs
7328         if test "X$pkg" = "X$p"; then
7329           enable_shared=yes
7330         fi
7331       done
7332       IFS=$lt_save_ifs
7333       ;;
7334     esac
7335 else
7336   enable_shared=yes
7337 fi
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347   # Check whether --enable-static was given.
7348 if test "${enable_static+set}" = set; then :
7349   enableval=$enable_static; p=${PACKAGE-default}
7350     case $enableval in
7351     yes) enable_static=yes ;;
7352     no) enable_static=no ;;
7353     *)
7354      enable_static=no
7355       # Look at the argument we got.  We use all the common list separators.
7356       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7357       for pkg in $enableval; do
7358         IFS=$lt_save_ifs
7359         if test "X$pkg" = "X$p"; then
7360           enable_static=yes
7361         fi
7362       done
7363       IFS=$lt_save_ifs
7364       ;;
7365     esac
7366 else
7367   enable_static=yes
7368 fi
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379 # Check whether --with-pic was given.
7380 if test "${with_pic+set}" = set; then :
7381   withval=$with_pic; lt_p=${PACKAGE-default}
7382     case $withval in
7383     yes|no) pic_mode=$withval ;;
7384     *)
7385       pic_mode=default
7386       # Look at the argument we got.  We use all the common list separators.
7387       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7388       for lt_pkg in $withval; do
7389         IFS=$lt_save_ifs
7390         if test "X$lt_pkg" = "X$lt_p"; then
7391           pic_mode=yes
7392         fi
7393       done
7394       IFS=$lt_save_ifs
7395       ;;
7396     esac
7397 else
7398   pic_mode=default
7399 fi
7400
7401
7402
7403
7404
7405
7406
7407
7408   # Check whether --enable-fast-install was given.
7409 if test "${enable_fast_install+set}" = set; then :
7410   enableval=$enable_fast_install; p=${PACKAGE-default}
7411     case $enableval in
7412     yes) enable_fast_install=yes ;;
7413     no) enable_fast_install=no ;;
7414     *)
7415       enable_fast_install=no
7416       # Look at the argument we got.  We use all the common list separators.
7417       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7418       for pkg in $enableval; do
7419         IFS=$lt_save_ifs
7420         if test "X$pkg" = "X$p"; then
7421           enable_fast_install=yes
7422         fi
7423       done
7424       IFS=$lt_save_ifs
7425       ;;
7426     esac
7427 else
7428   enable_fast_install=yes
7429 fi
7430
7431
7432
7433
7434
7435
7436
7437
7438   shared_archive_member_spec=
7439 case $host,$enable_shared in
7440 power*-*-aix[5-9]*,yes)
7441   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7442 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7443
7444 # Check whether --with-aix-soname was given.
7445 if test "${with_aix_soname+set}" = set; then :
7446   withval=$with_aix_soname; case $withval in
7447     aix|svr4|both)
7448       ;;
7449     *)
7450       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7451       ;;
7452     esac
7453     lt_cv_with_aix_soname=$with_aix_soname
7454 else
7455   if ${lt_cv_with_aix_soname+:} false; then :
7456   $as_echo_n "(cached) " >&6
7457 else
7458   lt_cv_with_aix_soname=aix
7459 fi
7460
7461     with_aix_soname=$lt_cv_with_aix_soname
7462 fi
7463
7464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7465 $as_echo "$with_aix_soname" >&6; }
7466   if test aix != "$with_aix_soname"; then
7467     # For the AIX way of multilib, we name the shared archive member
7468     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7469     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7470     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7471     # the AIX toolchain works better with OBJECT_MODE set (default 32).
7472     if test 64 = "${OBJECT_MODE-32}"; then
7473       shared_archive_member_spec=shr_64
7474     else
7475       shared_archive_member_spec=shr
7476     fi
7477   fi
7478   ;;
7479 *)
7480   with_aix_soname=aix
7481   ;;
7482 esac
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493 # This can be used to rebuild libtool when needed
7494 LIBTOOL_DEPS=$ltmain
7495
7496 # Always use our own libtool.
7497 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528 test -z "$LN_S" && LN_S="ln -s"
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543 if test -n "${ZSH_VERSION+set}"; then
7544    setopt NO_GLOB_SUBST
7545 fi
7546
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7548 $as_echo_n "checking for objdir... " >&6; }
7549 if ${lt_cv_objdir+:} false; then :
7550   $as_echo_n "(cached) " >&6
7551 else
7552   rm -f .libs 2>/dev/null
7553 mkdir .libs 2>/dev/null
7554 if test -d .libs; then
7555   lt_cv_objdir=.libs
7556 else
7557   # MS-DOS does not allow filenames that begin with a dot.
7558   lt_cv_objdir=_libs
7559 fi
7560 rmdir .libs 2>/dev/null
7561 fi
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7563 $as_echo "$lt_cv_objdir" >&6; }
7564 objdir=$lt_cv_objdir
7565
7566
7567
7568
7569
7570 cat >>confdefs.h <<_ACEOF
7571 #define LT_OBJDIR "$lt_cv_objdir/"
7572 _ACEOF
7573
7574
7575
7576
7577 case $host_os in
7578 aix3*)
7579   # AIX sometimes has problems with the GCC collect2 program.  For some
7580   # reason, if we set the COLLECT_NAMES environment variable, the problems
7581   # vanish in a puff of smoke.
7582   if test set != "${COLLECT_NAMES+set}"; then
7583     COLLECT_NAMES=
7584     export COLLECT_NAMES
7585   fi
7586   ;;
7587 esac
7588
7589 # Global variables:
7590 ofile=libtool
7591 can_build_shared=yes
7592
7593 # All known linkers require a '.a' archive for static linking (except MSVC,
7594 # which needs '.lib').
7595 libext=a
7596
7597 with_gnu_ld=$lt_cv_prog_gnu_ld
7598
7599 old_CC=$CC
7600 old_CFLAGS=$CFLAGS
7601
7602 # Set sane defaults for various variables
7603 test -z "$CC" && CC=cc
7604 test -z "$LTCC" && LTCC=$CC
7605 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7606 test -z "$LD" && LD=ld
7607 test -z "$ac_objext" && ac_objext=o
7608
7609 func_cc_basename $compiler
7610 cc_basename=$func_cc_basename_result
7611
7612
7613 # Only perform the check for file, if the check method requires it
7614 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7615 case $deplibs_check_method in
7616 file_magic*)
7617   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7618     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7619 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7620 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7621   $as_echo_n "(cached) " >&6
7622 else
7623   case $MAGIC_CMD in
7624 [\\/*] |  ?:[\\/]*)
7625   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7626   ;;
7627 *)
7628   lt_save_MAGIC_CMD=$MAGIC_CMD
7629   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7630   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7631   for ac_dir in $ac_dummy; do
7632     IFS=$lt_save_ifs
7633     test -z "$ac_dir" && ac_dir=.
7634     if test -f "$ac_dir/${ac_tool_prefix}file"; then
7635       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
7636       if test -n "$file_magic_test_file"; then
7637         case $deplibs_check_method in
7638         "file_magic "*)
7639           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7640           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7641           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7642             $EGREP "$file_magic_regex" > /dev/null; then
7643             :
7644           else
7645             cat <<_LT_EOF 1>&2
7646
7647 *** Warning: the command libtool uses to detect shared libraries,
7648 *** $file_magic_cmd, produces output that libtool cannot recognize.
7649 *** The result is that libtool may fail to recognize shared libraries
7650 *** as such.  This will affect the creation of libtool libraries that
7651 *** depend on shared libraries, but programs linked with such libtool
7652 *** libraries will work regardless of this problem.  Nevertheless, you
7653 *** may want to report the problem to your system manager and/or to
7654 *** bug-libtool@gnu.org
7655
7656 _LT_EOF
7657           fi ;;
7658         esac
7659       fi
7660       break
7661     fi
7662   done
7663   IFS=$lt_save_ifs
7664   MAGIC_CMD=$lt_save_MAGIC_CMD
7665   ;;
7666 esac
7667 fi
7668
7669 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7670 if test -n "$MAGIC_CMD"; then
7671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7672 $as_echo "$MAGIC_CMD" >&6; }
7673 else
7674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7675 $as_echo "no" >&6; }
7676 fi
7677
7678
7679
7680
7681
7682 if test -z "$lt_cv_path_MAGIC_CMD"; then
7683   if test -n "$ac_tool_prefix"; then
7684     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7685 $as_echo_n "checking for file... " >&6; }
7686 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7687   $as_echo_n "(cached) " >&6
7688 else
7689   case $MAGIC_CMD in
7690 [\\/*] |  ?:[\\/]*)
7691   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7692   ;;
7693 *)
7694   lt_save_MAGIC_CMD=$MAGIC_CMD
7695   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7696   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7697   for ac_dir in $ac_dummy; do
7698     IFS=$lt_save_ifs
7699     test -z "$ac_dir" && ac_dir=.
7700     if test -f "$ac_dir/file"; then
7701       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
7702       if test -n "$file_magic_test_file"; then
7703         case $deplibs_check_method in
7704         "file_magic "*)
7705           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7706           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7707           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7708             $EGREP "$file_magic_regex" > /dev/null; then
7709             :
7710           else
7711             cat <<_LT_EOF 1>&2
7712
7713 *** Warning: the command libtool uses to detect shared libraries,
7714 *** $file_magic_cmd, produces output that libtool cannot recognize.
7715 *** The result is that libtool may fail to recognize shared libraries
7716 *** as such.  This will affect the creation of libtool libraries that
7717 *** depend on shared libraries, but programs linked with such libtool
7718 *** libraries will work regardless of this problem.  Nevertheless, you
7719 *** may want to report the problem to your system manager and/or to
7720 *** bug-libtool@gnu.org
7721
7722 _LT_EOF
7723           fi ;;
7724         esac
7725       fi
7726       break
7727     fi
7728   done
7729   IFS=$lt_save_ifs
7730   MAGIC_CMD=$lt_save_MAGIC_CMD
7731   ;;
7732 esac
7733 fi
7734
7735 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7736 if test -n "$MAGIC_CMD"; then
7737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7738 $as_echo "$MAGIC_CMD" >&6; }
7739 else
7740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7741 $as_echo "no" >&6; }
7742 fi
7743
7744
7745   else
7746     MAGIC_CMD=:
7747   fi
7748 fi
7749
7750   fi
7751   ;;
7752 esac
7753
7754 # Use C for the default configuration in the libtool script
7755
7756 lt_save_CC=$CC
7757 ac_ext=c
7758 ac_cpp='$CPP $CPPFLAGS'
7759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7762
7763
7764 # Source file extension for C test sources.
7765 ac_ext=c
7766
7767 # Object file extension for compiled C test sources.
7768 objext=o
7769 objext=$objext
7770
7771 # Code to be used in simple compile tests
7772 lt_simple_compile_test_code="int some_variable = 0;"
7773
7774 # Code to be used in simple link tests
7775 lt_simple_link_test_code='int main(){return(0);}'
7776
7777
7778
7779
7780
7781
7782
7783 # If no C compiler was specified, use CC.
7784 LTCC=${LTCC-"$CC"}
7785
7786 # If no C compiler flags were specified, use CFLAGS.
7787 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7788
7789 # Allow CC to be a program name with arguments.
7790 compiler=$CC
7791
7792 # Save the default compiler, since it gets overwritten when the other
7793 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7794 compiler_DEFAULT=$CC
7795
7796 # save warnings/boilerplate of simple test code
7797 ac_outfile=conftest.$ac_objext
7798 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7799 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7800 _lt_compiler_boilerplate=`cat conftest.err`
7801 $RM conftest*
7802
7803 ac_outfile=conftest.$ac_objext
7804 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7805 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7806 _lt_linker_boilerplate=`cat conftest.err`
7807 $RM -r conftest*
7808
7809
7810 ## CAVEAT EMPTOR:
7811 ## There is no encapsulation within the following macros, do not change
7812 ## the running order or otherwise move them around unless you know exactly
7813 ## what you are doing...
7814 if test -n "$compiler"; then
7815
7816 lt_prog_compiler_no_builtin_flag=
7817
7818 if test yes = "$GCC"; then
7819   case $cc_basename in
7820   nvcc*)
7821     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7822   *)
7823     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7824   esac
7825
7826   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7827 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7828 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7829   $as_echo_n "(cached) " >&6
7830 else
7831   lt_cv_prog_compiler_rtti_exceptions=no
7832    ac_outfile=conftest.$ac_objext
7833    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7834    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
7835    # Insert the option either (1) after the last *FLAGS variable, or
7836    # (2) before a word containing "conftest.", or (3) at the end.
7837    # Note that $ac_compile itself does not contain backslashes and begins
7838    # with a dollar sign (not a hyphen), so the echo should work correctly.
7839    # The option is referenced via a variable to avoid confusing sed.
7840    lt_compile=`echo "$ac_compile" | $SED \
7841    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7842    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7843    -e 's:$: $lt_compiler_flag:'`
7844    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7845    (eval "$lt_compile" 2>conftest.err)
7846    ac_status=$?
7847    cat conftest.err >&5
7848    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849    if (exit $ac_status) && test -s "$ac_outfile"; then
7850      # The compiler can only warn and ignore the option if not recognized
7851      # So say no if there are warnings other than the usual output.
7852      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7853      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7854      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7855        lt_cv_prog_compiler_rtti_exceptions=yes
7856      fi
7857    fi
7858    $RM conftest*
7859
7860 fi
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7862 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7863
7864 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
7865     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7866 else
7867     :
7868 fi
7869
7870 fi
7871
7872
7873
7874
7875
7876
7877   lt_prog_compiler_wl=
7878 lt_prog_compiler_pic=
7879 lt_prog_compiler_static=
7880
7881
7882   if test yes = "$GCC"; then
7883     lt_prog_compiler_wl='-Wl,'
7884     lt_prog_compiler_static='-static'
7885
7886     case $host_os in
7887       aix*)
7888       # All AIX code is PIC.
7889       if test ia64 = "$host_cpu"; then
7890         # AIX 5 now supports IA64 processor
7891         lt_prog_compiler_static='-Bstatic'
7892       fi
7893       lt_prog_compiler_pic='-fPIC'
7894       ;;
7895
7896     amigaos*)
7897       case $host_cpu in
7898       powerpc)
7899             # see comment about AmigaOS4 .so support
7900             lt_prog_compiler_pic='-fPIC'
7901         ;;
7902       m68k)
7903             # FIXME: we need at least 68020 code to build shared libraries, but
7904             # adding the '-m68020' flag to GCC prevents building anything better,
7905             # like '-m68040'.
7906             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7907         ;;
7908       esac
7909       ;;
7910
7911     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7912       # PIC is the default for these OSes.
7913       ;;
7914
7915     mingw* | cygwin* | pw32* | os2* | cegcc*)
7916       # This hack is so that the source file can tell whether it is being
7917       # built for inclusion in a dll (and should export symbols for example).
7918       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7919       # (--disable-auto-import) libraries
7920       lt_prog_compiler_pic='-DDLL_EXPORT'
7921       case $host_os in
7922       os2*)
7923         lt_prog_compiler_static='$wl-static'
7924         ;;
7925       esac
7926       ;;
7927
7928     darwin* | rhapsody*)
7929       # PIC is the default on this platform
7930       # Common symbols not allowed in MH_DYLIB files
7931       lt_prog_compiler_pic='-fno-common'
7932       ;;
7933
7934     haiku*)
7935       # PIC is the default for Haiku.
7936       # The "-static" flag exists, but is broken.
7937       lt_prog_compiler_static=
7938       ;;
7939
7940     hpux*)
7941       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7942       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7943       # sets the default TLS model and affects inlining.
7944       case $host_cpu in
7945       hppa*64*)
7946         # +Z the default
7947         ;;
7948       *)
7949         lt_prog_compiler_pic='-fPIC'
7950         ;;
7951       esac
7952       ;;
7953
7954     interix[3-9]*)
7955       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7956       # Instead, we relocate shared libraries at runtime.
7957       ;;
7958
7959     msdosdjgpp*)
7960       # Just because we use GCC doesn't mean we suddenly get shared libraries
7961       # on systems that don't support them.
7962       lt_prog_compiler_can_build_shared=no
7963       enable_shared=no
7964       ;;
7965
7966     *nto* | *qnx*)
7967       # QNX uses GNU C++, but need to define -shared option too, otherwise
7968       # it will coredump.
7969       lt_prog_compiler_pic='-fPIC -shared'
7970       ;;
7971
7972     sysv4*MP*)
7973       if test -d /usr/nec; then
7974         lt_prog_compiler_pic=-Kconform_pic
7975       fi
7976       ;;
7977
7978     *)
7979       lt_prog_compiler_pic='-fPIC'
7980       ;;
7981     esac
7982
7983     case $cc_basename in
7984     nvcc*) # Cuda Compiler Driver 2.2
7985       lt_prog_compiler_wl='-Xlinker '
7986       if test -n "$lt_prog_compiler_pic"; then
7987         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7988       fi
7989       ;;
7990     esac
7991   else
7992     # PORTME Check for flag to pass linker flags through the system compiler.
7993     case $host_os in
7994     aix*)
7995       lt_prog_compiler_wl='-Wl,'
7996       if test ia64 = "$host_cpu"; then
7997         # AIX 5 now supports IA64 processor
7998         lt_prog_compiler_static='-Bstatic'
7999       else
8000         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8001       fi
8002       ;;
8003
8004     darwin* | rhapsody*)
8005       # PIC is the default on this platform
8006       # Common symbols not allowed in MH_DYLIB files
8007       lt_prog_compiler_pic='-fno-common'
8008       case $cc_basename in
8009       nagfor*)
8010         # NAG Fortran compiler
8011         lt_prog_compiler_wl='-Wl,-Wl,,'
8012         lt_prog_compiler_pic='-PIC'
8013         lt_prog_compiler_static='-Bstatic'
8014         ;;
8015       esac
8016       ;;
8017
8018     mingw* | cygwin* | pw32* | os2* | cegcc*)
8019       # This hack is so that the source file can tell whether it is being
8020       # built for inclusion in a dll (and should export symbols for example).
8021       lt_prog_compiler_pic='-DDLL_EXPORT'
8022       case $host_os in
8023       os2*)
8024         lt_prog_compiler_static='$wl-static'
8025         ;;
8026       esac
8027       ;;
8028
8029     hpux9* | hpux10* | hpux11*)
8030       lt_prog_compiler_wl='-Wl,'
8031       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8032       # not for PA HP-UX.
8033       case $host_cpu in
8034       hppa*64*|ia64*)
8035         # +Z the default
8036         ;;
8037       *)
8038         lt_prog_compiler_pic='+Z'
8039         ;;
8040       esac
8041       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8042       lt_prog_compiler_static='$wl-a ${wl}archive'
8043       ;;
8044
8045     irix5* | irix6* | nonstopux*)
8046       lt_prog_compiler_wl='-Wl,'
8047       # PIC (with -KPIC) is the default.
8048       lt_prog_compiler_static='-non_shared'
8049       ;;
8050
8051     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8052       case $cc_basename in
8053       # old Intel for x86_64, which still supported -KPIC.
8054       ecc*)
8055         lt_prog_compiler_wl='-Wl,'
8056         lt_prog_compiler_pic='-KPIC'
8057         lt_prog_compiler_static='-static'
8058         ;;
8059       # icc used to be incompatible with GCC.
8060       # ICC 10 doesn't accept -KPIC any more.
8061       icc* | ifort*)
8062         lt_prog_compiler_wl='-Wl,'
8063         lt_prog_compiler_pic='-fPIC'
8064         lt_prog_compiler_static='-static'
8065         ;;
8066       # Lahey Fortran 8.1.
8067       lf95*)
8068         lt_prog_compiler_wl='-Wl,'
8069         lt_prog_compiler_pic='--shared'
8070         lt_prog_compiler_static='--static'
8071         ;;
8072       nagfor*)
8073         # NAG Fortran compiler
8074         lt_prog_compiler_wl='-Wl,-Wl,,'
8075         lt_prog_compiler_pic='-PIC'
8076         lt_prog_compiler_static='-Bstatic'
8077         ;;
8078       tcc*)
8079         # Fabrice Bellard et al's Tiny C Compiler
8080         lt_prog_compiler_wl='-Wl,'
8081         lt_prog_compiler_pic='-fPIC'
8082         lt_prog_compiler_static='-static'
8083         ;;
8084       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8085         # Portland Group compilers (*not* the Pentium gcc compiler,
8086         # which looks to be a dead project)
8087         lt_prog_compiler_wl='-Wl,'
8088         lt_prog_compiler_pic='-fpic'
8089         lt_prog_compiler_static='-Bstatic'
8090         ;;
8091       ccc*)
8092         lt_prog_compiler_wl='-Wl,'
8093         # All Alpha code is PIC.
8094         lt_prog_compiler_static='-non_shared'
8095         ;;
8096       xl* | bgxl* | bgf* | mpixl*)
8097         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8098         lt_prog_compiler_wl='-Wl,'
8099         lt_prog_compiler_pic='-qpic'
8100         lt_prog_compiler_static='-qstaticlink'
8101         ;;
8102       *)
8103         case `$CC -V 2>&1 | sed 5q` in
8104         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8105           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8106           lt_prog_compiler_pic='-KPIC'
8107           lt_prog_compiler_static='-Bstatic'
8108           lt_prog_compiler_wl=''
8109           ;;
8110         *Sun\ F* | *Sun*Fortran*)
8111           lt_prog_compiler_pic='-KPIC'
8112           lt_prog_compiler_static='-Bstatic'
8113           lt_prog_compiler_wl='-Qoption ld '
8114           ;;
8115         *Sun\ C*)
8116           # Sun C 5.9
8117           lt_prog_compiler_pic='-KPIC'
8118           lt_prog_compiler_static='-Bstatic'
8119           lt_prog_compiler_wl='-Wl,'
8120           ;;
8121         *Intel*\ [CF]*Compiler*)
8122           lt_prog_compiler_wl='-Wl,'
8123           lt_prog_compiler_pic='-fPIC'
8124           lt_prog_compiler_static='-static'
8125           ;;
8126         *Portland\ Group*)
8127           lt_prog_compiler_wl='-Wl,'
8128           lt_prog_compiler_pic='-fpic'
8129           lt_prog_compiler_static='-Bstatic'
8130           ;;
8131         esac
8132         ;;
8133       esac
8134       ;;
8135
8136     newsos6)
8137       lt_prog_compiler_pic='-KPIC'
8138       lt_prog_compiler_static='-Bstatic'
8139       ;;
8140
8141     *nto* | *qnx*)
8142       # QNX uses GNU C++, but need to define -shared option too, otherwise
8143       # it will coredump.
8144       lt_prog_compiler_pic='-fPIC -shared'
8145       ;;
8146
8147     osf3* | osf4* | osf5*)
8148       lt_prog_compiler_wl='-Wl,'
8149       # All OSF/1 code is PIC.
8150       lt_prog_compiler_static='-non_shared'
8151       ;;
8152
8153     rdos*)
8154       lt_prog_compiler_static='-non_shared'
8155       ;;
8156
8157     solaris*)
8158       lt_prog_compiler_pic='-KPIC'
8159       lt_prog_compiler_static='-Bstatic'
8160       case $cc_basename in
8161       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8162         lt_prog_compiler_wl='-Qoption ld ';;
8163       *)
8164         lt_prog_compiler_wl='-Wl,';;
8165       esac
8166       ;;
8167
8168     sunos4*)
8169       lt_prog_compiler_wl='-Qoption ld '
8170       lt_prog_compiler_pic='-PIC'
8171       lt_prog_compiler_static='-Bstatic'
8172       ;;
8173
8174     sysv4 | sysv4.2uw2* | sysv4.3*)
8175       lt_prog_compiler_wl='-Wl,'
8176       lt_prog_compiler_pic='-KPIC'
8177       lt_prog_compiler_static='-Bstatic'
8178       ;;
8179
8180     sysv4*MP*)
8181       if test -d /usr/nec; then
8182         lt_prog_compiler_pic='-Kconform_pic'
8183         lt_prog_compiler_static='-Bstatic'
8184       fi
8185       ;;
8186
8187     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8188       lt_prog_compiler_wl='-Wl,'
8189       lt_prog_compiler_pic='-KPIC'
8190       lt_prog_compiler_static='-Bstatic'
8191       ;;
8192
8193     unicos*)
8194       lt_prog_compiler_wl='-Wl,'
8195       lt_prog_compiler_can_build_shared=no
8196       ;;
8197
8198     uts4*)
8199       lt_prog_compiler_pic='-pic'
8200       lt_prog_compiler_static='-Bstatic'
8201       ;;
8202
8203     *)
8204       lt_prog_compiler_can_build_shared=no
8205       ;;
8206     esac
8207   fi
8208
8209 case $host_os in
8210   # For platforms that do not support PIC, -DPIC is meaningless:
8211   *djgpp*)
8212     lt_prog_compiler_pic=
8213     ;;
8214   *)
8215     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8216     ;;
8217 esac
8218
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8220 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8221 if ${lt_cv_prog_compiler_pic+:} false; then :
8222   $as_echo_n "(cached) " >&6
8223 else
8224   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8225 fi
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8227 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8228 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8229
8230 #
8231 # Check to make sure the PIC flag actually works.
8232 #
8233 if test -n "$lt_prog_compiler_pic"; then
8234   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8235 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8236 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8237   $as_echo_n "(cached) " >&6
8238 else
8239   lt_cv_prog_compiler_pic_works=no
8240    ac_outfile=conftest.$ac_objext
8241    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8242    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
8243    # Insert the option either (1) after the last *FLAGS variable, or
8244    # (2) before a word containing "conftest.", or (3) at the end.
8245    # Note that $ac_compile itself does not contain backslashes and begins
8246    # with a dollar sign (not a hyphen), so the echo should work correctly.
8247    # The option is referenced via a variable to avoid confusing sed.
8248    lt_compile=`echo "$ac_compile" | $SED \
8249    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8250    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8251    -e 's:$: $lt_compiler_flag:'`
8252    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8253    (eval "$lt_compile" 2>conftest.err)
8254    ac_status=$?
8255    cat conftest.err >&5
8256    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257    if (exit $ac_status) && test -s "$ac_outfile"; then
8258      # The compiler can only warn and ignore the option if not recognized
8259      # So say no if there are warnings other than the usual output.
8260      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8261      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8262      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8263        lt_cv_prog_compiler_pic_works=yes
8264      fi
8265    fi
8266    $RM conftest*
8267
8268 fi
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8270 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8271
8272 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8273     case $lt_prog_compiler_pic in
8274      "" | " "*) ;;
8275      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8276      esac
8277 else
8278     lt_prog_compiler_pic=
8279      lt_prog_compiler_can_build_shared=no
8280 fi
8281
8282 fi
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294 #
8295 # Check to make sure the static flag actually works.
8296 #
8297 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8299 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8300 if ${lt_cv_prog_compiler_static_works+:} false; then :
8301   $as_echo_n "(cached) " >&6
8302 else
8303   lt_cv_prog_compiler_static_works=no
8304    save_LDFLAGS=$LDFLAGS
8305    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8306    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8307    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8308      # The linker can only warn and ignore the option if not recognized
8309      # So say no if there are warnings
8310      if test -s conftest.err; then
8311        # Append any errors to the config.log.
8312        cat conftest.err 1>&5
8313        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8314        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8315        if diff conftest.exp conftest.er2 >/dev/null; then
8316          lt_cv_prog_compiler_static_works=yes
8317        fi
8318      else
8319        lt_cv_prog_compiler_static_works=yes
8320      fi
8321    fi
8322    $RM -r conftest*
8323    LDFLAGS=$save_LDFLAGS
8324
8325 fi
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8327 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8328
8329 if test yes = "$lt_cv_prog_compiler_static_works"; then
8330     :
8331 else
8332     lt_prog_compiler_static=
8333 fi
8334
8335
8336
8337
8338
8339
8340
8341   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8342 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8343 if ${lt_cv_prog_compiler_c_o+:} false; then :
8344   $as_echo_n "(cached) " >&6
8345 else
8346   lt_cv_prog_compiler_c_o=no
8347    $RM -r conftest 2>/dev/null
8348    mkdir conftest
8349    cd conftest
8350    mkdir out
8351    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8352
8353    lt_compiler_flag="-o out/conftest2.$ac_objext"
8354    # Insert the option either (1) after the last *FLAGS variable, or
8355    # (2) before a word containing "conftest.", or (3) at the end.
8356    # Note that $ac_compile itself does not contain backslashes and begins
8357    # with a dollar sign (not a hyphen), so the echo should work correctly.
8358    lt_compile=`echo "$ac_compile" | $SED \
8359    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8360    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8361    -e 's:$: $lt_compiler_flag:'`
8362    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8363    (eval "$lt_compile" 2>out/conftest.err)
8364    ac_status=$?
8365    cat out/conftest.err >&5
8366    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8368    then
8369      # The compiler can only warn and ignore the option if not recognized
8370      # So say no if there are warnings
8371      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8372      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8373      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8374        lt_cv_prog_compiler_c_o=yes
8375      fi
8376    fi
8377    chmod u+w . 2>&5
8378    $RM conftest*
8379    # SGI C++ compiler will create directory out/ii_files/ for
8380    # template instantiation
8381    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8382    $RM out/* && rmdir out
8383    cd ..
8384    $RM -r conftest
8385    $RM conftest*
8386
8387 fi
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8389 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8390
8391
8392
8393
8394
8395
8396   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8397 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8398 if ${lt_cv_prog_compiler_c_o+:} false; then :
8399   $as_echo_n "(cached) " >&6
8400 else
8401   lt_cv_prog_compiler_c_o=no
8402    $RM -r conftest 2>/dev/null
8403    mkdir conftest
8404    cd conftest
8405    mkdir out
8406    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8407
8408    lt_compiler_flag="-o out/conftest2.$ac_objext"
8409    # Insert the option either (1) after the last *FLAGS variable, or
8410    # (2) before a word containing "conftest.", or (3) at the end.
8411    # Note that $ac_compile itself does not contain backslashes and begins
8412    # with a dollar sign (not a hyphen), so the echo should work correctly.
8413    lt_compile=`echo "$ac_compile" | $SED \
8414    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8415    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8416    -e 's:$: $lt_compiler_flag:'`
8417    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8418    (eval "$lt_compile" 2>out/conftest.err)
8419    ac_status=$?
8420    cat out/conftest.err >&5
8421    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8423    then
8424      # The compiler can only warn and ignore the option if not recognized
8425      # So say no if there are warnings
8426      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8427      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8428      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8429        lt_cv_prog_compiler_c_o=yes
8430      fi
8431    fi
8432    chmod u+w . 2>&5
8433    $RM conftest*
8434    # SGI C++ compiler will create directory out/ii_files/ for
8435    # template instantiation
8436    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8437    $RM out/* && rmdir out
8438    cd ..
8439    $RM -r conftest
8440    $RM conftest*
8441
8442 fi
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8444 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8445
8446
8447
8448
8449 hard_links=nottested
8450 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8451   # do not overwrite the value of need_locks provided by the user
8452   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8453 $as_echo_n "checking if we can lock with hard links... " >&6; }
8454   hard_links=yes
8455   $RM conftest*
8456   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8457   touch conftest.a
8458   ln conftest.a conftest.b 2>&5 || hard_links=no
8459   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8461 $as_echo "$hard_links" >&6; }
8462   if test no = "$hard_links"; then
8463     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8464 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8465     need_locks=warn
8466   fi
8467 else
8468   need_locks=no
8469 fi
8470
8471
8472
8473
8474
8475
8476   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8477 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8478
8479   runpath_var=
8480   allow_undefined_flag=
8481   always_export_symbols=no
8482   archive_cmds=
8483   archive_expsym_cmds=
8484   compiler_needs_object=no
8485   enable_shared_with_static_runtimes=no
8486   export_dynamic_flag_spec=
8487   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8488   hardcode_automatic=no
8489   hardcode_direct=no
8490   hardcode_direct_absolute=no
8491   hardcode_libdir_flag_spec=
8492   hardcode_libdir_separator=
8493   hardcode_minus_L=no
8494   hardcode_shlibpath_var=unsupported
8495   inherit_rpath=no
8496   link_all_deplibs=unknown
8497   module_cmds=
8498   module_expsym_cmds=
8499   old_archive_from_new_cmds=
8500   old_archive_from_expsyms_cmds=
8501   thread_safe_flag_spec=
8502   whole_archive_flag_spec=
8503   # include_expsyms should be a list of space-separated symbols to be *always*
8504   # included in the symbol list
8505   include_expsyms=
8506   # exclude_expsyms can be an extended regexp of symbols to exclude
8507   # it will be wrapped by ' (' and ')$', so one must not match beginning or
8508   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8509   # as well as any symbol that contains 'd'.
8510   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8511   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8512   # platforms (ab)use it in PIC code, but their linkers get confused if
8513   # the symbol is explicitly referenced.  Since portable code cannot
8514   # rely on this symbol name, it's probably fine to never include it in
8515   # preloaded symbol tables.
8516   # Exclude shared library initialization/finalization symbols.
8517   extract_expsyms_cmds=
8518
8519   case $host_os in
8520   cygwin* | mingw* | pw32* | cegcc*)
8521     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8522     # When not using gcc, we currently assume that we are using
8523     # Microsoft Visual C++.
8524     if test yes != "$GCC"; then
8525       with_gnu_ld=no
8526     fi
8527     ;;
8528   interix*)
8529     # we just hope/assume this is gcc and not c89 (= MSVC++)
8530     with_gnu_ld=yes
8531     ;;
8532   openbsd* | bitrig*)
8533     with_gnu_ld=no
8534     ;;
8535   esac
8536
8537   ld_shlibs=yes
8538
8539   # On some targets, GNU ld is compatible enough with the native linker
8540   # that we're better off using the native interface for both.
8541   lt_use_gnu_ld_interface=no
8542   if test yes = "$with_gnu_ld"; then
8543     case $host_os in
8544       aix*)
8545         # The AIX port of GNU ld has always aspired to compatibility
8546         # with the native linker.  However, as the warning in the GNU ld
8547         # block says, versions before 2.19.5* couldn't really create working
8548         # shared libraries, regardless of the interface used.
8549         case `$LD -v 2>&1` in
8550           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8551           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8552           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8553           *)
8554             lt_use_gnu_ld_interface=yes
8555             ;;
8556         esac
8557         ;;
8558       *)
8559         lt_use_gnu_ld_interface=yes
8560         ;;
8561     esac
8562   fi
8563
8564   if test yes = "$lt_use_gnu_ld_interface"; then
8565     # If archive_cmds runs LD, not CC, wlarc should be empty
8566     wlarc='$wl'
8567
8568     # Set some defaults for GNU ld with shared library support. These
8569     # are reset later if shared libraries are not supported. Putting them
8570     # here allows them to be overridden if necessary.
8571     runpath_var=LD_RUN_PATH
8572     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8573     export_dynamic_flag_spec='$wl--export-dynamic'
8574     # ancient GNU ld didn't support --whole-archive et. al.
8575     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8576       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8577     else
8578       whole_archive_flag_spec=
8579     fi
8580     supports_anon_versioning=no
8581     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
8582       *GNU\ gold*) supports_anon_versioning=yes ;;
8583       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8584       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8585       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8586       *\ 2.11.*) ;; # other 2.11 versions
8587       *) supports_anon_versioning=yes ;;
8588     esac
8589
8590     # See if GNU ld supports shared libraries.
8591     case $host_os in
8592     aix[3-9]*)
8593       # On AIX/PPC, the GNU linker is very broken
8594       if test ia64 != "$host_cpu"; then
8595         ld_shlibs=no
8596         cat <<_LT_EOF 1>&2
8597
8598 *** Warning: the GNU linker, at least up to release 2.19, is reported
8599 *** to be unable to reliably create shared libraries on AIX.
8600 *** Therefore, libtool is disabling shared libraries support.  If you
8601 *** really care for shared libraries, you may want to install binutils
8602 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8603 *** You will then need to restart the configuration process.
8604
8605 _LT_EOF
8606       fi
8607       ;;
8608
8609     amigaos*)
8610       case $host_cpu in
8611       powerpc)
8612             # see comment about AmigaOS4 .so support
8613             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8614             archive_expsym_cmds=''
8615         ;;
8616       m68k)
8617             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)'
8618             hardcode_libdir_flag_spec='-L$libdir'
8619             hardcode_minus_L=yes
8620         ;;
8621       esac
8622       ;;
8623
8624     beos*)
8625       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8626         allow_undefined_flag=unsupported
8627         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8628         # support --undefined.  This deserves some investigation.  FIXME
8629         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8630       else
8631         ld_shlibs=no
8632       fi
8633       ;;
8634
8635     cygwin* | mingw* | pw32* | cegcc*)
8636       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8637       # as there is no search path for DLLs.
8638       hardcode_libdir_flag_spec='-L$libdir'
8639       export_dynamic_flag_spec='$wl--export-all-symbols'
8640       allow_undefined_flag=unsupported
8641       always_export_symbols=no
8642       enable_shared_with_static_runtimes=yes
8643       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'
8644       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8645
8646       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8647         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8648         # If the export-symbols file already is a .def file, use it as
8649         # is; otherwise, prepend EXPORTS...
8650         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
8651           cp $export_symbols $output_objdir/$soname.def;
8652         else
8653           echo EXPORTS > $output_objdir/$soname.def;
8654           cat $export_symbols >> $output_objdir/$soname.def;
8655         fi~
8656         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8657       else
8658         ld_shlibs=no
8659       fi
8660       ;;
8661
8662     haiku*)
8663       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8664       link_all_deplibs=yes
8665       ;;
8666
8667     os2*)
8668       hardcode_libdir_flag_spec='-L$libdir'
8669       hardcode_minus_L=yes
8670       allow_undefined_flag=unsupported
8671       shrext_cmds=.dll
8672       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8673         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8674         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8675         $ECHO EXPORTS >> $output_objdir/$libname.def~
8676         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
8677         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8678         emximp -o $lib $output_objdir/$libname.def'
8679       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8680         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8681         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8682         $ECHO EXPORTS >> $output_objdir/$libname.def~
8683         prefix_cmds="$SED"~
8684         if test EXPORTS = "`$SED 1q $export_symbols`"; then
8685           prefix_cmds="$prefix_cmds -e 1d";
8686         fi~
8687         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
8688         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
8689         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8690         emximp -o $lib $output_objdir/$libname.def'
8691       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
8692       enable_shared_with_static_runtimes=yes
8693       ;;
8694
8695     interix[3-9]*)
8696       hardcode_direct=no
8697       hardcode_shlibpath_var=no
8698       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
8699       export_dynamic_flag_spec='$wl-E'
8700       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8701       # Instead, shared libraries are loaded at an image base (0x10000000 by
8702       # default) and relocated if they conflict, which is a slow very memory
8703       # consuming and fragmenting process.  To avoid this, we pick a random,
8704       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8705       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8706       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8707       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'
8708       ;;
8709
8710     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8711       tmp_diet=no
8712       if test linux-dietlibc = "$host_os"; then
8713         case $cc_basename in
8714           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8715         esac
8716       fi
8717       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8718          && test no = "$tmp_diet"
8719       then
8720         tmp_addflag=' $pic_flag'
8721         tmp_sharedflag='-shared'
8722         case $cc_basename,$host_cpu in
8723         pgcc*)                          # Portland Group C compiler
8724           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'
8725           tmp_addflag=' $pic_flag'
8726           ;;
8727         pgf77* | pgf90* | pgf95* | pgfortran*)
8728                                         # Portland Group f77 and f90 compilers
8729           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'
8730           tmp_addflag=' $pic_flag -Mnomain' ;;
8731         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8732           tmp_addflag=' -i_dynamic' ;;
8733         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8734           tmp_addflag=' -i_dynamic -nofor_main' ;;
8735         ifc* | ifort*)                  # Intel Fortran compiler
8736           tmp_addflag=' -nofor_main' ;;
8737         lf95*)                          # Lahey Fortran 8.1
8738           whole_archive_flag_spec=
8739           tmp_sharedflag='--shared' ;;
8740         nagfor*)                        # NAGFOR 5.3
8741           tmp_sharedflag='-Wl,-shared' ;;
8742         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8743           tmp_sharedflag='-qmkshrobj'
8744           tmp_addflag= ;;
8745         nvcc*)  # Cuda Compiler Driver 2.2
8746           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'
8747           compiler_needs_object=yes
8748           ;;
8749         esac
8750         case `$CC -V 2>&1 | sed 5q` in
8751         *Sun\ C*)                       # Sun C 5.9
8752           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'
8753           compiler_needs_object=yes
8754           tmp_sharedflag='-G' ;;
8755         *Sun\ F*)                       # Sun Fortran 8.3
8756           tmp_sharedflag='-G' ;;
8757         esac
8758         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8759
8760         if test yes = "$supports_anon_versioning"; then
8761           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8762             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8763             echo "local: *; };" >> $output_objdir/$libname.ver~
8764             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
8765         fi
8766
8767         case $cc_basename in
8768         tcc*)
8769           export_dynamic_flag_spec='-rdynamic'
8770           ;;
8771         xlf* | bgf* | bgxlf* | mpixlf*)
8772           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8773           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8774           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8775           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8776           if test yes = "$supports_anon_versioning"; then
8777             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8778               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8779               echo "local: *; };" >> $output_objdir/$libname.ver~
8780               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8781           fi
8782           ;;
8783         esac
8784       else
8785         ld_shlibs=no
8786       fi
8787       ;;
8788
8789     netbsd*)
8790       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8791         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8792         wlarc=
8793       else
8794         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8795         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8796       fi
8797       ;;
8798
8799     solaris*)
8800       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8801         ld_shlibs=no
8802         cat <<_LT_EOF 1>&2
8803
8804 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8805 *** create shared libraries on Solaris systems.  Therefore, libtool
8806 *** is disabling shared libraries support.  We urge you to upgrade GNU
8807 *** binutils to release 2.9.1 or newer.  Another option is to modify
8808 *** your PATH or compiler configuration so that the native linker is
8809 *** used, and then restart.
8810
8811 _LT_EOF
8812       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8813         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8814         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8815       else
8816         ld_shlibs=no
8817       fi
8818       ;;
8819
8820     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8821       case `$LD -v 2>&1` in
8822         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8823         ld_shlibs=no
8824         cat <<_LT_EOF 1>&2
8825
8826 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
8827 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8828 *** is disabling shared libraries support.  We urge you to upgrade GNU
8829 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8830 *** your PATH or compiler configuration so that the native linker is
8831 *** used, and then restart.
8832
8833 _LT_EOF
8834         ;;
8835         *)
8836           # For security reasons, it is highly recommended that you always
8837           # use absolute paths for naming shared libraries, and exclude the
8838           # DT_RUNPATH tag from executables and libraries.  But doing so
8839           # requires that you compile everything twice, which is a pain.
8840           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8841             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8842             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8843             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8844           else
8845             ld_shlibs=no
8846           fi
8847         ;;
8848       esac
8849       ;;
8850
8851     sunos4*)
8852       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8853       wlarc=
8854       hardcode_direct=yes
8855       hardcode_shlibpath_var=no
8856       ;;
8857
8858     *)
8859       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8860         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8861         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8862       else
8863         ld_shlibs=no
8864       fi
8865       ;;
8866     esac
8867
8868     if test no = "$ld_shlibs"; then
8869       runpath_var=
8870       hardcode_libdir_flag_spec=
8871       export_dynamic_flag_spec=
8872       whole_archive_flag_spec=
8873     fi
8874   else
8875     # PORTME fill in a description of your system's linker (not GNU ld)
8876     case $host_os in
8877     aix3*)
8878       allow_undefined_flag=unsupported
8879       always_export_symbols=yes
8880       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'
8881       # Note: this linker hardcodes the directories in LIBPATH if there
8882       # are no directories specified by -L.
8883       hardcode_minus_L=yes
8884       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
8885         # Neither direct hardcoding nor static linking is supported with a
8886         # broken collect2.
8887         hardcode_direct=unsupported
8888       fi
8889       ;;
8890
8891     aix[4-9]*)
8892       if test ia64 = "$host_cpu"; then
8893         # On IA64, the linker does run time linking by default, so we don't
8894         # have to do anything special.
8895         aix_use_runtimelinking=no
8896         exp_sym_flag='-Bexport'
8897         no_entry_flag=
8898       else
8899         # If we're using GNU nm, then we don't want the "-C" option.
8900         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
8901         # Without the "-l" option, or with the "-B" option, AIX nm treats
8902         # weak defined symbols like other global defined symbols, whereas
8903         # GNU nm marks them as "W".
8904         # While the 'weak' keyword is ignored in the Export File, we need
8905         # it in the Import File for the 'aix-soname' feature, so we have
8906         # to replace the "-B" option with "-P" for AIX nm.
8907         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8908           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'
8909         else
8910           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'
8911         fi
8912         aix_use_runtimelinking=no
8913
8914         # Test if we are trying to use run time linking or normal
8915         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8916         # have runtime linking enabled, and use it for executables.
8917         # For shared libraries, we enable/disable runtime linking
8918         # depending on the kind of the shared library created -
8919         # when "with_aix_soname,aix_use_runtimelinking" is:
8920         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
8921         # "aix,yes"  lib.so          shared, rtl:yes, for executables
8922         #            lib.a           static archive
8923         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
8924         #            lib.a(lib.so.V) shared, rtl:no,  for executables
8925         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
8926         #            lib.a(lib.so.V) shared, rtl:no
8927         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
8928         #            lib.a           static archive
8929         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8930           for ld_flag in $LDFLAGS; do
8931           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
8932             aix_use_runtimelinking=yes
8933             break
8934           fi
8935           done
8936           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
8937             # With aix-soname=svr4, we create the lib.so.V shared archives only,
8938             # so we don't have lib.a shared libs to link our executables.
8939             # We have to force runtime linking in this case.
8940             aix_use_runtimelinking=yes
8941             LDFLAGS="$LDFLAGS -Wl,-brtl"
8942           fi
8943           ;;
8944         esac
8945
8946         exp_sym_flag='-bexport'
8947         no_entry_flag='-bnoentry'
8948       fi
8949
8950       # When large executables or shared objects are built, AIX ld can
8951       # have problems creating the table of contents.  If linking a library
8952       # or program results in "error TOC overflow" add -mminimal-toc to
8953       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8954       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8955
8956       archive_cmds=''
8957       hardcode_direct=yes
8958       hardcode_direct_absolute=yes
8959       hardcode_libdir_separator=':'
8960       link_all_deplibs=yes
8961       file_list_spec='$wl-f,'
8962       case $with_aix_soname,$aix_use_runtimelinking in
8963       aix,*) ;; # traditional, no import file
8964       svr4,* | *,yes) # use import file
8965         # The Import File defines what to hardcode.
8966         hardcode_direct=no
8967         hardcode_direct_absolute=no
8968         ;;
8969       esac
8970
8971       if test yes = "$GCC"; then
8972         case $host_os in aix4.[012]|aix4.[012].*)
8973         # We only want to do this on AIX 4.2 and lower, the check
8974         # below for broken collect2 doesn't work under 4.3+
8975           collect2name=`$CC -print-prog-name=collect2`
8976           if test -f "$collect2name" &&
8977            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8978           then
8979           # We have reworked collect2
8980           :
8981           else
8982           # We have old collect2
8983           hardcode_direct=unsupported
8984           # It fails to find uninstalled libraries when the uninstalled
8985           # path is not listed in the libpath.  Setting hardcode_minus_L
8986           # to unsupported forces relinking
8987           hardcode_minus_L=yes
8988           hardcode_libdir_flag_spec='-L$libdir'
8989           hardcode_libdir_separator=
8990           fi
8991           ;;
8992         esac
8993         shared_flag='-shared'
8994         if test yes = "$aix_use_runtimelinking"; then
8995           shared_flag="$shared_flag "'$wl-G'
8996         fi
8997         # Need to ensure runtime linking is disabled for the traditional
8998         # shared library, or the linker may eventually find shared libraries
8999         # /with/ Import File - we do not want to mix them.
9000         shared_flag_aix='-shared'
9001         shared_flag_svr4='-shared $wl-G'
9002       else
9003         # not using gcc
9004         if test ia64 = "$host_cpu"; then
9005         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9006         # chokes on -Wl,-G. The following line is correct:
9007           shared_flag='-G'
9008         else
9009           if test yes = "$aix_use_runtimelinking"; then
9010             shared_flag='$wl-G'
9011           else
9012             shared_flag='$wl-bM:SRE'
9013           fi
9014           shared_flag_aix='$wl-bM:SRE'
9015           shared_flag_svr4='$wl-G'
9016         fi
9017       fi
9018
9019       export_dynamic_flag_spec='$wl-bexpall'
9020       # It seems that -bexpall does not export symbols beginning with
9021       # underscore (_), so it is better to generate a list of symbols to export.
9022       always_export_symbols=yes
9023       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9024         # Warning - without using the other runtime loading flags (-brtl),
9025         # -berok will link without error, but may produce a broken library.
9026         allow_undefined_flag='-berok'
9027         # Determine the default libpath from the value encoded in an
9028         # empty executable.
9029         if test set = "${lt_cv_aix_libpath+set}"; then
9030   aix_libpath=$lt_cv_aix_libpath
9031 else
9032   if ${lt_cv_aix_libpath_+:} false; then :
9033   $as_echo_n "(cached) " >&6
9034 else
9035   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9036 /* end confdefs.h.  */
9037
9038 int
9039 main ()
9040 {
9041
9042   ;
9043   return 0;
9044 }
9045 _ACEOF
9046 if ac_fn_c_try_link "$LINENO"; then :
9047
9048   lt_aix_libpath_sed='
9049       /Import File Strings/,/^$/ {
9050           /^0/ {
9051               s/^0  *\([^ ]*\) *$/\1/
9052               p
9053           }
9054       }'
9055   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9056   # Check for a 64-bit object if we didn't find anything.
9057   if test -z "$lt_cv_aix_libpath_"; then
9058     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9059   fi
9060 fi
9061 rm -f core conftest.err conftest.$ac_objext \
9062     conftest$ac_exeext conftest.$ac_ext
9063   if test -z "$lt_cv_aix_libpath_"; then
9064     lt_cv_aix_libpath_=/usr/lib:/lib
9065   fi
9066
9067 fi
9068
9069   aix_libpath=$lt_cv_aix_libpath_
9070 fi
9071
9072         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9073         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
9074       else
9075         if test ia64 = "$host_cpu"; then
9076           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9077           allow_undefined_flag="-z nodefs"
9078           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"
9079         else
9080          # Determine the default libpath from the value encoded in an
9081          # empty executable.
9082          if test set = "${lt_cv_aix_libpath+set}"; then
9083   aix_libpath=$lt_cv_aix_libpath
9084 else
9085   if ${lt_cv_aix_libpath_+:} false; then :
9086   $as_echo_n "(cached) " >&6
9087 else
9088   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9089 /* end confdefs.h.  */
9090
9091 int
9092 main ()
9093 {
9094
9095   ;
9096   return 0;
9097 }
9098 _ACEOF
9099 if ac_fn_c_try_link "$LINENO"; then :
9100
9101   lt_aix_libpath_sed='
9102       /Import File Strings/,/^$/ {
9103           /^0/ {
9104               s/^0  *\([^ ]*\) *$/\1/
9105               p
9106           }
9107       }'
9108   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9109   # Check for a 64-bit object if we didn't find anything.
9110   if test -z "$lt_cv_aix_libpath_"; then
9111     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9112   fi
9113 fi
9114 rm -f core conftest.err conftest.$ac_objext \
9115     conftest$ac_exeext conftest.$ac_ext
9116   if test -z "$lt_cv_aix_libpath_"; then
9117     lt_cv_aix_libpath_=/usr/lib:/lib
9118   fi
9119
9120 fi
9121
9122   aix_libpath=$lt_cv_aix_libpath_
9123 fi
9124
9125          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9126           # Warning - without using the other run time loading flags,
9127           # -berok will link without error, but may produce a broken library.
9128           no_undefined_flag=' $wl-bernotok'
9129           allow_undefined_flag=' $wl-berok'
9130           if test yes = "$with_gnu_ld"; then
9131             # We only use this code for GNU lds that support --whole-archive.
9132             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9133           else
9134             # Exported symbols can be pulled into shared objects from archives
9135             whole_archive_flag_spec='$convenience'
9136           fi
9137           archive_cmds_need_lc=yes
9138           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9139           # -brtl affects multiple linker settings, -berok does not and is overridden later
9140           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9141           if test svr4 != "$with_aix_soname"; then
9142             # This is similar to how AIX traditionally builds its shared libraries.
9143             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'
9144           fi
9145           if test aix != "$with_aix_soname"; then
9146             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'
9147           else
9148             # used by -dlpreopen to get the symbols
9149             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
9150           fi
9151           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9152         fi
9153       fi
9154       ;;
9155
9156     amigaos*)
9157       case $host_cpu in
9158       powerpc)
9159             # see comment about AmigaOS4 .so support
9160             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9161             archive_expsym_cmds=''
9162         ;;
9163       m68k)
9164             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)'
9165             hardcode_libdir_flag_spec='-L$libdir'
9166             hardcode_minus_L=yes
9167         ;;
9168       esac
9169       ;;
9170
9171     bsdi[45]*)
9172       export_dynamic_flag_spec=-rdynamic
9173       ;;
9174
9175     cygwin* | mingw* | pw32* | cegcc*)
9176       # When not using gcc, we currently assume that we are using
9177       # Microsoft Visual C++.
9178       # hardcode_libdir_flag_spec is actually meaningless, as there is
9179       # no search path for DLLs.
9180       case $cc_basename in
9181       cl*)
9182         # Native MSVC
9183         hardcode_libdir_flag_spec=' '
9184         allow_undefined_flag=unsupported
9185         always_export_symbols=yes
9186         file_list_spec='@'
9187         # Tell ltmain to make .lib files, not .a files.
9188         libext=lib
9189         # Tell ltmain to make .dll files, not .so files.
9190         shrext_cmds=.dll
9191         # FIXME: Setting linknames here is a bad hack.
9192         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9193         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9194             cp "$export_symbols" "$output_objdir/$soname.def";
9195             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9196           else
9197             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9198           fi~
9199           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9200           linknames='
9201         # The linker will not automatically build a static lib if we build a DLL.
9202         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9203         enable_shared_with_static_runtimes=yes
9204         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9205         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9206         # Don't use ranlib
9207         old_postinstall_cmds='chmod 644 $oldlib'
9208         postlink_cmds='lt_outputfile="@OUTPUT@"~
9209           lt_tool_outputfile="@TOOL_OUTPUT@"~
9210           case $lt_outputfile in
9211             *.exe|*.EXE) ;;
9212             *)
9213               lt_outputfile=$lt_outputfile.exe
9214               lt_tool_outputfile=$lt_tool_outputfile.exe
9215               ;;
9216           esac~
9217           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9218             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9219             $RM "$lt_outputfile.manifest";
9220           fi'
9221         ;;
9222       *)
9223         # Assume MSVC wrapper
9224         hardcode_libdir_flag_spec=' '
9225         allow_undefined_flag=unsupported
9226         # Tell ltmain to make .lib files, not .a files.
9227         libext=lib
9228         # Tell ltmain to make .dll files, not .so files.
9229         shrext_cmds=.dll
9230         # FIXME: Setting linknames here is a bad hack.
9231         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9232         # The linker will automatically build a .lib file if we build a DLL.
9233         old_archive_from_new_cmds='true'
9234         # FIXME: Should let the user specify the lib program.
9235         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9236         enable_shared_with_static_runtimes=yes
9237         ;;
9238       esac
9239       ;;
9240
9241     darwin* | rhapsody*)
9242
9243
9244   archive_cmds_need_lc=no
9245   hardcode_direct=no
9246   hardcode_automatic=yes
9247   hardcode_shlibpath_var=unsupported
9248   if test yes = "$lt_cv_ld_force_load"; then
9249     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\"`'
9250
9251   else
9252     whole_archive_flag_spec=''
9253   fi
9254   link_all_deplibs=yes
9255   allow_undefined_flag=$_lt_dar_allow_undefined
9256   case $cc_basename in
9257      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9258      *) _lt_dar_can_shared=$GCC ;;
9259   esac
9260   if test yes = "$_lt_dar_can_shared"; then
9261     output_verbose_link_cmd=func_echo_all
9262     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9263     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9264     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"
9265     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"
9266
9267   else
9268   ld_shlibs=no
9269   fi
9270
9271       ;;
9272
9273     dgux*)
9274       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9275       hardcode_libdir_flag_spec='-L$libdir'
9276       hardcode_shlibpath_var=no
9277       ;;
9278
9279     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9280     # support.  Future versions do this automatically, but an explicit c++rt0.o
9281     # does not break anything, and helps significantly (at the cost of a little
9282     # extra space).
9283     freebsd2.2*)
9284       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9285       hardcode_libdir_flag_spec='-R$libdir'
9286       hardcode_direct=yes
9287       hardcode_shlibpath_var=no
9288       ;;
9289
9290     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9291     freebsd2.*)
9292       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9293       hardcode_direct=yes
9294       hardcode_minus_L=yes
9295       hardcode_shlibpath_var=no
9296       ;;
9297
9298     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9299     freebsd* | dragonfly*)
9300       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9301       hardcode_libdir_flag_spec='-R$libdir'
9302       hardcode_direct=yes
9303       hardcode_shlibpath_var=no
9304       ;;
9305
9306     hpux9*)
9307       if test yes = "$GCC"; then
9308         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'
9309       else
9310         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'
9311       fi
9312       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9313       hardcode_libdir_separator=:
9314       hardcode_direct=yes
9315
9316       # hardcode_minus_L: Not really in the search PATH,
9317       # but as the default location of the library.
9318       hardcode_minus_L=yes
9319       export_dynamic_flag_spec='$wl-E'
9320       ;;
9321
9322     hpux10*)
9323       if test yes,no = "$GCC,$with_gnu_ld"; then
9324         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9325       else
9326         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9327       fi
9328       if test no = "$with_gnu_ld"; then
9329         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9330         hardcode_libdir_separator=:
9331         hardcode_direct=yes
9332         hardcode_direct_absolute=yes
9333         export_dynamic_flag_spec='$wl-E'
9334         # hardcode_minus_L: Not really in the search PATH,
9335         # but as the default location of the library.
9336         hardcode_minus_L=yes
9337       fi
9338       ;;
9339
9340     hpux11*)
9341       if test yes,no = "$GCC,$with_gnu_ld"; then
9342         case $host_cpu in
9343         hppa*64*)
9344           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9345           ;;
9346         ia64*)
9347           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9348           ;;
9349         *)
9350           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9351           ;;
9352         esac
9353       else
9354         case $host_cpu in
9355         hppa*64*)
9356           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9357           ;;
9358         ia64*)
9359           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9360           ;;
9361         *)
9362
9363           # Older versions of the 11.00 compiler do not understand -b yet
9364           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9365           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9366 $as_echo_n "checking if $CC understands -b... " >&6; }
9367 if ${lt_cv_prog_compiler__b+:} false; then :
9368   $as_echo_n "(cached) " >&6
9369 else
9370   lt_cv_prog_compiler__b=no
9371    save_LDFLAGS=$LDFLAGS
9372    LDFLAGS="$LDFLAGS -b"
9373    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9374    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9375      # The linker can only warn and ignore the option if not recognized
9376      # So say no if there are warnings
9377      if test -s conftest.err; then
9378        # Append any errors to the config.log.
9379        cat conftest.err 1>&5
9380        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9381        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9382        if diff conftest.exp conftest.er2 >/dev/null; then
9383          lt_cv_prog_compiler__b=yes
9384        fi
9385      else
9386        lt_cv_prog_compiler__b=yes
9387      fi
9388    fi
9389    $RM -r conftest*
9390    LDFLAGS=$save_LDFLAGS
9391
9392 fi
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9394 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9395
9396 if test yes = "$lt_cv_prog_compiler__b"; then
9397     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9398 else
9399     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9400 fi
9401
9402           ;;
9403         esac
9404       fi
9405       if test no = "$with_gnu_ld"; then
9406         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9407         hardcode_libdir_separator=:
9408
9409         case $host_cpu in
9410         hppa*64*|ia64*)
9411           hardcode_direct=no
9412           hardcode_shlibpath_var=no
9413           ;;
9414         *)
9415           hardcode_direct=yes
9416           hardcode_direct_absolute=yes
9417           export_dynamic_flag_spec='$wl-E'
9418
9419           # hardcode_minus_L: Not really in the search PATH,
9420           # but as the default location of the library.
9421           hardcode_minus_L=yes
9422           ;;
9423         esac
9424       fi
9425       ;;
9426
9427     irix5* | irix6* | nonstopux*)
9428       if test yes = "$GCC"; then
9429         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'
9430         # Try to use the -exported_symbol ld option, if it does not
9431         # work, assume that -exports_file does not work either and
9432         # implicitly export all symbols.
9433         # This should be the same for all languages, so no per-tag cache variable.
9434         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9435 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9436 if ${lt_cv_irix_exported_symbol+:} false; then :
9437   $as_echo_n "(cached) " >&6
9438 else
9439   save_LDFLAGS=$LDFLAGS
9440            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9441            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9442 /* end confdefs.h.  */
9443 int foo (void) { return 0; }
9444 _ACEOF
9445 if ac_fn_c_try_link "$LINENO"; then :
9446   lt_cv_irix_exported_symbol=yes
9447 else
9448   lt_cv_irix_exported_symbol=no
9449 fi
9450 rm -f core conftest.err conftest.$ac_objext \
9451     conftest$ac_exeext conftest.$ac_ext
9452            LDFLAGS=$save_LDFLAGS
9453 fi
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9455 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9456         if test yes = "$lt_cv_irix_exported_symbol"; then
9457           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'
9458         fi
9459       else
9460         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'
9461         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'
9462       fi
9463       archive_cmds_need_lc='no'
9464       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9465       hardcode_libdir_separator=:
9466       inherit_rpath=yes
9467       link_all_deplibs=yes
9468       ;;
9469
9470     linux*)
9471       case $cc_basename in
9472       tcc*)
9473         # Fabrice Bellard et al's Tiny C Compiler
9474         ld_shlibs=yes
9475         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9476         ;;
9477       esac
9478       ;;
9479
9480     netbsd*)
9481       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9482         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9483       else
9484         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9485       fi
9486       hardcode_libdir_flag_spec='-R$libdir'
9487       hardcode_direct=yes
9488       hardcode_shlibpath_var=no
9489       ;;
9490
9491     newsos6)
9492       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9493       hardcode_direct=yes
9494       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9495       hardcode_libdir_separator=:
9496       hardcode_shlibpath_var=no
9497       ;;
9498
9499     *nto* | *qnx*)
9500       ;;
9501
9502     openbsd* | bitrig*)
9503       if test -f /usr/libexec/ld.so; then
9504         hardcode_direct=yes
9505         hardcode_shlibpath_var=no
9506         hardcode_direct_absolute=yes
9507         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9508           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9509           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9510           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9511           export_dynamic_flag_spec='$wl-E'
9512         else
9513           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9514           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9515         fi
9516       else
9517         ld_shlibs=no
9518       fi
9519       ;;
9520
9521     os2*)
9522       hardcode_libdir_flag_spec='-L$libdir'
9523       hardcode_minus_L=yes
9524       allow_undefined_flag=unsupported
9525       shrext_cmds=.dll
9526       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9527         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9528         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9529         $ECHO EXPORTS >> $output_objdir/$libname.def~
9530         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9531         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9532         emximp -o $lib $output_objdir/$libname.def'
9533       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9534         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9535         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9536         $ECHO EXPORTS >> $output_objdir/$libname.def~
9537         prefix_cmds="$SED"~
9538         if test EXPORTS = "`$SED 1q $export_symbols`"; then
9539           prefix_cmds="$prefix_cmds -e 1d";
9540         fi~
9541         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9542         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9543         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9544         emximp -o $lib $output_objdir/$libname.def'
9545       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9546       enable_shared_with_static_runtimes=yes
9547       ;;
9548
9549     osf3*)
9550       if test yes = "$GCC"; then
9551         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9552         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'
9553       else
9554         allow_undefined_flag=' -expect_unresolved \*'
9555         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'
9556       fi
9557       archive_cmds_need_lc='no'
9558       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9559       hardcode_libdir_separator=:
9560       ;;
9561
9562     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9563       if test yes = "$GCC"; then
9564         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9565         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'
9566         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9567       else
9568         allow_undefined_flag=' -expect_unresolved \*'
9569         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'
9570         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~
9571           $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'
9572
9573         # Both c and cxx compiler support -rpath directly
9574         hardcode_libdir_flag_spec='-rpath $libdir'
9575       fi
9576       archive_cmds_need_lc='no'
9577       hardcode_libdir_separator=:
9578       ;;
9579
9580     solaris*)
9581       no_undefined_flag=' -z defs'
9582       if test yes = "$GCC"; then
9583         wlarc='$wl'
9584         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9585         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9586           $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'
9587       else
9588         case `$CC -V 2>&1` in
9589         *"Compilers 5.0"*)
9590           wlarc=''
9591           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
9592           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9593             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9594           ;;
9595         *)
9596           wlarc='$wl'
9597           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9598           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9599             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9600           ;;
9601         esac
9602       fi
9603       hardcode_libdir_flag_spec='-R$libdir'
9604       hardcode_shlibpath_var=no
9605       case $host_os in
9606       solaris2.[0-5] | solaris2.[0-5].*) ;;
9607       *)
9608         # The compiler driver will combine and reorder linker options,
9609         # but understands '-z linker_flag'.  GCC discards it without '$wl',
9610         # but is careful enough not to reorder.
9611         # Supported since Solaris 2.6 (maybe 2.5.1?)
9612         if test yes = "$GCC"; then
9613           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
9614         else
9615           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9616         fi
9617         ;;
9618       esac
9619       link_all_deplibs=yes
9620       ;;
9621
9622     sunos4*)
9623       if test sequent = "$host_vendor"; then
9624         # Use $CC to link under sequent, because it throws in some extra .o
9625         # files that make .init and .fini sections work.
9626         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9627       else
9628         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9629       fi
9630       hardcode_libdir_flag_spec='-L$libdir'
9631       hardcode_direct=yes
9632       hardcode_minus_L=yes
9633       hardcode_shlibpath_var=no
9634       ;;
9635
9636     sysv4)
9637       case $host_vendor in
9638         sni)
9639           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9640           hardcode_direct=yes # is this really true???
9641         ;;
9642         siemens)
9643           ## LD is ld it makes a PLAMLIB
9644           ## CC just makes a GrossModule.
9645           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9646           reload_cmds='$CC -r -o $output$reload_objs'
9647           hardcode_direct=no
9648         ;;
9649         motorola)
9650           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9651           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9652         ;;
9653       esac
9654       runpath_var='LD_RUN_PATH'
9655       hardcode_shlibpath_var=no
9656       ;;
9657
9658     sysv4.3*)
9659       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9660       hardcode_shlibpath_var=no
9661       export_dynamic_flag_spec='-Bexport'
9662       ;;
9663
9664     sysv4*MP*)
9665       if test -d /usr/nec; then
9666         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9667         hardcode_shlibpath_var=no
9668         runpath_var=LD_RUN_PATH
9669         hardcode_runpath_var=yes
9670         ld_shlibs=yes
9671       fi
9672       ;;
9673
9674     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9675       no_undefined_flag='$wl-z,text'
9676       archive_cmds_need_lc=no
9677       hardcode_shlibpath_var=no
9678       runpath_var='LD_RUN_PATH'
9679
9680       if test yes = "$GCC"; then
9681         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9682         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9683       else
9684         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9685         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9686       fi
9687       ;;
9688
9689     sysv5* | sco3.2v5* | sco5v6*)
9690       # Note: We CANNOT use -z defs as we might desire, because we do not
9691       # link with -lc, and that would cause any symbols used from libc to
9692       # always be unresolved, which means just about no library would
9693       # ever link correctly.  If we're not using GNU ld we use -z text
9694       # though, which does catch some bad symbols but isn't as heavy-handed
9695       # as -z defs.
9696       no_undefined_flag='$wl-z,text'
9697       allow_undefined_flag='$wl-z,nodefs'
9698       archive_cmds_need_lc=no
9699       hardcode_shlibpath_var=no
9700       hardcode_libdir_flag_spec='$wl-R,$libdir'
9701       hardcode_libdir_separator=':'
9702       link_all_deplibs=yes
9703       export_dynamic_flag_spec='$wl-Bexport'
9704       runpath_var='LD_RUN_PATH'
9705
9706       if test yes = "$GCC"; then
9707         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9708         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9709       else
9710         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9711         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9712       fi
9713       ;;
9714
9715     uts4*)
9716       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9717       hardcode_libdir_flag_spec='-L$libdir'
9718       hardcode_shlibpath_var=no
9719       ;;
9720
9721     *)
9722       ld_shlibs=no
9723       ;;
9724     esac
9725
9726     if test sni = "$host_vendor"; then
9727       case $host in
9728       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9729         export_dynamic_flag_spec='$wl-Blargedynsym'
9730         ;;
9731       esac
9732     fi
9733   fi
9734
9735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9736 $as_echo "$ld_shlibs" >&6; }
9737 test no = "$ld_shlibs" && can_build_shared=no
9738
9739 with_gnu_ld=$with_gnu_ld
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755 #
9756 # Do we need to explicitly link libc?
9757 #
9758 case "x$archive_cmds_need_lc" in
9759 x|xyes)
9760   # Assume -lc should be added
9761   archive_cmds_need_lc=yes
9762
9763   if test yes,yes = "$GCC,$enable_shared"; then
9764     case $archive_cmds in
9765     *'~'*)
9766       # FIXME: we may have to deal with multi-command sequences.
9767       ;;
9768     '$CC '*)
9769       # Test whether the compiler implicitly links with -lc since on some
9770       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9771       # to ld, don't add -lc before -lgcc.
9772       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9773 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9774 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9775   $as_echo_n "(cached) " >&6
9776 else
9777   $RM conftest*
9778         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9779
9780         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9781   (eval $ac_compile) 2>&5
9782   ac_status=$?
9783   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9784   test $ac_status = 0; } 2>conftest.err; then
9785           soname=conftest
9786           lib=conftest
9787           libobjs=conftest.$ac_objext
9788           deplibs=
9789           wl=$lt_prog_compiler_wl
9790           pic_flag=$lt_prog_compiler_pic
9791           compiler_flags=-v
9792           linker_flags=-v
9793           verstring=
9794           output_objdir=.
9795           libname=conftest
9796           lt_save_allow_undefined_flag=$allow_undefined_flag
9797           allow_undefined_flag=
9798           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9799   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9800   ac_status=$?
9801   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9802   test $ac_status = 0; }
9803           then
9804             lt_cv_archive_cmds_need_lc=no
9805           else
9806             lt_cv_archive_cmds_need_lc=yes
9807           fi
9808           allow_undefined_flag=$lt_save_allow_undefined_flag
9809         else
9810           cat conftest.err 1>&5
9811         fi
9812         $RM conftest*
9813
9814 fi
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9816 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9817       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9818       ;;
9819     esac
9820   fi
9821   ;;
9822 esac
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9976 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9977
9978 if test yes = "$GCC"; then
9979   case $host_os in
9980     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
9981     *) lt_awk_arg='/^libraries:/' ;;
9982   esac
9983   case $host_os in
9984     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
9985     *) lt_sed_strip_eq='s|=/|/|g' ;;
9986   esac
9987   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9988   case $lt_search_path_spec in
9989   *\;*)
9990     # if the path contains ";" then we assume it to be the separator
9991     # otherwise default to the standard path separator (i.e. ":") - it is
9992     # assumed that no part of a normal pathname contains ";" but that should
9993     # okay in the real world where ";" in dirpaths is itself problematic.
9994     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9995     ;;
9996   *)
9997     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9998     ;;
9999   esac
10000   # Ok, now we have the path, separated by spaces, we can step through it
10001   # and add multilib dir if necessary...
10002   lt_tmp_lt_search_path_spec=
10003   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10004   # ...but if some path component already ends with the multilib dir we assume
10005   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10006   case "$lt_multi_os_dir; $lt_search_path_spec " in
10007   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10008     lt_multi_os_dir=
10009     ;;
10010   esac
10011   for lt_sys_path in $lt_search_path_spec; do
10012     if test -d "$lt_sys_path$lt_multi_os_dir"; then
10013       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10014     elif test -n "$lt_multi_os_dir"; then
10015       test -d "$lt_sys_path" && \
10016         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10017     fi
10018   done
10019   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10020 BEGIN {RS = " "; FS = "/|\n";} {
10021   lt_foo = "";
10022   lt_count = 0;
10023   for (lt_i = NF; lt_i > 0; lt_i--) {
10024     if ($lt_i != "" && $lt_i != ".") {
10025       if ($lt_i == "..") {
10026         lt_count++;
10027       } else {
10028         if (lt_count == 0) {
10029           lt_foo = "/" $lt_i lt_foo;
10030         } else {
10031           lt_count--;
10032         }
10033       }
10034     }
10035   }
10036   if (lt_foo != "") { lt_freq[lt_foo]++; }
10037   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10038 }'`
10039   # AWK program above erroneously prepends '/' to C:/dos/paths
10040   # for these hosts.
10041   case $host_os in
10042     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10043       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10044   esac
10045   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10046 else
10047   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10048 fi
10049 library_names_spec=
10050 libname_spec='lib$name'
10051 soname_spec=
10052 shrext_cmds=.so
10053 postinstall_cmds=
10054 postuninstall_cmds=
10055 finish_cmds=
10056 finish_eval=
10057 shlibpath_var=
10058 shlibpath_overrides_runpath=unknown
10059 version_type=none
10060 dynamic_linker="$host_os ld.so"
10061 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10062 need_lib_prefix=unknown
10063 hardcode_into_libs=no
10064
10065 # when you set need_version to no, make sure it does not cause -set_version
10066 # flags to be left without arguments
10067 need_version=unknown
10068
10069
10070
10071 case $host_os in
10072 aix3*)
10073   version_type=linux # correct to gnu/linux during the next big refactor
10074   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10075   shlibpath_var=LIBPATH
10076
10077   # AIX 3 has no versioning support, so we append a major version to the name.
10078   soname_spec='$libname$release$shared_ext$major'
10079   ;;
10080
10081 aix[4-9]*)
10082   version_type=linux # correct to gnu/linux during the next big refactor
10083   need_lib_prefix=no
10084   need_version=no
10085   hardcode_into_libs=yes
10086   if test ia64 = "$host_cpu"; then
10087     # AIX 5 supports IA64
10088     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10089     shlibpath_var=LD_LIBRARY_PATH
10090   else
10091     # With GCC up to 2.95.x, collect2 would create an import file
10092     # for dependence libraries.  The import file would start with
10093     # the line '#! .'.  This would cause the generated library to
10094     # depend on '.', always an invalid library.  This was fixed in
10095     # development snapshots of GCC prior to 3.0.
10096     case $host_os in
10097       aix4 | aix4.[01] | aix4.[01].*)
10098       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10099            echo ' yes '
10100            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10101         :
10102       else
10103         can_build_shared=no
10104       fi
10105       ;;
10106     esac
10107     # Using Import Files as archive members, it is possible to support
10108     # filename-based versioning of shared library archives on AIX. While
10109     # this would work for both with and without runtime linking, it will
10110     # prevent static linking of such archives. So we do filename-based
10111     # shared library versioning with .so extension only, which is used
10112     # when both runtime linking and shared linking is enabled.
10113     # Unfortunately, runtime linking may impact performance, so we do
10114     # not want this to be the default eventually. Also, we use the
10115     # versioned .so libs for executables only if there is the -brtl
10116     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10117     # To allow for filename-based versioning support, we need to create
10118     # libNAME.so.V as an archive file, containing:
10119     # *) an Import File, referring to the versioned filename of the
10120     #    archive as well as the shared archive member, telling the
10121     #    bitwidth (32 or 64) of that shared object, and providing the
10122     #    list of exported symbols of that shared object, eventually
10123     #    decorated with the 'weak' keyword
10124     # *) the shared object with the F_LOADONLY flag set, to really avoid
10125     #    it being seen by the linker.
10126     # At run time we better use the real file rather than another symlink,
10127     # but for link time we create the symlink libNAME.so -> libNAME.so.V
10128
10129     case $with_aix_soname,$aix_use_runtimelinking in
10130     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10131     # soname into executable. Probably we can add versioning support to
10132     # collect2, so additional links can be useful in future.
10133     aix,yes) # traditional libtool
10134       dynamic_linker='AIX unversionable lib.so'
10135       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10136       # instead of lib<name>.a to let people know that these are not
10137       # typical AIX shared libraries.
10138       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10139       ;;
10140     aix,no) # traditional AIX only
10141       dynamic_linker='AIX lib.a(lib.so.V)'
10142       # We preserve .a as extension for shared libraries through AIX4.2
10143       # and later when we are not doing run time linking.
10144       library_names_spec='$libname$release.a $libname.a'
10145       soname_spec='$libname$release$shared_ext$major'
10146       ;;
10147     svr4,*) # full svr4 only
10148       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10149       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10150       # We do not specify a path in Import Files, so LIBPATH fires.
10151       shlibpath_overrides_runpath=yes
10152       ;;
10153     *,yes) # both, prefer svr4
10154       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10155       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10156       # unpreferred sharedlib libNAME.a needs extra handling
10157       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"'
10158       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"'
10159       # We do not specify a path in Import Files, so LIBPATH fires.
10160       shlibpath_overrides_runpath=yes
10161       ;;
10162     *,no) # both, prefer aix
10163       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10164       library_names_spec='$libname$release.a $libname.a'
10165       soname_spec='$libname$release$shared_ext$major'
10166       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10167       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)'
10168       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"'
10169       ;;
10170     esac
10171     shlibpath_var=LIBPATH
10172   fi
10173   ;;
10174
10175 amigaos*)
10176   case $host_cpu in
10177   powerpc)
10178     # Since July 2007 AmigaOS4 officially supports .so libraries.
10179     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10180     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10181     ;;
10182   m68k)
10183     library_names_spec='$libname.ixlibrary $libname.a'
10184     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10185     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'
10186     ;;
10187   esac
10188   ;;
10189
10190 beos*)
10191   library_names_spec='$libname$shared_ext'
10192   dynamic_linker="$host_os ld.so"
10193   shlibpath_var=LIBRARY_PATH
10194   ;;
10195
10196 bsdi[45]*)
10197   version_type=linux # correct to gnu/linux during the next big refactor
10198   need_version=no
10199   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10200   soname_spec='$libname$release$shared_ext$major'
10201   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10202   shlibpath_var=LD_LIBRARY_PATH
10203   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10204   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10205   # the default ld.so.conf also contains /usr/contrib/lib and
10206   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10207   # libtool to hard-code these into programs
10208   ;;
10209
10210 cygwin* | mingw* | pw32* | cegcc*)
10211   version_type=windows
10212   shrext_cmds=.dll
10213   need_version=no
10214   need_lib_prefix=no
10215
10216   case $GCC,$cc_basename in
10217   yes,*)
10218     # gcc
10219     library_names_spec='$libname.dll.a'
10220     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10221     postinstall_cmds='base_file=`basename \$file`~
10222       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10223       dldir=$destdir/`dirname \$dlpath`~
10224       test -d \$dldir || mkdir -p \$dldir~
10225       $install_prog $dir/$dlname \$dldir/$dlname~
10226       chmod a+x \$dldir/$dlname~
10227       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10228         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10229       fi'
10230     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10231       dlpath=$dir/\$dldll~
10232        $RM \$dlpath'
10233     shlibpath_overrides_runpath=yes
10234
10235     case $host_os in
10236     cygwin*)
10237       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10238       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10239
10240       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10241       ;;
10242     mingw* | cegcc*)
10243       # MinGW DLLs use traditional 'lib' prefix
10244       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10245       ;;
10246     pw32*)
10247       # pw32 DLLs use 'pw' prefix rather than 'lib'
10248       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10249       ;;
10250     esac
10251     dynamic_linker='Win32 ld.exe'
10252     ;;
10253
10254   *,cl*)
10255     # Native MSVC
10256     libname_spec='$name'
10257     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10258     library_names_spec='$libname.dll.lib'
10259
10260     case $build_os in
10261     mingw*)
10262       sys_lib_search_path_spec=
10263       lt_save_ifs=$IFS
10264       IFS=';'
10265       for lt_path in $LIB
10266       do
10267         IFS=$lt_save_ifs
10268         # Let DOS variable expansion print the short 8.3 style file name.
10269         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10270         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10271       done
10272       IFS=$lt_save_ifs
10273       # Convert to MSYS style.
10274       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10275       ;;
10276     cygwin*)
10277       # Convert to unix form, then to dos form, then back to unix form
10278       # but this time dos style (no spaces!) so that the unix form looks
10279       # like /cygdrive/c/PROGRA~1:/cygdr...
10280       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10281       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10282       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10283       ;;
10284     *)
10285       sys_lib_search_path_spec=$LIB
10286       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10287         # It is most probably a Windows format PATH.
10288         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10289       else
10290         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10291       fi
10292       # FIXME: find the short name or the path components, as spaces are
10293       # common. (e.g. "Program Files" -> "PROGRA~1")
10294       ;;
10295     esac
10296
10297     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10298     postinstall_cmds='base_file=`basename \$file`~
10299       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10300       dldir=$destdir/`dirname \$dlpath`~
10301       test -d \$dldir || mkdir -p \$dldir~
10302       $install_prog $dir/$dlname \$dldir/$dlname'
10303     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10304       dlpath=$dir/\$dldll~
10305        $RM \$dlpath'
10306     shlibpath_overrides_runpath=yes
10307     dynamic_linker='Win32 link.exe'
10308     ;;
10309
10310   *)
10311     # Assume MSVC wrapper
10312     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10313     dynamic_linker='Win32 ld.exe'
10314     ;;
10315   esac
10316   # FIXME: first we should search . and the directory the executable is in
10317   shlibpath_var=PATH
10318   ;;
10319
10320 darwin* | rhapsody*)
10321   dynamic_linker="$host_os dyld"
10322   version_type=darwin
10323   need_lib_prefix=no
10324   need_version=no
10325   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10326   soname_spec='$libname$release$major$shared_ext'
10327   shlibpath_overrides_runpath=yes
10328   shlibpath_var=DYLD_LIBRARY_PATH
10329   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10330
10331   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10332   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10333   ;;
10334
10335 dgux*)
10336   version_type=linux # correct to gnu/linux during the next big refactor
10337   need_lib_prefix=no
10338   need_version=no
10339   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10340   soname_spec='$libname$release$shared_ext$major'
10341   shlibpath_var=LD_LIBRARY_PATH
10342   ;;
10343
10344 freebsd* | dragonfly*)
10345   # DragonFly does not have aout.  When/if they implement a new
10346   # versioning mechanism, adjust this.
10347   if test -x /usr/bin/objformat; then
10348     objformat=`/usr/bin/objformat`
10349   else
10350     case $host_os in
10351     freebsd[23].*) objformat=aout ;;
10352     *) objformat=elf ;;
10353     esac
10354   fi
10355   # Handle Gentoo/FreeBSD as it was Linux
10356   case $host_vendor in
10357     gentoo)
10358       version_type=linux ;;
10359     *)
10360       version_type=freebsd-$objformat ;;
10361   esac
10362
10363   case $version_type in
10364     freebsd-elf*)
10365       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10366       soname_spec='$libname$release$shared_ext$major'
10367       need_version=no
10368       need_lib_prefix=no
10369       ;;
10370     freebsd-*)
10371       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10372       need_version=yes
10373       ;;
10374     linux)
10375       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10376       soname_spec='${libname}${release}${shared_ext}$major'
10377       need_lib_prefix=no
10378       need_version=no
10379       ;;
10380   esac
10381   shlibpath_var=LD_LIBRARY_PATH
10382   case $host_os in
10383   freebsd2.*)
10384     shlibpath_overrides_runpath=yes
10385     ;;
10386   freebsd3.[01]* | freebsdelf3.[01]*)
10387     shlibpath_overrides_runpath=yes
10388     hardcode_into_libs=yes
10389     ;;
10390   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10391   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10392     shlibpath_overrides_runpath=no
10393     hardcode_into_libs=yes
10394     ;;
10395   *) # from 4.6 on, and DragonFly
10396     shlibpath_overrides_runpath=yes
10397     hardcode_into_libs=yes
10398     ;;
10399   esac
10400   ;;
10401
10402 haiku*)
10403   version_type=linux # correct to gnu/linux during the next big refactor
10404   need_lib_prefix=no
10405   need_version=no
10406   dynamic_linker="$host_os runtime_loader"
10407   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10408   soname_spec='$libname$release$shared_ext$major'
10409   shlibpath_var=LIBRARY_PATH
10410   shlibpath_overrides_runpath=no
10411   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10412   hardcode_into_libs=yes
10413   ;;
10414
10415 hpux9* | hpux10* | hpux11*)
10416   # Give a soname corresponding to the major version so that dld.sl refuses to
10417   # link against other versions.
10418   version_type=sunos
10419   need_lib_prefix=no
10420   need_version=no
10421   case $host_cpu in
10422   ia64*)
10423     shrext_cmds='.so'
10424     hardcode_into_libs=yes
10425     dynamic_linker="$host_os dld.so"
10426     shlibpath_var=LD_LIBRARY_PATH
10427     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10428     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10429     soname_spec='$libname$release$shared_ext$major'
10430     if test 32 = "$HPUX_IA64_MODE"; then
10431       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10432       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10433     else
10434       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10435       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10436     fi
10437     ;;
10438   hppa*64*)
10439     shrext_cmds='.sl'
10440     hardcode_into_libs=yes
10441     dynamic_linker="$host_os dld.sl"
10442     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10443     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10444     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10445     soname_spec='$libname$release$shared_ext$major'
10446     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10447     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10448     ;;
10449   *)
10450     shrext_cmds='.sl'
10451     dynamic_linker="$host_os dld.sl"
10452     shlibpath_var=SHLIB_PATH
10453     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10454     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10455     soname_spec='$libname$release$shared_ext$major'
10456     ;;
10457   esac
10458   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10459   postinstall_cmds='chmod 555 $lib'
10460   # or fails outright, so override atomically:
10461   install_override_mode=555
10462   ;;
10463
10464 interix[3-9]*)
10465   version_type=linux # correct to gnu/linux during the next big refactor
10466   need_lib_prefix=no
10467   need_version=no
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   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10471   shlibpath_var=LD_LIBRARY_PATH
10472   shlibpath_overrides_runpath=no
10473   hardcode_into_libs=yes
10474   ;;
10475
10476 irix5* | irix6* | nonstopux*)
10477   case $host_os in
10478     nonstopux*) version_type=nonstopux ;;
10479     *)
10480         if test yes = "$lt_cv_prog_gnu_ld"; then
10481                 version_type=linux # correct to gnu/linux during the next big refactor
10482         else
10483                 version_type=irix
10484         fi ;;
10485   esac
10486   need_lib_prefix=no
10487   need_version=no
10488   soname_spec='$libname$release$shared_ext$major'
10489   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10490   case $host_os in
10491   irix5* | nonstopux*)
10492     libsuff= shlibsuff=
10493     ;;
10494   *)
10495     case $LD in # libtool.m4 will add one of these switches to LD
10496     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10497       libsuff= shlibsuff= libmagic=32-bit;;
10498     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10499       libsuff=32 shlibsuff=N32 libmagic=N32;;
10500     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10501       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10502     *) libsuff= shlibsuff= libmagic=never-match;;
10503     esac
10504     ;;
10505   esac
10506   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10507   shlibpath_overrides_runpath=no
10508   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10509   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10510   hardcode_into_libs=yes
10511   ;;
10512
10513 # No shared lib support for Linux oldld, aout, or coff.
10514 linux*oldld* | linux*aout* | linux*coff*)
10515   dynamic_linker=no
10516   ;;
10517
10518 linux*android*)
10519   version_type=none # Android doesn't support versioned libraries.
10520   need_lib_prefix=no
10521   need_version=no
10522   library_names_spec='$libname$release$shared_ext'
10523   soname_spec='$libname$release$shared_ext'
10524   finish_cmds=
10525   shlibpath_var=LD_LIBRARY_PATH
10526   shlibpath_overrides_runpath=yes
10527
10528   # This implies no fast_install, which is unacceptable.
10529   # Some rework will be needed to allow for fast_install
10530   # before this can be enabled.
10531   hardcode_into_libs=yes
10532
10533   dynamic_linker='Android linker'
10534   # Don't embed -rpath directories since the linker doesn't support them.
10535   hardcode_libdir_flag_spec='-L$libdir'
10536   ;;
10537
10538 # This must be glibc/ELF.
10539 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10540   version_type=linux # correct to gnu/linux during the next big refactor
10541   need_lib_prefix=no
10542   need_version=no
10543   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10544   soname_spec='$libname$release$shared_ext$major'
10545   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10546   shlibpath_var=LD_LIBRARY_PATH
10547   shlibpath_overrides_runpath=no
10548
10549   # Some binutils ld are patched to set DT_RUNPATH
10550   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10551   $as_echo_n "(cached) " >&6
10552 else
10553   lt_cv_shlibpath_overrides_runpath=no
10554     save_LDFLAGS=$LDFLAGS
10555     save_libdir=$libdir
10556     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10557          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10558     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10559 /* end confdefs.h.  */
10560
10561 int
10562 main ()
10563 {
10564
10565   ;
10566   return 0;
10567 }
10568 _ACEOF
10569 if ac_fn_c_try_link "$LINENO"; then :
10570   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10571   lt_cv_shlibpath_overrides_runpath=yes
10572 fi
10573 fi
10574 rm -f core conftest.err conftest.$ac_objext \
10575     conftest$ac_exeext conftest.$ac_ext
10576     LDFLAGS=$save_LDFLAGS
10577     libdir=$save_libdir
10578
10579 fi
10580
10581   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10582
10583   # This implies no fast_install, which is unacceptable.
10584   # Some rework will be needed to allow for fast_install
10585   # before this can be enabled.
10586   hardcode_into_libs=yes
10587
10588   # Ideally, we could use ldconfig to report *all* directores which are
10589   # searched for libraries, however this is still not possible.  Aside from not
10590   # being certain /sbin/ldconfig is available, command
10591   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
10592   # even though it is searched at run-time.  Try to do the best guess by
10593   # appending ld.so.conf contents (and includes) to the search path.
10594   if test -f /etc/ld.so.conf; then
10595     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' ' '`
10596     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10597   fi
10598
10599   # We used to test for /lib/ld.so.1 and disable shared libraries on
10600   # powerpc, because MkLinux only supported shared libraries with the
10601   # GNU dynamic linker.  Since this was broken with cross compilers,
10602   # most powerpc-linux boxes support dynamic linking these days and
10603   # people can always --disable-shared, the test was removed, and we
10604   # assume the GNU/Linux dynamic linker is in use.
10605   dynamic_linker='GNU/Linux ld.so'
10606   ;;
10607
10608 netbsd*)
10609   version_type=sunos
10610   need_lib_prefix=no
10611   need_version=no
10612   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10613     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10614     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10615     dynamic_linker='NetBSD (a.out) ld.so'
10616   else
10617     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10618     soname_spec='$libname$release$shared_ext$major'
10619     dynamic_linker='NetBSD ld.elf_so'
10620   fi
10621   shlibpath_var=LD_LIBRARY_PATH
10622   shlibpath_overrides_runpath=yes
10623   hardcode_into_libs=yes
10624   ;;
10625
10626 newsos6)
10627   version_type=linux # correct to gnu/linux during the next big refactor
10628   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10629   shlibpath_var=LD_LIBRARY_PATH
10630   shlibpath_overrides_runpath=yes
10631   ;;
10632
10633 *nto* | *qnx*)
10634   version_type=qnx
10635   need_lib_prefix=no
10636   need_version=no
10637   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10638   soname_spec='$libname$release$shared_ext$major'
10639   shlibpath_var=LD_LIBRARY_PATH
10640   shlibpath_overrides_runpath=no
10641   hardcode_into_libs=yes
10642   dynamic_linker='ldqnx.so'
10643   ;;
10644
10645 openbsd* | bitrig*)
10646   version_type=sunos
10647   sys_lib_dlsearch_path_spec=/usr/lib
10648   need_lib_prefix=no
10649   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10650     need_version=no
10651   else
10652     need_version=yes
10653   fi
10654   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10655   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10656   shlibpath_var=LD_LIBRARY_PATH
10657   shlibpath_overrides_runpath=yes
10658   ;;
10659
10660 os2*)
10661   libname_spec='$name'
10662   version_type=windows
10663   shrext_cmds=.dll
10664   need_version=no
10665   need_lib_prefix=no
10666   # OS/2 can only load a DLL with a base name of 8 characters or less.
10667   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
10668     v=$($ECHO $release$versuffix | tr -d .-);
10669     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
10670     $ECHO $n$v`$shared_ext'
10671   library_names_spec='${libname}_dll.$libext'
10672   dynamic_linker='OS/2 ld.exe'
10673   shlibpath_var=BEGINLIBPATH
10674   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10675   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10676   postinstall_cmds='base_file=`basename \$file`~
10677     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
10678     dldir=$destdir/`dirname \$dlpath`~
10679     test -d \$dldir || mkdir -p \$dldir~
10680     $install_prog $dir/$dlname \$dldir/$dlname~
10681     chmod a+x \$dldir/$dlname~
10682     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10683       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10684     fi'
10685   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
10686     dlpath=$dir/\$dldll~
10687     $RM \$dlpath'
10688   ;;
10689
10690 osf3* | osf4* | osf5*)
10691   version_type=osf
10692   need_lib_prefix=no
10693   need_version=no
10694   soname_spec='$libname$release$shared_ext$major'
10695   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10696   shlibpath_var=LD_LIBRARY_PATH
10697   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10698   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10699   ;;
10700
10701 rdos*)
10702   dynamic_linker=no
10703   ;;
10704
10705 solaris*)
10706   version_type=linux # correct to gnu/linux during the next big refactor
10707   need_lib_prefix=no
10708   need_version=no
10709   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10710   soname_spec='$libname$release$shared_ext$major'
10711   shlibpath_var=LD_LIBRARY_PATH
10712   shlibpath_overrides_runpath=yes
10713   hardcode_into_libs=yes
10714   # ldd complains unless libraries are executable
10715   postinstall_cmds='chmod +x $lib'
10716   ;;
10717
10718 sunos4*)
10719   version_type=sunos
10720   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10721   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10722   shlibpath_var=LD_LIBRARY_PATH
10723   shlibpath_overrides_runpath=yes
10724   if test yes = "$with_gnu_ld"; then
10725     need_lib_prefix=no
10726   fi
10727   need_version=yes
10728   ;;
10729
10730 sysv4 | sysv4.3*)
10731   version_type=linux # correct to gnu/linux during the next big refactor
10732   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10733   soname_spec='$libname$release$shared_ext$major'
10734   shlibpath_var=LD_LIBRARY_PATH
10735   case $host_vendor in
10736     sni)
10737       shlibpath_overrides_runpath=no
10738       need_lib_prefix=no
10739       runpath_var=LD_RUN_PATH
10740       ;;
10741     siemens)
10742       need_lib_prefix=no
10743       ;;
10744     motorola)
10745       need_lib_prefix=no
10746       need_version=no
10747       shlibpath_overrides_runpath=no
10748       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10749       ;;
10750   esac
10751   ;;
10752
10753 sysv4*MP*)
10754   if test -d /usr/nec; then
10755     version_type=linux # correct to gnu/linux during the next big refactor
10756     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
10757     soname_spec='$libname$shared_ext.$major'
10758     shlibpath_var=LD_LIBRARY_PATH
10759   fi
10760   ;;
10761
10762 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10763   version_type=sco
10764   need_lib_prefix=no
10765   need_version=no
10766   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
10767   soname_spec='$libname$release$shared_ext$major'
10768   shlibpath_var=LD_LIBRARY_PATH
10769   shlibpath_overrides_runpath=yes
10770   hardcode_into_libs=yes
10771   if test yes = "$with_gnu_ld"; then
10772     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10773   else
10774     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10775     case $host_os in
10776       sco3.2v5*)
10777         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10778         ;;
10779     esac
10780   fi
10781   sys_lib_dlsearch_path_spec='/usr/lib'
10782   ;;
10783
10784 tpf*)
10785   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10786   version_type=linux # correct to gnu/linux during the next big refactor
10787   need_lib_prefix=no
10788   need_version=no
10789   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10790   shlibpath_var=LD_LIBRARY_PATH
10791   shlibpath_overrides_runpath=no
10792   hardcode_into_libs=yes
10793   ;;
10794
10795 uts4*)
10796   version_type=linux # correct to gnu/linux during the next big refactor
10797   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10798   soname_spec='$libname$release$shared_ext$major'
10799   shlibpath_var=LD_LIBRARY_PATH
10800   ;;
10801
10802 *)
10803   dynamic_linker=no
10804   ;;
10805 esac
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10807 $as_echo "$dynamic_linker" >&6; }
10808 test no = "$dynamic_linker" && can_build_shared=no
10809
10810 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10811 if test yes = "$GCC"; then
10812   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10813 fi
10814
10815 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
10816   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
10817 fi
10818
10819 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
10820   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
10821 fi
10822
10823 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
10824 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
10825
10826 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
10827 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
10828
10829 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
10830 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10929 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10930 hardcode_action=
10931 if test -n "$hardcode_libdir_flag_spec" ||
10932    test -n "$runpath_var" ||
10933    test yes = "$hardcode_automatic"; then
10934
10935   # We can hardcode non-existent directories.
10936   if test no != "$hardcode_direct" &&
10937      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10938      # have to relink, otherwise we might link with an installed library
10939      # when we should be linking with a yet-to-be-installed one
10940      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
10941      test no != "$hardcode_minus_L"; then
10942     # Linking always hardcodes the temporary library directory.
10943     hardcode_action=relink
10944   else
10945     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10946     hardcode_action=immediate
10947   fi
10948 else
10949   # We cannot hardcode anything, or else we can only hardcode existing
10950   # directories.
10951   hardcode_action=unsupported
10952 fi
10953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10954 $as_echo "$hardcode_action" >&6; }
10955
10956 if test relink = "$hardcode_action" ||
10957    test yes = "$inherit_rpath"; then
10958   # Fast installation is not supported
10959   enable_fast_install=no
10960 elif test yes = "$shlibpath_overrides_runpath" ||
10961      test no = "$enable_shared"; then
10962   # Fast installation is not necessary
10963   enable_fast_install=needless
10964 fi
10965
10966
10967
10968
10969
10970
10971   if test yes != "$enable_dlopen"; then
10972   enable_dlopen=unknown
10973   enable_dlopen_self=unknown
10974   enable_dlopen_self_static=unknown
10975 else
10976   lt_cv_dlopen=no
10977   lt_cv_dlopen_libs=
10978
10979   case $host_os in
10980   beos*)
10981     lt_cv_dlopen=load_add_on
10982     lt_cv_dlopen_libs=
10983     lt_cv_dlopen_self=yes
10984     ;;
10985
10986   mingw* | pw32* | cegcc*)
10987     lt_cv_dlopen=LoadLibrary
10988     lt_cv_dlopen_libs=
10989     ;;
10990
10991   cygwin*)
10992     lt_cv_dlopen=dlopen
10993     lt_cv_dlopen_libs=
10994     ;;
10995
10996   darwin*)
10997     # if libdl is installed we need to link against it
10998     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10999 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11000 if ${ac_cv_lib_dl_dlopen+:} false; then :
11001   $as_echo_n "(cached) " >&6
11002 else
11003   ac_check_lib_save_LIBS=$LIBS
11004 LIBS="-ldl  $LIBS"
11005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11006 /* end confdefs.h.  */
11007
11008 /* Override any GCC internal prototype to avoid an error.
11009    Use char because int might match the return type of a GCC
11010    builtin and then its argument prototype would still apply.  */
11011 #ifdef __cplusplus
11012 extern "C"
11013 #endif
11014 char dlopen ();
11015 int
11016 main ()
11017 {
11018 return dlopen ();
11019   ;
11020   return 0;
11021 }
11022 _ACEOF
11023 if ac_fn_c_try_link "$LINENO"; then :
11024   ac_cv_lib_dl_dlopen=yes
11025 else
11026   ac_cv_lib_dl_dlopen=no
11027 fi
11028 rm -f core conftest.err conftest.$ac_objext \
11029     conftest$ac_exeext conftest.$ac_ext
11030 LIBS=$ac_check_lib_save_LIBS
11031 fi
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11033 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11034 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11035   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11036 else
11037
11038     lt_cv_dlopen=dyld
11039     lt_cv_dlopen_libs=
11040     lt_cv_dlopen_self=yes
11041
11042 fi
11043
11044     ;;
11045
11046   tpf*)
11047     # Don't try to run any link tests for TPF.  We know it's impossible
11048     # because TPF is a cross-compiler, and we know how we open DSOs.
11049     lt_cv_dlopen=dlopen
11050     lt_cv_dlopen_libs=
11051     lt_cv_dlopen_self=no
11052     ;;
11053
11054   *)
11055     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11056 if test "x$ac_cv_func_shl_load" = xyes; then :
11057   lt_cv_dlopen=shl_load
11058 else
11059   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11060 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11061 if ${ac_cv_lib_dld_shl_load+:} false; then :
11062   $as_echo_n "(cached) " >&6
11063 else
11064   ac_check_lib_save_LIBS=$LIBS
11065 LIBS="-ldld  $LIBS"
11066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11067 /* end confdefs.h.  */
11068
11069 /* Override any GCC internal prototype to avoid an error.
11070    Use char because int might match the return type of a GCC
11071    builtin and then its argument prototype would still apply.  */
11072 #ifdef __cplusplus
11073 extern "C"
11074 #endif
11075 char shl_load ();
11076 int
11077 main ()
11078 {
11079 return shl_load ();
11080   ;
11081   return 0;
11082 }
11083 _ACEOF
11084 if ac_fn_c_try_link "$LINENO"; then :
11085   ac_cv_lib_dld_shl_load=yes
11086 else
11087   ac_cv_lib_dld_shl_load=no
11088 fi
11089 rm -f core conftest.err conftest.$ac_objext \
11090     conftest$ac_exeext conftest.$ac_ext
11091 LIBS=$ac_check_lib_save_LIBS
11092 fi
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11094 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11095 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11096   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11097 else
11098   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11099 if test "x$ac_cv_func_dlopen" = xyes; then :
11100   lt_cv_dlopen=dlopen
11101 else
11102   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11103 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11104 if ${ac_cv_lib_dl_dlopen+:} false; then :
11105   $as_echo_n "(cached) " >&6
11106 else
11107   ac_check_lib_save_LIBS=$LIBS
11108 LIBS="-ldl  $LIBS"
11109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11110 /* end confdefs.h.  */
11111
11112 /* Override any GCC internal prototype to avoid an error.
11113    Use char because int might match the return type of a GCC
11114    builtin and then its argument prototype would still apply.  */
11115 #ifdef __cplusplus
11116 extern "C"
11117 #endif
11118 char dlopen ();
11119 int
11120 main ()
11121 {
11122 return dlopen ();
11123   ;
11124   return 0;
11125 }
11126 _ACEOF
11127 if ac_fn_c_try_link "$LINENO"; then :
11128   ac_cv_lib_dl_dlopen=yes
11129 else
11130   ac_cv_lib_dl_dlopen=no
11131 fi
11132 rm -f core conftest.err conftest.$ac_objext \
11133     conftest$ac_exeext conftest.$ac_ext
11134 LIBS=$ac_check_lib_save_LIBS
11135 fi
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11137 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11138 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11139   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11140 else
11141   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11142 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11143 if ${ac_cv_lib_svld_dlopen+:} false; then :
11144   $as_echo_n "(cached) " >&6
11145 else
11146   ac_check_lib_save_LIBS=$LIBS
11147 LIBS="-lsvld  $LIBS"
11148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11149 /* end confdefs.h.  */
11150
11151 /* Override any GCC internal prototype to avoid an error.
11152    Use char because int might match the return type of a GCC
11153    builtin and then its argument prototype would still apply.  */
11154 #ifdef __cplusplus
11155 extern "C"
11156 #endif
11157 char dlopen ();
11158 int
11159 main ()
11160 {
11161 return dlopen ();
11162   ;
11163   return 0;
11164 }
11165 _ACEOF
11166 if ac_fn_c_try_link "$LINENO"; then :
11167   ac_cv_lib_svld_dlopen=yes
11168 else
11169   ac_cv_lib_svld_dlopen=no
11170 fi
11171 rm -f core conftest.err conftest.$ac_objext \
11172     conftest$ac_exeext conftest.$ac_ext
11173 LIBS=$ac_check_lib_save_LIBS
11174 fi
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11176 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11177 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11178   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11179 else
11180   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11181 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11182 if ${ac_cv_lib_dld_dld_link+:} false; then :
11183   $as_echo_n "(cached) " >&6
11184 else
11185   ac_check_lib_save_LIBS=$LIBS
11186 LIBS="-ldld  $LIBS"
11187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11188 /* end confdefs.h.  */
11189
11190 /* Override any GCC internal prototype to avoid an error.
11191    Use char because int might match the return type of a GCC
11192    builtin and then its argument prototype would still apply.  */
11193 #ifdef __cplusplus
11194 extern "C"
11195 #endif
11196 char dld_link ();
11197 int
11198 main ()
11199 {
11200 return dld_link ();
11201   ;
11202   return 0;
11203 }
11204 _ACEOF
11205 if ac_fn_c_try_link "$LINENO"; then :
11206   ac_cv_lib_dld_dld_link=yes
11207 else
11208   ac_cv_lib_dld_dld_link=no
11209 fi
11210 rm -f core conftest.err conftest.$ac_objext \
11211     conftest$ac_exeext conftest.$ac_ext
11212 LIBS=$ac_check_lib_save_LIBS
11213 fi
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11215 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11216 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11217   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11218 fi
11219
11220
11221 fi
11222
11223
11224 fi
11225
11226
11227 fi
11228
11229
11230 fi
11231
11232
11233 fi
11234
11235     ;;
11236   esac
11237
11238   if test no = "$lt_cv_dlopen"; then
11239     enable_dlopen=no
11240   else
11241     enable_dlopen=yes
11242   fi
11243
11244   case $lt_cv_dlopen in
11245   dlopen)
11246     save_CPPFLAGS=$CPPFLAGS
11247     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11248
11249     save_LDFLAGS=$LDFLAGS
11250     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11251
11252     save_LIBS=$LIBS
11253     LIBS="$lt_cv_dlopen_libs $LIBS"
11254
11255     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11256 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11257 if ${lt_cv_dlopen_self+:} false; then :
11258   $as_echo_n "(cached) " >&6
11259 else
11260           if test yes = "$cross_compiling"; then :
11261   lt_cv_dlopen_self=cross
11262 else
11263   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11264   lt_status=$lt_dlunknown
11265   cat > conftest.$ac_ext <<_LT_EOF
11266 #line $LINENO "configure"
11267 #include "confdefs.h"
11268
11269 #if HAVE_DLFCN_H
11270 #include <dlfcn.h>
11271 #endif
11272
11273 #include <stdio.h>
11274
11275 #ifdef RTLD_GLOBAL
11276 #  define LT_DLGLOBAL           RTLD_GLOBAL
11277 #else
11278 #  ifdef DL_GLOBAL
11279 #    define LT_DLGLOBAL         DL_GLOBAL
11280 #  else
11281 #    define LT_DLGLOBAL         0
11282 #  endif
11283 #endif
11284
11285 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11286    find out it does not work in some platform. */
11287 #ifndef LT_DLLAZY_OR_NOW
11288 #  ifdef RTLD_LAZY
11289 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11290 #  else
11291 #    ifdef DL_LAZY
11292 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11293 #    else
11294 #      ifdef RTLD_NOW
11295 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11296 #      else
11297 #        ifdef DL_NOW
11298 #          define LT_DLLAZY_OR_NOW      DL_NOW
11299 #        else
11300 #          define LT_DLLAZY_OR_NOW      0
11301 #        endif
11302 #      endif
11303 #    endif
11304 #  endif
11305 #endif
11306
11307 /* When -fvisibility=hidden is used, assume the code has been annotated
11308    correspondingly for the symbols needed.  */
11309 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11310 int fnord () __attribute__((visibility("default")));
11311 #endif
11312
11313 int fnord () { return 42; }
11314 int main ()
11315 {
11316   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11317   int status = $lt_dlunknown;
11318
11319   if (self)
11320     {
11321       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11322       else
11323         {
11324           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11325           else puts (dlerror ());
11326         }
11327       /* dlclose (self); */
11328     }
11329   else
11330     puts (dlerror ());
11331
11332   return status;
11333 }
11334 _LT_EOF
11335   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11336   (eval $ac_link) 2>&5
11337   ac_status=$?
11338   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11339   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11340     (./conftest; exit; ) >&5 2>/dev/null
11341     lt_status=$?
11342     case x$lt_status in
11343       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11344       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11345       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11346     esac
11347   else :
11348     # compilation failed
11349     lt_cv_dlopen_self=no
11350   fi
11351 fi
11352 rm -fr conftest*
11353
11354
11355 fi
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11357 $as_echo "$lt_cv_dlopen_self" >&6; }
11358
11359     if test yes = "$lt_cv_dlopen_self"; then
11360       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11361       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11362 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11363 if ${lt_cv_dlopen_self_static+:} false; then :
11364   $as_echo_n "(cached) " >&6
11365 else
11366           if test yes = "$cross_compiling"; then :
11367   lt_cv_dlopen_self_static=cross
11368 else
11369   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11370   lt_status=$lt_dlunknown
11371   cat > conftest.$ac_ext <<_LT_EOF
11372 #line $LINENO "configure"
11373 #include "confdefs.h"
11374
11375 #if HAVE_DLFCN_H
11376 #include <dlfcn.h>
11377 #endif
11378
11379 #include <stdio.h>
11380
11381 #ifdef RTLD_GLOBAL
11382 #  define LT_DLGLOBAL           RTLD_GLOBAL
11383 #else
11384 #  ifdef DL_GLOBAL
11385 #    define LT_DLGLOBAL         DL_GLOBAL
11386 #  else
11387 #    define LT_DLGLOBAL         0
11388 #  endif
11389 #endif
11390
11391 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11392    find out it does not work in some platform. */
11393 #ifndef LT_DLLAZY_OR_NOW
11394 #  ifdef RTLD_LAZY
11395 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11396 #  else
11397 #    ifdef DL_LAZY
11398 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11399 #    else
11400 #      ifdef RTLD_NOW
11401 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11402 #      else
11403 #        ifdef DL_NOW
11404 #          define LT_DLLAZY_OR_NOW      DL_NOW
11405 #        else
11406 #          define LT_DLLAZY_OR_NOW      0
11407 #        endif
11408 #      endif
11409 #    endif
11410 #  endif
11411 #endif
11412
11413 /* When -fvisibility=hidden is used, assume the code has been annotated
11414    correspondingly for the symbols needed.  */
11415 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11416 int fnord () __attribute__((visibility("default")));
11417 #endif
11418
11419 int fnord () { return 42; }
11420 int main ()
11421 {
11422   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11423   int status = $lt_dlunknown;
11424
11425   if (self)
11426     {
11427       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11428       else
11429         {
11430           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11431           else puts (dlerror ());
11432         }
11433       /* dlclose (self); */
11434     }
11435   else
11436     puts (dlerror ());
11437
11438   return status;
11439 }
11440 _LT_EOF
11441   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11442   (eval $ac_link) 2>&5
11443   ac_status=$?
11444   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11445   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11446     (./conftest; exit; ) >&5 2>/dev/null
11447     lt_status=$?
11448     case x$lt_status in
11449       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11450       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11451       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11452     esac
11453   else :
11454     # compilation failed
11455     lt_cv_dlopen_self_static=no
11456   fi
11457 fi
11458 rm -fr conftest*
11459
11460
11461 fi
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11463 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11464     fi
11465
11466     CPPFLAGS=$save_CPPFLAGS
11467     LDFLAGS=$save_LDFLAGS
11468     LIBS=$save_LIBS
11469     ;;
11470   esac
11471
11472   case $lt_cv_dlopen_self in
11473   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11474   *) enable_dlopen_self=unknown ;;
11475   esac
11476
11477   case $lt_cv_dlopen_self_static in
11478   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11479   *) enable_dlopen_self_static=unknown ;;
11480   esac
11481 fi
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499 striplib=
11500 old_striplib=
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11502 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11503 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11504   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11505   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11507 $as_echo "yes" >&6; }
11508 else
11509 # FIXME - insert some real tests, host_os isn't really good enough
11510   case $host_os in
11511   darwin*)
11512     if test -n "$STRIP"; then
11513       striplib="$STRIP -x"
11514       old_striplib="$STRIP -S"
11515       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11516 $as_echo "yes" >&6; }
11517     else
11518       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11519 $as_echo "no" >&6; }
11520     fi
11521     ;;
11522   *)
11523     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11524 $as_echo "no" >&6; }
11525     ;;
11526   esac
11527 fi
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540   # Report what library types will actually be built
11541   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11542 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11544 $as_echo "$can_build_shared" >&6; }
11545
11546   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11547 $as_echo_n "checking whether to build shared libraries... " >&6; }
11548   test no = "$can_build_shared" && enable_shared=no
11549
11550   # On AIX, shared libraries and static libraries use the same namespace, and
11551   # are all built from PIC.
11552   case $host_os in
11553   aix3*)
11554     test yes = "$enable_shared" && enable_static=no
11555     if test -n "$RANLIB"; then
11556       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11557       postinstall_cmds='$RANLIB $lib'
11558     fi
11559     ;;
11560
11561   aix[4-9]*)
11562     if test ia64 != "$host_cpu"; then
11563       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11564       yes,aix,yes) ;;                   # shared object as lib.so file only
11565       yes,svr4,*) ;;                    # shared object as lib.so archive member only
11566       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
11567       esac
11568     fi
11569     ;;
11570   esac
11571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11572 $as_echo "$enable_shared" >&6; }
11573
11574   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11575 $as_echo_n "checking whether to build static libraries... " >&6; }
11576   # Make sure either enable_shared or enable_static is yes.
11577   test yes = "$enable_shared" || enable_static=yes
11578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11579 $as_echo "$enable_static" >&6; }
11580
11581
11582
11583
11584 fi
11585 ac_ext=c
11586 ac_cpp='$CPP $CPPFLAGS'
11587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11590
11591 CC=$lt_save_CC
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607         ac_config_commands="$ac_config_commands libtool"
11608
11609
11610
11611
11612 # Only expand once:
11613
11614
11615
11616
11617
11618
11619
11620 ac_ext=c
11621 ac_cpp='$CPP $CPPFLAGS'
11622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11625 if test -n "$ac_tool_prefix"; then
11626   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11627 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11629 $as_echo_n "checking for $ac_word... " >&6; }
11630 if ${ac_cv_prog_CC+:} false; then :
11631   $as_echo_n "(cached) " >&6
11632 else
11633   if test -n "$CC"; then
11634   ac_cv_prog_CC="$CC" # Let the user override the test.
11635 else
11636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11637 for as_dir in $PATH
11638 do
11639   IFS=$as_save_IFS
11640   test -z "$as_dir" && as_dir=.
11641     for ac_exec_ext in '' $ac_executable_extensions; do
11642   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11643     ac_cv_prog_CC="${ac_tool_prefix}gcc"
11644     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11645     break 2
11646   fi
11647 done
11648   done
11649 IFS=$as_save_IFS
11650
11651 fi
11652 fi
11653 CC=$ac_cv_prog_CC
11654 if test -n "$CC"; then
11655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11656 $as_echo "$CC" >&6; }
11657 else
11658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11659 $as_echo "no" >&6; }
11660 fi
11661
11662
11663 fi
11664 if test -z "$ac_cv_prog_CC"; then
11665   ac_ct_CC=$CC
11666   # Extract the first word of "gcc", so it can be a program name with args.
11667 set dummy gcc; ac_word=$2
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11669 $as_echo_n "checking for $ac_word... " >&6; }
11670 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11671   $as_echo_n "(cached) " >&6
11672 else
11673   if test -n "$ac_ct_CC"; then
11674   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11675 else
11676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11677 for as_dir in $PATH
11678 do
11679   IFS=$as_save_IFS
11680   test -z "$as_dir" && as_dir=.
11681     for ac_exec_ext in '' $ac_executable_extensions; do
11682   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11683     ac_cv_prog_ac_ct_CC="gcc"
11684     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11685     break 2
11686   fi
11687 done
11688   done
11689 IFS=$as_save_IFS
11690
11691 fi
11692 fi
11693 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11694 if test -n "$ac_ct_CC"; then
11695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11696 $as_echo "$ac_ct_CC" >&6; }
11697 else
11698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11699 $as_echo "no" >&6; }
11700 fi
11701
11702   if test "x$ac_ct_CC" = x; then
11703     CC=""
11704   else
11705     case $cross_compiling:$ac_tool_warned in
11706 yes:)
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11708 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11709 ac_tool_warned=yes ;;
11710 esac
11711     CC=$ac_ct_CC
11712   fi
11713 else
11714   CC="$ac_cv_prog_CC"
11715 fi
11716
11717 if test -z "$CC"; then
11718           if test -n "$ac_tool_prefix"; then
11719     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11720 set dummy ${ac_tool_prefix}cc; ac_word=$2
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11722 $as_echo_n "checking for $ac_word... " >&6; }
11723 if ${ac_cv_prog_CC+:} false; then :
11724   $as_echo_n "(cached) " >&6
11725 else
11726   if test -n "$CC"; then
11727   ac_cv_prog_CC="$CC" # Let the user override the test.
11728 else
11729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11730 for as_dir in $PATH
11731 do
11732   IFS=$as_save_IFS
11733   test -z "$as_dir" && as_dir=.
11734     for ac_exec_ext in '' $ac_executable_extensions; do
11735   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11736     ac_cv_prog_CC="${ac_tool_prefix}cc"
11737     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11738     break 2
11739   fi
11740 done
11741   done
11742 IFS=$as_save_IFS
11743
11744 fi
11745 fi
11746 CC=$ac_cv_prog_CC
11747 if test -n "$CC"; then
11748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11749 $as_echo "$CC" >&6; }
11750 else
11751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11752 $as_echo "no" >&6; }
11753 fi
11754
11755
11756   fi
11757 fi
11758 if test -z "$CC"; then
11759   # Extract the first word of "cc", so it can be a program name with args.
11760 set dummy cc; ac_word=$2
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11762 $as_echo_n "checking for $ac_word... " >&6; }
11763 if ${ac_cv_prog_CC+:} false; then :
11764   $as_echo_n "(cached) " >&6
11765 else
11766   if test -n "$CC"; then
11767   ac_cv_prog_CC="$CC" # Let the user override the test.
11768 else
11769   ac_prog_rejected=no
11770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11771 for as_dir in $PATH
11772 do
11773   IFS=$as_save_IFS
11774   test -z "$as_dir" && as_dir=.
11775     for ac_exec_ext in '' $ac_executable_extensions; do
11776   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11777     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11778        ac_prog_rejected=yes
11779        continue
11780      fi
11781     ac_cv_prog_CC="cc"
11782     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11783     break 2
11784   fi
11785 done
11786   done
11787 IFS=$as_save_IFS
11788
11789 if test $ac_prog_rejected = yes; then
11790   # We found a bogon in the path, so make sure we never use it.
11791   set dummy $ac_cv_prog_CC
11792   shift
11793   if test $# != 0; then
11794     # We chose a different compiler from the bogus one.
11795     # However, it has the same basename, so the bogon will be chosen
11796     # first if we set CC to just the basename; use the full file name.
11797     shift
11798     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11799   fi
11800 fi
11801 fi
11802 fi
11803 CC=$ac_cv_prog_CC
11804 if test -n "$CC"; then
11805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11806 $as_echo "$CC" >&6; }
11807 else
11808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11809 $as_echo "no" >&6; }
11810 fi
11811
11812
11813 fi
11814 if test -z "$CC"; then
11815   if test -n "$ac_tool_prefix"; then
11816   for ac_prog in cl.exe
11817   do
11818     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11819 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11821 $as_echo_n "checking for $ac_word... " >&6; }
11822 if ${ac_cv_prog_CC+:} false; then :
11823   $as_echo_n "(cached) " >&6
11824 else
11825   if test -n "$CC"; then
11826   ac_cv_prog_CC="$CC" # Let the user override the test.
11827 else
11828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11829 for as_dir in $PATH
11830 do
11831   IFS=$as_save_IFS
11832   test -z "$as_dir" && as_dir=.
11833     for ac_exec_ext in '' $ac_executable_extensions; do
11834   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11835     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11836     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11837     break 2
11838   fi
11839 done
11840   done
11841 IFS=$as_save_IFS
11842
11843 fi
11844 fi
11845 CC=$ac_cv_prog_CC
11846 if test -n "$CC"; then
11847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11848 $as_echo "$CC" >&6; }
11849 else
11850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11851 $as_echo "no" >&6; }
11852 fi
11853
11854
11855     test -n "$CC" && break
11856   done
11857 fi
11858 if test -z "$CC"; then
11859   ac_ct_CC=$CC
11860   for ac_prog in cl.exe
11861 do
11862   # Extract the first word of "$ac_prog", so it can be a program name with args.
11863 set dummy $ac_prog; ac_word=$2
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11865 $as_echo_n "checking for $ac_word... " >&6; }
11866 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11867   $as_echo_n "(cached) " >&6
11868 else
11869   if test -n "$ac_ct_CC"; then
11870   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11871 else
11872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11873 for as_dir in $PATH
11874 do
11875   IFS=$as_save_IFS
11876   test -z "$as_dir" && as_dir=.
11877     for ac_exec_ext in '' $ac_executable_extensions; do
11878   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11879     ac_cv_prog_ac_ct_CC="$ac_prog"
11880     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11881     break 2
11882   fi
11883 done
11884   done
11885 IFS=$as_save_IFS
11886
11887 fi
11888 fi
11889 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11890 if test -n "$ac_ct_CC"; then
11891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11892 $as_echo "$ac_ct_CC" >&6; }
11893 else
11894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11895 $as_echo "no" >&6; }
11896 fi
11897
11898
11899   test -n "$ac_ct_CC" && break
11900 done
11901
11902   if test "x$ac_ct_CC" = x; then
11903     CC=""
11904   else
11905     case $cross_compiling:$ac_tool_warned in
11906 yes:)
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11908 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11909 ac_tool_warned=yes ;;
11910 esac
11911     CC=$ac_ct_CC
11912   fi
11913 fi
11914
11915 fi
11916
11917
11918 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11919 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11920 as_fn_error $? "no acceptable C compiler found in \$PATH
11921 See \`config.log' for more details" "$LINENO" 5; }
11922
11923 # Provide some information about the compiler.
11924 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11925 set X $ac_compile
11926 ac_compiler=$2
11927 for ac_option in --version -v -V -qversion; do
11928   { { ac_try="$ac_compiler $ac_option >&5"
11929 case "(($ac_try" in
11930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11931   *) ac_try_echo=$ac_try;;
11932 esac
11933 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11934 $as_echo "$ac_try_echo"; } >&5
11935   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11936   ac_status=$?
11937   if test -s conftest.err; then
11938     sed '10a\
11939 ... rest of stderr output deleted ...
11940          10q' conftest.err >conftest.er1
11941     cat conftest.er1 >&5
11942   fi
11943   rm -f conftest.er1 conftest.err
11944   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11945   test $ac_status = 0; }
11946 done
11947
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11949 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11950 if ${ac_cv_c_compiler_gnu+:} false; then :
11951   $as_echo_n "(cached) " >&6
11952 else
11953   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11954 /* end confdefs.h.  */
11955
11956 int
11957 main ()
11958 {
11959 #ifndef __GNUC__
11960        choke me
11961 #endif
11962
11963   ;
11964   return 0;
11965 }
11966 _ACEOF
11967 if ac_fn_c_try_compile "$LINENO"; then :
11968   ac_compiler_gnu=yes
11969 else
11970   ac_compiler_gnu=no
11971 fi
11972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11973 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11974
11975 fi
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11977 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11978 if test $ac_compiler_gnu = yes; then
11979   GCC=yes
11980 else
11981   GCC=
11982 fi
11983 ac_test_CFLAGS=${CFLAGS+set}
11984 ac_save_CFLAGS=$CFLAGS
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11986 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11987 if ${ac_cv_prog_cc_g+:} false; then :
11988   $as_echo_n "(cached) " >&6
11989 else
11990   ac_save_c_werror_flag=$ac_c_werror_flag
11991    ac_c_werror_flag=yes
11992    ac_cv_prog_cc_g=no
11993    CFLAGS="-g"
11994    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11995 /* end confdefs.h.  */
11996
11997 int
11998 main ()
11999 {
12000
12001   ;
12002   return 0;
12003 }
12004 _ACEOF
12005 if ac_fn_c_try_compile "$LINENO"; then :
12006   ac_cv_prog_cc_g=yes
12007 else
12008   CFLAGS=""
12009       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12010 /* end confdefs.h.  */
12011
12012 int
12013 main ()
12014 {
12015
12016   ;
12017   return 0;
12018 }
12019 _ACEOF
12020 if ac_fn_c_try_compile "$LINENO"; then :
12021
12022 else
12023   ac_c_werror_flag=$ac_save_c_werror_flag
12024          CFLAGS="-g"
12025          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12026 /* end confdefs.h.  */
12027
12028 int
12029 main ()
12030 {
12031
12032   ;
12033   return 0;
12034 }
12035 _ACEOF
12036 if ac_fn_c_try_compile "$LINENO"; then :
12037   ac_cv_prog_cc_g=yes
12038 fi
12039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12040 fi
12041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12042 fi
12043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12044    ac_c_werror_flag=$ac_save_c_werror_flag
12045 fi
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12047 $as_echo "$ac_cv_prog_cc_g" >&6; }
12048 if test "$ac_test_CFLAGS" = set; then
12049   CFLAGS=$ac_save_CFLAGS
12050 elif test $ac_cv_prog_cc_g = yes; then
12051   if test "$GCC" = yes; then
12052     CFLAGS="-g -O2"
12053   else
12054     CFLAGS="-g"
12055   fi
12056 else
12057   if test "$GCC" = yes; then
12058     CFLAGS="-O2"
12059   else
12060     CFLAGS=
12061   fi
12062 fi
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12064 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12065 if ${ac_cv_prog_cc_c89+:} false; then :
12066   $as_echo_n "(cached) " >&6
12067 else
12068   ac_cv_prog_cc_c89=no
12069 ac_save_CC=$CC
12070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12071 /* end confdefs.h.  */
12072 #include <stdarg.h>
12073 #include <stdio.h>
12074 struct stat;
12075 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12076 struct buf { int x; };
12077 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12078 static char *e (p, i)
12079      char **p;
12080      int i;
12081 {
12082   return p[i];
12083 }
12084 static char *f (char * (*g) (char **, int), char **p, ...)
12085 {
12086   char *s;
12087   va_list v;
12088   va_start (v,p);
12089   s = g (p, va_arg (v,int));
12090   va_end (v);
12091   return s;
12092 }
12093
12094 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12095    function prototypes and stuff, but not '\xHH' hex character constants.
12096    These don't provoke an error unfortunately, instead are silently treated
12097    as 'x'.  The following induces an error, until -std is added to get
12098    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12099    array size at least.  It's necessary to write '\x00'==0 to get something
12100    that's true only with -std.  */
12101 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12102
12103 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12104    inside strings and character constants.  */
12105 #define FOO(x) 'x'
12106 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12107
12108 int test (int i, double x);
12109 struct s1 {int (*f) (int a);};
12110 struct s2 {int (*f) (double a);};
12111 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12112 int argc;
12113 char **argv;
12114 int
12115 main ()
12116 {
12117 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12118   ;
12119   return 0;
12120 }
12121 _ACEOF
12122 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12123         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12124 do
12125   CC="$ac_save_CC $ac_arg"
12126   if ac_fn_c_try_compile "$LINENO"; then :
12127   ac_cv_prog_cc_c89=$ac_arg
12128 fi
12129 rm -f core conftest.err conftest.$ac_objext
12130   test "x$ac_cv_prog_cc_c89" != "xno" && break
12131 done
12132 rm -f conftest.$ac_ext
12133 CC=$ac_save_CC
12134
12135 fi
12136 # AC_CACHE_VAL
12137 case "x$ac_cv_prog_cc_c89" in
12138   x)
12139     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12140 $as_echo "none needed" >&6; } ;;
12141   xno)
12142     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12143 $as_echo "unsupported" >&6; } ;;
12144   *)
12145     CC="$CC $ac_cv_prog_cc_c89"
12146     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12147 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12148 esac
12149 if test "x$ac_cv_prog_cc_c89" != xno; then :
12150
12151 fi
12152
12153 ac_ext=c
12154 ac_cpp='$CPP $CPPFLAGS'
12155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12158
12159 ac_ext=cpp
12160 ac_cpp='$CXXCPP $CPPFLAGS'
12161 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12162 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12163 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12164 if test -z "$CXX"; then
12165   if test -n "$CCC"; then
12166     CXX=$CCC
12167   else
12168     if test -n "$ac_tool_prefix"; then
12169   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12170   do
12171     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12172 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12174 $as_echo_n "checking for $ac_word... " >&6; }
12175 if ${ac_cv_prog_CXX+:} false; then :
12176   $as_echo_n "(cached) " >&6
12177 else
12178   if test -n "$CXX"; then
12179   ac_cv_prog_CXX="$CXX" # Let the user override the test.
12180 else
12181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12182 for as_dir in $PATH
12183 do
12184   IFS=$as_save_IFS
12185   test -z "$as_dir" && as_dir=.
12186     for ac_exec_ext in '' $ac_executable_extensions; do
12187   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12188     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12189     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12190     break 2
12191   fi
12192 done
12193   done
12194 IFS=$as_save_IFS
12195
12196 fi
12197 fi
12198 CXX=$ac_cv_prog_CXX
12199 if test -n "$CXX"; then
12200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12201 $as_echo "$CXX" >&6; }
12202 else
12203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12204 $as_echo "no" >&6; }
12205 fi
12206
12207
12208     test -n "$CXX" && break
12209   done
12210 fi
12211 if test -z "$CXX"; then
12212   ac_ct_CXX=$CXX
12213   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12214 do
12215   # Extract the first word of "$ac_prog", so it can be a program name with args.
12216 set dummy $ac_prog; ac_word=$2
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12218 $as_echo_n "checking for $ac_word... " >&6; }
12219 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
12220   $as_echo_n "(cached) " >&6
12221 else
12222   if test -n "$ac_ct_CXX"; then
12223   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12224 else
12225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12226 for as_dir in $PATH
12227 do
12228   IFS=$as_save_IFS
12229   test -z "$as_dir" && as_dir=.
12230     for ac_exec_ext in '' $ac_executable_extensions; do
12231   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12232     ac_cv_prog_ac_ct_CXX="$ac_prog"
12233     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12234     break 2
12235   fi
12236 done
12237   done
12238 IFS=$as_save_IFS
12239
12240 fi
12241 fi
12242 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12243 if test -n "$ac_ct_CXX"; then
12244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
12245 $as_echo "$ac_ct_CXX" >&6; }
12246 else
12247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12248 $as_echo "no" >&6; }
12249 fi
12250
12251
12252   test -n "$ac_ct_CXX" && break
12253 done
12254
12255   if test "x$ac_ct_CXX" = x; then
12256     CXX="g++"
12257   else
12258     case $cross_compiling:$ac_tool_warned in
12259 yes:)
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12261 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12262 ac_tool_warned=yes ;;
12263 esac
12264     CXX=$ac_ct_CXX
12265   fi
12266 fi
12267
12268   fi
12269 fi
12270 # Provide some information about the compiler.
12271 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12272 set X $ac_compile
12273 ac_compiler=$2
12274 for ac_option in --version -v -V -qversion; do
12275   { { ac_try="$ac_compiler $ac_option >&5"
12276 case "(($ac_try" in
12277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12278   *) ac_try_echo=$ac_try;;
12279 esac
12280 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12281 $as_echo "$ac_try_echo"; } >&5
12282   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12283   ac_status=$?
12284   if test -s conftest.err; then
12285     sed '10a\
12286 ... rest of stderr output deleted ...
12287          10q' conftest.err >conftest.er1
12288     cat conftest.er1 >&5
12289   fi
12290   rm -f conftest.er1 conftest.err
12291   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12292   test $ac_status = 0; }
12293 done
12294
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
12296 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12297 if ${ac_cv_cxx_compiler_gnu+:} false; then :
12298   $as_echo_n "(cached) " >&6
12299 else
12300   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12301 /* end confdefs.h.  */
12302
12303 int
12304 main ()
12305 {
12306 #ifndef __GNUC__
12307        choke me
12308 #endif
12309
12310   ;
12311   return 0;
12312 }
12313 _ACEOF
12314 if ac_fn_cxx_try_compile "$LINENO"; then :
12315   ac_compiler_gnu=yes
12316 else
12317   ac_compiler_gnu=no
12318 fi
12319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12320 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12321
12322 fi
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12324 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12325 if test $ac_compiler_gnu = yes; then
12326   GXX=yes
12327 else
12328   GXX=
12329 fi
12330 ac_test_CXXFLAGS=${CXXFLAGS+set}
12331 ac_save_CXXFLAGS=$CXXFLAGS
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12333 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
12334 if ${ac_cv_prog_cxx_g+:} false; then :
12335   $as_echo_n "(cached) " >&6
12336 else
12337   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12338    ac_cxx_werror_flag=yes
12339    ac_cv_prog_cxx_g=no
12340    CXXFLAGS="-g"
12341    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12342 /* end confdefs.h.  */
12343
12344 int
12345 main ()
12346 {
12347
12348   ;
12349   return 0;
12350 }
12351 _ACEOF
12352 if ac_fn_cxx_try_compile "$LINENO"; then :
12353   ac_cv_prog_cxx_g=yes
12354 else
12355   CXXFLAGS=""
12356       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12357 /* end confdefs.h.  */
12358
12359 int
12360 main ()
12361 {
12362
12363   ;
12364   return 0;
12365 }
12366 _ACEOF
12367 if ac_fn_cxx_try_compile "$LINENO"; then :
12368
12369 else
12370   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12371          CXXFLAGS="-g"
12372          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12373 /* end confdefs.h.  */
12374
12375 int
12376 main ()
12377 {
12378
12379   ;
12380   return 0;
12381 }
12382 _ACEOF
12383 if ac_fn_cxx_try_compile "$LINENO"; then :
12384   ac_cv_prog_cxx_g=yes
12385 fi
12386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12387 fi
12388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12389 fi
12390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12391    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12392 fi
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12394 $as_echo "$ac_cv_prog_cxx_g" >&6; }
12395 if test "$ac_test_CXXFLAGS" = set; then
12396   CXXFLAGS=$ac_save_CXXFLAGS
12397 elif test $ac_cv_prog_cxx_g = yes; then
12398   if test "$GXX" = yes; then
12399     CXXFLAGS="-g -O2"
12400   else
12401     CXXFLAGS="-g"
12402   fi
12403 else
12404   if test "$GXX" = yes; then
12405     CXXFLAGS="-O2"
12406   else
12407     CXXFLAGS=
12408   fi
12409 fi
12410 ac_ext=c
12411 ac_cpp='$CPP $CPPFLAGS'
12412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12415
12416
12417
12418 func_stripname_cnf ()
12419 {
12420   case $2 in
12421   .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
12422   *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
12423   esac
12424 } # func_stripname_cnf
12425
12426       if test -n "$CXX" && ( test no != "$CXX" &&
12427     ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
12428     (test g++ != "$CXX"))); then
12429   ac_ext=cpp
12430 ac_cpp='$CXXCPP $CPPFLAGS'
12431 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12432 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12433 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12435 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12436 if test -z "$CXXCPP"; then
12437   if ${ac_cv_prog_CXXCPP+:} false; then :
12438   $as_echo_n "(cached) " >&6
12439 else
12440       # Double quotes because CXXCPP needs to be expanded
12441     for CXXCPP in "$CXX -E" "/lib/cpp"
12442     do
12443       ac_preproc_ok=false
12444 for ac_cxx_preproc_warn_flag in '' yes
12445 do
12446   # Use a header file that comes with gcc, so configuring glibc
12447   # with a fresh cross-compiler works.
12448   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12449   # <limits.h> exists even on freestanding compilers.
12450   # On the NeXT, cc -E runs the code through the compiler's parser,
12451   # not just through cpp. "Syntax error" is here to catch this case.
12452   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12453 /* end confdefs.h.  */
12454 #ifdef __STDC__
12455 # include <limits.h>
12456 #else
12457 # include <assert.h>
12458 #endif
12459                      Syntax error
12460 _ACEOF
12461 if ac_fn_cxx_try_cpp "$LINENO"; then :
12462
12463 else
12464   # Broken: fails on valid input.
12465 continue
12466 fi
12467 rm -f conftest.err conftest.i conftest.$ac_ext
12468
12469   # OK, works on sane cases.  Now check whether nonexistent headers
12470   # can be detected and how.
12471   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12472 /* end confdefs.h.  */
12473 #include <ac_nonexistent.h>
12474 _ACEOF
12475 if ac_fn_cxx_try_cpp "$LINENO"; then :
12476   # Broken: success on invalid input.
12477 continue
12478 else
12479   # Passes both tests.
12480 ac_preproc_ok=:
12481 break
12482 fi
12483 rm -f conftest.err conftest.i conftest.$ac_ext
12484
12485 done
12486 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12487 rm -f conftest.i conftest.err conftest.$ac_ext
12488 if $ac_preproc_ok; then :
12489   break
12490 fi
12491
12492     done
12493     ac_cv_prog_CXXCPP=$CXXCPP
12494
12495 fi
12496   CXXCPP=$ac_cv_prog_CXXCPP
12497 else
12498   ac_cv_prog_CXXCPP=$CXXCPP
12499 fi
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12501 $as_echo "$CXXCPP" >&6; }
12502 ac_preproc_ok=false
12503 for ac_cxx_preproc_warn_flag in '' yes
12504 do
12505   # Use a header file that comes with gcc, so configuring glibc
12506   # with a fresh cross-compiler works.
12507   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12508   # <limits.h> exists even on freestanding compilers.
12509   # On the NeXT, cc -E runs the code through the compiler's parser,
12510   # not just through cpp. "Syntax error" is here to catch this case.
12511   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12512 /* end confdefs.h.  */
12513 #ifdef __STDC__
12514 # include <limits.h>
12515 #else
12516 # include <assert.h>
12517 #endif
12518                      Syntax error
12519 _ACEOF
12520 if ac_fn_cxx_try_cpp "$LINENO"; then :
12521
12522 else
12523   # Broken: fails on valid input.
12524 continue
12525 fi
12526 rm -f conftest.err conftest.i conftest.$ac_ext
12527
12528   # OK, works on sane cases.  Now check whether nonexistent headers
12529   # can be detected and how.
12530   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12531 /* end confdefs.h.  */
12532 #include <ac_nonexistent.h>
12533 _ACEOF
12534 if ac_fn_cxx_try_cpp "$LINENO"; then :
12535   # Broken: success on invalid input.
12536 continue
12537 else
12538   # Passes both tests.
12539 ac_preproc_ok=:
12540 break
12541 fi
12542 rm -f conftest.err conftest.i conftest.$ac_ext
12543
12544 done
12545 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12546 rm -f conftest.i conftest.err conftest.$ac_ext
12547 if $ac_preproc_ok; then :
12548
12549 else
12550   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12551 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12552 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12553 See \`config.log' for more details" "$LINENO" 5; }
12554 fi
12555
12556 ac_ext=c
12557 ac_cpp='$CPP $CPPFLAGS'
12558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12561
12562 else
12563   _lt_caught_CXX_error=yes
12564 fi
12565
12566 ac_ext=cpp
12567 ac_cpp='$CXXCPP $CPPFLAGS'
12568 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12569 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12570 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12571
12572 archive_cmds_need_lc_CXX=no
12573 allow_undefined_flag_CXX=
12574 always_export_symbols_CXX=no
12575 archive_expsym_cmds_CXX=
12576 compiler_needs_object_CXX=no
12577 export_dynamic_flag_spec_CXX=
12578 hardcode_direct_CXX=no
12579 hardcode_direct_absolute_CXX=no
12580 hardcode_libdir_flag_spec_CXX=
12581 hardcode_libdir_separator_CXX=
12582 hardcode_minus_L_CXX=no
12583 hardcode_shlibpath_var_CXX=unsupported
12584 hardcode_automatic_CXX=no
12585 inherit_rpath_CXX=no
12586 module_cmds_CXX=
12587 module_expsym_cmds_CXX=
12588 link_all_deplibs_CXX=unknown
12589 old_archive_cmds_CXX=$old_archive_cmds
12590 reload_flag_CXX=$reload_flag
12591 reload_cmds_CXX=$reload_cmds
12592 no_undefined_flag_CXX=
12593 whole_archive_flag_spec_CXX=
12594 enable_shared_with_static_runtimes_CXX=no
12595
12596 # Source file extension for C++ test sources.
12597 ac_ext=cpp
12598
12599 # Object file extension for compiled C++ test sources.
12600 objext=o
12601 objext_CXX=$objext
12602
12603 # No sense in running all these tests if we already determined that
12604 # the CXX compiler isn't working.  Some variables (like enable_shared)
12605 # are currently assumed to apply to all compilers on this platform,
12606 # and will be corrupted by setting them based on a non-working compiler.
12607 if test yes != "$_lt_caught_CXX_error"; then
12608   # Code to be used in simple compile tests
12609   lt_simple_compile_test_code="int some_variable = 0;"
12610
12611   # Code to be used in simple link tests
12612   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12613
12614   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12615
12616
12617
12618
12619
12620
12621 # If no C compiler was specified, use CC.
12622 LTCC=${LTCC-"$CC"}
12623
12624 # If no C compiler flags were specified, use CFLAGS.
12625 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12626
12627 # Allow CC to be a program name with arguments.
12628 compiler=$CC
12629
12630
12631   # save warnings/boilerplate of simple test code
12632   ac_outfile=conftest.$ac_objext
12633 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12634 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12635 _lt_compiler_boilerplate=`cat conftest.err`
12636 $RM conftest*
12637
12638   ac_outfile=conftest.$ac_objext
12639 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12640 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12641 _lt_linker_boilerplate=`cat conftest.err`
12642 $RM -r conftest*
12643
12644
12645   # Allow CC to be a program name with arguments.
12646   lt_save_CC=$CC
12647   lt_save_CFLAGS=$CFLAGS
12648   lt_save_LD=$LD
12649   lt_save_GCC=$GCC
12650   GCC=$GXX
12651   lt_save_with_gnu_ld=$with_gnu_ld
12652   lt_save_path_LD=$lt_cv_path_LD
12653   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12654     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12655   else
12656     $as_unset lt_cv_prog_gnu_ld
12657   fi
12658   if test -n "${lt_cv_path_LDCXX+set}"; then
12659     lt_cv_path_LD=$lt_cv_path_LDCXX
12660   else
12661     $as_unset lt_cv_path_LD
12662   fi
12663   test -z "${LDCXX+set}" || LD=$LDCXX
12664   CC=${CXX-"c++"}
12665   CFLAGS=$CXXFLAGS
12666   compiler=$CC
12667   compiler_CXX=$CC
12668   func_cc_basename $compiler
12669 cc_basename=$func_cc_basename_result
12670
12671
12672   if test -n "$compiler"; then
12673     # We don't want -fno-exception when compiling C++ code, so set the
12674     # no_builtin_flag separately
12675     if test yes = "$GXX"; then
12676       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12677     else
12678       lt_prog_compiler_no_builtin_flag_CXX=
12679     fi
12680
12681     if test yes = "$GXX"; then
12682       # Set up default GNU C++ configuration
12683
12684
12685
12686 # Check whether --with-gnu-ld was given.
12687 if test "${with_gnu_ld+set}" = set; then :
12688   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
12689 else
12690   with_gnu_ld=no
12691 fi
12692
12693 ac_prog=ld
12694 if test yes = "$GCC"; then
12695   # Check if gcc -print-prog-name=ld gives a path.
12696   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12697 $as_echo_n "checking for ld used by $CC... " >&6; }
12698   case $host in
12699   *-*-mingw*)
12700     # gcc leaves a trailing carriage return, which upsets mingw
12701     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12702   *)
12703     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12704   esac
12705   case $ac_prog in
12706     # Accept absolute paths.
12707     [\\/]* | ?:[\\/]*)
12708       re_direlt='/[^/][^/]*/\.\./'
12709       # Canonicalize the pathname of ld
12710       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12711       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12712         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12713       done
12714       test -z "$LD" && LD=$ac_prog
12715       ;;
12716   "")
12717     # If it fails, then pretend we aren't using GCC.
12718     ac_prog=ld
12719     ;;
12720   *)
12721     # If it is relative, then search for the first ld in PATH.
12722     with_gnu_ld=unknown
12723     ;;
12724   esac
12725 elif test yes = "$with_gnu_ld"; then
12726   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12727 $as_echo_n "checking for GNU ld... " >&6; }
12728 else
12729   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12730 $as_echo_n "checking for non-GNU ld... " >&6; }
12731 fi
12732 if ${lt_cv_path_LD+:} false; then :
12733   $as_echo_n "(cached) " >&6
12734 else
12735   if test -z "$LD"; then
12736   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12737   for ac_dir in $PATH; do
12738     IFS=$lt_save_ifs
12739     test -z "$ac_dir" && ac_dir=.
12740     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12741       lt_cv_path_LD=$ac_dir/$ac_prog
12742       # Check to see if the program is GNU ld.  I'd rather use --version,
12743       # but apparently some variants of GNU ld only accept -v.
12744       # Break only if it was the GNU/non-GNU ld that we prefer.
12745       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12746       *GNU* | *'with BFD'*)
12747         test no != "$with_gnu_ld" && break
12748         ;;
12749       *)
12750         test yes != "$with_gnu_ld" && break
12751         ;;
12752       esac
12753     fi
12754   done
12755   IFS=$lt_save_ifs
12756 else
12757   lt_cv_path_LD=$LD # Let the user override the test with a path.
12758 fi
12759 fi
12760
12761 LD=$lt_cv_path_LD
12762 if test -n "$LD"; then
12763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12764 $as_echo "$LD" >&6; }
12765 else
12766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12767 $as_echo "no" >&6; }
12768 fi
12769 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12771 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12772 if ${lt_cv_prog_gnu_ld+:} false; then :
12773   $as_echo_n "(cached) " >&6
12774 else
12775   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12776 case `$LD -v 2>&1 </dev/null` in
12777 *GNU* | *'with BFD'*)
12778   lt_cv_prog_gnu_ld=yes
12779   ;;
12780 *)
12781   lt_cv_prog_gnu_ld=no
12782   ;;
12783 esac
12784 fi
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12786 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12787 with_gnu_ld=$lt_cv_prog_gnu_ld
12788
12789
12790
12791
12792
12793
12794
12795       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12796       # archiving commands below assume that GNU ld is being used.
12797       if test yes = "$with_gnu_ld"; then
12798         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
12799         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'
12800
12801         hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
12802         export_dynamic_flag_spec_CXX='$wl--export-dynamic'
12803
12804         # If archive_cmds runs LD, not CC, wlarc should be empty
12805         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12806         #     investigate it a little bit more. (MM)
12807         wlarc='$wl'
12808
12809         # ancient GNU ld didn't support --whole-archive et. al.
12810         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12811           $GREP 'no-whole-archive' > /dev/null; then
12812           whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12813         else
12814           whole_archive_flag_spec_CXX=
12815         fi
12816       else
12817         with_gnu_ld=no
12818         wlarc=
12819
12820         # A generic and very simple default shared library creation
12821         # command for GNU C++ for the case where it uses the native
12822         # linker, instead of GNU ld.  If possible, this setting should
12823         # overridden to take advantage of the native linker features on
12824         # the platform it is being used on.
12825         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12826       fi
12827
12828       # Commands to make compiler produce verbose output that lists
12829       # what "hidden" libraries, object files and flags are used when
12830       # linking a shared library.
12831       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12832
12833     else
12834       GXX=no
12835       with_gnu_ld=no
12836       wlarc=
12837     fi
12838
12839     # PORTME: fill in a description of your system's C++ link characteristics
12840     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12841 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12842     ld_shlibs_CXX=yes
12843     case $host_os in
12844       aix3*)
12845         # FIXME: insert proper C++ library support
12846         ld_shlibs_CXX=no
12847         ;;
12848       aix[4-9]*)
12849         if test ia64 = "$host_cpu"; then
12850           # On IA64, the linker does run time linking by default, so we don't
12851           # have to do anything special.
12852           aix_use_runtimelinking=no
12853           exp_sym_flag='-Bexport'
12854           no_entry_flag=
12855         else
12856           aix_use_runtimelinking=no
12857
12858           # Test if we are trying to use run time linking or normal
12859           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12860           # have runtime linking enabled, and use it for executables.
12861           # For shared libraries, we enable/disable runtime linking
12862           # depending on the kind of the shared library created -
12863           # when "with_aix_soname,aix_use_runtimelinking" is:
12864           # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
12865           # "aix,yes"  lib.so          shared, rtl:yes, for executables
12866           #            lib.a           static archive
12867           # "both,no"  lib.so.V(shr.o) shared, rtl:yes
12868           #            lib.a(lib.so.V) shared, rtl:no,  for executables
12869           # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12870           #            lib.a(lib.so.V) shared, rtl:no
12871           # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
12872           #            lib.a           static archive
12873           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12874             for ld_flag in $LDFLAGS; do
12875               case $ld_flag in
12876               *-brtl*)
12877                 aix_use_runtimelinking=yes
12878                 break
12879                 ;;
12880               esac
12881             done
12882             if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12883               # With aix-soname=svr4, we create the lib.so.V shared archives only,
12884               # so we don't have lib.a shared libs to link our executables.
12885               # We have to force runtime linking in this case.
12886               aix_use_runtimelinking=yes
12887               LDFLAGS="$LDFLAGS -Wl,-brtl"
12888             fi
12889             ;;
12890           esac
12891
12892           exp_sym_flag='-bexport'
12893           no_entry_flag='-bnoentry'
12894         fi
12895
12896         # When large executables or shared objects are built, AIX ld can
12897         # have problems creating the table of contents.  If linking a library
12898         # or program results in "error TOC overflow" add -mminimal-toc to
12899         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12900         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12901
12902         archive_cmds_CXX=''
12903         hardcode_direct_CXX=yes
12904         hardcode_direct_absolute_CXX=yes
12905         hardcode_libdir_separator_CXX=':'
12906         link_all_deplibs_CXX=yes
12907         file_list_spec_CXX='$wl-f,'
12908         case $with_aix_soname,$aix_use_runtimelinking in
12909         aix,*) ;;       # no import file
12910         svr4,* | *,yes) # use import file
12911           # The Import File defines what to hardcode.
12912           hardcode_direct_CXX=no
12913           hardcode_direct_absolute_CXX=no
12914           ;;
12915         esac
12916
12917         if test yes = "$GXX"; then
12918           case $host_os in aix4.[012]|aix4.[012].*)
12919           # We only want to do this on AIX 4.2 and lower, the check
12920           # below for broken collect2 doesn't work under 4.3+
12921           collect2name=`$CC -print-prog-name=collect2`
12922           if test -f "$collect2name" &&
12923              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12924           then
12925             # We have reworked collect2
12926             :
12927           else
12928             # We have old collect2
12929             hardcode_direct_CXX=unsupported
12930             # It fails to find uninstalled libraries when the uninstalled
12931             # path is not listed in the libpath.  Setting hardcode_minus_L
12932             # to unsupported forces relinking
12933             hardcode_minus_L_CXX=yes
12934             hardcode_libdir_flag_spec_CXX='-L$libdir'
12935             hardcode_libdir_separator_CXX=
12936           fi
12937           esac
12938           shared_flag='-shared'
12939           if test yes = "$aix_use_runtimelinking"; then
12940             shared_flag=$shared_flag' $wl-G'
12941           fi
12942           # Need to ensure runtime linking is disabled for the traditional
12943           # shared library, or the linker may eventually find shared libraries
12944           # /with/ Import File - we do not want to mix them.
12945           shared_flag_aix='-shared'
12946           shared_flag_svr4='-shared $wl-G'
12947         else
12948           # not using gcc
12949           if test ia64 = "$host_cpu"; then
12950           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12951           # chokes on -Wl,-G. The following line is correct:
12952           shared_flag='-G'
12953           else
12954             if test yes = "$aix_use_runtimelinking"; then
12955               shared_flag='$wl-G'
12956             else
12957               shared_flag='$wl-bM:SRE'
12958             fi
12959             shared_flag_aix='$wl-bM:SRE'
12960             shared_flag_svr4='$wl-G'
12961           fi
12962         fi
12963
12964         export_dynamic_flag_spec_CXX='$wl-bexpall'
12965         # It seems that -bexpall does not export symbols beginning with
12966         # underscore (_), so it is better to generate a list of symbols to
12967         # export.
12968         always_export_symbols_CXX=yes
12969         if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12970           # Warning - without using the other runtime loading flags (-brtl),
12971           # -berok will link without error, but may produce a broken library.
12972           # The "-G" linker flag allows undefined symbols.
12973           no_undefined_flag_CXX='-bernotok'
12974           # Determine the default libpath from the value encoded in an empty
12975           # executable.
12976           if test set = "${lt_cv_aix_libpath+set}"; then
12977   aix_libpath=$lt_cv_aix_libpath
12978 else
12979   if ${lt_cv_aix_libpath__CXX+:} false; then :
12980   $as_echo_n "(cached) " >&6
12981 else
12982   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12983 /* end confdefs.h.  */
12984
12985 int
12986 main ()
12987 {
12988
12989   ;
12990   return 0;
12991 }
12992 _ACEOF
12993 if ac_fn_cxx_try_link "$LINENO"; then :
12994
12995   lt_aix_libpath_sed='
12996       /Import File Strings/,/^$/ {
12997           /^0/ {
12998               s/^0  *\([^ ]*\) *$/\1/
12999               p
13000           }
13001       }'
13002   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13003   # Check for a 64-bit object if we didn't find anything.
13004   if test -z "$lt_cv_aix_libpath__CXX"; then
13005     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13006   fi
13007 fi
13008 rm -f core conftest.err conftest.$ac_objext \
13009     conftest$ac_exeext conftest.$ac_ext
13010   if test -z "$lt_cv_aix_libpath__CXX"; then
13011     lt_cv_aix_libpath__CXX=/usr/lib:/lib
13012   fi
13013
13014 fi
13015
13016   aix_libpath=$lt_cv_aix_libpath__CXX
13017 fi
13018
13019           hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13020
13021           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
13022         else
13023           if test ia64 = "$host_cpu"; then
13024             hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
13025             allow_undefined_flag_CXX="-z nodefs"
13026             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"
13027           else
13028             # Determine the default libpath from the value encoded in an
13029             # empty executable.
13030             if test set = "${lt_cv_aix_libpath+set}"; then
13031   aix_libpath=$lt_cv_aix_libpath
13032 else
13033   if ${lt_cv_aix_libpath__CXX+:} false; then :
13034   $as_echo_n "(cached) " >&6
13035 else
13036   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13037 /* end confdefs.h.  */
13038
13039 int
13040 main ()
13041 {
13042
13043   ;
13044   return 0;
13045 }
13046 _ACEOF
13047 if ac_fn_cxx_try_link "$LINENO"; then :
13048
13049   lt_aix_libpath_sed='
13050       /Import File Strings/,/^$/ {
13051           /^0/ {
13052               s/^0  *\([^ ]*\) *$/\1/
13053               p
13054           }
13055       }'
13056   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13057   # Check for a 64-bit object if we didn't find anything.
13058   if test -z "$lt_cv_aix_libpath__CXX"; then
13059     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13060   fi
13061 fi
13062 rm -f core conftest.err conftest.$ac_objext \
13063     conftest$ac_exeext conftest.$ac_ext
13064   if test -z "$lt_cv_aix_libpath__CXX"; then
13065     lt_cv_aix_libpath__CXX=/usr/lib:/lib
13066   fi
13067
13068 fi
13069
13070   aix_libpath=$lt_cv_aix_libpath__CXX
13071 fi
13072
13073             hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13074             # Warning - without using the other run time loading flags,
13075             # -berok will link without error, but may produce a broken library.
13076             no_undefined_flag_CXX=' $wl-bernotok'
13077             allow_undefined_flag_CXX=' $wl-berok'
13078             if test yes = "$with_gnu_ld"; then
13079               # We only use this code for GNU lds that support --whole-archive.
13080               whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13081             else
13082               # Exported symbols can be pulled into shared objects from archives
13083               whole_archive_flag_spec_CXX='$convenience'
13084             fi
13085             archive_cmds_need_lc_CXX=yes
13086             archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13087             # -brtl affects multiple linker settings, -berok does not and is overridden later
13088             compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13089             if test svr4 != "$with_aix_soname"; then
13090               # This is similar to how AIX traditionally builds its shared
13091               # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
13092               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'
13093             fi
13094             if test aix != "$with_aix_soname"; then
13095               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'
13096             else
13097               # used by -dlpreopen to get the symbols
13098               archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
13099             fi
13100             archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
13101           fi
13102         fi
13103         ;;
13104
13105       beos*)
13106         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13107           allow_undefined_flag_CXX=unsupported
13108           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13109           # support --undefined.  This deserves some investigation.  FIXME
13110           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13111         else
13112           ld_shlibs_CXX=no
13113         fi
13114         ;;
13115
13116       chorus*)
13117         case $cc_basename in
13118           *)
13119           # FIXME: insert proper C++ library support
13120           ld_shlibs_CXX=no
13121           ;;
13122         esac
13123         ;;
13124
13125       cygwin* | mingw* | pw32* | cegcc*)
13126         case $GXX,$cc_basename in
13127         ,cl* | no,cl*)
13128           # Native MSVC
13129           # hardcode_libdir_flag_spec is actually meaningless, as there is
13130           # no search path for DLLs.
13131           hardcode_libdir_flag_spec_CXX=' '
13132           allow_undefined_flag_CXX=unsupported
13133           always_export_symbols_CXX=yes
13134           file_list_spec_CXX='@'
13135           # Tell ltmain to make .lib files, not .a files.
13136           libext=lib
13137           # Tell ltmain to make .dll files, not .so files.
13138           shrext_cmds=.dll
13139           # FIXME: Setting linknames here is a bad hack.
13140           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13141           archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[     ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
13142               cp "$export_symbols" "$output_objdir/$soname.def";
13143               echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13144             else
13145               $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13146             fi~
13147             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13148             linknames='
13149           # The linker will not automatically build a static lib if we build a DLL.
13150           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13151           enable_shared_with_static_runtimes_CXX=yes
13152           # Don't use ranlib
13153           old_postinstall_cmds_CXX='chmod 644 $oldlib'
13154           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13155             lt_tool_outputfile="@TOOL_OUTPUT@"~
13156             case $lt_outputfile in
13157               *.exe|*.EXE) ;;
13158               *)
13159                 lt_outputfile=$lt_outputfile.exe
13160                 lt_tool_outputfile=$lt_tool_outputfile.exe
13161                 ;;
13162             esac~
13163             func_to_tool_file "$lt_outputfile"~
13164             if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13165               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13166               $RM "$lt_outputfile.manifest";
13167             fi'
13168           ;;
13169         *)
13170           # g++
13171           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13172           # as there is no search path for DLLs.
13173           hardcode_libdir_flag_spec_CXX='-L$libdir'
13174           export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
13175           allow_undefined_flag_CXX=unsupported
13176           always_export_symbols_CXX=no
13177           enable_shared_with_static_runtimes_CXX=yes
13178
13179           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13180             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'
13181             # If the export-symbols file already is a .def file, use it as
13182             # is; otherwise, prepend EXPORTS...
13183             archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
13184               cp $export_symbols $output_objdir/$soname.def;
13185             else
13186               echo EXPORTS > $output_objdir/$soname.def;
13187               cat $export_symbols >> $output_objdir/$soname.def;
13188             fi~
13189             $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'
13190           else
13191             ld_shlibs_CXX=no
13192           fi
13193           ;;
13194         esac
13195         ;;
13196       darwin* | rhapsody*)
13197
13198
13199   archive_cmds_need_lc_CXX=no
13200   hardcode_direct_CXX=no
13201   hardcode_automatic_CXX=yes
13202   hardcode_shlibpath_var_CXX=unsupported
13203   if test yes = "$lt_cv_ld_force_load"; then
13204     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\"`'
13205
13206   else
13207     whole_archive_flag_spec_CXX=''
13208   fi
13209   link_all_deplibs_CXX=yes
13210   allow_undefined_flag_CXX=$_lt_dar_allow_undefined
13211   case $cc_basename in
13212      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13213      *) _lt_dar_can_shared=$GCC ;;
13214   esac
13215   if test yes = "$_lt_dar_can_shared"; then
13216     output_verbose_link_cmd=func_echo_all
13217     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"
13218     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13219     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"
13220     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"
13221        if test yes != "$lt_cv_apple_cc_single_mod"; then
13222       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"
13223       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"
13224     fi
13225
13226   else
13227   ld_shlibs_CXX=no
13228   fi
13229
13230         ;;
13231
13232       os2*)
13233         hardcode_libdir_flag_spec_CXX='-L$libdir'
13234         hardcode_minus_L_CXX=yes
13235         allow_undefined_flag_CXX=unsupported
13236         shrext_cmds=.dll
13237         archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13238           $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13239           $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13240           $ECHO EXPORTS >> $output_objdir/$libname.def~
13241           emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13242           $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13243           emximp -o $lib $output_objdir/$libname.def'
13244         archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13245           $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13246           $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13247           $ECHO EXPORTS >> $output_objdir/$libname.def~
13248           prefix_cmds="$SED"~
13249           if test EXPORTS = "`$SED 1q $export_symbols`"; then
13250             prefix_cmds="$prefix_cmds -e 1d";
13251           fi~
13252           prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13253           cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13254           $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13255           emximp -o $lib $output_objdir/$libname.def'
13256         old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13257         enable_shared_with_static_runtimes_CXX=yes
13258         ;;
13259
13260       dgux*)
13261         case $cc_basename in
13262           ec++*)
13263             # FIXME: insert proper C++ library support
13264             ld_shlibs_CXX=no
13265             ;;
13266           ghcx*)
13267             # Green Hills C++ Compiler
13268             # FIXME: insert proper C++ library support
13269             ld_shlibs_CXX=no
13270             ;;
13271           *)
13272             # FIXME: insert proper C++ library support
13273             ld_shlibs_CXX=no
13274             ;;
13275         esac
13276         ;;
13277
13278       freebsd2.*)
13279         # C++ shared libraries reported to be fairly broken before
13280         # switch to ELF
13281         ld_shlibs_CXX=no
13282         ;;
13283
13284       freebsd-elf*)
13285         archive_cmds_need_lc_CXX=no
13286         ;;
13287
13288       freebsd* | dragonfly*)
13289         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13290         # conventions
13291         ld_shlibs_CXX=yes
13292         ;;
13293
13294       haiku*)
13295         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13296         link_all_deplibs_CXX=yes
13297         ;;
13298
13299       hpux9*)
13300         hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13301         hardcode_libdir_separator_CXX=:
13302         export_dynamic_flag_spec_CXX='$wl-E'
13303         hardcode_direct_CXX=yes
13304         hardcode_minus_L_CXX=yes # Not in the search PATH,
13305                                              # but as the default
13306                                              # location of the library.
13307
13308         case $cc_basename in
13309           CC*)
13310             # FIXME: insert proper C++ library support
13311             ld_shlibs_CXX=no
13312             ;;
13313           aCC*)
13314             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'
13315             # Commands to make compiler produce verbose output that lists
13316             # what "hidden" libraries, object files and flags are used when
13317             # linking a shared library.
13318             #
13319             # There doesn't appear to be a way to prevent this compiler from
13320             # explicitly linking system object files so we need to strip them
13321             # from the output so that they don't get included in the library
13322             # dependencies.
13323             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"'
13324             ;;
13325           *)
13326             if test yes = "$GXX"; then
13327               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'
13328             else
13329               # FIXME: insert proper C++ library support
13330               ld_shlibs_CXX=no
13331             fi
13332             ;;
13333         esac
13334         ;;
13335
13336       hpux10*|hpux11*)
13337         if test no = "$with_gnu_ld"; then
13338           hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13339           hardcode_libdir_separator_CXX=:
13340
13341           case $host_cpu in
13342             hppa*64*|ia64*)
13343               ;;
13344             *)
13345               export_dynamic_flag_spec_CXX='$wl-E'
13346               ;;
13347           esac
13348         fi
13349         case $host_cpu in
13350           hppa*64*|ia64*)
13351             hardcode_direct_CXX=no
13352             hardcode_shlibpath_var_CXX=no
13353             ;;
13354           *)
13355             hardcode_direct_CXX=yes
13356             hardcode_direct_absolute_CXX=yes
13357             hardcode_minus_L_CXX=yes # Not in the search PATH,
13358                                                  # but as the default
13359                                                  # location of the library.
13360             ;;
13361         esac
13362
13363         case $cc_basename in
13364           CC*)
13365             # FIXME: insert proper C++ library support
13366             ld_shlibs_CXX=no
13367             ;;
13368           aCC*)
13369             case $host_cpu in
13370               hppa*64*)
13371                 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13372                 ;;
13373               ia64*)
13374                 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13375                 ;;
13376               *)
13377                 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13378                 ;;
13379             esac
13380             # Commands to make compiler produce verbose output that lists
13381             # what "hidden" libraries, object files and flags are used when
13382             # linking a shared library.
13383             #
13384             # There doesn't appear to be a way to prevent this compiler from
13385             # explicitly linking system object files so we need to strip them
13386             # from the output so that they don't get included in the library
13387             # dependencies.
13388             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"'
13389             ;;
13390           *)
13391             if test yes = "$GXX"; then
13392               if test no = "$with_gnu_ld"; then
13393                 case $host_cpu in
13394                   hppa*64*)
13395                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13396                     ;;
13397                   ia64*)
13398                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13399                     ;;
13400                   *)
13401                     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'
13402                     ;;
13403                 esac
13404               fi
13405             else
13406               # FIXME: insert proper C++ library support
13407               ld_shlibs_CXX=no
13408             fi
13409             ;;
13410         esac
13411         ;;
13412
13413       interix[3-9]*)
13414         hardcode_direct_CXX=no
13415         hardcode_shlibpath_var_CXX=no
13416         hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13417         export_dynamic_flag_spec_CXX='$wl-E'
13418         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13419         # Instead, shared libraries are loaded at an image base (0x10000000 by
13420         # default) and relocated if they conflict, which is a slow very memory
13421         # consuming and fragmenting process.  To avoid this, we pick a random,
13422         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13423         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13424         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'
13425         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'
13426         ;;
13427       irix5* | irix6*)
13428         case $cc_basename in
13429           CC*)
13430             # SGI C++
13431             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'
13432
13433             # Archives containing C++ object files must be created using
13434             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13435             # necessary to make sure instantiated templates are included
13436             # in the archive.
13437             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13438             ;;
13439           *)
13440             if test yes = "$GXX"; then
13441               if test no = "$with_gnu_ld"; then
13442                 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'
13443               else
13444                 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'
13445               fi
13446             fi
13447             link_all_deplibs_CXX=yes
13448             ;;
13449         esac
13450         hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13451         hardcode_libdir_separator_CXX=:
13452         inherit_rpath_CXX=yes
13453         ;;
13454
13455       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13456         case $cc_basename in
13457           KCC*)
13458             # Kuck and Associates, Inc. (KAI) C++ Compiler
13459
13460             # KCC will only create a shared library if the output file
13461             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13462             # to its proper name (with version) after linking.
13463             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'
13464             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'
13465             # Commands to make compiler produce verbose output that lists
13466             # what "hidden" libraries, object files and flags are used when
13467             # linking a shared library.
13468             #
13469             # There doesn't appear to be a way to prevent this compiler from
13470             # explicitly linking system object files so we need to strip them
13471             # from the output so that they don't get included in the library
13472             # dependencies.
13473             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"'
13474
13475             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13476             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13477
13478             # Archives containing C++ object files must be created using
13479             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13480             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13481             ;;
13482           icpc* | ecpc* )
13483             # Intel C++
13484             with_gnu_ld=yes
13485             # version 8.0 and above of icpc choke on multiply defined symbols
13486             # if we add $predep_objects and $postdep_objects, however 7.1 and
13487             # earlier do not add the objects themselves.
13488             case `$CC -V 2>&1` in
13489               *"Version 7."*)
13490                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13491                 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'
13492                 ;;
13493               *)  # Version 8.0 or newer
13494                 tmp_idyn=
13495                 case $host_cpu in
13496                   ia64*) tmp_idyn=' -i_dynamic';;
13497                 esac
13498                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13499                 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'
13500                 ;;
13501             esac
13502             archive_cmds_need_lc_CXX=no
13503             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13504             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13505             whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13506             ;;
13507           pgCC* | pgcpp*)
13508             # Portland Group C++ compiler
13509             case `$CC -V` in
13510             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13511               prelink_cmds_CXX='tpldir=Template.dir~
13512                rm -rf $tpldir~
13513                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13514                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13515               old_archive_cmds_CXX='tpldir=Template.dir~
13516                 rm -rf $tpldir~
13517                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13518                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13519                 $RANLIB $oldlib'
13520               archive_cmds_CXX='tpldir=Template.dir~
13521                 rm -rf $tpldir~
13522                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13523                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13524               archive_expsym_cmds_CXX='tpldir=Template.dir~
13525                 rm -rf $tpldir~
13526                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13527                 $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'
13528               ;;
13529             *) # Version 6 and above use weak symbols
13530               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13531               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'
13532               ;;
13533             esac
13534
13535             hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
13536             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13537             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'
13538             ;;
13539           cxx*)
13540             # Compaq C++
13541             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13542             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'
13543
13544             runpath_var=LD_RUN_PATH
13545             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13546             hardcode_libdir_separator_CXX=:
13547
13548             # Commands to make compiler produce verbose output that lists
13549             # what "hidden" libraries, object files and flags are used when
13550             # linking a shared library.
13551             #
13552             # There doesn't appear to be a way to prevent this compiler from
13553             # explicitly linking system object files so we need to strip them
13554             # from the output so that they don't get included in the library
13555             # dependencies.
13556             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'
13557             ;;
13558           xl* | mpixl* | bgxl*)
13559             # IBM XL 8.0 on PPC, with GNU ld
13560             hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13561             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13562             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13563             if test yes = "$supports_anon_versioning"; then
13564               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13565                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13566                 echo "local: *; };" >> $output_objdir/$libname.ver~
13567                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
13568             fi
13569             ;;
13570           *)
13571             case `$CC -V 2>&1 | sed 5q` in
13572             *Sun\ C*)
13573               # Sun C++ 5.9
13574               no_undefined_flag_CXX=' -zdefs'
13575               archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13576               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'
13577               hardcode_libdir_flag_spec_CXX='-R$libdir'
13578               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'
13579               compiler_needs_object_CXX=yes
13580
13581               # Not sure whether something based on
13582               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13583               # would be better.
13584               output_verbose_link_cmd='func_echo_all'
13585
13586               # Archives containing C++ object files must be created using
13587               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13588               # necessary to make sure instantiated templates are included
13589               # in the archive.
13590               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13591               ;;
13592             esac
13593             ;;
13594         esac
13595         ;;
13596
13597       lynxos*)
13598         # FIXME: insert proper C++ library support
13599         ld_shlibs_CXX=no
13600         ;;
13601
13602       m88k*)
13603         # FIXME: insert proper C++ library support
13604         ld_shlibs_CXX=no
13605         ;;
13606
13607       mvs*)
13608         case $cc_basename in
13609           cxx*)
13610             # FIXME: insert proper C++ library support
13611             ld_shlibs_CXX=no
13612             ;;
13613           *)
13614             # FIXME: insert proper C++ library support
13615             ld_shlibs_CXX=no
13616             ;;
13617         esac
13618         ;;
13619
13620       netbsd*)
13621         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13622           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13623           wlarc=
13624           hardcode_libdir_flag_spec_CXX='-R$libdir'
13625           hardcode_direct_CXX=yes
13626           hardcode_shlibpath_var_CXX=no
13627         fi
13628         # Workaround some broken pre-1.5 toolchains
13629         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13630         ;;
13631
13632       *nto* | *qnx*)
13633         ld_shlibs_CXX=yes
13634         ;;
13635
13636       openbsd* | bitrig*)
13637         if test -f /usr/libexec/ld.so; then
13638           hardcode_direct_CXX=yes
13639           hardcode_shlibpath_var_CXX=no
13640           hardcode_direct_absolute_CXX=yes
13641           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13642           hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13643           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
13644             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
13645             export_dynamic_flag_spec_CXX='$wl-E'
13646             whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13647           fi
13648           output_verbose_link_cmd=func_echo_all
13649         else
13650           ld_shlibs_CXX=no
13651         fi
13652         ;;
13653
13654       osf3* | osf4* | osf5*)
13655         case $cc_basename in
13656           KCC*)
13657             # Kuck and Associates, Inc. (KAI) C++ Compiler
13658
13659             # KCC will only create a shared library if the output file
13660             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13661             # to its proper name (with version) after linking.
13662             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'
13663
13664             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13665             hardcode_libdir_separator_CXX=:
13666
13667             # Archives containing C++ object files must be created using
13668             # the KAI C++ compiler.
13669             case $host in
13670               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13671               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13672             esac
13673             ;;
13674           RCC*)
13675             # Rational C++ 2.4.1
13676             # FIXME: insert proper C++ library support
13677             ld_shlibs_CXX=no
13678             ;;
13679           cxx*)
13680             case $host in
13681               osf3*)
13682                 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
13683                 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'
13684                 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13685                 ;;
13686               *)
13687                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13688                 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'
13689                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13690                   echo "-hidden">> $lib.exp~
13691                   $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~
13692                   $RM $lib.exp'
13693                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13694                 ;;
13695             esac
13696
13697             hardcode_libdir_separator_CXX=:
13698
13699             # Commands to make compiler produce verbose output that lists
13700             # what "hidden" libraries, object files and flags are used when
13701             # linking a shared library.
13702             #
13703             # There doesn't appear to be a way to prevent this compiler from
13704             # explicitly linking system object files so we need to strip them
13705             # from the output so that they don't get included in the library
13706             # dependencies.
13707             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"'
13708             ;;
13709           *)
13710             if test yes,no = "$GXX,$with_gnu_ld"; then
13711               allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
13712               case $host in
13713                 osf3*)
13714                   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'
13715                   ;;
13716                 *)
13717                   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'
13718                   ;;
13719               esac
13720
13721               hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13722               hardcode_libdir_separator_CXX=:
13723
13724               # Commands to make compiler produce verbose output that lists
13725               # what "hidden" libraries, object files and flags are used when
13726               # linking a shared library.
13727               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13728
13729             else
13730               # FIXME: insert proper C++ library support
13731               ld_shlibs_CXX=no
13732             fi
13733             ;;
13734         esac
13735         ;;
13736
13737       psos*)
13738         # FIXME: insert proper C++ library support
13739         ld_shlibs_CXX=no
13740         ;;
13741
13742       sunos4*)
13743         case $cc_basename in
13744           CC*)
13745             # Sun C++ 4.x
13746             # FIXME: insert proper C++ library support
13747             ld_shlibs_CXX=no
13748             ;;
13749           lcc*)
13750             # Lucid
13751             # FIXME: insert proper C++ library support
13752             ld_shlibs_CXX=no
13753             ;;
13754           *)
13755             # FIXME: insert proper C++ library support
13756             ld_shlibs_CXX=no
13757             ;;
13758         esac
13759         ;;
13760
13761       solaris*)
13762         case $cc_basename in
13763           CC* | sunCC*)
13764             # Sun C++ 4.2, 5.x and Centerline C++
13765             archive_cmds_need_lc_CXX=yes
13766             no_undefined_flag_CXX=' -zdefs'
13767             archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13768             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13769               $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'
13770
13771             hardcode_libdir_flag_spec_CXX='-R$libdir'
13772             hardcode_shlibpath_var_CXX=no
13773             case $host_os in
13774               solaris2.[0-5] | solaris2.[0-5].*) ;;
13775               *)
13776                 # The compiler driver will combine and reorder linker options,
13777                 # but understands '-z linker_flag'.
13778                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13779                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13780                 ;;
13781             esac
13782             link_all_deplibs_CXX=yes
13783
13784             output_verbose_link_cmd='func_echo_all'
13785
13786             # Archives containing C++ object files must be created using
13787             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13788             # necessary to make sure instantiated templates are included
13789             # in the archive.
13790             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13791             ;;
13792           gcx*)
13793             # Green Hills C++ Compiler
13794             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
13795
13796             # The C++ compiler must be used to create the archive.
13797             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13798             ;;
13799           *)
13800             # GNU C++ compiler with Solaris linker
13801             if test yes,no = "$GXX,$with_gnu_ld"; then
13802               no_undefined_flag_CXX=' $wl-z ${wl}defs'
13803               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13804                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
13805                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13806                   $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'
13807
13808                 # Commands to make compiler produce verbose output that lists
13809                 # what "hidden" libraries, object files and flags are used when
13810                 # linking a shared library.
13811                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13812               else
13813                 # g++ 2.7 appears to require '-G' NOT '-shared' on this
13814                 # platform.
13815                 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
13816                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13817                   $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'
13818
13819                 # Commands to make compiler produce verbose output that lists
13820                 # what "hidden" libraries, object files and flags are used when
13821                 # linking a shared library.
13822                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13823               fi
13824
13825               hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
13826               case $host_os in
13827                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13828                 *)
13829                   whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13830                   ;;
13831               esac
13832             fi
13833             ;;
13834         esac
13835         ;;
13836
13837     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13838       no_undefined_flag_CXX='$wl-z,text'
13839       archive_cmds_need_lc_CXX=no
13840       hardcode_shlibpath_var_CXX=no
13841       runpath_var='LD_RUN_PATH'
13842
13843       case $cc_basename in
13844         CC*)
13845           archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13846           archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13847           ;;
13848         *)
13849           archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13850           archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13851           ;;
13852       esac
13853       ;;
13854
13855       sysv5* | sco3.2v5* | sco5v6*)
13856         # Note: We CANNOT use -z defs as we might desire, because we do not
13857         # link with -lc, and that would cause any symbols used from libc to
13858         # always be unresolved, which means just about no library would
13859         # ever link correctly.  If we're not using GNU ld we use -z text
13860         # though, which does catch some bad symbols but isn't as heavy-handed
13861         # as -z defs.
13862         no_undefined_flag_CXX='$wl-z,text'
13863         allow_undefined_flag_CXX='$wl-z,nodefs'
13864         archive_cmds_need_lc_CXX=no
13865         hardcode_shlibpath_var_CXX=no
13866         hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
13867         hardcode_libdir_separator_CXX=':'
13868         link_all_deplibs_CXX=yes
13869         export_dynamic_flag_spec_CXX='$wl-Bexport'
13870         runpath_var='LD_RUN_PATH'
13871
13872         case $cc_basename in
13873           CC*)
13874             archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13875             archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13876             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13877               '"$old_archive_cmds_CXX"
13878             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13879               '"$reload_cmds_CXX"
13880             ;;
13881           *)
13882             archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13883             archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13884             ;;
13885         esac
13886       ;;
13887
13888       tandem*)
13889         case $cc_basename in
13890           NCC*)
13891             # NonStop-UX NCC 3.20
13892             # FIXME: insert proper C++ library support
13893             ld_shlibs_CXX=no
13894             ;;
13895           *)
13896             # FIXME: insert proper C++ library support
13897             ld_shlibs_CXX=no
13898             ;;
13899         esac
13900         ;;
13901
13902       vxworks*)
13903         # FIXME: insert proper C++ library support
13904         ld_shlibs_CXX=no
13905         ;;
13906
13907       *)
13908         # FIXME: insert proper C++ library support
13909         ld_shlibs_CXX=no
13910         ;;
13911     esac
13912
13913     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13914 $as_echo "$ld_shlibs_CXX" >&6; }
13915     test no = "$ld_shlibs_CXX" && can_build_shared=no
13916
13917     GCC_CXX=$GXX
13918     LD_CXX=$LD
13919
13920     ## CAVEAT EMPTOR:
13921     ## There is no encapsulation within the following macros, do not change
13922     ## the running order or otherwise move them around unless you know exactly
13923     ## what you are doing...
13924     # Dependencies to place before and after the object being linked:
13925 predep_objects_CXX=
13926 postdep_objects_CXX=
13927 predeps_CXX=
13928 postdeps_CXX=
13929 compiler_lib_search_path_CXX=
13930
13931 cat > conftest.$ac_ext <<_LT_EOF
13932 class Foo
13933 {
13934 public:
13935   Foo (void) { a = 0; }
13936 private:
13937   int a;
13938 };
13939 _LT_EOF
13940
13941
13942 _lt_libdeps_save_CFLAGS=$CFLAGS
13943 case "$CC $CFLAGS " in #(
13944 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13945 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13946 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13947 esac
13948
13949 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13950   (eval $ac_compile) 2>&5
13951   ac_status=$?
13952   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13953   test $ac_status = 0; }; then
13954   # Parse the compiler output and extract the necessary
13955   # objects, libraries and library flags.
13956
13957   # Sentinel used to keep track of whether or not we are before
13958   # the conftest object file.
13959   pre_test_object_deps_done=no
13960
13961   for p in `eval "$output_verbose_link_cmd"`; do
13962     case $prev$p in
13963
13964     -L* | -R* | -l*)
13965        # Some compilers place space between "-{L,R}" and the path.
13966        # Remove the space.
13967        if test x-L = "$p" ||
13968           test x-R = "$p"; then
13969          prev=$p
13970          continue
13971        fi
13972
13973        # Expand the sysroot to ease extracting the directories later.
13974        if test -z "$prev"; then
13975          case $p in
13976          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13977          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13978          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13979          esac
13980        fi
13981        case $p in
13982        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13983        esac
13984        if test no = "$pre_test_object_deps_done"; then
13985          case $prev in
13986          -L | -R)
13987            # Internal compiler library paths should come after those
13988            # provided the user.  The postdeps already come after the
13989            # user supplied libs so there is no need to process them.
13990            if test -z "$compiler_lib_search_path_CXX"; then
13991              compiler_lib_search_path_CXX=$prev$p
13992            else
13993              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
13994            fi
13995            ;;
13996          # The "-l" case would never come before the object being
13997          # linked, so don't bother handling this case.
13998          esac
13999        else
14000          if test -z "$postdeps_CXX"; then
14001            postdeps_CXX=$prev$p
14002          else
14003            postdeps_CXX="${postdeps_CXX} $prev$p"
14004          fi
14005        fi
14006        prev=
14007        ;;
14008
14009     *.lto.$objext) ;; # Ignore GCC LTO objects
14010     *.$objext)
14011        # This assumes that the test object file only shows up
14012        # once in the compiler output.
14013        if test "$p" = "conftest.$objext"; then
14014          pre_test_object_deps_done=yes
14015          continue
14016        fi
14017
14018        if test no = "$pre_test_object_deps_done"; then
14019          if test -z "$predep_objects_CXX"; then
14020            predep_objects_CXX=$p
14021          else
14022            predep_objects_CXX="$predep_objects_CXX $p"
14023          fi
14024        else
14025          if test -z "$postdep_objects_CXX"; then
14026            postdep_objects_CXX=$p
14027          else
14028            postdep_objects_CXX="$postdep_objects_CXX $p"
14029          fi
14030        fi
14031        ;;
14032
14033     *) ;; # Ignore the rest.
14034
14035     esac
14036   done
14037
14038   # Clean up.
14039   rm -f a.out a.exe
14040 else
14041   echo "libtool.m4: error: problem compiling CXX test program"
14042 fi
14043
14044 $RM -f confest.$objext
14045 CFLAGS=$_lt_libdeps_save_CFLAGS
14046
14047 # PORTME: override above test on systems where it is broken
14048 case $host_os in
14049 interix[3-9]*)
14050   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14051   # hack all around it, let's just trust "g++" to DTRT.
14052   predep_objects_CXX=
14053   postdep_objects_CXX=
14054   postdeps_CXX=
14055   ;;
14056 esac
14057
14058
14059 case " $postdeps_CXX " in
14060 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14061 esac
14062  compiler_lib_search_dirs_CXX=
14063 if test -n "${compiler_lib_search_path_CXX}"; then
14064  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
14065 fi
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097     lt_prog_compiler_wl_CXX=
14098 lt_prog_compiler_pic_CXX=
14099 lt_prog_compiler_static_CXX=
14100
14101
14102   # C++ specific cases for pic, static, wl, etc.
14103   if test yes = "$GXX"; then
14104     lt_prog_compiler_wl_CXX='-Wl,'
14105     lt_prog_compiler_static_CXX='-static'
14106
14107     case $host_os in
14108     aix*)
14109       # All AIX code is PIC.
14110       if test ia64 = "$host_cpu"; then
14111         # AIX 5 now supports IA64 processor
14112         lt_prog_compiler_static_CXX='-Bstatic'
14113       fi
14114       lt_prog_compiler_pic_CXX='-fPIC'
14115       ;;
14116
14117     amigaos*)
14118       case $host_cpu in
14119       powerpc)
14120             # see comment about AmigaOS4 .so support
14121             lt_prog_compiler_pic_CXX='-fPIC'
14122         ;;
14123       m68k)
14124             # FIXME: we need at least 68020 code to build shared libraries, but
14125             # adding the '-m68020' flag to GCC prevents building anything better,
14126             # like '-m68040'.
14127             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14128         ;;
14129       esac
14130       ;;
14131
14132     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14133       # PIC is the default for these OSes.
14134       ;;
14135     mingw* | cygwin* | os2* | pw32* | cegcc*)
14136       # This hack is so that the source file can tell whether it is being
14137       # built for inclusion in a dll (and should export symbols for example).
14138       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14139       # (--disable-auto-import) libraries
14140       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14141       case $host_os in
14142       os2*)
14143         lt_prog_compiler_static_CXX='$wl-static'
14144         ;;
14145       esac
14146       ;;
14147     darwin* | rhapsody*)
14148       # PIC is the default on this platform
14149       # Common symbols not allowed in MH_DYLIB files
14150       lt_prog_compiler_pic_CXX='-fno-common'
14151       ;;
14152     *djgpp*)
14153       # DJGPP does not support shared libraries at all
14154       lt_prog_compiler_pic_CXX=
14155       ;;
14156     haiku*)
14157       # PIC is the default for Haiku.
14158       # The "-static" flag exists, but is broken.
14159       lt_prog_compiler_static_CXX=
14160       ;;
14161     interix[3-9]*)
14162       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14163       # Instead, we relocate shared libraries at runtime.
14164       ;;
14165     sysv4*MP*)
14166       if test -d /usr/nec; then
14167         lt_prog_compiler_pic_CXX=-Kconform_pic
14168       fi
14169       ;;
14170     hpux*)
14171       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14172       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14173       # sets the default TLS model and affects inlining.
14174       case $host_cpu in
14175       hppa*64*)
14176         ;;
14177       *)
14178         lt_prog_compiler_pic_CXX='-fPIC'
14179         ;;
14180       esac
14181       ;;
14182     *qnx* | *nto*)
14183       # QNX uses GNU C++, but need to define -shared option too, otherwise
14184       # it will coredump.
14185       lt_prog_compiler_pic_CXX='-fPIC -shared'
14186       ;;
14187     *)
14188       lt_prog_compiler_pic_CXX='-fPIC'
14189       ;;
14190     esac
14191   else
14192     case $host_os in
14193       aix[4-9]*)
14194         # All AIX code is PIC.
14195         if test ia64 = "$host_cpu"; then
14196           # AIX 5 now supports IA64 processor
14197           lt_prog_compiler_static_CXX='-Bstatic'
14198         else
14199           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14200         fi
14201         ;;
14202       chorus*)
14203         case $cc_basename in
14204         cxch68*)
14205           # Green Hills C++ Compiler
14206           # _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"
14207           ;;
14208         esac
14209         ;;
14210       mingw* | cygwin* | os2* | pw32* | cegcc*)
14211         # This hack is so that the source file can tell whether it is being
14212         # built for inclusion in a dll (and should export symbols for example).
14213         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14214         ;;
14215       dgux*)
14216         case $cc_basename in
14217           ec++*)
14218             lt_prog_compiler_pic_CXX='-KPIC'
14219             ;;
14220           ghcx*)
14221             # Green Hills C++ Compiler
14222             lt_prog_compiler_pic_CXX='-pic'
14223             ;;
14224           *)
14225             ;;
14226         esac
14227         ;;
14228       freebsd* | dragonfly*)
14229         # FreeBSD uses GNU C++
14230         ;;
14231       hpux9* | hpux10* | hpux11*)
14232         case $cc_basename in
14233           CC*)
14234             lt_prog_compiler_wl_CXX='-Wl,'
14235             lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14236             if test ia64 != "$host_cpu"; then
14237               lt_prog_compiler_pic_CXX='+Z'
14238             fi
14239             ;;
14240           aCC*)
14241             lt_prog_compiler_wl_CXX='-Wl,'
14242             lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14243             case $host_cpu in
14244             hppa*64*|ia64*)
14245               # +Z the default
14246               ;;
14247             *)
14248               lt_prog_compiler_pic_CXX='+Z'
14249               ;;
14250             esac
14251             ;;
14252           *)
14253             ;;
14254         esac
14255         ;;
14256       interix*)
14257         # This is c89, which is MS Visual C++ (no shared libs)
14258         # Anyone wants to do a port?
14259         ;;
14260       irix5* | irix6* | nonstopux*)
14261         case $cc_basename in
14262           CC*)
14263             lt_prog_compiler_wl_CXX='-Wl,'
14264             lt_prog_compiler_static_CXX='-non_shared'
14265             # CC pic flag -KPIC is the default.
14266             ;;
14267           *)
14268             ;;
14269         esac
14270         ;;
14271       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14272         case $cc_basename in
14273           KCC*)
14274             # KAI C++ Compiler
14275             lt_prog_compiler_wl_CXX='--backend -Wl,'
14276             lt_prog_compiler_pic_CXX='-fPIC'
14277             ;;
14278           ecpc* )
14279             # old Intel C++ for x86_64, which still supported -KPIC.
14280             lt_prog_compiler_wl_CXX='-Wl,'
14281             lt_prog_compiler_pic_CXX='-KPIC'
14282             lt_prog_compiler_static_CXX='-static'
14283             ;;
14284           icpc* )
14285             # Intel C++, used to be incompatible with GCC.
14286             # ICC 10 doesn't accept -KPIC any more.
14287             lt_prog_compiler_wl_CXX='-Wl,'
14288             lt_prog_compiler_pic_CXX='-fPIC'
14289             lt_prog_compiler_static_CXX='-static'
14290             ;;
14291           pgCC* | pgcpp*)
14292             # Portland Group C++ compiler
14293             lt_prog_compiler_wl_CXX='-Wl,'
14294             lt_prog_compiler_pic_CXX='-fpic'
14295             lt_prog_compiler_static_CXX='-Bstatic'
14296             ;;
14297           cxx*)
14298             # Compaq C++
14299             # Make sure the PIC flag is empty.  It appears that all Alpha
14300             # Linux and Compaq Tru64 Unix objects are PIC.
14301             lt_prog_compiler_pic_CXX=
14302             lt_prog_compiler_static_CXX='-non_shared'
14303             ;;
14304           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14305             # IBM XL 8.0, 9.0 on PPC and BlueGene
14306             lt_prog_compiler_wl_CXX='-Wl,'
14307             lt_prog_compiler_pic_CXX='-qpic'
14308             lt_prog_compiler_static_CXX='-qstaticlink'
14309             ;;
14310           *)
14311             case `$CC -V 2>&1 | sed 5q` in
14312             *Sun\ C*)
14313               # Sun C++ 5.9
14314               lt_prog_compiler_pic_CXX='-KPIC'
14315               lt_prog_compiler_static_CXX='-Bstatic'
14316               lt_prog_compiler_wl_CXX='-Qoption ld '
14317               ;;
14318             esac
14319             ;;
14320         esac
14321         ;;
14322       lynxos*)
14323         ;;
14324       m88k*)
14325         ;;
14326       mvs*)
14327         case $cc_basename in
14328           cxx*)
14329             lt_prog_compiler_pic_CXX='-W c,exportall'
14330             ;;
14331           *)
14332             ;;
14333         esac
14334         ;;
14335       netbsd*)
14336         ;;
14337       *qnx* | *nto*)
14338         # QNX uses GNU C++, but need to define -shared option too, otherwise
14339         # it will coredump.
14340         lt_prog_compiler_pic_CXX='-fPIC -shared'
14341         ;;
14342       osf3* | osf4* | osf5*)
14343         case $cc_basename in
14344           KCC*)
14345             lt_prog_compiler_wl_CXX='--backend -Wl,'
14346             ;;
14347           RCC*)
14348             # Rational C++ 2.4.1
14349             lt_prog_compiler_pic_CXX='-pic'
14350             ;;
14351           cxx*)
14352             # Digital/Compaq C++
14353             lt_prog_compiler_wl_CXX='-Wl,'
14354             # Make sure the PIC flag is empty.  It appears that all Alpha
14355             # Linux and Compaq Tru64 Unix objects are PIC.
14356             lt_prog_compiler_pic_CXX=
14357             lt_prog_compiler_static_CXX='-non_shared'
14358             ;;
14359           *)
14360             ;;
14361         esac
14362         ;;
14363       psos*)
14364         ;;
14365       solaris*)
14366         case $cc_basename in
14367           CC* | sunCC*)
14368             # Sun C++ 4.2, 5.x and Centerline C++
14369             lt_prog_compiler_pic_CXX='-KPIC'
14370             lt_prog_compiler_static_CXX='-Bstatic'
14371             lt_prog_compiler_wl_CXX='-Qoption ld '
14372             ;;
14373           gcx*)
14374             # Green Hills C++ Compiler
14375             lt_prog_compiler_pic_CXX='-PIC'
14376             ;;
14377           *)
14378             ;;
14379         esac
14380         ;;
14381       sunos4*)
14382         case $cc_basename in
14383           CC*)
14384             # Sun C++ 4.x
14385             lt_prog_compiler_pic_CXX='-pic'
14386             lt_prog_compiler_static_CXX='-Bstatic'
14387             ;;
14388           lcc*)
14389             # Lucid
14390             lt_prog_compiler_pic_CXX='-pic'
14391             ;;
14392           *)
14393             ;;
14394         esac
14395         ;;
14396       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14397         case $cc_basename in
14398           CC*)
14399             lt_prog_compiler_wl_CXX='-Wl,'
14400             lt_prog_compiler_pic_CXX='-KPIC'
14401             lt_prog_compiler_static_CXX='-Bstatic'
14402             ;;
14403         esac
14404         ;;
14405       tandem*)
14406         case $cc_basename in
14407           NCC*)
14408             # NonStop-UX NCC 3.20
14409             lt_prog_compiler_pic_CXX='-KPIC'
14410             ;;
14411           *)
14412             ;;
14413         esac
14414         ;;
14415       vxworks*)
14416         ;;
14417       *)
14418         lt_prog_compiler_can_build_shared_CXX=no
14419         ;;
14420     esac
14421   fi
14422
14423 case $host_os in
14424   # For platforms that do not support PIC, -DPIC is meaningless:
14425   *djgpp*)
14426     lt_prog_compiler_pic_CXX=
14427     ;;
14428   *)
14429     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14430     ;;
14431 esac
14432
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14434 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14435 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14436   $as_echo_n "(cached) " >&6
14437 else
14438   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14439 fi
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14441 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14442 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14443
14444 #
14445 # Check to make sure the PIC flag actually works.
14446 #
14447 if test -n "$lt_prog_compiler_pic_CXX"; then
14448   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14449 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14450 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14451   $as_echo_n "(cached) " >&6
14452 else
14453   lt_cv_prog_compiler_pic_works_CXX=no
14454    ac_outfile=conftest.$ac_objext
14455    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14456    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
14457    # Insert the option either (1) after the last *FLAGS variable, or
14458    # (2) before a word containing "conftest.", or (3) at the end.
14459    # Note that $ac_compile itself does not contain backslashes and begins
14460    # with a dollar sign (not a hyphen), so the echo should work correctly.
14461    # The option is referenced via a variable to avoid confusing sed.
14462    lt_compile=`echo "$ac_compile" | $SED \
14463    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14464    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14465    -e 's:$: $lt_compiler_flag:'`
14466    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14467    (eval "$lt_compile" 2>conftest.err)
14468    ac_status=$?
14469    cat conftest.err >&5
14470    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471    if (exit $ac_status) && test -s "$ac_outfile"; then
14472      # The compiler can only warn and ignore the option if not recognized
14473      # So say no if there are warnings other than the usual output.
14474      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14475      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14476      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14477        lt_cv_prog_compiler_pic_works_CXX=yes
14478      fi
14479    fi
14480    $RM conftest*
14481
14482 fi
14483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14484 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14485
14486 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
14487     case $lt_prog_compiler_pic_CXX in
14488      "" | " "*) ;;
14489      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14490      esac
14491 else
14492     lt_prog_compiler_pic_CXX=
14493      lt_prog_compiler_can_build_shared_CXX=no
14494 fi
14495
14496 fi
14497
14498
14499
14500
14501
14502 #
14503 # Check to make sure the static flag actually works.
14504 #
14505 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14507 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14508 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14509   $as_echo_n "(cached) " >&6
14510 else
14511   lt_cv_prog_compiler_static_works_CXX=no
14512    save_LDFLAGS=$LDFLAGS
14513    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14514    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14515    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14516      # The linker can only warn and ignore the option if not recognized
14517      # So say no if there are warnings
14518      if test -s conftest.err; then
14519        # Append any errors to the config.log.
14520        cat conftest.err 1>&5
14521        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14522        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14523        if diff conftest.exp conftest.er2 >/dev/null; then
14524          lt_cv_prog_compiler_static_works_CXX=yes
14525        fi
14526      else
14527        lt_cv_prog_compiler_static_works_CXX=yes
14528      fi
14529    fi
14530    $RM -r conftest*
14531    LDFLAGS=$save_LDFLAGS
14532
14533 fi
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14535 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14536
14537 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
14538     :
14539 else
14540     lt_prog_compiler_static_CXX=
14541 fi
14542
14543
14544
14545
14546     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14547 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14548 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14549   $as_echo_n "(cached) " >&6
14550 else
14551   lt_cv_prog_compiler_c_o_CXX=no
14552    $RM -r conftest 2>/dev/null
14553    mkdir conftest
14554    cd conftest
14555    mkdir out
14556    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14557
14558    lt_compiler_flag="-o out/conftest2.$ac_objext"
14559    # Insert the option either (1) after the last *FLAGS variable, or
14560    # (2) before a word containing "conftest.", or (3) at the end.
14561    # Note that $ac_compile itself does not contain backslashes and begins
14562    # with a dollar sign (not a hyphen), so the echo should work correctly.
14563    lt_compile=`echo "$ac_compile" | $SED \
14564    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14565    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14566    -e 's:$: $lt_compiler_flag:'`
14567    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14568    (eval "$lt_compile" 2>out/conftest.err)
14569    ac_status=$?
14570    cat out/conftest.err >&5
14571    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14573    then
14574      # The compiler can only warn and ignore the option if not recognized
14575      # So say no if there are warnings
14576      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14577      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14578      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14579        lt_cv_prog_compiler_c_o_CXX=yes
14580      fi
14581    fi
14582    chmod u+w . 2>&5
14583    $RM conftest*
14584    # SGI C++ compiler will create directory out/ii_files/ for
14585    # template instantiation
14586    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14587    $RM out/* && rmdir out
14588    cd ..
14589    $RM -r conftest
14590    $RM conftest*
14591
14592 fi
14593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14594 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14595
14596
14597
14598     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14599 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14600 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14601   $as_echo_n "(cached) " >&6
14602 else
14603   lt_cv_prog_compiler_c_o_CXX=no
14604    $RM -r conftest 2>/dev/null
14605    mkdir conftest
14606    cd conftest
14607    mkdir out
14608    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14609
14610    lt_compiler_flag="-o out/conftest2.$ac_objext"
14611    # Insert the option either (1) after the last *FLAGS variable, or
14612    # (2) before a word containing "conftest.", or (3) at the end.
14613    # Note that $ac_compile itself does not contain backslashes and begins
14614    # with a dollar sign (not a hyphen), so the echo should work correctly.
14615    lt_compile=`echo "$ac_compile" | $SED \
14616    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14617    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14618    -e 's:$: $lt_compiler_flag:'`
14619    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14620    (eval "$lt_compile" 2>out/conftest.err)
14621    ac_status=$?
14622    cat out/conftest.err >&5
14623    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14624    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14625    then
14626      # The compiler can only warn and ignore the option if not recognized
14627      # So say no if there are warnings
14628      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14629      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14630      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14631        lt_cv_prog_compiler_c_o_CXX=yes
14632      fi
14633    fi
14634    chmod u+w . 2>&5
14635    $RM conftest*
14636    # SGI C++ compiler will create directory out/ii_files/ for
14637    # template instantiation
14638    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14639    $RM out/* && rmdir out
14640    cd ..
14641    $RM -r conftest
14642    $RM conftest*
14643
14644 fi
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14646 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14647
14648
14649
14650
14651 hard_links=nottested
14652 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
14653   # do not overwrite the value of need_locks provided by the user
14654   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14655 $as_echo_n "checking if we can lock with hard links... " >&6; }
14656   hard_links=yes
14657   $RM conftest*
14658   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14659   touch conftest.a
14660   ln conftest.a conftest.b 2>&5 || hard_links=no
14661   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14663 $as_echo "$hard_links" >&6; }
14664   if test no = "$hard_links"; then
14665     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
14666 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
14667     need_locks=warn
14668   fi
14669 else
14670   need_locks=no
14671 fi
14672
14673
14674
14675     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14676 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14677
14678   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14679   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14680   case $host_os in
14681   aix[4-9]*)
14682     # If we're using GNU nm, then we don't want the "-C" option.
14683     # -C means demangle to GNU nm, but means don't demangle to AIX nm.
14684     # Without the "-l" option, or with the "-B" option, AIX nm treats
14685     # weak defined symbols like other global defined symbols, whereas
14686     # GNU nm marks them as "W".
14687     # While the 'weak' keyword is ignored in the Export File, we need
14688     # it in the Import File for the 'aix-soname' feature, so we have
14689     # to replace the "-B" option with "-P" for AIX nm.
14690     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14691       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'
14692     else
14693       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'
14694     fi
14695     ;;
14696   pw32*)
14697     export_symbols_cmds_CXX=$ltdll_cmds
14698     ;;
14699   cygwin* | mingw* | cegcc*)
14700     case $cc_basename in
14701     cl*)
14702       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14703       ;;
14704     *)
14705       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'
14706       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14707       ;;
14708     esac
14709     ;;
14710   *)
14711     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14712     ;;
14713   esac
14714
14715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14716 $as_echo "$ld_shlibs_CXX" >&6; }
14717 test no = "$ld_shlibs_CXX" && can_build_shared=no
14718
14719 with_gnu_ld_CXX=$with_gnu_ld
14720
14721
14722
14723
14724
14725
14726 #
14727 # Do we need to explicitly link libc?
14728 #
14729 case "x$archive_cmds_need_lc_CXX" in
14730 x|xyes)
14731   # Assume -lc should be added
14732   archive_cmds_need_lc_CXX=yes
14733
14734   if test yes,yes = "$GCC,$enable_shared"; then
14735     case $archive_cmds_CXX in
14736     *'~'*)
14737       # FIXME: we may have to deal with multi-command sequences.
14738       ;;
14739     '$CC '*)
14740       # Test whether the compiler implicitly links with -lc since on some
14741       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14742       # to ld, don't add -lc before -lgcc.
14743       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14744 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14745 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14746   $as_echo_n "(cached) " >&6
14747 else
14748   $RM conftest*
14749         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14750
14751         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14752   (eval $ac_compile) 2>&5
14753   ac_status=$?
14754   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14755   test $ac_status = 0; } 2>conftest.err; then
14756           soname=conftest
14757           lib=conftest
14758           libobjs=conftest.$ac_objext
14759           deplibs=
14760           wl=$lt_prog_compiler_wl_CXX
14761           pic_flag=$lt_prog_compiler_pic_CXX
14762           compiler_flags=-v
14763           linker_flags=-v
14764           verstring=
14765           output_objdir=.
14766           libname=conftest
14767           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14768           allow_undefined_flag_CXX=
14769           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14770   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14771   ac_status=$?
14772   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14773   test $ac_status = 0; }
14774           then
14775             lt_cv_archive_cmds_need_lc_CXX=no
14776           else
14777             lt_cv_archive_cmds_need_lc_CXX=yes
14778           fi
14779           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14780         else
14781           cat conftest.err 1>&5
14782         fi
14783         $RM conftest*
14784
14785 fi
14786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14787 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14788       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14789       ;;
14790     esac
14791   fi
14792   ;;
14793 esac
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
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     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14857 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14858
14859 library_names_spec=
14860 libname_spec='lib$name'
14861 soname_spec=
14862 shrext_cmds=.so
14863 postinstall_cmds=
14864 postuninstall_cmds=
14865 finish_cmds=
14866 finish_eval=
14867 shlibpath_var=
14868 shlibpath_overrides_runpath=unknown
14869 version_type=none
14870 dynamic_linker="$host_os ld.so"
14871 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14872 need_lib_prefix=unknown
14873 hardcode_into_libs=no
14874
14875 # when you set need_version to no, make sure it does not cause -set_version
14876 # flags to be left without arguments
14877 need_version=unknown
14878
14879
14880
14881 case $host_os in
14882 aix3*)
14883   version_type=linux # correct to gnu/linux during the next big refactor
14884   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
14885   shlibpath_var=LIBPATH
14886
14887   # AIX 3 has no versioning support, so we append a major version to the name.
14888   soname_spec='$libname$release$shared_ext$major'
14889   ;;
14890
14891 aix[4-9]*)
14892   version_type=linux # correct to gnu/linux during the next big refactor
14893   need_lib_prefix=no
14894   need_version=no
14895   hardcode_into_libs=yes
14896   if test ia64 = "$host_cpu"; then
14897     # AIX 5 supports IA64
14898     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
14899     shlibpath_var=LD_LIBRARY_PATH
14900   else
14901     # With GCC up to 2.95.x, collect2 would create an import file
14902     # for dependence libraries.  The import file would start with
14903     # the line '#! .'.  This would cause the generated library to
14904     # depend on '.', always an invalid library.  This was fixed in
14905     # development snapshots of GCC prior to 3.0.
14906     case $host_os in
14907       aix4 | aix4.[01] | aix4.[01].*)
14908       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14909            echo ' yes '
14910            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
14911         :
14912       else
14913         can_build_shared=no
14914       fi
14915       ;;
14916     esac
14917     # Using Import Files as archive members, it is possible to support
14918     # filename-based versioning of shared library archives on AIX. While
14919     # this would work for both with and without runtime linking, it will
14920     # prevent static linking of such archives. So we do filename-based
14921     # shared library versioning with .so extension only, which is used
14922     # when both runtime linking and shared linking is enabled.
14923     # Unfortunately, runtime linking may impact performance, so we do
14924     # not want this to be the default eventually. Also, we use the
14925     # versioned .so libs for executables only if there is the -brtl
14926     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
14927     # To allow for filename-based versioning support, we need to create
14928     # libNAME.so.V as an archive file, containing:
14929     # *) an Import File, referring to the versioned filename of the
14930     #    archive as well as the shared archive member, telling the
14931     #    bitwidth (32 or 64) of that shared object, and providing the
14932     #    list of exported symbols of that shared object, eventually
14933     #    decorated with the 'weak' keyword
14934     # *) the shared object with the F_LOADONLY flag set, to really avoid
14935     #    it being seen by the linker.
14936     # At run time we better use the real file rather than another symlink,
14937     # but for link time we create the symlink libNAME.so -> libNAME.so.V
14938
14939     case $with_aix_soname,$aix_use_runtimelinking in
14940     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
14941     # soname into executable. Probably we can add versioning support to
14942     # collect2, so additional links can be useful in future.
14943     aix,yes) # traditional libtool
14944       dynamic_linker='AIX unversionable lib.so'
14945       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14946       # instead of lib<name>.a to let people know that these are not
14947       # typical AIX shared libraries.
14948       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14949       ;;
14950     aix,no) # traditional AIX only
14951       dynamic_linker='AIX lib.a(lib.so.V)'
14952       # We preserve .a as extension for shared libraries through AIX4.2
14953       # and later when we are not doing run time linking.
14954       library_names_spec='$libname$release.a $libname.a'
14955       soname_spec='$libname$release$shared_ext$major'
14956       ;;
14957     svr4,*) # full svr4 only
14958       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
14959       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14960       # We do not specify a path in Import Files, so LIBPATH fires.
14961       shlibpath_overrides_runpath=yes
14962       ;;
14963     *,yes) # both, prefer svr4
14964       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
14965       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14966       # unpreferred sharedlib libNAME.a needs extra handling
14967       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"'
14968       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"'
14969       # We do not specify a path in Import Files, so LIBPATH fires.
14970       shlibpath_overrides_runpath=yes
14971       ;;
14972     *,no) # both, prefer aix
14973       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
14974       library_names_spec='$libname$release.a $libname.a'
14975       soname_spec='$libname$release$shared_ext$major'
14976       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
14977       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)'
14978       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"'
14979       ;;
14980     esac
14981     shlibpath_var=LIBPATH
14982   fi
14983   ;;
14984
14985 amigaos*)
14986   case $host_cpu in
14987   powerpc)
14988     # Since July 2007 AmigaOS4 officially supports .so libraries.
14989     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14990     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14991     ;;
14992   m68k)
14993     library_names_spec='$libname.ixlibrary $libname.a'
14994     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14995     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'
14996     ;;
14997   esac
14998   ;;
14999
15000 beos*)
15001   library_names_spec='$libname$shared_ext'
15002   dynamic_linker="$host_os ld.so"
15003   shlibpath_var=LIBRARY_PATH
15004   ;;
15005
15006 bsdi[45]*)
15007   version_type=linux # correct to gnu/linux during the next big refactor
15008   need_version=no
15009   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15010   soname_spec='$libname$release$shared_ext$major'
15011   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15012   shlibpath_var=LD_LIBRARY_PATH
15013   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15014   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15015   # the default ld.so.conf also contains /usr/contrib/lib and
15016   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15017   # libtool to hard-code these into programs
15018   ;;
15019
15020 cygwin* | mingw* | pw32* | cegcc*)
15021   version_type=windows
15022   shrext_cmds=.dll
15023   need_version=no
15024   need_lib_prefix=no
15025
15026   case $GCC,$cc_basename in
15027   yes,*)
15028     # gcc
15029     library_names_spec='$libname.dll.a'
15030     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15031     postinstall_cmds='base_file=`basename \$file`~
15032       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15033       dldir=$destdir/`dirname \$dlpath`~
15034       test -d \$dldir || mkdir -p \$dldir~
15035       $install_prog $dir/$dlname \$dldir/$dlname~
15036       chmod a+x \$dldir/$dlname~
15037       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15038         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15039       fi'
15040     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15041       dlpath=$dir/\$dldll~
15042        $RM \$dlpath'
15043     shlibpath_overrides_runpath=yes
15044
15045     case $host_os in
15046     cygwin*)
15047       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15048       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15049
15050       ;;
15051     mingw* | cegcc*)
15052       # MinGW DLLs use traditional 'lib' prefix
15053       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15054       ;;
15055     pw32*)
15056       # pw32 DLLs use 'pw' prefix rather than 'lib'
15057       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15058       ;;
15059     esac
15060     dynamic_linker='Win32 ld.exe'
15061     ;;
15062
15063   *,cl*)
15064     # Native MSVC
15065     libname_spec='$name'
15066     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15067     library_names_spec='$libname.dll.lib'
15068
15069     case $build_os in
15070     mingw*)
15071       sys_lib_search_path_spec=
15072       lt_save_ifs=$IFS
15073       IFS=';'
15074       for lt_path in $LIB
15075       do
15076         IFS=$lt_save_ifs
15077         # Let DOS variable expansion print the short 8.3 style file name.
15078         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15079         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15080       done
15081       IFS=$lt_save_ifs
15082       # Convert to MSYS style.
15083       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15084       ;;
15085     cygwin*)
15086       # Convert to unix form, then to dos form, then back to unix form
15087       # but this time dos style (no spaces!) so that the unix form looks
15088       # like /cygdrive/c/PROGRA~1:/cygdr...
15089       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15090       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15091       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15092       ;;
15093     *)
15094       sys_lib_search_path_spec=$LIB
15095       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15096         # It is most probably a Windows format PATH.
15097         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15098       else
15099         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15100       fi
15101       # FIXME: find the short name or the path components, as spaces are
15102       # common. (e.g. "Program Files" -> "PROGRA~1")
15103       ;;
15104     esac
15105
15106     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15107     postinstall_cmds='base_file=`basename \$file`~
15108       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15109       dldir=$destdir/`dirname \$dlpath`~
15110       test -d \$dldir || mkdir -p \$dldir~
15111       $install_prog $dir/$dlname \$dldir/$dlname'
15112     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15113       dlpath=$dir/\$dldll~
15114        $RM \$dlpath'
15115     shlibpath_overrides_runpath=yes
15116     dynamic_linker='Win32 link.exe'
15117     ;;
15118
15119   *)
15120     # Assume MSVC wrapper
15121     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15122     dynamic_linker='Win32 ld.exe'
15123     ;;
15124   esac
15125   # FIXME: first we should search . and the directory the executable is in
15126   shlibpath_var=PATH
15127   ;;
15128
15129 darwin* | rhapsody*)
15130   dynamic_linker="$host_os dyld"
15131   version_type=darwin
15132   need_lib_prefix=no
15133   need_version=no
15134   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
15135   soname_spec='$libname$release$major$shared_ext'
15136   shlibpath_overrides_runpath=yes
15137   shlibpath_var=DYLD_LIBRARY_PATH
15138   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15139
15140   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15141   ;;
15142
15143 dgux*)
15144   version_type=linux # correct to gnu/linux during the next big refactor
15145   need_lib_prefix=no
15146   need_version=no
15147   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15148   soname_spec='$libname$release$shared_ext$major'
15149   shlibpath_var=LD_LIBRARY_PATH
15150   ;;
15151
15152 freebsd* | dragonfly*)
15153   # DragonFly does not have aout.  When/if they implement a new
15154   # versioning mechanism, adjust this.
15155   if test -x /usr/bin/objformat; then
15156     objformat=`/usr/bin/objformat`
15157   else
15158     case $host_os in
15159     freebsd[23].*) objformat=aout ;;
15160     *) objformat=elf ;;
15161     esac
15162   fi
15163   # Handle Gentoo/FreeBSD as it was Linux
15164   case $host_vendor in
15165     gentoo)
15166       version_type=linux ;;
15167     *)
15168       version_type=freebsd-$objformat ;;
15169   esac
15170
15171   case $version_type in
15172     freebsd-elf*)
15173       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15174       soname_spec='$libname$release$shared_ext$major'
15175       need_version=no
15176       need_lib_prefix=no
15177       ;;
15178     freebsd-*)
15179       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15180       need_version=yes
15181       ;;
15182     linux)
15183       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15184       soname_spec='${libname}${release}${shared_ext}$major'
15185       need_lib_prefix=no
15186       need_version=no
15187       ;;
15188   esac
15189   shlibpath_var=LD_LIBRARY_PATH
15190   case $host_os in
15191   freebsd2.*)
15192     shlibpath_overrides_runpath=yes
15193     ;;
15194   freebsd3.[01]* | freebsdelf3.[01]*)
15195     shlibpath_overrides_runpath=yes
15196     hardcode_into_libs=yes
15197     ;;
15198   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15199   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15200     shlibpath_overrides_runpath=no
15201     hardcode_into_libs=yes
15202     ;;
15203   *) # from 4.6 on, and DragonFly
15204     shlibpath_overrides_runpath=yes
15205     hardcode_into_libs=yes
15206     ;;
15207   esac
15208   ;;
15209
15210 haiku*)
15211   version_type=linux # correct to gnu/linux during the next big refactor
15212   need_lib_prefix=no
15213   need_version=no
15214   dynamic_linker="$host_os runtime_loader"
15215   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15216   soname_spec='$libname$release$shared_ext$major'
15217   shlibpath_var=LIBRARY_PATH
15218   shlibpath_overrides_runpath=no
15219   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15220   hardcode_into_libs=yes
15221   ;;
15222
15223 hpux9* | hpux10* | hpux11*)
15224   # Give a soname corresponding to the major version so that dld.sl refuses to
15225   # link against other versions.
15226   version_type=sunos
15227   need_lib_prefix=no
15228   need_version=no
15229   case $host_cpu in
15230   ia64*)
15231     shrext_cmds='.so'
15232     hardcode_into_libs=yes
15233     dynamic_linker="$host_os dld.so"
15234     shlibpath_var=LD_LIBRARY_PATH
15235     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15236     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15237     soname_spec='$libname$release$shared_ext$major'
15238     if test 32 = "$HPUX_IA64_MODE"; then
15239       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15240       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
15241     else
15242       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15243       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
15244     fi
15245     ;;
15246   hppa*64*)
15247     shrext_cmds='.sl'
15248     hardcode_into_libs=yes
15249     dynamic_linker="$host_os dld.sl"
15250     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15251     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15252     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15253     soname_spec='$libname$release$shared_ext$major'
15254     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15255     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15256     ;;
15257   *)
15258     shrext_cmds='.sl'
15259     dynamic_linker="$host_os dld.sl"
15260     shlibpath_var=SHLIB_PATH
15261     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15262     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15263     soname_spec='$libname$release$shared_ext$major'
15264     ;;
15265   esac
15266   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15267   postinstall_cmds='chmod 555 $lib'
15268   # or fails outright, so override atomically:
15269   install_override_mode=555
15270   ;;
15271
15272 interix[3-9]*)
15273   version_type=linux # correct to gnu/linux during the next big refactor
15274   need_lib_prefix=no
15275   need_version=no
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   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15279   shlibpath_var=LD_LIBRARY_PATH
15280   shlibpath_overrides_runpath=no
15281   hardcode_into_libs=yes
15282   ;;
15283
15284 irix5* | irix6* | nonstopux*)
15285   case $host_os in
15286     nonstopux*) version_type=nonstopux ;;
15287     *)
15288         if test yes = "$lt_cv_prog_gnu_ld"; then
15289                 version_type=linux # correct to gnu/linux during the next big refactor
15290         else
15291                 version_type=irix
15292         fi ;;
15293   esac
15294   need_lib_prefix=no
15295   need_version=no
15296   soname_spec='$libname$release$shared_ext$major'
15297   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
15298   case $host_os in
15299   irix5* | nonstopux*)
15300     libsuff= shlibsuff=
15301     ;;
15302   *)
15303     case $LD in # libtool.m4 will add one of these switches to LD
15304     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15305       libsuff= shlibsuff= libmagic=32-bit;;
15306     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15307       libsuff=32 shlibsuff=N32 libmagic=N32;;
15308     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15309       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15310     *) libsuff= shlibsuff= libmagic=never-match;;
15311     esac
15312     ;;
15313   esac
15314   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15315   shlibpath_overrides_runpath=no
15316   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
15317   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
15318   hardcode_into_libs=yes
15319   ;;
15320
15321 # No shared lib support for Linux oldld, aout, or coff.
15322 linux*oldld* | linux*aout* | linux*coff*)
15323   dynamic_linker=no
15324   ;;
15325
15326 linux*android*)
15327   version_type=none # Android doesn't support versioned libraries.
15328   need_lib_prefix=no
15329   need_version=no
15330   library_names_spec='$libname$release$shared_ext'
15331   soname_spec='$libname$release$shared_ext'
15332   finish_cmds=
15333   shlibpath_var=LD_LIBRARY_PATH
15334   shlibpath_overrides_runpath=yes
15335
15336   # This implies no fast_install, which is unacceptable.
15337   # Some rework will be needed to allow for fast_install
15338   # before this can be enabled.
15339   hardcode_into_libs=yes
15340
15341   dynamic_linker='Android linker'
15342   # Don't embed -rpath directories since the linker doesn't support them.
15343   hardcode_libdir_flag_spec_CXX='-L$libdir'
15344   ;;
15345
15346 # This must be glibc/ELF.
15347 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15348   version_type=linux # correct to gnu/linux during the next big refactor
15349   need_lib_prefix=no
15350   need_version=no
15351   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15352   soname_spec='$libname$release$shared_ext$major'
15353   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15354   shlibpath_var=LD_LIBRARY_PATH
15355   shlibpath_overrides_runpath=no
15356
15357   # Some binutils ld are patched to set DT_RUNPATH
15358   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15359   $as_echo_n "(cached) " >&6
15360 else
15361   lt_cv_shlibpath_overrides_runpath=no
15362     save_LDFLAGS=$LDFLAGS
15363     save_libdir=$libdir
15364     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15365          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15366     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15367 /* end confdefs.h.  */
15368
15369 int
15370 main ()
15371 {
15372
15373   ;
15374   return 0;
15375 }
15376 _ACEOF
15377 if ac_fn_cxx_try_link "$LINENO"; then :
15378   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15379   lt_cv_shlibpath_overrides_runpath=yes
15380 fi
15381 fi
15382 rm -f core conftest.err conftest.$ac_objext \
15383     conftest$ac_exeext conftest.$ac_ext
15384     LDFLAGS=$save_LDFLAGS
15385     libdir=$save_libdir
15386
15387 fi
15388
15389   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15390
15391   # This implies no fast_install, which is unacceptable.
15392   # Some rework will be needed to allow for fast_install
15393   # before this can be enabled.
15394   hardcode_into_libs=yes
15395
15396   # Ideally, we could use ldconfig to report *all* directores which are
15397   # searched for libraries, however this is still not possible.  Aside from not
15398   # being certain /sbin/ldconfig is available, command
15399   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
15400   # even though it is searched at run-time.  Try to do the best guess by
15401   # appending ld.so.conf contents (and includes) to the search path.
15402   if test -f /etc/ld.so.conf; then
15403     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' ' '`
15404     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15405   fi
15406
15407   # We used to test for /lib/ld.so.1 and disable shared libraries on
15408   # powerpc, because MkLinux only supported shared libraries with the
15409   # GNU dynamic linker.  Since this was broken with cross compilers,
15410   # most powerpc-linux boxes support dynamic linking these days and
15411   # people can always --disable-shared, the test was removed, and we
15412   # assume the GNU/Linux dynamic linker is in use.
15413   dynamic_linker='GNU/Linux ld.so'
15414   ;;
15415
15416 netbsd*)
15417   version_type=sunos
15418   need_lib_prefix=no
15419   need_version=no
15420   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15421     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15422     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15423     dynamic_linker='NetBSD (a.out) ld.so'
15424   else
15425     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15426     soname_spec='$libname$release$shared_ext$major'
15427     dynamic_linker='NetBSD ld.elf_so'
15428   fi
15429   shlibpath_var=LD_LIBRARY_PATH
15430   shlibpath_overrides_runpath=yes
15431   hardcode_into_libs=yes
15432   ;;
15433
15434 newsos6)
15435   version_type=linux # correct to gnu/linux during the next big refactor
15436   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15437   shlibpath_var=LD_LIBRARY_PATH
15438   shlibpath_overrides_runpath=yes
15439   ;;
15440
15441 *nto* | *qnx*)
15442   version_type=qnx
15443   need_lib_prefix=no
15444   need_version=no
15445   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15446   soname_spec='$libname$release$shared_ext$major'
15447   shlibpath_var=LD_LIBRARY_PATH
15448   shlibpath_overrides_runpath=no
15449   hardcode_into_libs=yes
15450   dynamic_linker='ldqnx.so'
15451   ;;
15452
15453 openbsd* | bitrig*)
15454   version_type=sunos
15455   sys_lib_dlsearch_path_spec=/usr/lib
15456   need_lib_prefix=no
15457   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
15458     need_version=no
15459   else
15460     need_version=yes
15461   fi
15462   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15463   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15464   shlibpath_var=LD_LIBRARY_PATH
15465   shlibpath_overrides_runpath=yes
15466   ;;
15467
15468 os2*)
15469   libname_spec='$name'
15470   version_type=windows
15471   shrext_cmds=.dll
15472   need_version=no
15473   need_lib_prefix=no
15474   # OS/2 can only load a DLL with a base name of 8 characters or less.
15475   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
15476     v=$($ECHO $release$versuffix | tr -d .-);
15477     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
15478     $ECHO $n$v`$shared_ext'
15479   library_names_spec='${libname}_dll.$libext'
15480   dynamic_linker='OS/2 ld.exe'
15481   shlibpath_var=BEGINLIBPATH
15482   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15483   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15484   postinstall_cmds='base_file=`basename \$file`~
15485     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
15486     dldir=$destdir/`dirname \$dlpath`~
15487     test -d \$dldir || mkdir -p \$dldir~
15488     $install_prog $dir/$dlname \$dldir/$dlname~
15489     chmod a+x \$dldir/$dlname~
15490     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15491       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15492     fi'
15493   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
15494     dlpath=$dir/\$dldll~
15495     $RM \$dlpath'
15496   ;;
15497
15498 osf3* | osf4* | osf5*)
15499   version_type=osf
15500   need_lib_prefix=no
15501   need_version=no
15502   soname_spec='$libname$release$shared_ext$major'
15503   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15504   shlibpath_var=LD_LIBRARY_PATH
15505   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15506   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15507   ;;
15508
15509 rdos*)
15510   dynamic_linker=no
15511   ;;
15512
15513 solaris*)
15514   version_type=linux # correct to gnu/linux during the next big refactor
15515   need_lib_prefix=no
15516   need_version=no
15517   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15518   soname_spec='$libname$release$shared_ext$major'
15519   shlibpath_var=LD_LIBRARY_PATH
15520   shlibpath_overrides_runpath=yes
15521   hardcode_into_libs=yes
15522   # ldd complains unless libraries are executable
15523   postinstall_cmds='chmod +x $lib'
15524   ;;
15525
15526 sunos4*)
15527   version_type=sunos
15528   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15529   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15530   shlibpath_var=LD_LIBRARY_PATH
15531   shlibpath_overrides_runpath=yes
15532   if test yes = "$with_gnu_ld"; then
15533     need_lib_prefix=no
15534   fi
15535   need_version=yes
15536   ;;
15537
15538 sysv4 | sysv4.3*)
15539   version_type=linux # correct to gnu/linux during the next big refactor
15540   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15541   soname_spec='$libname$release$shared_ext$major'
15542   shlibpath_var=LD_LIBRARY_PATH
15543   case $host_vendor in
15544     sni)
15545       shlibpath_overrides_runpath=no
15546       need_lib_prefix=no
15547       runpath_var=LD_RUN_PATH
15548       ;;
15549     siemens)
15550       need_lib_prefix=no
15551       ;;
15552     motorola)
15553       need_lib_prefix=no
15554       need_version=no
15555       shlibpath_overrides_runpath=no
15556       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15557       ;;
15558   esac
15559   ;;
15560
15561 sysv4*MP*)
15562   if test -d /usr/nec; then
15563     version_type=linux # correct to gnu/linux during the next big refactor
15564     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
15565     soname_spec='$libname$shared_ext.$major'
15566     shlibpath_var=LD_LIBRARY_PATH
15567   fi
15568   ;;
15569
15570 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15571   version_type=sco
15572   need_lib_prefix=no
15573   need_version=no
15574   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
15575   soname_spec='$libname$release$shared_ext$major'
15576   shlibpath_var=LD_LIBRARY_PATH
15577   shlibpath_overrides_runpath=yes
15578   hardcode_into_libs=yes
15579   if test yes = "$with_gnu_ld"; then
15580     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15581   else
15582     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15583     case $host_os in
15584       sco3.2v5*)
15585         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15586         ;;
15587     esac
15588   fi
15589   sys_lib_dlsearch_path_spec='/usr/lib'
15590   ;;
15591
15592 tpf*)
15593   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15594   version_type=linux # correct to gnu/linux during the next big refactor
15595   need_lib_prefix=no
15596   need_version=no
15597   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15598   shlibpath_var=LD_LIBRARY_PATH
15599   shlibpath_overrides_runpath=no
15600   hardcode_into_libs=yes
15601   ;;
15602
15603 uts4*)
15604   version_type=linux # correct to gnu/linux during the next big refactor
15605   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15606   soname_spec='$libname$release$shared_ext$major'
15607   shlibpath_var=LD_LIBRARY_PATH
15608   ;;
15609
15610 *)
15611   dynamic_linker=no
15612   ;;
15613 esac
15614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15615 $as_echo "$dynamic_linker" >&6; }
15616 test no = "$dynamic_linker" && can_build_shared=no
15617
15618 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15619 if test yes = "$GCC"; then
15620   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15621 fi
15622
15623 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
15624   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
15625 fi
15626
15627 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
15628   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
15629 fi
15630
15631 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
15632 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
15633
15634 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
15635 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
15636
15637 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
15638 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
15639
15640
15641
15642
15643
15644
15645
15646
15647
15648
15649
15650
15651
15652
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     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15680 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15681 hardcode_action_CXX=
15682 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15683    test -n "$runpath_var_CXX" ||
15684    test yes = "$hardcode_automatic_CXX"; then
15685
15686   # We can hardcode non-existent directories.
15687   if test no != "$hardcode_direct_CXX" &&
15688      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15689      # have to relink, otherwise we might link with an installed library
15690      # when we should be linking with a yet-to-be-installed one
15691      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
15692      test no != "$hardcode_minus_L_CXX"; then
15693     # Linking always hardcodes the temporary library directory.
15694     hardcode_action_CXX=relink
15695   else
15696     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15697     hardcode_action_CXX=immediate
15698   fi
15699 else
15700   # We cannot hardcode anything, or else we can only hardcode existing
15701   # directories.
15702   hardcode_action_CXX=unsupported
15703 fi
15704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15705 $as_echo "$hardcode_action_CXX" >&6; }
15706
15707 if test relink = "$hardcode_action_CXX" ||
15708    test yes = "$inherit_rpath_CXX"; then
15709   # Fast installation is not supported
15710   enable_fast_install=no
15711 elif test yes = "$shlibpath_overrides_runpath" ||
15712      test no = "$enable_shared"; then
15713   # Fast installation is not necessary
15714   enable_fast_install=needless
15715 fi
15716
15717
15718
15719
15720
15721
15722
15723   fi # test -n "$compiler"
15724
15725   CC=$lt_save_CC
15726   CFLAGS=$lt_save_CFLAGS
15727   LDCXX=$LD
15728   LD=$lt_save_LD
15729   GCC=$lt_save_GCC
15730   with_gnu_ld=$lt_save_with_gnu_ld
15731   lt_cv_path_LDCXX=$lt_cv_path_LD
15732   lt_cv_path_LD=$lt_save_path_LD
15733   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15734   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15735 fi # test yes != "$_lt_caught_CXX_error"
15736
15737 ac_ext=c
15738 ac_cpp='$CPP $CPPFLAGS'
15739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15742
15743
15744 # Find a good install program.  We prefer a C program (faster),
15745 # so one script is as good as another.  But avoid the broken or
15746 # incompatible versions:
15747 # SysV /etc/install, /usr/sbin/install
15748 # SunOS /usr/etc/install
15749 # IRIX /sbin/install
15750 # AIX /bin/install
15751 # AmigaOS /C/install, which installs bootblocks on floppy discs
15752 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
15753 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
15754 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
15755 # OS/2's system install, which has a completely different semantic
15756 # ./install, which can be erroneously created by make from ./install.sh.
15757 # Reject install programs that cannot install multiple files.
15758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
15759 $as_echo_n "checking for a BSD-compatible install... " >&6; }
15760 if test -z "$INSTALL"; then
15761 if ${ac_cv_path_install+:} false; then :
15762   $as_echo_n "(cached) " >&6
15763 else
15764   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15765 for as_dir in $PATH
15766 do
15767   IFS=$as_save_IFS
15768   test -z "$as_dir" && as_dir=.
15769     # Account for people who put trailing slashes in PATH elements.
15770 case $as_dir/ in #((
15771   ./ | .// | /[cC]/* | \
15772   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
15773   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
15774   /usr/ucb/* ) ;;
15775   *)
15776     # OSF1 and SCO ODT 3.0 have their own names for install.
15777     # Don't use installbsd from OSF since it installs stuff as root
15778     # by default.
15779     for ac_prog in ginstall scoinst install; do
15780       for ac_exec_ext in '' $ac_executable_extensions; do
15781         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
15782           if test $ac_prog = install &&
15783             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15784             # AIX install.  It has an incompatible calling convention.
15785             :
15786           elif test $ac_prog = install &&
15787             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15788             # program-specific install script used by HP pwplus--don't use.
15789             :
15790           else
15791             rm -rf conftest.one conftest.two conftest.dir
15792             echo one > conftest.one
15793             echo two > conftest.two
15794             mkdir conftest.dir
15795             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
15796               test -s conftest.one && test -s conftest.two &&
15797               test -s conftest.dir/conftest.one &&
15798               test -s conftest.dir/conftest.two
15799             then
15800               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
15801               break 3
15802             fi
15803           fi
15804         fi
15805       done
15806     done
15807     ;;
15808 esac
15809
15810   done
15811 IFS=$as_save_IFS
15812
15813 rm -rf conftest.one conftest.two conftest.dir
15814
15815 fi
15816   if test "${ac_cv_path_install+set}" = set; then
15817     INSTALL=$ac_cv_path_install
15818   else
15819     # As a last resort, use the slow shell script.  Don't cache a
15820     # value for INSTALL within a source directory, because that will
15821     # break other packages using the cache if that directory is
15822     # removed, or if the value is a relative name.
15823     INSTALL=$ac_install_sh
15824   fi
15825 fi
15826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
15827 $as_echo "$INSTALL" >&6; }
15828
15829 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
15830 # It thinks the first close brace ends the variable substitution.
15831 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
15832
15833 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
15834
15835 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
15836
15837
15838 if test "$GCC" = yes ; then
15839                         OLDCFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wstrict-prototypes"
15840     CFLAGS="$OLDCFLAGS -fexceptions"
15841     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -fexceptions" >&5
15842 $as_echo_n "checking whether $CC accepts -fexceptions... " >&6; }
15843     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15844 /* end confdefs.h.  */
15845
15846 int
15847 main ()
15848 {
15849
15850   ;
15851   return 0;
15852 }
15853 _ACEOF
15854 if ac_fn_c_try_link "$LINENO"; then :
15855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15856 $as_echo "yes" >&6; }
15857 else
15858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15859 $as_echo "no" >&6; }; CFLAGS="$OLDCFLAGS"
15860 fi
15861 rm -f core conftest.err conftest.$ac_objext \
15862     conftest$ac_exeext conftest.$ac_ext
15863     if test "x$CXXFLAGS" = x ; then
15864     CXXFLAGS=`echo "$CFLAGS" | sed 's/ -Wmissing-prototypes -Wstrict-prototypes//'`
15865     fi
15866 fi
15867
15868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15869 $as_echo_n "checking for ANSI C header files... " >&6; }
15870 if ${ac_cv_header_stdc+:} false; then :
15871   $as_echo_n "(cached) " >&6
15872 else
15873   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15874 /* end confdefs.h.  */
15875 #include <stdlib.h>
15876 #include <stdarg.h>
15877 #include <string.h>
15878 #include <float.h>
15879
15880 int
15881 main ()
15882 {
15883
15884   ;
15885   return 0;
15886 }
15887 _ACEOF
15888 if ac_fn_c_try_compile "$LINENO"; then :
15889   ac_cv_header_stdc=yes
15890 else
15891   ac_cv_header_stdc=no
15892 fi
15893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15894
15895 if test $ac_cv_header_stdc = yes; then
15896   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15897   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15898 /* end confdefs.h.  */
15899 #include <string.h>
15900
15901 _ACEOF
15902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15903   $EGREP "memchr" >/dev/null 2>&1; then :
15904
15905 else
15906   ac_cv_header_stdc=no
15907 fi
15908 rm -f conftest*
15909
15910 fi
15911
15912 if test $ac_cv_header_stdc = yes; then
15913   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15914   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15915 /* end confdefs.h.  */
15916 #include <stdlib.h>
15917
15918 _ACEOF
15919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15920   $EGREP "free" >/dev/null 2>&1; then :
15921
15922 else
15923   ac_cv_header_stdc=no
15924 fi
15925 rm -f conftest*
15926
15927 fi
15928
15929 if test $ac_cv_header_stdc = yes; then
15930   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15931   if test "$cross_compiling" = yes; then :
15932   :
15933 else
15934   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15935 /* end confdefs.h.  */
15936 #include <ctype.h>
15937 #include <stdlib.h>
15938 #if ((' ' & 0x0FF) == 0x020)
15939 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15940 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15941 #else
15942 # define ISLOWER(c) \
15943                    (('a' <= (c) && (c) <= 'i') \
15944                      || ('j' <= (c) && (c) <= 'r') \
15945                      || ('s' <= (c) && (c) <= 'z'))
15946 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15947 #endif
15948
15949 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15950 int
15951 main ()
15952 {
15953   int i;
15954   for (i = 0; i < 256; i++)
15955     if (XOR (islower (i), ISLOWER (i))
15956         || toupper (i) != TOUPPER (i))
15957       return 2;
15958   return 0;
15959 }
15960 _ACEOF
15961 if ac_fn_c_try_run "$LINENO"; then :
15962
15963 else
15964   ac_cv_header_stdc=no
15965 fi
15966 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15967   conftest.$ac_objext conftest.beam conftest.$ac_ext
15968 fi
15969
15970 fi
15971 fi
15972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15973 $as_echo "$ac_cv_header_stdc" >&6; }
15974 if test $ac_cv_header_stdc = yes; then
15975
15976 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15977
15978 fi
15979
15980
15981
15982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15983 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15984 if ${ac_cv_c_bigendian+:} false; then :
15985   $as_echo_n "(cached) " >&6
15986 else
15987   ac_cv_c_bigendian=unknown
15988 # See if sys/param.h defines the BYTE_ORDER macro.
15989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15990 /* end confdefs.h.  */
15991 #include <sys/types.h>
15992 #include <sys/param.h>
15993 int
15994 main ()
15995 {
15996
15997 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
15998  bogus endian macros
15999 #endif
16000   ;
16001   return 0;
16002 }
16003 _ACEOF
16004 if ac_fn_c_try_compile "$LINENO"; then :
16005   # It does; now see whether it defined to BIG_ENDIAN or not.
16006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16007 /* end confdefs.h.  */
16008 #include <sys/types.h>
16009 #include <sys/param.h>
16010 int
16011 main ()
16012 {
16013
16014 #if BYTE_ORDER != BIG_ENDIAN
16015  not big endian
16016 #endif
16017   ;
16018   return 0;
16019 }
16020 _ACEOF
16021 if ac_fn_c_try_compile "$LINENO"; then :
16022   ac_cv_c_bigendian=yes
16023 else
16024   ac_cv_c_bigendian=no
16025 fi
16026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16027 fi
16028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16029 if test $ac_cv_c_bigendian = unknown; then
16030 if test "$cross_compiling" = yes; then :
16031    echo $ac_n "cross-compiling... " 2>&6
16032 else
16033   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16034 /* end confdefs.h.  */
16035 main () {
16036   /* Are we little or big endian?  From Harbison&Steele.  */
16037   union
16038   {
16039     long l;
16040     char c[sizeof (long)];
16041   } u;
16042   u.l = 1;
16043   exit (u.c[sizeof (long) - 1] == 1);
16044 }
16045 _ACEOF
16046 if ac_fn_c_try_run "$LINENO"; then :
16047   ac_cv_c_bigendian=no
16048 else
16049   ac_cv_c_bigendian=yes
16050 fi
16051 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16052   conftest.$ac_objext conftest.beam conftest.$ac_ext
16053 fi
16054
16055 fi
16056 fi
16057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16058 $as_echo "$ac_cv_c_bigendian" >&6; }
16059 if test $ac_cv_c_bigendian = unknown; then
16060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to probe for byte ordering" >&5
16061 $as_echo_n "checking to probe for byte ordering... " >&6; }
16062
16063 cat >conftest.c <<EOF
16064 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16065 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16066 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
16067 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16068 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16069 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
16070 int main() { _ascii (); _ebcdic (); return 0; }
16071 EOF
16072  if test -f conftest.c ; then
16073      if ${CC-cc} -c conftest.c -o conftest.o && test -f conftest.o ; then
16074         if test `grep -l BIGenDianSyS conftest.o` ; then
16075            echo $ac_n ' big endian probe OK, ' 1>&6
16076            ac_cv_c_bigendian=yes
16077         fi
16078         if test `grep -l LiTTleEnDian conftest.o` ; then
16079            echo $ac_n ' little endian probe OK, ' 1>&6
16080            if test $ac_cv_c_bigendian = yes ; then
16081             ac_cv_c_bigendian=unknown;
16082            else
16083             ac_cv_c_bigendian=no
16084            fi
16085         fi
16086         echo $ac_n 'guessing bigendian ...  ' >&6
16087      fi
16088   fi
16089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16090 $as_echo "$ac_cv_c_bigendian" >&6; }
16091 fi
16092 if test $ac_cv_c_bigendian = yes; then
16093
16094 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16095
16096   BYTEORDER=4321
16097 else
16098   BYTEORDER=1234
16099 fi
16100
16101 cat >>confdefs.h <<_ACEOF
16102 #define BYTEORDER $BYTEORDER
16103 _ACEOF
16104
16105 if test $ac_cv_c_bigendian = unknown; then
16106   as_fn_error please pre-set ac_cv_c_bigendian "unknown endianess - sorry" "$LINENO" 5
16107 fi
16108
16109
16110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16111 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16112 if ${ac_cv_c_const+:} false; then :
16113   $as_echo_n "(cached) " >&6
16114 else
16115   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16116 /* end confdefs.h.  */
16117
16118 int
16119 main ()
16120 {
16121
16122 #ifndef __cplusplus
16123   /* Ultrix mips cc rejects this sort of thing.  */
16124   typedef int charset[2];
16125   const charset cs = { 0, 0 };
16126   /* SunOS 4.1.1 cc rejects this.  */
16127   char const *const *pcpcc;
16128   char **ppc;
16129   /* NEC SVR4.0.2 mips cc rejects this.  */
16130   struct point {int x, y;};
16131   static struct point const zero = {0,0};
16132   /* AIX XL C 1.02.0.0 rejects this.
16133      It does not let you subtract one const X* pointer from another in
16134      an arm of an if-expression whose if-part is not a constant
16135      expression */
16136   const char *g = "string";
16137   pcpcc = &g + (g ? g-g : 0);
16138   /* HPUX 7.0 cc rejects these. */
16139   ++pcpcc;
16140   ppc = (char**) pcpcc;
16141   pcpcc = (char const *const *) ppc;
16142   { /* SCO 3.2v4 cc rejects this sort of thing.  */
16143     char tx;
16144     char *t = &tx;
16145     char const *s = 0 ? (char *) 0 : (char const *) 0;
16146
16147     *t++ = 0;
16148     if (s) return 0;
16149   }
16150   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
16151     int x[] = {25, 17};
16152     const int *foo = &x[0];
16153     ++foo;
16154   }
16155   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16156     typedef const int *iptr;
16157     iptr p = 0;
16158     ++p;
16159   }
16160   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
16161        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16162     struct s { int j; const int *ap[3]; } bx;
16163     struct s *b = &bx; b->j = 5;
16164   }
16165   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16166     const int foo = 10;
16167     if (!foo) return 0;
16168   }
16169   return !cs[0] && !zero.x;
16170 #endif
16171
16172   ;
16173   return 0;
16174 }
16175 _ACEOF
16176 if ac_fn_c_try_compile "$LINENO"; then :
16177   ac_cv_c_const=yes
16178 else
16179   ac_cv_c_const=no
16180 fi
16181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16182 fi
16183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16184 $as_echo "$ac_cv_c_const" >&6; }
16185 if test $ac_cv_c_const = no; then
16186
16187 $as_echo "#define const /**/" >>confdefs.h
16188
16189 fi
16190
16191 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16192 if test "x$ac_cv_type_size_t" = xyes; then :
16193
16194 else
16195
16196 cat >>confdefs.h <<_ACEOF
16197 #define size_t unsigned int
16198 _ACEOF
16199
16200 fi
16201
16202 for ac_func in memmove bcopy
16203 do :
16204   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16205 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16206 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16207   cat >>confdefs.h <<_ACEOF
16208 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16209 _ACEOF
16210
16211 fi
16212 done
16213
16214
16215 for ac_header in fcntl.h unistd.h
16216 do :
16217   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16218 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16219 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16220   cat >>confdefs.h <<_ACEOF
16221 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16222 _ACEOF
16223
16224 fi
16225
16226 done
16227
16228 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
16229 if test "x$ac_cv_type_off_t" = xyes; then :
16230
16231 else
16232
16233 cat >>confdefs.h <<_ACEOF
16234 #define off_t long int
16235 _ACEOF
16236
16237 fi
16238
16239
16240
16241
16242   for ac_header in $ac_header_list
16243 do :
16244   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16245 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16246 "
16247 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16248   cat >>confdefs.h <<_ACEOF
16249 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16250 _ACEOF
16251
16252 fi
16253
16254 done
16255
16256
16257
16258
16259
16260
16261
16262
16263 for ac_func in getpagesize
16264 do :
16265   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
16266 if test "x$ac_cv_func_getpagesize" = xyes; then :
16267   cat >>confdefs.h <<_ACEOF
16268 #define HAVE_GETPAGESIZE 1
16269 _ACEOF
16270
16271 fi
16272 done
16273
16274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
16275 $as_echo_n "checking for working mmap... " >&6; }
16276 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
16277   $as_echo_n "(cached) " >&6
16278 else
16279   if test "$cross_compiling" = yes; then :
16280   ac_cv_func_mmap_fixed_mapped=no
16281 else
16282   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16283 /* end confdefs.h.  */
16284 $ac_includes_default
16285 /* malloc might have been renamed as rpl_malloc. */
16286 #undef malloc
16287
16288 /* Thanks to Mike Haertel and Jim Avera for this test.
16289    Here is a matrix of mmap possibilities:
16290         mmap private not fixed
16291         mmap private fixed at somewhere currently unmapped
16292         mmap private fixed at somewhere already mapped
16293         mmap shared not fixed
16294         mmap shared fixed at somewhere currently unmapped
16295         mmap shared fixed at somewhere already mapped
16296    For private mappings, we should verify that changes cannot be read()
16297    back from the file, nor mmap's back from the file at a different
16298    address.  (There have been systems where private was not correctly
16299    implemented like the infamous i386 svr4.0, and systems where the
16300    VM page cache was not coherent with the file system buffer cache
16301    like early versions of FreeBSD and possibly contemporary NetBSD.)
16302    For shared mappings, we should conversely verify that changes get
16303    propagated back to all the places they're supposed to be.
16304
16305    Grep wants private fixed already mapped.
16306    The main things grep needs to know about mmap are:
16307    * does it exist and is it safe to write into the mmap'd area
16308    * how to use it (BSD variants)  */
16309
16310 #include <fcntl.h>
16311 #include <sys/mman.h>
16312
16313 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
16314 char *malloc ();
16315 #endif
16316
16317 /* This mess was copied from the GNU getpagesize.h.  */
16318 #ifndef HAVE_GETPAGESIZE
16319 # ifdef _SC_PAGESIZE
16320 #  define getpagesize() sysconf(_SC_PAGESIZE)
16321 # else /* no _SC_PAGESIZE */
16322 #  ifdef HAVE_SYS_PARAM_H
16323 #   include <sys/param.h>
16324 #   ifdef EXEC_PAGESIZE
16325 #    define getpagesize() EXEC_PAGESIZE
16326 #   else /* no EXEC_PAGESIZE */
16327 #    ifdef NBPG
16328 #     define getpagesize() NBPG * CLSIZE
16329 #     ifndef CLSIZE
16330 #      define CLSIZE 1
16331 #     endif /* no CLSIZE */
16332 #    else /* no NBPG */
16333 #     ifdef NBPC
16334 #      define getpagesize() NBPC
16335 #     else /* no NBPC */
16336 #      ifdef PAGESIZE
16337 #       define getpagesize() PAGESIZE
16338 #      endif /* PAGESIZE */
16339 #     endif /* no NBPC */
16340 #    endif /* no NBPG */
16341 #   endif /* no EXEC_PAGESIZE */
16342 #  else /* no HAVE_SYS_PARAM_H */
16343 #   define getpagesize() 8192   /* punt totally */
16344 #  endif /* no HAVE_SYS_PARAM_H */
16345 # endif /* no _SC_PAGESIZE */
16346
16347 #endif /* no HAVE_GETPAGESIZE */
16348
16349 int
16350 main ()
16351 {
16352   char *data, *data2, *data3;
16353   const char *cdata2;
16354   int i, pagesize;
16355   int fd, fd2;
16356
16357   pagesize = getpagesize ();
16358
16359   /* First, make a file with some known garbage in it. */
16360   data = (char *) malloc (pagesize);
16361   if (!data)
16362     return 1;
16363   for (i = 0; i < pagesize; ++i)
16364     *(data + i) = rand ();
16365   umask (0);
16366   fd = creat ("conftest.mmap", 0600);
16367   if (fd < 0)
16368     return 2;
16369   if (write (fd, data, pagesize) != pagesize)
16370     return 3;
16371   close (fd);
16372
16373   /* Next, check that the tail of a page is zero-filled.  File must have
16374      non-zero length, otherwise we risk SIGBUS for entire page.  */
16375   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
16376   if (fd2 < 0)
16377     return 4;
16378   cdata2 = "";
16379   if (write (fd2, cdata2, 1) != 1)
16380     return 5;
16381   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
16382   if (data2 == MAP_FAILED)
16383     return 6;
16384   for (i = 0; i < pagesize; ++i)
16385     if (*(data2 + i))
16386       return 7;
16387   close (fd2);
16388   if (munmap (data2, pagesize))
16389     return 8;
16390
16391   /* Next, try to mmap the file at a fixed address which already has
16392      something else allocated at it.  If we can, also make sure that
16393      we see the same garbage.  */
16394   fd = open ("conftest.mmap", O_RDWR);
16395   if (fd < 0)
16396     return 9;
16397   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16398                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
16399     return 10;
16400   for (i = 0; i < pagesize; ++i)
16401     if (*(data + i) != *(data2 + i))
16402       return 11;
16403
16404   /* Finally, make sure that changes to the mapped area do not
16405      percolate back to the file as seen by read().  (This is a bug on
16406      some variants of i386 svr4.0.)  */
16407   for (i = 0; i < pagesize; ++i)
16408     *(data2 + i) = *(data2 + i) + 1;
16409   data3 = (char *) malloc (pagesize);
16410   if (!data3)
16411     return 12;
16412   if (read (fd, data3, pagesize) != pagesize)
16413     return 13;
16414   for (i = 0; i < pagesize; ++i)
16415     if (*(data + i) != *(data3 + i))
16416       return 14;
16417   close (fd);
16418   return 0;
16419 }
16420 _ACEOF
16421 if ac_fn_c_try_run "$LINENO"; then :
16422   ac_cv_func_mmap_fixed_mapped=yes
16423 else
16424   ac_cv_func_mmap_fixed_mapped=no
16425 fi
16426 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16427   conftest.$ac_objext conftest.beam conftest.$ac_ext
16428 fi
16429
16430 fi
16431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
16432 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
16433 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16434
16435 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
16436
16437 fi
16438 rm -f conftest.mmap conftest.txt
16439
16440
16441 if test "$ac_cv_func_mmap_fixed_mapped" = "yes"; then
16442     FILEMAP=unixfilemap
16443 else
16444     FILEMAP=readfilemap
16445 fi
16446
16447
16448
16449 # AC_CPP_FUNC
16450 # ------------------ #
16451 # Checks to see if ANSI C99 CPP variable __func__ works.
16452 # If not, perhaps __FUNCTION__ works instead.
16453 # If not, we'll just define __func__ to "".
16454 # AC_CPP_FUNC
16455
16456    case $ac_cv_prog_cc_stdc in #(
16457   no) :
16458     ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
16459   *) :
16460     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
16461 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
16462 if ${ac_cv_prog_cc_c99+:} false; then :
16463   $as_echo_n "(cached) " >&6
16464 else
16465   ac_cv_prog_cc_c99=no
16466 ac_save_CC=$CC
16467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16468 /* end confdefs.h.  */
16469 #include <stdarg.h>
16470 #include <stdbool.h>
16471 #include <stdlib.h>
16472 #include <wchar.h>
16473 #include <stdio.h>
16474
16475 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
16476 #define debug(...) fprintf (stderr, __VA_ARGS__)
16477 #define showlist(...) puts (#__VA_ARGS__)
16478 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
16479 static void
16480 test_varargs_macros (void)
16481 {
16482   int x = 1234;
16483   int y = 5678;
16484   debug ("Flag");
16485   debug ("X = %d\n", x);
16486   showlist (The first, second, and third items.);
16487   report (x>y, "x is %d but y is %d", x, y);
16488 }
16489
16490 // Check long long types.
16491 #define BIG64 18446744073709551615ull
16492 #define BIG32 4294967295ul
16493 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
16494 #if !BIG_OK
16495   your preprocessor is broken;
16496 #endif
16497 #if BIG_OK
16498 #else
16499   your preprocessor is broken;
16500 #endif
16501 static long long int bignum = -9223372036854775807LL;
16502 static unsigned long long int ubignum = BIG64;
16503
16504 struct incomplete_array
16505 {
16506   int datasize;
16507   double data[];
16508 };
16509
16510 struct named_init {
16511   int number;
16512   const wchar_t *name;
16513   double average;
16514 };
16515
16516 typedef const char *ccp;
16517
16518 static inline int
16519 test_restrict (ccp restrict text)
16520 {
16521   // See if C++-style comments work.
16522   // Iterate through items via the restricted pointer.
16523   // Also check for declarations in for loops.
16524   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
16525     continue;
16526   return 0;
16527 }
16528
16529 // Check varargs and va_copy.
16530 static void
16531 test_varargs (const char *format, ...)
16532 {
16533   va_list args;
16534   va_start (args, format);
16535   va_list args_copy;
16536   va_copy (args_copy, args);
16537
16538   const char *str;
16539   int number;
16540   float fnumber;
16541
16542   while (*format)
16543     {
16544       switch (*format++)
16545         {
16546         case 's': // string
16547           str = va_arg (args_copy, const char *);
16548           break;
16549         case 'd': // int
16550           number = va_arg (args_copy, int);
16551           break;
16552         case 'f': // float
16553           fnumber = va_arg (args_copy, double);
16554           break;
16555         default:
16556           break;
16557         }
16558     }
16559   va_end (args_copy);
16560   va_end (args);
16561 }
16562
16563 int
16564 main ()
16565 {
16566
16567   // Check bool.
16568   _Bool success = false;
16569
16570   // Check restrict.
16571   if (test_restrict ("String literal") == 0)
16572     success = true;
16573   char *restrict newvar = "Another string";
16574
16575   // Check varargs.
16576   test_varargs ("s, d' f .", "string", 65, 34.234);
16577   test_varargs_macros ();
16578
16579   // Check flexible array members.
16580   struct incomplete_array *ia =
16581     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
16582   ia->datasize = 10;
16583   for (int i = 0; i < ia->datasize; ++i)
16584     ia->data[i] = i * 1.234;
16585
16586   // Check named initializers.
16587   struct named_init ni = {
16588     .number = 34,
16589     .name = L"Test wide string",
16590     .average = 543.34343,
16591   };
16592
16593   ni.number = 58;
16594
16595   int dynamic_array[ni.number];
16596   dynamic_array[ni.number - 1] = 543;
16597
16598   // work around unused variable warnings
16599   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
16600           || dynamic_array[ni.number - 1] != 543);
16601
16602   ;
16603   return 0;
16604 }
16605 _ACEOF
16606 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
16607 do
16608   CC="$ac_save_CC $ac_arg"
16609   if ac_fn_c_try_compile "$LINENO"; then :
16610   ac_cv_prog_cc_c99=$ac_arg
16611 fi
16612 rm -f core conftest.err conftest.$ac_objext
16613   test "x$ac_cv_prog_cc_c99" != "xno" && break
16614 done
16615 rm -f conftest.$ac_ext
16616 CC=$ac_save_CC
16617
16618 fi
16619 # AC_CACHE_VAL
16620 case "x$ac_cv_prog_cc_c99" in
16621   x)
16622     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
16623 $as_echo "none needed" >&6; } ;;
16624   xno)
16625     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
16626 $as_echo "unsupported" >&6; } ;;
16627   *)
16628     CC="$CC $ac_cv_prog_cc_c99"
16629     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
16630 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
16631 esac
16632 if test "x$ac_cv_prog_cc_c99" != xno; then :
16633   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
16634 else
16635   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
16636 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
16637 if ${ac_cv_prog_cc_c89+:} false; then :
16638   $as_echo_n "(cached) " >&6
16639 else
16640   ac_cv_prog_cc_c89=no
16641 ac_save_CC=$CC
16642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16643 /* end confdefs.h.  */
16644 #include <stdarg.h>
16645 #include <stdio.h>
16646 struct stat;
16647 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
16648 struct buf { int x; };
16649 FILE * (*rcsopen) (struct buf *, struct stat *, int);
16650 static char *e (p, i)
16651      char **p;
16652      int i;
16653 {
16654   return p[i];
16655 }
16656 static char *f (char * (*g) (char **, int), char **p, ...)
16657 {
16658   char *s;
16659   va_list v;
16660   va_start (v,p);
16661   s = g (p, va_arg (v,int));
16662   va_end (v);
16663   return s;
16664 }
16665
16666 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
16667    function prototypes and stuff, but not '\xHH' hex character constants.
16668    These don't provoke an error unfortunately, instead are silently treated
16669    as 'x'.  The following induces an error, until -std is added to get
16670    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
16671    array size at least.  It's necessary to write '\x00'==0 to get something
16672    that's true only with -std.  */
16673 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
16674
16675 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
16676    inside strings and character constants.  */
16677 #define FOO(x) 'x'
16678 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
16679
16680 int test (int i, double x);
16681 struct s1 {int (*f) (int a);};
16682 struct s2 {int (*f) (double a);};
16683 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
16684 int argc;
16685 char **argv;
16686 int
16687 main ()
16688 {
16689 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
16690   ;
16691   return 0;
16692 }
16693 _ACEOF
16694 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
16695         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
16696 do
16697   CC="$ac_save_CC $ac_arg"
16698   if ac_fn_c_try_compile "$LINENO"; then :
16699   ac_cv_prog_cc_c89=$ac_arg
16700 fi
16701 rm -f core conftest.err conftest.$ac_objext
16702   test "x$ac_cv_prog_cc_c89" != "xno" && break
16703 done
16704 rm -f conftest.$ac_ext
16705 CC=$ac_save_CC
16706
16707 fi
16708 # AC_CACHE_VAL
16709 case "x$ac_cv_prog_cc_c89" in
16710   x)
16711     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
16712 $as_echo "none needed" >&6; } ;;
16713   xno)
16714     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
16715 $as_echo "unsupported" >&6; } ;;
16716   *)
16717     CC="$CC $ac_cv_prog_cc_c89"
16718     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
16719 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
16720 esac
16721 if test "x$ac_cv_prog_cc_c89" != xno; then :
16722   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
16723 else
16724   ac_cv_prog_cc_stdc=no
16725 fi
16726
16727 fi
16728  ;;
16729 esac
16730   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
16731 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
16732   if ${ac_cv_prog_cc_stdc+:} false; then :
16733   $as_echo_n "(cached) " >&6
16734 fi
16735
16736   case $ac_cv_prog_cc_stdc in #(
16737   no) :
16738     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
16739 $as_echo "unsupported" >&6; } ;; #(
16740   '') :
16741     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
16742 $as_echo "none needed" >&6; } ;; #(
16743   *) :
16744     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
16745 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
16746 esac
16747
16748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C99-conforming __func__" >&5
16749 $as_echo_n "checking for an ANSI C99-conforming __func__... " >&6; }
16750 if ${ac_cv_cpp_func+:} false; then :
16751   $as_echo_n "(cached) " >&6
16752 else
16753   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16754 /* end confdefs.h.  */
16755
16756 int
16757 main ()
16758 {
16759 char *foo = __func__;
16760   ;
16761   return 0;
16762 }
16763 _ACEOF
16764 if ac_fn_c_try_compile "$LINENO"; then :
16765   ac_cv_cpp_func=yes
16766 else
16767   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16768 /* end confdefs.h.  */
16769
16770 int
16771 main ()
16772 {
16773 char *foo = __FUNCTION__;
16774   ;
16775   return 0;
16776 }
16777 _ACEOF
16778 if ac_fn_c_try_compile "$LINENO"; then :
16779   ac_cv_cpp_func=__FUNCTION__
16780 else
16781   ac_cv_cpp_func=no
16782 fi
16783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16784 fi
16785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16786 fi
16787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_func" >&5
16788 $as_echo "$ac_cv_cpp_func" >&6; }
16789 if test $ac_cv_cpp_func = __FUNCTION__; then
16790
16791 $as_echo "#define __func__ __FUNCTION__" >>confdefs.h
16792
16793 elif test $ac_cv_cpp_func = no; then
16794
16795 $as_echo "#define __func__ \"\"" >>confdefs.h
16796
16797 fi
16798
16799
16800
16801
16802 $as_echo "#define XML_NS 1" >>confdefs.h
16803
16804
16805 $as_echo "#define XML_DTD 1" >>confdefs.h
16806
16807
16808 $as_echo "#define XML_CONTEXT_BYTES 1024" >>confdefs.h
16809
16810
16811 ac_config_files="$ac_config_files Makefile expat.pc"
16812
16813 cat >confcache <<\_ACEOF
16814 # This file is a shell script that caches the results of configure
16815 # tests run on this system so they can be shared between configure
16816 # scripts and configure runs, see configure's option --config-cache.
16817 # It is not useful on other systems.  If it contains results you don't
16818 # want to keep, you may remove or edit it.
16819 #
16820 # config.status only pays attention to the cache file if you give it
16821 # the --recheck option to rerun configure.
16822 #
16823 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16824 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16825 # following values.
16826
16827 _ACEOF
16828
16829 # The following way of writing the cache mishandles newlines in values,
16830 # but we know of no workaround that is simple, portable, and efficient.
16831 # So, we kill variables containing newlines.
16832 # Ultrix sh set writes to stderr and can't be redirected directly,
16833 # and sets the high bit in the cache file unless we assign to the vars.
16834 (
16835   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16836     eval ac_val=\$$ac_var
16837     case $ac_val in #(
16838     *${as_nl}*)
16839       case $ac_var in #(
16840       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16841 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16842       esac
16843       case $ac_var in #(
16844       _ | IFS | as_nl) ;; #(
16845       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16846       *) { eval $ac_var=; unset $ac_var;} ;;
16847       esac ;;
16848     esac
16849   done
16850
16851   (set) 2>&1 |
16852     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16853     *${as_nl}ac_space=\ *)
16854       # `set' does not quote correctly, so add quotes: double-quote
16855       # substitution turns \\\\ into \\, and sed turns \\ into \.
16856       sed -n \
16857         "s/'/'\\\\''/g;
16858           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16859       ;; #(
16860     *)
16861       # `set' quotes correctly as required by POSIX, so do not add quotes.
16862       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16863       ;;
16864     esac |
16865     sort
16866 ) |
16867   sed '
16868      /^ac_cv_env_/b end
16869      t clear
16870      :clear
16871      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16872      t end
16873      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16874      :end' >>confcache
16875 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16876   if test -w "$cache_file"; then
16877     if test "x$cache_file" != "x/dev/null"; then
16878       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16879 $as_echo "$as_me: updating cache $cache_file" >&6;}
16880       if test ! -f "$cache_file" || test -h "$cache_file"; then
16881         cat confcache >"$cache_file"
16882       else
16883         case $cache_file in #(
16884         */* | ?:*)
16885           mv -f confcache "$cache_file"$$ &&
16886           mv -f "$cache_file"$$ "$cache_file" ;; #(
16887         *)
16888           mv -f confcache "$cache_file" ;;
16889         esac
16890       fi
16891     fi
16892   else
16893     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16894 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16895   fi
16896 fi
16897 rm -f confcache
16898
16899 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16900 # Let make expand exec_prefix.
16901 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16902
16903 DEFS=-DHAVE_CONFIG_H
16904
16905 ac_libobjs=
16906 ac_ltlibobjs=
16907 U=
16908 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16909   # 1. Remove the extension, and $U if already installed.
16910   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16911   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16912   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16913   #    will be set to the directory where LIBOBJS objects are built.
16914   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16915   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16916 done
16917 LIBOBJS=$ac_libobjs
16918
16919 LTLIBOBJS=$ac_ltlibobjs
16920
16921
16922
16923 : "${CONFIG_STATUS=./config.status}"
16924 ac_write_fail=0
16925 ac_clean_files_save=$ac_clean_files
16926 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16927 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16928 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16929 as_write_fail=0
16930 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16931 #! $SHELL
16932 # Generated by $as_me.
16933 # Run this file to recreate the current configuration.
16934 # Compiler output produced by configure, useful for debugging
16935 # configure, is in config.log if it exists.
16936
16937 debug=false
16938 ac_cs_recheck=false
16939 ac_cs_silent=false
16940
16941 SHELL=\${CONFIG_SHELL-$SHELL}
16942 export SHELL
16943 _ASEOF
16944 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16945 ## -------------------- ##
16946 ## M4sh Initialization. ##
16947 ## -------------------- ##
16948
16949 # Be more Bourne compatible
16950 DUALCASE=1; export DUALCASE # for MKS sh
16951 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16952   emulate sh
16953   NULLCMD=:
16954   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16955   # is contrary to our usage.  Disable this feature.
16956   alias -g '${1+"$@"}'='"$@"'
16957   setopt NO_GLOB_SUBST
16958 else
16959   case `(set -o) 2>/dev/null` in #(
16960   *posix*) :
16961     set -o posix ;; #(
16962   *) :
16963      ;;
16964 esac
16965 fi
16966
16967
16968 as_nl='
16969 '
16970 export as_nl
16971 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16972 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16973 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16974 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16975 # Prefer a ksh shell builtin over an external printf program on Solaris,
16976 # but without wasting forks for bash or zsh.
16977 if test -z "$BASH_VERSION$ZSH_VERSION" \
16978     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16979   as_echo='print -r --'
16980   as_echo_n='print -rn --'
16981 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16982   as_echo='printf %s\n'
16983   as_echo_n='printf %s'
16984 else
16985   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16986     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16987     as_echo_n='/usr/ucb/echo -n'
16988   else
16989     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16990     as_echo_n_body='eval
16991       arg=$1;
16992       case $arg in #(
16993       *"$as_nl"*)
16994         expr "X$arg" : "X\\(.*\\)$as_nl";
16995         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16996       esac;
16997       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16998     '
16999     export as_echo_n_body
17000     as_echo_n='sh -c $as_echo_n_body as_echo'
17001   fi
17002   export as_echo_body
17003   as_echo='sh -c $as_echo_body as_echo'
17004 fi
17005
17006 # The user is always right.
17007 if test "${PATH_SEPARATOR+set}" != set; then
17008   PATH_SEPARATOR=:
17009   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17010     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17011       PATH_SEPARATOR=';'
17012   }
17013 fi
17014
17015
17016 # IFS
17017 # We need space, tab and new line, in precisely that order.  Quoting is
17018 # there to prevent editors from complaining about space-tab.
17019 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17020 # splitting by setting IFS to empty value.)
17021 IFS=" ""        $as_nl"
17022
17023 # Find who we are.  Look in the path if we contain no directory separator.
17024 as_myself=
17025 case $0 in #((
17026   *[\\/]* ) as_myself=$0 ;;
17027   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17028 for as_dir in $PATH
17029 do
17030   IFS=$as_save_IFS
17031   test -z "$as_dir" && as_dir=.
17032     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17033   done
17034 IFS=$as_save_IFS
17035
17036      ;;
17037 esac
17038 # We did not find ourselves, most probably we were run as `sh COMMAND'
17039 # in which case we are not to be found in the path.
17040 if test "x$as_myself" = x; then
17041   as_myself=$0
17042 fi
17043 if test ! -f "$as_myself"; then
17044   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17045   exit 1
17046 fi
17047
17048 # Unset variables that we do not need and which cause bugs (e.g. in
17049 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17050 # suppresses any "Segmentation fault" message there.  '((' could
17051 # trigger a bug in pdksh 5.2.14.
17052 for as_var in BASH_ENV ENV MAIL MAILPATH
17053 do eval test x\${$as_var+set} = xset \
17054   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17055 done
17056 PS1='$ '
17057 PS2='> '
17058 PS4='+ '
17059
17060 # NLS nuisances.
17061 LC_ALL=C
17062 export LC_ALL
17063 LANGUAGE=C
17064 export LANGUAGE
17065
17066 # CDPATH.
17067 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17068
17069
17070 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17071 # ----------------------------------------
17072 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17073 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17074 # script with STATUS, using 1 if that was 0.
17075 as_fn_error ()
17076 {
17077   as_status=$1; test $as_status -eq 0 && as_status=1
17078   if test "$4"; then
17079     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17080     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17081   fi
17082   $as_echo "$as_me: error: $2" >&2
17083   as_fn_exit $as_status
17084 } # as_fn_error
17085
17086
17087 # as_fn_set_status STATUS
17088 # -----------------------
17089 # Set $? to STATUS, without forking.
17090 as_fn_set_status ()
17091 {
17092   return $1
17093 } # as_fn_set_status
17094
17095 # as_fn_exit STATUS
17096 # -----------------
17097 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17098 as_fn_exit ()
17099 {
17100   set +e
17101   as_fn_set_status $1
17102   exit $1
17103 } # as_fn_exit
17104
17105 # as_fn_unset VAR
17106 # ---------------
17107 # Portably unset VAR.
17108 as_fn_unset ()
17109 {
17110   { eval $1=; unset $1;}
17111 }
17112 as_unset=as_fn_unset
17113 # as_fn_append VAR VALUE
17114 # ----------------------
17115 # Append the text in VALUE to the end of the definition contained in VAR. Take
17116 # advantage of any shell optimizations that allow amortized linear growth over
17117 # repeated appends, instead of the typical quadratic growth present in naive
17118 # implementations.
17119 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17120   eval 'as_fn_append ()
17121   {
17122     eval $1+=\$2
17123   }'
17124 else
17125   as_fn_append ()
17126   {
17127     eval $1=\$$1\$2
17128   }
17129 fi # as_fn_append
17130
17131 # as_fn_arith ARG...
17132 # ------------------
17133 # Perform arithmetic evaluation on the ARGs, and store the result in the
17134 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17135 # must be portable across $(()) and expr.
17136 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17137   eval 'as_fn_arith ()
17138   {
17139     as_val=$(( $* ))
17140   }'
17141 else
17142   as_fn_arith ()
17143   {
17144     as_val=`expr "$@" || test $? -eq 1`
17145   }
17146 fi # as_fn_arith
17147
17148
17149 if expr a : '\(a\)' >/dev/null 2>&1 &&
17150    test "X`expr 00001 : '.*\(...\)'`" = X001; then
17151   as_expr=expr
17152 else
17153   as_expr=false
17154 fi
17155
17156 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17157   as_basename=basename
17158 else
17159   as_basename=false
17160 fi
17161
17162 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17163   as_dirname=dirname
17164 else
17165   as_dirname=false
17166 fi
17167
17168 as_me=`$as_basename -- "$0" ||
17169 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17170          X"$0" : 'X\(//\)$' \| \
17171          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17172 $as_echo X/"$0" |
17173     sed '/^.*\/\([^/][^/]*\)\/*$/{
17174             s//\1/
17175             q
17176           }
17177           /^X\/\(\/\/\)$/{
17178             s//\1/
17179             q
17180           }
17181           /^X\/\(\/\).*/{
17182             s//\1/
17183             q
17184           }
17185           s/.*/./; q'`
17186
17187 # Avoid depending upon Character Ranges.
17188 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17189 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17190 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17191 as_cr_digits='0123456789'
17192 as_cr_alnum=$as_cr_Letters$as_cr_digits
17193
17194 ECHO_C= ECHO_N= ECHO_T=
17195 case `echo -n x` in #(((((
17196 -n*)
17197   case `echo 'xy\c'` in
17198   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
17199   xy)  ECHO_C='\c';;
17200   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17201        ECHO_T=' ';;
17202   esac;;
17203 *)
17204   ECHO_N='-n';;
17205 esac
17206
17207 rm -f conf$$ conf$$.exe conf$$.file
17208 if test -d conf$$.dir; then
17209   rm -f conf$$.dir/conf$$.file
17210 else
17211   rm -f conf$$.dir
17212   mkdir conf$$.dir 2>/dev/null
17213 fi
17214 if (echo >conf$$.file) 2>/dev/null; then
17215   if ln -s conf$$.file conf$$ 2>/dev/null; then
17216     as_ln_s='ln -s'
17217     # ... but there are two gotchas:
17218     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17219     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17220     # In both cases, we have to default to `cp -pR'.
17221     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17222       as_ln_s='cp -pR'
17223   elif ln conf$$.file conf$$ 2>/dev/null; then
17224     as_ln_s=ln
17225   else
17226     as_ln_s='cp -pR'
17227   fi
17228 else
17229   as_ln_s='cp -pR'
17230 fi
17231 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17232 rmdir conf$$.dir 2>/dev/null
17233
17234
17235 # as_fn_mkdir_p
17236 # -------------
17237 # Create "$as_dir" as a directory, including parents if necessary.
17238 as_fn_mkdir_p ()
17239 {
17240
17241   case $as_dir in #(
17242   -*) as_dir=./$as_dir;;
17243   esac
17244   test -d "$as_dir" || eval $as_mkdir_p || {
17245     as_dirs=
17246     while :; do
17247       case $as_dir in #(
17248       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17249       *) as_qdir=$as_dir;;
17250       esac
17251       as_dirs="'$as_qdir' $as_dirs"
17252       as_dir=`$as_dirname -- "$as_dir" ||
17253 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17254          X"$as_dir" : 'X\(//\)[^/]' \| \
17255          X"$as_dir" : 'X\(//\)$' \| \
17256          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17257 $as_echo X"$as_dir" |
17258     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17259             s//\1/
17260             q
17261           }
17262           /^X\(\/\/\)[^/].*/{
17263             s//\1/
17264             q
17265           }
17266           /^X\(\/\/\)$/{
17267             s//\1/
17268             q
17269           }
17270           /^X\(\/\).*/{
17271             s//\1/
17272             q
17273           }
17274           s/.*/./; q'`
17275       test -d "$as_dir" && break
17276     done
17277     test -z "$as_dirs" || eval "mkdir $as_dirs"
17278   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17279
17280
17281 } # as_fn_mkdir_p
17282 if mkdir -p . 2>/dev/null; then
17283   as_mkdir_p='mkdir -p "$as_dir"'
17284 else
17285   test -d ./-p && rmdir ./-p
17286   as_mkdir_p=false
17287 fi
17288
17289
17290 # as_fn_executable_p FILE
17291 # -----------------------
17292 # Test if FILE is an executable regular file.
17293 as_fn_executable_p ()
17294 {
17295   test -f "$1" && test -x "$1"
17296 } # as_fn_executable_p
17297 as_test_x='test -x'
17298 as_executable_p=as_fn_executable_p
17299
17300 # Sed expression to map a string onto a valid CPP name.
17301 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17302
17303 # Sed expression to map a string onto a valid variable name.
17304 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17305
17306
17307 exec 6>&1
17308 ## ----------------------------------- ##
17309 ## Main body of $CONFIG_STATUS script. ##
17310 ## ----------------------------------- ##
17311 _ASEOF
17312 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17313
17314 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17315 # Save the log message, to keep $0 and so on meaningful, and to
17316 # report actual input values of CONFIG_FILES etc. instead of their
17317 # values after options handling.
17318 ac_log="
17319 This file was extended by expat $as_me 2.2.0, which was
17320 generated by GNU Autoconf 2.69.  Invocation command line was
17321
17322   CONFIG_FILES    = $CONFIG_FILES
17323   CONFIG_HEADERS  = $CONFIG_HEADERS
17324   CONFIG_LINKS    = $CONFIG_LINKS
17325   CONFIG_COMMANDS = $CONFIG_COMMANDS
17326   $ $0 $@
17327
17328 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17329 "
17330
17331 _ACEOF
17332
17333 case $ac_config_files in *"
17334 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17335 esac
17336
17337 case $ac_config_headers in *"
17338 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17339 esac
17340
17341
17342 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17343 # Files that config.status was made for.
17344 config_files="$ac_config_files"
17345 config_headers="$ac_config_headers"
17346 config_commands="$ac_config_commands"
17347
17348 _ACEOF
17349
17350 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17351 ac_cs_usage="\
17352 \`$as_me' instantiates files and other configuration actions
17353 from templates according to the current configuration.  Unless the files
17354 and actions are specified as TAGs, all are instantiated by default.
17355
17356 Usage: $0 [OPTION]... [TAG]...
17357
17358   -h, --help       print this help, then exit
17359   -V, --version    print version number and configuration settings, then exit
17360       --config     print configuration, then exit
17361   -q, --quiet, --silent
17362                    do not print progress messages
17363   -d, --debug      don't remove temporary files
17364       --recheck    update $as_me by reconfiguring in the same conditions
17365       --file=FILE[:TEMPLATE]
17366                    instantiate the configuration file FILE
17367       --header=FILE[:TEMPLATE]
17368                    instantiate the configuration header FILE
17369
17370 Configuration files:
17371 $config_files
17372
17373 Configuration headers:
17374 $config_headers
17375
17376 Configuration commands:
17377 $config_commands
17378
17379 Report bugs to <expat-bugs@libexpat.org>."
17380
17381 _ACEOF
17382 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17383 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17384 ac_cs_version="\\
17385 expat config.status 2.2.0
17386 configured by $0, generated by GNU Autoconf 2.69,
17387   with options \\"\$ac_cs_config\\"
17388
17389 Copyright (C) 2012 Free Software Foundation, Inc.
17390 This config.status script is free software; the Free Software Foundation
17391 gives unlimited permission to copy, distribute and modify it."
17392
17393 ac_pwd='$ac_pwd'
17394 srcdir='$srcdir'
17395 INSTALL='$INSTALL'
17396 AWK='$AWK'
17397 test -n "\$AWK" || AWK=awk
17398 _ACEOF
17399
17400 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17401 # The default lists apply if the user does not specify any file.
17402 ac_need_defaults=:
17403 while test $# != 0
17404 do
17405   case $1 in
17406   --*=?*)
17407     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17408     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17409     ac_shift=:
17410     ;;
17411   --*=)
17412     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17413     ac_optarg=
17414     ac_shift=:
17415     ;;
17416   *)
17417     ac_option=$1
17418     ac_optarg=$2
17419     ac_shift=shift
17420     ;;
17421   esac
17422
17423   case $ac_option in
17424   # Handling of the options.
17425   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17426     ac_cs_recheck=: ;;
17427   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17428     $as_echo "$ac_cs_version"; exit ;;
17429   --config | --confi | --conf | --con | --co | --c )
17430     $as_echo "$ac_cs_config"; exit ;;
17431   --debug | --debu | --deb | --de | --d | -d )
17432     debug=: ;;
17433   --file | --fil | --fi | --f )
17434     $ac_shift
17435     case $ac_optarg in
17436     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17437     '') as_fn_error $? "missing file argument" ;;
17438     esac
17439     as_fn_append CONFIG_FILES " '$ac_optarg'"
17440     ac_need_defaults=false;;
17441   --header | --heade | --head | --hea )
17442     $ac_shift
17443     case $ac_optarg in
17444     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17445     esac
17446     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17447     ac_need_defaults=false;;
17448   --he | --h)
17449     # Conflict between --help and --header
17450     as_fn_error $? "ambiguous option: \`$1'
17451 Try \`$0 --help' for more information.";;
17452   --help | --hel | -h )
17453     $as_echo "$ac_cs_usage"; exit ;;
17454   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17455   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17456     ac_cs_silent=: ;;
17457
17458   # This is an error.
17459   -*) as_fn_error $? "unrecognized option: \`$1'
17460 Try \`$0 --help' for more information." ;;
17461
17462   *) as_fn_append ac_config_targets " $1"
17463      ac_need_defaults=false ;;
17464
17465   esac
17466   shift
17467 done
17468
17469 ac_configure_extra_args=
17470
17471 if $ac_cs_silent; then
17472   exec 6>/dev/null
17473   ac_configure_extra_args="$ac_configure_extra_args --silent"
17474 fi
17475
17476 _ACEOF
17477 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17478 if \$ac_cs_recheck; then
17479   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17480   shift
17481   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17482   CONFIG_SHELL='$SHELL'
17483   export CONFIG_SHELL
17484   exec "\$@"
17485 fi
17486
17487 _ACEOF
17488 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17489 exec 5>>config.log
17490 {
17491   echo
17492   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17493 ## Running $as_me. ##
17494 _ASBOX
17495   $as_echo "$ac_log"
17496 } >&5
17497
17498 _ACEOF
17499 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17500 #
17501 # INIT-COMMANDS
17502 #
17503
17504
17505 # The HP-UX ksh and POSIX shell print the target directory to stdout
17506 # if CDPATH is set.
17507 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17508
17509 sed_quote_subst='$sed_quote_subst'
17510 double_quote_subst='$double_quote_subst'
17511 delay_variable_subst='$delay_variable_subst'
17512 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
17513 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17514 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17515 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17516 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17517 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17518 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17519 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17520 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17521 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
17522 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17523 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17524 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17525 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17526 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17527 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17528 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17529 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17530 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17531 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17532 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17533 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17534 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17535 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17536 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17537 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17538 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17539 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17540 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17541 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17542 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17543 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17544 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17545 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17546 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17547 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17548 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17549 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17550 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17551 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17552 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17553 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17554 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17555 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17556 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17557 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17558 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17559 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17560 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17561 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17562 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17563 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17564 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17565 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17566 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17567 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17568 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17569 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
17570 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17571 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"`'
17572 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
17573 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17574 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17575 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
17576 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17577 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17578 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17579 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17580 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17581 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17582 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17583 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17584 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17585 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17586 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17587 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17588 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17589 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17590 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17591 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17592 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17593 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17594 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17595 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17596 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17597 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17598 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17599 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17600 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17601 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17602 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17603 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17604 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17605 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17606 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17607 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17608 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17609 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17610 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17611 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17612 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17613 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17614 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17615 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17616 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17617 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17618 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17619 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17620 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17621 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17622 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17623 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17624 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17625 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17626 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17627 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17628 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17629 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17630 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17631 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17632 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17633 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17634 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17635 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17636 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17637 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17638 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17639 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17640 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
17641 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
17642 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17643 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17644 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17645 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17646 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17647 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17648 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17649 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17650 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17651 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17652 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17653 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17654 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17655 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17656 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17657 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17658 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17659 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17660 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17661 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17662 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17663 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17664 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17665 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17666 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17667 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17668 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17669 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17670 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17671 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17672 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17673 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17674 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17675 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17676 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17677 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17678 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17679 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17680 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17681 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17682 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17683 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17684 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17685 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17686 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17687 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17688 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17689 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17690 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17691 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17692 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17693 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17694 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17695 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17696 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17697 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17698 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17699 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17700 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17701 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17702
17703 LTCC='$LTCC'
17704 LTCFLAGS='$LTCFLAGS'
17705 compiler='$compiler_DEFAULT'
17706
17707 # A function that is used when there is no print builtin or printf.
17708 func_fallback_echo ()
17709 {
17710   eval 'cat <<_LTECHO_EOF
17711 \$1
17712 _LTECHO_EOF'
17713 }
17714
17715 # Quote evaled strings.
17716 for var in AS \
17717 DLLTOOL \
17718 OBJDUMP \
17719 SHELL \
17720 ECHO \
17721 PATH_SEPARATOR \
17722 SED \
17723 GREP \
17724 EGREP \
17725 FGREP \
17726 LD \
17727 NM \
17728 LN_S \
17729 lt_SP2NL \
17730 lt_NL2SP \
17731 reload_flag \
17732 deplibs_check_method \
17733 file_magic_cmd \
17734 file_magic_glob \
17735 want_nocaseglob \
17736 sharedlib_from_linklib_cmd \
17737 AR \
17738 AR_FLAGS \
17739 archiver_list_spec \
17740 STRIP \
17741 RANLIB \
17742 CC \
17743 CFLAGS \
17744 compiler \
17745 lt_cv_sys_global_symbol_pipe \
17746 lt_cv_sys_global_symbol_to_cdecl \
17747 lt_cv_sys_global_symbol_to_import \
17748 lt_cv_sys_global_symbol_to_c_name_address \
17749 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17750 lt_cv_nm_interface \
17751 nm_file_list_spec \
17752 lt_cv_truncate_bin \
17753 lt_prog_compiler_no_builtin_flag \
17754 lt_prog_compiler_pic \
17755 lt_prog_compiler_wl \
17756 lt_prog_compiler_static \
17757 lt_cv_prog_compiler_c_o \
17758 need_locks \
17759 MANIFEST_TOOL \
17760 DSYMUTIL \
17761 NMEDIT \
17762 LIPO \
17763 OTOOL \
17764 OTOOL64 \
17765 shrext_cmds \
17766 export_dynamic_flag_spec \
17767 whole_archive_flag_spec \
17768 compiler_needs_object \
17769 with_gnu_ld \
17770 allow_undefined_flag \
17771 no_undefined_flag \
17772 hardcode_libdir_flag_spec \
17773 hardcode_libdir_separator \
17774 exclude_expsyms \
17775 include_expsyms \
17776 file_list_spec \
17777 variables_saved_for_relink \
17778 libname_spec \
17779 library_names_spec \
17780 soname_spec \
17781 install_override_mode \
17782 finish_eval \
17783 old_striplib \
17784 striplib \
17785 compiler_lib_search_dirs \
17786 predep_objects \
17787 postdep_objects \
17788 predeps \
17789 postdeps \
17790 compiler_lib_search_path \
17791 LD_CXX \
17792 reload_flag_CXX \
17793 compiler_CXX \
17794 lt_prog_compiler_no_builtin_flag_CXX \
17795 lt_prog_compiler_pic_CXX \
17796 lt_prog_compiler_wl_CXX \
17797 lt_prog_compiler_static_CXX \
17798 lt_cv_prog_compiler_c_o_CXX \
17799 export_dynamic_flag_spec_CXX \
17800 whole_archive_flag_spec_CXX \
17801 compiler_needs_object_CXX \
17802 with_gnu_ld_CXX \
17803 allow_undefined_flag_CXX \
17804 no_undefined_flag_CXX \
17805 hardcode_libdir_flag_spec_CXX \
17806 hardcode_libdir_separator_CXX \
17807 exclude_expsyms_CXX \
17808 include_expsyms_CXX \
17809 file_list_spec_CXX \
17810 compiler_lib_search_dirs_CXX \
17811 predep_objects_CXX \
17812 postdep_objects_CXX \
17813 predeps_CXX \
17814 postdeps_CXX \
17815 compiler_lib_search_path_CXX; do
17816     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17817     *[\\\\\\\`\\"\\\$]*)
17818       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17819       ;;
17820     *)
17821       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17822       ;;
17823     esac
17824 done
17825
17826 # Double-quote double-evaled strings.
17827 for var in reload_cmds \
17828 old_postinstall_cmds \
17829 old_postuninstall_cmds \
17830 old_archive_cmds \
17831 extract_expsyms_cmds \
17832 old_archive_from_new_cmds \
17833 old_archive_from_expsyms_cmds \
17834 archive_cmds \
17835 archive_expsym_cmds \
17836 module_cmds \
17837 module_expsym_cmds \
17838 export_symbols_cmds \
17839 prelink_cmds \
17840 postlink_cmds \
17841 postinstall_cmds \
17842 postuninstall_cmds \
17843 finish_cmds \
17844 sys_lib_search_path_spec \
17845 configure_time_dlsearch_path \
17846 configure_time_lt_sys_library_path \
17847 reload_cmds_CXX \
17848 old_archive_cmds_CXX \
17849 old_archive_from_new_cmds_CXX \
17850 old_archive_from_expsyms_cmds_CXX \
17851 archive_cmds_CXX \
17852 archive_expsym_cmds_CXX \
17853 module_cmds_CXX \
17854 module_expsym_cmds_CXX \
17855 export_symbols_cmds_CXX \
17856 prelink_cmds_CXX \
17857 postlink_cmds_CXX; do
17858     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17859     *[\\\\\\\`\\"\\\$]*)
17860       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17861       ;;
17862     *)
17863       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17864       ;;
17865     esac
17866 done
17867
17868 ac_aux_dir='$ac_aux_dir'
17869
17870 # See if we are running on zsh, and set the options that allow our
17871 # commands through without removal of \ escapes INIT.
17872 if test -n "\${ZSH_VERSION+set}"; then
17873    setopt NO_GLOB_SUBST
17874 fi
17875
17876
17877     PACKAGE='$PACKAGE'
17878     VERSION='$VERSION'
17879     RM='$RM'
17880     ofile='$ofile'
17881
17882
17883
17884
17885
17886
17887 _ACEOF
17888
17889 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17890
17891 # Handling of arguments.
17892 for ac_config_target in $ac_config_targets
17893 do
17894   case $ac_config_target in
17895     "expat_config.h") CONFIG_HEADERS="$CONFIG_HEADERS expat_config.h" ;;
17896     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17897     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17898     "expat.pc") CONFIG_FILES="$CONFIG_FILES expat.pc" ;;
17899
17900   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17901   esac
17902 done
17903
17904
17905 # If the user did not use the arguments to specify the items to instantiate,
17906 # then the envvar interface is used.  Set only those that are not.
17907 # We use the long form for the default assignment because of an extremely
17908 # bizarre bug on SunOS 4.1.3.
17909 if $ac_need_defaults; then
17910   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17911   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17912   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17913 fi
17914
17915 # Have a temporary directory for convenience.  Make it in the build tree
17916 # simply because there is no reason against having it here, and in addition,
17917 # creating and moving files from /tmp can sometimes cause problems.
17918 # Hook for its removal unless debugging.
17919 # Note that there is a small window in which the directory will not be cleaned:
17920 # after its creation but before its name has been assigned to `$tmp'.
17921 $debug ||
17922 {
17923   tmp= ac_tmp=
17924   trap 'exit_status=$?
17925   : "${ac_tmp:=$tmp}"
17926   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17927 ' 0
17928   trap 'as_fn_exit 1' 1 2 13 15
17929 }
17930 # Create a (secure) tmp directory for tmp files.
17931
17932 {
17933   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17934   test -d "$tmp"
17935 }  ||
17936 {
17937   tmp=./conf$$-$RANDOM
17938   (umask 077 && mkdir "$tmp")
17939 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17940 ac_tmp=$tmp
17941
17942 # Set up the scripts for CONFIG_FILES section.
17943 # No need to generate them if there are no CONFIG_FILES.
17944 # This happens for instance with `./config.status config.h'.
17945 if test -n "$CONFIG_FILES"; then
17946
17947
17948 ac_cr=`echo X | tr X '\015'`
17949 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17950 # But we know of no other shell where ac_cr would be empty at this
17951 # point, so we can use a bashism as a fallback.
17952 if test "x$ac_cr" = x; then
17953   eval ac_cr=\$\'\\r\'
17954 fi
17955 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17956 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17957   ac_cs_awk_cr='\\r'
17958 else
17959   ac_cs_awk_cr=$ac_cr
17960 fi
17961
17962 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17963 _ACEOF
17964
17965
17966 {
17967   echo "cat >conf$$subs.awk <<_ACEOF" &&
17968   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17969   echo "_ACEOF"
17970 } >conf$$subs.sh ||
17971   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17972 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17973 ac_delim='%!_!# '
17974 for ac_last_try in false false false false false :; do
17975   . ./conf$$subs.sh ||
17976     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17977
17978   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17979   if test $ac_delim_n = $ac_delim_num; then
17980     break
17981   elif $ac_last_try; then
17982     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17983   else
17984     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17985   fi
17986 done
17987 rm -f conf$$subs.sh
17988
17989 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17990 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17991 _ACEOF
17992 sed -n '
17993 h
17994 s/^/S["/; s/!.*/"]=/
17995 p
17996 g
17997 s/^[^!]*!//
17998 :repl
17999 t repl
18000 s/'"$ac_delim"'$//
18001 t delim
18002 :nl
18003 h
18004 s/\(.\{148\}\)..*/\1/
18005 t more1
18006 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18007 p
18008 n
18009 b repl
18010 :more1
18011 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18012 p
18013 g
18014 s/.\{148\}//
18015 t nl
18016 :delim
18017 h
18018 s/\(.\{148\}\)..*/\1/
18019 t more2
18020 s/["\\]/\\&/g; s/^/"/; s/$/"/
18021 p
18022 b
18023 :more2
18024 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18025 p
18026 g
18027 s/.\{148\}//
18028 t delim
18029 ' <conf$$subs.awk | sed '
18030 /^[^""]/{
18031   N
18032   s/\n//
18033 }
18034 ' >>$CONFIG_STATUS || ac_write_fail=1
18035 rm -f conf$$subs.awk
18036 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18037 _ACAWK
18038 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18039   for (key in S) S_is_set[key] = 1
18040   FS = "\a"
18041
18042 }
18043 {
18044   line = $ 0
18045   nfields = split(line, field, "@")
18046   substed = 0
18047   len = length(field[1])
18048   for (i = 2; i < nfields; i++) {
18049     key = field[i]
18050     keylen = length(key)
18051     if (S_is_set[key]) {
18052       value = S[key]
18053       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18054       len += length(value) + length(field[++i])
18055       substed = 1
18056     } else
18057       len += 1 + keylen
18058   }
18059
18060   print line
18061 }
18062
18063 _ACAWK
18064 _ACEOF
18065 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18066 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18067   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18068 else
18069   cat
18070 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18071   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18072 _ACEOF
18073
18074 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18075 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18076 # trailing colons and then remove the whole line if VPATH becomes empty
18077 # (actually we leave an empty line to preserve line numbers).
18078 if test "x$srcdir" = x.; then
18079   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
18080 h
18081 s///
18082 s/^/:/
18083 s/[      ]*$/:/
18084 s/:\$(srcdir):/:/g
18085 s/:\${srcdir}:/:/g
18086 s/:@srcdir@:/:/g
18087 s/^:*//
18088 s/:*$//
18089 x
18090 s/\(=[   ]*\).*/\1/
18091 G
18092 s/\n//
18093 s/^[^=]*=[       ]*$//
18094 }'
18095 fi
18096
18097 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18098 fi # test -n "$CONFIG_FILES"
18099
18100 # Set up the scripts for CONFIG_HEADERS section.
18101 # No need to generate them if there are no CONFIG_HEADERS.
18102 # This happens for instance with `./config.status Makefile'.
18103 if test -n "$CONFIG_HEADERS"; then
18104 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18105 BEGIN {
18106 _ACEOF
18107
18108 # Transform confdefs.h into an awk script `defines.awk', embedded as
18109 # here-document in config.status, that substitutes the proper values into
18110 # config.h.in to produce config.h.
18111
18112 # Create a delimiter string that does not exist in confdefs.h, to ease
18113 # handling of long lines.
18114 ac_delim='%!_!# '
18115 for ac_last_try in false false :; do
18116   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18117   if test -z "$ac_tt"; then
18118     break
18119   elif $ac_last_try; then
18120     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18121   else
18122     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18123   fi
18124 done
18125
18126 # For the awk script, D is an array of macro values keyed by name,
18127 # likewise P contains macro parameters if any.  Preserve backslash
18128 # newline sequences.
18129
18130 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18131 sed -n '
18132 s/.\{148\}/&'"$ac_delim"'/g
18133 t rset
18134 :rset
18135 s/^[     ]*#[    ]*define[       ][      ]*/ /
18136 t def
18137 d
18138 :def
18139 s/\\$//
18140 t bsnl
18141 s/["\\]/\\&/g
18142 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18143 D["\1"]=" \3"/p
18144 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
18145 d
18146 :bsnl
18147 s/["\\]/\\&/g
18148 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18149 D["\1"]=" \3\\\\\\n"\\/p
18150 t cont
18151 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18152 t cont
18153 d
18154 :cont
18155 n
18156 s/.\{148\}/&'"$ac_delim"'/g
18157 t clear
18158 :clear
18159 s/\\$//
18160 t bsnlc
18161 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18162 d
18163 :bsnlc
18164 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18165 b cont
18166 ' <confdefs.h | sed '
18167 s/'"$ac_delim"'/"\\\
18168 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18169
18170 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18171   for (key in D) D_is_set[key] = 1
18172   FS = "\a"
18173 }
18174 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18175   line = \$ 0
18176   split(line, arg, " ")
18177   if (arg[1] == "#") {
18178     defundef = arg[2]
18179     mac1 = arg[3]
18180   } else {
18181     defundef = substr(arg[1], 2)
18182     mac1 = arg[2]
18183   }
18184   split(mac1, mac2, "(") #)
18185   macro = mac2[1]
18186   prefix = substr(line, 1, index(line, defundef) - 1)
18187   if (D_is_set[macro]) {
18188     # Preserve the white space surrounding the "#".
18189     print prefix "define", macro P[macro] D[macro]
18190     next
18191   } else {
18192     # Replace #undef with comments.  This is necessary, for example,
18193     # in the case of _POSIX_SOURCE, which is predefined and required
18194     # on some systems where configure will not decide to define it.
18195     if (defundef == "undef") {
18196       print "/*", prefix defundef, macro, "*/"
18197       next
18198     }
18199   }
18200 }
18201 { print }
18202 _ACAWK
18203 _ACEOF
18204 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18205   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18206 fi # test -n "$CONFIG_HEADERS"
18207
18208
18209 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18210 shift
18211 for ac_tag
18212 do
18213   case $ac_tag in
18214   :[FHLC]) ac_mode=$ac_tag; continue;;
18215   esac
18216   case $ac_mode$ac_tag in
18217   :[FHL]*:*);;
18218   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18219   :[FH]-) ac_tag=-:-;;
18220   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18221   esac
18222   ac_save_IFS=$IFS
18223   IFS=:
18224   set x $ac_tag
18225   IFS=$ac_save_IFS
18226   shift
18227   ac_file=$1
18228   shift
18229
18230   case $ac_mode in
18231   :L) ac_source=$1;;
18232   :[FH])
18233     ac_file_inputs=
18234     for ac_f
18235     do
18236       case $ac_f in
18237       -) ac_f="$ac_tmp/stdin";;
18238       *) # Look for the file first in the build tree, then in the source tree
18239          # (if the path is not absolute).  The absolute path cannot be DOS-style,
18240          # because $ac_f cannot contain `:'.
18241          test -f "$ac_f" ||
18242            case $ac_f in
18243            [\\/$]*) false;;
18244            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18245            esac ||
18246            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18247       esac
18248       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18249       as_fn_append ac_file_inputs " '$ac_f'"
18250     done
18251
18252     # Let's still pretend it is `configure' which instantiates (i.e., don't
18253     # use $as_me), people would be surprised to read:
18254     #    /* config.h.  Generated by config.status.  */
18255     configure_input='Generated from '`
18256           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18257         `' by configure.'
18258     if test x"$ac_file" != x-; then
18259       configure_input="$ac_file.  $configure_input"
18260       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18261 $as_echo "$as_me: creating $ac_file" >&6;}
18262     fi
18263     # Neutralize special characters interpreted by sed in replacement strings.
18264     case $configure_input in #(
18265     *\&* | *\|* | *\\* )
18266        ac_sed_conf_input=`$as_echo "$configure_input" |
18267        sed 's/[\\\\&|]/\\\\&/g'`;; #(
18268     *) ac_sed_conf_input=$configure_input;;
18269     esac
18270
18271     case $ac_tag in
18272     *:-:* | *:-) cat >"$ac_tmp/stdin" \
18273       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18274     esac
18275     ;;
18276   esac
18277
18278   ac_dir=`$as_dirname -- "$ac_file" ||
18279 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18280          X"$ac_file" : 'X\(//\)[^/]' \| \
18281          X"$ac_file" : 'X\(//\)$' \| \
18282          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18283 $as_echo X"$ac_file" |
18284     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18285             s//\1/
18286             q
18287           }
18288           /^X\(\/\/\)[^/].*/{
18289             s//\1/
18290             q
18291           }
18292           /^X\(\/\/\)$/{
18293             s//\1/
18294             q
18295           }
18296           /^X\(\/\).*/{
18297             s//\1/
18298             q
18299           }
18300           s/.*/./; q'`
18301   as_dir="$ac_dir"; as_fn_mkdir_p
18302   ac_builddir=.
18303
18304 case "$ac_dir" in
18305 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18306 *)
18307   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18308   # A ".." for each directory in $ac_dir_suffix.
18309   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18310   case $ac_top_builddir_sub in
18311   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18312   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18313   esac ;;
18314 esac
18315 ac_abs_top_builddir=$ac_pwd
18316 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18317 # for backward compatibility:
18318 ac_top_builddir=$ac_top_build_prefix
18319
18320 case $srcdir in
18321   .)  # We are building in place.
18322     ac_srcdir=.
18323     ac_top_srcdir=$ac_top_builddir_sub
18324     ac_abs_top_srcdir=$ac_pwd ;;
18325   [\\/]* | ?:[\\/]* )  # Absolute name.
18326     ac_srcdir=$srcdir$ac_dir_suffix;
18327     ac_top_srcdir=$srcdir
18328     ac_abs_top_srcdir=$srcdir ;;
18329   *) # Relative name.
18330     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18331     ac_top_srcdir=$ac_top_build_prefix$srcdir
18332     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18333 esac
18334 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18335
18336
18337   case $ac_mode in
18338   :F)
18339   #
18340   # CONFIG_FILE
18341   #
18342
18343   case $INSTALL in
18344   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18345   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18346   esac
18347 _ACEOF
18348
18349 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18350 # If the template does not know about datarootdir, expand it.
18351 # FIXME: This hack should be removed a few years after 2.60.
18352 ac_datarootdir_hack=; ac_datarootdir_seen=
18353 ac_sed_dataroot='
18354 /datarootdir/ {
18355   p
18356   q
18357 }
18358 /@datadir@/p
18359 /@docdir@/p
18360 /@infodir@/p
18361 /@localedir@/p
18362 /@mandir@/p'
18363 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18364 *datarootdir*) ac_datarootdir_seen=yes;;
18365 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18366   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18367 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18368 _ACEOF
18369 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18370   ac_datarootdir_hack='
18371   s&@datadir@&$datadir&g
18372   s&@docdir@&$docdir&g
18373   s&@infodir@&$infodir&g
18374   s&@localedir@&$localedir&g
18375   s&@mandir@&$mandir&g
18376   s&\\\${datarootdir}&$datarootdir&g' ;;
18377 esac
18378 _ACEOF
18379
18380 # Neutralize VPATH when `$srcdir' = `.'.
18381 # Shell code in configure.ac might set extrasub.
18382 # FIXME: do we really want to maintain this feature?
18383 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18384 ac_sed_extra="$ac_vpsub
18385 $extrasub
18386 _ACEOF
18387 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18388 :t
18389 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18390 s|@configure_input@|$ac_sed_conf_input|;t t
18391 s&@top_builddir@&$ac_top_builddir_sub&;t t
18392 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18393 s&@srcdir@&$ac_srcdir&;t t
18394 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18395 s&@top_srcdir@&$ac_top_srcdir&;t t
18396 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18397 s&@builddir@&$ac_builddir&;t t
18398 s&@abs_builddir@&$ac_abs_builddir&;t t
18399 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18400 s&@INSTALL@&$ac_INSTALL&;t t
18401 $ac_datarootdir_hack
18402 "
18403 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18404   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18405
18406 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18407   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18408   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
18409       "$ac_tmp/out"`; test -z "$ac_out"; } &&
18410   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18411 which seems to be undefined.  Please make sure it is defined" >&5
18412 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18413 which seems to be undefined.  Please make sure it is defined" >&2;}
18414
18415   rm -f "$ac_tmp/stdin"
18416   case $ac_file in
18417   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18418   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18419   esac \
18420   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18421  ;;
18422   :H)
18423   #
18424   # CONFIG_HEADER
18425   #
18426   if test x"$ac_file" != x-; then
18427     {
18428       $as_echo "/* $configure_input  */" \
18429       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18430     } >"$ac_tmp/config.h" \
18431       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18432     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18433       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18434 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18435     else
18436       rm -f "$ac_file"
18437       mv "$ac_tmp/config.h" "$ac_file" \
18438         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18439     fi
18440   else
18441     $as_echo "/* $configure_input  */" \
18442       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18443       || as_fn_error $? "could not create -" "$LINENO" 5
18444   fi
18445  ;;
18446
18447   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18448 $as_echo "$as_me: executing $ac_file commands" >&6;}
18449  ;;
18450   esac
18451
18452
18453   case $ac_file$ac_mode in
18454     "libtool":C)
18455
18456     # See if we are running on zsh, and set the options that allow our
18457     # commands through without removal of \ escapes.
18458     if test -n "${ZSH_VERSION+set}"; then
18459       setopt NO_GLOB_SUBST
18460     fi
18461
18462     cfgfile=${ofile}T
18463     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18464     $RM "$cfgfile"
18465
18466     cat <<_LT_EOF >> "$cfgfile"
18467 #! $SHELL
18468 # Generated automatically by $as_me ($PACKAGE) $VERSION
18469 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18470 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18471
18472 # Provide generalized library-building support services.
18473 # Written by Gordon Matzigkeit, 1996
18474
18475 # Copyright (C) 2014 Free Software Foundation, Inc.
18476 # This is free software; see the source for copying conditions.  There is NO
18477 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18478
18479 # GNU Libtool is free software; you can redistribute it and/or modify
18480 # it under the terms of the GNU General Public License as published by
18481 # the Free Software Foundation; either version 2 of of the License, or
18482 # (at your option) any later version.
18483 #
18484 # As a special exception to the GNU General Public License, if you
18485 # distribute this file as part of a program or library that is built
18486 # using GNU Libtool, you may include this file under the  same
18487 # distribution terms that you use for the rest of that program.
18488 #
18489 # GNU Libtool is distributed in the hope that it will be useful, but
18490 # WITHOUT ANY WARRANTY; without even the implied warranty of
18491 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18492 # GNU General Public License for more details.
18493 #
18494 # You should have received a copy of the GNU General Public License
18495 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
18496
18497
18498 # The names of the tagged configurations supported by this script.
18499 available_tags='CXX '
18500
18501 # Configured defaults for sys_lib_dlsearch_path munging.
18502 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
18503
18504 # ### BEGIN LIBTOOL CONFIG
18505
18506 # Assembler program.
18507 AS=$lt_AS
18508
18509 # DLL creation program.
18510 DLLTOOL=$lt_DLLTOOL
18511
18512 # Object dumper program.
18513 OBJDUMP=$lt_OBJDUMP
18514
18515 # Which release of libtool.m4 was used?
18516 macro_version=$macro_version
18517 macro_revision=$macro_revision
18518
18519 # Whether or not to build shared libraries.
18520 build_libtool_libs=$enable_shared
18521
18522 # Whether or not to build static libraries.
18523 build_old_libs=$enable_static
18524
18525 # What type of objects to build.
18526 pic_mode=$pic_mode
18527
18528 # Whether or not to optimize for fast installation.
18529 fast_install=$enable_fast_install
18530
18531 # Shared archive member basename,for filename based shared library versioning on AIX.
18532 shared_archive_member_spec=$shared_archive_member_spec
18533
18534 # Shell to use when invoking shell scripts.
18535 SHELL=$lt_SHELL
18536
18537 # An echo program that protects backslashes.
18538 ECHO=$lt_ECHO
18539
18540 # The PATH separator for the build system.
18541 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18542
18543 # The host system.
18544 host_alias=$host_alias
18545 host=$host
18546 host_os=$host_os
18547
18548 # The build system.
18549 build_alias=$build_alias
18550 build=$build
18551 build_os=$build_os
18552
18553 # A sed program that does not truncate output.
18554 SED=$lt_SED
18555
18556 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18557 Xsed="\$SED -e 1s/^X//"
18558
18559 # A grep program that handles long lines.
18560 GREP=$lt_GREP
18561
18562 # An ERE matcher.
18563 EGREP=$lt_EGREP
18564
18565 # A literal string matcher.
18566 FGREP=$lt_FGREP
18567
18568 # A BSD- or MS-compatible name lister.
18569 NM=$lt_NM
18570
18571 # Whether we need soft or hard links.
18572 LN_S=$lt_LN_S
18573
18574 # What is the maximum length of a command?
18575 max_cmd_len=$max_cmd_len
18576
18577 # Object file suffix (normally "o").
18578 objext=$ac_objext
18579
18580 # Executable file suffix (normally "").
18581 exeext=$exeext
18582
18583 # whether the shell understands "unset".
18584 lt_unset=$lt_unset
18585
18586 # turn spaces into newlines.
18587 SP2NL=$lt_lt_SP2NL
18588
18589 # turn newlines into spaces.
18590 NL2SP=$lt_lt_NL2SP
18591
18592 # convert \$build file names to \$host format.
18593 to_host_file_cmd=$lt_cv_to_host_file_cmd
18594
18595 # convert \$build files to toolchain format.
18596 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18597
18598 # Method to check whether dependent libraries are shared objects.
18599 deplibs_check_method=$lt_deplibs_check_method
18600
18601 # Command to use when deplibs_check_method = "file_magic".
18602 file_magic_cmd=$lt_file_magic_cmd
18603
18604 # How to find potential files when deplibs_check_method = "file_magic".
18605 file_magic_glob=$lt_file_magic_glob
18606
18607 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18608 want_nocaseglob=$lt_want_nocaseglob
18609
18610 # Command to associate shared and link libraries.
18611 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18612
18613 # The archiver.
18614 AR=$lt_AR
18615
18616 # Flags to create an archive.
18617 AR_FLAGS=$lt_AR_FLAGS
18618
18619 # How to feed a file listing to the archiver.
18620 archiver_list_spec=$lt_archiver_list_spec
18621
18622 # A symbol stripping program.
18623 STRIP=$lt_STRIP
18624
18625 # Commands used to install an old-style archive.
18626 RANLIB=$lt_RANLIB
18627 old_postinstall_cmds=$lt_old_postinstall_cmds
18628 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18629
18630 # Whether to use a lock for old archive extraction.
18631 lock_old_archive_extraction=$lock_old_archive_extraction
18632
18633 # A C compiler.
18634 LTCC=$lt_CC
18635
18636 # LTCC compiler flags.
18637 LTCFLAGS=$lt_CFLAGS
18638
18639 # Take the output of nm and produce a listing of raw symbols and C names.
18640 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18641
18642 # Transform the output of nm in a proper C declaration.
18643 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18644
18645 # Transform the output of nm into a list of symbols to manually relocate.
18646 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
18647
18648 # Transform the output of nm in a C name address pair.
18649 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18650
18651 # Transform the output of nm in a C name address pair when lib prefix is needed.
18652 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18653
18654 # The name lister interface.
18655 nm_interface=$lt_lt_cv_nm_interface
18656
18657 # Specify filename containing input files for \$NM.
18658 nm_file_list_spec=$lt_nm_file_list_spec
18659
18660 # The root where to search for dependent libraries,and where our libraries should be installed.
18661 lt_sysroot=$lt_sysroot
18662
18663 # Command to truncate a binary pipe.
18664 lt_truncate_bin=$lt_lt_cv_truncate_bin
18665
18666 # The name of the directory that contains temporary libtool files.
18667 objdir=$objdir
18668
18669 # Used to examine libraries when file_magic_cmd begins with "file".
18670 MAGIC_CMD=$MAGIC_CMD
18671
18672 # Must we lock files when doing compilation?
18673 need_locks=$lt_need_locks
18674
18675 # Manifest tool.
18676 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18677
18678 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18679 DSYMUTIL=$lt_DSYMUTIL
18680
18681 # Tool to change global to local symbols on Mac OS X.
18682 NMEDIT=$lt_NMEDIT
18683
18684 # Tool to manipulate fat objects and archives on Mac OS X.
18685 LIPO=$lt_LIPO
18686
18687 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18688 OTOOL=$lt_OTOOL
18689
18690 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18691 OTOOL64=$lt_OTOOL64
18692
18693 # Old archive suffix (normally "a").
18694 libext=$libext
18695
18696 # Shared library suffix (normally ".so").
18697 shrext_cmds=$lt_shrext_cmds
18698
18699 # The commands to extract the exported symbol list from a shared archive.
18700 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18701
18702 # Variables whose values should be saved in libtool wrapper scripts and
18703 # restored at link time.
18704 variables_saved_for_relink=$lt_variables_saved_for_relink
18705
18706 # Do we need the "lib" prefix for modules?
18707 need_lib_prefix=$need_lib_prefix
18708
18709 # Do we need a version for libraries?
18710 need_version=$need_version
18711
18712 # Library versioning type.
18713 version_type=$version_type
18714
18715 # Shared library runtime path variable.
18716 runpath_var=$runpath_var
18717
18718 # Shared library path variable.
18719 shlibpath_var=$shlibpath_var
18720
18721 # Is shlibpath searched before the hard-coded library search path?
18722 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18723
18724 # Format of library name prefix.
18725 libname_spec=$lt_libname_spec
18726
18727 # List of archive names.  First name is the real one, the rest are links.
18728 # The last name is the one that the linker finds with -lNAME
18729 library_names_spec=$lt_library_names_spec
18730
18731 # The coded name of the library, if different from the real name.
18732 soname_spec=$lt_soname_spec
18733
18734 # Permission mode override for installation of shared libraries.
18735 install_override_mode=$lt_install_override_mode
18736
18737 # Command to use after installation of a shared archive.
18738 postinstall_cmds=$lt_postinstall_cmds
18739
18740 # Command to use after uninstallation of a shared archive.
18741 postuninstall_cmds=$lt_postuninstall_cmds
18742
18743 # Commands used to finish a libtool library installation in a directory.
18744 finish_cmds=$lt_finish_cmds
18745
18746 # As "finish_cmds", except a single script fragment to be evaled but
18747 # not shown.
18748 finish_eval=$lt_finish_eval
18749
18750 # Whether we should hardcode library paths into libraries.
18751 hardcode_into_libs=$hardcode_into_libs
18752
18753 # Compile-time system search path for libraries.
18754 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18755
18756 # Detected run-time system search path for libraries.
18757 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
18758
18759 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
18760 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
18761
18762 # Whether dlopen is supported.
18763 dlopen_support=$enable_dlopen
18764
18765 # Whether dlopen of programs is supported.
18766 dlopen_self=$enable_dlopen_self
18767
18768 # Whether dlopen of statically linked programs is supported.
18769 dlopen_self_static=$enable_dlopen_self_static
18770
18771 # Commands to strip libraries.
18772 old_striplib=$lt_old_striplib
18773 striplib=$lt_striplib
18774
18775
18776 # The linker used to build libraries.
18777 LD=$lt_LD
18778
18779 # How to create reloadable object files.
18780 reload_flag=$lt_reload_flag
18781 reload_cmds=$lt_reload_cmds
18782
18783 # Commands used to build an old-style archive.
18784 old_archive_cmds=$lt_old_archive_cmds
18785
18786 # A language specific compiler.
18787 CC=$lt_compiler
18788
18789 # Is the compiler the GNU compiler?
18790 with_gcc=$GCC
18791
18792 # Compiler flag to turn off builtin functions.
18793 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18794
18795 # Additional compiler flags for building library objects.
18796 pic_flag=$lt_lt_prog_compiler_pic
18797
18798 # How to pass a linker flag through the compiler.
18799 wl=$lt_lt_prog_compiler_wl
18800
18801 # Compiler flag to prevent dynamic linking.
18802 link_static_flag=$lt_lt_prog_compiler_static
18803
18804 # Does compiler simultaneously support -c and -o options?
18805 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18806
18807 # Whether or not to add -lc for building shared libraries.
18808 build_libtool_need_lc=$archive_cmds_need_lc
18809
18810 # Whether or not to disallow shared libs when runtime libs are static.
18811 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18812
18813 # Compiler flag to allow reflexive dlopens.
18814 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18815
18816 # Compiler flag to generate shared objects directly from archives.
18817 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18818
18819 # Whether the compiler copes with passing no objects directly.
18820 compiler_needs_object=$lt_compiler_needs_object
18821
18822 # Create an old-style archive from a shared archive.
18823 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18824
18825 # Create a temporary old-style archive to link instead of a shared archive.
18826 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18827
18828 # Commands used to build a shared archive.
18829 archive_cmds=$lt_archive_cmds
18830 archive_expsym_cmds=$lt_archive_expsym_cmds
18831
18832 # Commands used to build a loadable module if different from building
18833 # a shared archive.
18834 module_cmds=$lt_module_cmds
18835 module_expsym_cmds=$lt_module_expsym_cmds
18836
18837 # Whether we are building with GNU ld or not.
18838 with_gnu_ld=$lt_with_gnu_ld
18839
18840 # Flag that allows shared libraries with undefined symbols to be built.
18841 allow_undefined_flag=$lt_allow_undefined_flag
18842
18843 # Flag that enforces no undefined symbols.
18844 no_undefined_flag=$lt_no_undefined_flag
18845
18846 # Flag to hardcode \$libdir into a binary during linking.
18847 # This must work even if \$libdir does not exist
18848 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18849
18850 # Whether we need a single "-rpath" flag with a separated argument.
18851 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18852
18853 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18854 # DIR into the resulting binary.
18855 hardcode_direct=$hardcode_direct
18856
18857 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18858 # DIR into the resulting binary and the resulting library dependency is
18859 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
18860 # library is relocated.
18861 hardcode_direct_absolute=$hardcode_direct_absolute
18862
18863 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18864 # into the resulting binary.
18865 hardcode_minus_L=$hardcode_minus_L
18866
18867 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18868 # into the resulting binary.
18869 hardcode_shlibpath_var=$hardcode_shlibpath_var
18870
18871 # Set to "yes" if building a shared library automatically hardcodes DIR
18872 # into the library and all subsequent libraries and executables linked
18873 # against it.
18874 hardcode_automatic=$hardcode_automatic
18875
18876 # Set to yes if linker adds runtime paths of dependent libraries
18877 # to runtime path list.
18878 inherit_rpath=$inherit_rpath
18879
18880 # Whether libtool must link a program against all its dependency libraries.
18881 link_all_deplibs=$link_all_deplibs
18882
18883 # Set to "yes" if exported symbols are required.
18884 always_export_symbols=$always_export_symbols
18885
18886 # The commands to list exported symbols.
18887 export_symbols_cmds=$lt_export_symbols_cmds
18888
18889 # Symbols that should not be listed in the preloaded symbols.
18890 exclude_expsyms=$lt_exclude_expsyms
18891
18892 # Symbols that must always be exported.
18893 include_expsyms=$lt_include_expsyms
18894
18895 # Commands necessary for linking programs (against libraries) with templates.
18896 prelink_cmds=$lt_prelink_cmds
18897
18898 # Commands necessary for finishing linking programs.
18899 postlink_cmds=$lt_postlink_cmds
18900
18901 # Specify filename containing input files.
18902 file_list_spec=$lt_file_list_spec
18903
18904 # How to hardcode a shared library path into an executable.
18905 hardcode_action=$hardcode_action
18906
18907 # The directories searched by this compiler when creating a shared library.
18908 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18909
18910 # Dependencies to place before and after the objects being linked to
18911 # create a shared library.
18912 predep_objects=$lt_predep_objects
18913 postdep_objects=$lt_postdep_objects
18914 predeps=$lt_predeps
18915 postdeps=$lt_postdeps
18916
18917 # The library search path used internally by the compiler when linking
18918 # a shared library.
18919 compiler_lib_search_path=$lt_compiler_lib_search_path
18920
18921 # ### END LIBTOOL CONFIG
18922
18923 _LT_EOF
18924
18925     cat <<'_LT_EOF' >> "$cfgfile"
18926
18927 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
18928
18929 # func_munge_path_list VARIABLE PATH
18930 # -----------------------------------
18931 # VARIABLE is name of variable containing _space_ separated list of
18932 # directories to be munged by the contents of PATH, which is string
18933 # having a format:
18934 # "DIR[:DIR]:"
18935 #       string "DIR[ DIR]" will be prepended to VARIABLE
18936 # ":DIR[:DIR]"
18937 #       string "DIR[ DIR]" will be appended to VARIABLE
18938 # "DIRP[:DIRP]::[DIRA:]DIRA"
18939 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
18940 #       "DIRA[ DIRA]" will be appended to VARIABLE
18941 # "DIR[:DIR]"
18942 #       VARIABLE will be replaced by "DIR[ DIR]"
18943 func_munge_path_list ()
18944 {
18945     case x$2 in
18946     x)
18947         ;;
18948     *:)
18949         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
18950         ;;
18951     x:*)
18952         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
18953         ;;
18954     *::*)
18955         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
18956         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
18957         ;;
18958     *)
18959         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
18960         ;;
18961     esac
18962 }
18963
18964
18965 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
18966 func_cc_basename ()
18967 {
18968     for cc_temp in $*""; do
18969       case $cc_temp in
18970         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18971         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18972         \-*) ;;
18973         *) break;;
18974       esac
18975     done
18976     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18977 }
18978
18979
18980 # ### END FUNCTIONS SHARED WITH CONFIGURE
18981
18982 _LT_EOF
18983
18984   case $host_os in
18985   aix3*)
18986     cat <<\_LT_EOF >> "$cfgfile"
18987 # AIX sometimes has problems with the GCC collect2 program.  For some
18988 # reason, if we set the COLLECT_NAMES environment variable, the problems
18989 # vanish in a puff of smoke.
18990 if test set != "${COLLECT_NAMES+set}"; then
18991   COLLECT_NAMES=
18992   export COLLECT_NAMES
18993 fi
18994 _LT_EOF
18995     ;;
18996   esac
18997
18998
18999 ltmain=$ac_aux_dir/ltmain.sh
19000
19001
19002   # We use sed instead of cat because bash on DJGPP gets confused if
19003   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19004   # text mode, it properly converts lines to CR/LF.  This bash problem
19005   # is reportedly fixed, but why not run on old versions too?
19006   sed '$q' "$ltmain" >> "$cfgfile" \
19007      || (rm -f "$cfgfile"; exit 1)
19008
19009    mv -f "$cfgfile" "$ofile" ||
19010     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19011   chmod +x "$ofile"
19012
19013
19014     cat <<_LT_EOF >> "$ofile"
19015
19016 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19017
19018 # The linker used to build libraries.
19019 LD=$lt_LD_CXX
19020
19021 # How to create reloadable object files.
19022 reload_flag=$lt_reload_flag_CXX
19023 reload_cmds=$lt_reload_cmds_CXX
19024
19025 # Commands used to build an old-style archive.
19026 old_archive_cmds=$lt_old_archive_cmds_CXX
19027
19028 # A language specific compiler.
19029 CC=$lt_compiler_CXX
19030
19031 # Is the compiler the GNU compiler?
19032 with_gcc=$GCC_CXX
19033
19034 # Compiler flag to turn off builtin functions.
19035 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19036
19037 # Additional compiler flags for building library objects.
19038 pic_flag=$lt_lt_prog_compiler_pic_CXX
19039
19040 # How to pass a linker flag through the compiler.
19041 wl=$lt_lt_prog_compiler_wl_CXX
19042
19043 # Compiler flag to prevent dynamic linking.
19044 link_static_flag=$lt_lt_prog_compiler_static_CXX
19045
19046 # Does compiler simultaneously support -c and -o options?
19047 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19048
19049 # Whether or not to add -lc for building shared libraries.
19050 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19051
19052 # Whether or not to disallow shared libs when runtime libs are static.
19053 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19054
19055 # Compiler flag to allow reflexive dlopens.
19056 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19057
19058 # Compiler flag to generate shared objects directly from archives.
19059 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19060
19061 # Whether the compiler copes with passing no objects directly.
19062 compiler_needs_object=$lt_compiler_needs_object_CXX
19063
19064 # Create an old-style archive from a shared archive.
19065 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19066
19067 # Create a temporary old-style archive to link instead of a shared archive.
19068 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19069
19070 # Commands used to build a shared archive.
19071 archive_cmds=$lt_archive_cmds_CXX
19072 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19073
19074 # Commands used to build a loadable module if different from building
19075 # a shared archive.
19076 module_cmds=$lt_module_cmds_CXX
19077 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19078
19079 # Whether we are building with GNU ld or not.
19080 with_gnu_ld=$lt_with_gnu_ld_CXX
19081
19082 # Flag that allows shared libraries with undefined symbols to be built.
19083 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19084
19085 # Flag that enforces no undefined symbols.
19086 no_undefined_flag=$lt_no_undefined_flag_CXX
19087
19088 # Flag to hardcode \$libdir into a binary during linking.
19089 # This must work even if \$libdir does not exist
19090 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19091
19092 # Whether we need a single "-rpath" flag with a separated argument.
19093 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19094
19095 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19096 # DIR into the resulting binary.
19097 hardcode_direct=$hardcode_direct_CXX
19098
19099 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19100 # DIR into the resulting binary and the resulting library dependency is
19101 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
19102 # library is relocated.
19103 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19104
19105 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19106 # into the resulting binary.
19107 hardcode_minus_L=$hardcode_minus_L_CXX
19108
19109 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19110 # into the resulting binary.
19111 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19112
19113 # Set to "yes" if building a shared library automatically hardcodes DIR
19114 # into the library and all subsequent libraries and executables linked
19115 # against it.
19116 hardcode_automatic=$hardcode_automatic_CXX
19117
19118 # Set to yes if linker adds runtime paths of dependent libraries
19119 # to runtime path list.
19120 inherit_rpath=$inherit_rpath_CXX
19121
19122 # Whether libtool must link a program against all its dependency libraries.
19123 link_all_deplibs=$link_all_deplibs_CXX
19124
19125 # Set to "yes" if exported symbols are required.
19126 always_export_symbols=$always_export_symbols_CXX
19127
19128 # The commands to list exported symbols.
19129 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19130
19131 # Symbols that should not be listed in the preloaded symbols.
19132 exclude_expsyms=$lt_exclude_expsyms_CXX
19133
19134 # Symbols that must always be exported.
19135 include_expsyms=$lt_include_expsyms_CXX
19136
19137 # Commands necessary for linking programs (against libraries) with templates.
19138 prelink_cmds=$lt_prelink_cmds_CXX
19139
19140 # Commands necessary for finishing linking programs.
19141 postlink_cmds=$lt_postlink_cmds_CXX
19142
19143 # Specify filename containing input files.
19144 file_list_spec=$lt_file_list_spec_CXX
19145
19146 # How to hardcode a shared library path into an executable.
19147 hardcode_action=$hardcode_action_CXX
19148
19149 # The directories searched by this compiler when creating a shared library.
19150 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19151
19152 # Dependencies to place before and after the objects being linked to
19153 # create a shared library.
19154 predep_objects=$lt_predep_objects_CXX
19155 postdep_objects=$lt_postdep_objects_CXX
19156 predeps=$lt_predeps_CXX
19157 postdeps=$lt_postdeps_CXX
19158
19159 # The library search path used internally by the compiler when linking
19160 # a shared library.
19161 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19162
19163 # ### END LIBTOOL TAG CONFIG: CXX
19164 _LT_EOF
19165
19166  ;;
19167
19168   esac
19169 done # for ac_tag
19170
19171
19172 as_fn_exit 0
19173 _ACEOF
19174 ac_clean_files=$ac_clean_files_save
19175
19176 test $ac_write_fail = 0 ||
19177   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19178
19179
19180 # configure is writing to config.log, and then calls config.status.
19181 # config.status does its own redirection, appending to config.log.
19182 # Unfortunately, on DOS this fails, as config.log is still kept open
19183 # by configure, so config.status won't be able to write to it; its
19184 # output is simply discarded.  So we exec the FD to /dev/null,
19185 # effectively closing config.log, so it can be properly (re)opened and
19186 # appended to by config.status.  When coming back to configure, we
19187 # need to make the FD available again.
19188 if test "$no_create" != yes; then
19189   ac_cs_success=:
19190   ac_config_status_args=
19191   test "$silent" = yes &&
19192     ac_config_status_args="$ac_config_status_args --quiet"
19193   exec 5>/dev/null
19194   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19195   exec 5>>config.log
19196   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19197   # would make configure fail if this is the last instruction.
19198   $ac_cs_success || as_fn_exit 1
19199 fi
19200 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19201   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19202 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19203 fi
19204
19205
19206 abs_srcdir="`cd $srcdir && pwd`"
19207 abs_builddir="`pwd`"
19208 if test "$abs_srcdir" != "$abs_builddir"; then
19209   make mkdir-init
19210 fi